/* DayZero landing page. Mobile-first; legal pages use site.css. */

:root {
  --bg: #020B1D;
  --bg-2: #061331;
  --surface: #0D1628;
  --card: #131F35;
  --text: #FFFFFF;
  --muted: #A7B4C7;
  --dim: rgba(255, 255, 255, 0.62);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --blue: #0A84FF;
  --cyan: #18E6FF;
  --pink: #EC4899;
  --violet: #8B5CF6;

  /* Match FoodColors in the app */
  --calories: #F5A623;
  --protein: #D4537E;
  --carbs: #4ADE80;
  --fat: #FACC15;

  --brand-grad: linear-gradient(100deg, #EC4899 0%, #8B5CF6 38%, #0A84FF 70%, #18E6FF 100%);
  --cta-grad: linear-gradient(100deg, #0A84FF 0%, #18A8FF 55%, #18E6FF 100%);

  --radius: 20px;
  --radius-lg: 28px;
  --container: 1160px;
  --nav-h: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  --font-head: "Fredoka", "Poppins", system-ui, sans-serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--cyan);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

svg:not([fill]) {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 8px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 12px;
}

.grad-text {
  background: var(--brand-grad);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 8s ease-in-out infinite alternate;
}

@keyframes shimmer {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

/* ---------- Background ---------- */

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(10, 132, 255, 0.16), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(236, 72, 153, 0.08), transparent 60%),
    var(--bg);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  will-change: transform;
}

.orb-1 {
  width: 420px;
  height: 420px;
  background: rgba(10, 132, 255, 0.35);
  top: -120px;
  right: -80px;
  animation: drift-1 22s ease-in-out infinite alternate;
}

.orb-2 {
  width: 360px;
  height: 360px;
  background: rgba(236, 72, 153, 0.22);
  top: 40%;
  left: -140px;
  animation: drift-2 26s ease-in-out infinite alternate;
}

.orb-3 {
  width: 320px;
  height: 320px;
  background: rgba(24, 230, 255, 0.16);
  bottom: -120px;
  right: 20%;
  animation: drift-3 30s ease-in-out infinite alternate;
}

@keyframes drift-1 { to { transform: translate(-120px, 140px) scale(1.15); } }
@keyframes drift-2 { to { transform: translate(160px, -100px) scale(0.9); } }
@keyframes drift-3 { to { transform: translate(-140px, -80px) scale(1.2); } }

.bg-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
}

/* ---------- Buttons & badges ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  color: #fff;
  border: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--cta-grad);
  box-shadow: 0 10px 30px -10px rgba(10, 132, 255, 0.7);
}

.btn-primary:hover {
  box-shadow: 0 16px 40px -12px rgba(24, 230, 255, 0.7);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}

.btn-primary:hover::after {
  transform: translateX(120%);
}

.btn-small {
  min-height: 40px;
  padding: 8px 18px;
  font-size: 0.9rem;
}

.btn-block {
  width: 100%;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 20px 10px 16px;
  border-radius: 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.25s var(--ease), border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.store-badge .badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.store-badge small {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.store-badge strong {
  font-family: var(--font-head);
  font-size: 1.12rem;
  font-weight: 600;
}

.store-badge--live {
  background: linear-gradient(rgba(10, 30, 60, 0.9), rgba(10, 30, 60, 0.9)) padding-box,
    var(--brand-grad) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 12px 34px -14px rgba(10, 132, 255, 0.8);
}

.store-badge--live:hover {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 18px 44px -14px rgba(24, 230, 255, 0.7);
}

.store-badge--soon {
  opacity: 0.62;
}

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled,
.nav.open {
  background: rgba(2, 11, 29, 0.78);
  border-bottom-color: var(--border);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  border-radius: 10px;
}

.nav-links {
  display: none;
}

.nav-links a:not(.btn) {
  color: var(--dim);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:not(.btn):hover {
  color: #fff;
  text-decoration: none;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu panel */
