/* Agonist site
   One black stage. The glass-and-silver A owns the home hero; real app screens carry every other page.
   Cyan is the brand accent; each app tab keeps its own glow (teal, orange, green, violet). */
:root {
  --bg: #000;
  --bg-2: #05080a;
  --ink: #f5f5f7;
  --mute: #8a9199;
  --dim: #3b4249;
  --line: rgba(150, 215, 235, 0.12);
  --teal: #3fc5ec;
  --teal-ink: #021014;
  --orange: #f5a623;
  --green: #4ade80;
  --violet: #a88cff;
  --glow: var(--teal);
  --f-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gl: max(20px, env(safe-area-inset-left, 0px));
  --gr: max(20px, env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(.2, .8, .15, 1);
  --nav-h: 64px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-sans); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: var(--gl); padding-right: var(--gr); }
.narrow { max-width: 820px; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums slashed-zero; }
.eyebrow { font-family: var(--f-mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--teal); color: var(--teal-ink); padding: 10px 14px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(63, 197, 236, .35); }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding-top: env(safe-area-inset-top, 0px);
  transition: background .4s, border-color .4s; border-bottom: 1px solid transparent; }
.nav.solid, .nav.open { background: rgba(0, 0, 0, .74); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 26px; height: auto; transition: transform .6s var(--ease); }
.brand:hover img { transform: rotate(-12deg); }
.brand span { font-weight: 600; font-size: 14px; letter-spacing: .32em; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { position: relative; text-decoration: none; font-size: 14px; color: var(--mute); transition: color .25s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.menu-btn { display: none; margin-left: 4px; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 1.5px; margin: 5px auto; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
.nav.open .menu-btn span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.nav.open .menu-btn span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }
.drawer { display: none; }

.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 15px; border-radius: 999px; padding: 13px 22px; transition: background .25s, color .25s, box-shadow .25s; white-space: nowrap; }
.btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--teal); color: var(--teal-ink); }
.btn-primary:hover { background: var(--ink); }
.btn-ghost { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: rgba(255, 255, 255, .06); }
.nav .btn { padding: 9px 16px; font-size: 14px; }

/* ---------- reveal ---------- */
.lines .ln { display: block; overflow: hidden; padding-bottom: .07em; margin-bottom: -.07em; }
.lines .ln > span { display: block; transition: transform 1.1s var(--ease); }
.lines .ln:nth-child(2) > span { transition-delay: .12s; }
.lines .ln:nth-child(3) > span { transition-delay: .24s; }
.js .lines.pre .ln > span { transform: translateY(110%); }
.fade { transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .fade.pre { opacity: 0; transform: translateY(32px); }

/* ---------- type ---------- */
.display { font-size: clamp(48px, 8.4vw, 124px); font-weight: 700; letter-spacing: -.055em; line-height: .94; text-wrap: balance; }
.section-h { font-size: clamp(40px, 6vw, 84px); font-weight: 700; letter-spacing: -.045em; line-height: .98; text-wrap: balance; }
.section-p, .lede { color: var(--mute); font-size: 18px; max-width: 540px; text-wrap: pretty; }
.lede { font-size: clamp(18px, 1.6vw, 21px); max-width: 600px; }
.accent { color: var(--teal); }

/* ---------- page hero (inner pages) ---------- */
.page-hero { position: relative; padding-block: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + clamp(72px, 12vh, 140px)) clamp(56px, 8vh, 96px); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; left: 50%; top: 0; width: 1200px; height: 760px; transform: translate(-50%, -38%); background: radial-gradient(closest-side, color-mix(in oklab, var(--glow) 26%, transparent), transparent); pointer-events: none; }
.page-hero .wrap { position: relative; display: flex; flex-direction: column; gap: 26px; }
.page-hero .eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.page-hero .eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px var(--teal); }

/* ---------- home hero ---------- */
.hero { position: relative; height: max(660px, min(100svh, 1000px)); overflow: hidden; isolation: isolate; }
#stage { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-top { position: absolute; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + 112px); text-align: center; }
.hero-bottom { position: absolute; left: 0; right: 0; bottom: 48px; }
.hero-bottom .wrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.hero-sub { max-width: 430px; font-size: 17px; color: var(--mute); text-wrap: pretty; }
.hero-sub strong { color: var(--ink); font-weight: 500; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.hero-meta { margin-top: 14px; font-size: 12px; color: var(--mute); letter-spacing: .06em; }
.hero-fallback { position: absolute; inset: 0; display: none; place-items: center; text-align: center; padding-inline: 20px; }
.no-gl .hero-fallback { display: grid; }
.hero-fallback img { width: min(38vw, 240px); margin: 0 auto 28px; filter: drop-shadow(0 0 60px rgba(63, 197, 236, .35)); }
.hero-fallback p { font-size: clamp(52px, 10vw, 136px); font-weight: 700; letter-spacing: -.05em; line-height: .92; }
.hero-fallback em { font-style: normal; color: var(--teal); }

/* ---------- statement ---------- */
.statement { padding-block: clamp(120px, 18vh, 220px) clamp(100px, 14vh, 180px); }
.statement h2 { font-size: clamp(54px, 11vw, 168px); font-weight: 700; letter-spacing: -.055em; line-height: .92; }
.statement h2 span { display: block; color: var(--dim); transition: color .5s; }
.statement h2 span.lit { color: var(--ink); }
.statement h2 span.lit.accent { color: var(--teal); }
.cap { margin-top: 44px; display: flex; gap: 24px 40px; flex-wrap: wrap; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 22px; }
.cap p { max-width: 480px; color: var(--mute); font-size: 18px; }

/* ---------- device ---------- */
.device { position: relative; height: min(78vh, 760px); aspect-ratio: 829 / 1726; max-width: 100%; }
.device::before { content: ""; position: absolute; inset: 12% -40% 0; background: radial-gradient(closest-side, color-mix(in oklab, var(--glow) 42%, transparent), transparent 72%); filter: blur(40px); transition: background .8s; z-index: -1; }
.device img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transform: scale(.985); transition: opacity .7s var(--ease), transform .9s var(--ease); }
.device img.on { opacity: 1; transform: none; }
.phone { width: auto; filter: drop-shadow(0 40px 70px rgba(0, 0, 0, .75)); }

