/* SimpleDay — site. One design system with the app (docs/design/DESIGN-CONTRACT.md, src/ui/tokens.ts):
   the sky says when; Fraunces 600 for titles, Figtree 500/700 for text (caption ≥ 15 px); near-opaque cards
   (radius 28) for reading, rows (24) for what is touched, capsules; glass only for what floats; one gold action per
   screen; no drop shadow on interface; lilac only for breathing; motion on transform and opacity, calm and rare. */

@font-face { font-family: "Figtree"; src: url("/fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

/* ── Tokens: the app's renders ────────────────────────────────────────── */
:root {
  --display: "Fraunces", Georgia, serif;
  --body: "Figtree", system-ui, -apple-system, sans-serif;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.32, .72, 0, 1);
  --ease-breath: cubic-bezier(.37, 0, .63, 1);
  --gold-from: #FBDFA2; --gold-to: #EDB85A; --gold-ink: #1B1404;
  --gutter: clamp(20px, 4vw, 48px);
  --max: 1180px;
  --r-card: 28px; --r-row: 24px;
}
:root, .t-day {
  --base: #EEF5F6; --ink: #17224D; --muted: #3A4673; --soft: #4C5882; --gold: #7A4F00;
  --card: rgba(255,255,255,.86); --edge: rgba(255,255,255,.95); --row: rgba(255,255,255,.68);
  --glass: rgba(255,255,255,.46); --fill: rgba(23,34,77,.07); --thumb: #FFFFFF; --hair: rgba(23,34,77,.08); --lilac: #6A4FD0;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root, .t-day {
    --base: #0F1F2E; --ink: #EDF4F8; --muted: #C3D3DE; --soft: #AEC0CC; --gold: #F2C77E;
    --card: rgba(12,28,44,.84); --edge: rgba(255,255,255,.14); --row: rgba(255,255,255,.08);
    --glass: rgba(14,32,50,.5); --fill: rgba(255,255,255,.08); --thumb: rgba(255,255,255,.2); --hair: rgba(255,255,255,.1); --lilac: #B9A6F2;
    color-scheme: dark;
  }
}
.t-evening {
  --base: #191339; --ink: #F6F2FF; --muted: #D8D5F0; --soft: #C3BFE2; --gold: #F4CB7C;
  --card: rgba(22,18,58,.78); --edge: rgba(255,255,255,.18); --row: rgba(255,255,255,.07);
  --glass: rgba(40,32,92,.42); --fill: rgba(255,255,255,.08); --thumb: rgba(255,255,255,.2); --hair: rgba(255,255,255,.1); --lilac: #B9A6F2;
  color-scheme: dark;
}
.t-night {
  --base: #070C22; --ink: #E4E8F8; --muted: #B9C1E0; --soft: #AEB7DC; --gold: #C9A45F;
  --card: rgba(16,24,56,.86); --edge: rgba(255,255,255,.12); --row: rgba(255,255,255,.08);
  --glass: rgba(14,20,48,.5); --fill: rgba(255,255,255,.07); --thumb: rgba(255,255,255,.16); --hair: rgba(255,255,255,.08); --lilac: #9C8CD6;
  color-scheme: dark;
}

/* Themed sections draw with their own ink. */
.t-day, .t-evening, .t-night { color: var(--ink); }

/* ── Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--base); color: var(--ink); font: 500 1.0625rem/1.5 var(--body); overflow-x: clip; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold-to); outline-offset: 3px; border-radius: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -64px; z-index: 100; padding: .75rem 1.1rem; border-radius: 999px; background: #17224D; color: #fff; font-weight: 700; text-decoration: none; transition: top .25s var(--ease-out); }
.skip:focus { top: 12px; }

/* Type: the app's scale, opened up for a page (titles Fraunces 600, text Figtree 500, labels 700). */
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; font-optical-sizing: auto; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.75rem); line-height: 1.02; letter-spacing: -.022em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); line-height: 1.06; letter-spacing: -.018em; }
h3 { font-size: 1.375rem; line-height: 1.25; letter-spacing: -.005em; }
.lead { font-size: clamp(1.1875rem, 1.5vw, 1.3125rem); line-height: 1.5; color: var(--muted); max-width: 36ch; margin-top: 1.1rem; }
.eyebrow { font: 700 .9375rem/1.3 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--soft); margin-bottom: 1rem; }
small { font-size: .9375rem; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
section { position: relative; }
.pad { padding-block: clamp(88px, 12vw, 168px); }
.pad-top-0 { padding-top: 0; }
.head { max-width: 760px; }
.head.center { margin-inline: auto; text-align: center; }
.head.center .lead { margin-inline: auto; }

/* ── Surfaces: card, row, capsule, glass (the app's four) ─────────────── */
.card { background: var(--card); border: 1px solid var(--edge); border-radius: var(--r-card); }
.pic { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--fill); color: var(--ink); flex: none; }
.pic svg { width: 22px; height: 22px; }

