@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;450;500;600&display=swap');

/* ============================================================
   Litmus — web design system (landing + dashboard)
   Desktop-first. Space Grotesk display, Inter body, light canvas,
   acid lime split into fill and text variants.
   ============================================================ */

:root {
  --bg:        oklch(97.4% 0.002 265);
  --surface:   oklch(100% 0 0);
  --raised:    oklch(95.2% 0.003 265);
  --ink:       oklch(18% 0.014 265);
  --fg:        oklch(21% 0.012 265);
  --muted:     oklch(52% 0.014 265);
  --faint:     oklch(66% 0.010 265);
  --border:    oklch(90.5% 0.004 265);
  --border-2:  oklch(85% 0.006 265);

  --accent:      oklch(88% 0.21 128);
  --accent-ink:  oklch(23% 0.07 128);
  --accent-text: oklch(46% 0.13 133);

  --pos:     oklch(52% 0.15 152);
  --caution: oklch(58% 0.13 72);
  --neg:     oklch(52% 0.19 25);
  --info:    oklch(52% 0.14 250);

  --tint-pos:     color-mix(in oklab, var(--pos) 9%, var(--surface));
  --tint-caution: color-mix(in oklab, var(--caution) 12%, var(--surface));
  --tint-neg:     color-mix(in oklab, var(--neg) 8%, var(--surface));
  --tint-info:    color-mix(in oklab, var(--info) 9%, var(--surface));
  --tint-accent:  color-mix(in oklab, var(--accent) 24%, var(--surface));

  --font-display: 'Space Grotesk', 'Helvetica Neue', -apple-system, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --r: 12px;
  --r-sm: 8px;
  --shadow: 0 1px 2px oklch(21% 0.012 265 / 0.05), 0 8px 24px -14px oklch(21% 0.012 265 / 0.25);
  --container: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* the UA's [hidden] { display: none } loses to any class that sets display,
   so tab panes and filtered grids stayed visible — this wins it back */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 820px; }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
h1 { font-size: clamp(44px, 5.4vw, 74px); }
h2 { font-size: clamp(30px, 3.4vw, 44px); }
h3 { font-size: 21px; letter-spacing: -0.025em; font-weight: 600; }
h4 { font-size: 16px; letter-spacing: -0.02em; font-weight: 600; }
p { font-size: 16px; line-height: 1.6; }
.lede { font-size: 19px; line-height: 1.55; color: var(--muted); }
.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--accent-text);
}
.fig { font-family: var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -0.035em; font-weight: 700; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px;
  border: 1px solid transparent; border-radius: 10px;
  font-family: var(--font-body); font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  background: var(--raised); color: var(--fg);
  transition: transform .08s, background .15s, border-color .15s;
}
.btn:hover { background: oklch(92% 0.004 265); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: oklch(84% 0.21 128); }
.btn.dark { background: var(--ink); color: oklch(97% 0.003 265); }
.btn.dark:hover { background: oklch(26% 0.014 265); }
.btn.ghost { background: none; border-color: var(--border-2); }
.btn.ghost:hover { background: var(--raised); }
.btn.lg { min-height: 54px; padding: 0 26px; font-size: 16px; }
.btn.sm { min-height: 36px; padding: 0 13px; font-size: 14px; border-radius: 8px; }

/* ---------- icons ----------
   One inline <symbol> sprite per page, referenced with <use href="#i-name">.
   Stroke geometry only, 1.7px monoline, always currentColor. */
