/* What Tailwind utilities don't cover: hidden-until-Alpine, the icon's gradient and confetti,
   the logo, the landing's animations and the legal pages' text. */

[x-cloak] {
  display: none !important;
}

/* The icon's arcs, orange to pink to purple. */
.brand-gradient {
  background-image: linear-gradient(135deg, #ff7a1a 0%, #ff2d8a 50%, #9b3dff 100%);
}

.brand-text {
  background-image: linear-gradient(135deg, #ffd21f 0%, #ff7a1a 30%, #ff2d8a 65%, #9b3dff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* The app icon: its confetti background with the badge blended on top, as in the app's Settings. */
.app-icon {
  position: relative;
  display: inline-block;
  overflow: hidden;
  border-radius: 22.5%;
  background: url("images/icon-background.png") center / cover;
}

.app-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("images/icon-badge.png") center / contain no-repeat;
  mix-blend-mode: lighten;
}

/* Confetti scattered behind a section; each piece is placed and coloured inline. */
.confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.confetti span {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  opacity: 0.85;
  animation: drift 6s ease-in-out infinite;
}

/* Landing page: unread badges that won't sit still, and step emojis bobbing gently. */
.wiggle {
  display: inline-block;
  animation: wiggle 2.4s ease-in-out infinite;
}

.float {
  animation: float 3s ease-in-out infinite;
}

@keyframes wiggle {
  0%, 80%, 100% { transform: rotate(0) scale(1); }
  85% { transform: rotate(-10deg) scale(1.15); }
  90% { transform: rotate(8deg) scale(1.15); }
  95% { transform: rotate(-4deg) scale(1.05); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes drift {
  0%, 100% { transform: translateY(0) rotate(var(--r, 20deg)); }
  50% { transform: translateY(-10px) rotate(calc(var(--r, 20deg) + 25deg)); }
}

@media (prefers-reduced-motion: reduce) {
  .wiggle,
  .float,
  .confetti span {
    animation: none;
  }
}

/* Text of the privacy and support pages, injected from the translations. */
.legal h2 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffd21f;
}

.legal p,
.legal li {
  line-height: 1.7;
  color: rgb(255 255 255 / 0.8);
}

.legal p + p {
  margin-top: 0.75rem;
}

.legal ul {
  list-style: none;
  padding: 0;
}

.legal li {
  position: relative;
  padding-left: 1.5rem;
}

.legal li + li {
  margin-top: 0.75rem;
}

.legal li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 2px;
  background: #ff2d8a;
  transform: rotate(20deg);
}

.legal strong {
  color: #fff;
}

.legal a {
  color: #22c7e8;
  text-decoration: underline;
  text-underline-offset: 3px;
}