@media (max-width: 899px) {
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    padding: 12px clamp(16px, 4vw, 32px) 20px;
    /* Solid: a blur here is ignored inside the nav's own backdrop-filter. */
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 40px -12px rgba(0, 0, 0, 0.7);
    animation: menu-in 0.25s var(--ease);
  }

  .nav.open .nav-links a:not(.btn) {
    padding: 12px 4px;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border);
  }

  .nav.open .nav-links .nav-cta {
    margin-top: 12px;
  }
}

@keyframes menu-in {
  from { opacity: 0; transform: translateY(-8px); }
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(24px, 6vw, 72px));
  padding-bottom: clamp(48px, 8vw, 96px);
}

.hero-grid {
  display: grid;
  gap: clamp(40px, 6vw, 64px);
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
  text-align: center;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-strong);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--carbs);
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.hero h1 {
  font-size: clamp(2.5rem, 8.5vw, 4.6rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.lead {
  font-size: clamp(1rem, 2.4vw, 1.18rem);
  color: var(--muted);
  max-width: 34em;
}

.hero .store-badges {
  justify-content: center;
}

.hero-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-points svg {
  width: 18px;
  height: 18px;
  color: var(--carbs);
  stroke-width: 2.4;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 560px;
}

.hero-glow {
  position: absolute;
  width: min(560px, 110%);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 40%, rgba(10, 132, 255, 0.45), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(236, 72, 153, 0.3), transparent 60%);
  filter: blur(40px);
  animation: breathe 7s ease-in-out infinite;
}

@keyframes breathe {
  50% { transform: scale(1.08); opacity: 0.8; }
}

.hero-mascot {
  position: absolute;
  left: 50%;
  bottom: -6%;
  width: 46%;
  max-width: 250px;
  height: auto;
  transform: translateX(-118%);
  z-index: 1;
  mix-blend-mode: lighten;
  mask-image: radial-gradient(ellipse 50% 46% at 48% 62%, #000 62%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 50% 46% at 48% 62%, #000 62%, transparent 100%);
  animation: bob 5s ease-in-out infinite;
}

@keyframes bob {
  50% { translate: 0 -10px; }
}

/* Phone mockup */
.phone {
  position: relative;
  z-index: 2;
  width: clamp(260px, 74vw, 318px);
  aspect-ratio: 9 / 18.6;
  padding: 10px;
  border-radius: 48px;
  background: linear-gradient(160deg, #26324a, #0b1224 40%, #1a2540);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 40px 80px -30px rgba(0, 0, 0, 0.9),
    0 30px 120px -40px rgba(10, 132, 255, 0.55);
  animation: phone-float 7s ease-in-out infinite;
}

@keyframes phone-float {
  50% { translate: 0 -8px; }
}

.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(10, 132, 255, 0.18), transparent 60%),
    linear-gradient(180deg, #06112a, #030a1a);
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  translate: -50% 0;
  width: 92px;
  height: 26px;
  border-radius: 999px;
  background: #000;
  z-index: 3;
}

.chat-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 46px 16px 12px;
  border-bottom: 1px solid var(--border);
}

.chat-top img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(24, 230, 255, 0.5);
}

.chat-top strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.98rem;
  line-height: 1.1;
}

.chat-top span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: var(--muted);
}

.online {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--carbs);
  display: inline-block;
}

