/* Unpaged concept site. Palette and type follow the iPhone app:
   cream background, warm white cards, near-black ink, amber accent (Color+Theme.swift),
   the icon's deep navy, and a serif for editorial titles like the app's Shelves and Stats screens. */

@font-face { font-family: Newsreader; src: url('./fonts/newsreader.woff2') format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: Newsreader; src: url('./fonts/newsreader-italic.woff2') format('woff2'); font-weight: 200 800; font-style: italic; font-display: swap; }

:root {
  --cream: #f7f3ed;
  --paper: #fffcf7;
  --sand: #efe8dc;
  --ink: #15202b;
  --ink-2: #353c44;
  --muted: #67625a;
  --line: #e6dece;
  --line-2: #d6cbb7;
  --amber: #cc8632;
  --amber-bright: #e49a21;
  --amber-text: #9a5c16;
  --amber-wash: #f7e6c8;
  --navy: #122231;
  --navy-2: #1a2e42;
  --navy-3: #26405a;
  --on-navy: #f4efe8;
  --on-navy-muted: #a9b3bd;

  --serif: Newsreader, 'New York', ui-serif, 'Iowan Old Style', Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, 'Segoe UI', Roboto, sans-serif;
  --gutter: clamp(20px, 4.4vw, 72px);
  --radius: 28px;
  --ease: cubic-bezier(.22, .7, .1, 1);
  --spring: cubic-bezier(.34, 1.4, .5, 1);
  --t-h2: clamp(40px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--cream); color: var(--ink); scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--amber-wash); color: var(--ink); }
:focus-visible { outline: 2.5px solid var(--amber); outline-offset: 4px; border-radius: 6px; }

