/* ============================================================
   Rewarding Habits — Ocean design system (v2)
   Light comes from the SKY (top). The page is one sunrise over
   water: it brightens as you scroll (Night -> Full Glory), with
   a rising sun + rays from the sun, waves at the CTAs (buttons
   float on them), and motion-reactive bioluminescence in the
   night water. Utility pages (privacy/support) stay light.
   ============================================================ */

:root {
  --teal: #14B8A6; --teal-bright: #4ECDC4; --teal-soft: #6C9FFF; --teal-deep: #0D4F4F;
  --gold: #D4A84B; --gold-light: #F5D89A; --sun: #FFE08A; --shimmer: #FFC878; --glitter: #FFE6B4;
  --cream: #FFFBF5; --charcoal: #1A1A2E; --gray: #6B7280;
  /* Canonical app gradient (matches in-app selected pills/hearts): bright turquoise -> golden yellow */
  --brand-grad: linear-gradient(100deg, #3FD9C2 0%, #74D88E 42%, #E9C75A 74%, #F6C544 100%);
  --brand-grad-soft: linear-gradient(100deg, rgba(63,217,194,.22), rgba(246,197,68,.22));
  --maxw: 1140px; --radius: 18px; --ease: cubic-bezier(0.22,1,0.36,1);
  --font-head: "DM Serif Display", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* ---- Golden-ratio typography (phi = 1.618) ----
     Modular scale stepped by sqrt(phi) ~= 1.272 from a 18px base, so sizes are
     proportionally coherent. Line-heights follow GRT: tight at display sizes,
     ~phi at body size; measure (line width) is capped near the golden ~66ch. */
  --phi: 1.618;
  --fs-base: 1.125rem;                 /* 18px body */
  --fs-sm:   0.884rem;                 /* base / sqrt(phi) ~ 14.1px */
  --fs-md:   1.431rem;                 /* base * sqrt(phi) ~ 22.9px */
  --fs-lg:   1.820rem;                 /* base * phi      ~ 29.1px */
  --fs-xl:   2.315rem;                 /* ~37px */
  --fs-2xl:  2.945rem;                 /* ~47px */
  --fs-3xl:  3.746rem;                 /* ~60px */
  --lh-body: 1.6;                      /* close to phi at body measure */
  --lh-lead: 1.55;
  --lh-head: 1.12;                     /* display leading: well under phi */
  --measure: 66ch;                     /* golden line length */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); font-size: var(--fs-base); line-height: var(--lh-body); color: var(--charcoal); background: var(--cream); overflow-x: hidden; }
img { max-width: 100%; display: block; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 400; line-height: var(--lh-head); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 6.2vw, var(--fs-3xl)); }
h2 { font-size: clamp(var(--fs-xl), 4.2vw, var(--fs-2xl)); line-height: 1.16; }
h3 { font-size: var(--fs-md); line-height: 1.3; }
p { max-width: var(--measure); }
a { color: var(--teal-deep); }

.container { max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: clamp(64px, 10vw, 132px); position: relative; overflow: hidden; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; font-weight: 700; color: var(--teal); font-family: var(--font-body); }
.lead { font-size: clamp(var(--fs-base), 2vw, var(--fs-md)); line-height: var(--lh-lead); }
.center { text-align: center; }
.center p { margin-inline: auto; }
.center .on-water { margin-inline: auto; }

/* Utility classes (replace former inline styles on support/privacy) */
.section-h2 { margin-top: calc(1.618 * 1.5rem); }       /* golden vertical rhythm */
.card-title, body:not(.scene) .card-title { font-size: var(--fs-md); margin-bottom: 6px; }
.card--accent { border-left: 4px solid var(--teal); }
.muted { color: var(--gray); }
.small { font-size: var(--fs-sm); }
.faq-list { margin-top: 24px; }
.faq-list details.card { margin-bottom: 14px; }
.faq-list summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style-position: inside; }
.faq-list summary::-webkit-details-marker { color: var(--teal); }
.faq-list details[open] summary { margin-bottom: 12px; }

