/* alpha-metrics.ai - market research
   Colour tokens are validated: chart ramps with scripts/validate_palette.js
   (ordinal checks, light and dark), text and mark contrast with its
   contrast() helper. No third-party fonts or icon fonts are loaded. */

:root {
  color-scheme: light;
  --page: #fbfaf8;
  --card: #ffffff;
  --tint: #f3f1ec;
  --hair: #e3e1db;
  --ink: #0e1a2b;
  --ink-2: #475467;
  --ink-3: #5c6679;
  --link: #1c5cab;
  --btn-bg: #1c5cab;
  --btn-bg-hover: #154a8c;
  --btn-ink: #ffffff;
  --focus: #2a78d6;
  --mark: #2a78d6;
  --mark-dim: #8f8d86;
  --grid: #e3e1db;
  --ramp-1: #86b6ef;
  --ramp-2: #5598e7;
  --ramp-3: #2a78d6;
  --ramp-4: #1c5cab;
  --ramp-5: #104281;
  --ok: #0ca30c;
  --stop: #d03b3b;
  --err: #b42318;
  --glow: rgba(42, 120, 214, .13);
  --shadow: 0 1px 2px rgba(14, 26, 43, .06), 0 10px 30px rgba(14, 26, 43, .07);
  --show-light: block;
  --show-dark: none;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --radius: 16px;
}

@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    color-scheme: dark;
    --page: #121211;
    --card: #1a1a19;
    --tint: #1d1d1b;
    --hair: #2e2e2b;
    --ink: #f2f1ec;
    --ink-2: #c3c2b7;
    --ink-3: #9b9a92;
    --link: #86b8f2;
    --btn-bg: #86b8f2;
    --btn-bg-hover: #a4cbf6;
    --btn-ink: #0b1522;
    --focus: #86b8f2;
    --mark: #3987e5;
    --mark-dim: #7f7e77;
    --grid: #2e2e2b;
    --ramp-1: #184f95;
    --ramp-2: #256abf;
    --ramp-3: #3987e5;
    --ramp-4: #6da7ec;
    --ramp-5: #9ec5f4;
    --glow: rgba(57, 135, 229, .16);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .35);
    --err: #f97066;
    --show-light: none;
    --show-dark: block;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #121211;
  --card: #1a1a19;
  --tint: #1d1d1b;
  --hair: #2e2e2b;
  --ink: #f2f1ec;
  --ink-2: #c3c2b7;
  --ink-3: #9b9a92;
  --link: #86b8f2;
  --btn-bg: #86b8f2;
  --btn-bg-hover: #a4cbf6;
  --btn-ink: #0b1522;
  --focus: #86b8f2;
  --mark: #3987e5;
  --mark-dim: #7f7e77;
  --grid: #2e2e2b;
  --ramp-1: #184f95;
  --ramp-2: #256abf;
  --ramp-3: #3987e5;
  --ramp-4: #6da7ec;
  --ramp-5: #9ec5f4;
  --glow: rgba(57, 135, 229, .16);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .35);
  --err: #f97066;
  --show-light: none;
  --show-dark: block;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--glow); }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--btn-bg); color: var(--btn-ink);
  padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: clamp(2.35rem, 5.6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.55rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.eyebrow { font: 600 .8rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 14px; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--ink-3); }
.small { font-size: .9rem; }

/* ---------- navigation ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--page) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--hair); }
.nav-in { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink);
  font: 700 1.05rem/1 var(--sans); letter-spacing: -.01em; }
.brand img { height: 24px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav-links a { display: inline-block; padding: 9px 13px; border-radius: 8px; color: var(--ink-2);
  text-decoration: none; font-weight: 500; font-size: .97rem; }
.nav-links a:hover { color: var(--ink); background: var(--tint); }
.nav-links a[aria-current="true"] { color: var(--ink); }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 10px;
  border: 1px solid var(--hair); background: var(--card); color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-sun { display: none; }
:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) .icon-sun { display: block; }
  :root:where(:not([data-theme="light"])) .icon-moon { display: none; }
}
.menu-btn { display: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px;
  border-radius: 10px; font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .15s, border-color .15s, transform .15s; }
.btn-primary { background: var(--btn-bg); color: var(--btn-ink); }
.btn-primary:hover { background: var(--btn-bg-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--hair); }
.btn-ghost:hover { border-color: var(--ink-3); background: var(--tint); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn svg { width: 18px; height: 18px; }

/* ---------- sections ---------- */
.section { padding: clamp(60px, 8.5vw, 112px) 0; }
.section.tint { background: var(--tint); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4.5vw, 52px); }
.section-head .lede { margin-top: 18px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(52px, 8vw, 104px) 0 clamp(60px, 8vw, 100px); }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px; z-index: -1;
  background: radial-gradient(closest-side, var(--glow), transparent 72%); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 24px; }