.chat-feed {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px;
  overflow: hidden;
  mask-image: linear-gradient(transparent, #000 14%);
  -webkit-mask-image: linear-gradient(transparent, #000 14%);
  transition: opacity 0.5s;
}

.chat-feed.clearing {
  opacity: 0;
}

.chat-input {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 10px 12px;
  padding: 6px 6px 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}

.chat-placeholder {
  flex: 1;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}

.chat-icon,
.chat-send {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.chat-icon svg,
.chat-send svg {
  width: 17px;
  height: 17px;
}

.chat-icon {
  color: var(--muted);
}

.chat-send {
  background: var(--cta-grad);
  color: #fff;
}

/* Floating chips */
.float-chip {
  position: absolute;
  z-index: 3;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(13, 22, 40, 0.78);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8);
  font-size: 0.8rem;
}

.chip-protein {
  top: 12%;
  right: max(0px, calc(50% - 260px));
  display: grid;
  gap: 4px;
  min-width: 150px;
  animation: float-a 6s ease-in-out infinite;
}

.chip-protein .chip-label {
  color: var(--muted);
  font-size: 0.72rem;
}

.chip-protein strong {
  font-family: var(--font-head);
  font-size: 1.35rem;
  color: var(--protein);
  line-height: 1;
}

.chip-bar {
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.chip-bar i {
  display: block;
  height: 100%;
  width: 42%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pink), var(--protein));
  animation: fill-bar 3.5s var(--ease) infinite alternate;
}

@keyframes fill-bar {
  from { width: 18%; }
  to { width: 58%; }
}

.chip-plan {
  bottom: 14%;
  right: max(0px, calc(50% - 250px));
  display: flex;
  align-items: center;
  gap: 10px;
  animation: float-b 7s ease-in-out infinite;
}

.chip-plan strong {
  display: block;
  font-size: 0.82rem;
}

.chip-plan small {
  color: var(--muted);
  font-size: 0.72rem;
}

.chip-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(245, 166, 35, 0.16);
  color: var(--calories);
  flex: none;
}

.chip-icon svg {
  width: 20px;
  height: 20px;
}

.chip-icon.small {
  width: 26px;
  height: 26px;
  border-radius: 9px;
}

.chip-icon.small svg {
  width: 16px;
  height: 16px;
}

@keyframes float-a { 50% { translate: 0 -12px; } }
@keyframes float-b { 50% { translate: 0 10px; } }

.scroll-cue {
  display: none;
}

@media (min-width: 960px) {
  .hero {
    min-height: min(100vh, 920px);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 1fr;
  }

  .hero-copy {
    text-align: left;
    align-items: flex-start;
  }

  .hero .store-badges,
  .hero-points {
    justify-content: flex-start;
  }

  .hero-visual {
    min-height: 640px;
  }

  .hero-mascot {
    width: 52%;
    max-width: 290px;
    transform: translateX(-112%);
  }

  .chip-protein {
    right: -2%;
  }

  .chip-plan {
    right: -6%;
    bottom: 16%;
  }

  .scroll-cue {
    display: block;
    position: absolute;
    left: 50%;
    bottom: 24px;
    translate: -50% 0;
    width: 26px;
    height: 42px;
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.25);
  }

  .scroll-cue span {
    position: absolute;
    left: 50%;
    top: 8px;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    border-radius: 2px;
    background: var(--cyan);
    animation: cue 1.8s ease-in-out infinite;
  }
}