.skip-link { position: absolute; left: 8px; top: -52px; z-index: 2000; background: var(--charcoal); color: #fff; padding: 10px 16px; border-radius: 8px; transition: top .2s var(--ease); }
.skip-link:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* Nav — with a subtle living aurora behind the glass */
nav { position: sticky; top: 0; z-index: 100; background: rgba(8,14,26,.62); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,.08); overflow: hidden; }
html { scroll-padding-top: 116px; }   /* so #anchor jumps land below the two sticky bars */
nav::before { content: ""; position: absolute; inset: -60% -20% auto -20%; height: 220%; pointer-events: none; z-index: 0; opacity: .5; filter: blur(26px);
  background:
    radial-gradient(38% 120% at 18% 40%, rgba(63,217,194,.5), transparent 70%),
    radial-gradient(40% 130% at 50% 30%, rgba(116,150,214,.42), transparent 70%),
    radial-gradient(38% 120% at 82% 50%, rgba(246,197,68,.4), transparent 70%);
  background-size: 200% 100%;
  animation: navAurora 18s ease-in-out infinite alternate; }
@keyframes navAurora { from { background-position: 0% 50%; transform: translateX(-3%) skewX(-4deg); } to { background-position: 100% 50%; transform: translateX(3%) skewX(4deg); } }
/* Living canvas aurora (curvy, flowing) — becomes the nav background when JS runs */
.nav-aurora { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.nav-aurora-on nav::before { display: none; }
.nav-aurora-on nav { background: transparent; border-bottom: none; }
.nav-content { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 13px 24px; max-width: var(--maxw); margin-inline: auto; }
@media (prefers-reduced-motion: reduce) { nav::before { animation: none; } }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 1.3rem; color: #fff; text-decoration: none; }
.logo img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { text-decoration: none; color: rgba(255,255,255,.82); font-weight: 500; font-size: .95rem; transition: color .2s var(--ease); }
.nav-links a:not(.btn):hover { color: var(--gold-light); }
.nav-links a.active { color: #fff; }

/* Hamburger toggle (hidden on desktop) */
.nav-toggle { display: none; position: relative; z-index: 2; background: none; border: 0; cursor: pointer; padding: 8px; margin: -8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s var(--ease); }
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  nav { overflow: visible; }                 /* let the dropdown panel escape the bar */
  nav .nav-aurora { /* keep the aurora clipped to the bar height even though nav overflows */ }
  /* Mobile: links collapse into a dropdown panel toggled by the hamburger */
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; z-index: 120; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(8,14,26,.98); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,.1); box-shadow: 0 18px 40px rgba(0,0,0,.45);
    padding: 8px 0; max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
  .nav-links.open { max-height: 380px; }
  .nav-links a { padding: 13px 24px; font-size: 1.05rem; }
  .nav-links a:not(.btn) { border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav-links .btn { margin: 12px 24px 8px; justify-content: center; }
}

/* Secondary sub-nav — in-page section jumps, sits under the primary nav.
   Carries a faint flowing aurora sheen (CSS) so it reads as one piece with the nav. */
.subnav { position: sticky; top: var(--nav-h, 58px); z-index: 90; background: rgba(8,14,26,.82); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,.08); overflow: hidden; }
.subnav::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .42; filter: blur(20px);
  background:
    radial-gradient(50% 160% at 16% 60%, rgba(63,217,194,.55), transparent 70%),
    radial-gradient(46% 150% at 52% 40%, rgba(110,150,220,.5), transparent 70%),
    radial-gradient(50% 160% at 86% 55%, rgba(246,197,68,.5), transparent 70%);
  background-size: 220% 100%;
  animation: subnavAurora 16s ease-in-out infinite alternate; }
