/* Evenline website. Tokens mirror Baseline/DesignSystem/Tokens.swift (BL.Palette) — keep them in sync. */
:root {
  --canvas: #F7F4EF; --surface: #FFFDFA; --sunken: #EFEBE4; --separator: #E6E1D8;
  --text: #1F1D1A; --text-2: #6B665E; --text-3: #9A948A;
  --accent: #55755F; --accent-soft: #E2EAE3; --on-accent: #FFFFFF;
  --attention: #A8702F; --attention-soft: #F6EBDC;
  --sleep: #6A7194; --sleep-soft: #E6E7F0;
  --partner: #8A6B86; --partner-soft: #F0E8EF;
  --lower: #7488AA; --usual: #6E9077; --higher: #C88E5A; --track: #E9E4DB;
  --shadow: 0 1px 2px rgba(31, 29, 26, .04), 0 12px 32px rgba(31, 29, 26, .07);
  --shadow-lg: 0 2px 6px rgba(31, 29, 26, .05), 0 40px 80px -20px rgba(31, 29, 26, .22);
  --r-sm: 10px; --r-md: 16px; --r-lg: 22px; --r-xl: 32px;
  --serif: "New York", ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, sans-serif;
  --max: 1140px; --gutter: 20px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #141312; --surface: #1F1D1B; --sunken: #2A2826; --separator: #34312D;
    --text: #F2EFEA; --text-2: #A8A39A; --text-3: #77726A;
    --accent: #8FB29B; --accent-soft: #26332B; --on-accent: #10140F;
    --attention: #DDA86A; --attention-soft: #3A2E20;
    --sleep: #9EA5C8; --sleep-soft: #262838;
    --partner: #C4A5C0; --partner-soft: #332A32;
    --lower: #9AAED0; --usual: #92B59D; --higher: #E3B285; --track: #2B2926;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .3);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .4), 0 40px 80px -20px rgba(0, 0, 0, .7);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--canvas); color: var(--text);
  font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.serif { font-family: var(--serif); font-weight: 400; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--text-2); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 999px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--canvas) 78%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid color-mix(in srgb, var(--separator) 70%, transparent);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: var(--serif); font-size: 23px; letter-spacing: -.01em; }
.brand .mark { width: 34px; height: 34px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { color: var(--text-2); text-decoration: none; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--sunken); }
.nav .cta { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.nav .cta:hover { background: var(--accent); color: var(--on-accent); filter: brightness(1.06); }
@media (max-width: 640px) { .nav .hide-sm { display: none; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; min-height: 48px; }
.btn-primary { background: var(--text); color: var(--canvas); }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--separator); }
.btn svg { width: 20px; height: 20px; }
.btn small { display: block; font-size: 11px; font-weight: 500; opacity: .75; line-height: 1.1; }
.btn .stack { line-height: 1.15; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 120px; isolation: isolate; }
.ambient { position: absolute; inset: -80px 0 0; z-index: -1; overflow: hidden; pointer-events: none; }
.ambient span { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; }
.ambient .a1 { width: 520px; height: 520px; background: var(--usual); top: 40px; right: -60px; opacity: .28; }
.ambient .a2 { width: 420px; height: 420px; background: var(--higher); top: 260px; right: 260px; opacity: .18; }
.ambient .a3 { width: 380px; height: 380px; background: var(--lower); top: -60px; left: -120px; opacity: .16; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -.025em; margin: 18px 0 22px; }
.hero h1 em { font-style: italic; color: var(--accent); }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--text-2); max-width: 32em; margin: 0 0 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 32px 0 0; padding: 0; list-style: none; color: var(--text-2); font-size: 14.5px; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 600; }
.badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); font-style: normal; }