/* ---------- story (pinned phone) ---------- */
.story { position: relative; padding-block: 40px 120px; }
.story-head { max-width: 760px; margin-bottom: 40px; display: flex; flex-direction: column; gap: 18px; }
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.steps { display: flex; flex-direction: column; }
.step { min-height: 92vh; display: flex; flex-direction: column; justify-content: center; max-width: 470px; opacity: .28; transition: opacity .6s var(--ease); }
.step.on { opacity: 1; }
.tag { display: inline-flex; align-items: center; gap: 10px; }
.tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--teal)); box-shadow: 0 0 12px var(--c, var(--teal)); }
.step h3 { margin-top: 18px; font-size: clamp(32px, 4vw, 54px); font-weight: 650; letter-spacing: -.04em; line-height: 1.02; text-wrap: balance; }
.step p { margin-top: 18px; color: var(--mute); font-size: 17px; max-width: 420px; }
.chip { margin-top: 22px; display: inline-flex; gap: 10px; align-items: center; align-self: flex-start; font-size: 13px; color: var(--ink); padding: 8px 14px; border-radius: 999px; background: rgba(63, 197, 236, .08); box-shadow: inset 0 0 0 1px rgba(63, 197, 236, .22); }
.step .phone-inline { display: none; }
.pin { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--nav-h)); height: calc(100vh - var(--nav-h)); display: grid; place-items: center; }

/* ---------- routine (tabs + glow) ---------- */
.routine { position: relative; padding-block: 140px; overflow: hidden; }
.routine::before { content: ""; position: absolute; left: 50%; top: 58%; width: 1100px; height: 900px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, color-mix(in oklab, var(--glow) 30%, transparent), transparent); transition: background 1s; pointer-events: none; }
.routine-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.tabs { margin-top: 40px; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.tab { all: unset; cursor: pointer; display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 14px; padding: 18px 4px; border-bottom: 1px solid var(--line); color: var(--mute); transition: color .3s; }
.tab:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
.tab b { font-weight: 600; font-size: 20px; letter-spacing: -.02em; }
.tab small { font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; color: var(--mute); text-align: right; }
.tab i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); opacity: .35; transition: opacity .3s, box-shadow .3s; }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"] i { opacity: 1; box-shadow: 0 0 14px var(--c); }
.routine .device { height: min(74vh, 700px); margin: 0 auto; }

/* ---------- health ---------- */
.health { padding-block: 120px; overflow: hidden; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; align-items: center; }
.trio { position: relative; height: min(70vh, 620px); }
.trio img { position: absolute; top: 50%; height: 82%; width: auto; transform: translate(-50%, -50%); filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .7)); transition: transform 1.2s var(--ease); }
.trio img:nth-child(1) { left: 24%; height: 70%; transform: translate(-50%, -46%) rotate(-7deg); }
.trio img:nth-child(3) { left: 76%; height: 70%; transform: translate(-50%, -46%) rotate(7deg); }
.trio img:nth-child(2) { left: 50%; z-index: 2; }
.js .trio.pre img:nth-child(1) { transform: translate(-30%, -40%) rotate(0deg); }
.js .trio.pre img:nth-child(3) { transform: translate(-70%, -40%) rotate(0deg); }
.signals { margin-top: 34px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.signals div { padding: 18px 14px 0 0; }
.signals b { display: block; font-weight: 600; font-size: 17px; }
.signals span { font-size: 13px; color: var(--mute); }

/* ---------- lists with hairlines ---------- */
.band { padding-block: 140px; border-top: 1px solid var(--line); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
.plist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.plist li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 22px 0; border-bottom: 1px solid var(--line); font-size: 19px; letter-spacing: -.01em; }
.plist li > span { font-family: var(--f-mono); font-size: 12px; color: var(--teal); padding-top: 6px; }
.plist li small { display: block; margin-top: 6px; color: var(--mute); font-size: 15px; letter-spacing: 0; }

/* ---------- pricing ---------- */
.plans { margin-top: 48px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.plan { padding: 34px 34px 0 0; display: flex; flex-direction: column; gap: 14px; }
.plan + .plan { padding-left: 34px; border-left: 1px solid var(--line); }
.plan h3 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.price { font-size: clamp(40px, 5vw, 64px); font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.price small { font-size: 16px; font-weight: 500; color: var(--mute); letter-spacing: 0; }
.plan p { color: var(--mute); max-width: 380px; }
.plan ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.plan li { display: flex; gap: 12px; align-items: baseline; }
.plan li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); transform: translateY(-2px); flex: none; }
.plan .btn { align-self: flex-start; margin-top: 12px; }
.fine { margin-top: 28px; font-size: 13px; color: var(--mute); }

/* ---------- final CTA ---------- */
.final { position: relative; padding-block: 160px 120px; text-align: center; overflow: hidden; }
.final::before { content: ""; position: absolute; left: 50%; top: 40%; width: 900px; height: 700px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(63, 197, 236, .28), transparent); pointer-events: none; }
.final img { position: relative; width: min(42vw, 220px); margin: 0 auto 40px; }
.final h2 { position: relative; font-size: clamp(56px, 12vw, 190px); font-weight: 700; letter-spacing: -.06em; line-height: .9; }
.final h2 em { font-style: normal; color: var(--teal); }
.final .btns { position: relative; margin-top: 44px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.final .meta { position: relative; margin-top: 18px; font-size: 12px; color: var(--mute); letter-spacing: .06em; }

/* ---------- how it works: numbered flow ---------- */
.flow { padding-block: 40px 140px; }
.flow-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; padding-block: 72px; border-top: 1px solid var(--line); }
.flow-row:nth-child(even) .flow-media { order: -1; }
.flow-num { font-family: var(--f-mono); font-size: 13px; color: var(--teal); letter-spacing: .12em; }
.flow-row h2 { margin-top: 16px; font-size: clamp(34px, 4.4vw, 60px); font-weight: 650; letter-spacing: -.04em; line-height: 1.02; text-wrap: balance; }
.flow-row p { margin-top: 18px; color: var(--mute); font-size: 18px; max-width: 460px; }
.flow-media { position: relative; display: grid; place-items: center; }
.flow-media::before { content: ""; position: absolute; inset: 10% 0; background: radial-gradient(closest-side, color-mix(in oklab, var(--c, var(--teal)) 30%, transparent), transparent 70%); filter: blur(30px); z-index: -1; }
.flow-media img { height: min(68vh, 640px); }

