/* Wakeful marketing site. One stylesheet, no build step.
   System: dark ink ground, one peach accent, Instrument Sans in three weights.
   Proportions and rhythm follow the reference system noted in the handoff report. */

:root {
    --bg: #f4f3f1;
    --surface: #ffffff;
    --surface-2: #ebe9e6;
    --ink: #141414;
    --muted: #5e5b58;
    --peach: #f0dcc8;
    --peach-text: #805637;
    --on-peach: #2b2725;
    --peach-ink: #221c16;
    --peach-link: #57493b;
    --red: #d93a3f;
    --chart-after: #e5c6a8;

    --font: "Instrument Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    --s-display: clamp(44px, 6.1vw, 88px);
    --s-title: clamp(34px, 4.2vw, 60px);
    --s-head: clamp(22px, 2vw, 28px);
    --s-lead: clamp(18px, 1.4vw, 20px);
    --s-body: 17px;
    --s-small: 14.5px;

    --m: 32px;
    --gap: 24px;
    --section: clamp(120px, 14vw, 200px);
    --r: 28px;
    --ease: cubic-bezier(.2, .7, .2, 1);
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #141414;
        --surface: #1c1c1c;
        --surface-2: #242424;
        --ink: #f7f7f7;
        --muted: #adadad;
        --peach-text: #f0dcc8;
        --red: #e5484d;
        --chart-after: #f0dcc8;
        color-scheme: dark;
    }
}

@media (max-width: 720px) {
    :root { --m: 20px; --gap: 16px; --r: 22px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 400 var(--s-body)/1.6 var(--font);
    font-feature-settings: "tnum" 0;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
h1, h2, h3 { font-weight: 500; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--peach); color: var(--on-peach); }
:focus-visible { outline: 3px solid var(--peach-text); outline-offset: 3px; border-radius: 6px; }
.tnum { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--m); top: -60px; background: var(--peach); color: var(--on-peach); padding: 10px 16px; border-radius: 999px; z-index: 10; }
.skip:focus { top: 12px; }

.wrap { padding-inline: var(--m); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }

/* Type roles */
.display { font-size: var(--s-display); line-height: 1; letter-spacing: -0.035em; font-weight: 500; }
.title { font-size: var(--s-title); line-height: 1.02; letter-spacing: -0.03em; font-weight: 500; }
.head { font-size: var(--s-head); line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; }
.lead { font-size: var(--s-lead); line-height: 1.6; color: var(--muted); }
.small { font-size: var(--s-small); line-height: 1.5; color: var(--muted); }
.ink { color: var(--ink); }

/* Buttons: one shape, the pill */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 56px; padding: 0 30px; border-radius: 999px; border: 0;
    font: 600 16px/1 var(--font); text-decoration: none; cursor: pointer;
    transition: transform .12s var(--ease), background-color .2s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--peach); color: var(--on-peach); }