/* Liquid glass: what floats (navigation, segmented control, round buttons). A translucent tint of the sky, blur and
   saturation, a bright rim where the light catches the edge, and a soft inner glow; reading text never sits on it. */
.glass {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.04)), var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  border: .5px solid rgba(255,255,255,.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65), inset 0 -1px 1px rgba(255,255,255,.12), inset 0 0 12px rgba(255,255,255,.12), 0 6px 22px -14px rgba(10,20,50,.35);
}
.t-evening .glass, .t-night .glass, [data-tone="dark"] .glass, .glass[data-tone="dark"] { border-color: rgba(255,255,255,.18); box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 0 12px rgba(255,255,255,.05), 0 6px 22px -14px rgba(0,0,0,.6); background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0)), var(--glass); }
@media (prefers-reduced-transparency: reduce) { .glass { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--base); } }

/* The one gold action (identical in every moment). */
.btn-gold {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 1.6rem; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(180deg, var(--gold-from), var(--gold-to)); color: var(--gold-ink); font: 700 1.0625rem/1 var(--body); text-decoration: none;
  transition: transform .16s var(--ease-out), filter .2s;
}
@media (hover: hover) and (pointer: fine) { .btn-gold:hover { filter: brightness(1.03); } .nav-links a:hover { background: rgba(127,127,160,.14); } .article-card a:hover { transform: translateY(-2px); } }
.btn-gold:active { transform: scale(.97); }
.btn-glass { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 1.5rem; border-radius: 999px; font: 700 1.0625rem/1 var(--body); color: var(--ink); text-decoration: none; cursor: pointer; transition: transform .16s var(--ease-out); }
.btn-glass:active { transform: scale(.97); }
.round { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--ink); transition: transform .16s var(--ease-out); }
.round:active { transform: scale(.94); }