.ic {
  display: block; flex: none;
  width: 18px; height: 18px;
  fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.ic-14 { width: 14px; height: 14px; stroke-width: 1.9; }
.ic-16 { width: 16px; height: 16px; stroke-width: 1.8; }
.ic-20 { width: 20px; height: 20px; }
.ic-22 { width: 22px; height: 22px; stroke-width: 1.6; }
.ic-26 { width: 26px; height: 26px; stroke-width: 1.5; }

.tile-ic {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: var(--tint-accent); color: var(--accent-ink);
}
.tile-ic.sm { width: 30px; height: 30px; border-radius: 9px; }
.tile-ic.lg { width: 54px; height: 54px; border-radius: 15px; }
.tile-ic.neutral { background: var(--raised); color: var(--muted); }
.tile-ic.pos     { background: var(--tint-pos); color: var(--pos); }
.tile-ic.caution { background: var(--tint-caution); color: var(--caution); }
.tile-ic.neg     { background: var(--tint-neg); color: var(--neg); }
.tile-ic.info    { background: var(--tint-info); color: var(--info); }
/* on the dark band the tint tokens go muddy — but white cards sitting
   inside that band still need the light-theme treatment */
.band-dark .tile-ic { background: oklch(100% 0 0 / 0.08); color: var(--accent); }
.band-dark .card .tile-ic { background: var(--tint-accent); color: var(--accent-ink); }

/* ---------- diagrams ----------
   Schematics drawn from the product's own data. Classes rather than
   presentation attributes, because var() doesn't resolve in those. */
.dia { display: block; width: 100%; height: auto; }
.dia .sf   { fill: var(--surface); stroke: var(--border-2); stroke-width: 1.4; }
.dia .sf-2 { fill: var(--raised); stroke: none; }
.dia .ln   { fill: none; stroke: var(--border-2); stroke-width: 1.4; stroke-linecap: round; }
.dia .dash { fill: none; stroke: var(--border-2); stroke-width: 1.4; stroke-dasharray: 3 5; stroke-linecap: round; }
.dia .acc  { fill: var(--accent); }
.dia .acc-s{ fill: none; stroke: var(--accent-text); stroke-width: 2; stroke-linecap: round; }
.dia .pos  { fill: var(--pos); }
.dia .pos-s{ fill: none; stroke: var(--pos); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dia .info { fill: var(--info); }
.dia .neg  { fill: var(--neg); }
.dia .mut  { fill: var(--faint); }
.dia .ink  { fill: var(--fg); }
.dia text  { font-family: var(--font-body); font-size: 12px; fill: var(--muted); }
.dia .fignum {
  font-family: var(--font-display); font-size: 21px; font-weight: 700;
  letter-spacing: -0.035em; fill: var(--fg);
}
.dia .fignum.big { font-size: 36px; }
/* uppercase labels inside diagrams need the same tracking as anywhere else */
.dia .cap { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; fill: var(--faint); }
.dia .t-pos { fill: var(--pos); }
.dia .t-mut { fill: var(--muted); }
/* funnel stages, neutral → positive as ideas survive */
.dia .f-1 { fill: var(--raised); }
.dia .f-2 { fill: color-mix(in oklab, var(--info) 13%, var(--surface)); }
.dia .f-3 { fill: var(--tint-accent); }
.dia .f-4 { fill: color-mix(in oklab, var(--pos) 20%, var(--surface)); }

/* score sparkline */
.spark { display: block; width: 100%; height: auto; }
.spark-x { display: flex; justify-content: space-between; margin-top: 9px; font-size: 12px; color: var(--faint); }
.spark .fill { fill: color-mix(in oklab, var(--pos) 12%, transparent); stroke: none; }

/* ---------- surfaces ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
}
.card.pad { padding: 24px; }
.card.lift { box-shadow: var(--shadow); }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: -0.005em;
  background: var(--raised); color: var(--muted);
}
.pill.good { background: var(--tint-pos); color: var(--pos); }
.pill.watch { background: var(--tint-caution); color: var(--caution); }
.pill.risk { background: var(--tint-neg); color: var(--neg); }
.pill.accent { background: var(--tint-accent); color: var(--accent-text); }

/* display:block matters — an inline span ignores height */
.meter { display: block; height: 6px; border-radius: 3px; background: oklch(21% 0.012 265 / 0.09); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: 3px; background: var(--info); }
.meter > span.good { background: var(--pos); }
.meter > span.watch { background: var(--caution); }
.meter > span.risk { background: var(--neg); }

/* ============================================================
   LANDING
   ============================================================ */
.site-nav {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-nav.stuck { border-bottom-color: var(--border); }
.site-nav .inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.wordmark {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: -0.035em;
  text-decoration: none;
}
.wordmark .dot { width: 22px; height: 22px; border-radius: 6px; background: var(--accent); display: grid; place-items: center; color: var(--accent-ink); }
.site-nav .links { display: flex; gap: 26px; margin-left: 12px; }
.site-nav .links a { font-size: 15px; color: var(--muted); text-decoration: none; }
.site-nav .links a:hover { color: var(--fg); }
.site-nav .right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.hero { padding: 84px 0 32px; }
.hero h1 { max-width: 15ch; }
.hero .lede { max-width: 54ch; margin-top: 22px; }
.hero .actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero .under { margin-top: 16px; font-size: 14px; color: var(--faint); }

/* inline demo — the hero's proof, not a stock illustration */
.demo {
  margin-top: 54px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.demo-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  background: var(--raised);
}
.demo-bar .dots { display: flex; gap: 6px; }
.demo-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-2); display: block; }
.demo-bar .path { font-size: 13px; color: var(--faint); margin-left: 6px; }
.demo-body { display: grid; grid-template-columns: 1.05fr 1fr; }
.demo-in { padding: 26px; border-right: 1px solid var(--border); }
.demo-in label { font-size: 13px; font-weight: 600; color: var(--muted); }
.demo-in textarea {
  width: 100%; margin-top: 10px; min-height: 132px; resize: none;
  border: 1px solid var(--border); border-radius: 10px; padding: 13px 14px;
  font: inherit; font-size: 15px; line-height: 1.55; color: var(--fg);
  background: var(--bg); outline: 0;
}
.demo-in textarea:focus { border-color: color-mix(in oklab, var(--accent-text) 45%, var(--border)); }
.demo-out { padding: 26px; display: grid; align-content: start; gap: 16px; }
.demo-score { display: flex; align-items: center; gap: 16px; }
.demo-score .n { font-family: var(--font-display); font-size: 54px; font-weight: 700; letter-spacing: -0.045em; line-height: .9; color: var(--pos); }
.demo-axis { display: grid; gap: 9px; }
.demo-axis .r { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.demo-axis .r .lbl { flex: 1 1 auto; color: var(--muted); }
.demo-axis .r .v { font-family: var(--font-display); font-weight: 600; font-variant-numeric: tabular-nums; }
.demo-axis .meter { width: 84px; flex: none; }

.section { padding: 88px 0; }
.section.tight { padding: 64px 0; }
.section-head { max-width: 62ch; margin-bottom: 44px; }
.section-head h2 { margin-top: 10px; }
.section-head p { margin-top: 16px; font-size: 17px; color: var(--muted); }

.hero .trust { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 18px; }
.hero .trust span { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.hero .trust .ic { color: var(--accent-text); }

.flow { margin-bottom: 40px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { padding-top: 22px; border-top: 2px solid var(--ink); }
.step-top { display: flex; align-items: center; gap: 13px; margin-bottom: 16px; }
.step .n { font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--accent-text); }
.step h3 { margin: 0 0 9px; }
.step p { font-size: 15px; color: var(--muted); }

/* a figure with an icon above the number — used on the dark band and in panels */
.fig-ic { display: flex; align-items: center; gap: 10px; }
.fig-ic .k { font-size: 13px; color: var(--muted); }

.band-dark { background: var(--ink); color: oklch(96% 0.003 265); }
.band-dark h2 { color: oklch(98% 0.002 265); }
.band-dark .lede, .band-dark p { color: oklch(78% 0.008 265); }
.band-dark .eyebrow { color: var(--accent); }
/* white cards sitting inside the dark band keep light-theme text —
   otherwise they inherit the band's pale copy colour onto white */
.band-dark .card { color: var(--fg); }
.band-dark .card h2,
.band-dark .card h3,
.band-dark .card h4,
.band-dark .card .fig { color: var(--fg); }
.band-dark .card p,
.band-dark .card .muted { color: var(--muted); }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare-col {
  border: 1px solid var(--border); border-radius: var(--r);
  background: var(--surface); padding: 26px;
}
.compare-col.is-us { border-color: var(--accent-text); box-shadow: 0 0 0 3px var(--tint-accent); }
.compare-col h3 { display: flex; align-items: center; gap: 10px; }
.compare-col .price { font-family: var(--font-display); font-size: 38px; font-weight: 700; letter-spacing: -0.04em; margin: 16px 0 4px; }
.compare-col .price small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.compare-list { list-style: none; margin-top: 20px; display: grid; gap: 11px; }
.compare-list li { display: flex; gap: 10px; font-size: 15px; line-height: 1.45; }
.compare-list svg { flex: none; margin-top: 3px; }
.compare-list .y { color: var(--pos); }
.compare-list .n { color: var(--faint); }

.faq { display: grid; gap: 0; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 0;
  font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; margin-left: auto; font-size: 22px; font-weight: 400; color: var(--faint);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 40px 22px 0; color: var(--muted); max-width: 70ch; }

.site-foot { border-top: 1px solid var(--border); padding: 44px 0; }
.site-foot .inner { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.site-foot p { font-size: 14px; color: var(--faint); }
.site-foot .links { margin-left: auto; display: flex; gap: 22px; }
.site-foot .links a { font-size: 14px; color: var(--muted); text-decoration: none; }

/* ============================================================
   DASHBOARD — sidebar + workspace, desktop density
   ============================================================ */
.app { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }

.sidebar {
  border-right: 1px solid var(--border);
  background: var(--surface);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.sidebar .brand { display: flex; align-items: center; height: 60px; padding: 0 18px; border-bottom: 1px solid var(--border); }
.side-nav { padding: 14px 10px; display: grid; gap: 2px; }
.side-label {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--faint); padding: 16px 8px 6px;
}
.side-link {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--r-sm);
  font-size: 14.5px; color: var(--muted); text-decoration: none;
}
.side-link:hover { background: var(--raised); color: var(--fg); }
.side-link[aria-current="page"] { background: var(--tint-accent); color: var(--accent-ink); font-weight: 600; }
.side-link .c { margin-left: auto; font-size: 12.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.sidebar .foot { margin-top: auto; padding: 14px; border-top: 1px solid var(--border); }
.who { display: flex; align-items: center; gap: 10px; }
.who .av {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: var(--ink); color: oklch(97% 0 0);
  display: grid; place-items: center; font-size: 12px; font-weight: 600;
}
.who .n { font-size: 13.5px; font-weight: 500; }
.who .e { font-size: 12px; color: var(--faint); }

.work { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 16px;
  height: 60px; padding: 0 24px;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar h1 { font-size: 19px; letter-spacing: -0.025em; font-weight: 600; }
.topbar .spacer { flex: 1 1 auto; }
.search {
  display: flex; align-items: center; gap: 8px;
  min-width: 260px; padding: 0 12px; height: 36px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm);
  color: var(--faint);
}
.search input { flex: 1 1 auto; border: 0; outline: 0; background: none; font: inherit; font-size: 14px; color: var(--fg); }
.search kbd {
  font-family: var(--font-body); font-size: 11px; color: var(--faint);
  border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px;
}

.work-body { padding: 26px 24px 48px; display: grid; gap: 22px; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 18px 20px; }
.kpi-head { display: flex; align-items: flex-start; gap: 10px; }
.kpi-head .k { flex: 1 1 auto; }
.kpi .k { font-size: 13px; color: var(--muted); font-weight: 500; }
.kpi .v { font-family: var(--font-display); font-size: 32px; font-weight: 700; letter-spacing: -0.035em; margin-top: 8px; font-variant-numeric: tabular-nums; }
.kpi .d { font-size: 12.5px; color: var(--faint); margin-top: 5px; }
.kpi .d.up { color: var(--pos); }

.grid-2 { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; align-items: start; }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); }
.panel-head {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 20px; border-bottom: 1px solid var(--border);
}
.panel-head h3 { font-size: 15.5px; letter-spacing: -0.02em; }
.panel-head .spacer { flex: 1 1 auto; }
.panel-body { padding: 20px; }
.panel-foot { padding: 13px 20px; border-top: 1px solid var(--border); font-size: 13px; color: var(--faint); }

/* data table — a genuine desktop idiom */
table.data { width: 100%; border-collapse: collapse; }
table.data th {
  text-align: left; font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  text-transform: uppercase; color: var(--faint);
  padding: 10px 20px; border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
table.data th.right, table.data td.right { text-align: right; }
table.data td { padding: 13px 20px; border-bottom: 1px solid var(--border); font-size: 14.5px; vertical-align: middle; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--bg); }
table.data .title { font-weight: 500; letter-spacing: -0.01em; }
table.data .sub { font-size: 12.5px; color: var(--faint); margin-top: 2px; }
table.data .score { font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
table.data .score.good { color: var(--pos); }
table.data .score.watch { color: var(--caution); }
table.data .score.risk { color: var(--neg); }
table.data th.sortable { cursor: pointer; user-select: none; }
table.data th.sortable:hover { color: var(--fg); }
table.data th .arrow { opacity: 0; margin-left: 4px; }
table.data th[aria-sort] .arrow { opacity: 1; }

/* distribution chart — bars computed from --v / --max */
.chart { display: grid; gap: 12px; --max: 100; }
.bar-row { display: grid; grid-template-columns: 116px 1fr 46px; align-items: center; gap: 12px; }
.bar-label { font-size: 13.5px; color: var(--muted); }
.bar-track { height: 22px; border-radius: 5px; background: oklch(21% 0.012 265 / 0.06); overflow: hidden; }
/* display:block matters — an inline span ignores width and height */
.bar { display: block; height: 100%; border-radius: 5px; width: calc(var(--v) / var(--max) * 100%); background: var(--info); }
.bar.good { background: var(--pos); }
.bar.watch { background: var(--caution); }
.bar.risk { background: var(--neg); }
.bar-value { font-family: var(--font-display); font-size: 14px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

.stack { display: grid; gap: 14px; }
.mini { display: flex; align-items: flex-start; gap: 12px; }
.dot-ic {
  width: 28px; height: 28px; border-radius: 7px; flex: none;
  display: grid; place-items: center; background: var(--raised); color: var(--muted);
}
.mini h4 { font-size: 14.5px; }
.mini p { font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.4; }

.running-card { background: var(--tint-accent); border-color: color-mix(in oklab, var(--accent) 40%, var(--border)); }

/* ---------- page heads, tabs, toolbars ---------- */
.page-head { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.page-head .lede { font-size: 15.5px; max-width: 66ch; margin-top: 7px; }
.page-head h2 { font-size: 28px; }
.page-head .actions { margin-left: auto; display: flex; gap: 10px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); }
.tab {
  padding: 10px 13px; margin-bottom: -1px;
  font-size: 14.5px; color: var(--muted); text-decoration: none;
  border-bottom: 2px solid transparent;
}
.tab:hover { color: var(--fg); }
.tab[aria-current="page"] { color: var(--fg); font-weight: 600; border-bottom-color: var(--accent-text); }
.tab .c { color: var(--faint); font-variant-numeric: tabular-nums; margin-left: 5px; }

.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.toolbar .spacer { flex: 1 1 auto; }
.chipset { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  appearance: none; cursor: pointer;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); padding: 6px 13px;
  font: inherit; font-size: 13.5px; color: var(--muted);
  transition: background .14s, color .14s, border-color .14s;
}
.chip:hover { background: var(--raised); color: var(--fg); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: oklch(97% 0 0); font-weight: 500; }
.chip .c { opacity: .6; margin-left: 5px; font-variant-numeric: tabular-nums; }

select.sel {
  height: 36px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--surface); color: var(--fg);
  font: inherit; font-size: 14px; cursor: pointer;
}

/* ---------- forms ---------- */
.field { display: grid; gap: 7px; }
.field > label { font-size: 13.5px; font-weight: 600; letter-spacing: -0.005em; }
.field .hint { font-size: 12.5px; color: var(--faint); }
.field input, .field select, .field textarea, .input,
.set-row .ctl > input, .set-row .ctl > select {
  width: 100%; min-height: 44px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); padding: 0 13px;
  font: inherit; font-size: 15px; color: var(--fg); outline: 0;
  transition: border-color .14s, box-shadow .14s;
}
.field textarea { padding: 12px 13px; min-height: 104px; resize: vertical; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus,
.set-row .ctl > input:focus, .set-row .ctl > select:focus {
  border-color: color-mix(in oklab, var(--accent-text) 55%, var(--border));
  box-shadow: 0 0 0 3px var(--tint-accent);
}
.field.bad input { border-color: var(--neg); }
.field .err { font-size: 12.5px; color: var(--neg); }
.form-grid { display: grid; gap: 16px; }
.form-grid.two { grid-template-columns: 1fr 1fr; }

.sw { position: relative; display: inline-block; width: 44px; height: 26px; flex: none; }
.sw input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.sw i { position: absolute; inset: 0; border-radius: 999px; background: var(--border-2); transition: background .18s; }
.sw i::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--surface); box-shadow: 0 1px 3px oklch(21% 0.012 265 / 0.35);
  transition: transform .18s;
}
.sw input:checked + i { background: var(--pos); }
.sw input:checked + i::after { transform: translateX(18px); }