.hero h1 em { font-style: italic; color: var(--link); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 34px 0 0; padding: 0; list-style: none;
  color: var(--ink-2); font-size: .95rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--link); flex: none; }

.card { background: var(--card); border: 1px solid var(--hair); border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-card { padding: 24px 24px 20px; }
.hero-card .tag { margin-bottom: 18px; }

.tag { display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border-radius: 999px;
  background: var(--tint); border: 1px solid var(--hair); color: var(--ink-2); font: 600 .75rem/1.2 var(--sans); letter-spacing: .02em; }
.tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mark); }

/* ---------- services ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service { padding: 26px 24px 24px; display: flex; flex-direction: column; gap: 12px; box-shadow: none; }
.service .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--tint); color: var(--link);
  display: grid; place-items: center; }
.service .ico svg { width: 24px; height: 24px; }
.service h3 { font-size: 1.2rem; }
.service p { margin: 0; color: var(--ink-2); font-size: .98rem; line-height: 1.6; }

/* ---------- approach ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { position: relative; padding: 0 22px 0 0; counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: var(--page); font: 700 .95rem/1 var(--sans); margin-bottom: 16px; position: relative; z-index: 1; }
.steps li::after { content: ""; position: absolute; top: 17px; left: 34px; right: 0; height: 1px; background: var(--hair); }
.steps li:last-child::after { display: none; }
.steps h3 { font: 700 1.02rem/1.3 var(--sans); letter-spacing: 0; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--ink-2); font-size: .94rem; line-height: 1.55; }

/* ---------- showcase ---------- */
.small-h { font: 700 1.12rem/1.35 var(--sans); letter-spacing: -.005em; margin-bottom: 18px; }
.sample-head { margin-top: clamp(48px, 6vw, 72px); margin-bottom: 24px; }
.sample-head h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.sample-head .lede { margin-top: 12px; }
.contact-mail { display: inline-flex; gap: 10px; align-items: center; font-weight: 600; font-size: 1.15rem; }
.contact-mail svg { color: var(--link); }

.case-note { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--hair); margin-bottom: 36px; color: var(--ink-2); font-size: .96rem; }
.case-note svg { width: 22px; height: 22px; flex: none; color: var(--link); margin-top: 2px; }
.case-note p { margin: 0; }
.case-note strong { color: var(--ink); }

.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 36px; }
.tile { background: var(--card); border: 1px solid var(--hair); border-radius: 14px; padding: 18px 18px 16px; }
.tile-v { font: 700 clamp(1.7rem, 3vw, 2.3rem)/1 var(--sans); letter-spacing: -.02em; }
.tile-l { margin-top: 8px; font-size: .88rem; line-height: 1.4; color: var(--ink-2); }

.chart-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.chart { grid-column: span 12; background: var(--card); border: 1px solid var(--hair); border-radius: var(--radius);
  padding: 24px 24px 20px; min-width: 0; }
.chart.half { grid-column: span 6; }
.chart-head { display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.chart-head h3 { font: 700 1.12rem/1.3 var(--sans); letter-spacing: -.005em; }
.chart-head p { margin: 4px 0 0; color: var(--ink-2); font-size: .93rem; line-height: 1.5; max-width: 62ch; }
.seg { display: inline-flex; border: 1px solid var(--hair); border-radius: 9px; overflow: hidden; flex: none; }
.seg button { font: 600 .82rem/1 var(--sans); padding: 8px 13px; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; }
.seg button + button { border-left: 1px solid var(--hair); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--page); }
.seg button:focus-visible { outline-offset: -3px; }