/* ── Navigation: a glass island, like the app's tab bar ───────────────── */
.nav {
  position: fixed; top: max(14px, env(safe-area-inset-top)); left: 50%; translate: -50% 0; z-index: 80;
  display: flex; align-items: center; gap: .15rem; padding: 6px 6px 6px 14px; border-radius: 999px; width: max-content; max-width: calc(100% - 24px);
  color: #17224D; --glass: rgba(255,255,255,.46);
  transition: color .6s var(--ease-out);
}
.nav[data-tone="dark"] { color: #F1EEF6; --glass: rgba(26,24,64,.42); }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font: 600 1.1875rem/1 var(--display); letter-spacing: -.01em; margin-right: .6rem; white-space: nowrap; }
.nav-links { display: flex; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: .9375rem; padding: .7rem .8rem; border-radius: 999px; transition: background .25s var(--ease-out); white-space: nowrap; }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(127,127,160,.14); margin: 0 .3rem; }
.lang a { min-width: 40px; text-align: center; padding: .5rem .55rem; border-radius: 999px; font: 700 .8125rem/1 var(--body); letter-spacing: .04em; text-decoration: none; opacity: .72; transition: background .25s, opacity .25s; }
.lang a[aria-current] { background: rgba(255,255,255,.8); color: #17224D; opacity: 1; }
.nav[data-tone="dark"] .lang a[aria-current] { background: rgba(255,255,255,.22); color: #fff; }
.pill-soon { min-height: 44px; display: inline-flex; align-items: center; padding: 0 1.05rem; border-radius: 999px; font: 700 .9375rem/1 var(--body); background: rgba(127,127,160,.16); text-decoration: none; white-space: nowrap; }
.lang-one { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; border-radius: 999px; font: 700 .8125rem/1 var(--body); letter-spacing: .06em; text-decoration: none; opacity: .72; transition: opacity .2s var(--ease-out), background .2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .lang-one:hover { opacity: 1; background: rgba(127,127,160,.14); } }
.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 50%; position: relative; cursor: pointer; }
.burger span { position: absolute; left: 13px; width: 18px; height: 1.6px; border-radius: 2px; background: currentColor; transition: transform .45s var(--ease-spring), top .45s var(--ease-spring); }
.burger span:nth-child(1) { top: 18px; } .burger span:nth-child(2) { top: 25px; }
.menu-open .burger span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }
.sheet { position: fixed; inset: 0; z-index: 70; display: grid; align-content: center; padding: 96px 28px 40px; background: rgba(21,17,52,.82); -webkit-backdrop-filter: blur(28px); backdrop-filter: blur(28px); color: #F6F2FF; opacity: 0; visibility: hidden; transition: opacity .2s var(--ease-out), visibility 0s linear .2s; }
.menu-open .sheet { opacity: 1; visibility: visible; transition: opacity .35s var(--ease-out); }
.sheet nav a { display: block; font: 600 2.25rem/1.25 var(--display); text-decoration: none; padding: .3rem 0; opacity: 0; transform: translateY(20px); transition: opacity .5s var(--ease-out), transform .6s var(--ease-spring); }
.menu-open .sheet nav a { opacity: 1; transform: none; }
.menu-open .sheet nav a:nth-child(2) { transition-delay: .04s; } .menu-open .sheet nav a:nth-child(3) { transition-delay: .08s; } .menu-open .sheet nav a:nth-child(4) { transition-delay: .12s; } .menu-open .sheet nav a:nth-child(5) { transition-delay: .16s; }
.lang-lg { margin: 2rem 0 0; background: rgba(255,255,255,.1); width: max-content; }
.lang-lg a { font: 700 1rem/1 var(--body); letter-spacing: 0; padding: .85rem 1.2rem; }
.lang-lg a[aria-current] { background: rgba(255,255,255,.2); color: #fff; }
@media (max-width: 720px) { .nav-links, .nav > .lang-one { display: none; } .burger { display: block; } }

/* ── The world (the app's drawing, mounted by world.js) ───────────────── */
.world { position: absolute; inset: 0; overflow: hidden; }
.world > div { will-change: transform; }

/* ── Phone (a real recording inside) ──────────────────────────────────── */
.phone { --w: 300px; width: var(--w); aspect-ratio: 460 / 1000; margin: 0; flex: none; position: relative; border-radius: calc(var(--w) * .165); padding: calc(var(--w) * .03); background: #0B0B14; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.14), 0 50px 90px -40px rgba(10,14,40,.5); }
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: calc(var(--w) * .135); overflow: hidden; background: #070C22; isolation: isolate; }
.phone video, .phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone video { transition: opacity .8s var(--ease-out); }
/* The phone's clock and the app's date line are drawn live over the recordings (the visitor's hour, today's date). */
.phone .screen { container-type: inline-size; }
.sb-clock, .app-date { position: absolute; z-index: 3; line-height: 1; white-space: nowrap; pointer-events: none; }
.sb-clock { left: 19.3cqw; top: 6.15cqw; translate: -50% 0; font: 600 4.45cqw/1 -apple-system, "SF Pro Text", "SF Pro", system-ui, sans-serif; letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: #FFF; }
.app-date { left: 2.47cqw; top: 19.64cqw; font: 500 3.86cqw/1 var(--body); color: #D8D5F0; }
.screen[data-m="morning"] .sb-clock, .screen[data-m="day"] .sb-clock { color: #000; }
.screen[data-m="morning"] .app-date, .screen[data-m="day"] .app-date { color: #3A4673; }
.screen[data-m="night"] .app-date { color: #B9C1E0; }
.screen.shot .sb-clock { left: 19.2cqw; top: 6.1cqw; font-size: 4.06cqw; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { overflow: hidden; color: var(--h-ink, #17224D); background: var(--h-base, #A7D1F6); isolation: isolate; padding-top: clamp(112px, 15vh, 160px); padding-bottom: clamp(40px, 6vh, 72px); }
.hero-world { z-index: -1; transition: opacity 1.2s var(--ease-out); }
/* The hill settles into the page instead of stopping on a line. */
.hero { position: relative; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: clamp(120px, 22vh, 220px); background: linear-gradient(180deg, transparent, var(--base)); z-index: -1; pointer-events: none; }
.hero-copy { text-align: center; display: grid; justify-items: center; }
.hero h1 { color: var(--h-ink); }
.hero .lead { color: var(--h-muted); max-width: 40ch; margin-inline: auto; }
.hero .eyebrow { color: var(--h-muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: .9rem 1.25rem; align-items: center; justify-content: center; margin-top: 2rem; }
.store-line { font-weight: 700; font-size: .9375rem; color: var(--h-muted); }
.hero-phone { display: grid; justify-items: center; margin-top: clamp(40px, 6vh, 64px); }
.hero-phone .phone { --w: min(300px, 74vw); }
.hero h1, .hero .lead, .hero .eyebrow, .store-line { transition: color 1.2s var(--ease-out); }

.seg { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin-top: 1.6rem; padding: 4px; border-radius: 999px; color: var(--h-ink); --glass: var(--h-glass); }
.seg button { position: relative; z-index: 1; min-height: 40px; border: 0; background: transparent; padding: 0 1rem; border-radius: 999px; font-weight: 700; font-size: .9375rem; cursor: pointer; white-space: nowrap; transition: transform .16s var(--ease-out), opacity .2s; }
.seg button:active { transform: scale(.96); }
.seg button.now::after { content: ""; position: absolute; top: 7px; right: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-to); }
.seg-thumb { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; border-radius: 999px; background: var(--h-thumb, rgba(255,255,255,.9)); transition: transform .32s var(--ease-spring), width .32s var(--ease-spring); }
@media (max-width: 420px) { .seg button { padding: 0 .7rem; font-size: .875rem; } .seg button.now::after { right: 4px; } }

/* ── How it works ─────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 3.5rem; counter-reset: step; }
.steps .card { padding: 28px; position: relative; }
.steps .num { position: absolute; top: 26px; right: 28px; font: 600 1.375rem/1 var(--display); color: var(--soft); }
.steps h3 { margin: 1.25rem 0 .5rem; }
.steps p { color: var(--muted); }
.how-note { margin: 2.5rem auto 0; max-width: 46ch; text-align: center; color: var(--muted); font-size: 1.1875rem; }

/* ── Story: one day, four skies ───────────────────────────────────────── */
.story { height: 420vh; }
.story-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; color: var(--ink); }
.story-world { opacity: 0; visibility: hidden; transition: opacity 1.2s var(--ease-out), visibility 0s linear 1.2s; }
.story[data-m="morning"] .story-world[data-m="morning"], .story[data-m="day"] .story-world[data-m="day"], .story[data-m="evening"] .story-world[data-m="evening"], .story[data-m="night"] .story-world[data-m="night"] { opacity: 1; visibility: visible; transition: opacity 1.2s var(--ease-out), visibility 0s; }
.story-grid { position: relative; height: 100%; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3rem; }
.story-text { position: relative; min-height: 22rem; }
.story-copy { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease-out), transform .9s var(--ease-out); pointer-events: none; }
.story-copy.on { opacity: 1; transform: none; pointer-events: auto; }
.story-copy .time { font: 700 .9375rem/1.3 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }
.story-copy h2 { margin: .7rem 0 1rem; max-width: 15ch; }
.story-copy > p:not(.time) { font-size: 1.1875rem; max-width: 30ch; color: var(--muted); }
.story[data-m="evening"] .story-stage { --ink: #F6F2FF; --muted: #D8D5F0; --soft: #C3BFE2; --row: rgba(22,18,58,.6); --edge: rgba(255,255,255,.18); }
.story[data-m="night"] .story-stage { --ink: #E4E8F8; --muted: #B9C1E0; --soft: #AEB7DC; --row: rgba(255,255,255,.08); --edge: rgba(255,255,255,.12); }
.story[data-m="morning"] .story-stage, .story[data-m="day"] .story-stage { --ink: #17224D; --muted: #3A4673; --soft: #4C5882; --row: rgba(255,255,255,.66); --edge: rgba(255,255,255,.95); }
.story-stage { transition: color .8s var(--ease-out); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
/* The app's capsules, as on the phone beside them: they float over the sky, so they carry their own frosted ground
   and an ink hairline, readable over cloud, sun or night. */
.chips li { min-height: 44px; display: inline-flex; align-items: center; gap: .5rem; padding: 0 1rem 0 .55rem; border-radius: 999px; font-weight: 700; font-size: .9375rem; color: #17224D;
  background: rgba(255,255,255,.72); -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%);
  box-shadow: inset 0 0 0 1px rgba(23,34,77,.1), 0 8px 20px -14px rgba(23,34,77,.45); }
.chips .ci { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(23,34,77,.07); flex: none; }
.chips .ci svg { width: 18px; height: 18px; }
.story-copy[data-m="evening"] .chips li, .story-copy[data-m="night"] .chips li { color: #F1EEF6; background: rgba(22,18,58,.5); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 8px 20px -14px rgba(0,0,0,.6); }
.story-copy[data-m="evening"] .chips .ci, .story-copy[data-m="night"] .chips .ci { background: rgba(255,255,255,.1); }
.chips em { font-style: normal; font-weight: 500; opacity: .72; margin-left: -.15rem; }
.story-phone .phone { --w: min(290px, 60vw); }
.story-phone video { opacity: 0; }
.story-phone video.on { opacity: 1; }
.story-steps { position: absolute; inset: 0; pointer-events: none; }
.story-steps div { height: 105svh; }
.story-dots { position: absolute; right: var(--gutter); top: 50%; translate: 0 -50%; display: grid; gap: 10px; color: var(--ink); }
.story-dots span { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .3; transition: opacity .4s, transform .4s var(--ease-spring); }
.story-dots span.on { opacity: 1; transform: scale(1.5); }

/* ── Practices ────────────────────────────────────────────────────────── */
.families { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 3.5rem; align-items: start; }
.family { padding: 26px 18px 18px; }
.family h3 { padding: 0 10px 14px; }
.rows { display: grid; gap: 8px; }
.rows li { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; min-height: 64px; padding: 10px 16px 10px 10px; border-radius: var(--r-row); background: var(--row); border: 1px solid var(--edge); }
.rows b { display: block; font-weight: 700; font-size: 1.0625rem; line-height: 1.3; }
.rows small { display: block; color: var(--muted); line-height: 1.35; margin-top: 1px; }
.rows em { font-style: normal; font-weight: 700; font-size: .9375rem; color: var(--soft); white-space: nowrap; }
.rows li:not(:has(em)) { grid-template-columns: 44px 1fr; }

/* ── Breathe ──────────────────────────────────────────────────────────── */
.breath { min-height: max(760px, 100svh); overflow: hidden; color: var(--ink); background: var(--base); display: grid; align-content: start; padding-top: clamp(88px, 11vw, 140px); }
.breath .eyebrow { color: var(--soft); }
.breath .lead { color: var(--muted); }
.breath-inner { position: relative; z-index: 2; }
.b-word { text-align: center; margin-top: 2.5rem; min-height: 5.5rem; }
.b-word b { display: block; font: 600 clamp(2rem, 4vw, 2.75rem)/1.1 var(--display); }
.b-word span { display: block; margin-top: .5rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.b-horizon { position: absolute; left: 0; right: 0; top: var(--horizon, 72%); height: 0; z-index: 1; }
.b-guide { position: absolute; left: 50%; top: 0; width: 128px; height: 128px; translate: -50% -50%; clip-path: inset(-200% -200% 50% -200%); transition: transform 4s var(--ease-breath), clip-path 4s var(--ease-breath); }
.b-guide svg { width: 100% !important; height: 100% !important; }
.breath[data-phase="in"] .b-guide { transform: translateY(-72px); clip-path: inset(-200% -200% calc(50% - 72px) -200%); }
.b-controls { position: absolute; left: 0; right: 0; bottom: clamp(32px, 7vh, 72px); z-index: 2; display: flex; justify-content: center; gap: .75rem; padding-inline: 16px; }
.breath .btn-glass { color: var(--ink); }

/* ── Places ───────────────────────────────────────────────────────────── */
.places { background: #070C22; color: #E4E8F8; --ink: #E4E8F8; --muted: #B9C1E0; --soft: #AEB7DC; --glass: rgba(14,20,48,.5); }
.places-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; }
.rail-nav { display: flex; gap: .6rem; }
.rail { display: flex; gap: clamp(14px, 2vw, 24px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 3.5rem var(--gutter) .5rem; scrollbar-width: none; overscroll-behavior-x: contain; scroll-padding-inline: var(--gutter); }
.rail::-webkit-scrollbar { display: none; }
.place { scroll-snap-align: start; flex: none; width: min(76vw, 330px); aspect-ratio: 460 / 900; position: relative; border-radius: 40px; overflow: hidden; background: #0D1535; isolation: isolate; }
.place video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.place .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem 1.4rem 1.5rem; background: linear-gradient(180deg, transparent, rgba(5,8,24,.78) 45%); }
.place .cap h3 { color: #fff; }
.place .cap p { color: #CFD5EE; margin-top: .3rem; }
.listen { margin-top: 1rem; min-height: 44px; display: inline-flex; align-items: center; gap: .55rem; padding: 0 1.1rem 0 .9rem; border-radius: 999px; font-weight: 700; font-size: .9375rem; color: #fff; cursor: pointer; --glass: rgba(255,255,255,.12); transition: transform .16s var(--ease-out); }
.listen:active { transform: scale(.96); }
.listen svg { width: 20px; height: 20px; }
.listen[aria-pressed="true"] { --glass: rgba(244,203,124,.85); color: #1B1404; }
.listen[aria-pressed="true"] svg path { animation: eq 1.1s var(--ease-breath) infinite alternate; transform-box: fill-box; transform-origin: center; }
@keyframes eq { from { transform: scaleY(.4); } to { transform: scaleY(1); } }

/* ── Sleep ────────────────────────────────────────────────────────────── */
.sleep { background: linear-gradient(180deg, #070C22 0%, #121036 45%, #281C56 100%); }
.sleep-grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }
.sleep .phone { --w: min(300px, 70vw); }
.rows-dark { margin-top: 2.25rem; }

/* ── Hill ─────────────────────────────────────────────────────────────── */
.grow { background: var(--base); }
.hill-card { margin-top: 3.5rem; overflow: hidden; padding: 0; }
.hill-world { position: relative; inset: auto; height: clamp(320px, 42vw, 480px); border-radius: calc(var(--r-card) - 1px) calc(var(--r-card) - 1px) 0 0; }
.hill-controls { padding: 22px 26px 26px; display: grid; gap: .9rem; }
.range-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.days { font: 600 1.375rem/1.2 var(--display); }
.days b { font: 700 1.375rem/1 var(--body); font-variant-numeric: tabular-nums; }
.grew { color: var(--gold); font-weight: 700; min-height: 1.5em; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--gold-to) var(--p, 0%), var(--fill) var(--p, 0%)); }
input[type="range"]::-moz-range-track { height: 8px; border-radius: 99px; background: var(--fill); }
input[type="range"]::-moz-range-progress { height: 8px; border-radius: 99px; background: var(--gold-to); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; background: #fff; border: .5px solid rgba(23,34,77,.15); box-shadow: 0 2px 6px rgba(23,34,77,.18); transition: transform .16s var(--ease-out); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
input[type="range"]::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: .5px solid rgba(23,34,77,.15); }
.hill-foot { display: flex; gap: 1rem 1.5rem; align-items: center; flex-wrap: wrap; }
.btn-row { display: inline-flex; align-items: center; gap: .6rem; min-height: 48px; padding: 0 1.2rem 0 .9rem; border-radius: 999px; border: 1px solid var(--edge); background: var(--row); font-weight: 700; cursor: pointer; transition: transform .16s var(--ease-out); }
.btn-row:active { transform: scale(.97); }
.btn-row svg { width: 22px; height: 22px; }
.hint { color: var(--muted); flex: 1 1 320px; font-size: .9375rem; }

/* ── Commitments ──────────────────────────────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 3.5rem; }
.bento .card { padding: 26px; }
.bento .w2 { grid-column: span 2; }
.bento h3 { margin: 1.1rem 0 .45rem; font-size: 1.25rem; }
.bento p { color: var(--muted); }

/* ── Journal ──────────────────────────────────────────────────────────── */
.articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 3rem; }
.article-card a { display: grid; gap: .7rem; height: 100%; padding: 26px; text-decoration: none; border-radius: var(--r-card); transition: transform .3s var(--ease-out); }
.article-card h2, .article-card h3 { font-size: 1.3125rem; line-height: 1.25; margin-top: .4rem; }
.article-card p { color: var(--muted); }
.article-card .meta { margin-top: auto; padding-top: .4rem; font-weight: 700; font-size: .9375rem; color: var(--gold); }

/* ── Our story ──────────────────────────────────────────────────────────── */
.story-card { display: grid; grid-template-columns: minmax(260px, .9fr) 1.1fr; overflow: hidden; text-decoration: none; min-height: 300px; }
.story-card-world { position: relative; inset: auto; min-height: 240px; }
.story-card-text { padding: clamp(24px, 4vw, 44px); display: grid; align-content: center; gap: .8rem; }
.story-card-text p:not(.eyebrow) { color: var(--muted); max-width: 46ch; }
.story-card .eyebrow { margin: 0; }
.story-card .more { font-weight: 700; color: var(--gold); }
@media (max-width: 760px) { .story-card { grid-template-columns: 1fr; } }
.about-band { position: relative; height: clamp(260px, 38vw, 420px); overflow: hidden; }
body.doc .about-band + .doc-main { padding-top: 56px; }
.signature { display: flex; align-items: center; gap: .8rem; margin-top: 2.2rem; }
.signature svg { width: 36px; height: 36px; }
.signature p { color: var(--ink) !important; margin: 0 !important; display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: baseline; }
.linkedin { font-weight: 700; font-size: .9375rem; color: var(--gold) !important; text-decoration: none; }
.beliefs { margin-top: 1rem; }
.beliefs small { font-size: 1rem !important; }
.about-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.about-actions .btn-glass { --glass: rgba(255,255,255,.6); }

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.faq { display: grid; gap: 8px; }
.faq details { border-radius: var(--r-row); background: var(--card); border: 1px solid var(--edge); padding: 0 1.4rem; }
.faq summary { list-style: none; cursor: pointer; min-height: 64px; display: flex; justify-content: space-between; gap: 1rem; align-items: center; font-weight: 700; font-size: 1.0625rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .25s var(--ease-out); opacity: .55; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.faq details p { color: var(--muted); padding-bottom: 1.3rem; max-width: 62ch; }

/* ── Finale ───────────────────────────────────────────────────────────── */
.finale { min-height: max(680px, 92svh); background: #070C22; color: #E4E8F8; overflow: hidden; display: grid; align-content: start; text-align: center; padding-top: clamp(96px, 12vw, 150px); }
.finale-inner { position: relative; z-index: 1; }
.finale .eyebrow { color: #AEB7DC; }
.finale .lead { color: #B9C1E0; margin-inline: auto; }
.finale .btn-glass { margin-top: 2rem; color: #E4E8F8; --glass: rgba(14,20,48,.5); }
.moon-line { margin-top: 1.5rem; color: #B9C1E0; font-weight: 600; font-size: .9375rem; }

footer { background: #070C22; color: #AEB7DC; padding: 2.5rem 0 calc(2.5rem + env(safe-area-inset-bottom)); font-size: .9375rem; }
.foot { display: flex; justify-content: space-between; gap: 1.5rem 2rem; flex-wrap: wrap; align-items: center; border-top: 1px solid rgba(255,255,255,.08); padding-top: 2rem; }
.foot nav { display: flex; gap: .4rem 1.4rem; flex-wrap: wrap; }
.foot a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.foot .brand { color: #E4E8F8; margin: 0; }

/* ── Documents: journal, legal ────────────────────────────────────────── */
body.doc { background: var(--base); }
body.doc .nav { color: var(--ink); }
.doc-main { max-width: 720px; padding: 128px 0 96px; }
.doc-main h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); line-height: 1.08; margin-top: .8rem; }
.doc-main h2 { font-size: 1.5rem; margin: 2.4rem 0 .7rem; }
.doc-main p, .doc-main li { color: var(--muted); font-size: 1.125rem; line-height: 1.65; }
.doc-main p + p, .doc-main ol + p, .doc-main p + ol { margin-top: 1rem; }
.doc-main .lead { max-width: none; font-size: 1.3125rem; color: var(--ink); }
.doc-main ol { list-style: decimal; padding-left: 1.3rem; display: grid; gap: .5rem; margin-top: .8rem; }
.doc-main a { color: var(--ink); text-underline-offset: 3px; }
.doc-date { font-size: .9375rem !important; color: var(--soft) !important; margin-top: .9rem; }
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; }
.crumbs li { font-size: .9375rem !important; color: var(--soft) !important; }
.crumbs li + li::before { content: "›"; margin-right: .4rem; }
.crumbs a { text-decoration: none; color: var(--soft) !important; }
.article header .pic { margin-bottom: .6rem; }
.in-app { padding: 22px 24px; margin-top: 2.5rem; }
.in-app .eyebrow { margin-bottom: .5rem; }
.in-app p:not(.eyebrow) { color: var(--ink); }
.sources li { font-size: .9375rem !important; }
.note { margin-top: 2rem; font-size: .9375rem !important; color: var(--soft) !important; }
.doc-main .articles { grid-template-columns: 1fr; }
body.nf { min-height: 100svh; background: #070C22; color: var(--ink); overflow: hidden; }
.nf-main { position: relative; z-index: 1; min-height: 100svh; display: grid; align-content: start; justify-items: center; text-align: center; padding: 22svh 20px 0; }
.nf-copy { display: grid; justify-items: center; gap: 1rem; }
.nf .eyebrow { color: var(--soft); letter-spacing: .2em; }
.nf .lead { color: var(--muted); max-width: 32ch; }

/* ── Reveal on scroll ─────────────────────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease-out), transform 1s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .06s; } .reveal.d2 { transition-delay: .12s; } .reveal.d3 { transition-delay: .18s; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .steps, .articles { grid-template-columns: 1fr; }
  .families { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento .w2 { grid-column: span 2; }
  .story-grid { grid-template-columns: 1fr; align-content: start; gap: 1rem; padding-top: 92px; }
  .story-text { min-height: 17.5rem; }
  .story-copy h2 { font-size: 1.875rem; margin: .45rem 0 .55rem; }
  .story-copy > p:not(.time) { font-size: 1.0625rem; }
  .chips { margin-top: .9rem; }
  .story-phone { justify-self: center; }
  .story-phone .phone { --w: min(190px, 46vw); }
  .story-dots { display: none; }
  .sleep-grid { grid-template-columns: 1fr; }
  .sleep-grid .phone-col { order: 2; justify-self: center; }
  .faq-grid { grid-template-columns: 1fr; }
}
@media (max-width: 960px) and (max-height: 760px) { .story-phone .phone { --w: min(150px, 38vw); } .story-text { min-height: 16rem; } }
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; } .bento .w2 { grid-column: auto; }
  .rows li { grid-template-columns: 44px 1fr; } .rows em { grid-column: 2; margin-top: -2px; }
  .hill-controls { padding: 18px 18px 22px; }
}

/* ── Preferences ──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition: opacity .3s; }
  .story-copy { transform: none; }
  .b-guide { transition: none; }
  .listen[aria-pressed="true"] svg path { animation: none; }
}

.more-row { margin-top: 1.6rem; }
.more-row .more { font-weight: 700; color: var(--gold); text-decoration: none; }

/* Waitlist: one field, one gold action, the promise in one line under it. */
.wl { width: min(100%, 460px); margin: 2rem auto 0; }
.wl-row { display: flex; gap: .4rem; padding: 6px; border-radius: 999px; --glass: rgba(14,20,48,.55); }
.wl-row input { flex: 1; min-width: 0; min-height: 48px; border: 0; background: transparent; color: #E4E8F8; font: 500 1rem/1 var(--body); padding: 0 .4rem 0 1.1rem; border-radius: 999px; }
.wl-row input::placeholder { color: #8E97BE; }
.wl-row input:focus-visible { outline: 2px solid rgba(244,203,124,.7); outline-offset: 2px; }
.wl-row .btn-gold { flex: none; min-height: 48px; }
.wl .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.wl-note { margin-top: .9rem; font-size: .9375rem; color: #AEB7DC; }
.wl-note a { color: inherit; }
.wl[data-state="ok"] .wl-row { display: none; }
.wl[data-state="ok"] .wl-note { font: 600 clamp(1.25rem, 2.4vw, 1.5rem)/1.3 var(--display); color: #F4CB7C; }
.wl[data-state="bad"] .wl-note, .wl[data-state="err"] .wl-note { color: #F4CB7C; }
@media (max-width: 420px) { .wl-row { flex-direction: column; border-radius: 28px; } .wl-row input { min-height: 52px; text-align: center; padding: 0 1rem; } }

/* Invitations to try: a gold dot that breathes beside a short line, gone once the visitor has tried. The same cue
   everywhere something on the page can be played with. */
.try { display: block; margin-top: 1rem; font: 600 .9375rem/1.35 var(--body); opacity: .9; transition: opacity .6s var(--ease-out), translate .6s var(--ease-out); }
.hero .try { color: var(--h-muted); text-align: center; max-width: 34ch; }
.try-dot { position: relative; display: inline-block; vertical-align: .1em; margin-right: .6rem; width: 8px; height: 8px; border-radius: 50%; background: #E9B65A; }
.try-dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid #E9B65A; opacity: 0; animation: try-ping 2.6s var(--ease-out) infinite; }
@keyframes try-ping { 0% { transform: scale(.35); opacity: .9; } 70%, 100% { transform: scale(1.5); opacity: 0; } }
.try.done { opacity: 0; translate: 0 -4px; pointer-events: none; }
.listen { position: relative; }
.listen:not(.tried)::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; box-shadow: 0 0 0 0 rgba(233,182,90,.55); animation: halo 2.6s var(--ease-out) infinite; pointer-events: none; }
@keyframes halo { 0% { box-shadow: 0 0 0 0 rgba(233,182,90,.55); } 70%, 100% { box-shadow: 0 0 0 12px rgba(233,182,90,0); } }
#days:not(.tried)::-webkit-slider-thumb { animation: halo 2.6s var(--ease-out) infinite; }
@media (prefers-reduced-motion: reduce) { .try-dot::after, .listen::after, #days::-webkit-slider-thumb { animation: none !important; } }
.now-tag { display: inline-flex; align-items: center; gap: .4rem; margin-left: .7rem; color: #C98A1E; }
.story-copy[data-m="evening"] .now-tag, .story-copy[data-m="night"] .now-tag { color: #F4CB7C; }
.now-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.seg-wrap { display: grid; justify-items: center; }
.src-tr { display: block; margin-top: .3rem; color: var(--soft); font-size: .9375rem; }
.b-guide { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.reward-grid, .week-grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(2.5rem, 7vw, 6rem); align-items: center; margin-top: 3.5rem; }
.week-grid { grid-template-columns: 1fr auto; margin-top: clamp(4rem, 9vw, 7rem); }
.week-grid .lead { margin-top: 1rem; max-width: 40ch; }
.reward-grid .phone, .week-grid .phone { --w: min(280px, 66vw); }
.h2 { font: 600 clamp(2rem, 4.2vw, 3.25rem)/1.08 var(--display); letter-spacing: -.015em; text-wrap: balance; margin: .4rem 0 0; }
@media (max-width: 860px) { .reward-grid, .week-grid { grid-template-columns: 1fr; } .reward-grid .phone-col, .week-grid .phone-col { justify-self: center; } .week-grid .phone-col { order: 2; } }
.bento.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .bento.three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .bento.three { grid-template-columns: 1fr; } }
.tag { display: inline-block; vertical-align: .12em; margin-left: .4rem; padding: .2rem .55rem; border-radius: 999px; font: 700 .75rem/1.2 var(--body); letter-spacing: .04em; text-transform: uppercase; color: var(--gold); box-shadow: inset 0 0 0 1px currentColor; }
.soon-row { opacity: .9; }
/* These two screens say everything in their upper half: the phone fades into the page below it. */
.reward-grid .phone, .week-grid .phone { -webkit-mask-image: linear-gradient(180deg, #000 58%, transparent 90%); mask-image: linear-gradient(180deg, #000 58%, transparent 90%); }
.reward-grid .phone-col, .week-grid .phone-col { margin-bottom: -18%; }