.set-row { display: flex; align-items: flex-start; gap: 24px; padding: 17px 20px; border-bottom: 1px solid var(--border); }
.set-row:last-child { border-bottom: 0; }
.set-row .lbl { flex: 1 1 auto; max-width: 62ch; }
.set-row .lbl h4 { font-size: 14.5px; }
.set-row .lbl p { font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.set-row .ctl { flex: none; display: flex; align-items: center; gap: 10px; }
.set-row .ctl .field, .set-row .ctl input, .set-row .ctl select { min-width: 200px; }
.panel.danger { border-color: color-mix(in oklab, var(--neg) 34%, var(--border)); }
.panel.danger .panel-head h3 { color: var(--neg); }

/* ---------- report detail ---------- */
.report-hero { display: grid; grid-template-columns: auto 1fr; gap: 34px; align-items: center; }
.gauge {
  position: relative; width: 152px; height: 152px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: conic-gradient(var(--gc, var(--pos)) calc(var(--v) * 3.6deg), oklch(21% 0.012 265 / 0.08) 0);
}
.gauge .in {
  width: 122px; height: 122px; border-radius: 50%; background: var(--surface);
  display: grid; place-content: center; justify-items: center;
}
.gauge .n { font-family: var(--font-display); font-size: 44px; font-weight: 700; letter-spacing: -0.045em; line-height: 1; }
.gauge .of { font-size: 10.5px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--faint); margin-top: 6px; }