.key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 12px; font-size: .85rem; color: var(--ink-2); }
.key span { display: inline-flex; align-items: center; gap: 8px; }
.sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.sw-hero { background: var(--mark); }
.sw-dim { background: var(--mark-dim); }

/* horizontal bars */
.bars { --lab: 150px; }
.bgroup { margin: 18px 0 4px; font: 700 .76rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.bgroup:first-child { margin-top: 0; }
.brow { display: grid; grid-template-columns: var(--lab) 1fr; align-items: center; column-gap: 14px; min-height: 28px; border-radius: 6px; }
.brow:hover, .brow:focus-visible, .brow.on { background: color-mix(in srgb, var(--mark) 7%, transparent); }
.brow:focus-visible { outline-offset: 0; }
.blabel { font-size: .9rem; color: var(--ink-2); line-height: 1.25; padding: 4px 0; }
.brow.is-key .blabel { color: var(--ink); font-weight: 700; }
.btrack { position: relative; height: 28px; margin-right: var(--rpad, 56px); border-right: 1px solid var(--grid);
  background: linear-gradient(to right, var(--grid) 1px, transparent 1px) 0 0 / var(--step, 25%) 100%; }
.bbar { position: absolute; top: 7px; height: 14px; left: 0; width: var(--w); background: var(--c, var(--mark-dim));
  border-radius: 0 4px 4px 0; transform-origin: left center; transition: width .7s cubic-bezier(.2, .7, .2, 1), filter .15s; }
.brow:hover .bbar, .brow:focus-visible .bbar, .brow.on .bbar { filter: brightness(1.12) saturate(1.1); }
.brow.is-key .bbar { background: var(--mark); }
.bci { position: absolute; top: 13px; height: 2px; background: var(--ink); opacity: .55; left: var(--lo); width: calc(var(--hi) - var(--lo)); }
.bci::before, .bci::after { content: ""; position: absolute; top: -3px; width: 2px; height: 8px; background: var(--ink); }
.bci::before { left: 0; } .bci::after { right: 0; }
.bval { position: absolute; top: 0; line-height: 28px; font: 700 .85rem/28px var(--sans); color: var(--ink); white-space: nowrap; }
.js .bars:not(.in) .bbar { width: 0 !important; }
.js .bars:not(.in) .bci, .js .bars:not(.in) .bval { opacity: 0; }
.bci, .bval { transition: opacity .4s .5s; }
.baxis { display: grid; grid-template-columns: var(--lab, 150px) 1fr; column-gap: 14px; margin-top: 4px; }
.baxis-in { position: relative; height: 20px; margin-right: var(--rpad, 56px); font-size: .76rem; color: var(--ink-3); }
.baxis-in span { position: absolute; transform: translateX(-50%); }
.baxis-in span:first-child { transform: none; }
.baxis-in span:last-child { transform: translateX(-100%); }
.axis-title { grid-column: 2; font-size: .78rem; color: var(--ink-3); margin-top: 2px; }
.bzero { position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--ink-3); }
.bbar.neg { border-radius: 4px 0 0 4px; }

/* funnel */
.funnel { display: grid; gap: 6px; }
.fstage { display: grid; gap: 6px; padding: 4px 6px; border-radius: 8px; }
.fstage:hover, .fstage:focus-visible, .fstage.on { background: color-mix(in srgb, var(--mark) 7%, transparent); }
.fstage-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .92rem; color: var(--ink-2); }
.fstage-top b { font: 700 1.5rem/1 var(--sans); color: var(--ink); letter-spacing: -.02em; }
.ftrack { height: 16px; border-radius: 4px; background: color-mix(in srgb, var(--ramp-3) 9%, transparent); }
.fbar { height: 16px; width: var(--w); border-radius: 0 4px 4px 0; background: var(--c); transition: width .8s cubic-bezier(.2, .7, .2, 1); }
.js .funnel:not(.in) .fbar { width: 0 !important; }
.fconv { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 0 0 0 6px; padding: 8px 0 8px 18px;
  border-left: 2px solid var(--hair); font-size: .88rem; color: var(--ink-2); }
.fconv b { color: var(--ink); font-weight: 700; }
.chip { display: inline-block; padding: 3px 9px; border-radius: 999px; background: var(--tint); border: 1px solid var(--hair);
  font-size: .8rem; color: var(--ink-2); white-space: nowrap; }