@keyframes cue {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* Narrow screens: no room beside the phone, so Daizee peeks in front of it. */
@media (max-width: 959px) {
  .hero-mascot {
    left: max(0px, calc(50% - 230px));
    bottom: -3%;
    width: 34%;
    max-width: 170px;
    transform: none;
    z-index: 3;
  }

  .chip-plan {
    top: 34%;
    bottom: auto;
    right: max(0px, calc(50% - 250px));
  }
}

@media (max-width: 480px) {
  .hero-visual {
    min-height: 520px;
  }

  .phone {
    width: min(270px, 70vw);
  }

  .chip-protein {
    top: 6%;
    right: 0;
    min-width: 128px;
    padding: 10px 12px;
  }

  /* Would cover the chat demo on a small phone. */
  .chip-plan {
    display: none;
  }
}

/* ---------- Messages (shared) ---------- */

.msg {
  max-width: 86%;
  padding: 9px 13px;
  border-radius: 18px;
  font-size: 0.82rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.msg-user {
  align-self: flex-end;
  background: var(--cta-grad);
  color: #fff;
  border-bottom-right-radius: 6px;
}

.msg-daizee {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  border-bottom-left-radius: 6px;
}

.msg-card {
  align-self: flex-start;
  width: 90%;
  max-width: 90%;
  display: grid;
  gap: 6px;
  padding: 11px 13px;
  background: linear-gradient(160deg, rgba(24, 230, 255, 0.09), rgba(19, 31, 53, 0.9));
  border: 1px solid rgba(24, 230, 255, 0.22);
}

.msg-card strong {
  font-size: 0.86rem;
  font-weight: 600;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.tag {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.logged {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--carbs);
}

.logged::before {
  content: "";
  width: 12px;
  height: 12px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.macros {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.macros span {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
}

.m-kcal { color: var(--calories); background: rgba(245, 166, 35, 0.14); }
.m-p { color: #F07AA3; background: rgba(212, 83, 126, 0.18); }
.m-c { color: var(--carbs); background: rgba(74, 222, 128, 0.13); }
.m-f { color: var(--fat); background: rgba(250, 204, 21, 0.13); }

.trend {
  font-size: 0.72rem;
  color: var(--carbs);
  font-weight: 600;
}

/* Photo bubble (scale) */
.msg-photo {
  padding: 5px;
  border-radius: 18px;
  border-bottom-right-radius: 6px;
}

.scale-pic {
  width: 132px;
  height: 96px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.9), transparent 55%),
    linear-gradient(160deg, #e8edf4, #b9c3d1);
  box-shadow: inset 0 -6px 12px rgba(0, 0, 0, 0.12);
}

.scale-display {
  padding: 4px 10px;
  border-radius: 6px;
  background: #0b1a12;
  color: #7CFFB2;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  box-shadow: 0 0 12px rgba(124, 255, 178, 0.35);
}

.typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 18px;
  border-bottom-left-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
}

.typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: typing 1.1s infinite ease-in-out;
}

.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.msg-in {
  animation: msg-in 0.45s var(--ease) both;
}

@keyframes msg-in {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
}

/* ---------- Strip ---------- */

.strip {
  padding: 8px 0 24px;
}

.strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 12px;
}

.strip-title {
  width: 100%;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.strip-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.strip-item svg {
  width: 18px;
  height: 18px;
  color: var(--cyan);
}

@media (min-width: 900px) {
  .strip-title {
    width: auto;
    margin: 0 8px 0 0;
  }
}

/* ---------- Sections ---------- */

.section {
  position: relative;
  padding-block: clamp(72px, 10vw, 128px);
}

.section-tight {
  padding-block: clamp(48px, 7vw, 88px);
}

.section-alt {
  background: linear-gradient(180deg, transparent, rgba(13, 22, 40, 0.65) 18%, rgba(13, 22, 40, 0.65) 82%, transparent);
}

.section-head {
  max-width: 680px;
  margin: 0 auto clamp(40px, 6vw, 64px);
  text-align: center;
  display: grid;
  gap: 14px;
  justify-items: center;
}

.section-head h2 {
  font-size: clamp(2rem, 5vw, 3.1rem);
}

.section-head p {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.1rem);
}

.section-label {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(24, 230, 255, 0.08);
  border: 1px solid rgba(24, 230, 255, 0.2);
}

/* ---------- Bento features ---------- */

.bento {
  display: grid;
  gap: 18px;
}

.bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: clamp(22px, 3vw, 30px);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(19, 31, 53, 0.92), rgba(9, 18, 38, 0.92));
  border: 1px solid var(--border);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}

.bento-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(24, 230, 255, 0.1), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s;
}

@media (hover: hover) {
  .bento-card:hover {
    transform: translateY(-4px);
    border-color: rgba(24, 230, 255, 0.28);
    box-shadow: 0 30px 60px -30px rgba(10, 132, 255, 0.5);
  }

  .bento-card:hover::after {
    opacity: 1;
  }
}

.bento-copy {
  display: grid;
  gap: 10px;
}

.card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}

.pro-tag {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--brand-grad);
}

.bento-card h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
}

.bento-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.bento-visual {
  margin-top: auto;
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(2, 11, 29, 0.6);
  border: 1px solid var(--border);
}

.mini-chat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mini-chat .msg {
  font-size: 0.86rem;
}

