/* Cadence (DEMOS_PLAN.md D2): a fictional analytics product. Its own brand, nothing of Sunglint's: warm paper, ink,
   one accent (a tempo orange, for the data and the selected state), Inter alone, 6 px controls and 12 px panels,
   hairlines between things. Every text pair passes WCAG AA (the accent itself is never text: --accent-ink is). */
/* fonts.mjs: begin (written by tools/fonts.mjs; do not edit by hand) */
@font-face {
  font-family: "Inter";
  src: url("/demos/saas/fonts/inter.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
/* fonts.mjs: end */

:root {
  --paper: #F4F2EC; --card: #FFFFFF; --sunk: #FAF9F6;
  --ink: #16171B; --ink-2: #4A4C54; --ink-3: #686B73;
  --line: #E2DFD6; --line-2: #CFCBC1; --field: #8C877B; --grid: #ECE9E1;
  --accent: #E5531A; --accent-ink: #B83D0E; --wash: #FDF0EA; --prev: #8E897D;
  --up: #17723F; --down: #B42318;
  --r-s: 6px; --r-m: 12px; --head: 64px;
  --gut: clamp(20px, 4vw, 40px); --max: 1200px;
  --font: "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  --fast: 160ms cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* A jump puts a section's top border exactly under the header's: one line, never two. */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--head); }
body { font-family: var(--font); font-optical-sizing: auto; background: var(--paper); color: var(--ink); font-size: 16px;
  line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul, ol { list-style: none; }
svg { display: block; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gut)); margin-inline: auto; padding-inline: var(--gut); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
[hidden] { display: none !important; }

/* The way in and out: the skip link, and the studio's own strip above the product's site */
/* Shown below the sticky header, so the header never covers it. */
.skip { position: fixed; left: var(--gut); top: 136px; z-index: 30; padding: 8px 14px; background: var(--ink); color: #fff;
  border-radius: var(--r-s); font-size: 14px; font-weight: 600; text-decoration: none; transform: translateY(-400px); }
.skip:focus-visible { transform: none; outline-color: var(--accent); }
.demo-bar { display: flex; align-items: center; gap: 16px; min-height: 36px; padding: 6px var(--gut); background: var(--ink);
  color: #E9E7E1; font-size: 13px; }
.demo-bar p { color: #C9C6BE; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-bar .short { display: none; }
.back { font-weight: 600; text-decoration: none; white-space: nowrap; }
.back:hover { text-decoration: underline; text-underline-offset: 3px; }
.demo-bar .back:focus-visible { outline-color: #F4F2EC; }

/* The product's header */
.top { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 32px; height: var(--head); }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.mark { width: 22px; height: 22px; fill: var(--ink); }
.mark .beat { fill: var(--accent); }
.nav { display: flex; gap: 28px; margin-left: auto; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.menu-btn { display: none; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border: 1px solid var(--line-2);
  border-radius: var(--r-s); font-size: 14px; font-weight: 600; background: var(--card); }
.menu-i, .menu-i::before, .menu-i::after { display: block; width: 14px; height: 2px; background: var(--ink); border-radius: 1px; }
.menu-i { position: relative; }
.menu-i::before, .menu-i::after { content: ""; position: absolute; left: 0; }
.menu-i::before { top: -5px; }
.menu-i::after { top: 5px; }
.top.open .menu-i { background: transparent; }
.top.open .menu-i::before { top: 0; transform: rotate(45deg); }
.top.open .menu-i::after { top: 0; transform: rotate(-45deg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px;
  border-radius: var(--r-s); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color var(--fast), border-color var(--fast); }
.btn-s { height: 38px; padding: 0 14px; font-size: 14px; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #33353C; }
.btn-quiet { background: var(--card); color: var(--ink); border: 1px solid var(--line-2); }
.btn-quiet:hover { border-color: var(--ink-3); }
.btn-link { font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: var(--line-2); padding: 2px 0; }
.btn-link:hover { text-decoration-color: var(--ink); }

/* The hero */
.hero { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(72px, 9vw, 120px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 0 56px; align-items: start; }
.hero-grid .kicker { grid-column: 1 / -1; }
.hero-side { padding-top: 0.15em; }
.br-ph { display: none; }
.kicker { font-size: 14px; font-weight: 600; color: var(--accent-ink); margin-bottom: 16px; }
/* Sized so its first line, "Know what changed,", holds in its column at every width above a phone. */
h1 { font-size: clamp(2.75rem, 6.2vw - 0.5rem, 4.75rem); line-height: 0.98; font-weight: 650; letter-spacing: -0.045em;
  text-wrap: balance; }
.lede { font-size: 18px; line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.fine { margin-top: 14px; font-size: 13px; color: var(--ink-3); }

/* The dashboard: the product itself, working on its demo data */
.app { margin-top: clamp(36px, 4vw, 48px); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m);
  box-shadow: 0 1px 0 rgba(22, 23, 27, 0.03), 0 30px 60px -40px rgba(22, 23, 27, 0.35); overflow: hidden; }
.app-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
  padding: 10px 16px; border-bottom: 1px solid var(--line); }
.ws { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; min-height: 36px; }
.ws-mark { display: grid; place-items: center; width: 26px; height: 26px; border-radius: var(--r-s); background: var(--ink);
  color: #fff; font-size: 13px; font-weight: 700; }
.ws-sep { color: var(--line-2); font-weight: 400; }
.tag { margin-left: 4px; padding: 2px 7px; border: 1px solid var(--line-2); border-radius: 4px; font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); }
.ranges, .billing { display: inline-flex; padding: 3px; gap: 2px; background: var(--paper); border: 1px solid var(--line);
  border-radius: calc(var(--r-s) + 2px); }
.ranges button, .billing button { height: 30px; padding: 0 12px; border-radius: var(--r-s); font-size: 13px; font-weight: 600;
  color: var(--ink-2); white-space: nowrap; transition: background-color var(--fast), color var(--fast); }
.ranges button:hover, .billing button:hover { color: var(--ink); }
.ranges button[aria-pressed="true"], .billing button[aria-pressed="true"] { background: var(--card); color: var(--ink);
  box-shadow: 0 0 0 1px var(--line-2), 0 1px 2px rgba(22, 23, 27, 0.08); }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi { position: relative; display: grid; gap: 2px; padding: 16px 20px 18px; text-align: left; border-right: 1px solid var(--line);
  transition: background-color var(--fast); }
.kpi:last-child { border-right: 0; }
.kpi:hover { background: var(--sunk); }
.kpi::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: transparent; }
.kpi[aria-pressed="true"] { background: var(--sunk); }
.kpi[aria-pressed="true"]::before { background: var(--accent); }
.kpi:focus-visible { outline-offset: -3px; }
.kpi-name { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.kpi-value { font-size: clamp(22px, 1.2rem + 0.8vw, 30px); font-weight: 650; letter-spacing: -0.03em; line-height: 1.2;
  font-variant-numeric: tabular-nums; }
.kpi-change { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-3); }
.kpi-change.up { color: var(--up); }
.kpi-change.down { color: var(--down); }
.kpi-span { padding: 8px 20px; font-size: 12px; color: var(--ink-3); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--sunk); }

.app-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; }
.plot { padding: 18px 20px 16px; min-width: 0; }
.plot-head { display: flex; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; margin-bottom: 10px; }
.plot-title { font-size: 15px; font-weight: 650; letter-spacing: -0.01em; }
.plot-sub { font-size: 13px; color: var(--ink-3); }
.chart { position: relative; height: 300px; border-radius: var(--r-s); }
.chart:focus-visible { outline-offset: 4px; }
.chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 10px; font-size: 12px; color: var(--ink-2);
  font-variant-numeric: tabular-nums; }
.lg { display: inline-flex; align-items: center; gap: 8px; }
.lg i { width: 18px; height: 0; border-top: 2px solid var(--accent); }
.lg-b i { border-top: 2px dashed var(--prev); }

/* The chart's marks (chart.js) */
.c-grid { stroke: var(--grid); stroke-width: 1; }
.c-base { stroke: var(--line-2); }
/* Text is painted by currentColor, so its colour is its `color` (what a contrast check reads, and hides). */
.c-tick { fill: currentColor; color: var(--ink-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.c-now { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.c-area { fill: var(--accent); fill-opacity: 0.07; }
.c-before { fill: none; stroke: var(--prev); stroke-width: 1.5; stroke-dasharray: 4 4; stroke-linejoin: round; }
.c-mark { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 2 3; }
.c-mark-t { fill: currentColor; color: var(--ink-2); font-size: 12px; font-weight: 600; }
.c-mark-dot { fill: var(--card); stroke: var(--ink); stroke-width: 1.5; }
.c-probe-l { stroke: var(--ink-2); stroke-width: 1; }
.c-probe-n { fill: var(--card); stroke: var(--accent); stroke-width: 2; }
.c-probe-b { fill: var(--card); stroke: var(--prev); stroke-width: 1.5; }
.c-hit { fill: transparent; }
.c-label { fill: currentColor; color: var(--ink-2); font-size: 13px; }
.c-value { fill: currentColor; color: var(--ink); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.c-bar { fill: var(--line-2); }
.c-top { fill: var(--accent); }
.tip { position: absolute; left: 0; top: 0; z-index: 2; min-width: 170px; padding: 9px 11px; border-radius: var(--r-s);
  background: var(--ink); color: #fff; font-size: 12px; line-height: 1.5; pointer-events: none; font-variant-numeric: tabular-nums;
  box-shadow: 0 8px 20px -8px rgba(22, 23, 27, 0.5); }
.tip b { display: block; margin-bottom: 4px; font-weight: 600; }
.tip-row { display: flex; align-items: center; gap: 8px; color: #D9D6CF; }
.tip-row i { width: 10px; height: 0; border-top: 2px solid var(--accent); }
.tip-row.before i { border-top: 2px dashed #B9B4A8; }
.tip-row em { margin-left: auto; padding-left: 14px; font-style: normal; font-weight: 600; color: #fff; }

/* Ask Cadence */
.ask { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px 20px; border-left: 1px solid var(--line); background: var(--sunk); }
.ask-h { font-size: 15px; font-weight: 650; letter-spacing: -0.01em; }
.ask-form { display: flex; gap: 8px; }
.ask-form input, .start-form input { min-width: 0; flex: 1; height: 38px; padding: 0 12px; border: 1px solid var(--field);
  border-radius: var(--r-s); background: var(--card); font-size: 14px; }
.ask-form input::placeholder, .start-form input::placeholder { color: var(--ink-3); }
.ask-form input:focus-visible, .start-form input:focus-visible { outline-offset: 1px; }
/* The answer sits under its chart, as a report would put it */
.answer { display: grid; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.answer-q { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.answer-q:empty { display: none; }
.answer-lead { font-size: 20px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.3; }
.answer-lead:empty { display: none; }
.answer-a { font-size: 15px; line-height: 1.55; max-width: 68ch; }
.answer-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-top: 2px; }
.answer-cta { font-size: 14px; color: var(--ink-2); }
.answer-cta a { font-weight: 600; color: var(--accent-ink); text-underline-offset: 3px; }
.query summary { font-size: 13px; font-weight: 600; color: var(--accent-ink); cursor: pointer; width: max-content; }
.query pre, .art-code pre, .snippet { margin-top: 8px; padding: 12px 14px; border-radius: var(--r-s); background: var(--ink); color: #E9E7E1;
  font-family: var(--mono); font-size: 12px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.ask-try { font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }
.chips { display: grid; gap: 6px; }
.chip { width: 100%; padding: 8px 12px; text-align: left; font-size: 13.5px; line-height: 1.4; border: 1px solid var(--line);
  border-radius: var(--r-s); background: var(--card); transition: border-color var(--fast), background-color var(--fast); }
.chip:hover { border-color: var(--ink-3); }
.chip[aria-pressed="true"] { border-color: var(--accent); background: var(--wash); }

/* Sections */
.sec { padding-block: clamp(48px, 8vw, 112px); border-top: 1px solid var(--line); }
.sec-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head-row { display: flex; align-items: end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; max-width: none; }
h2 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.25rem); line-height: 1.04; font-weight: 650; letter-spacing: -0.04em; text-wrap: balance; }
.sec-lede { margin-top: 16px; font-size: 18px; color: var(--ink-2); max-width: 48ch; }
h3 { font-size: 19px; line-height: 1.3; font-weight: 650; letter-spacing: -0.015em; }

/* What it does */
/* Three equal columns, one gap, a hairline in the middle of each gap. The three share their rows (subgrid), so the
   questions, the paragraphs and the cards line up whatever each one's height. */
.feats { --gap: 64px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto 1fr; column-gap: var(--gap); }
.feat { position: relative; display: grid; grid-row: span 3; grid-template-rows: subgrid; align-content: start; }
.feat + .feat::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--gap) / -2); border-left: 1px solid var(--line); }
.feat > p { margin-top: 16px; color: var(--ink-2); }
.art { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 20px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; margin-top: 18px; }
.art-head { font-size: 13px; font-weight: 600; color: var(--ink-2); }
/* The alert's accent is a straight top line, as on the selected figure and the plan that fits. */
.art-alert::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--accent); }
.alert-meta { font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; }
.alert-title { font-size: 20px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.25; margin-top: -4px; }
.alert-body { font-size: 14px; color: var(--ink-2); }
.spark { margin-top: 4px; }
.spark svg { width: 100%; height: 64px; overflow: visible; }
.spark figcaption { margin-top: 6px; font-size: 12px; color: var(--ink-3); }
.s-usual { fill: var(--ink); fill-opacity: 0.1; }
.s-line { fill: none; stroke: var(--ink-2); stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; }
.s-day { fill: var(--accent); stroke: var(--card); stroke-width: 2; }
.alert-link { margin-top: auto; padding-top: 4px; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: var(--line-2); }
.alert-link:hover { text-decoration-color: var(--ink); }
.funnel { display: grid; gap: 12px; }
.funnel li { display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; font-size: 13px; }
.f-label { color: var(--ink); font-weight: 500; }
.f-value { font-weight: 600; font-variant-numeric: tabular-nums; }
.f-bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--grid); overflow: hidden; }
.f-bar i { display: block; height: 100%; background: var(--line-2); }
.funnel li:first-child .f-bar i { background: var(--ink-3); }
.funnel .worst .f-bar i { background: var(--accent); }
.f-note { grid-column: 1 / -1; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.funnel .worst .f-note { color: var(--accent-ink); font-weight: 600; }
.art-code pre { margin-top: 0; }
.result { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 12px; font-variant-numeric: tabular-nums; }
.result th { padding: 0 8px 6px 0; text-align: left; font-weight: 600; color: var(--ink-3); border-bottom: 1px solid var(--line); }
.result td { padding: 6px 8px 6px 0; border-bottom: 1px solid var(--grid); }
.result th:last-child, .result td:last-child { text-align: right; padding-right: 0; }
.result tbody tr:first-child td { color: var(--accent-ink); font-weight: 600; }
.feats-next { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px 40px; margin-top: 48px;
  padding-top: 28px; border-top: 1px solid var(--line); }
.feats-next p { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; max-width: 52ch; }
.feats-next .ctas { margin-top: 0; }

/* Pricing */
.plan-tools { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 20px 40px; margin-bottom: 16px; }
.fit { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; max-width: 640px; }
.fit-label { font-size: 14px; font-weight: 600; }
.fit input { flex: 0 1 360px; min-width: 0; height: 28px; accent-color: var(--accent); }
.fit-out { flex-basis: 100%; font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.fit-out b { color: var(--ink); font-weight: 600; }
.billing { flex: none; }
.plan-tabs { display: none; }
.save { margin-left: 4px; color: var(--accent-ink); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-m); overflow: hidden; }
.plan { display: flex; flex-direction: column; padding: 28px; }
.plan + .plan { border-left: 1px solid var(--line); }
.plan.fits { box-shadow: inset 0 3px 0 var(--accent); background: var(--sunk); }
.plan h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.plan-tag { padding: 2px 7px; border-radius: 4px; background: var(--wash); color: var(--accent-ink); font-size: 11px; font-weight: 650;
  letter-spacing: 0.04em; text-transform: uppercase; }
.plan-for { margin-top: 4px; font-size: 14px; color: var(--ink-3); }
.price { display: flex; align-items: baseline; gap: 8px; margin-top: 22px; }
.price-amt { font-size: 48px; font-weight: 650; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.per { font-size: 14px; color: var(--ink-3); }
.price-note { margin-top: 8px; font-size: 13px; color: var(--ink-3); min-height: 1.55em; }
.plan ul { display: grid; gap: 10px; margin: 24px 0 28px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 15px; flex: 1; }
.plan li { position: relative; padding-left: 20px; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 8px; height: 5px; border-left: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }

/* Questions */
.faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 56px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-size: 18px; font-weight: 600;
  letter-spacing: -0.01em; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 20px; text-align: center; font-weight: 400; font-size: 22px; line-height: 1.1; color: var(--ink-3); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 36px 22px 0; color: var(--ink-2); max-width: 60ch; }

/* Start */
.sec-start { background: var(--card); }
.start-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px 72px; align-items: start; }
.steps { display: grid; gap: 28px; margin-top: 40px; }
.steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding-top: 24px; border-top: 1px solid var(--line); }
.step-n { font-size: 14px; font-weight: 650; color: var(--accent-ink); font-variant-numeric: tabular-nums; padding-top: 3px; }
.steps h3 { font-size: 18px; }
.steps p { margin-top: 6px; color: var(--ink-2); }
.snippet { margin-top: 12px; font-size: 13px; }
.start-side { display: grid; gap: 16px; }
.start-form { display: grid; gap: 10px; padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-m); }
.start-form h3 { margin-bottom: 8px; }
.start-form label { font-size: 14px; font-weight: 600; }
.start-form input { height: 46px; font-size: 16px; }
.start-form input[aria-invalid="true"] { border-color: var(--down); }
.err { font-size: 13px; font-weight: 600; color: var(--down); }
.start-form .btn { margin-top: 6px; }
.done { font-size: 14px; font-weight: 600; color: var(--up); }
.done:empty { display: none; }
.start-form .fine { margin-top: 2px; }
.first { padding: 24px 28px 26px; border: 1px solid var(--line); border-radius: var(--r-m); }
.first h3 { font-size: 16px; }
.first-sub { margin-top: 2px; font-size: 13px; color: var(--ink-3); }
.feed { display: grid; margin-top: 14px; }
.feed li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-top: 1px solid var(--grid); font-size: 14px; }
.feed time { font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.feed p { color: var(--ink-2); }
.feed b { color: var(--ink); font-weight: 600; }
.feed li:last-child p { color: var(--ink); }

/* Footer */
.foot { padding-block: 40px 56px; border-top: 1px solid var(--line); }
.foot-in { display: flex; align-items: center; gap: 16px 40px; flex-wrap: wrap; }
.foot p { font-size: 14px; color: var(--ink-2); max-width: 70ch; }
.foot p a { font-weight: 600; text-underline-offset: 3px; }

/* Tablet and phone */
@media (max-width: 1080px) {
  .app-body { grid-template-columns: minmax(0, 1fr); }
  .ask { border-left: 0; border-top: 1px solid var(--line); }
  .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feats { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 48px; max-width: 640px; }
  .feat { display: block; grid-row: auto; }
  .feat + .feat::before { display: none; }
}
@media (max-width: 860px) {
  .hero-grid, .faq-grid, .start-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-side { padding-top: 22px; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--line); }
  .top-in { gap: 12px; }
  .top-in .btn { margin-left: auto; }
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0;
    padding: 4px var(--gut) 12px; background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -24px rgba(22, 23, 27, 0.4); }
  .top.open .nav { display: flex; }
  .nav a { padding: 12px 0; font-size: 17px; font-weight: 600; color: var(--ink); }
  .nav a + a { border-top: 1px solid var(--line); }
  .nav a:focus-visible { outline-offset: -2px; }
}
@media (max-width: 640px) {
  .demo-bar { font-size: 12px; gap: 12px; }
  :root { --head: 56px; }
  h1 { font-size: clamp(2.125rem, 9.4vw, 2.5rem); }
  .hero { padding-top: 24px; }
  .hero-grid .kicker { margin-bottom: 12px; }
  .hero-side { padding-top: 16px; }
  .lede { font-size: 16px; }
  .ctas { margin-top: 18px; }
  .app { margin-top: 24px; }
  .app-bar { gap: 8px 12px; }
  .ranges button { height: 28px; }
  .kpi { padding: 12px 14px 14px; }
  .ws-sep, .ws-sep + span { display: none; }
  .sec-head { margin-bottom: 28px; }
  .plan .btn { order: -1; margin: 20px 0 0; }
  .plan .price-note { order: -2; }
  .plan h3, .plan .plan-for, .plan .price { order: -3; }
  .demo-bar .long { display: none; }
  .demo-bar .short { display: inline; }
  .br-ph { display: inline; }
  .br-wide { display: none; }
  .plan-tabs { display: inline-flex; width: 100%; margin-bottom: 12px; padding: 3px; gap: 2px; background: var(--paper);
    border: 1px solid var(--line); border-radius: calc(var(--r-s) + 2px); }
  .plan-tabs button { flex: 1; height: 34px; border-radius: var(--r-s); font-size: 14px; font-weight: 600; color: var(--ink-2); }
  .plan-tabs button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line-2), 0 1px 2px rgba(22, 23, 27, 0.08); }
  .plan:not(.shown) { display: none; }
  .plan + .plan { border-top: 0; }
  .fit { width: 100%; }
  .fit input { flex-basis: 100%; }
  .plan-tools { margin-bottom: 20px; }
  .feats-next .ctas { width: 100%; }
  .app-bar { padding: 10px 12px; }
  .ranges { width: 100%; }
  .ranges button { flex: 1; padding: 0 6px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi:nth-child(2) { border-right: 0; }
  .kpi:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .kpi-span { padding: 8px 14px; }
  .plot { padding: 16px 12px 14px; }
  .chart { height: 240px; }
  .ask { padding: 16px 12px 18px; }
  .chips { grid-template-columns: minmax(0, 1fr); }
  .lede { font-size: 17px; }
  .plan { padding: 24px 20px; }
  .start-form { padding: 22px 18px; }
}

/* Reduced motion: nothing moves (the chart redraws at once: chart.js asks the same question) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