/* callouts */
.callouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.callout { padding: 14px 16px; border-radius: 12px; background: var(--tint); border: 1px solid var(--hair); }
.callout b { display: block; font: 700 1.55rem/1.1 var(--sans); letter-spacing: -.02em; }
.callout > span { display: block; margin-top: 6px; font-size: .86rem; color: var(--ink-2); line-height: 1.45; }
.chart-foot { margin: 16px 0 0; font-size: .86rem; color: var(--ink-2); line-height: 1.55; }
.chart-foot b { color: var(--ink); }

/* table view */
.tview { overflow-x: auto; }
.dtable { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.dtable caption { text-align: left; color: var(--ink-3); padding-bottom: 8px; font-size: .85rem; }
.dtable th, .dtable td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--hair); }
.dtable th { font-weight: 700; color: var(--ink); }
.dtable td:not(:first-child), .dtable th:not(:first-child) { text-align: right; }
.dtable tr.is-key td, .dtable tr.is-key th { font-weight: 700; }

/* tooltip */
.tt { position: fixed; z-index: 90; pointer-events: none; max-width: 280px; padding: 10px 12px; border-radius: 10px;
  background: var(--ink); color: var(--page); box-shadow: 0 8px 24px rgba(0, 0, 0, .25); font-size: .84rem; line-height: 1.4; }
.tt[hidden] { display: none; }
.tt-v { font: 700 1.05rem/1.2 var(--sans); }
.tt-l { opacity: .85; margin-top: 2px; }
.tt-x { opacity: .75; margin-top: 4px; font-size: .8rem; }

/* sample panel */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cp { padding: 26px; background: var(--card); border: 1px solid var(--hair); border-radius: var(--radius); }
.cp h3 { font: 700 1.05rem/1.3 var(--sans); margin-bottom: 14px; }
.cp-big { font: 700 clamp(2.6rem, 5vw, 3.6rem)/1 var(--sans); letter-spacing: -.03em; }
.cp-sub { color: var(--ink-2); margin: 8px 0 18px; font-size: .95rem; }
.cp ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .94rem; color: var(--ink-2); }
.cp li { display: flex; gap: 10px; align-items: flex-start; }
.cp li svg { width: 18px; height: 18px; flex: none; margin-top: 3px; }
.ok { color: var(--ok); } .stop { color: var(--stop); }
.status { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 8px 12px; border-radius: 9px;
  background: var(--tint); border: 1px solid var(--hair); font-weight: 700; font-size: .9rem; }
.status svg { width: 18px; height: 18px; }

/* deliverables */
.deliver { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: stretch; }
.preview { overflow: hidden; display: flex; flex-direction: column; }
.preview a.shot { display: block; position: relative; border-bottom: 1px solid var(--hair); background: var(--tint); }
.preview img { width: 100%; height: auto; }
.img-light { display: var(--show-light); } .img-dark { display: var(--show-dark); }
.preview .body { padding: 22px 24px 24px; }
.preview .body h3 { font: 700 1.15rem/1.3 var(--sans); margin-bottom: 8px; }
.preview .body p { color: var(--ink-2); font-size: .96rem; }
.dlist { display: grid; gap: 14px; }
.ditem { padding: 20px 22px; display: flex; gap: 16px; align-items: flex-start; box-shadow: none; }
.ditem .ico { width: 40px; height: 40px; flex: none; border-radius: 11px; background: var(--tint); color: var(--link); display: grid; place-items: center; }
.ditem .ico svg { width: 22px; height: 22px; }
.ditem h3 { font: 700 1.02rem/1.3 var(--sans); margin-bottom: 4px; }
.ditem p { margin: 0; font-size: .93rem; color: var(--ink-2); line-height: 1.55; }

/* standards */
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--hair); border-left: 1px solid var(--hair); }
.rule { padding: 26px 24px 28px; border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.rule .n { font: 600 .8rem/1 var(--sans); color: var(--ink-3); letter-spacing: .1em; margin-bottom: 14px; }
.rule h3 { font: 700 1.05rem/1.35 var(--sans); margin-bottom: 8px; }
.rule p { margin: 0; font-size: .95rem; color: var(--ink-2); line-height: 1.6; }

/* about + contact */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.facts { display: grid; gap: 0; margin: 28px 0 0; padding: 0; list-style: none; }
.facts li { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--hair); font-size: .96rem; }
.facts li span:first-child { color: var(--ink-3); }
.facts li span:last-child { text-align: right; font-weight: 600; }
.form { padding: 28px; display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--page); border: 1px solid var(--hair);
  border-radius: 10px; padding: 12px 14px; }