/* ---------- prose rows (why / about) ---------- */
.rows { padding-block: 40px 140px; }
.row { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; padding-block: 56px; border-top: 1px solid var(--line); }
.row h2 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 650; letter-spacing: -.035em; line-height: 1.06; text-wrap: balance; }
.row .body { display: flex; flex-direction: column; gap: 16px; color: var(--mute); font-size: 18px; max-width: 560px; }
.row .body a { color: var(--ink); text-underline-offset: 4px; text-decoration-color: rgba(63, 197, 236, .6); }
.row .body a:hover { color: var(--teal); }
.figure-band { padding-block: 40px 120px; display: flex; justify-content: center; gap: clamp(12px, 3vw, 40px); overflow: hidden; }
.figure-band img { height: min(62vh, 560px); }
.figure-band img:nth-child(odd) { transform: translateY(40px); }

/* ---------- FAQ ---------- */
.faq { padding-block: 20px 140px; }
.faq-group { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 48px; padding-block: 48px; border-top: 1px solid var(--line); }
.faq-group h2 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.qa { border-bottom: 1px solid var(--line); }
.qa:first-child { border-top: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-size: 19px; font-weight: 500; letter-spacing: -.015em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 1.5px solid var(--mute); border-bottom: 1.5px solid var(--mute); transform: rotate(45deg) translateY(-4px); transition: transform .35s var(--ease), border-color .3s; }
.qa[open] summary::after { transform: rotate(-135deg) translateY(-2px); border-color: var(--teal); }
.qa summary:hover { color: var(--teal); }
.qa .a { padding: 0 0 24px; color: var(--mute); font-size: 17px; max-width: 640px; }
.qa .a a { color: var(--ink); }

/* ---------- support cards ---------- */
.help { padding-block: 20px 140px; }
.help-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.help-item { display: flex; flex-direction: column; gap: 12px; padding: 36px 36px 36px 0; border-bottom: 1px solid var(--line); }
.help-item:nth-child(even) { padding-left: 36px; padding-right: 0; border-left: 1px solid var(--line); }
.help-item h2 { font-size: 24px; font-weight: 600; letter-spacing: -.025em; }
.help-item p { color: var(--mute); max-width: 440px; }
.link-arrow { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; text-decoration: none; align-self: flex-start; }
.link-arrow svg { width: 15px; height: 15px; transition: transform .25s var(--ease); color: var(--teal); }
.link-arrow:hover svg { transform: translateX(4px); }
.mail { display: inline-flex; align-items: center; gap: 12px; font-size: clamp(22px, 3vw, 34px); font-weight: 600; letter-spacing: -.03em; text-decoration: none; color: var(--ink); border-bottom: 1px solid rgba(63, 197, 236, .5); padding-bottom: 4px; align-self: flex-start; }
.mail:hover { color: var(--teal); }
.steps-list { list-style: none; padding: 0; margin: 0; counter-reset: s; border-top: 1px solid var(--line); }
.steps-list li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 19px; letter-spacing: -.01em; }
.steps-list li::before { content: "0" counter(s); font-family: var(--f-mono); font-size: 12px; color: var(--teal); padding-top: 6px; }