.btn-primary:hover { background: #f5e5d5; }
.btn-quiet { background: var(--surface-2); color: var(--ink); font-weight: 500; }
.btn-quiet:hover { background: var(--surface); }
.btn-dark { background: #141414; color: var(--peach); }
.btn-dark:hover { background: #000; }
.btn svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 480px) { .btn { padding: 0 20px; font-size: 15px; white-space: nowrap; } }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.text-link { font-weight: 500; }

/* Header: wordmark, a few plain links, one action */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 20px; letter-spacing: -0.02em; text-decoration: none; }
.wordmark img { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; color: var(--muted); font-size: 16px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav .btn { min-height: 44px; padding: 0 22px; font-size: 15px; color: var(--on-peach); }
@media (max-width: 860px) {
    .nav a:not(.btn) { display: none; }
}

/* Reveal on enter. Content is visible without script. */
.js [data-reveal] > * { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].in > * { opacity: 1; transform: none; }
.js [data-reveal].in > *:nth-child(2) { transition-delay: 70ms; }
.js [data-reveal].in > *:nth-child(3) { transition-delay: 140ms; }
.js [data-reveal].in > *:nth-child(4) { transition-delay: 210ms; }
.js [data-reveal].in > *:nth-child(5) { transition-delay: 280ms; }

section { position: relative; }
.section { margin-top: var(--section); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(40px, 6vw, 88px); align-items: center; row-gap: 48px; }
.hero-copy { grid-column: 1 / 8; }
.hero-copy .lead { margin-top: 32px; max-width: 34em; }
.hero-copy .btn-row { margin-top: 40px; }
.hero-copy .fine { margin-top: 20px; }
.hero-stage { grid-column: 8 / 13; }
@media (max-width: 960px) {
    .hero-copy, .hero-stage { grid-column: 1 / -1; }
}

/* Report trend card: the hero's one live thing (an example of the report's weekly chart) */
.trend {
    margin: 0; border-radius: var(--r); background: var(--surface); color: var(--ink);
    padding: clamp(22px, 2.6vw, 34px); display: grid; gap: 18px;
    --bar: color-mix(in srgb, var(--ink) 13%, transparent);
    --bar-after: var(--chart-after);
    --line: var(--ink);
}
.trend-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.trend-title { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.trend-tag { font-size: 13px; font-weight: 600; padding: 4px 11px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.trend-big { display: grid; gap: 4px; }
.trend-big b { font-size: clamp(56px, 6vw, 84px); font-weight: 600; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.trend-big span { font-size: 15px; color: var(--muted); }
.trend-switch { display: none; gap: 6px; flex-wrap: wrap; }
.js .trend-switch { display: flex; }
.trend-switch button {
    min-height: 40px; padding: 0 16px; border-radius: 999px; border: 0; cursor: pointer;
    font: 500 15px/1 var(--font); background: var(--surface-2); color: var(--ink);
    transition: background-color .2s, color .2s, transform .12s var(--ease);
}
.trend-switch button:active { transform: scale(.96); }
.trend-switch button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.trend-chart { width: 100%; height: auto; display: block; overflow: visible; font-family: var(--font); }
.trend-bars rect { fill: var(--bar); transform-box: fill-box; transform-origin: 50% 100%; }
.trend-bars rect.after { fill: var(--bar-after); }
.trend-change line { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 3 4; stroke-linecap: round; }
.trend-change text { font-size: 11px; font-weight: 600; fill: var(--muted); }
.trend-line { fill: none; stroke: var(--line); stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.trend-dot { fill: var(--line); stroke: var(--surface); stroke-width: 2; transform-box: fill-box; transform-origin: center; }
.trend-ring { fill: none; stroke: var(--peach-text); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.trend-badge rect { fill: var(--ink); }
.trend-badge text { fill: var(--bg); font-size: 12.5px; font-weight: 600; text-anchor: middle; font-variant-numeric: tabular-nums; }
.trend-axis { font-size: 11px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.trend-foot { display: flex; justify-content: space-between; gap: 12px; padding-top: 14px; font-size: var(--s-small); color: var(--muted); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--ink) 8%, transparent); } /* taste-skill-ignore: inside a data-ui product fragment */
.trend-foot span:first-child { color: var(--ink); font-weight: 500; }
.js-only { display: none; }
.js .js-only { display: inline; }
/* Intro: bars grow, the dose change drops in, the trend draws, the last week pops. Only with JS
   (it adds .play), and the reduced-motion rule at the end of this file turns it off. */
.trend.play .trend-bars rect { animation: trend-grow .6s var(--ease) both; }
.trend.play .trend-bars rect:nth-child(2) { animation-delay: .07s; }
.trend.play .trend-bars rect:nth-child(3) { animation-delay: .14s; }
.trend.play .trend-bars rect:nth-child(4) { animation-delay: .21s; }
.trend.play .trend-bars rect:nth-child(5) { animation-delay: .28s; }
.trend.play .trend-bars rect:nth-child(6) { animation-delay: .35s; }
.trend.play .trend-bars rect:nth-child(7) { animation-delay: .42s; }
.trend.play .trend-bars rect:nth-child(8) { animation-delay: .49s; }
.trend.play .trend-change { animation: trend-fade .45s .6s var(--ease) both; }
.trend.play .trend-line { animation: trend-draw 1s .8s cubic-bezier(.45, 0, .2, 1) both; }
.trend.play .trend-dot { animation: trend-pop .35s 1.75s var(--ease) both; }
.trend.play .trend-badge { animation: trend-fade .4s 1.9s var(--ease) both; }
.trend.play .trend-ring { animation: trend-ring 1.8s 2.1s ease-out 2; }
.trend.play .trend-big b { animation: trend-fade .4s 1.9s var(--ease) both; }
@keyframes trend-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes trend-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes trend-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes trend-pop { 0% { transform: scale(0); } 70% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes trend-ring { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
.caption { margin-top: 14px; font-size: var(--s-small); color: var(--muted); }

/* Night timeline (shared by hero and CTA fragments) */
.tl { position: relative; height: 56px; }
.tl-track { position: absolute; left: 9px; right: 9px; top: 8px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.14); }
.tl-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 42.5%; border-radius: 3px; background: rgba(255,255,255,.3); transition: width .8s var(--ease); }
.tl-mark { position: absolute; top: 0; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; border: 4px solid #1d1a17; background: #f7f7f7; }
.tl-mark.d2 { background: #f0dcc8; }
.tl-mark.wake { background: #8a8a8a; }
.tl-label { position: absolute; top: 28px; transform: translateX(-50%); font-size: 13px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tl-label span { display: block; font-weight: 400; color: rgba(255,255,255,.6); text-align: center; }
.tl .p-d1 { left: 15%; }
.tl .p-d2 { left: 42.5%; }
.tl .p-wake { left: 95%; }
.tl-label.first { transform: none; }
.tl-label.last { transform: translateX(-100%); }

/* ---------- Summary (narrow column) ---------- */
.summary { align-items: start; }
.summary h2 { grid-column: 1 / 5; }
.summary-body { grid-column: 5 / 10; display: grid; gap: 18px; font-size: var(--s-lead); line-height: 1.6; }
.summary-body p:first-child { font-weight: 500; }
.summary-body p + p { color: var(--muted); }
.summary-facts { grid-column: 10 / 13; display: grid; gap: 22px; align-content: start; }
.fact b { display: block; font-size: var(--s-head); font-weight: 600; letter-spacing: -0.02em; }
.fact span { color: var(--muted); font-size: var(--s-small); }
@media (max-width: 960px) {
    .summary h2, .summary-body, .summary-facts { grid-column: 1 / -1; }
    .summary-body { margin-top: 28px; }
    .summary-facts { margin-top: 40px; grid-template-columns: 1fr 1fr; }
}

/* ---------- The night (call and response) ---------- */
.night-head { grid-column: 1 / -1; margin-bottom: 72px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 20px; }
.night-head h2 { grid-column: 1 / 8; }
.night-head p { grid-column: 8 / 13; align-self: end; }
.night-steps { grid-column: 1 / -1; display: grid; gap: 96px; }
.step { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 440px); justify-content: space-between; grid-template-rows: auto 1fr; column-gap: 56px; row-gap: 24px; align-items: start; }
.step-say { grid-column: 1; }
.step-say p.q { font-size: var(--s-lead); font-weight: 500; line-height: 1.4; }
.step-say p + p { margin-top: 12px; color: var(--muted); }
.call { grid-column: 1; background: var(--surface); border-radius: 18px; padding: 20px; display: grid; gap: 4px; }
.call-row { display: flex; justify-content: space-between; align-items: center; min-height: 44px; font-size: 16px; }
.call-row + .call-row { box-shadow: inset 0 1px 0 color-mix(in srgb, var(--ink) 8%, transparent); } /* taste-skill-ignore: inside a data-ui product fragment */
.call-row .pill { background: var(--surface-2); border-radius: 10px; padding: 6px 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.call-row .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--peach); margin-right: 8px; vertical-align: 1px; }
.response { grid-column: 2; grid-row: 1 / span 2; }
.shot { border-radius: var(--r); overflow: hidden; background: var(--surface); }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.shot.crop-top { aspect-ratio: 4 / 5; }
.shot.crop-mid img { object-position: 50% 30%; }
@media (max-width: 960px) {
    .night-head { margin-bottom: 48px; }
    .night-head h2, .night-head p { grid-column: 1 / -1; }
    .night-steps { grid-column: 1 / -1; gap: 72px; }
    .step { grid-template-columns: 1fr; }
    .response { grid-column: 1; grid-row: auto; max-width: 420px; }
}

/* ---------- Logging (split with crossfade) ---------- */
.logging { align-items: center; row-gap: 48px; }
.logging-copy { grid-column: 1 / 6; }
.logging-copy .lead { margin-top: 28px; }
.kinds { margin-top: 36px; display: grid; gap: 0; padding: 0; list-style: none; }
.kinds li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; font-size: var(--s-lead); }
.kinds li span { color: var(--muted); font-size: var(--s-small); text-align: right; }
.logging-stage { grid-column: 7 / 13; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: end; }
.fade { position: relative; aspect-ratio: 800 / 1300; border-radius: var(--r); overflow: hidden; background: var(--surface); }
.fade picture, .fade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.js .fade picture { opacity: 0; transition: opacity 1.6s ease; }
.js .fade picture.on { opacity: 1; }
.fade-still { aspect-ratio: 800 / 1300; }
.logging-stage figcaption { grid-column: 1 / -1; }
@media (max-width: 960px) {
    .logging-copy, .logging-stage { grid-column: 1 / -1; }
}

/* ---------- Switch bands ---------- */
.bands-head { margin-bottom: 48px; }
.bands-head p { margin-top: 20px; max-width: 40em; }
.band {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px;
    min-height: max(132px, 18vh); padding: 24px var(--m);
    background: var(--bg); transition: background-color .35s var(--ease);
}
.band-text { font-size: clamp(24px, 2.6vw, 36px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 500; color: var(--muted); transition: color .3s; }
.band-more { display: block; font-size: var(--s-body); color: var(--ink); line-height: 1.5; margin-top: 8px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .4s var(--ease), opacity .3s; }
.band.on .band-text { color: var(--ink); }
.band.on .band-more { max-height: 6em; opacity: 1; }
.band.on { background: var(--surface); }
.band.on.peach { background: var(--peach); }
.band.on.peach .band-text, .band.on.peach .band-more { color: var(--on-peach); }
@media (max-width: 720px) { .band-text { font-size: 22px; } .band-more { font-size: 15px; } .privacy-field { padding: 28px 22px; } }
.band.on.alt { background: var(--surface-2); }
.switch {
    position: relative; width: 64px; height: 38px; border-radius: 999px; border: 0; padding: 0; cursor: pointer;
    background: color-mix(in srgb, var(--ink) 18%, transparent); transition: background-color .25s;
}
.switch::after { content: ""; position: absolute; top: 4px; left: 4px; width: 30px; height: 30px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); box-shadow: 0 1px 3px rgba(0,0,0,.25); } /* taste-skill-ignore: inside a data-ui product fragment */
.switch[aria-checked="true"] { background: #34c759; }
.switch[aria-checked="true"]::after { transform: translateX(26px); }
.switch::before { content: ""; position: absolute; inset: -6px; }
.band-plus { display: inline-block; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--peach) 28%, transparent); color: var(--peach-text); vertical-align: middle; margin-left: 8px; letter-spacing: 0; }
.band.on.peach .band-plus { background: rgba(43,39,37,.12); color: var(--on-peach); }

/* ---------- Report showcase (output index) ---------- */
.report-head { margin-bottom: 56px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 20px; }
.report-head h2 { grid-column: 1 / 7; }
.report-head p { grid-column: 8 / 13; align-self: end; }
.outputs { align-items: start; }
.output-list { grid-column: 1 / 6; display: grid; gap: 6px; align-content: start; }
.output-list button {
    text-align: left; background: none; border: 0; padding: 4px 0; cursor: pointer;
    font: 500 clamp(32px, 3.6vw, 56px)/1.1 var(--font); letter-spacing: -0.03em; color: var(--muted);
    transition: color .2s;
}
.output-list button:hover { color: var(--ink); }
.output-list button[aria-selected="true"] { color: var(--ink); }
.output-list .small { margin-top: 28px; max-width: 30em; }
.stage {
    grid-column: 6 / 13; position: relative; overflow: hidden; border-radius: var(--r);
    background: var(--surface-2); height: min(88svh, 780px); padding: 64px 0 0 64px;
}
.panel { transition: opacity .2s ease; }
.panel[hidden] { display: none; }
.sheet {
    width: 560px; background: #fff; color: #141414; border-radius: 6px; padding: 40px 40px 48px;
    font-family: var(--font); box-shadow: 0 18px 50px rgba(0,0,0,.18); /* taste-skill-ignore: inside a data-ui product fragment */
}
.sheet-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.sheet-top b { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.sheet-top span { font-size: 13px; color: #5e5b58; }
.sheet-sub { font-size: 13px; color: #5e5b58; margin-top: 4px; }
.sheet-big { display: flex; align-items: baseline; gap: 10px; margin-top: 28px; }
.sheet-big b { font-size: 56px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.sheet-big span { font-size: 15px; color: #5e5b58; }
.sheet-note { font-size: 13.5px; color: #3a3735; margin-top: 8px; }
.bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: end; height: 150px; margin-top: 22px; position: relative; }
.bar { display: grid; justify-items: center; align-content: end; gap: 6px; height: 100%; font-size: 12.5px; color: #5e5b58; font-variant-numeric: tabular-nums; }
.bar i { display: block; width: 100%; border-radius: 10px; background: #8d8a87; }
.bar.after i { background: #e9cdb1; }
.bar b { font-size: 13px; color: #141414; font-weight: 600; }
.bars .change { position: absolute; left: 50%; top: -6px; bottom: 22px; border-left: 2px dashed #b9b4ae; }
.bars .change span { position: absolute; top: -14px; left: 6px; font-size: 12px; color: #5e5b58; white-space: nowrap; }
.sheet-rows { margin-top: 28px; display: grid; }
.sheet-rows div { display: flex; justify-content: space-between; padding: 10px 0; font-size: 14px; box-shadow: inset 0 -1px 0 #ecebe9; font-variant-numeric: tabular-nums; } /* taste-skill-ignore: inside a data-ui product fragment */
.sheet-rows div span:last-child { font-weight: 600; }
.sheet-foot { font-size: 12px; color: #6c6864; margin-top: 18px; }
.csv {
    width: 600px; background: #fff; color: #141414; border-radius: 6px; padding: 28px 32px; font-size: 14px;
    box-shadow: 0 18px 50px rgba(0,0,0,.18); /* taste-skill-ignore: inside a data-ui product fragment */
}
.csv table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.csv th, .csv td { text-align: left; padding: 9px 12px 9px 0; border-bottom: 1px solid #ecebe9; white-space: nowrap; }
.csv th { font-weight: 600; color: #5e5b58; font-size: 13px; }
.csv-title { font-weight: 600; margin-bottom: 14px; }
.panel .shot-plain { width: 380px; border-radius: 22px; overflow: hidden; }
@media (max-width: 960px) {
    .report-head h2, .report-head p { grid-column: 1 / -1; }
    .output-list { grid-column: 1 / -1; display: flex; flex-wrap: wrap; column-gap: 20px; row-gap: 4px; }
    .output-list button { font-size: 24px; white-space: nowrap; scroll-snap-align: start; }
    .output-list .small { display: none; }
    .stage { grid-column: 1 / -1; margin-top: 20px; height: 70svh; padding: 16px 0 0 16px; }
}

/* ---------- Privacy ---------- */
.privacy-field { background: var(--surface); border-radius: var(--r); padding: clamp(32px, 5vw, 72px); }
.privacy-field .grid { row-gap: 48px; }
.privacy-field h2 { grid-column: 1 / 7; }
.privacy-field .lead { grid-column: 8 / 13; align-self: end; }
.privacy-points { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); padding: 0; list-style: none; }
.privacy-points li b { display: block; font-size: var(--s-head); line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; }
.privacy-points li p { margin-top: 12px; color: var(--muted); }
.privacy-field .text-link { grid-column: 1 / -1; }
@media (max-width: 960px) {
    .privacy-field h2, .privacy-field .lead { grid-column: 1 / -1; }
    .privacy-points { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .privacy-points { grid-template-columns: 1fr; } }

/* ---------- Pricing (plan names, one live figure) ---------- */
.pricing-head { margin-bottom: 48px; }
.pricing-head p { margin-top: 20px; max-width: 40em; }
.plans { align-items: start; }
.plan-names { grid-column: 1 / 7; display: grid; gap: 4px; }
.plan-names button {
    display: flex; align-items: center; gap: .3em; text-align: left; background: none; border: 0; padding: 4px 0; cursor: pointer;
    font: 500 clamp(36px, 4.6vw, 68px)/1.1 var(--font); letter-spacing: -0.035em; color: var(--muted);
}
.plan-names button::before { content: ""; width: .3em; height: .3em; border-radius: 50%; background: currentColor; opacity: 0; flex: none; transition: opacity .2s; }
.plan-names button[aria-selected="true"] { color: var(--ink); }
.plan-names button[aria-selected="true"]::before { opacity: 1; background: var(--peach-text); }
.plan-stage { grid-column: 8 / 13; background: var(--surface); border-radius: var(--r); padding: 40px; min-height: 100%; }
.price { display: flex; align-items: baseline; gap: 10px; }
.price b { font-size: clamp(64px, 7vw, 108px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.price span { font-size: 18px; color: var(--muted); }
.plan-panel p { margin-top: 20px; font-size: var(--s-lead); }
.plan-panel ul { margin-top: 20px; padding-left: 1.1em; color: var(--muted); display: grid; gap: 6px; }
.plan-panel .btn { margin-top: 32px; }
@media (max-width: 960px) {
    .plan-names, .plan-stage { grid-column: 1 / -1; }
    .plan-stage { margin-top: 24px; padding: 28px; }
}

/* ---------- FAQ (filled tiles) ---------- */
.faq h2 { grid-column: 1 / 5; position: sticky; top: 40px; align-self: start; }
.faq-list { grid-column: 5 / 13; display: grid; gap: 8px; }
.qa { background: var(--surface); border-radius: 22px; transition: background-color .25s; }
.qa summary {
    list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
    min-height: 72px; padding: 18px 24px; font-size: var(--s-lead); font-weight: 500; line-height: 1.35;
}
.qa summary::-webkit-details-marker { display: none; }
.qa h3 { font: inherit; }
.plus { position: relative; width: 16px; height: 16px; flex: none; }
.plus::before, .plus::after { content: ""; position: absolute; left: 0; top: 6.5px; width: 16px; height: 3px; border-radius: 2px; background: currentColor; transition: transform .25s var(--ease); }
.plus::after { transform: rotate(90deg); }
.qa[open] { background: var(--peach); color: var(--on-peach); }
.qa[open] .plus::after { transform: rotate(0deg); }
.qa .answer { padding: 0 24px 24px; max-width: 58ch; font-size: var(--s-body); }
.qa .answer p + p { margin-top: 10px; }
.qa[open] a { color: var(--on-peach); }
@media (max-width: 960px) {
    .faq h2 { grid-column: 1 / -1; position: static; margin-bottom: 32px; }
    .faq-list { grid-column: 1 / -1; }
}

/* ---------- CTA: first step, already open ---------- */
.cta { background: var(--peach); color: var(--on-peach); min-height: min(90svh, 860px); margin-top: var(--section); padding-block: 72px; display: grid; align-items: stretch; }
.cta .grid { align-items: stretch; row-gap: 48px; }
.cta-copy { grid-column: 1 / 7; align-self: end; }
.cta-copy h2 { font-size: clamp(48px, 7vw, 104px); line-height: .94; letter-spacing: -0.045em; }
.cta-copy p { margin-top: 28px; font-size: var(--s-lead); max-width: 26em; }
.cta-copy .fine { margin-top: 16px; font-size: var(--s-small); color: #5b4c3f; }
.setup {
    grid-column: 7 / 12; align-self: center; width: 100%; max-width: 460px; justify-self: center;
    background: #141414; color: #f7f7f7; border-radius: 34px; padding: 32px 24px 24px;
    box-shadow: 0 30px 60px rgba(43, 39, 37, .28); /* taste-skill-ignore: inside a data-ui product fragment */
}
.setup h3 { font-size: 28px; line-height: 1.1; letter-spacing: -0.02em; font-weight: 500; }
.setup .sub { color: #adadad; margin-top: 8px; font-size: 15px; }
.goals { margin: 22px 0 0; padding: 4px 16px; border: 0; background: #1c1c1c; border-radius: 22px; display: grid; }
.goal { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 0; cursor: pointer; }
.goal + .goal { box-shadow: inset 0 1px 0 rgba(255,255,255,.08); } /* taste-skill-ignore: inside a data-ui product fragment */
.goal input { appearance: none; -webkit-appearance: none; flex: none; width: 24px; height: 24px; margin: 0; border-radius: 50%; border: 2px solid #5e5b58; display: grid; place-items: center; cursor: pointer; transition: background-color .2s, border-color .2s; }
.goal input::after { content: ""; width: 10px; height: 6px; border: solid #1c1917; border-width: 0 0 2.5px 2.5px; transform: translateY(-1px) rotate(-45deg); opacity: 0; }
.goal input:checked { background: #f0dcc8; border-color: #f0dcc8; }
.goal input:checked::after { opacity: 1; }
.goal input:focus-visible { outline: 3px solid #f0dcc8; outline-offset: 2px; }
.goal b { display: block; font-size: 16px; font-weight: 500; }
.goal small { display: block; font-size: 13.5px; color: #adadad; margin-top: 2px; }
.setup-dose { margin-top: 22px; }
.setup-dose .sub { margin-top: 0; }
.setup:not(:has(#goal-dose2:checked)) .setup-dose { display: none; }
.setup-rows { margin-top: 14px; background: #1c1c1c; border-radius: 22px; padding: 4px 16px; }
.setup-row { display: flex; justify-content: space-between; align-items: center; min-height: 56px; gap: 12px; }
.setup-row + .setup-row { box-shadow: inset 0 1px 0 rgba(255,255,255,.08); } /* taste-skill-ignore: inside a data-ui product fragment */
.setup-row label { font-size: 16px; }
.setup-row input {
    font: 500 16px var(--font); color: #f7f7f7; background: #2a2a2a; border: 0; border-radius: 10px; padding: 8px 10px;
    color-scheme: dark; font-variant-numeric: tabular-nums; min-height: 40px;
}
.setup .tl { margin-top: 22px; }
.setup .tl-mark { border-color: #141414; }
.setup .note { margin-top: 26px; font-size: 13.5px; color: #adadad; }
.setup .btn { width: 100%; margin-top: 22px; }
@media (max-width: 960px) {
    .cta { min-height: 0; }
    .cta-copy, .setup { grid-column: 1 / -1; }
    .cta-copy { align-self: start; }
    .setup { justify-self: stretch; max-width: none; }
}

/* ---------- Footer of tiles ---------- */
.site-footer { padding: 8px; margin-top: var(--section); }
main:has(> .cta:last-child) + .site-footer { margin-top: 0; }
.tiles { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; }
.tile { border-radius: 22px; padding: 28px; background: var(--surface); min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.tile.statement { grid-column: 1 / 6; }
.tile.statement p:first-child { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.3; letter-spacing: -0.01em; }
.tile.navs { grid-column: 6 / 9; }
.tile.navs ul { list-style: none; padding: 0; display: grid; gap: 6px; }
.tile.navs a { text-decoration: none; }
.tile.navs a:hover { text-decoration: underline; }
.tile.mail { grid-column: 9 / 13; }
.tile.mail a { font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; overflow-wrap: anywhere; }
.tile.brand { grid-column: 1 / 9; min-height: 320px; background: var(--ink); color: var(--bg); align-items: center; justify-content: center; }
.tile.brand span { font-size: clamp(64px, 11vw, 168px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.tile.go { grid-column: 9 / 13; min-height: 320px; background: var(--peach); color: var(--on-peach); text-decoration: none; transition: transform .2s var(--ease); }
.tile.go:hover { transform: translateY(-3px); text-decoration: none; }
.tile.go b { font-size: 28px; line-height: 1.15; font-weight: 500; letter-spacing: -0.02em; }
.tile.go svg { width: 56px; height: 56px; align-self: flex-end; }
.tile .small { color: var(--muted); }
@media (max-width: 960px) {
    .tile.statement, .tile.navs, .tile.mail, .tile.brand, .tile.go { grid-column: span 12; min-height: 0; }
    .tile.brand { order: -2; min-height: 160px; }
    .tile.go { order: -1; min-height: 160px; }
    .tile.navs, .tile.mail { grid-column: span 6; }
}
@media (max-width: 480px) { .tile.navs, .tile.mail { grid-column: span 12; } }

/* ---------- Document pages (privacy, terms, support, blog) ---------- */
.doc { padding-top: clamp(40px, 6vw, 96px); align-items: start; row-gap: 40px; }
.doc-side { grid-column: 1 / 6; position: sticky; top: 32px; }
.doc-side h1 { font-size: var(--s-title); line-height: 1.02; letter-spacing: -0.03em; }
.doc-side .meta { margin-top: 20px; color: var(--muted); font-size: var(--s-small); }
.doc-side nav { margin-top: 32px; }
.doc-side nav ul { list-style: none; padding: 0; display: grid; gap: 6px; }
.doc-side nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.doc-side nav a:hover { color: var(--ink); }
.prose { grid-column: 6 / 13; font-size: 19px; line-height: 1.65; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: var(--s-head); line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; margin-top: 2.2em; }
.prose h3 { font-size: 19px; font-weight: 600; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .4em; }
.prose .note { background: var(--surface); border-radius: 18px; padding: 18px 22px; font-size: 16px; }
.prose .lead-p { font-size: var(--s-lead); font-weight: 500; }
.prose table { border-collapse: collapse; width: 100%; font-size: 16px; }
.prose th, .prose td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); vertical-align: top; }
.table-scroll { overflow-x: auto; }
.crumbs { font-size: var(--s-small); color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; }
@media (max-width: 960px) {
    .doc-side { grid-column: 1 / -1; position: static; }
    .doc-side nav { display: none; }
    .prose { grid-column: 1 / -1; }
}

/* Support FAQ on the doc layout reuses the tiles */
.prose .faq-list { display: grid; gap: 8px; }
.prose .qa summary { font-size: 18px; }

/* Blog index */
.posts { grid-column: 6 / 13; display: grid; gap: 8px; }
.post-link { display: grid; gap: 10px; padding: 28px; border-radius: var(--r); background: var(--surface); text-decoration: none; transition: background-color .2s, transform .2s var(--ease); }
.post-link:hover { background: var(--surface-2); text-decoration: none; transform: translateY(-2px); }
.post-link b { font-size: var(--s-head); line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; }
.post-link span { color: var(--muted); }
.post-link small { font-size: var(--s-small); color: var(--muted); }
@media (max-width: 960px) { .posts { grid-column: 1 / -1; } }

.post-cta { background: var(--surface); border-radius: var(--r); padding: 32px; margin-top: 48px; display: grid; gap: 16px; }
.post-cta b { font-size: var(--s-head); line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; }
.post-cta p { color: var(--muted); margin: 0; }
.prose .post-cta .btn { justify-self: start; text-decoration: none; }

/* 404 */
.lost { min-height: 60svh; padding-top: clamp(60px, 10vw, 140px); }
.lost h1 { grid-column: 1 / 9; }
.lost p { grid-column: 1 / 7; margin-top: 28px; }
.lost .btn-row { grid-column: 1 / -1; margin-top: 36px; }
@media (max-width: 960px) { .lost h1, .lost p { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
    .js [data-reveal] > * { opacity: 1; transform: none; }
}

/* Report bar heights (no inline styles, so the CSP stays strict) */
.bar i.h4 { height: 100px; }
.bar i.h3 { height: 75px; }
.bar i.h2 { height: 50px; }
.prose .btn { text-decoration: none; }
.plan-stage .fine { margin-top: 20px; }

/* Blog post title runs the full width so it stays within two lines */
.post-head { grid-column: 1 / -1; max-width: 1180px; }
.post-head h1 { font-size: var(--s-title); line-height: 1.02; letter-spacing: -0.03em; margin-top: 16px; }
.post-head .meta { margin-top: 20px; color: var(--muted); font-size: var(--s-small); }

/* Hero chart labels stay readable when the SVG scales down on phones */
@media (max-width: 480px) {
    .trend-axis, .trend-change text { font-size: 13px; }
    .trend-badge text { font-size: 14px; }
}