/* Staged animation inside feature cards */
.js [data-play] .step {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.js [data-play].is-playing .step {
  opacity: 1;
  transform: none;
}

.js [data-play].is-playing .s1 { transition-delay: 0.15s; }
.js [data-play].is-playing .s2 { transition-delay: 0.75s; }
.js [data-play].is-playing .s3 { transition-delay: 1.35s; }

/* Outcomes */
.outcomes {
  list-style: none;
  margin: auto 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.outcomes li {
  display: grid;
  grid-template-columns: 38px auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(2, 11, 29, 0.6);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 500;
}

.o-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(10, 132, 255, 0.14);
  color: var(--cyan);
}

.o-icon svg {
  width: 20px;
  height: 20px;
}

.arrow {
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(24, 230, 255, 0.1), rgba(24, 230, 255, 0.7));
  position: relative;
  min-width: 16px;
}

.arrow::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -3px;
  width: 8px;
  height: 8px;
  border-top: 2px solid rgba(24, 230, 255, 0.8);
  border-right: 2px solid rgba(24, 230, 255, 0.8);
  transform: rotate(45deg);
}

.o-result {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--carbs);
  background: rgba(74, 222, 128, 0.12);
  white-space: nowrap;
}

/* Memory */
.memory {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.memory-tag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #F9A8D4;
  background: rgba(236, 72, 153, 0.14);
  border: 1px solid rgba(236, 72, 153, 0.3);
}

.memory-tag svg {
  width: 14px;
  height: 14px;
}

.memory .msg {
  font-size: 0.86rem;
}

/* Plan card */
.plan-card {
  display: grid;
  gap: 10px;
}

.plan-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--calories);
}

.plan-card > strong {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.3;
}

.plan-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.plan-chips span {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.74rem;
  color: var(--cyan);
  background: rgba(24, 230, 255, 0.08);
  border: 1px solid rgba(24, 230, 255, 0.22);
}

/* Notification */
.notif {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.notif img {
  border-radius: 9px;
  flex: none;
}

.notif-app {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.notif strong {
  display: block;
  font-size: 0.92rem;
  margin: 2px 0;
}

.bento-card .notif p {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.82);
}

.js [data-play] .notif.step {
  transform: translateY(-14px) scale(0.97);
}

/* Rings */
.rings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.ring {
  position: relative;
  display: grid;
  place-items: center;
}

.ring svg {
  width: 100%;
  max-width: 120px;
  transform: rotate(-90deg);
}

.ring circle {
  fill: none;
  stroke-width: 10;
}

.ring-track {
  stroke: rgba(255, 255, 255, 0.07);
}

.ring-fill {
  stroke: var(--c);
  stroke-linecap: round;
  stroke-dasharray: 314.16;
  stroke-dashoffset: calc(314.16 * (1 - var(--p) / 100));
  filter: drop-shadow(0 0 6px var(--c));
  transition: stroke-dashoffset 1.6s var(--ease) 0.2s;
}

.js [data-play]:not(.is-playing) .ring-fill {
  stroke-dashoffset: 314.16;
}

.ring-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  line-height: 1.1;
}

.ring-label strong {
  font-family: var(--font-head);
  font-size: clamp(0.95rem, 3vw, 1.2rem);
}

.ring-label small {
  font-size: 0.66rem;
  color: var(--muted);
}

.no-guilt {
  margin: clamp(32px, 5vw, 48px) auto 0;
  max-width: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  color: var(--muted);
  font-size: 0.98rem;
}

.no-guilt svg {
  width: 22px;
  height: 22px;
  color: var(--pink);
  flex: none;
}

@media (max-width: 600px) {
  .no-guilt {
    flex-direction: column;
  }
}

@media (min-width: 720px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-wide {
    grid-column: span 2;
  }

  .bento-wide .mini-chat {
    max-width: 520px;
  }
}

@media (min-width: 1040px) {
  .bento {
    grid-template-columns: repeat(3, 1fr);
  }

  .bento-wide {
    grid-column: span 2;
    flex-direction: row;
    align-items: center;
    gap: 32px;
  }

  .bento-wide .bento-copy,
  .bento-wide .bento-visual {
    flex: 1;
  }

  .bento-wide .bento-visual {
    margin-top: 0;
  }

  .bento-health {
    grid-column: 1 / -1;
  }
}