.field input:hover, .field textarea:hover { border-color: var(--ink-3); }
.field input:focus, .field textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: transparent; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--err); }
.field textarea { min-height: 130px; resize: vertical; }
.err { color: var(--err); font-size: .87rem; margin: 0; }
.field .err { min-height: 1.2em; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--ink-2); }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--btn-bg); flex: none; }
.form-ok { display: none; padding: 14px 16px; border-radius: 10px; background: var(--tint); border: 1px solid var(--hair); font-weight: 600; }
.form-ok.on { display: flex; gap: 10px; align-items: center; }
.form-ok svg { width: 20px; height: 20px; color: var(--ok); flex: none; }
.contact-mail { display: inline-flex; gap: 10px; align-items: center; font-weight: 600; font-size: 1.1rem; margin-top: 8px; }

.takeaways { margin: 0; padding: 0; list-style: none; counter-reset: t; display: grid; gap: 18px; }
.takeaways li { counter-increment: t; position: relative; padding-left: 40px; color: var(--ink-2); font-size: .96rem; line-height: 1.55; }
.takeaways li::before { content: counter(t); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--tint); border: 1px solid var(--hair); color: var(--ink); font: 700 .8rem/24px var(--sans); text-align: center; }
.takeaways b { color: var(--ink); display: block; margin-bottom: 2px; }
.split h2 + .lede { margin-top: 18px; }

/* footer */
.footer { border-top: 1px solid var(--hair); padding: 36px 0 44px; color: var(--ink-3); font-size: .9rem; }
.footer-in { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer a { color: var(--ink-2); text-decoration: none; }
.footer a:hover { color: var(--ink); text-decoration: underline; }

/* legal + plain pages */
.legal { padding: 56px 0 96px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 20px; }
.legal h2 { font-size: 1.35rem; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--ink-2); }
.todo { background: color-mix(in srgb, var(--stop) 12%, transparent); border: 1px solid color-mix(in srgb, var(--stop) 40%, transparent);
  border-radius: 8px; padding: 2px 8px; color: var(--ink); font-weight: 600; white-space: nowrap; }
.draft-note { padding: 14px 16px; border-radius: 10px; background: var(--tint); border: 1px solid var(--hair); margin-bottom: 28px; color: var(--ink-2); }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s, transform .6s; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
  .steps li:nth-child(3)::after { display: none; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .rules { grid-template-columns: repeat(2, 1fr); }
  .deliver { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .hero-grid, .split, .compare { grid-template-columns: 1fr; }
  .chart.half { grid-column: span 12; }
  .callouts { grid-template-columns: 1fr; }
  .menu-btn { display: inline-grid; margin-left: auto; }
  .nav-links { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; margin: 0; padding: 10px 20px 18px;
    background: var(--page); border-bottom: 1px solid var(--hair); display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 12px; }
  .nav-theme { margin-left: 0; }
}
@media (max-width: 620px) {
  .baxis-in.t5 span:nth-child(even), .baxis-in.t4 span:nth-child(2) { display: none; }
  .grid-4, .rules { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li { padding: 0 0 0 52px; }
  .steps li::before { position: absolute; left: 0; top: 0; margin: 0; }
  .steps li::after { top: 34px; bottom: -22px; left: 17px; right: auto; width: 1px; height: auto; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .chart { padding: 18px 16px 16px; }
  .bars { --lab: 104px; --rpad: 48px; }
  .baxis { --lab: 104px; }
  .blabel { font-size: .82rem; }
  .brow { column-gap: 10px; }
  .form { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .bars:not(.in) .bbar { width: var(--w) !important; }
  .js .funnel:not(.in) .fbar { width: var(--w) !important; }
}
@media print {
  .nav, .footer nav, .menu-btn, .seg, .hero-cta, .form { display: none !important; }
  .section { padding: 28px 0; }
  .js .reveal { opacity: 1; transform: none; }
}