.axes { display: grid; gap: 11px; max-width: 560px; }
.axis { display: grid; grid-template-columns: 158px 1fr 30px; align-items: center; gap: 13px; font-size: 14px; }
.axis .lbl { color: var(--muted); }
.axis .v { font-family: var(--font-display); font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }

.figs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.figs > div { padding: 0 22px; border-left: 1px solid var(--border); }
.figs > div:first-child { padding-left: 0; border-left: 0; }
.figs .v { font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -0.038em; font-variant-numeric: tabular-nums; }
.figs .k { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

.callout { display: flex; gap: 14px; padding: 20px; border-radius: var(--r); background: var(--tint-neg); border: 1px solid color-mix(in oklab, var(--neg) 24%, var(--border)); }
.callout.pos { background: var(--tint-pos); border-color: color-mix(in oklab, var(--pos) 24%, var(--border)); }
.callout .ic { flex: none; color: var(--neg); margin-top: 2px; }
.callout.pos .ic { color: var(--pos); }
.callout p { font-size: 14.5px; color: var(--fg); margin-top: 5px; line-height: 1.5; }

.phase { display: grid; grid-template-columns: 106px 1fr; gap: 22px; padding: 22px 20px; border-top: 1px solid var(--border); }
.phase:first-child { border-top: 0; }
.phase .when { font-family: var(--font-display); font-size: 13.5px; font-weight: 600; color: var(--accent-text); }
.phase .when .wk { display: block; font-family: var(--font-body); font-size: 12px; font-weight: 400; color: var(--faint); margin-top: 4px; }
.phase h4 { font-size: 15.5px; }
.phase > div > p { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; padding: 5px 0; cursor: pointer; }
.check input { width: 17px; height: 17px; margin: 2px 0 0; flex: none; accent-color: var(--accent-text); cursor: pointer; }
.check input:checked ~ span { color: var(--faint); text-decoration: line-through; }
.checks { margin-top: 10px; }

.comp-grid, .card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card-grid > .panel { display: flex; flex-direction: column; }
.card-grid > .panel > .panel-body { flex: 1 1 auto; }
.card-grid .panel-foot { display: flex; align-items: center; gap: 10px; }
.card-grid .panel-foot .spacer { flex: 1 1 auto; }
.comp { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 20px; }
.comp .top { display: flex; align-items: flex-start; gap: 12px; }
.comp .mark {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  display: grid; place-items: center; background: var(--raised);
  font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--muted);
}
.comp h4 { font-size: 15.5px; }
.comp .who { font-size: 12.5px; color: var(--faint); margin-top: 2px; }
.comp p { font-size: 13.5px; color: var(--muted); margin-top: 12px; line-height: 1.5; }
.comp .ov { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.comp .ov .meter { flex: 1 1 auto; }

.kv { display: grid; gap: 0; }
.kv > div { display: flex; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.kv > div:last-child { border-bottom: 0; }
.kv .k { color: var(--muted); min-width: 168px; }
.kv .v { margin-left: auto; text-align: right; font-weight: 500; }

/* ---------- empty state ---------- */
.empty { text-align: center; padding: 62px 24px; }
.empty .ic {
  width: 46px; height: 46px; border-radius: 12px; margin: 0 auto 15px;
  background: var(--raised); color: var(--faint); display: grid; place-items: center;
}
.empty h3 { font-size: 17px; }
.empty p { font-size: 14px; color: var(--muted); margin: 7px auto 0; max-width: 44ch; }
.empty .btn { margin-top: 18px; }

/* ---------- help ---------- */
.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.help-card {
  display: block; text-decoration: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 20px;
  transition: border-color .15s, box-shadow .15s;
}
.help-card:hover { border-color: var(--border-2); box-shadow: var(--shadow); }
.help-card h4 { font-size: 15px; margin-top: 14px; }
.help-card p { font-size: 13.5px; color: var(--muted); margin-top: 5px; line-height: 1.45; }
.help-card .go { font-size: 13px; color: var(--accent-text); font-weight: 600; margin-top: 12px; display: block; }

/* the FAQ accordion is reused inside panels on the help page */
.panel .faq { border-top: 0; }
.panel .faq summary { padding: 18px 20px; font-size: 15.5px; }
.panel .faq details p { padding: 0 20px 18px; font-size: 14px; }
.panel .faq details:last-child { border-bottom: 0; }

/* ============================================================
   AUTH — no sidebar, split canvas
   ============================================================ */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-form { background: var(--surface); padding: 34px clamp(32px, 6vw, 92px); display: flex; flex-direction: column; }
.auth-form .inner { margin: auto 0; width: 100%; max-width: 404px; padding: 44px 0; }
.auth-form h2 { font-size: 34px; }
.auth-form .sub { font-size: 15px; color: var(--muted); margin-top: 10px; }
.auth-form form { display: grid; gap: 16px; margin-top: 30px; }
.auth-form .btn { width: 100%; }
.auth-alt { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--faint); font-size: 12.5px; }
.auth-alt::before, .auth-alt::after { content: ""; height: 1px; background: var(--border); flex: 1 1 auto; }
.auth-swap { font-size: 14px; color: var(--muted); margin-top: 24px; }
.auth-swap a { color: var(--accent-text); font-weight: 600; text-decoration: none; }
.auth-fine { font-size: 12.5px; color: var(--faint); line-height: 1.5; }
.auth-fine a { color: var(--muted); }

.auth-aside {
  background: var(--ink); color: oklch(96% 0.003 265);
  padding: 34px clamp(32px, 5vw, 68px); display: flex; flex-direction: column;
}
.auth-aside .eyebrow { color: var(--accent); }
.auth-aside .top { display: flex; justify-content: flex-end; }
.auth-aside .top a { font-size: 14px; color: oklch(72% 0.008 265); text-decoration: none; }
.auth-aside .mid { margin: auto 0; max-width: 440px; }
.auth-aside blockquote { font-family: var(--font-display); font-size: 26px; font-weight: 500; letter-spacing: -0.028em; line-height: 1.28; }
.auth-aside .by { font-size: 13.5px; color: oklch(70% 0.008 265); margin-top: 18px; }
.auth-aside .proof { margin-top: 34px; background: oklch(100% 0 0 / 0.05); border: 1px solid oklch(100% 0 0 / 0.1); border-radius: var(--r); padding: 20px; }
.auth-aside .proof .row { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: oklch(80% 0.008 265); }
.auth-aside .proof .row + .row { margin-top: 12px; }
.auth-aside .proof .sc { font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: -0.03em; color: var(--accent); min-width: 30px; font-variant-numeric: tabular-nums; }
.auth-aside .fine { font-size: 12.5px; color: oklch(62% 0.008 265); }

@media (max-width: 1080px) {
  .comp-grid, .card-grid, .help-grid, .form-grid.two { grid-template-columns: 1fr; }
  .figs { grid-template-columns: repeat(2, 1fr); gap: 22px 0; }
  .auth { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .report-hero { grid-template-columns: 1fr; }
  .demo-body { grid-template-columns: 1fr; }
  .demo-in { border-right: 0; border-bottom: 1px solid var(--border); }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}
@media (max-width: 820px) {
  .container { padding: 0 20px; }
  .steps, .compare { grid-template-columns: 1fr; }
  .site-nav .links { display: none; }
  .hero { padding-top: 56px; }
  /* the pipeline schematic carries 11px labels — below this width they'd
     scale under legibility, so drop it rather than ship unreadable type */
  .flow { display: none; }
  .hero .trust { gap: 14px 20px; }
  .phase { grid-template-columns: 1fr; gap: 10px; }
  .set-row { flex-direction: column; gap: 12px; }
  .set-row .ctl { width: 100%; }
  .set-row .ctl .field, .set-row .ctl input, .set-row .ctl select { min-width: 0; width: 100%; }
  .axis { grid-template-columns: 1fr 30px; }
  .axis .meter { grid-column: 1 / -1; }
  .figs { grid-template-columns: 1fr; }
  .figs > div { padding: 0; border-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