h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.022em; line-height: 1.02; font-optical-sizing: auto; text-wrap: balance; }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--amber-text); }
h2 { font-size: var(--t-h2); }
h3 { font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
p { text-wrap: pretty; }

.wrap { width: min(1360px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(88px, 11vw, 160px); }
.eyebrow { font: 600 12px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--amber-text); margin-bottom: 20px; }
.lede { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 34em; }
.section-head .lede { margin-top: 24px; }
.fine { font-size: 13px; line-height: 1.55; color: var(--muted); }

.skip-link { position: fixed; z-index: 100; top: 10px; left: 12px; padding: 12px 18px; border-radius: 12px; background: var(--ink); color: var(--cream); translate: 0 -200%; transition: translate .2s var(--ease); }
.skip-link:focus { translate: 0 0; }
#main:focus { outline: none; }

/* ---------------------------------------------------------------- header */
.header { position: sticky; top: 0; z-index: 50; transition: background .3s var(--ease), box-shadow .3s var(--ease); }
.header.is-scrolled { background: color-mix(in srgb, var(--cream) 82%, transparent); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); box-shadow: 0 1px 0 var(--line); }
.header-inner { height: 76px; display: flex; align-items: center; gap: 36px; }
.header { color: var(--ink); transition: background .3s var(--ease), box-shadow .3s var(--ease), color .3s var(--ease); }
.brand { display: inline-flex; align-items: center; gap: 11px; font: 500 25px/1 var(--serif); letter-spacing: -0.02em; }
.logo-mark { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 1px 2px #12223133, 0 4px 10px -4px #12223155; }
.header nav { display: flex; gap: 30px; margin-left: auto; font-size: 15px; color: var(--ink-2); }
.header nav a { position: relative; padding-block: 10px; }
.header.is-dark { background: color-mix(in srgb, var(--navy) 80%, transparent); box-shadow: 0 1px 0 #ffffff14; color: var(--on-navy); }
.header.is-dark nav { color: var(--on-navy-muted); }
.header.is-dark nav a:hover { color: var(--on-navy); }
.header.is-dark .pill { background: var(--on-navy); color: var(--navy); }
.header.is-dark .logo-mark { box-shadow: 0 0 0 1px #ffffff26; }
.header nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 1.5px; background: var(--amber); scale: 0 1; transform-origin: left; transition: scale .3s var(--ease); }
.header nav a:hover::after, .header nav a[aria-current]::after { scale: 1 1; }

.pill { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--ink); color: var(--cream); font-size: 15px; font-weight: 600; white-space: nowrap; transition: background .25s var(--ease), translate .25s var(--ease); }
.pill:hover { background: var(--navy-3); }
.pill:active { translate: 0 1px; }
.pill-small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.i-arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: translate .25s var(--ease); }
a:hover > .i-arrow { translate: 3px 0; }
.store-badge { display: inline-block; border-radius: 12px; transition: translate .25s var(--ease), box-shadow .25s var(--ease); }
.store-badge img { width: 168px; height: auto; }
.store-badge:hover { translate: 0 -2px; box-shadow: 0 10px 20px -12px #12223188; }
.badge-light { outline: 1px solid #ffffff38; }
.text-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; padding-block: 8px; border-bottom: 1.5px solid var(--line-2); transition: border-color .25s var(--ease); }
.text-link:hover { border-color: var(--amber); }

.i-sparkle { width: 1em; height: 1em; fill: currentColor; }
.i-bookmark { width: 1em; height: 1em; fill: currentColor; }
.i-check { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------------- phone */
.phone { position: relative; width: 280px; aspect-ratio: 720 / 1564; padding: 9px; border-radius: 50px; background: linear-gradient(145deg, #2b3947, #0d1823 40%, #1d2a37); box-shadow: inset 0 0 0 1.5px #3c4b5a, 0 40px 60px -30px #12223170, 0 12px 24px -12px #1222314d; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 41px; background: var(--paper); }
.phone::after { content: ''; position: absolute; top: 19px; left: 50%; width: 31%; height: 25px; translate: -50% 0; border-radius: 20px; background: #05090d; }

/* ---------------------------------------------------------------- hero */
.hero { padding-top: clamp(24px, 4vw, 56px); padding-bottom: clamp(56px, 8vw, 112px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(52px, 6.9vw, 104px); line-height: .98; letter-spacing: -0.03em; margin-left: -3px; }
.hero h1 .line { display: block; }
.hero .lede { margin-top: 32px; max-width: 30em; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 30px; margin-top: 36px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.facts li { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: 13px; color: var(--ink-2); }

.hero-art { position: relative; height: clamp(560px, 50vw, 700px); border-radius: var(--radius); background: radial-gradient(120% 90% at 70% 10%, var(--navy-2), var(--navy) 60%); overflow: hidden; display: grid; place-items: center; isolation: isolate; }
.hero-art::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(#ffffff0d 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(#000, transparent 80%); z-index: -1; }
.ribbon { position: absolute; left: 12%; top: 0; width: 13%; height: 62%; z-index: 0; }
.ribbon-body { position: absolute; inset: 0; background: var(--on-navy); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 88%, 0 100%); }
.ribbon-dot { position: absolute; left: 50%; top: calc(100% + 4%); width: 64%; aspect-ratio: 1; translate: -50% 0; border-radius: 50%; background: var(--amber-bright); box-shadow: 0 0 0 10px #e49a2114, 0 0 40px #e49a2140; }
.hero-phone { position: relative; z-index: 1; width: clamp(240px, 21vw, 300px); rotate: 4deg; translate: 22% 5%; }
.moment-chip { position: absolute; z-index: 2; left: 7%; bottom: 9%; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 18px; background: var(--paper); box-shadow: 0 24px 40px -18px #05090d99, 0 2px 6px #05090d26; max-width: min(330px, 80%); }
.chip-icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--amber-wash); color: var(--amber); font-size: 18px; }
.chip-text { display: grid; gap: 2px; min-width: 0; }
.chip-text b { font: 600 15px/1.25 var(--sans); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip-text span { font-size: 12.5px; color: var(--muted); }
.chip-ai { flex: none; color: var(--amber); font-size: 16px; margin-left: 2px; }

/* ---------------------------------------------------------------- library */
.library { border-top: 1px solid var(--line); }
.library-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.tabs { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 5px; gap: 4px; border-radius: 999px; background: var(--sand); }
.tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; line-height: 1; white-space: nowrap; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--muted); transition: background .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease); }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected=true] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px #15202b1a, 0 4px 12px -6px #15202b33; }
.tab-n { font-size: 11px; line-height: 1; translate: 0 .5px; font-variant-numeric: tabular-nums; color: var(--amber-text); }
.library-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; margin-top: 64px; }
.library-art { position: relative; height: clamp(560px, 48vw, 680px); border-radius: var(--radius); background: var(--sand); display: grid; place-items: center; overflow: hidden; }
.library-art::before { content: ''; position: absolute; width: 74%; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line-2); box-shadow: 0 0 0 60px #fffcf733, 0 0 0 61px var(--line); }
.library-stack { position: relative; width: clamp(240px, 21vw, 290px); aspect-ratio: 720 / 1564; }
.lib-phone { position: absolute; inset: 0; width: 100%; opacity: 0; translate: 0 24px; scale: .97; transition: opacity .45s var(--ease), translate .6s var(--ease), scale .6s var(--ease); }
.lib-phone.is-active { opacity: 1; translate: 0 0; scale: 1; }
.panel h3 { font: 500 clamp(30px, 3vw, 40px)/1.08 var(--serif); letter-spacing: -0.02em; }
.panel > p { margin-top: 18px; color: var(--muted); font-size: 17.5px; max-width: 30em; }
.panel.is-entering { animation: panel-in .5s var(--ease) both; }
@keyframes panel-in { from { opacity: 0; translate: 0 10px; } }
.checks { display: grid; gap: 12px; margin-top: 28px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--ink-2); }
.checks .i-check { flex: none; margin-top: 3px; padding: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--amber-wash); color: var(--amber-text); stroke-width: 3; }

/* ---------------------------------------------------------------- moments */
.moments { background: var(--paper); border-block: 1px solid var(--line); }
.moments-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.moments-art { display: grid; place-items: center; padding: 40px 0; position: relative; }
.moments-art::before { content: ''; position: absolute; inset: 6% 12%; border-radius: 40px; background: linear-gradient(160deg, var(--amber-wash), #f7e6c800 70%); }
.moments-phone { width: clamp(250px, 22vw, 300px); rotate: -3deg; }
.points { display: grid; gap: 0; margin-top: 44px; border-top: 1px solid var(--line); }
.points div { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.points dt { font-weight: 600; }
.points dd { color: var(--muted); font-size: 16px; }

/* ---------------------------------------------------------------- anatomy */
.anatomy { position: relative; background: var(--navy); color: var(--on-navy); padding-block: clamp(96px, 11vw, 160px) clamp(72px, 8vw, 120px); }
.anatomy .eyebrow { color: var(--amber-bright); }
.anatomy h2 em { color: var(--amber-bright); }
.anatomy .lede { color: var(--on-navy-muted); }
.anatomy-head { max-width: 760px; }
.anatomy-body { display: grid; grid-template-columns: minmax(250px, 340px) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); margin-top: 72px; align-items: start; }
.steps { padding-block: 8vh 30vh; }
.step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; opacity: .32; transition: opacity .5s var(--ease); }
.step.is-active { opacity: 1; }
.step-label { display: flex; align-items: center; gap: 12px; font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--amber-bright); margin-bottom: 16px; }
.step-label span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid #e49a2166; font-size: 11px; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.step h3 { font: 500 30px/1.12 var(--serif); letter-spacing: -0.015em; }
.step p:last-child { margin-top: 14px; color: var(--on-navy-muted); font-size: 16.5px; }

.stage { position: sticky; top: max(92px, calc(50vh - 340px)); border-radius: var(--radius); background: var(--navy-2); box-shadow: inset 0 0 0 1px #ffffff12, 0 60px 80px -50px #000a; padding: 20px 24px 26px; isolation: isolate; }
.stage-nav { display: flex; align-items: center; gap: 6px; margin-bottom: 18px; }
.stage-nav button { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: 12px; font-weight: 600; color: var(--on-navy-muted); font-variant-numeric: tabular-nums; position: relative; transition: background .3s var(--ease), color .3s var(--ease); }
.stage-nav button::before { content: ''; position: absolute; inset: -7px; }
.stage-nav button:hover { color: var(--on-navy); background: #ffffff10; }
.stage-nav button[aria-current=step] { background: var(--amber-bright); color: var(--navy); }
.stage-nav button.is-done { color: var(--on-navy); }
.stage-now { margin-left: auto; font-size: 13px; color: var(--on-navy-muted); }
.stage-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; position: relative; z-index: 1; }

.tape { padding: 14px 16px 10px; border-radius: 18px; background: #0e1b28; box-shadow: inset 0 0 0 1px #ffffff0d; }
.tape-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12.5px; color: var(--on-navy-muted); margin-bottom: 10px; }
.tape-tap { display: inline-flex; align-items: center; gap: 6px; color: var(--amber-bright); font-weight: 600; font-variant-numeric: tabular-nums; }
.wave { width: 100%; height: 46px; }
.wave rect { fill: #3a5068; transition: fill .5s var(--ease); }
.wave .win { fill: #e49a2112; stroke: #e49a2155; stroke-dasharray: 3 3; opacity: 0; transition: opacity .5s var(--ease); }
.wave .head { stroke: var(--amber-bright); stroke-width: 2; }
.tape-scale { position: relative; height: 16px; margin-top: 6px; font-size: 10.5px; color: #7f8d9b; font-variant-numeric: tabular-nums; }
.tape-scale span { position: absolute; translate: -50% 0; white-space: nowrap; }
.tape-scale span:nth-child(1) { left: 12.5%; } .tape-scale span:nth-child(2) { left: 43.75%; } .tape-scale span:nth-child(3) { left: 75%; color: var(--amber-bright); } .tape-scale span:nth-child(4) { left: 89%; }
[data-step='1'] .tape-scale span:nth-child(2) { opacity: 1; }
.tape-scale span:nth-child(2) { opacity: 0; transition: opacity .4s; }
.anatomy-body:not([data-step='1']) .wave .w { fill: #e49a2199; }
[data-step='1'] .wave .win { opacity: 1; }
[data-step='1'] .wave .w { fill: var(--amber-bright); }

.transcript { margin-top: 16px; padding: 18px 20px; border-radius: 18px; background: #f4efe8; color: #3d3a35; font: 400 16px/1.62 var(--serif); position: relative; transition: background .5s var(--ease); }
.t-status { display: flex; align-items: center; gap: 8px; font: 600 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #8b7f6c; margin-bottom: 10px; }
.t-dot { width: 7px; height: 7px; border-radius: 50%; background: #b9ad99; }
[data-step='2'] .t-dot { background: var(--amber); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.t-text { transition: filter .6s var(--ease), opacity .6s var(--ease); }
[data-step='1'] .t-text { filter: blur(5px); opacity: .35; }
.t-text .word { opacity: 1; transition: opacity .25s; }
.t-text.is-typing .word { opacity: .12; }
.t-text.is-typing .word.on { opacity: 1; }
.m { background: none; color: inherit; border-radius: 4px; padding: 1px 0; box-decoration-break: clone; -webkit-box-decoration-break: clone; transition: background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease); }
.m.is-used { box-shadow: inset 0 -1.5px 0 #cc863266; }
.m.is-active { background: #e49a2138; color: #15202b; box-shadow: inset 0 -2px 0 var(--amber); }

.card { align-self: start; border-radius: 22px; background: var(--paper); color: var(--ink); padding: 16px 18px 6px; box-shadow: 0 30px 50px -30px #000c; }
.card-top { display: flex; align-items: center; gap: 11px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.card-top > span:nth-child(2) { display: grid; gap: 1px; font-size: 12px; color: var(--muted); }
.card-top b { font-size: 14.5px; color: var(--ink); }
.card-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--amber-wash); color: var(--amber); font-size: 15px; }
.card-ai { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: var(--amber-text); background: var(--amber-wash); padding: 5px 9px; border-radius: 999px; white-space: nowrap; }
.field { padding: 12px 0; border-bottom: 1px solid #efe8db; transition: opacity .45s var(--ease); }
.field:last-child { border-bottom: 0; }
.f-label { display: flex; align-items: center; gap: 8px; font: 600 10.5px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.f-label i { font-style: normal; letter-spacing: .02em; text-transform: none; font-weight: 500; color: #7a7366; }
.f-value { font-size: 14px; line-height: 1.5; color: var(--ink-2); min-height: 1.5em; }
.f-title { font: 600 17px/1.3 var(--sans); color: var(--ink); }
.f-quote { font: italic 400 16px/1.45 var(--serif); color: var(--ink); }
.verified { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; letter-spacing: .02em; text-transform: none; font-weight: 600; color: #3f7a4f; opacity: 0; transition: opacity .4s .6s; }
.labs { display: flex; flex-wrap: wrap; gap: 5px; }
.lab { padding: 4px 9px; border-radius: 999px; font-size: 12px; line-height: 1.35; color: #6b6458; background: #f2ece1; transition: background .35s var(--ease), color .35s var(--ease), opacity .35s var(--ease), scale .35s var(--spring); }
.field[data-state=done] .lab[data-picked], .field[data-state=now] .lab[data-picked].on { background: #a86518; color: #fff; font-weight: 600; }
.field[data-state=done] .labs .lab:not([data-picked]) { display: none; }
.field[data-state=now] .lab.on { scale: 1.06; }
.field[data-state=todo] { opacity: .32; }
.field[data-state=todo] .f-value, .field[data-state=todo] .labs { visibility: hidden; }
.field[data-state=todo] .f-label::after { content: ''; flex: 1; height: 8px; border-radius: 4px; background: #efe8db; }
.field[data-state=now] { opacity: 1; }
.field[data-state=now] .f-label { color: var(--amber-text); }
.field[data-state=done] .verified, .field[data-state=now] .verified.on { opacity: 1; }
.field[data-state=now] .verified { transition-delay: 0s; }
#f-who .lab { color: var(--ink); background: #ece5d8; }
#f-who[data-state=done] .lab, #f-who[data-state=now] .lab.on { background: var(--ink); color: var(--paper); font-weight: 500; }
.caret::after { content: ''; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--amber); animation: pulse .9s steps(1) infinite; }

.wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; overflow: visible; }
.wires path { fill: none; stroke: var(--amber-bright); stroke-width: 1.6; stroke-linecap: round; opacity: .9; }
.wires circle { fill: var(--amber-bright); }
.wires .draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw .7s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.wires .pop { transform-box: fill-box; transform-origin: center; animation: pop .4s var(--spring) both .55s; }
@keyframes pop { from { scale: 0; } }

.anatomy-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; margin-top: 56px; padding-top: 28px; border-top: 1px solid #ffffff1a; }
.anatomy-foot p { color: var(--on-navy-muted); font-size: 15px; }
.anatomy-foot .fine { color: #7f8d9b; font-size: 13px; }

/* ---------------------------------------------------------------- habits */
.habits-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.habits-head { position: sticky; top: 120px; }
.habits-head h2, .plus-grid h2 { font-size: clamp(40px, 4.4vw, 62px); }
.habit-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 44px); }
.habit { border-radius: var(--radius); background: var(--sand); padding: 44px 28px 32px; display: flex; flex-direction: column; align-items: center; }
.habit-1 { margin-top: 120px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.habit .phone { width: min(260px, 100%); }
.habit figcaption { align-self: stretch; margin-top: 32px; }
.habit figcaption p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }
.tag { display: inline-flex; align-items: center; gap: 4px; vertical-align: 3px; margin-left: 4px; padding: 3px 9px; border-radius: 999px; background: var(--amber-wash); color: var(--amber-text); font: 600 12px/1.3 var(--sans); letter-spacing: 0; }

/* ---------------------------------------------------------------- playback */
.playback { background: var(--paper); border-top: 1px solid var(--line); }
.playback-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.features { margin-top: 48px; border-top: 1px solid var(--line); }
.features li { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.f-icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--cream); box-shadow: inset 0 0 0 1px var(--line); fill: none; stroke: var(--amber-text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.features p { margin-top: 4px; color: var(--muted); font-size: 15.5px; }
.playback-art { position: relative; height: clamp(600px, 50vw, 700px); }
.playback-art .phone { position: absolute; width: clamp(230px, 20vw, 280px); }
.pb-a { left: 4%; top: 0; rotate: -4deg; z-index: 1; }
.pb-b { right: 4%; bottom: 0; rotate: 3deg; z-index: 2; }

/* ---------------------------------------------------------------- plus */
.plus-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.plus-grid .text-link { margin-top: 32px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plan { padding: 30px 28px; border-radius: 24px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.plan h3 { font: 500 30px/1.1 var(--serif); letter-spacing: -0.015em; display: flex; align-items: center; gap: 6px; }
.plan-plus { background: var(--navy); color: var(--on-navy); box-shadow: none; }
.plan-plus .tag { background: var(--amber-bright); color: var(--navy); }
.plan-sub { margin-top: 6px; font-size: 14px; color: var(--muted); }
.plan-plus .plan-sub { color: var(--on-navy-muted); }
.plan .checks { margin-top: 24px; }
.plan-plus .checks li { color: var(--on-navy); }
.plan-plus .checks .i-check { background: #e49a2126; color: var(--amber-bright); }
.plans-note { grid-column: 1 / -1; margin-top: 8px; }

/* ---------------------------------------------------------------- closing */
.closing { background: var(--navy); color: var(--on-navy); padding-block: clamp(96px, 12vw, 176px); overflow: hidden; position: relative; }
.closing::before { content: ''; position: absolute; left: 50%; top: -30%; width: 900px; aspect-ratio: 1; translate: -50% 0; border-radius: 50%; background: radial-gradient(#e49a211c, transparent 62%); pointer-events: none; }
.closing-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.closing-icon { width: 132px; height: 132px; border-radius: 30px; box-shadow: 0 0 0 1px #ffffff14, 0 30px 60px -20px #000c, 0 0 80px -10px #e49a2133; margin-bottom: 44px; }
.closing .eyebrow { color: var(--amber-bright); }
.closing h2 { font-size: clamp(48px, 6.5vw, 96px); }
.closing h2 em { color: var(--amber-bright); }
.closing .lede { color: var(--on-navy-muted); margin: 24px auto 36px; }

/* ---------------------------------------------------------------- footer */
.footer { padding-block: 36px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.footer .brand { font-size: 21px; color: var(--ink); }
.footer .logo-mark { width: 28px; height: 28px; border-radius: 7px; }
.footer nav { display: flex; gap: 24px; margin-left: auto; }
.footer nav a:hover, .motion-toggle:hover { color: var(--ink); }
.motion-toggle { font-size: 14px; color: var(--muted); padding: 8px 0; }
.motion-toggle[aria-pressed=true] { color: var(--amber-text); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.language { position: relative; }
.language summary { display: flex; align-items: center; gap: 6px; padding: 8px 0; cursor: pointer; list-style: none; }
.language summary::-webkit-details-marker { display: none; }
.language summary::before { content: ''; width: 15px; height: 15px; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.6 2.6 3.8 5.6 3.8 9s-1.2 6.4-3.8 9c-2.6-2.6-3.8-5.6-3.8-9S9.4 5.6 12 3Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.language summary:hover, .language[open] summary { color: var(--ink); }
.language > div { position: absolute; z-index: 5; bottom: calc(100% + 8px); left: 50%; translate: -50% 0; min-width: 190px; padding: 6px; border-radius: 16px; background: var(--paper); box-shadow: 0 0 0 1px var(--line), 0 18px 40px -16px #15202b40; }
.language > div a { display: block; padding: 9px 12px; border-radius: 10px; color: var(--ink-2); }
.language > div a:hover { background: var(--cream); }
.language > div a[aria-current=page] { color: var(--amber-text); font-weight: 600; }

/* ---------------------------------------------------------------- documents */
.doc { padding-block: clamp(40px, 6vw, 88px) clamp(72px, 9vw, 128px); }
.doc-wrap { max-width: 760px; }
.doc-body { font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.doc-body h1 { font: 500 clamp(40px, 5.4vw, 64px)/1.04 var(--serif); letter-spacing: -0.025em; color: var(--ink); margin: 0 0 18px; }
.doc-body h2 { font: 500 clamp(26px, 3vw, 34px)/1.15 var(--serif); letter-spacing: -0.015em; color: var(--ink); margin: 56px 0 14px; padding-top: 32px; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.doc-body h3 { font-size: 18px; font-weight: 650; color: var(--ink); margin: 32px 0 8px; scroll-margin-top: 96px; }
.doc-body p { margin: 0 0 16px; }
.doc-body ul, .doc-body ol { padding-left: 22px; margin: 0 0 18px; }
.doc-body li { margin: 6px 0; padding-left: 4px; }
.doc-body li::marker { color: var(--amber); }
.doc-body strong { font-weight: 650; color: var(--ink); }
.doc-body a { color: var(--amber-text); text-decoration: underline; text-decoration-color: #cc863266; text-underline-offset: 3px; overflow-wrap: anywhere; }
.doc-body a:hover { text-decoration-color: currentColor; }
.doc-body code { font: 14px/1 ui-monospace, 'SF Mono', Menlo, monospace; padding: 2px 6px; border-radius: 6px; background: var(--sand); }
.doc-body .updated { font-size: 14px; color: var(--muted); margin-bottom: 32px; }
.doc-body .updated em { font-style: normal; }
.doc-body .meta { font-size: 15px; padding: 18px 22px; border-radius: 18px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.doc-body table { width: 100%; border-collapse: collapse; margin: 24px 0 32px; font-size: 15px; line-height: 1.5; }
.doc-body th { text-align: left; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 0 12px 10px 0; border-bottom: 1px solid var(--ink); }
.doc-body td { vertical-align: top; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); }
.doc-body td:first-child { white-space: nowrap; color: var(--ink); font-weight: 600; }
.toc { margin: 8px 0 40px; padding: 18px 22px; border-radius: 18px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; }
.toc summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none; font-weight: 650; color: var(--ink); }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: ''; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); rotate: 45deg; translate: 0 -2px; transition: rotate .2s var(--ease); }
.toc[open] summary::after { rotate: -135deg; translate: 0 2px; }
.toc ul { list-style: none; margin: 12px 0 4px; padding: 0; }
.toc ul ul { margin: 4px 0 10px; padding-left: 16px; border-left: 1px solid var(--line); }
.toc li { margin: 5px 0; padding: 0; }
.toc li::marker { content: none; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--amber-text); }
.doc-foot { margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.doc-foot a { color: var(--amber-text); }
@media (max-width: 640px) {
  .doc-body table, .doc-body tbody, .doc-body tr, .doc-body td { display: block; }
  .doc-body thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .doc-body tr { border-top: 1px solid var(--ink); padding: 8px 0 16px; }
  .doc-body td { border: 0; padding: 6px 0; white-space: normal !important; }
  .doc-body td:not(:first-child)::before { content: attr(data-label); display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
}

/* ---------------------------------------------------------------- plus page */
.plus-hero { padding-block: clamp(32px, 5vw, 72px) clamp(56px, 7vw, 96px); }
.plus-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.back { margin-bottom: 48px; font-size: 14px; }
.plus-hero h1 { font-size: clamp(52px, 6.4vw, 96px); letter-spacing: -0.03em; }
.plus-hero .lede { margin-top: 28px; }
.plus-art { position: relative; height: clamp(560px, 48vw, 660px); border-radius: var(--radius); background: radial-gradient(120% 90% at 30% 0%, var(--navy-2), var(--navy) 60%); display: grid; place-items: center; overflow: hidden; }
.plus-art .phone { width: clamp(240px, 21vw, 290px); rotate: -3deg; }
.chip-static { left: auto; right: 6%; bottom: 10%; }
.plus-details { background: var(--paper); border-top: 1px solid var(--line); }
.details-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.details-grid article { padding: 36px 32px; border-radius: 24px; background: var(--cream); box-shadow: inset 0 0 0 1px var(--line); }
.details-grid h2 { font-size: clamp(26px, 2.4vw, 34px); margin-top: 24px; letter-spacing: -0.015em; }
.details-grid p { margin-top: 12px; color: var(--muted); font-size: 16px; }
.d-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--amber-wash); color: var(--amber-text); }
.d-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.d-icon .i-sparkle { fill: currentColor; stroke: none; }
.qual { margin-top: 32px; max-width: 60em; }

/* ---------------------------------------------------------------- 404 */
.lost { min-height: calc(100svh - 76px - 110px); display: grid; align-items: center; padding-block: 80px; }
.lost-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.lost-ribbon { position: relative; width: 64px; height: 150px; margin-bottom: 70px; }
.lost-ribbon .ribbon-body { background: var(--navy); }
.lost-ribbon .ribbon-dot { top: calc(100% + 14px); width: 34px; animation: wander 4s var(--ease) infinite alternate; }
@keyframes wander { to { translate: 40% 8px; } }
.lost h1 { font-size: clamp(56px, 8vw, 110px); }
.lost .lede { margin: 20px auto 36px; }

/* ---------------------------------------------------------------- motion */
.js .reveal { opacity: 0; translate: 0 28px; transition: opacity .8s var(--ease), translate .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; translate: 0 0; }
.js .hero .line, .js .hero .lede, .js .hero .actions, .js .hero .facts { animation: rise .9s var(--ease) both; }
.js .hero .line:nth-child(2) { animation-delay: .08s; }
.js .hero .lede { animation-delay: .18s; } .js .hero .actions { animation-delay: .26s; } .js .hero .facts { animation-delay: .34s; }
.js .hero-art .ribbon-body { animation: drop 1.1s var(--ease) both .15s; }
.js .hero-art .ribbon-dot { animation: dot-in .7s var(--spring) both .95s; }
.js .hero-phone { animation: phone-in 1.1s var(--ease) both .2s; }
.js .hero .moment-chip { animation: chip-in .8s var(--spring) both 1.2s; }
@keyframes rise { from { opacity: 0; translate: 0 22px; } }
@keyframes drop { from { clip-path: polygon(0 0, 100% 0, 100% 0, 50% 0, 0 0); } }
@keyframes dot-in { from { opacity: 0; scale: .2; } }
@keyframes phone-in { from { opacity: 0; translate: 22% 14%; rotate: 8deg; } }
@keyframes chip-in { from { opacity: 0; translate: 0 18px; scale: .92; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; translate: none; }
}
.reduce-motion { scroll-behavior: auto; }
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
.reduce-motion .reveal { opacity: 1 !important; translate: none !important; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .header nav { gap: 22px; }
  .stage-grid { gap: 28px; }
  .transcript { font-size: 15px; }
  .plans { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .hero-grid, .library-body, .moments-grid, .habits-grid, .playback-grid, .plus-grid, .plus-hero-grid { grid-template-columns: 1fr; }
  .hero-art { height: 600px; }
  .habits-head { position: static; }
  .moments-art { order: 1; }
  .library-body { margin-top: 40px; }
  .library-panels { order: -1; min-height: 300px; }
  .playback-art { height: 640px; max-width: 560px; width: 100%; margin-inline: auto; }
  .plus-art { height: 600px; }

}
@media (max-width: 1100px) {
  /* Anatomy: the stage pins under the header; steps scroll beneath it. */
  .anatomy-body { grid-template-columns: 1fr; gap: 0; margin-top: 48px; }
  .stage { order: -1; top: 64px; padding: 12px 12px 14px; border-radius: 22px; z-index: 3; }
  .anatomy-body::before { content: ''; order: -2; position: sticky; top: 0; height: 64px; margin-bottom: -64px; background: var(--navy); z-index: 2; }
  .stage-nav { margin-bottom: 10px; gap: 2px; }
  .stage-nav button { width: 28px; height: 28px; }
  .stage-grid { grid-template-columns: 1fr; gap: 10px; }
  .tape { padding: 10px 12px 6px; border-radius: 14px; }
  .tape-meta { font-size: 11.5px; margin-bottom: 4px; }
  .wave { height: 30px; }
  .tape-scale { font-size: 9.5px; }
  .transcript { margin-top: 10px; padding: 12px 14px; font-size: 14px; line-height: 1.5; border-radius: 14px; }
  .t-status { margin-bottom: 6px; }
  .t-skip { display: none; }
  /* The waveform only matters while it listens; after that the room goes to the words. */
  .anatomy-body:not([data-step='1']):not([data-step='2']) .tape { display: none; }
  .anatomy-body:not([data-step='1']):not([data-step='2']) .transcript { margin-top: 0; }
  .stage-now { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; font-size: 12px; }
  .lab { font-size: 11px; padding: 3px 8px; }
  .now-n { display: none; }
  /* A window onto the transcript; the script scrolls it to the words in play. */
  .t-text { max-height: clamp(132px, 27svh, 240px); overflow: hidden; mask: linear-gradient(transparent, #000 14px, #000 calc(100% - 22px), transparent); }
  [data-step='1'] .t-text { max-height: 96px; }
  [data-step='4'] .t-text { max-height: min(150px, 20svh); }
  .card { padding: 10px 14px 4px; border-radius: 16px; }
  .card-top { display: none; }
  .field { padding: 8px 0; border: 0; }
  .field:not([data-state=now]) { display: none; }
  .anatomy-body[data-step='1'] #f-name, .anatomy-body[data-step='2'] #f-name { display: block; }
  .anatomy-body[data-step='4'] #f-cats, .anatomy-body[data-step='4'] #f-mood { display: block; }
  .steps { padding-block: 8vh 36vh; position: relative; z-index: 1; }
  .step { min-height: 58vh; justify-content: flex-start; padding-top: 0; }
  .step h3 { font-size: 26px; }
  .anatomy-foot { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 1100px) and (max-height: 720px) {
  .t-text { max-height: clamp(120px, 23svh, 200px); }
  [data-step='4'] .t-text { max-height: 96px; }
  .anatomy-body[data-step='2'] .tape { display: none; }
  .anatomy-body[data-step='2'] .transcript { margin-top: 0; }
  .step p:last-child { font-size: 15px; margin-top: 10px; }
  .step h3 { font-size: 24px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .header-inner { height: 64px; gap: 16px; }
  .header nav { display: none; }
  .pill-small { margin-left: auto; }
  .brand { font-size: 22px; }
  .logo-mark { width: 30px; height: 30px; border-radius: 8px; }
  .lede { font-size: 17px; }
  .hero h1 { font-size: clamp(44px, 12.4vw, 64px); }
  .hero-art { height: 520px; border-radius: 22px; }
  .hero-phone { width: 230px; translate: 10% 6%; }
  .moment-chip { left: 5%; bottom: 6%; padding: 10px 12px 10px 10px; gap: 10px; }
  .chip-icon { width: 32px; height: 32px; font-size: 15px; }
  .chip-text b { font-size: 13.5px; }
  .chip-text span { font-size: 11.5px; }
  .store-badge img { width: 150px; }
  .library-top { gap: 28px; }
  .tabs { width: 100%; grid-auto-columns: auto; gap: 2px; }
  .tabs button { padding: 0 12px; font-size: 13.5px; }
  .tab-n { display: none; }
  .library-art { height: 500px; border-radius: 22px; }
  .library-stack { width: 220px; }
  .points div { grid-template-columns: 1fr; gap: 4px; }
  .habit-row { grid-template-columns: 1fr; }
  .habit-1 { margin-top: 0; }
  .playback-art { height: 520px; }
  .playback-art .phone { width: 210px; }
  .plans { grid-template-columns: 1fr; }
  .details-grid { grid-template-columns: 1fr; }
  .plus-art { height: 520px; }
  .footer nav { margin-left: 0; width: 100%; }
  .closing-icon { width: 104px; height: 104px; border-radius: 24px; }
}
@media (max-height: 760px) and (min-width: 1101px) {
  .transcript { font-size: 14.5px; line-height: 1.5; }
  .field { padding: 8px 0; }
}
@media (max-width: 420px) {
  .tabs button { padding: 0 10px; font-size: 12.5px; letter-spacing: -0.005em; }
}
