@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --night: #0E2B28;
  --pine: #1E5E58;
  --mint: #7CC5B9;
  --cream: #FFF7EA;
  --ink: #10302C;
  --sun: #FFC23D;
  --muted: #56706c;
  --line: #e8dcc6;
  --measure: 34rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.1875rem/1.6 "Nunito", ui-rounded, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-weight: 900; letter-spacing: -0.02em; line-height: 1.05; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.5rem; }
.kicker { font-weight: 800; font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pine); margin-bottom: 0.75rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--cream); padding: 0.5rem 1rem; border-radius: 999px; }
.button {
  display: inline-block; margin-top: 1.75rem; padding: 0.95rem 1.6rem; border-radius: 999px;
  background: var(--sun); color: var(--ink); font-weight: 800; text-decoration: none; min-height: 44px;
  transition: transform 0.2s;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible, a:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }

/* ── 1 · Dawn ───────────────────────────────────────────────── */
.dawn { position: relative; height: 340vh; background: var(--night); color: var(--cream); }
.dawn-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center;
  gap: 4vw; padding: 0 6vw;
  background: var(--sky, var(--night));
}
.mark { width: min(38vw, 30rem); justify-self: center; overflow: visible; }
.mark-arm { fill: none; stroke: var(--cream); stroke-width: 136; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--arms, 1)); }
.mark-sun { fill: var(--sun); transform: translateY(calc((1 - var(--rise, 1)) * 420px)); }
.dawn-lines { position: relative; min-height: 22rem; }
.line { position: absolute; inset: auto 0 auto 0; top: 50%; transform: translateY(-50%);
  font-size: clamp(1.6rem, 3.2vw, 2.6rem); font-weight: 800; line-height: 1.2; max-width: 30rem; }
.line em { font-style: normal; color: var(--sun); }
.final h1 { font-size: clamp(3.5rem, 9vw, 7rem); }
.final h1 span { color: var(--sun); }
.final p { font-size: clamp(1.15rem, 1.8vw, 1.4rem); font-weight: 600; margin-top: 1rem; color: #e9efe9; }
.cue { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); font-size: 0.85rem;
  letter-spacing: 0.12em; text-transform: uppercase; opacity: calc(1 - var(--p, 0) * 6); }
.js .line { opacity: 0; transition: opacity 0.5s, transform 0.5s; transform: translateY(calc(-50% + 1rem)); }
.js .line.on { opacity: 1; transform: translateY(-50%); }
.js .line:not(.on) { pointer-events: none; visibility: hidden; transition: opacity 0.5s, transform 0.5s, visibility 0s 0.5s; }

/* ── 2 · Story ───────────────────────────────────────────────── */
.story { padding: 18vh 0 10vh; }
.story-head { max-width: 68rem; margin: 0 auto 4rem; padding: 0 1.5rem; }
.story-head h2 { max-width: 16ch; }
.story-grid { max-width: 68rem; margin: 0 auto; padding: 0 1.5rem;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 4rem; }
.steps { list-style: none; margin: 0; padding: 0; }
.step { min-height: 82vh; display: flex; flex-direction: column; justify-content: center; max-width: var(--measure);
  opacity: 0.3; transition: opacity 0.4s; }
.step.on, .no-js .step { opacity: 1; }
.num { font-weight: 900; font-size: 1rem; color: var(--pine); letter-spacing: 0.06em; margin-bottom: 0.75rem;
  display: inline-flex; align-items: center; gap: 0.6rem; }
.num::after { content: ""; width: 2.5rem; height: 3px; border-radius: 2px; background: var(--sun); }
.step p { margin-top: 1rem; color: #2c4a46; }
.inline-shot { display: none; }
.phone-rail { position: relative; }
.phone { position: sticky; top: 9vh; height: 82vh; aspect-ratio: 414 / 900; max-width: 100%; margin: 0 auto;
  border-radius: 3rem; background: var(--ink); padding: 0.6rem; }
.phone img { position: absolute; inset: 0.6rem; width: calc(100% - 1.2rem); height: calc(100% - 1.2rem);
  object-fit: cover; object-position: top; border-radius: 2.4rem; opacity: 0; transition: opacity 0.45s; }
.phone img.on { opacity: 1; }

/* ── 3 · Sunny ───────────────────────────────────────────────── */
.sunny { position: relative; height: 460vh; background: var(--cream); border-top: 1px solid var(--line); }
.sunny-stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; align-content: center; gap: 3rem;
  max-width: 68rem; margin: 0 auto; padding: 0 1.5rem; }
.sunny .lede { max-width: 40rem; margin-top: 1rem; color: #2c4a46; }
.sunny-scene { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3rem; align-items: center; }
.sunny-figure { position: relative; width: clamp(10rem, 22vw, 17rem); aspect-ratio: 1; }
.sunny-figure::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--sun); opacity: 0.18; }
.sunny-figure img { position: absolute; inset: -8%; width: 116%; max-width: none; opacity: 0; transform: scale(0.94); transition: opacity 0.35s, transform 0.45s cubic-bezier(.3, 1.5, .5, 1); }
.sunny-figure img.on { opacity: 1; transform: none; }
.says { list-style: none; margin: 0; padding: 0; position: relative; min-height: 12rem; }
.says li { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 0.8rem;
  opacity: 0; transform: translateY(0.75rem); transition: opacity 0.35s, transform 0.35s; }
