/* The landing page. Loaded after site.css, which brings the base, the buttons,
   the waitlist form and the footer.

   One idea carries it: the sky from the app's Today screen, periwinkle at the
   top and an apricot glow at the horizon, with the phone standing in it. The rest
   stays quiet: New York for headlines, SF Pro for text, ink for buttons. */

.home {
  --paper: #f4f2f3;
  --ink: #2e2126;
  --ink-2: #6e5d63;
  --ink-3: #a5949a;
  --dusk: #a7b7f1;
  --lilac: #c6b3ef;
  --apricot: #f8c6a0;
  --rose: #f3bccb;
  --glass: rgb(255 255 255 / 0.68);
  --glass-edge: rgb(255 255 255 / 0.85);
  --float-shadow: 0 1px 1px rgb(46 33 38 / 0.04), 0 18px 40px -14px rgb(46 33 38 / 0.22);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --phone: clamp(250px, 24vw, 330px);
  --frame: clamp(10px, 1.2vw, 16px);

  background: var(--paper);
  color: var(--ink);
}
.home main > section { overflow-x: visible; }

/* A fine grain over the skies, so the gradients read as light, not as fills. */
.sky::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.18; mix-blend-mode: soft-light;
}

/* Section titles share one voice. */
.section-title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.375rem, 4.4vw, 3.875rem); line-height: 1.04; letter-spacing: -0.028em;
  text-wrap: balance; margin: 0;
}

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

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  margin: var(--frame); border-radius: clamp(28px, 3vw, 44px);
  min-height: calc(100svh - 2 * var(--frame));
  display: flex; flex-direction: column;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.6);
}

.sky { position: absolute; inset: 0; z-index: -1; overflow: hidden;
  background: linear-gradient(180deg, #eef0f9 0%, #e9e8f6 38%, #efe3ec 70%, #f7e2d6 100%); }
.blob { position: absolute; border-radius: 50%; }
.b1 { width: 70vw; height: 70vw; left: -22vw; bottom: -30vw; background: radial-gradient(closest-side, rgb(150 168 240 / 0.9), rgb(150 168 240 / 0)); }
.b2 { width: 55vw; height: 55vw; left: 6vw; top: -18vw; background: radial-gradient(closest-side, rgb(198 179 239 / 0.75), rgb(198 179 239 / 0)); }
.b3 { width: 70vw; height: 70vw; right: -24vw; bottom: -32vw; background: radial-gradient(closest-side, rgb(250 196 152 / 0.95), rgb(250 196 152 / 0)); }
.b4 { width: 46vw; height: 46vw; right: 2vw; top: -10vw; background: radial-gradient(closest-side, rgb(243 188 203 / 0.65), rgb(243 188 203 / 0)); }

/* Nav */
.home .nav {
  position: relative; z-index: 5;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  max-width: none; width: 100%; margin: 0;
  padding: clamp(16px, 2vw, 26px) clamp(18px, 3vw, 40px);
}
.home .brand { font-size: 1.375rem; font-weight: 500; gap: 10px; }
.home .brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 2px 10px rgb(46 33 38 / 0.14); }
.nav-links { display: flex; gap: clamp(18px, 2.4vw, 34px); }
.nav-links a {
  position: relative; text-decoration: none; font-size: 0.9375rem; font-weight: 500; color: var(--ink);
  padding: 6px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; border-radius: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.35s var(--ease-out);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-end { justify-self: end; display: flex; align-items: center; gap: 8px; }
.home .nav .button-small { min-height: 42px; }

/* Language menu: a disclosure, so it works without script too. */
.lang-menu { position: relative; }
.lang-menu summary {
  list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  min-height: 42px; padding: 0 12px; border-radius: 999px;
  font-size: 0.9375rem; font-weight: 500; color: var(--ink);
  transition: background-color 0.2s ease;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { background: rgb(255 255 255 / 0.55); }
.lang-menu svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lang-menu .chev { width: 14px; height: 14px; transition: transform 0.25s var(--ease-out); }
.lang-menu[open] .chev { transform: rotate(180deg); }
.lang-menu .langs {
  position: absolute; right: 0; top: calc(100% + 8px); width: max-content;
  display: grid; grid-template-columns: repeat(2, minmax(130px, auto)); gap: 2px; padding: 6px;
  background: rgb(255 255 255 / 0.86); border-radius: 18px;
  -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: inset 0 0 0 1px var(--glass-edge), var(--float-shadow);
  font-size: 0.9375rem;
  transform-origin: top right; animation: menu-in 0.28s var(--ease-out);
}
.lang-menu .langs a { padding: 9px 12px; border-radius: 12px; text-decoration: none; font-weight: 500; color: var(--ink); }
.lang-menu .langs a:hover { background: rgb(46 33 38 / 0.05); }
.lang-menu .langs a[aria-current="page"] { font-weight: 600; background: rgb(46 33 38 / 0.06); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px) scale(0.97); } }

/* Copy */
.hero-copy {
  /* Under the stage: as she scrolls, the phone rises over the form, not behind it. */
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(12px, 3.6vh, 52px) var(--gutter) 0;
}
.soon-line {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-edge);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  font-size: 0.875rem; font-weight: 500;
}
.i-apple { width: 13px; height: 15px; margin-top: -2px; }
.hero-title {
  margin: clamp(18px, 2.6vh, 28px) 0 0;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(3rem, min(6.8vw, 10.5vh), 6.75rem); line-height: 0.96; letter-spacing: -0.04em;
}
.hero-title .line { display: block; }
.lede {
  max-width: 31ch; margin-top: clamp(16px, 2.2vh, 24px);
  font-size: clamp(1.0625rem, 1.35vw, 1.25rem); line-height: 1.5; color: var(--ink-2);
}