.stage { position: relative; display: flex; justify-content: center; }
.float-card { position: absolute; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--separator); }
.device { position: relative; }
.float-ring { left: -132px; bottom: -28px; width: 200px; padding: 14px 14px 16px; text-align: center; }
.float-ring .eyebrow { font-size: 10.5px; }
.ring-wrap.small { width: 168px; margin: 6px auto 4px; }
.ring-wrap.small .word { font-size: 18px; }
.ring-wrap.small .trend { font-size: 10.5px; top: calc(40% + 26px); }
.float-ring .bars { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: left; font-size: 11px; color: var(--text-2); }
.float-ring .bar { height: 5px; border-radius: 3px; background: var(--track); margin-top: 4px; overflow: hidden; }
.float-ring .bar b { display: block; height: 100%; background: var(--higher); border-radius: 3px; }
.float-sleep { right: -128px; top: 296px; padding: 14px 16px; width: 176px; }
.float-sleep .val { font-family: var(--rounded); font-size: 26px; font-weight: 500; letter-spacing: -.01em; }
.float-sleep .lbl { display: flex; align-items: center; gap: 6px; color: var(--sleep); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.float-sleep .lbl svg { width: 14px; height: 14px; }
.float-sleep .delta { font-size: 12.5px; color: var(--text-2); }

/* ---------- Phone ---------- */
.phone {
  width: 300px; aspect-ratio: 300 / 640; border-radius: 48px; padding: 10px; flex-shrink: 0;
  background: linear-gradient(145deg, #3a3835, #121110); box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255,255,255,.08);
}
.screen { position: relative; height: 100%; border-radius: 39px; overflow: hidden; background: var(--canvas); padding: 46px 16px 0; font-size: 12px; line-height: 1.4; }
.island { position: absolute; top: 11px; left: 50%; translate: -50% 0; width: 92px; height: 27px; border-radius: 20px; background: #000; }
.status { position: absolute; top: 15px; left: 30px; right: 26px; display: flex; justify-content: space-between; font-weight: 600; font-size: 12.5px; }
.status .icons { display: flex; gap: 4px; align-items: center; }
.status .icons span { width: 22px; height: 11px; border-radius: 3.5px; border: 1.5px solid var(--text); position: relative; }
.status .icons span::after { content: ""; position: absolute; inset: 1.5px 4px 1.5px 1.5px; background: var(--text); border-radius: 1.5px; }
.s-eyebrow { font-size: 9px; font-weight: 600; letter-spacing: .08em; color: var(--text-2); text-transform: uppercase; margin-top: 12px; }
.s-title { font-family: var(--serif); font-size: 26px; line-height: 1.08; letter-spacing: -.015em; margin: 4px 0 2px; }
.s-sub { color: var(--text-2); font-size: 12px; margin-bottom: 12px; }
.s-card { background: var(--surface); border-radius: var(--r-md); padding: 11px 12px; border: 1px solid color-mix(in srgb, var(--separator) 60%, transparent); }
.s-notice { background: var(--attention-soft); border: 0; margin-bottom: 9px; }
.s-notice .k { display: flex; align-items: center; gap: 6px; color: var(--attention); font-size: 8.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.s-notice p { margin: 6px 0 8px; font-size: 11.5px; line-height: 1.38; }
.s-notice .row { display: flex; gap: 6px; }
.s-notice .row span { flex: 1; text-align: center; padding: 7px 0; border-radius: 9px; font-size: 10.5px; font-weight: 600; }
.s-notice .row .p { background: var(--attention); color: var(--surface); }
.s-notice .row .g { background: var(--surface); color: var(--attention); }
.s-done { display: flex; align-items: center; gap: 6px; background: var(--accent-soft); color: var(--accent); border-radius: 12px; padding: 8px 10px; font-weight: 600; font-size: 11px; margin-bottom: 9px; }
.s-done i { width: 13px; height: 13px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font-style: normal; color: var(--accent-soft); font-size: 8px; }
.s-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.s-tile .k { font-size: 8.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); display: flex; align-items: center; gap: 5px; }
.s-tile .k svg { width: 11px; height: 11px; }
.s-tile .v { font-family: var(--rounded); font-size: 21px; font-weight: 500; margin: 4px 0 1px; }
.s-tile .d { color: var(--text-2); font-size: 10px; line-height: 1.3; }
.s-tabbar { position: absolute; left: 10px; right: 10px; bottom: 12px; display: grid; grid-template-columns: repeat(4, 1fr); background: color-mix(in srgb, var(--surface) 92%, transparent); border-radius: 24px; padding: 6px; box-shadow: var(--shadow); font-size: 8.5px; text-align: center; }
.s-tabbar span { padding: 5px 0 3px; border-radius: 18px; display: grid; justify-items: center; gap: 2px; }
.s-tabbar span svg { width: 15px; height: 15px; }
.s-tabbar .on { background: var(--sunken); color: var(--accent); }
.s-fab { position: absolute; right: 16px; bottom: 74px; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-size: 24px; font-weight: 300; box-shadow: var(--shadow); }

/* ---------- Sections ---------- */
section { scroll-margin-top: 80px; }
.section { padding: 96px 0; }
.section-head { max-width: 640px; margin: 0 0 48px; }
.section-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4.4vw, 50px); line-height: 1.06; letter-spacing: -.02em; margin: 12px 0 14px; }
.section-head p { color: var(--text-2); font-size: 19px; margin: 0; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Check-in strip */
.checkin { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { background: var(--surface); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow); border: 1px solid var(--separator); }
.step .n { counter-increment: step; font-family: var(--rounded); font-size: 13px; font-weight: 600; color: var(--accent); background: var(--accent-soft); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 18px; }
.step .n::before { content: counter(step); }
.step h3 { font-size: 19px; margin: 0 0 6px; letter-spacing: -.01em; }
.step p { margin: 0 0 18px; color: var(--text-2); font-size: 15.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 13.5px; padding: 7px 13px; border-radius: 999px; background: var(--sunken); color: var(--text); }
.chip.on { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.scale { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.scale span { height: 34px; border-radius: 10px; background: var(--sunken); }
.scale .on { background: var(--usual); }
.scale-l { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); margin-top: 6px; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile { position: relative; background: var(--surface); border-radius: var(--r-xl); padding: 30px; box-shadow: var(--shadow); border: 1px solid var(--separator); overflow: hidden; }
.tile h3 { font-family: var(--serif); font-weight: 400; font-size: 27px; line-height: 1.12; letter-spacing: -.015em; margin: 10px 0 8px; }
.tile p { color: var(--text-2); margin: 0; font-size: 16px; max-width: 30em; }
.t-spectrum { grid-column: span 3; }
.t-timeline { grid-column: span 3; }
.t-sleep { grid-column: span 2; background: linear-gradient(170deg, var(--sleep-soft), var(--surface) 70%); }
.t-companion { grid-column: span 2; background: linear-gradient(170deg, var(--partner-soft), var(--surface) 70%); }
.t-plan { grid-column: span 2; background: linear-gradient(170deg, var(--attention-soft), var(--surface) 70%); }
.t-sleep .eyebrow { color: var(--sleep); }
.t-companion .eyebrow { color: var(--partner); }
.t-plan .eyebrow { color: var(--attention); }
.t-spectrum .eyebrow, .t-timeline .eyebrow { color: var(--accent); }
.viz { margin-top: 26px; }
.ring-wrap { position: relative; width: 270px; margin: 26px auto 0; text-align: center; }
.ring-wrap svg { width: 100%; height: auto; }
.ring-wrap .word { position: absolute; left: 0; right: 0; top: 40%; font-family: var(--serif); font-size: 23px; }
.ring-wrap .trend { position: absolute; left: 0; right: 0; top: calc(40% + 36px); font-size: 13px; color: var(--text-2); }
.ring-legend { display: flex; justify-content: space-between; width: 200px; margin: -18px auto 0; font-size: 13px; color: var(--text-3); }
.chart svg { width: 100%; height: auto; }
.chart .lbl { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; margin: 0 0 6px; }
.caption { font-size: 13.5px; color: var(--text-2); margin-top: 12px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.legend span { font-size: 12.5px; padding: 5px 11px; border-radius: 999px; font-weight: 500; }
.legend .you { background: var(--accent-soft); color: var(--accent); }
.legend .meas { background: var(--sleep-soft); color: var(--sleep); }
.legend .part { background: var(--partner-soft); color: var(--partner); }
.legend .gen { border: 1px dashed var(--text-3); color: var(--text-2); }
.mini-bars { display: flex; align-items: flex-end; gap: 7px; height: 88px; margin-top: 26px; }
.mini-bars span { flex: 1; border-radius: 6px 6px 3px 3px; background: var(--sleep); opacity: .85; }
.mini-bars span.usual { opacity: .35; }
.sources { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.sources span { font-size: 12.5px; padding: 5px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--separator); color: var(--text-2); }
.people { display: flex; margin-top: 26px; }
.people span { width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--surface); display: grid; place-items: center; font-weight: 600; font-size: 16px; }
.people span:first-child { background: var(--accent-soft); color: var(--accent); }
.people span:last-child { background: var(--partner-soft); color: var(--partner); margin-left: -12px; }
.plan-lines { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.plan-lines li { background: var(--surface); border-radius: 12px; padding: 9px 12px; font-size: 14px; border: 1px solid var(--separator); }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 28px; }
.principle .ico { width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }
.principle .ico svg { width: 22px; height: 22px; }
.principle h3 { font-size: 17.5px; margin: 0 0 6px; letter-spacing: -.01em; }
.principle p { margin: 0; color: var(--text-2); font-size: 15.5px; }

/* Privacy band */
.band { position: relative; border-radius: 40px; padding: 72px 56px; overflow: hidden; background: #1C2620; color: #F2EFEA; isolation: isolate; }
.band::before { content: ""; position: absolute; inset: auto -10% -60% 30%; height: 120%; background: radial-gradient(closest-side, rgba(143, 178, 155, .35), transparent); z-index: -1; }
.band-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.band .eyebrow { color: #8FB29B; }
.band h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4.2vw, 48px); line-height: 1.06; letter-spacing: -.02em; margin: 12px 0 16px; }
.band p { color: #BFC8C1; font-size: 18px; margin: 0 0 26px; }
.band a { color: #F2EFEA; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); border-radius: 16px; padding: 15px 18px; font-size: 16px; }
.checks svg { width: 20px; height: 20px; flex-shrink: 0; color: #8FB29B; margin-top: 2px; }

/* Crisis + CTA */
.crisis { display: flex; gap: 18px; align-items: flex-start; background: var(--attention-soft); border-radius: var(--r-lg); padding: 24px 28px; }
.crisis svg { width: 26px; height: 26px; color: var(--attention); flex-shrink: 0; margin-top: 2px; }
.crisis p { margin: 0; font-size: 16px; }
.final { text-align: center; padding: 104px 0 112px; }
.final .mark { width: 72px; height: 72px; margin: 0 auto 22px; }
.final h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5vw, 60px); letter-spacing: -.02em; line-height: 1.04; margin: 0 0 16px; }
.final p { color: var(--text-2); font-size: 19px; margin: 0 0 30px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--separator); padding: 40px 0 48px; color: var(--text-2); font-size: 14.5px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer .brand { font-size: 19px; }
.site-footer .brand .mark { width: 26px; height: 26px; }

/* ---------- Legal pages ---------- */
.doc-hero { padding: 64px 0 40px; position: relative; isolation: isolate; }
.doc-hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6vw, 64px); letter-spacing: -.025em; line-height: 1.03; margin: 12px 0 12px; }
.doc-hero p { color: var(--text-2); margin: 0; font-size: 17px; }
.doc-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; padding-bottom: 96px; }
.toc { position: sticky; top: 88px; align-self: start; font-size: 14px; }
.toc p { margin: 0 0 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--separator); }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -2px; color: var(--text-2); text-decoration: none; border-left: 2px solid transparent; }
.toc a:hover { color: var(--text); border-left-color: var(--accent); }
.doc { max-width: 720px; background: var(--surface); border: 1px solid var(--separator); border-radius: var(--r-xl); padding: 48px 52px; box-shadow: var(--shadow); }
.doc > :first-child { margin-top: 0; }
.doc h2 { font-family: var(--serif); font-weight: 400; font-size: 27px; letter-spacing: -.01em; line-height: 1.2; margin: 48px 0 10px; scroll-margin-top: 88px; }
.doc h3 { font-size: 17.5px; margin: 28px 0 6px; }
.doc p, .doc li { color: color-mix(in srgb, var(--text) 88%, var(--text-2)); }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--accent); }
.summary { background: var(--accent-soft); border-radius: var(--r-lg); padding: 22px 26px; }
.summary h2 { margin: 0 0 6px !important; font-size: 22px; }
.summary ul { margin-bottom: 4px; }
.summary.warm { background: var(--attention-soft); }
.summary.warm p:last-child { margin-bottom: 0; }
.table-scroll { overflow-x: auto; margin: 14px 0; border: 1px solid var(--separator); border-radius: var(--r-md); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 480px; }
.table th, .table td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--separator); }
.table tr:last-child td { border-bottom: 0; }
.table th { color: var(--text-2); font-weight: 600; background: var(--sunken); font-size: 13.5px; }
.caps { font-size: 14.5px; letter-spacing: .01em; }