@keyframes subnavAurora { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.subnav-inner { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .subnav::before { animation: none; } }
.subnav-inner { max-width: var(--maxw); margin-inline: auto; padding: 0 24px; display: flex; gap: 6px; align-items: center; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav a { white-space: nowrap; padding: 11px 14px; font-size: .85rem; font-weight: 500; color: rgba(255,255,255,.62); text-decoration: none; border-bottom: 2px solid transparent; transition: color .2s var(--ease), border-color .2s var(--ease); }
.subnav a:hover { color: rgba(255,255,255,.95); }
.subnav a.active { color: #fff; border-bottom-color: var(--teal-bright); }
@media (prefers-reduced-motion: reduce) { .subnav { position: static; } }

/* Brand gradient (turquoise -> gold, matched to the app) */
.text-gradient { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.stage h1 .text-gradient { text-shadow: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 26px; border-radius: 999px; font-weight: 600; text-decoration: none; font-family: var(--font-body); transition: transform .2s var(--ease), box-shadow .2s var(--ease); border: 1px solid transparent; }
.btn--gold { background: var(--brand-grad); color: #07231d; }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(63,217,194,.34); }
.btn--ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.45); }
.btn--ghost:hover { border-color: var(--gold-light); color: var(--gold-light); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
/* Official store badges (Apple Marketing Tools + Google Play brand assets) */
.store-badge { display: inline-flex; align-items: center; line-height: 0; transition: transform .2s var(--ease); }
.store-badge img { width: auto; display: block; }
/* Apple SVG has no padding; Google's PNG bakes in ~13% transparent padding, so size each
   so the visible logos align to the same optical height (~48px). */
.badge-apple  { height: 48px; border-radius: 9px; }
.badge-google { height: 70px; margin: -11px 0; }   /* compensate the baked padding */
.store-badge:hover { transform: translateY(-2px); }
.store-badge--soon { opacity: .55; cursor: default; }
.store-badge--soon:hover { transform: none; }
@media (max-width: 480px) { .badge-apple { height: 44px; } .badge-google { height: 64px; margin: -10px 0; } }

/* Utility-page header strip (support / privacy) — a deep-ocean sunrise band that
   matches the home hero, so these pages feel like the same site. */
.page-head { position: relative; overflow: hidden; padding: clamp(72px,10vw,120px) 0 clamp(44px,6vw,72px); color: #fff;
  background:
    radial-gradient(120% 120% at 70% 120%, rgba(255,180,110,.16) 0%, transparent 55%),
    linear-gradient(170deg, #0a1430 0%, #14203a 50%, #0d2b2e 100%); }
.page-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--brand-grad); }
.page-head .eyebrow { color: var(--gold-light); }
.page-head h1 { color: #fff; }
.page-head p { color: rgba(255,251,245,.82); }

/* Utility pages (support/privacy) — DARK ocean theme so they're cohesive with home,
   but calm + static (no canvas) for comfortable reading of legal/support text.
   body without .scene = these pages. */
body:not(.scene) { background: #0a1322; }
body:not(.scene) main { background: linear-gradient(180deg, #0a1626 0%, #0b1f2a 60%, #0a1322 100%); color: rgba(255,251,245,.86); }
body:not(.scene) h2, body:not(.scene) h3 { color: #fff; }
body:not(.scene) .section .container { max-width: 820px; }   /* narrower measure = easier reading */
body:not(.scene) h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }   /* calmer headings on legal/support text */
body:not(.scene) p, body:not(.scene) li { color: rgba(255,251,245,.82); }
body:not(.scene) a:not(.btn):not(.logo) { color: var(--gold-light); }
body:not(.scene) .muted { color: rgba(255,251,245,.55); }
body:not(.scene) .card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 8px 26px rgba(0,0,0,.28); backdrop-filter: blur(4px); }
body:not(.scene) .card h3 { color: #fff; }
body:not(.scene) .card p, body:not(.scene) .card li { color: rgba(255,251,245,.82); }
body:not(.scene) .faq-list summary { color: #fff; }
body:not(.scene) .section > .container > p,
body:not(.scene) .section > .container > ul { max-width: 70ch; }

/* Lists — restore indentation (the global reset zeroes padding) */
ul, ol { padding-left: 1.5em; margin: 12px 0; }
li { margin-bottom: 6px; }
li::marker { color: var(--teal); }

/* Interactive reward demo — mirrors the app's always-rewarding sequence */
.reward-demo { position: relative; max-width: 540px; margin: 44px auto 0; min-height: 290px; display: flex; flex-direction: column; align-items: center; }
.reward-canvas { position: absolute; inset: 24px 0 auto 0; width: 100%; height: 220px; pointer-events: none; z-index: 1; }

/* Affirmation line (Beat 0.5) — fades in above the gift; reserves space so nothing shifts */
.reward-affirm { position: relative; z-index: 2; min-height: 1.5em; margin-bottom: 14px; text-align: center;
  font-family: var(--font-head); font-size: 1.4rem; color: #fff; opacity: 0; transform: translateY(6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease); }
.reward-affirm.is-shown { opacity: 1; transform: none; }

.gift { position: relative; z-index: 2; width: 108px; height: 108px; border-radius: 26px; border: 1px solid rgba(255,255,255,.16); cursor: pointer;
  background: rgba(255,255,255,.06); backdrop-filter: blur(4px); display: grid; place-items: center;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease); box-shadow: 0 10px 30px rgba(0,0,0,.3); touch-action: none; }
.gift > * { grid-area: 1 / 1; }   /* stack icon + emoji in one cell */
.gift-icon { width: 52px; height: 52px; position: relative; z-index: 1; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.gift:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 16px 40px rgba(63,217,194,.28); }
.gift:active { transform: scale(.97); }
.gift.anticipate { animation: giftBreathe .56s var(--ease) infinite alternate; }
@keyframes giftBreathe { from { transform: scale(1.02); } to { transform: scale(1.1); box-shadow: 0 0 40px rgba(246,197,68,.34); } }
/* Anticipation ring — conic fill driven by --fill (0..1) while holding */
.gift-ring { position: absolute; inset: -7px; border-radius: 32px; z-index: 0; opacity: 0; transition: opacity .15s var(--ease);
  background: conic-gradient(from -90deg, var(--gold) calc(var(--fill,0) * 360deg), rgba(255,255,255,.12) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); }
.gift.holding .gift-ring { opacity: 1; }
.gift.holding { transform: scale(1.06); box-shadow: 0 0 44px rgba(246,197,68,.4); }
.gift.pop { animation: giftPop .42s var(--ease); }
@keyframes giftPop { 0%{transform:scale(1.1)} 35%{transform:scale(1.18) rotate(-3deg)} 100%{transform:scale(1)} }
/* Reveal — the gift "opens": icon swaps to the reward emoji */
.reward-emoji { z-index: 2; font-size: 58px; line-height: 1; opacity: 0; transform: scale(.4); }
.gift.opened .gift-icon { opacity: 0; transform: scale(.4); }
.gift.opened .reward-emoji { opacity: 1; transform: scale(1); transition: opacity .3s var(--ease), transform .5s cubic-bezier(.34,1.56,.64,1); }

.reward-hint { margin-top: 14px; transition: opacity .3s var(--ease); }

/* Reward text */
.reward-out { position: relative; z-index: 2; min-height: 72px; margin-top: 18px; max-width: 46ch; font-size: 1.05rem;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  opacity: 0; transform: translateY(8px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.reward-out.is-shown { opacity: 1; transform: none; }
.r-label { font-family: var(--font-body); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .72rem; color: rgba(255,251,245,.65); }
.r-name { font-family: var(--font-head); font-size: 1.9rem; line-height: 1.12;
  background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.r-title { font-weight: 700; font-size: 1.2rem; color: #fff; }
.r-sub { color: rgba(255,251,245,.8); }
/* Quote card (the app's QuoteReward) */
.reward-out.is-quote { gap: 9px; }
.r-badge { font-family: var(--font-body); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .72rem;
  background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.r-quote { font-family: var(--font-head); font-style: italic; font-size: 1.35rem; line-height: 1.3; color: #fff; }
.r-author { font-size: .92rem; color: rgba(255,251,245,.72); }

.reward-count { margin-top: 16px; min-height: 1.2em; opacity: 0; transition: opacity .3s var(--ease); }

/* Opt-in ocean sound toggle (default off) */
.reward-sound { margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: 999px;
  padding: 6px 15px; color: rgba(255,251,245,.7); font-family: var(--font-body); font-size: .82rem;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.reward-sound:hover { color: #fff; border-color: rgba(63,217,194,.5); }
.reward-sound[aria-pressed="true"] { color: #fff; border-color: rgba(63,217,194,.6); background: rgba(63,217,194,.14); }

/* Beat 3 — a tiny settle shake */
.reward-demo.settle .gift { animation: settleShake .24s var(--ease); }
@keyframes settleShake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-2px)} 75%{transform:translateX(2px)} }

@media (prefers-reduced-motion: reduce) {
  .gift.pop, .gift.anticipate, .reward-demo.settle .gift { animation: none; }
  .reward-out, .reward-affirm, .gift-icon, .reward-emoji { transition: none; }
}

/* Full-bleed statement section (layout-rhythm variety) */
.statement { text-align: center; padding-block: clamp(90px, 16vw, 200px); }
.statement p { max-width: 18ch; margin: 0 auto; font-family: var(--font-head); font-size: clamp(2.2rem, 7vw, 4.6rem); line-height: 1.06; color: #fff; }
.statement .sub { font-family: var(--font-body); font-size: var(--fs-md); max-width: 40ch; margin: 24px auto 0; color: rgba(255,251,245,.8); line-height: 1.5; }

/* Cards */
.grid { display: grid; gap: 22px; margin-top: 40px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { background: #fff; border: 1px solid rgba(0,0,0,.07); border-radius: var(--radius); padding: 28px; }
/* When a card is centered, center its paragraphs too (max-width:60ch needs auto margins) */
.card[style*="center"] p { margin-inline: auto; }
.card h3 { margin-bottom: 8px; font-family: var(--font-body); font-weight: 700; font-size: 1.1rem; }
.cite { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; color: rgba(255,251,245,.62); font-style: italic; }
.stage .card .cite { color: rgba(255,251,245,.62); }
.sources { list-style: none; margin: 36px 0 0; display: grid; gap: 10px; grid-template-columns: 1fr 1fr; max-width: none; }
@media (max-width: 760px) { .sources { grid-template-columns: 1fr; } }
.sources li { font-size: .92rem; line-height: 1.5; color: rgba(255,251,245,.82); padding-left: 16px; position: relative; text-shadow: none; }
.sources li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-grad); }
.sources b { color: #fff; font-weight: 600; }
.split { display: grid; gap: 22px; margin-top: 40px; grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

/* ===== Dark stage sections — sunrise sky from the TOP, water below ===== */
.stage { color: rgba(255,251,245,.9); position: relative; }
.stage > .container { position: relative; z-index: 4; }
.stage h1, .stage h2, .stage h3 { color: #fff; }
.stage .eyebrow { color: var(--gold-light); }
.stage a:not(.btn):not(.store-badge) { color: var(--gold-light); }
.stage h1, .stage h2, .stage h3, .stage .lead, .stage > .container p, .stage .eyebrow { text-shadow: 0 2px 18px rgba(3,8,20,.6), 0 1px 2px rgba(3,8,20,.5); }
.stage .card { background: rgba(10,16,28,.42); border-color: rgba(255,255,255,.14); backdrop-filter: blur(6px); }
.stage .card, .stage .card h3, .stage .card p { text-shadow: none; }
.stage .card h3 { color: #fff; }
.ocean-stage, .ocean-stage * { text-shadow: none; }

/* Sky gradients: bright/colorful at top, deep water at bottom; brighter per stage */
.stage--night   { background: linear-gradient(180deg, #0a1430 0%, #0a1228 52%, #060d18 100%); }
.stage--dawn    { background: linear-gradient(180deg, #101b40 0%, #232050 30%, #4a2a54 48%, #6b2f50 58%, #2c2440 72%, #0e1c2e 100%); }
.stage--sunrise { background: linear-gradient(180deg, #25387e 0%, #5b3a78 24%, #b0506a 42%, #e4824c 56%, #e3b85e 66%, #5c7d5c 82%, #133a3a 100%); }
.stage--golden  { background: linear-gradient(180deg, #356aa8 0%, #8a7496 20%, #d98a4e 40%, #f1b552 54%, #f7da70 64%, #9cc079 80%, #226056 100%); }
.stage--glory   { background: linear-gradient(180deg, #50a0db 0%, #8ec6ea 16%, #ebd185 38%, #ffda6e 52%, #ffe89c 62%, #9fcb8c 80%, #2f8278 100%); }

/* Ocean stages strip */
.ocean-stages { display: grid; gap: 14px; margin-top: 44px; grid-template-columns: repeat(5, 1fr); }
@media (max-width: 760px) { .ocean-stages { grid-template-columns: repeat(2, 1fr); } }
.ocean-stage { border-radius: 14px; padding: 18px 16px; min-height: 132px; display: flex; flex-direction: column; justify-content: flex-end; border: 1px solid rgba(255,255,255,.14); color: #fff; }
.ocean-stage span { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; opacity: .85; }
.ocean-stage b { font-family: var(--font-head); font-weight: 400; font-size: 1.15rem; }
.os-night { background: linear-gradient(160deg,#0a1226,#16243d); }
.os-dawn { background: linear-gradient(160deg,#232050,#6b2f50); }
.os-sunrise { background: linear-gradient(160deg,#8a3f74,#e4824c); }
.os-golden { background: linear-gradient(160deg,#d98a4e,#f7da70); color:#2a1c00; }
.os-glory { background: linear-gradient(160deg,#ebd185,#8ec6ea); color:#1a2a3a; }

/* Footer */
/* Footer — a warm, designed closing moment (not a boring link dump) */
footer { position: relative; color: rgba(255,255,255,.82); padding-block: clamp(56px, 8vw, 88px) 36px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, #0c2b2c 0%, #0a1c28 45%, #08131a 100%); }
footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--brand-grad); opacity: .9; }
footer a { color: rgba(255,255,255,.72); text-decoration: none; transition: color .2s var(--ease); }
footer a:hover { color: var(--gold-light); }
.footer-cta { text-align: center; max-width: 640px; margin: 0 auto clamp(40px,6vw,64px); }
.footer-cta h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); color: #fff; }
.footer-cta p { margin: 14px auto 26px; color: #fff; opacity: .95; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(3, 1fr); align-items: start; border-top: 1px solid rgba(255,255,255,.1); padding-top: 40px; }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; text-align: center; } }
.footer-col h3 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 14px; font-family: var(--font-body); font-weight: 700; }
.footer-col a { display: block; font-size: .94rem; padding: 5px 0; }
.footer-base { max-width: var(--maxw); margin: 36px auto 0; padding: 24px 24px 0; text-align: center; font-size: .85rem; color: rgba(255,255,255,.5); border-top: 1px solid rgba(255,255,255,.08); }
.footer-base .heart { color: #ff8a9c; }

/* Scroll reveal */
.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--reveal-delay, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* Headline clip-wipe — a serif H2 reveals by unmasking upward */
.js .reveal-wipe { opacity: 1; clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease); }
.js .reveal-wipe.in { clip-path: inset(0 0 0 0); }

/* ============================================================
   Scene architecture — one fixed scroll-driven sky+sea canvas
   behind the whole homepage. Sections float over it, transparent.
   ============================================================ */
#sky { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; display: block; }
body.scene { background: linear-gradient(180deg, #0a1322 0%, #0c1c2e 58%, #103030 100%); }
body.scene main, body.scene footer { position: relative; z-index: 1; }
/* keep nav + subnav sticky above the fixed canvas (don't let position:relative clobber sticky) */
body.scene nav { position: sticky; z-index: 100; }
body.scene .subnav { z-index: 90; }
/* On the canvas page the sections are transparent — the canvas IS the sky */
body.scene .stage { background: transparent !important; }
/* Retire the old per-section CSS effects on the canvas page (the canvas does it) */
body.scene .stars, body.scene .aurora, body.scene .sun, body.scene .god-rays,
body.scene .ocean-band, body.scene .biolum, body.scene .shooting-star { display: none !important; }
body.scene .stage .card { background: rgba(8,14,26,.46); border-color: rgba(255,255,255,.16); box-shadow: 0 20px 50px rgba(0,0,0,.32); }

/* Hero — two columns: words + the product */
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero .lead { max-width: 30ch; }
@media (max-width: 880px) {
  /* Stacked: phone on top, centered copy below */
  .hero-grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .hero-grid > div:first-child { order: 2; }
  .hero-grid > div:last-child { order: 1; }
  .hero-grid .device { margin-inline: auto; }
  .hero .lead { max-width: 46ch; margin-inline: auto; }
  .hero .eyebrow { letter-spacing: .14em; }
  .hero .btn-row { justify-content: center; }
}

/* Device mockup (drop a real app screen-recording/screenshot in .screen later) */
.device { position: relative; width: min(286px, 74vw); aspect-ratio: 9 / 19.2; border-radius: 42px; background: #05080d; border: 1px solid rgba(255,255,255,.16); padding: 9px; box-shadow: 0 50px 100px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.04); }
.device::before { content: ""; position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 88px; height: 7px; border-radius: 99px; background: rgba(255,255,255,.22); z-index: 4; }
.device .screen { position: absolute; inset: 9px; border-radius: 34px; overflow: hidden; background: #06101c; }
.mini-ocean { position: absolute; inset: 0; background: linear-gradient(180deg, #2f74b8 0%, #6a6fa0 18%, #d98a52 40%, #f3c163 54%, #ffe69c 63%, #abce93 74%, #2d8a7e 100%); }
.mini-sun { position: absolute; left: 60%; top: 36%; width: 58px; height: 58px; transform: translate(-50%,-50%); border-radius: 50%; background: radial-gradient(circle, #fff 0%, #ffe28c 38%, rgba(255,210,130,0) 72%); box-shadow: 0 0 46px 16px rgba(255,222,140,.55); }
.mini-glints { position: absolute; left: 0; right: 0; top: 56%; bottom: 0; background: repeating-linear-gradient(180deg, rgba(255,255,255,.10) 0 1px, transparent 1px 7px); mix-blend-mode: screen; opacity: .5; }
.mini-cap { position: absolute; left: 16px; right: 16px; bottom: 18px; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.55); }
.mini-cap span { display: block; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.mini-cap b { font-family: var(--font-head); font-weight: 400; font-size: 1.04rem; line-height: 1.15; }
.device-note { text-align: center; font-size: .8rem; color: rgba(255,255,255,.55); margin-top: 14px; }

/* A touch more polish on store badges / hover */
.btn--gold:hover { filter: brightness(1.05); }
.store-badge:hover { border-color: rgba(255,255,255,.35); }

/* Frosted "glass" panel — readable over any sky brightness (Our Story, etc.) */
.glass { background: rgba(8,14,26,.52); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.14); border-radius: 26px; padding: clamp(32px, 5vw, 56px); box-shadow: 0 30px 70px rgba(0,0,0,.4); }
.glass .lead, .glass p, .glass h2, .glass .eyebrow { text-shadow: none !important; }
.heart-badge { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 50%; background: var(--brand-grad-soft); border: 1px solid rgba(255,255,255,.18); }
.heart-badge svg { width: 28px; height: 28px; }

/* "Everything else" feature grid — breadth without a spec-sheet feel */
.feature-grid { display: grid; gap: 14px; margin-top: 40px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .feature-grid { grid-template-columns: 1fr; } }
.feature { display: flex; gap: 13px; align-items: flex-start; padding: 18px; border-radius: 16px; background: rgba(8,14,26,.4); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(6px); }
.feature .fi { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-grad-soft); border: 1px solid rgba(255,255,255,.16); }
.feature .fi svg { width: 20px; height: 20px; stroke: var(--gold-light); fill: none; stroke-width: 1.8; }
.feature b { display: block; font-size: .98rem; color: #fff; margin-bottom: 2px; }
.feature span { font-size: .85rem; color: rgba(255,251,245,.72); line-height: 1.45; }
.feature b, .feature span { text-shadow: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, .glint, .float, .sun, .god-rays, .aurora, .ocean-band::before, .ocean-band::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; transition-delay: 0ms !important; }
  .js .reveal-wipe { clip-path: none !important; }
}