.says li.on { opacity: 1; transform: none; }
.when { font-size: 0.95rem; font-weight: 800; color: var(--muted); }
.says q { quotes: none; font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; line-height: 1.2; max-width: 22ch;
  background: #fff; border: 1px solid var(--line); border-radius: 1.75rem 1.75rem 1.75rem 0.4rem; padding: 1.25rem 1.5rem; }
.no-js .sunny, .no-js .dawn { height: auto; }
.no-js .says li { position: static; opacity: 1; transform: none; margin-bottom: 1.5rem; }
.no-js .sunny-stage, .no-js .dawn-stage { position: static; height: auto; padding-block: 15vh; }

/* ── 4 · Private ─────────────────────────────────────────────── */
.private { background: var(--pine); color: var(--cream); padding: 16vh 0; }
.private .kicker { color: var(--sun); }
.private dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 4rem; margin: 3.5rem 0; }
.private dl div { border-top: 2px solid rgba(255, 247, 234, 0.25); padding-top: 1.25rem; }
.private dt { font-weight: 900; font-size: 1.45rem; line-height: 1.2; }
.private dd { margin: 0.6rem 0 0; color: #d8e8e3; }
.private a { color: var(--sun); font-weight: 800; }

/* ── 5 · Morning ─────────────────────────────────────────────── */
.morning { padding: 20vh 0 18vh; text-align: left; }
.morning .wrap { max-width: 44rem; }
.morning h2 { margin-top: 2rem; font-size: clamp(2.6rem, 6vw, 4.4rem); }
.morning p { margin-top: 1.25rem; font-size: 1.25rem; color: #2c4a46; }
.foot { border-top: 1px solid var(--line); padding: 2rem 0 3rem; font-size: 0.95rem; color: var(--muted); }
.foot .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.foot nav { display: flex; gap: 1.5rem; }

/* ── Small screens: one column; screenshots inline with their step ── */
@media (max-width: 860px) {
  .dawn-stage { grid-template-columns: 1fr; grid-template-rows: auto 1fr; padding: 12vh 1.5rem 4rem; align-items: start; gap: 2rem; }
  .mark { width: min(50vw, 14rem); }
  .dawn-lines { min-height: 16rem; }
  .line { top: 0; transform: none; }
  .js .line, .js .line.on { transform: none; }
  .story-grid { grid-template-columns: 1fr; }
  .phone-rail { display: none; }
  .step { min-height: 0; opacity: 1; margin-bottom: 5rem; }
  .inline-shot { display: block; width: min(78vw, 20rem); margin-top: 2rem; border-radius: 2rem; border: 0.5rem solid var(--ink); }
  .sunny-scene { grid-template-columns: 1fr; gap: 1.5rem; }
  .sunny-stage { gap: 1.5rem; align-content: start; padding-top: 10vh; }
  .sunny-figure { width: 9rem; }
  .private dl { grid-template-columns: 1fr; }
}

/* ── Reduced motion: no scroll-driven scenes; everything simply readable ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dawn, .sunny { height: auto; }
  .dawn-stage, .sunny-stage { position: static; height: auto; padding-block: 14vh; }
  .js .line { position: static; opacity: 1; visibility: visible; transform: none; margin-bottom: 1.5rem; transition: none; }
  .mark-arm { stroke-dashoffset: 0; } .mark-sun { transform: none; }
  .cue { display: none; }
  .says li { position: static; opacity: 1; transform: none; margin-bottom: 1.5rem; transition: none; }
  .sunny-figure img { transition: none; }
  .step, .phone img, .button { transition: none; }
}

/* ── Policy and support pages ───────────────────────────────── */
.doc-top { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.doc-top .wrap { max-width: 44rem; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; font-weight: 900; font-size: 1.4rem; letter-spacing: -0.02em; }
.brand b { color: var(--pine); }
.doc { max-width: 44rem; padding-top: 4rem; padding-bottom: 6rem; }
.doc h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); }
.doc .lede { font-size: 1.3rem; margin-top: 1.25rem; color: #2c4a46; }
.doc h2 { font-size: 1.6rem; margin-top: 3rem; margin-bottom: 0.75rem; }
.doc p + p { margin-top: 0.9rem; }
.doc ul { padding-left: 1.25rem; margin: 0.75rem 0; }
.doc li { margin: 0.5rem 0; }
.doc a { color: var(--pine); font-weight: 700; }
.doc details { border-top: 1px solid var(--line); padding: 1rem 0; }
.doc details:last-of-type { border-bottom: 1px solid var(--line); }
.doc summary { font-weight: 800; cursor: pointer; font-size: 1.15rem; }
.doc details p { margin-top: 0.75rem; }
.gap { margin-top: 2rem; }

/* ── Store buttons (coming soon) ─────────────────────────────── */
.stores { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.store { display: inline-flex; flex-direction: column; justify-content: center; min-height: 3.6rem; min-width: 11.5rem;
  padding: 0.55rem 1.4rem; border-radius: 0.9rem; text-decoration: none; line-height: 1.1; transition: transform 0.2s; }
.store small { font-size: 0.78rem; font-weight: 700; opacity: 0.85; }
.store b { font-size: 1.35rem; font-weight: 900; letter-spacing: -0.01em; }
.store:hover { transform: translateY(-2px); }
.on-dark .store { background: var(--cream); color: var(--ink); }
.on-dark .store:first-child { background: var(--sun); }
.on-light .store { background: var(--ink); color: var(--cream); }
.on-light .store:first-child { background: var(--pine); }
.store-note { margin-top: 0.9rem; font-size: 0.98rem; font-weight: 600; }
.final .store-note { color: #d8e8e3; }
.final .store-note a { color: var(--sun); }
.morning .store-note { color: var(--muted); }
.morning .store-note a { color: var(--pine); font-weight: 800; }
@media (prefers-reduced-motion: reduce) { .store { transition: none; } }
