/* ── Synessa public site — Editorial Instrumentation ─────────────────────────
   Design source of truth: DESIGN.md (design-system-20260531).
   Warm paper + ink, one pine accent, amber reserved for the live number.
   Fraunces (display) · Geist (body/UI) · Geist Mono (numbers, tabular). */

:root {
  --paper: #F7F6F1; --surface: #FFFFFF; --surface-2: #FBFAF6; --surface-3: #F2F0E9;
  --ink: #1B1B19; --muted: #6F6E67; --faint: #9A988E; --hairline: #E5E3DB;
  --pine: #1F5E47; --pine-tint: #E9F0EB; --pine-soft: #D7E5DC;
  --amber: #BC7424; --amber-tint: #F6ECDC;
  --clay: #A8443A; --clay-tint: #F4E3E0;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Geist', -apple-system, system-ui, sans-serif;
  --mono: 'Geist Mono', 'SF Mono', ui-monospace, monospace;
  --r-sm: 4px; --r-md: 8px; --r-lg: 12px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 1px 0 var(--hairline), 0 24px 48px -24px color-mix(in srgb, var(--ink) 18%, transparent);
  --shadow-sm: 0 1px 2px color-mix(in srgb, var(--ink) 6%, transparent), 0 8px 24px -16px color-mix(in srgb, var(--ink) 18%, transparent);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-weight: 400; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: var(--pine-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--pine); outline-offset: 2px; border-radius: 2px; }

/* amber needle: scroll progress as the instrument metaphor */
.needle { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--amber); z-index: 100; transition: width 0.1s linear; }

/* scroll-reveal (below-the-fold sections settle in) */
.rv { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.rv.vis { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .needle { display: none; }
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; line-height: 1.08; }
h1 em, h2 em { font-style: italic; color: var(--pine); }
a { color: var(--pine); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.muted { color: var(--muted); }
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--pine);
}
.eyebrow.dim { color: var(--faint); }
.grid-rule { border-top: 1px solid var(--hairline); }