/* ---------- legal ---------- */
.legal { padding-block: 0 140px; }
.legal-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 64px; align-items: start; }
.toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--nav-h) + 32px); display: flex; flex-direction: column; gap: 4px; }
.toc p { margin-bottom: 10px; }
.toc a { display: grid; grid-template-columns: 26px 1fr; gap: 6px; padding: 6px 0; text-decoration: none; color: var(--mute); font-size: 14px; transition: color .2s; }
.toc a span { font-family: var(--f-mono); font-size: 11px; color: var(--dim); padding-top: 2px; }
.toc a:hover, .toc a.on { color: var(--ink); }
.toc a.on span { color: var(--teal); }
.prose { max-width: 720px; color: #c2c8ce; font-size: 16.5px; line-height: 1.7; }
.prose section { padding-block: 40px; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 24px); }
.prose section:first-child { border-top: 0; padding-top: 0; }
.prose h2 { color: var(--ink); font-size: 26px; font-weight: 600; letter-spacing: -.025em; line-height: 1.2; margin-bottom: 16px; }
.prose h3 { color: var(--ink); font-size: 18px; font-weight: 600; margin: 26px 0 10px; }
.prose p + p, .prose ul + p, .prose p + ul, .prose ol + p, .prose p + ol { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.prose li::marker { color: var(--teal); }
.prose a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: rgba(63, 197, 236, .6); }
.prose strong, .prose b { color: var(--ink); font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--ink); font-weight: 600; }
.table-scroll { overflow-x: auto; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding-block: 72px calc(36px + env(safe-area-inset-bottom, 0px)); }
.foot { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot-brand p { margin-top: 18px; color: var(--mute); max-width: 300px; font-size: 15px; }
.foot h4 { font-family: var(--f-mono); font-size: 12px; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); margin-bottom: 16px; }
.foot ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.foot a { text-decoration: none; color: #c2c8ce; font-size: 15px; transition: color .2s; }
.foot a:hover { color: var(--teal); }
.foot-base { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; font-size: 13px; color: var(--mute); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  .menu-btn { display: block; }
  .nav.open .drawer { display: block; }
  .drawer { border-top: 1px solid var(--line); padding-block: 12px 24px; }
  .drawer a { display: block; padding: 14px 0; font-size: 22px; font-weight: 600; letter-spacing: -.02em; text-decoration: none; border-bottom: 1px solid var(--line); }
  .drawer a[aria-current="page"] { color: var(--teal); }
}
@media (max-width: 860px) {
  .hero { height: max(700px, min(100svh, 900px)); }
  .hero-top { top: calc(env(safe-area-inset-top, 0px) + 92px); }
  .hero-bottom { bottom: 32px; }
  .hero-bottom .wrap { flex-direction: column; align-items: stretch; text-align: center; gap: 20px; }
  .hero-sub { margin: 0 auto; font-size: 16px; }
  .hero-cta { justify-content: center; }
  .story-grid, .routine-grid, .split, .two, .flow-row, .row, .faq-group, .legal-grid { grid-template-columns: minmax(0, 1fr); }
  .pin { display: none; }
  .step { min-height: 0; opacity: 1; padding-block: 56px; max-width: none; }
  .step .phone-inline { display: block; margin-top: 34px; height: min(92vw, 560px); width: auto; align-self: center; filter: drop-shadow(0 30px 60px rgba(63, 197, 236, .18)); }
  .routine { padding-block: 100px; }
  .routine .device { height: min(120vw, 600px); }
  .plans, .help-grid { grid-template-columns: minmax(0, 1fr); }
  .plan, .plan + .plan { padding: 30px 0; border-left: 0; }
  .plan + .plan { border-top: 1px solid var(--line); }
  .help-item, .help-item:nth-child(even) { padding: 30px 0; border-left: 0; }
  .signals { grid-template-columns: minmax(0, 1fr); }
  .trio { height: min(110vw, 520px); }
  .trio img:nth-child(1) { left: 27%; }
  .trio img:nth-child(3) { left: 73%; }
  .flow-row { gap: 36px; padding-block: 56px; }
  .flow-row:nth-child(even) .flow-media { order: 0; }
  .flow-media img { height: min(110vw, 560px); }
  .row { gap: 18px; padding-block: 40px; }
  .faq-group { gap: 18px; }
  .toc { display: none; }
  .band, .health { padding-block: 100px; }
  .figure-band img { height: min(70vw, 360px); }
  .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .lines.pre .ln > span, .js .fade.pre { transform: none; opacity: 1; }
}

/* ================= v4: cinematic layer ================= */
/* film grain over everything, very light */
body::after { content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .055; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

.vbg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; background: #000; }
.vshade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 18%, rgba(0,0,0,0) 62%, #000 100%); }
.vshade.side { background: linear-gradient(to right, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 55%), linear-gradient(to bottom, #000 0%, rgba(0,0,0,0) 16%, rgba(0,0,0,0) 80%, #000 100%); }
.vshade.top { background: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.2) 30%, rgba(0,0,0,.45) 70%, #000 100%); }

.vhero { position: relative; isolation: isolate; min-height: max(680px, min(100svh, 1040px)); display: flex; align-items: center; overflow: hidden; }
.vhero-inner { width: 100%; padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 40px); padding-bottom: 96px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.hero-h { font-size: clamp(56px, 9.4vw, 148px); max-width: 9.5ch; }
.vhero .hero-sub { max-width: 440px; font-size: 18px; }
.vhero .hero-cta { justify-content: flex-start; margin-top: 6px; }
.vhero .hero-meta { margin-top: 0; }
.cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 10px; letter-spacing: .3em; color: var(--mute); text-decoration: none; }
.cue span { width: 1px; height: 38px; background: linear-gradient(var(--teal), transparent); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

.vband { position: relative; isolation: isolate; min-height: max(560px, 92vh); display: flex; align-items: center; overflow: hidden; }
.vband-inner { width: 100%; padding-block: 120px; }
.vband h2 { font-size: clamp(54px, 9.6vw, 150px); font-weight: 700; letter-spacing: -.055em; line-height: .92; }
.vband h2 span { display: block; color: rgba(245, 245, 247, .22); transition: color .5s; }
.vband h2 span.lit { color: var(--ink); }
.vband h2 span.lit.accent { color: var(--teal); }
.cap-p { margin-top: 36px; max-width: 440px; color: #aab1b8; font-size: 18px; }

/* liquid-glass cards that float beside the pinned phone */
.gcard { position: absolute; z-index: 3; display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border-radius: 18px; min-width: 190px;
  background: linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.03)); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), inset 0 1px 0 rgba(255,255,255,.18), 0 24px 48px rgba(0,0,0,.45); transition: opacity .45s var(--ease), transform .6s var(--ease); }
.gcard small { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.gcard b { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.gcard.g1 { left: -46%; top: 22%; }
.gcard.g2 { right: -42%; top: 58%; }
.gcard.swap { opacity: 0; transform: translateY(8px); }
.device img { z-index: 1; }

.final.has-video { isolation: isolate; padding-block: 200px 160px; }
.final.has-video::before { display: none; }
.final.has-video .vbg { object-position: 72% 50%; }

@media (max-width: 860px) {
  .vhero { align-items: flex-end; min-height: max(720px, 100svh); }
  .vhero .vbg { object-position: 76% 50%; }
  .vhero .vshade { background: linear-gradient(to bottom, rgba(0,0,0,.4) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,.25) 46%, rgba(0,0,0,.92) 74%, #000 100%); }
  .vhero-inner { padding-bottom: 84px; gap: 18px; }
  .hero-h { font-size: clamp(56px, 17vw, 84px); }
  .vhero .hero-sub { font-size: 16px; }
  .cue { display: none; }
  .vband { align-items: flex-end; min-height: 720px; }
  .vband .vbg { object-position: 80% 50%; }
  .vshade.side { background: linear-gradient(to bottom, #000 0%, rgba(0,0,0,0) 14%, rgba(0,0,0,.2) 45%, rgba(0,0,0,.9) 72%, #000 100%); }
  .vband-inner { padding-block: 60px 80px; }
  .vband h2 { font-size: clamp(50px, 15vw, 76px); }
  .gcard { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cue span { animation: none; }
}
.final.has-video > .wrap > img { display: none; }
.vband h2 { font-size: clamp(54px, 7.4vw, 120px); }
.page-hero.has-bg { isolation: isolate; min-height: min(86vh, 820px); display: flex; align-items: flex-end; }
.page-hero.has-bg::before { display: none; }
.page-hero.has-bg .wrap { width: 100%; }
.ph-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
@media (max-width: 860px) { .page-hero.has-bg { min-height: 640px; } .ph-bg { object-position: 78% 50%; } }

/* ================= v5: scroll-scrubbed film ================= */
.film { position: relative; background: #000; }
.film-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; z-index: 0; }
.film-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.film-shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to right, rgba(0,0,0,.62) 0%, rgba(0,0,0,.25) 38%, rgba(0,0,0,0) 60%),
              linear-gradient(to bottom, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 16%, rgba(0,0,0,0) 78%, rgba(0,0,0,.85) 100%); }
.film-chapters { position: relative; z-index: 1; margin-top: -100vh; margin-top: -100svh; }
.ch { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; position: relative; }
.ch .wrap { width: 100%; }
.ch-hero .wrap { padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 32px); display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.ch-hero .hero-sub { max-width: 440px; font-size: 18px; }
.ch-hero .hero-cta { justify-content: flex-start; margin-top: 6px; }
.ch-hero .hero-meta { margin-top: 0; }
.ch-tag { display: inline-flex; align-items: center; gap: 10px; }
.ch-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px var(--teal); }
.ch-h { margin-top: 18px; font-size: clamp(46px, 6.6vw, 104px); font-weight: 700; letter-spacing: -.05em; line-height: .96; text-wrap: balance; max-width: 11ch; }
.ch-p { margin-top: 22px; max-width: 400px; color: #b4bbc2; font-size: 18px; }
.ch-end .hero-cta { margin-top: 30px; justify-content: flex-start; }
.ch:not(.ch-hero) .wrap > * { transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .ch:not(.ch-hero):not(.in) .wrap > * { opacity: 0; transform: translateY(28px); }
.ch.in .wrap > *:nth-child(2) { transition-delay: .08s; }
.ch.in .wrap > *:nth-child(3) { transition-delay: .16s; }
.ch.in .wrap > *:nth-child(4) { transition-delay: .24s; }
@media (max-width: 860px) {
  .film-shade { background: linear-gradient(to bottom, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 20%, rgba(0,0,0,.15) 45%, rgba(0,0,0,.88) 78%, #000 100%); }
  .ch { align-items: flex-end; }
  .ch .wrap { padding-bottom: 72px; }
  .ch-hero .wrap { gap: 18px; }
  .ch-h { font-size: clamp(44px, 13vw, 64px); }
  .ch-p { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .ch:not(.ch-hero):not(.in) .wrap > * { opacity: 1; transform: none; }
}
/* legibility over the bright chrome */
.film-shade { background: linear-gradient(to right, rgba(0,0,0,.82) 0%, rgba(0,0,0,.55) 30%, rgba(0,0,0,.12) 52%, rgba(0,0,0,0) 64%),
  linear-gradient(to bottom, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 16%, rgba(0,0,0,0) 80%, rgba(0,0,0,.85) 100%); }
.ch .hero-h, .ch-h { text-shadow: 0 2px 34px rgba(0,0,0,.55); }
.ch .hero-sub, .ch-p, .ch .eyebrow, .ch .hero-meta { text-shadow: 0 1px 14px rgba(0,0,0,.85); }
@media (max-width: 860px) {
  .film-shade { background: linear-gradient(to bottom, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 18%, rgba(0,0,0,.35) 46%, rgba(0,0,0,.9) 66%, #000 100%); }
}

/* v6 home show: the A spins into the phone, the phone joins a ring of screens */
.show { position: relative; height: calc(var(--len, 8.6) * 100vh); height: calc(var(--len, 8.6) * 100svh); background: #000; }
.show-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; --sc: var(--teal); }
.show-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .6s ease; }
.gl-on .show-gl { opacity: 1; }
/* while the 3D loads, the still A holds the frame */
.show-stage::before { content: ""; position: absolute; inset: 0; background: url(../media/hero-poster.webp) 78% 50% / cover no-repeat; transition: opacity .8s ease; }
.gl-on .show-stage::before { opacity: 0; }
@media (max-width: 860px) { .show-stage::before { background-position: 80% 0; background-size: auto 62%; } }
.show-vig { position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(130% 95% at 50% 42%, transparent 58%, rgba(0, 0, 0, .7) 100%), linear-gradient(to top, rgba(0, 0, 0, .78), transparent 30%); }
.sh-anchor { position: absolute; left: 0; top: calc(1.6 * 100vh); width: 1px; height: 1px; pointer-events: none; }
.sh-hero { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; will-change: opacity, transform; }
.sh-hero .wrap { width: 100%; padding-top: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.sh-hero .hero-sub { max-width: 440px; font-size: 18px; }
.sh-hero .hero-cta { justify-content: flex-start; margin-top: 6px; }
.sh-hero .hero-meta { margin-top: 0; }
.sh-ui { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; }
/* left index of screens; the active one goes bold with a lit dot */
.sh-index { position: absolute; left: clamp(20px, 3vw, 44px); top: 50%; transform: translateY(-50%); margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 9px; font-size: 12px; letter-spacing: .04em; }
.sh-index li { display: flex; align-items: center; gap: 10px; color: var(--mute); opacity: .5; transition: opacity .5s var(--ease), color .5s var(--ease); }
.sh-index li i { font-style: normal; font-size: 10px; width: 18px; color: var(--dim); transition: color .5s; }
.sh-index li span { position: relative; transition: font-weight .3s; }
.sh-index li.on { opacity: 1; color: var(--ink); font-weight: 600; }
.sh-index li.on i { color: var(--sc); }
.sh-index li.on span::before { content: ""; position: absolute; left: -16px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--sc); box-shadow: 0 0 10px var(--sc); }
/* giant focused-screen name, bottom-left */
.sh-name { position: absolute; left: clamp(20px, 4vw, 58px); bottom: clamp(26px, 4vh, 44px); max-width: 62vw; }
.sh-nidx { display: block; font-size: 12px; letter-spacing: .14em; color: var(--sc); margin-bottom: 10px; transition: color .5s, opacity .18s var(--ease), transform .18s var(--ease), filter .18s var(--ease); }
.sh-name h2 { margin: 0; font-size: clamp(60px, 12vw, 188px); font-weight: 700; letter-spacing: -.06em; line-height: .82; text-transform: uppercase; color: var(--ink);
  transition: opacity .3s var(--ease), transform .3s var(--ease), filter .3s var(--ease); }
.sh-name.swap h2, .sh-name.swap .sh-nidx { opacity: 0; transform: translateY(16px); filter: blur(8px); }
/* stat panel, bottom-right */
.sh-facts { position: absolute; right: clamp(20px, 3vw, 48px); bottom: clamp(30px, 5vh, 52px); width: min(360px, 34vw); margin: 0; transition: opacity .28s var(--ease); }
.sh-facts.swap { opacity: 0; }
.sh-facts .fact { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--line);
  opacity: 0; transform: translateY(14px); filter: blur(6px); animation: fact-rise .6s var(--ease) forwards; }
.sh-facts .fact:nth-child(1) { animation-delay: .16s; }
.sh-facts .fact:nth-child(2) { animation-delay: .28s; }
.sh-facts dt { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.sh-facts dd { margin: 0; font-size: clamp(15px, 1.5vw, 19px); font-weight: 500; color: var(--ink); text-align: right; }
@keyframes fact-rise { to { opacity: 1; transform: translateY(0); filter: blur(0); } }
/* right scroll rail */
.sh-rail { position: absolute; right: 12px; top: 26%; bottom: 26%; width: 2px; z-index: 2; border-radius: 2px; background: rgba(150, 215, 235, .14); opacity: 0; }
.sh-rail i { position: absolute; left: 0; top: 0; width: 100%; height: 10%; border-radius: 2px; background: var(--sc); transition: background .5s; }
/* cold-open preloader: 0–100, then the mark flies up and the hero lifts in */
.sh-pre { position: absolute; inset: 0; z-index: 10; background: #000; display: grid; place-items: center; pointer-events: none; transition: opacity .9s var(--ease); }
.sh-pre.done { opacity: 0; }
.sh-pre-mark { width: clamp(70px, 11vw, 128px); height: auto; filter: drop-shadow(0 0 50px rgba(63, 197, 236, .4)); transition: transform 1.1s var(--ease), opacity 1.1s var(--ease); }
.sh-pre.done .sh-pre-mark { transform: translateY(-22vh) scale(.42); opacity: 0; }
.sh-pre-count { position: absolute; left: 50%; bottom: clamp(26px, 6vh, 54px); transform: translateX(-50%); display: flex; align-items: flex-end; gap: 3px; color: var(--ink); line-height: 1; transition: opacity .5s, filter .5s, transform .5s; }
.sh-pre-count span { font-size: clamp(40px, 6vw, 64px); font-weight: 300; }
.sh-pre-count i { font-style: normal; font-size: 20px; color: var(--mute); padding-bottom: 5px; }
.sh-pre.done .sh-pre-count { opacity: 0; filter: blur(7px); transform: translate(-50%, -26px); }
.sh-end { position: absolute; inset: 0; z-index: 3; display: flex; justify-content: center; align-items: flex-start; text-align: center; padding: calc(var(--nav-h) + 9vh) 20px 0; opacity: 0; visibility: hidden; }
.sh-end .ch-h { font-size: clamp(44px, 6.4vw, 96px); font-weight: 700; letter-spacing: -.05em; line-height: .96; }
.sh-end .hero-cta { justify-content: center; margin-top: 32px; }
.show .cue { z-index: 2; }
.sh-list { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; padding: 0; list-style: none; }
.sh-list img { display: none; }
@media (max-width: 860px) {
  .sh-hero { align-items: flex-end; }
  .sh-hero .wrap { padding-bottom: calc(36px + env(safe-area-inset-bottom, 0px)); gap: 18px; }
  .sh-hero .hero-h { font-size: clamp(52px, 15vw, 76px); }
  .sh-hero .hero-sub { font-size: 16px; }
  .show .cue { display: none; }
  .sh-index { display: none; }
  .sh-rail { display: none; }
  .sh-name { left: 18px; right: 18px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); max-width: none; }
  .sh-name h2 { font-size: clamp(56px, 20vw, 108px); }
  .sh-facts { left: 18px; right: auto; top: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 16px); bottom: auto; width: auto; }
  .sh-facts .fact { grid-template-columns: auto; gap: 2px; padding: 7px 0; border-top: 0; }
  .sh-facts dd { text-align: left; }
}
/* no WebGL, no JS, or reduced motion: a still hero and a swipeable strip of screens */
.no-gl .show, html:not(.js) .show { height: auto; }
.no-gl .show-stage, html:not(.js) .show-stage { position: relative; height: auto; overflow: visible; }
.no-gl .show-gl, .no-gl .sh-ui, .no-gl .sh-end, .no-gl .show .cue, .no-gl .show-vig, .no-gl .sh-pre, .no-gl .sh-rail,
html:not(.js) .show-gl, html:not(.js) .sh-ui, html:not(.js) .sh-end, html:not(.js) .show .cue, html:not(.js) .show-vig, html:not(.js) .sh-pre, html:not(.js) .sh-rail { display: none; }
.no-gl .sh-hero, html:not(.js) .sh-hero { position: relative; min-height: 78vh; min-height: 78svh; align-items: center; }
.no-gl .sh-hero .wrap, html:not(.js) .sh-hero .wrap { padding-top: calc(var(--nav-h) + 60px); padding-bottom: 40px; }
.no-gl .sh-list, html:not(.js) .sh-list { position: static; width: auto; height: auto; clip: auto; white-space: normal; display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 10px max(var(--gl), calc((100vw - 1180px) / 2 + 20px)) 100px; scrollbar-width: none; }
.no-gl .sh-list li, html:not(.js) .sh-list li { flex: 0 0 min(66vw, 250px); scroll-snap-align: center; }
.no-gl .sh-list img, html:not(.js) .sh-list img { display: block; width: 100%; height: auto; margin-bottom: 18px; }
.no-gl .sh-list h3, html:not(.js) .sh-list h3 { font-size: 20px; letter-spacing: -.03em; }
.no-gl .sh-list p, html:not(.js) .sh-list p { margin-top: 6px; font-size: 15px; color: var(--mute); }

/* v7 polish: blur-to-sharp reveals, slow easing */
.lines .ln > span { transition: transform 1.2s var(--ease), filter 1.2s var(--ease), opacity 1.2s var(--ease); }
.js .lines.pre .ln > span { filter: blur(10px); opacity: .2; }
.fade { transition: opacity 1.2s var(--ease), transform 1.2s var(--ease), filter 1.2s var(--ease); }
.js .fade.pre { opacity: 0; transform: translateY(26px); filter: blur(10px); }
@media (prefers-reduced-motion: reduce) { .js .lines.pre .ln > span, .js .fade.pre { filter: none; opacity: 1; transform: none; } }

/* apple health: huge readouts, tiny mono labels */
.readouts { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.readouts div { padding-top: 22px; }
.readouts div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.readouts b { display: block; font-size: clamp(40px, 4.6vw, 64px); font-weight: 600; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.readouts b small { font-size: .32em; font-weight: 500; letter-spacing: 0; color: var(--mute); margin-left: .12em; }
.readouts span { display: block; margin-top: 12px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.sample { margin-top: 16px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }

/* lock screen section: the real Live Activity and reminder, on a phone */
.lockband { position: relative; padding-block: 140px; border-top: 1px solid var(--line); overflow: hidden; }
.lockband::before { content: ""; position: absolute; right: -10%; top: 50%; width: 900px; height: 900px; transform: translateY(-50%); background: radial-gradient(closest-side, rgba(63, 197, 236, .14), transparent); pointer-events: none; }
.ls-facts { margin-top: 36px; border-top: 1px solid var(--line); }
.ls-facts div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ls-facts dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.ls-facts dd { margin: 0; text-align: right; }
.ls-phone { position: relative; justify-self: center; height: min(78vh, 700px); aspect-ratio: 900 / 1955; border-radius: 13.6% / 6.3%; padding: 1.6%;
  background: linear-gradient(150deg, #5d666f, #1b1f23 30%, #0b0d0f 62%, #3a424a); box-shadow: 0 0 0 1px rgba(255, 255, 255, .07), 0 50px 120px rgba(0, 0, 0, .75); }
.ls-screen { position: relative; width: 100%; height: 100%; border-radius: 12.6% / 5.8%; overflow: hidden; background: #000; container-type: size;
  font-family: -apple-system, "SF Pro Display", "SF Pro Text", var(--f-sans); color: #fff; }
.ls-wall { position: absolute; left: 0; top: 16%; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; filter: brightness(.7); }
.ls-screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, .55), transparent 30%, transparent 60%, rgba(0, 0, 0, .6)); pointer-events: none; }
.ls-island { position: absolute; z-index: 3; left: 50%; top: 2.8cqw; width: 33cqw; height: 9.6cqw; transform: translateX(-50%); border-radius: 6cqw; background: #000; display: flex; align-items: center; justify-content: space-between; padding: 0 3cqw; }
.ls-island svg { width: 3.6cqw; fill: var(--teal); }
.ls-island span { font-size: 3.2cqw; font-weight: 600; color: var(--teal); font-variant-numeric: tabular-nums; }
.ls-date { position: absolute; z-index: 2; left: 0; right: 0; top: 19cqw; text-align: center; font-size: 5.1cqw; font-weight: 600; color: rgba(255, 255, 255, .86); }
.ls-clock { position: absolute; z-index: 2; left: 0; right: 0; top: 23cqw; text-align: center; font-size: 25cqw; font-weight: 700; line-height: 1; letter-spacing: -.035em; color: rgba(255, 255, 255, .94); font-variant-numeric: tabular-nums; }
.ls-stack { position: absolute; z-index: 2; left: 3.4cqw; right: 3.4cqw; bottom: 12cqw; display: flex; flex-direction: column; gap: 2.4cqw; }
.ls-card { border-radius: 6cqw; background: rgba(16, 22, 27, .72); backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3); box-shadow: inset 0 0 0 .3cqw rgba(255, 255, 255, .05); }
.ls-la { display: flex; align-items: center; gap: 3.6cqw; padding: 3.8cqw 4.2cqw; }
.ls-tile { flex: none; width: 13cqw; height: 13cqw; border-radius: 3.6cqw; background: rgba(63, 197, 236, .18); display: grid; place-items: center; }
.ls-tile svg { width: 5.6cqw; fill: var(--teal); filter: drop-shadow(0 0 1cqw rgba(63, 197, 236, .7)); }
.ls-mid { flex: 1; min-width: 0; display: block; }
.ls-proto, .ls-right small { display: block; font-size: 2.3cqw; font-weight: 600; letter-spacing: .26cqw; color: rgba(255, 255, 255, .45); }
.ls-title { display: block; margin-top: .8cqw; font-size: 3.9cqw; font-weight: 600; }
.ls-bar { display: block; margin-top: 2cqw; height: 1.1cqw; border-radius: 1cqw; background: rgba(255, 255, 255, .12); overflow: hidden; }
.ls-bar i { display: block; height: 100%; background: var(--teal); transform-origin: left; transform: scaleX(.98); transition: transform 1s linear; }
.ls-right { text-align: right; }
.ls-right b { display: block; margin-top: .8cqw; font-size: 6.4cqw; font-weight: 600; color: var(--teal); font-variant-numeric: tabular-nums; text-shadow: 0 0 1.4cqw rgba(63, 197, 236, .5); }
.ls-notif { display: flex; gap: 3cqw; padding: 3.4cqw 4cqw; align-items: flex-start; opacity: 0; transform: translateY(6cqw) scale(.96); filter: blur(4px);
  transition: opacity .7s var(--ease), transform .9s var(--ease), filter .7s var(--ease); }
.ls-notif.on { opacity: 1; transform: none; filter: none; }
.ls-notif img { flex: none; width: 9.6cqw; height: 9.6cqw; border-radius: 2.3cqw; padding: 1.6cqw; background: linear-gradient(160deg, #13191e, #05080a); box-shadow: inset 0 0 0 .3cqw rgba(255, 255, 255, .08); object-fit: contain; }
.ls-ntxt { flex: 1; min-width: 0; display: block; }
.ls-nhead { display: flex; justify-content: space-between; font-size: 2.9cqw; color: rgba(255, 255, 255, .55); }
.ls-ntitle { display: block; margin-top: .4cqw; font-size: 3.7cqw; font-weight: 600; }
.ls-nbody { display: block; font-size: 3.5cqw; color: rgba(255, 255, 255, .82); }
.ls-home { position: absolute; z-index: 3; left: 50%; bottom: 2.2cqw; width: 35cqw; height: 1.3cqw; transform: translateX(-50%); border-radius: 1cqw; background: rgba(255, 255, 255, .9); }

/* final call to action: the words on the left, the A on the right */
.final.has-video { text-align: left; padding-block: 200px 180px; }
.final.has-video .wrap { display: flex; flex-direction: column; align-items: flex-start; }
.final.has-video h2 { font-size: clamp(56px, 8vw, 132px); max-width: 8ch; }
.final.has-video .btns { justify-content: flex-start; }
.final.has-video .vbg { object-position: 78% 50%; }
.final.has-video .vshade { background: linear-gradient(to right, #000 0%, rgba(0, 0, 0, .78) 32%, rgba(0, 0, 0, .1) 62%, rgba(0, 0, 0, 0) 100%), linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 78%, #000 100%); }

/* inner page heroes: the A sits on the right and fades in, the headline keeps the left */
.page-hero.has-bg .ph-bg { left: auto; right: 0; width: 62%; object-position: 72% 50%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 42%); mask-image: linear-gradient(to right, transparent 0%, #000 42%); }
.page-hero.has-bg .vshade.side { background: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0) 16%, rgba(0, 0, 0, 0) 80%, #000 100%); }
.page-hero.has-bg .display { font-size: clamp(48px, 6.6vw, 104px); max-width: 11ch; }

@media (max-width: 860px) {
  .readouts b { font-size: clamp(30px, 9vw, 44px); }
  .readouts div + div { padding-left: 14px; }
  .trio { height: min(96vw, 440px); margin-top: 8px; }
  .lockband { padding-block: 100px; }
  .lockband .split { gap: 48px; }
  .ls-phone { height: min(76vh, 150vw); order: -1; }
  .final.has-video { padding-block: min(84vw, 460px) 120px; }
  .final.has-video .vbg { object-position: 74% 18%; }
  .final.has-video .vshade { background: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0) 14%, rgba(0, 0, 0, .2) 40%, #000 66%, #000 100%); }
  .final.has-video h2 { font-size: clamp(54px, 15vw, 84px); }
  .page-hero.has-bg .ph-bg { width: 100%; height: 62%; right: 0; top: 0; object-position: 78% 40%;
    -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent); mask-image: linear-gradient(to bottom, #000 45%, transparent); }
  .page-hero.has-bg .display { font-size: clamp(44px, 12vw, 64px); }
}
.lockband .section-h { font-size: clamp(40px, 5vw, 72px); }
@media (max-width: 1180px) { .sh-index { display: none; } }

/* lock screen section, no phone: the countdown is the object */
.ls-live { position: relative; display: flex; flex-direction: column; align-items: flex-start; }
.ls-k { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--teal); }
.ls-count { margin-top: 10px; font-size: clamp(110px, 15vw, 232px); font-weight: 600; line-height: .86; letter-spacing: -.06em; font-variant-numeric: tabular-nums;
  color: var(--ink); transition: color .8s var(--ease), text-shadow .8s var(--ease); }
.ls-live.due .ls-count { color: var(--teal); text-shadow: 0 0 60px rgba(63, 197, 236, .35); }
.ls-track { display: block; width: 100%; max-width: 520px; height: 2px; margin-top: 26px; background: var(--line); overflow: hidden; }
.ls-track i { display: block; height: 100%; background: var(--teal); transform-origin: left; transform: scaleX(0); transition: transform 1s linear; }
.ls-live .ls-notif { position: relative; margin-top: 34px; width: min(100%, 440px); display: flex; gap: 14px; padding: 16px 18px; align-items: flex-start; border-radius: 22px;
  background: rgba(20, 27, 32, .72); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  font-family: -apple-system, "SF Pro Text", var(--f-sans); color: #fff;
  opacity: 0; transform: translateY(18px); filter: blur(8px); transition: opacity .8s var(--ease), transform 1s var(--ease), filter .8s var(--ease); }
.ls-live .ls-notif.on { opacity: 1; transform: none; filter: none; }
.ls-live .ls-notif img { flex: none; width: 44px; height: 44px; border-radius: 11px; padding: 8px; background: linear-gradient(160deg, #13191e, #05080a); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); object-fit: contain; }
.ls-live .ls-nhead { display: flex; justify-content: space-between; font-size: 13px; color: rgba(255, 255, 255, .55); }
.ls-live .ls-ntitle { display: block; margin-top: 2px; font-size: 16px; font-weight: 600; }
.ls-live .ls-nbody { display: block; font-size: 15px; color: rgba(255, 255, 255, .82); }
.lockband::before { right: -20%; opacity: .7; }
@media (max-width: 860px) {
  .ls-count { font-size: clamp(96px, 30vw, 150px); }
  .ls-live .ls-notif { margin-top: 26px; }
}

/* v8: cut to the chase */
.signals-strip { padding-block: 40px 24px; }
.signals-strip .trio { height: min(72vh, 640px); }
.trio-caps { position: relative; display: grid; grid-template-columns: 24% 52% 24%; max-width: 760px; margin: 18px auto 0; text-align: center;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--teal); }
.trio-note { margin-top: 14px; text-align: center; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.close { position: relative; padding-block: 120px 120px; text-align: center; overflow: hidden; }
.close::before { content: ""; position: absolute; left: 50%; top: 46%; width: 700px; height: 520px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(63, 197, 236, .2), transparent); pointer-events: none; }
.close .wrap { position: relative; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.close img { width: 56px; height: auto; filter: drop-shadow(0 0 30px rgba(63, 197, 236, .45)); }
.close .btn { font-size: 16px; padding: 16px 26px; }
.close p { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
footer { padding-block: 34px calc(34px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.foot-slim { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.foot-slim nav { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; }
.foot-slim nav a { color: var(--mute); text-decoration: none; transition: color .2s; }
.foot-slim nav a:hover { color: var(--ink); }
.foot-slim p { flex-basis: 100%; font-size: 12px; color: var(--dim); }
@media (max-width: 860px) {
  .signals-strip .trio { height: min(108vw, 470px); }
  .trio-caps { font-size: 10px; letter-spacing: .12em; }
  .close { padding-block: 90px 100px; }
}
/* the name and stats are driven by the scroll itself; no timed transitions on top */
.sh-name, .sh-facts { transition: none; will-change: opacity, transform, filter; }
.sh-name h2, .sh-nidx { transition: color .5s; }
/* insights heading over the three phones */
.signals-strip { padding-top: 130px; }
.sig-head { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; margin-bottom: 8px; }
.sig-h { font-size: clamp(60px, 9vw, 136px); font-weight: 700; letter-spacing: -.055em; line-height: .9; }
@media (max-width: 860px) { .signals-strip { padding-top: 90px; } .sig-h { font-size: clamp(56px, 17vw, 84px); } }
/* phones: no stat panel up top, just the phones and the big name */
@media (max-width: 860px) { .sh-facts { display: none; } }
/* no hard edge above the download: the glow can fade out past its section */
.close { overflow: visible; }
.close::before { width: 900px; height: 760px; background: radial-gradient(closest-side, rgba(63, 197, 236, .16), rgba(63, 197, 236, .05) 55%, transparent); }