/* ---------- A day with Daizee ---------- */

.day-grid {
  display: grid;
  gap: 40px;
}

.day-head {
  margin-bottom: 0;
}

.day-mascot {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-top: 12px;
  box-shadow:
    0 0 0 3px rgba(24, 230, 255, 0.4),
    0 0 60px rgba(10, 132, 255, 0.5);
  animation: bob 5s ease-in-out infinite;
}

.timeline {
  --progress: 0;
  list-style: none;
  margin: 0;
  padding: 0 0 0 38px;
  position: relative;
  display: grid;
  gap: 28px;
  max-width: 560px;
  width: 100%;
  justify-self: center;
}

.timeline::before,
.timeline::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  width: 2px;
  border-radius: 2px;
}

.timeline::before {
  bottom: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.timeline::after {
  height: calc((100% - 16px) * var(--progress));
  background: linear-gradient(180deg, var(--pink), var(--blue), var(--cyan));
  box-shadow: 0 0 12px rgba(24, 230, 255, 0.6);
}

.t-item {
  position: relative;
  display: grid;
  gap: 10px;
  justify-items: start;
}

.t-item::before {
  content: "";
  position: absolute;
  left: -33px;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid rgba(255, 255, 255, 0.25);
  z-index: 1;
  transition: border-color 0.4s, background 0.4s, box-shadow 0.4s;
}

.t-item.lit::before {
  border-color: var(--cyan);
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(24, 230, 255, 0.15), 0 0 16px rgba(24, 230, 255, 0.8);
}

.t-time {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--cyan);
}

.t-item h3 {
  font-size: 1.2rem;
}

.t-item .msg {
  max-width: 100%;
  font-size: 0.9rem;
}

.t-item .msg-card {
  width: min(100%, 340px);
}

@media (min-width: 960px) {
  .day-grid {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
    gap: 64px;
  }

  .day-head {
    position: sticky;
    top: calc(var(--nav-h) + 48px);
    text-align: left;
    justify-items: start;
    margin: 0;
  }

  .timeline {
    justify-self: start;
  }
}

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.step-card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(19, 31, 53, 0.7);
  border: 1px solid var(--border);
  display: grid;
  gap: 10px;
}

.step-num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.4rem;
  color: #fff;
  background: var(--brand-grad);
  box-shadow: 0 12px 30px -12px rgba(139, 92, 246, 0.8);
}

.step-card h3 {
  font-size: 1.3rem;
}

.step-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

@media (min-width: 820px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .step-card:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 52px;
    right: -24px;
    width: 24px;
    border-top: 2px dashed rgba(24, 230, 255, 0.35);
  }
}

/* ---------- Plans ---------- */

.plans {
  display: grid;
  gap: 20px;
  max-width: 920px;
  margin: 0 auto;
}

.plan {
  position: relative;
  padding: clamp(24px, 3.5vw, 36px);
  border-radius: var(--radius-lg);
  background: rgba(19, 31, 53, 0.7);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan h3 {
  font-size: 1.6rem;
}

.plan-sub {
  color: var(--muted);
  font-size: 0.92rem;
}

.plan-pro {
  background:
    linear-gradient(160deg, rgba(16, 32, 66, 0.96), rgba(9, 18, 38, 0.96)) padding-box,
    var(--brand-grad) border-box;
  background-size: 100% 100%, 300% 100%;
  border: 1.5px solid transparent;
  box-shadow: 0 40px 80px -40px rgba(10, 132, 255, 0.6);
  animation: border-flow 8s linear infinite;
}

@keyframes border-flow {
  0% { background-position: 0 0, 0% 50%; }
  50% { background-position: 0 0, 100% 50%; }
  100% { background-position: 0 0, 0% 50%; }
}

.plan-badge {
  position: absolute;
  top: -13px;
  right: 24px;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--brand-grad);
  box-shadow: 0 8px 20px -8px rgba(236, 72, 153, 0.8);
}