/* The waitlist field: one pill with the button inside it. */
.home .waitlist { width: min(100%, 30rem); margin-top: clamp(22px, 3.2vh, 32px); }
.home .waitlist-row {
  flex-wrap: nowrap; gap: 0; padding: 6px;
  background: rgb(255 255 255 / 0.82); border-radius: 999px;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: inset 0 0 0 1px var(--glass-edge), 0 12px 30px -12px rgb(46 33 38 / 0.25);
  transition: box-shadow 0.25s ease;
}
.home .waitlist-row:focus-within { box-shadow: inset 0 0 0 1px var(--glass-edge), 0 0 0 4px rgb(46 33 38 / 0.08), 0 12px 30px -12px rgb(46 33 38 / 0.25); }
.home .waitlist input[type="email"] {
  flex: 1 1 auto; min-height: 50px; padding: 0 8px 0 18px;
  border: 0; background: transparent; box-shadow: none; font-size: 1rem;
}
.home .waitlist input[type="email"]:focus-visible { outline: none; }
.home .waitlist .button { min-height: 50px; padding: 0 22px; font-size: 0.9688rem; }
.home .waitlist-note { margin-top: 12px; font-size: 0.8438rem; font-weight: 400; color: var(--ink-2); }
.home .waitlist-note:empty { display: none; }
.home .waitlist.is-error .waitlist-row { box-shadow: inset 0 0 0 1.5px var(--limit), 0 12px 30px -12px rgb(46 33 38 / 0.25); }
.home .waitlist.is-joined .waitlist-note { text-align: left; border-radius: 24px; box-shadow: var(--float-shadow); }
.home .count-line { font-weight: 500; font-size: 0.875rem; color: var(--ink-2); }

/* The stage: the phone stands in the sky, cut off by the frame. */
.stage {
  position: relative; z-index: 2; flex: 1 0 auto;
  height: calc(var(--phone) * 1.62); margin-top: clamp(22px, 3.6vh, 48px);
}
.stage-inner {
  position: absolute; left: 50%; top: 0; width: var(--phone); margin-left: calc(var(--phone) / -2);
  transform-style: preserve-3d; will-change: transform;
}