/* ── top bar ── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 26px; height: 26px; border-radius: var(--r-sm); background: var(--pine); position: relative; flex: none; }
.brand-mark::after {
  content: ""; position: absolute; left: 50%; top: 5px; bottom: 5px; width: 2px;
  background: var(--amber); transform: translateX(-50%); border-radius: 2px;
}
.brand-name { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.nav { display: flex; gap: 24px; align-items: center; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 14px; }
.nav a:not(.btn):hover { color: var(--ink); }
.nav-links { display: flex; gap: 24px; }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 15px; font-weight: 500;
  padding: 11px 20px; border-radius: var(--r-md); cursor: pointer;
  border: 1px solid transparent; text-decoration: none; transition: all 0.2s var(--ease);
}
.btn-primary { background: var(--pine); color: #fff; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -8px var(--pine); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--hairline); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--pine); padding-left: 4px; padding-right: 4px; }
.btn-ghost:hover { gap: 12px; }

/* ── hero ── */
.hero { padding: 88px 0 64px; position: relative; }
/* faint measurement-grid motif behind the hero (the design system's connective tissue) */
.hero::before {
  content: ""; position: absolute; inset: -24px 0 0;
  background-image:
    linear-gradient(var(--hairline) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 56px 56px; opacity: 0.4; pointer-events: none;
  -webkit-mask-image: radial-gradient(70% 90% at 72% 18%, black, transparent 72%);
  mask-image: radial-gradient(70% 90% at 72% 18%, black, transparent 72%);
}
.hero > * { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: 56px; margin: 16px 0 22px; }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 36ch; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* the signature instrument readout */
.readout {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); padding: 30px; box-shadow: var(--shadow);
}
.readout-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; }
.score-row { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.score-big {
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: 84px; font-weight: 500; line-height: 0.9; letter-spacing: -0.03em;
}
.score-from { font-family: var(--mono); font-size: 17px; color: var(--muted); padding-bottom: 11px; }
.delta {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  background: var(--amber-tint); color: var(--amber);
  padding: 4px 10px; border-radius: 99px;
}
.delta.up { background: var(--pine-tint); color: var(--pine); }
.lineage {
  margin-top: 22px; padding-top: 16px; border-top: 1px dashed var(--hairline);
  font-family: var(--mono); font-size: 12px; color: var(--muted); line-height: 1.9;
}
.lineage b { color: var(--ink); font-weight: 500; }

/* ── sections ── */
section.block { padding: 72px 0; }
.sec-head { margin-bottom: 36px; max-width: 56ch; }
.sec-head h2 { font-size: 36px; margin: 8px 0 12px; }
.sec-head p { color: var(--muted); font-size: 17px; }
.pain {
  display: inline-block; font-style: italic; font-family: var(--serif); font-size: 18px;
  color: var(--ink); border-left: 3px solid var(--amber); padding-left: 14px; margin-top: 8px;
}

/* ── the loop storyboard ── */
.loop { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.step {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md);
  padding: 20px 18px; box-shadow: var(--shadow-sm);
}
.step .n { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.step h4 { font-size: 19px; margin: 8px 0; }
.step p { font-size: 13px; color: var(--muted); line-height: 1.5; }
.tag {
  display: inline-block; font-size: 10px; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; padding: 2px 8px; border-radius: 99px; margin-top: 14px;
}
.tag.platform { background: var(--pine-tint); color: var(--pine); }
.tag.managed { background: var(--amber-tint); color: var(--amber); }
.loopnote { margin-top: 18px; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.loopnote .ring {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--pine); color: var(--pine);
  display: flex; align-items: center; justify-content: center; font-size: 15px; flex: none;
}

/* ── offering rows (alternating editorial layout) ── */
.offer { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; padding: 44px 0; border-top: 1px solid var(--hairline); }
.offer:first-of-type { border-top: none; }
.offer.flip .offer-copy { order: 2; }
.offer.flip .offer-visual { order: 1; }
.offer h3 { font-size: 27px; margin: 8px 0 12px; }
.offer p { color: var(--muted); font-size: 15px; max-width: 52ch; }
.offer-visual {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.plain-rows { margin-top: 18px; }
.plain-rows .pr { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--hairline); font-size: 14px; }
.plain-rows .pr:first-child { border-top: none; }
.plain-rows .pr .ic {
  width: 26px; height: 26px; border-radius: 7px; background: var(--pine-tint); color: var(--pine);
  display: flex; align-items: center; justify-content: center; font-size: 13px; flex: none;
}
.plain-rows .pr .v { margin-left: auto; color: var(--muted); font-family: var(--mono); font-size: 13px; text-align: right; }

/* verdict chips */
.chip { font-size: 12px; font-weight: 600; padding: 3px 11px; border-radius: 99px; letter-spacing: 0.01em; }
.chip.strong { background: var(--pine-tint); color: var(--pine); }
.chip.watch { background: var(--amber-tint); color: var(--amber); }
.chip.weak { background: var(--clay-tint); color: var(--clay); }

/* criteria / category bars */
.crit { margin-bottom: 16px; }
.crit:last-child { margin-bottom: 0; }
.crit-top { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.crit-top .nm { font-size: 14px; font-weight: 500; }
.crit-top .sc { margin-left: auto; font-family: var(--mono); font-size: 13px; }
.bar { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 99px; width: 0; transition: width 1.1s var(--ease); }
.bar.good > span { background: var(--pine); }
.bar.warn > span { background: var(--amber); }
.bar.bad > span { background: var(--clay); }

/* numbers */
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 500; letter-spacing: -0.02em; }
.mid-num { font-size: 44px; line-height: 1; }

/* before/after pair */
.ba-row { display: flex; align-items: flex-end; gap: 14px; }
.ba-row .from { font-family: var(--mono); font-size: 24px; color: var(--faint); padding-bottom: 5px; }
.ba-row .arrow { font-size: 22px; color: var(--muted); padding-bottom: 6px; }
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ba-cell { background: var(--surface-2); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 14px 16px; }
.ba-cell .lab { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.ba-cell .vals { font-family: var(--mono); font-size: 19px; margin-top: 6px; }
.ba-cell .vals b { color: var(--pine); font-weight: 600; }

/* callout */
.callout {
  margin-top: 20px; background: var(--surface-2); border: 1px solid var(--hairline);
  border-radius: var(--r-md); padding: 15px 18px; font-size: 14px;
}
.callout .lab {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--pine); margin-bottom: 5px;
}

/* charts */
.chart { width: 100%; height: 110px; }
.chart path.line { fill: none; stroke: var(--pine); stroke-width: 2; }
.chart path.area { fill: var(--pine-tint); opacity: 0.7; }

/* request-mix stacked bar (segments can sweep in via [data-w]) */
.mixbar { display: flex; width: 100%; height: 46px; border-radius: var(--r-md); overflow: hidden; }
.mixbar .seg {
  display: flex; align-items: center; justify-content: center; color: #fff;
  font-size: 12px; font-weight: 500; text-align: center; line-height: 1.3;
  overflow: hidden; transition: width 1.1s var(--ease);
}
.mixbar .seg.s1 { background: var(--pine); }
.mixbar .seg.s2 { background: #8A8474; }
.mixbar .seg.s3 { background: #ABA698; }

/* tables */
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th {
  text-align: left; font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--faint); padding: 0 12px 10px; border-bottom: 1px solid var(--hairline);
}
table.data td { padding: 13px 12px; border-bottom: 1px solid var(--hairline); }
table.data td.mono, table.data th.r { text-align: right; }
table.data td.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
table.data tr.win td { background: var(--pine-tint); }
table.data tr.win td:first-child { border-radius: var(--r-sm) 0 0 var(--r-sm); }
table.data tr.win td:last-child { border-radius: 0 var(--r-sm) var(--r-sm) 0; }

/* steplines (framework) */
.stepline { display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; border-top: 1px solid var(--hairline); }
.stepline:first-child { border-top: none; }
.stepline .st {
  width: 24px; height: 24px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; color: #fff; background: var(--pine);
  font-family: var(--mono);
}
.stepline .txt { font-size: 14px; }
.stepline .txt small { color: var(--muted); display: block; }

/* routes (cost levers) */
.route {
  background: var(--surface); border: 1px solid var(--hairline); border-left: 3px solid var(--hairline);
  border-radius: var(--r-md); padding: 14px 18px; margin-bottom: 10px;
}
.route.headline { border-left-color: var(--pine); }
.route .rq { font-size: 15px; font-weight: 600; }
.route .rfind { color: var(--muted); font-size: 13px; margin-top: 4px; }
.route .rsave { font-family: var(--mono); font-weight: 600; color: var(--pine); white-space: nowrap; }
.route-tag {
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  border-radius: 99px; padding: 2px 8px; margin-left: 8px; vertical-align: middle;
}
.route-tag.managed { color: var(--pine); background: var(--pine-tint); border: 1px solid var(--pine-soft); }
.route-tag.plain { color: var(--muted); background: var(--surface-3); border: 1px solid var(--hairline); }

/* stat trio */
.biz { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.stat .v { font-family: var(--mono); font-size: 30px; font-weight: 500; letter-spacing: -0.02em; }
.stat .l { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* CTA band */
.cta-band {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg);
  padding: 44px 48px; display: flex; align-items: center; justify-content: space-between;
  gap: 32px; box-shadow: var(--shadow);
}
.cta-band h2 { font-size: 32px; margin-bottom: 8px; }
.cta-band p { color: var(--muted); font-size: 15px; max-width: 46ch; }

/* ── comparison table (yourself vs Synessa) ── */
table.compare { width: 100%; border-collapse: collapse; font-size: 14px; }
table.compare th {
  text-align: left; font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--faint); padding: 0 16px 10px; border-bottom: 1px solid var(--hairline);
}
table.compare td { padding: 14px 16px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
table.compare td.task { font-weight: 600; width: 26%; }
table.compare td.you { color: var(--muted); }
table.compare th.us, table.compare td.us { background: var(--pine-tint); }
table.compare th.us { color: var(--pine); }
table.compare tr:last-child td.us { border-radius: 0 0 var(--r-md) var(--r-md); }
table.compare tr:first-child td.us { border-radius: 0; }

/* ── FAQ (native accordions, styled) ── */
.faq details { border: 1px solid var(--hairline); border-radius: var(--r-md); background: var(--surface); margin-bottom: 10px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 18px; font-size: 15px; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--pine); font-size: 18px; flex: none; transition: transform 0.2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 18px 16px; font-size: 14px; color: var(--muted); max-width: 70ch; }

/* ── audit timeline (day 1 → day 5) ── */
.stepline .st.day { font-size: 10px; }

/* alert pulse (live-state cue) */
@keyframes blink { 50% { opacity: 0.4; } }
.pulse { animation: blink 1.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }

/* footer */
footer { padding: 56px 0 44px; border-top: 1px solid var(--hairline); margin-top: 64px; }
.foot-grid { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 48px; }
.foot-note { font-family: var(--mono); font-size: 12px; color: var(--muted); max-width: 52ch; line-height: 1.8; }
.foot-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-col .navlabel { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.foot-col a { display: block; color: var(--muted); text-decoration: none; font-size: 14px; padding: 3px 0; }
.foot-col a:hover { color: var(--ink); }

/* ── walkthrough demo (demo.html) ───────────────────────────────────────── */
.demo-shell { max-width: var(--maxw); margin: 0 auto; padding: 28px 24px 80px; }
.demo-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.demo-title { font-size: 30px; margin-top: 6px; }
.demo-progress { display: flex; align-items: center; gap: 8px; }
.dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--hairline);
  border: none; padding: 0; cursor: pointer; transition: all 0.2s var(--ease);
}
.dot.on { background: var(--pine); transform: scale(1.25); }
.dot:hover { background: var(--faint); }
.demo-count { font-family: var(--mono); font-size: 12px; color: var(--faint); margin-left: 6px; }

.dstep { display: none; }
.dstep.active { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 28px; align-items: start; animation: stepIn 0.45s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.screen {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow);
}
.screen-bar {
  display: flex; align-items: center; gap: 10px; padding: 11px 18px;
  border-bottom: 1px solid var(--hairline); background: var(--surface-2);
}
.screen-bar .mini { display: flex; align-items: center; gap: 8px; font-family: var(--serif); font-weight: 600; font-size: 15px; }
.screen-bar .mini .mk { width: 18px; height: 18px; border-radius: 5px; background: var(--pine); position: relative; flex: none; }
.screen-bar .mini .mk::after { content: ""; position: absolute; left: 50%; top: 4px; bottom: 4px; width: 1.5px; background: var(--amber); transform: translateX(-50%); }
.screen-bar .crumb { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.screen-body { padding: 24px; }

.narrate {
  background: var(--surface-2); border: 1px solid var(--hairline); border-left: 3px solid var(--pine);
  border-radius: var(--r-md); padding: 20px 22px; position: sticky; top: 84px;
}
.narrate h3 { font-size: 22px; margin: 6px 0 10px; }
.narrate p { font-size: 14px; color: var(--muted); line-height: 1.65; }
.narrate p b { color: var(--ink); font-weight: 600; }
.narrate .takeline { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--hairline); font-size: 14px; color: var(--ink); }
.narrate .plainly { margin-top: 14px; background: var(--pine-tint); border-radius: var(--r-md); padding: 12px 14px; font-size: 13.5px; color: var(--ink); line-height: 1.55; }
.narrate .plainly b { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pine); margin-bottom: 5px; }
.demo-ctrls { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.demo-ctrls .spacer { flex: 1; }

/* fleet mini-cards */
.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 18px; }
.kpi { background: var(--surface-2); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 11px 12px; text-align: center; }
.kpi .v { font-family: var(--mono); font-size: 19px; font-weight: 500; }
.kpi .l { font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.agents { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.agent { border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 14px; text-align: center; border-top: 3px solid var(--pine); }
.agent.alert { border-top-color: var(--clay); }
.agent .status { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.agent .nm { font-family: var(--serif); font-size: 16px; font-weight: 600; margin-top: 6px; }
.agent .role { font-size: 10.5px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 2px; }
.agent .q { font-family: var(--mono); font-size: 30px; font-weight: 500; margin-top: 10px; }
.agent .sub { font-size: 11px; color: var(--muted); }

/* pillar summary cards (step 2) */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pillar { border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 18px; border-top: 3px solid var(--pine); }
.pillar .ttl { font-family: var(--serif); font-size: 19px; font-weight: 500; }
.pillar .q { font-size: 12.5px; color: var(--muted); margin: 6px 0 12px; min-height: 38px; }
.pillar .big { font-family: var(--mono); font-size: 34px; font-weight: 500; letter-spacing: -0.02em; }
.pillar .big small { font-size: 16px; color: var(--faint); font-weight: 400; }
.pillar .lab { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 4px; }

/* change rows (optimize) */
.change { display: flex; align-items: center; gap: 14px; border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 12px 16px; margin-bottom: 10px; background: var(--surface-2); }
.change .cn { width: 34px; height: 34px; border-radius: var(--r-md); background: var(--pine-tint); color: var(--pine); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 600; flex: none; }
.change .ct { font-size: 14px; font-weight: 600; }
.change .cp { font-size: 12.5px; color: var(--muted); }
.change .ci { font-family: var(--mono); font-size: 12px; color: var(--pine); margin-top: 2px; }
.change .ce { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; }

/* scatter (model map) */
.scatter { width: 100%; height: 230px; }
.scatter text { font-family: var(--sans); font-size: 11px; fill: var(--muted); }
.scatter .axis { stroke: var(--hairline); stroke-width: 1; }

/* count-up targets shimmer-free */
[data-count] { will-change: contents; }

/* footer note inside demo */
.demo-foot { margin-top: 26px; border-top: 1px solid var(--hairline); padding-top: 12px; font-size: 11.5px; color: var(--faint); line-height: 1.6; }

/* ── responsive ── */
@media (max-width: 920px) {
  .hero { padding: 56px 0 40px; }
  .hero-grid, .offer, .dstep.active { grid-template-columns: 1fr; }
  .offer.flip .offer-copy { order: 1; }
  .offer.flip .offer-visual { order: 2; }
  .hero h1 { font-size: 40px; }
  .score-big { font-size: 64px; }
  .loop { grid-template-columns: 1fr 1fr; }
  .biz { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 32px 28px; }
  .nav .nav-links { display: none; }
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .agents, .pillars { grid-template-columns: 1fr 1fr; }
  .narrate { position: static; }
}

@media (max-width: 560px) {
  .topbar { flex-wrap: wrap; gap: 10px; }
  .nav { gap: 12px; }
  .nav a:not(.btn) { font-size: 13px; }
  .demo-title { font-size: 23px; }
  .hero h1 { font-size: 34px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .agents, .pillars { grid-template-columns: 1fr; }
  .mixbar { height: 58px; }
  .mixbar .seg { font-size: 10px; padding: 0 2px; }
  .ba-grid { grid-template-columns: 1fr 1fr !important; }
  table.compare { font-size: 13px; }
  table.compare td, table.compare th { padding: 10px 8px; }
  .foot-cols { gap: 28px; }
}