.checks {
  list-style: none;
  margin: 10px 0 18px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.checks li {
  position: relative;
  padding-left: 32px;
  font-size: 0.96rem;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8' fill='none' stroke='%2318E6FF' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat,
    rgba(24, 230, 255, 0.12);
}

.plan:not(.plan-pro) .checks li::before {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8' fill='none' stroke='%23A7B4C7' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat,
    rgba(255, 255, 255, 0.07);
}

.plan-pro .btn {
  margin-top: auto;
}

.fine-print {
  margin: 24px auto 0;
  max-width: 620px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

@media (min-width: 820px) {
  .plans {
    grid-template-columns: 1fr 1.1fr;
    align-items: stretch;
  }
}

/* ---------- Trust ---------- */

.trust {
  display: grid;
  gap: 16px;
}

.trust-item {
  padding: 22px;
  border-radius: var(--radius);
  background: rgba(19, 31, 53, 0.5);
  border: 1px solid var(--border);
  display: grid;
  gap: 8px;
  align-content: start;
}

.trust-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--cyan);
  background: rgba(24, 230, 255, 0.1);
}

.trust-icon svg {
  width: 22px;
  height: 22px;
}

.trust-item h3 {
  font-size: 1.08rem;
}

.trust-item p {
  color: var(--muted);
  font-size: 0.88rem;
}

@media (min-width: 640px) {
  .trust {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1040px) {
  .trust {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- FAQ ---------- */

.faq-wrap {
  max-width: 820px;
}

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  border-radius: 18px;
  background: rgba(19, 31, 53, 0.55);
  border: 1px solid var(--border);
  transition: border-color 0.3s, background 0.3s;
}

.faq details[open] {
  border-color: rgba(24, 230, 255, 0.28);
  background: rgba(19, 31, 53, 0.85);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.08rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    linear-gradient(var(--cyan), var(--cyan)) center / 12px 2px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) center / 2px 12px no-repeat,
    rgba(24, 230, 255, 0.1);
  transition: transform 0.3s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 20px 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

.faq details[open] p {
  animation: faq-in 0.35s var(--ease);
}

@keyframes faq-in {
  from { opacity: 0; transform: translateY(-6px); }
}

/* ---------- Final CTA ---------- */

.cta {
  position: relative;
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 36px;
  overflow: hidden;
  background:
    radial-gradient(600px 300px at 20% 100%, rgba(236, 72, 153, 0.25), transparent 60%),
    radial-gradient(700px 360px at 90% 0%, rgba(10, 132, 255, 0.35), transparent 60%),
    linear-gradient(160deg, #0b1a3a, #050d22);
  border: 1px solid var(--border-strong);
}

.cta-mascot {
  width: 150px;
  height: auto;
  mix-blend-mode: lighten;
  mask-image: radial-gradient(ellipse 50% 46% at 48% 62%, #000 62%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 50% 46% at 48% 62%, #000 62%, transparent 100%);
  margin: -20px 0 -10px;
  animation: bob 5s ease-in-out infinite;
}

.cta-copy {
  display: grid;
  gap: 14px;
  justify-items: center;
}

.cta h2 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.cta p {
  color: var(--muted);
  max-width: 30em;
}

.cta .store-badges {
  justify-content: center;
  margin-top: 8px;
}

@media (min-width: 820px) {
  .cta {
    grid-template-columns: 240px 1fr;
    text-align: left;
    align-items: center;
    gap: 32px;
  }

  .cta-mascot {
    width: 240px;
    margin: -40px 0 -60px;
  }

  .cta-copy {
    justify-items: start;
  }

  .cta .store-badges {
    justify-content: flex-start;
  }
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 28px;
  margin-top: 24px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.footer-links a {
  color: var(--dim);
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- Scroll reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
  transition-delay: var(--d, 0ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .js .reveal,
  .js [data-play] .step {
    opacity: 1;
    transform: none;
  }

  .js [data-play]:not(.is-playing) .ring-fill {
    stroke-dashoffset: calc(314.16 * (1 - var(--p) / 100));
  }
}