/* A plain iPhone, drawn in CSS: titanium edge, black bezel, the island. */
.device {
  position: relative; padding: 3.3%;
  border-radius: 17% / 7.85%;
  background: linear-gradient(140deg, #5b5b61 0%, #232326 10%, #0d0d0f 40%, #18181b 80%, #4d4d53 100%);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.22),
    inset 0 0 0 3.5px #0a0a0b,
    0 1px 2px rgb(46 33 38 / 0.2),
    0 40px 70px -24px rgb(46 33 38 / 0.45),
    0 80px 120px -60px rgb(70 60 120 / 0.45);
}
.device::before, .device::after {
  content: ""; position: absolute; width: 1.1%; border-radius: 2px; background: #2a2a2e;
}
.device::before { left: -0.9%; top: 17%; height: 5.5%; box-shadow: 0 calc(var(--phone) * 0.2) 0 #2a2a2e; }
.device::after { right: -0.9%; top: 24%; height: 9%; }
.device-screen {
  position: relative; overflow: hidden; background: #000;
  border-radius: 14% / 6.45%; aspect-ratio: 750 / 1631;
  transform: translateZ(0);
}
.device-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.device-island {
  position: absolute; z-index: 2; left: 34.3%; top: 1.6%; width: 31.4%; height: 4.2%;
  border-radius: 999px; background: #050506;
}

/* Pieces of the app around the phone, in the app's glass. */
.float {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 12px; border-radius: 22px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
  box-shadow: inset 0 0 0 1px var(--glass-edge), var(--float-shadow);
  will-change: transform;
}
.f-text { display: grid; gap: 1px; text-align: left; }
.f-text strong { font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.f-text span { font-size: 0.8125rem; color: var(--ink-2); white-space: nowrap; }

.f-phase { right: calc(50% + var(--phone) * 0.43); top: 9%; }
.f-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; }
.f-icon svg { width: 22px; height: 22px; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.f-icon-luteal { background: #ece3f2; color: #84639f; }
.f-icon-luteal svg { stroke: currentColor; }

.f-food { left: calc(50% + var(--phone) * 0.4); top: 21%; padding: 10px 18px 10px 10px; }
.f-food img { width: 48px; height: 48px; filter: drop-shadow(0 4px 6px rgb(46 33 38 / 0.18)); }

.f-score { right: calc(50% + var(--phone) * 0.47); top: 48%; }
.score-ring { width: 44px; height: 44px; fill: none; stroke-width: 4.5; }
.score-ring circle { stroke: rgb(63 127 82 / 0.15); }
.score-ring .score-arc { stroke: #3f7f52; stroke-linecap: round; }
.score-num { position: absolute; left: 12px; width: 44px; text-align: center; font-size: 0.9375rem; font-weight: 700; letter-spacing: -0.02em; }

.f-streak { left: calc(50% + var(--phone) * 0.52); top: 55%; padding: 10px 18px 10px 10px; border-radius: 999px; gap: 10px; }
.f-streak strong { font-size: 0.9375rem; font-weight: 600; white-space: nowrap; }
.f-check { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #84639f; }
.f-check svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Story ------------------------------------------------------------------------- */

.story { max-width: 1160px; margin: 0 auto; padding: clamp(96px, 12vw, 168px) var(--gutter) clamp(40px, 6vw, 80px); }
.story > .section-title { text-align: center; max-width: 14em; margin: 0 auto; }
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; margin-top: clamp(24px, 4vw, 48px); }
.steps { list-style: none; margin: 0; padding: 0; }
.step {
  min-height: 78vh; display: flex; flex-direction: column; justify-content: center;
  padding-left: clamp(0px, 4vw, 56px);
  transition: opacity 0.5s ease;
}
.js .step { opacity: 0.22; }
.js .step.is-active { opacity: 1; }
.step-tab { display: inline-flex; align-items: center; gap: 10px; font-size: 0.9375rem; font-weight: 600; color: var(--ink-2); }
.tab-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: #fff; box-shadow: 0 1px 2px rgb(46 33 38 / 0.06), 0 6px 16px -8px rgb(46 33 38 / 0.2); }
.tab-icon svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.step h3 {
  margin: 18px 0 0; font-family: var(--display); font-weight: 400;
  font-size: clamp(2rem, 3.2vw, 2.875rem); line-height: 1.05; letter-spacing: -0.025em; max-width: 12em;
}
.step-line { margin-top: 14px; max-width: 30ch; font-size: 1.125rem; line-height: 1.5; color: var(--ink-2); }
.step-device { display: none; }

.story-stage { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; }
.story-device { width: var(--phone); }
.story-glow {
  position: absolute; width: 130%; aspect-ratio: 1; border-radius: 50%;
  background: var(--glow, #c9c3ef); filter: blur(80px); opacity: 0.55;
  transition: background-color 0.9s ease;
}
.story-screen { opacity: 0; transition: opacity 0.55s ease, transform 0.8s var(--ease-out); }
.story-screen.is-active { opacity: 1; transform: none; }
.js .story-screen { transform: translateY(5%) scale(1.02); }
.js .story-screen.is-past { transform: translateY(-5%) scale(0.98); }
.js .story-screen.is-active { transform: none; }
.story-screen:first-of-type { opacity: 1; }
.js .story-screen:first-of-type:not(.is-active) { opacity: 0; }

/* Phases ------------------------------------------------------------------------- */

.phases {
  --accent: #84639f; --soft: #ece3f2;
  position: relative; max-width: none;
  margin: clamp(40px, 6vw, 80px) var(--frame); padding: clamp(64px, 9vw, 120px) var(--gutter);
  border-radius: clamp(28px, 3vw, 44px);
  background: color-mix(in srgb, var(--soft) 70%, var(--paper));
  transition: background-color 0.8s ease;
}
.phases[data-active="menstrual"] { --accent: #c04f68; --soft: #f7e2e7; }
.phases[data-active="follicular"] { --accent: #5f9268; --soft: #e3eee4; }
.phases[data-active="ovulatory"] { --accent: #d98844; --soft: #fae8d8; }
.phases[data-active="luteal"] { --accent: #84639f; --soft: #ece3f2; }
.phases-head { text-align: center; max-width: 40rem; margin: 0 auto; }
.phases-intro { max-width: 34rem; margin: 16px auto 0; color: var(--ink-2); font-size: 1.0625rem; text-wrap: balance; }
.phases-intro a { color: var(--ink); text-underline-offset: 3px; }

.phases-body {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center;
  gap: clamp(32px, 6vw, 96px); max-width: 1040px; margin: clamp(40px, 6vw, 72px) auto 0;
}
.ring-wrap { position: relative; width: min(100%, 420px); justify-self: center; }
.ring { display: block; width: 100%; overflow: visible; }
.ring circle { fill: none; }
.ring-track { stroke: rgb(46 33 38 / 0.05); stroke-width: 14; }
.arc { stroke-width: 14; stroke-linecap: round; opacity: 0.28; cursor: pointer; transition: opacity 0.5s ease, stroke-width 0.5s var(--ease-out); }
.arc-menstrual { stroke: #c04f68; } .arc-follicular { stroke: #5f9268; }
.arc-ovulatory { stroke: #d98844; } .arc-luteal { stroke: #84639f; }
.arc:hover { opacity: 0.55; }
.arc.is-active { opacity: 1; stroke-width: 16; }
.knob { transform-origin: 100px 100px; transform: rotate(var(--angle)); transition: transform 0.9s var(--ease-in-out); }
.knob circle { fill: #fff; stroke: none; filter: drop-shadow(0 2px 4px rgb(46 33 38 / 0.25)); }
.ring-centre { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; pointer-events: none; }
.ring-label { grid-area: 1 / 1; display: grid; gap: 6px; }
.ring-label:not([hidden]) { animation: label-in 0.6s var(--ease-out); }
.ring-name { font-family: var(--display); font-size: clamp(2rem, 3.6vw, 2.875rem); line-height: 1; letter-spacing: -0.025em; color: color-mix(in srgb, var(--accent) 80%, var(--ink)); }
.ring-days { font-size: 0.9375rem; color: var(--ink-2); }
@keyframes label-in { from { opacity: 0; transform: translateY(8px); filter: blur(4px); } }

.phase-tabs {
  display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; border-radius: 999px;
  background: rgb(255 255 255 / 0.6); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.8);
}
.phase-tab {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font: 500 0.9375rem var(--text); color: var(--ink-2);
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.phase-tab:hover { color: var(--ink); }
.phase-tab[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgb(46 33 38 / 0.06), 0 6px 16px -8px rgb(46 33 38 / 0.25); }
.phase-tab .dot { width: 8px; height: 8px; border-radius: 50%; }
.phase-tab[data-phase="menstrual"] .dot { background: #c04f68; }
.phase-tab[data-phase="follicular"] .dot { background: #5f9268; }
.phase-tab[data-phase="ovulatory"] .dot { background: #d98844; }
.phase-tab[data-phase="luteal"] .dot { background: #84639f; }

.phase-panel { margin-top: 32px; min-height: 19rem; }
.panel-when { font-size: 0.9375rem; font-weight: 500; color: color-mix(in srgb, var(--accent) 75%, var(--ink)); }
.panel-line { margin-top: 8px; font-family: var(--display); font-size: clamp(1.75rem, 2.8vw, 2.5rem); line-height: 1.1; letter-spacing: -0.02em; max-width: 14em; }
.foods { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; padding: 0; }
.foods li {
  display: grid; justify-items: center; gap: 6px; width: 116px; padding: 14px 8px 12px;
  border-radius: 22px; background: rgb(255 255 255 / 0.7);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.9), 0 10px 24px -16px rgb(46 33 38 / 0.35);
  font-size: 0.875rem; font-weight: 500; text-align: center;
}
.foods img { width: 72px; height: 72px; filter: drop-shadow(0 6px 8px rgb(46 33 38 / 0.16)); }
.panel-link {
  display: inline-block; margin-top: 26px; font-weight: 600; font-size: 0.9688rem; color: var(--ink);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
}
.panel-link:hover { text-decoration-thickness: 2px; }

/* Proof -------------------------------------------------------------------------- */

.proof { max-width: 1040px; margin: 0 auto; padding: clamp(72px, 10vw, 136px) var(--gutter); text-align: center; }
.proof-line { max-width: 34rem; text-wrap: balance; margin: 16px auto 0; color: var(--ink-2); font-size: 1.0625rem; }
.logos {
  list-style: none; margin: clamp(36px, 5vw, 56px) 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px clamp(28px, 4.5vw, 56px);
}
.logos img { width: auto; height: 30px; filter: grayscale(1) contrast(1.2); opacity: 0.5; mix-blend-mode: multiply; transition: opacity 0.3s ease, filter 0.3s ease; }
.logos img:hover { opacity: 0.9; filter: none; }
.logos .logo-springer, .logos .logo-lancet { height: 17px; }
.logos .logo-elsevier, .logos .logo-nejm { height: 22px; }
.logos .logo-wiley { height: 22px; }
.logos .logo-oxford, .logos .logo-cochrane, .logos .logo-who { height: 34px; }
.proof-private { display: inline-flex; align-items: center; gap: 8px; margin-top: clamp(40px, 5vw, 56px); font-size: 0.9375rem; color: var(--ink-2); }
.proof-private svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Questions ---------------------------------------------------------------------- */

.faq { max-width: 46rem; margin: 0 auto; padding: 0 var(--gutter) clamp(72px, 10vw, 128px); }
.faq > .section-title { text-align: center; }
.faq-list { margin-top: clamp(28px, 4vw, 44px); border-top: 1px solid rgb(46 33 38 / 0.1); }
.faq-item { border-bottom: 1px solid rgb(46 33 38 / 0.1); }
.faq-item summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 4px; cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item h3 { margin: 0; font-family: var(--text); font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; }
.faq-icon { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(46 33 38 / 0.08); transition: background-color 0.25s ease; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.6px; border-radius: 2px;
  background: var(--ink); translate: -50% -50%; transition: rotate 0.35s var(--ease-out);
}
.faq-icon::after { rotate: 90deg; }
.faq-item[open] .faq-icon { background: var(--ink); }
.faq-item[open] .faq-icon::before, .faq-item[open] .faq-icon::after { background: #fff; }
.faq-item[open] .faq-icon::after { rotate: 0deg; }
.faq-item summary:hover .faq-icon { box-shadow: 0 1px 2px rgb(46 33 38 / 0.08), 0 0 0 4px rgb(46 33 38 / 0.05); }
.faq-item p { margin: -6px 0 0; padding: 0 52px 24px 4px; color: var(--ink-2); font-size: 1.0625rem; line-height: 1.6; }
@media (prefers-reduced-motion: no-preference) {
  .faq-item[open] p { animation: label-in 0.45s var(--ease-out); }
}

/* Get ---------------------------------------------------------------------------- */

.home .get { max-width: none; margin: 0 var(--frame); padding: 0 0 clamp(48px, 6vw, 80px); }
.get-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(64px, 9vw, 128px) var(--gutter); border-radius: clamp(28px, 3vw, 44px);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.6);
}
.sky-get { background: linear-gradient(180deg, #f7e2d6 0%, #efe3ec 45%, #e9e8f6 100%); }
.sky-get .b1 { left: -20vw; bottom: auto; top: -40vw; }
.sky-get .b3 { right: -20vw; bottom: -46vw; }
.sky-get .b2 { left: auto; right: 10vw; top: auto; bottom: -30vw; }
.get-icon { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 2px 4px rgb(46 33 38 / 0.08), 0 20px 40px -16px rgb(46 33 38 / 0.35); margin-bottom: 28px; }
.get-line { max-width: 30ch; margin-top: 14px; font-size: 1.125rem; color: var(--ink-2); }

/* Footer */
.home .footer { padding-top: clamp(24px, 3vw, 40px); }

/* Motion ------------------------------------------------------------------------- */
/* One orchestrated arrival: the sky opens, the words come into focus, the phone
   rises out of the horizon and the pieces of the app drift out from behind it.
   After that, nothing moves unless she scrolls, points or picks a phase. */

@media (prefers-reduced-motion: no-preference) {
  .js .blob { animation: bloom 2.2s var(--ease-out) both; }
  .js .b2 { animation-delay: 0.1s; } .js .b3 { animation-delay: 0.15s; } .js .b4 { animation-delay: 0.25s; }
  .js .hero .nav { animation: focus-in 0.9s var(--ease-out) 0.1s both; }
  .js .soon-line { animation: focus-in 0.9s var(--ease-out) 0.15s both; }
  .js .hero-title .line { animation: focus-in 1.1s var(--ease-out) both; }
  .js .hero-title .line:first-child { animation-delay: 0.22s; }
  .js .hero-title .line:last-child { animation-delay: 0.34s; }
  .js .lede { animation: focus-in 1s var(--ease-out) 0.48s both; }
  .js .hero .waitlist, .js .hero .count-line { animation: focus-in 1s var(--ease-out) 0.58s both; }
  .js .hero-device { animation: rise-up 1.2s var(--ease-out) 0.2s both; }
  .js .float { animation: drift-out 1.2s var(--ease-out) both; }
  .js .f-phase { animation-delay: 1.15s; --from-x: 60px; }
  .js .f-food { animation-delay: 1.3s; --from-x: -60px; }
  .js .f-score { animation-delay: 1.42s; --from-x: 70px; }
  .js .f-streak { animation-delay: 1.55s; --from-x: -70px; }

  /* Below the hero: each title comes into focus once, as it arrives. */
  .js .reveal { opacity: 0; transform: translateY(24px); filter: blur(6px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out), filter 1s var(--ease-out); }
  .js .reveal.is-in { opacity: 1; transform: none; filter: none; }

  /* A new phase: its foods drop in, one after the other. */
  .phase-panel:not([hidden]) .foods li { animation: food-in 0.7s var(--ease-out) both; }
  .phase-panel:not([hidden]) .foods li:nth-child(2) { animation-delay: 0.07s; }
  .phase-panel:not([hidden]) .foods li:nth-child(3) { animation-delay: 0.14s; }
  .phase-panel:not([hidden]) .panel-line { animation: label-in 0.6s var(--ease-out) both; }
}
@keyframes bloom { from { opacity: 0; transform: scale(0.8); } }
@keyframes focus-in { from { opacity: 0; transform: translateY(18px); filter: blur(10px); } }
/* Transform only: the phone paints in the first frame (it's the page's largest
   image, so fading it in would hold back LCP) and rises out of the horizon. */
@keyframes rise-up { from { transform: translateY(42%); } }
@keyframes drift-out { from { opacity: 0; transform: translateX(var(--from-x, 0)) scale(0.86); filter: blur(6px); } }
@keyframes food-in { from { opacity: 0; transform: translateY(14px) scale(0.9); } }

/* Responsive --------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .f-food { left: calc(50% + var(--phone) * 0.36); }
  .f-streak { left: calc(50% + var(--phone) * 0.42); }
  .f-score { right: calc(50% + var(--phone) * 0.4); }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .home .nav { grid-template-columns: 1fr auto; }
  .lang-current { display: none; }

  /* The steps become a row of phones to swipe through. */
  .story-grid { display: block; }
  .story-stage { display: none; }
  .steps {
    display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 320px); gap: 18px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 calc(-1 * var(--gutter)); padding: 8px var(--gutter) 24px;
  }
  .steps::-webkit-scrollbar { display: none; }
  .step, .js .step { min-height: 0; padding: 0; opacity: 1; justify-content: flex-start; scroll-snap-align: center; }
  .step h3 { font-size: 1.75rem; margin-top: 14px; }
  .step-line { font-size: 1rem; margin-top: 8px; }
  .step-device { display: block; width: 78%; margin-top: 24px; }

  .phases-body { grid-template-columns: 1fr; }
  .phase-side { text-align: center; }
  .phase-tabs { justify-content: center; }
  .panel-line { margin-left: auto; margin-right: auto; }
  .foods { justify-content: center; }
  .ring-wrap { width: min(100%, 320px); }
}

@media (max-width: 640px) {
  .home { --phone: min(64vw, 270px); }
  .hero-title { font-size: clamp(2.6rem, 13.4vw, 4rem); }
  .stage { margin-top: 36px; height: calc(var(--phone) * 1.5); }
  .float { padding: 8px 12px 8px 8px; gap: 8px; border-radius: 16px; }
  .f-text strong { font-size: 0.8125rem; }
  .f-text span { display: none; }
  .f-icon { width: 30px; height: 30px; border-radius: 10px; }
  .f-icon svg { width: 18px; height: 18px; }
  .lang-menu { display: none; }
  .f-phase { right: auto; left: 12px; top: 14%; }
  .f-food { left: auto; right: 12px; top: 32%; }
  .f-food img { width: 34px; height: 34px; }
  .f-score { display: none; }
  .f-streak { left: 16px; top: 56%; padding: 6px 12px 6px 6px; }
  .f-streak strong { font-size: 0.8125rem; white-space: nowrap; }
  .f-check { width: 24px; height: 24px; }
  .f-check svg { width: 15px; height: 15px; }
  .home .waitlist .button { padding: 0 16px; font-size: 0.9063rem; }
  .home .waitlist input[type="email"] { padding-left: 14px; font-size: 0.9375rem; }
  .foods li { width: 96px; }
  .foods img { width: 58px; height: 58px; }
  .phase-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; gap: 2px; }
  .phase-tab { justify-content: center; padding: 0 4px; font-size: 0.8125rem; }
  .phase-tab .dot { display: none; }
  .phase-panel { min-height: 0; }
  .logos { gap: 22px 28px; }
}

@media (max-width: 380px) {
  /* Too narrow for the button inside the field: they stack. */
  .home .waitlist-row { flex-wrap: wrap; gap: 6px; background: transparent; box-shadow: none; padding: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .home .waitlist input[type="email"] { flex-basis: 100%; background: rgb(255 255 255 / 0.85); border-radius: 999px; box-shadow: inset 0 0 0 1px var(--glass-edge); padding-left: 18px; }
  .home .waitlist .button { flex: 1 1 100%; }
  .home .nav .button-small { padding: 0 12px; font-size: 0.8125rem; }
}