/* ---------- Motion (no JavaScript: CSS scroll-driven where supported) ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes drift { 50% { transform: translate(30px, -20px) scale(1.06); } }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .06s; }
  .hero-copy > :nth-child(3) { animation-delay: .12s; }
  .hero-copy > :nth-child(4) { animation-delay: .18s; }
  .hero-copy > :nth-child(5) { animation-delay: .24s; }
  .stage { animation: rise 1s .15s cubic-bezier(.2, .7, .2, 1) both; }
  .float-ring { animation: rise 1s .5s cubic-bezier(.2, .7, .2, 1) both; }
  .float-sleep { animation: rise 1s .65s cubic-bezier(.2, .7, .2, 1) both; }
  .ring-fill { stroke-dasharray: 1; animation: draw 1.6s .9s cubic-bezier(.3, .7, .2, 1) both; }
  .ambient span { animation: drift 18s ease-in-out infinite; }
  .ambient .a2 { animation-duration: 23s; animation-direction: reverse; }
  @supports (animation-timeline: view()) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { padding: 48px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .principles { grid-template-columns: repeat(2, 1fr); }
  .t-spectrum, .t-timeline { grid-column: span 6; }
  .t-sleep, .t-companion, .t-plan { grid-column: span 3; }
  .t-plan { grid-column: span 6; }
  .band-grid { grid-template-columns: 1fr; gap: 36px; }
  .doc-layout { grid-template-columns: 1fr; }
  .toc { display: none; }
}
@media (max-width: 720px) {
  .checkin { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .band { padding: 48px 24px; border-radius: 28px; }
  .doc { padding: 28px 22px; border-radius: var(--r-lg); }
  .t-sleep, .t-companion, .t-plan { grid-column: span 6; }
  .tile { padding: 24px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .principles { grid-template-columns: 1fr; }
  .float-ring { left: -44px; width: 156px; bottom: -36px; padding: 10px 10px 12px; }
  .ring-wrap.small { width: 132px; }
  .ring-wrap.small .word { font-size: 15px; }
  .ring-wrap.small .trend { display: none; }
  .float-sleep { right: -44px; top: 330px; width: 140px; padding: 11px 13px; }
  .float-sleep .val { font-size: 21px; }
  .phone { width: 270px; }
  .stage { padding: 0 24px; }
  .crisis { padding: 20px; }
}
