/* Nomenwise mock — tokens first, everything else references them. */
:root {
  --bg: #f6f8fb;
  --surface: #e7edf5;
  --surface-2: #d9e2ee;
  --ink: #0b1f3a;
  --muted: #566780;
  --accent: #ff6a1a;
  --accent-ink: #0b1f3a;
  --accent-2: #1d4f91;
  --accent-2-ink: #ffffff;
  --accent-2-text: #1d4f91;
  --track: #cfd8e4;
  --ui-bg: #ffffff;
  --ui-line: #d8e0ea;
  --warn: #c24e12;
  --stage: #0b2a52;
  --stage-ink: #ffffff;
  --fig: #0b2a52;

  --m: clamp(20px, 3vw, 40px);
  --r: 999px;
  --gap-section: clamp(88px, 12vw, 200px);

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(1.8rem, 1.1rem + 2.6vw, 3.4rem);
  --step-display: clamp(2.6rem, 1.2rem + 4.6vw, 5rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Sora", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --ui-r: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--step-body)/1.5 var(--font-text);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.04em; line-height: 0.92; margin: 0; text-wrap: balance; }
h1 { font-size: var(--step-display); }
.hero h1 { font-size: clamp(2.4rem, .8rem + 3.9vw, 4.9rem); }
h2 { font-size: var(--step-head); }
h3 { font-size: var(--step-lead); line-height: 1.05; letter-spacing: -0.025em; }
p { margin: 0; }
.muted { color: var(--muted); }
.lead { font-size: var(--step-lead); line-height: 1.35; max-width: 44ch; }
.small { font-size: var(--step-small); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- frame ---------- */
.wrap { padding-inline: var(--m); }
.section { padding-block: var(--gap-section) 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px var(--m);
}
.wordmark { font: 700 1.5rem/1 var(--font-display); letter-spacing: -0.04em; text-decoration: none; display: inline-flex; align-items: center; gap: 0.27em; }
.wordmark .mark { width: 1.2em; height: 1.2em; flex: none; } /* brand/mark.svg; the navy cells follow the text colour */
.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); font-size: 1rem; }
.site-nav a { text-decoration: none; padding-block: 8px; transition: color .2s; }
.site-nav a:not(.btn):hover { color: var(--accent); }
.site-nav a[aria-current="page"]:not(.btn) { color: var(--accent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  background: var(--accent); color: var(--accent-ink);
  font: 600 1rem/1 var(--font-text); text-decoration: none;
  border: 0; border-radius: var(--r); cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s;
}
.btn:hover { filter: brightness(1.15); }
.btn:active { transform: scale(.97); }
.btn.ghost { background: var(--surface-2); color: var(--ink); }
.btn.ghost:hover { background: var(--track); }
.btn.sm { min-height: 40px; padding: 0 16px; }
.btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* ---------- hero (split) ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: grid; grid-template-columns: 1fr 1fr;
}
.hero-copy {
  padding: 120px var(--m) 56px; display: flex; flex-direction: column; justify-content: flex-end; gap: 28px;
}
.hero-copy .lead { color: var(--ink); max-width: 38ch; font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); }
.hero-copy .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.hero-stage { background: var(--stage); color: var(--stage-ink); display: grid; place-items: center; padding: 110px var(--m) 56px; }
.hero-note { color: var(--muted); font-size: var(--step-small); max-width: 52ch; }

/* masked headline */
.mask { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.mask > span { display: block; transform: translateY(105%); animation: rise .9s var(--ease) forwards; }
.mask:nth-child(2) > span { animation-delay: .11s; }
@keyframes rise { to { transform: none; } }
.fade-up { opacity: 0; transform: translateY(16px); animation: fadeup .8s var(--ease) .45s forwards; }
@keyframes fadeup { to { opacity: 1; transform: none; } }

/* scroll reveal: content is visible without JS */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- product fragments (data-ui keeps its own conventions) ---------- */
[data-ui] {
  background: var(--ui-bg); color: var(--ink);
  border: 1px solid var(--ui-line); border-radius: var(--ui-r, 8px);
  font-size: 14px; line-height: 1.45; overflow: hidden;
}
[data-ui] .ui-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--ui-line); color: var(--muted); font-size: 13px; }
[data-ui] .ui-body { padding: 16px; }
[data-ui] label.ui-label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
[data-ui] textarea, [data-ui] input[type=text], [data-ui] input[type=email], [data-ui] select {
  width: 100%; background: var(--surface); color: var(--ink); border: 1px solid var(--ui-line); border-radius: 6px;
  padding: 10px 12px; font: 400 14px/1.45 var(--font-text); resize: none;
}
[data-ui] textarea:focus, [data-ui] input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { /* taste-skill-ignore */ background: var(--ui-bg); color: var(--ink); border: 1px solid var(--ui-line); border-radius: 999px; padding: 6px 12px; font: 500 13px/1 var(--font-text); cursor: pointer; transition: background-color .15s, border-color .15s, transform .15s; }
.chip:hover { border-color: var(--accent); }
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.hero-ui { width: min(100%, 520px); }
.walk { display: grid; gap: 8px; margin-top: 16px; }
.walk-step { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 10px 12px; background: var(--surface); border-radius: 6px; opacity: 0; transform: translateY(6px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.walk-step.on { opacity: 1; transform: none; }
.walk-step .lv { color: var(--muted); font-size: 12px; grid-column: 1 / -1; }
.walk-step .tt { font-weight: 600; }
.walk-step .pp { font-variant-numeric: tabular-nums; color: var(--accent-2-text); font-weight: 600; }
.walk-step .bar { grid-column: 1 / -1; height: 4px; background: var(--track); border-radius: 2px; overflow: hidden; }
.walk-step .bar b { display: block; height: 100%; width: 0; background: var(--accent-2); transition: width .7s var(--ease) .1s; }
.walk-step.on .bar b { width: var(--w); }
.walk-step .alt { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }
.result { margin-top: 12px; padding: 14px 16px; background: var(--accent-2); color: var(--accent-2-ink); border-radius: 6px; display: grid; gap: 8px; opacity: 0; transition: opacity .4s var(--ease) .2s; }
.result.on { opacity: 1; }
.result .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-variant-numeric: tabular-nums; }
.result .code { font: 700 20px/1 var(--font-display); letter-spacing: 0; }
.result .conf { font-weight: 700; }
.result .why { font-size: 12.5px; opacity: .9; }
.result .row.second { opacity: .85; }
.demo-msg { margin-top: 14px; padding: 12px 14px; background: var(--surface); border-radius: 6px; color: var(--muted); }
.demo-msg a { color: var(--ink); }

/* ---------- table-like fragments ---------- */
.sheet { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.sheet th, .sheet td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--ui-line); white-space: nowrap; }
.sheet th { color: var(--muted); font-weight: 500; }
.sheet tr:last-child td { border-bottom: 0; }
.sheet .ok { color: var(--accent-2-text); font-weight: 600; }
.sheet .lo { color: var(--warn); }
.sheet td.wrapcell { white-space: normal; min-width: 180px; }

/* ---------- comparison (features) ---------- */
.compare-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 20px; margin-bottom: 48px; }
.compare-head h2 { grid-column: 1 / 8; }
.cmp { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); position: relative; }
.cmp .row { display: contents; }
.cmp .row > * { padding: 18px 20px; min-height: 68px; display: flex; align-items: center; }
.cmp .row:nth-child(even) > * { background: #e9ece5; }
.cmp .name { grid-column: 1 / 6; font-size: 1.375rem; font-weight: 600; letter-spacing: -.01em; padding-left: 0; }
.cmp .usual { grid-column: 6 / 9; color: var(--muted); }
.cmp .us { grid-column: 9 / 13; background: var(--stage) !important; color: var(--stage-ink); font-weight: 600; }
.cmp .row.head > * { min-height: 56px; font-weight: 700; background: transparent !important; }
.cmp .row.head .us { background: var(--stage) !important; margin-top: -24px; min-height: 80px; align-items: flex-end; }
.cmp .row.head .usual { color: var(--muted); }

/* ---------- stage slider ---------- */
.stages { display: grid; grid-template-columns: 1fr 1fr; min-height: 88svh; position: relative; padding-bottom: 120px; }
.stage-copy { background: var(--bg); padding: 56px var(--m) 0; }
.stage-copy h2 { font-size: clamp(2.5rem, 1.4rem + 3.4vw, 4.75rem); transition: opacity .2s; }
.stage-copy p { margin-top: 24px; max-width: 40ch; color: var(--muted); transition: opacity .2s; }
.stage-ui { background: var(--stage); display: grid; place-items: center; padding: 56px var(--m); }
.stage-ui [data-ui] { width: min(100%, 520px); transition: opacity .2s; }
.stage-fading .stage-copy h2, .stage-fading .stage-copy p, .stage-fading .stage-ui [data-ui] { opacity: 0; }
.stage-ctrl { position: absolute; left: 28px; right: 28px; bottom: 28px; }
.rng { position: relative; height: 32px; display: flex; align-items: center; }
.rng .trk { position: absolute; left: 0; right: 0; height: 8px; background: var(--track); }
.rng .fill { position: absolute; left: 0; height: 8px; background: var(--ink); width: var(--p, 0%); transition: width .2s; }
.stage-ctrl input[type=range] { position: relative; -webkit-appearance: none; appearance: none; width: 100%; height: 32px; background: transparent; margin: 0; border-radius: 0; outline-offset: 6px; }
.stage-ctrl input[type=range]::-webkit-slider-runnable-track { background: transparent; height: 32px; }
.stage-ctrl input[type=range]::-moz-range-track { background: transparent; height: 32px; }
.stage-ctrl input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 32px; height: 32px; background: var(--accent); border: 0; border-radius: var(--r); cursor: grab; }
.stage-ctrl input[type=range]::-moz-range-thumb { width: 32px; height: 32px; background: var(--accent); border: 0; border-radius: var(--r); cursor: grab; }
.stage-names { display: flex; justify-content: space-between; margin-top: 16px; font-size: 1rem; color: var(--muted); }
.stage-names button { background: none; border: 0; padding: 4px 0; color: inherit; font: inherit; cursor: pointer; transition: color .2s; }
.stage-names button[aria-current="true"] { color: var(--ink); }
.stage-names button:hover { color: var(--ink); }

/* ---------- statement + pictures ---------- */
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 20px; align-items: start; }
.split .a { grid-column: 1 / 6; }
.split .b { grid-column: 7 / 13; }
.photo { overflow: hidden; background: var(--surface); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.photo:hover img { transform: scale(1.04); }
.photo figcaption { padding: 10px 0 0; color: var(--muted); font-size: var(--step-small); background: var(--bg); }
.statement { font-size: clamp(1.4rem, 1.1rem + 1.1vw, 2.125rem); line-height: 1.22; max-width: 24ch; letter-spacing: -.015em; }
.sources { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 18px 32px; }
.sources p:first-child { font-size: 1.125rem; color: var(--muted); }
.sources p { font-size: 1.375rem; font-weight: 500; letter-spacing: -.01em; }

/* ---------- free trial (price block) ---------- */
.free { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 20px; align-items: center; min-height: 80svh; position: relative; }
.free .a { grid-column: 1 / 5; align-self: start; padding-top: 24px; }
.free .a h2 { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem); line-height: 1; margin-bottom: 18px; }
.free .b { grid-column: 6 / 13; position: relative; }
.free .fig { color: var(--fig); font: 700 clamp(7rem, 17vw, 15rem)/.85 var(--font-display); letter-spacing: -.05em; }
.free .over { position: absolute; top: -12%; right: 0; width: min(38%, 340px); aspect-ratio: 4/5; }
.free ul { list-style: none; padding: 0; margin: 40px 0 28px; display: grid; gap: 6px; font-size: 1.125rem; }

/* ---------- faq index ---------- */
.faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 20px; align-items: start; }
.faq-list { grid-column: 1 / 6; display: grid; gap: 18px; font-size: 1.125rem; }
.faq-list h2 { font: 600 1.125rem/1.3 var(--font-text); letter-spacing: 0; color: var(--muted); }
.faq-q { display: grid; grid-template-columns: 8px 1fr; gap: 12px; align-items: baseline; text-align: left; background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; padding: 0; transition: color .2s; }
.faq-q::before { content: ""; width: 8px; height: 8px; background: var(--muted); transition: background-color .2s; }
.faq-q:hover, .faq-q[aria-selected="true"] { color: var(--ink); }
.faq-q[aria-selected="true"]::before { background: var(--accent); }
.faq-pane { grid-column: 7 / 13; position: sticky; top: 120px; font-size: clamp(1.35rem, 1.1rem + .9vw, 1.75rem); line-height: 1.3; max-width: 32ch; min-height: 10em; }
.faq-pane p { animation: fadein .2s ease both; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.faq-a { display: none; }

/* ---------- cta sentence ---------- */
.cta { font: 700 clamp(2.4rem, 1rem + 5vw, 5.5rem)/1.05 var(--font-display); letter-spacing: -.04em; max-width: 14em; }
.cta form { display: inline; }
.cta .fld {
  display: inline-block; vertical-align: baseline; width: 7em; height: 1.1em; padding: 0 .3em;
  background: var(--surface-2); color: var(--ink); border: 0; border-radius: var(--r);
  font: inherit; letter-spacing: inherit; transition: background-color .2s;
}
.cta .fld::placeholder { color: var(--muted); }
.cta .fld:focus { background: var(--track); outline: 3px solid var(--accent); outline-offset: 2px; }
.cta .go { display: inline-block; vertical-align: baseline; height: 1.1em; padding: 0 .35em; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: var(--r); font: inherit; letter-spacing: inherit; cursor: pointer; transition: transform .18s var(--ease), background-color .18s; }
.cta .go:hover { background: #335039; }
.cta .go:active { transform: scale(.97); }
.cta-note { margin-top: 24px; color: var(--muted); max-width: 52ch; }
.cta-msg { margin-top: 16px; color: var(--accent-2-text); font-weight: 600; min-height: 1.5em; }

/* ---------- footer ---------- */
.site-footer { margin-top: clamp(120px, 30svh, 320px); padding: 0 var(--m) 30px; }
.foot-line { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: baseline; font-size: 1rem; }
.foot-line nav { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.foot-line .r { justify-self: end; color: var(--muted); display: flex; gap: 16px; }
.foot-line .l { color: var(--muted); }
.foot-line nav a, .foot-line .r a { color: var(--ink); text-decoration: none; }
.foot-line a:hover { color: var(--accent); }
.credits { margin-top: 28px; color: var(--muted); font-size: var(--step-small); max-width: 110ch; }
.credits a { color: var(--ink); }

/* ---------- inner pages ---------- */
.page-hero { padding: 150px var(--m) 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 20px; align-items: end; }
.page-hero h1 { grid-column: 1 / 9; }
.page-hero .lead { grid-column: 1 / 7; margin-top: 28px; }
.rows { display: grid; gap: clamp(80px, 9vw, 150px); }
.row-2 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 20px; align-items: center; }
.row-2 .t { grid-column: 1 / 6; }
.row-2 .t h2 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem); }
.row-2 .t p { margin-top: 20px; max-width: 42ch; color: var(--muted); }
.row-2 .f { grid-column: 7 / 13; }
.row-2.flip .t { grid-column: 8 / 13; order: 2; }
.row-2.flip .f { grid-column: 1 / 7; order: 1; }
.band { background: var(--accent-2); color: var(--accent-2-ink); padding-block: clamp(72px, 9vw, 140px); margin-top: var(--gap-section); }
.band h2 { max-width: 14ch; }
.band .cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 20px; margin-top: 48px; }
.band .cols p { grid-column: span 4; font-size: 1.125rem; }
.band .cols p strong { display: block; font: 700 1.5rem/1.1 var(--font-display); letter-spacing: -.02em; margin-bottom: 10px; }

/* confidence bars */
.bars { display: grid; gap: 10px; }
.bars .b { display: grid; grid-template-columns: 112px 1fr 44px; align-items: center; gap: 12px; font-size: 13px; font-variant-numeric: tabular-nums; }
.bars .track { height: 10px; background: var(--track); border-radius: 2px; position: relative; }
.bars .track i { display: block; height: 100%; background: var(--accent-2); border-radius: 2px; }
.bars .track i.lo { background: var(--accent-2-text); }
.bars .mark { position: absolute; top: -5px; bottom: -5px; width: 3px; background: var(--ink); left: 70%; }
.slider-row { display: grid; gap: 8px; margin-bottom: 18px; }
.slider-row input[type=range] { width: 100%; accent-color: var(--accent); }
.verdict { padding: 12px 14px; background: var(--surface); border-radius: 6px; margin-top: 16px; }

/* ---------- forms (try / contact) ---------- */
.form-card { width: min(100%, 540px); }
.form-card .ui-body { display: grid; gap: 16px; padding: 20px; }
.form-card h2 { font-size: 1.75rem; letter-spacing: -.03em; }
.field-msg { min-height: 1.25em; font-size: 13px; margin-top: 6px; color: var(--muted); }
.field-msg.err { color: #b3361b; }
.field-msg.good { color: var(--accent-2-text); }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: 13px; color: var(--muted); }
.check input { width: 18px; height: 18px; accent-color: var(--accent); margin-top: 2px; }
.check a { color: var(--ink); }
.form-card .btn { width: 100%; min-height: 50px; }
.state { display: none; }
.state.active { display: block; }
.steps-list { list-style: none; counter-reset: s; padding: 0; margin: 8px 0 0; display: grid; gap: 14px; }
.steps-list li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.steps-list li::before { counter-increment: s; content: counter(s); width: 28px; height: 28px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 700; border-radius: var(--r); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-stage { padding: 32px var(--m) 48px; }
  .hero-copy { padding: 96px var(--m) 40px; justify-content: flex-start; }
  .walk-step .alt { display: none; }
  .site-header { padding: 16px var(--m); }
  .site-nav .hide-sm { display: none; }
  .compare-head h2 { grid-column: 1 / -1; }
  .cmp { display: block; }
  .cmp .row { display: block; padding: 18px var(--m); margin-inline: calc(var(--m) * -1); }
  .cmp .row.head { display: none; }
  .cmp .row:nth-child(even) { background: #e9ece5; }
  .cmp .row > * { display: block; padding: 0; min-height: 0; background: none !important; }
  .cmp .name { font-size: 1.25rem; margin-bottom: 8px; }
  .cmp .usual::before { content: "The usual way: "; color: var(--muted); }
  .cmp .us { margin-top: 8px; padding: 10px 12px !important; background: var(--stage) !important; color: var(--stage-ink); }
  .cmp .us::before { content: "Nomenwise: "; font-weight: 700; }
  .stages { grid-template-columns: 1fr; min-height: 0; padding-bottom: 150px; }
  .stage-ui { order: -1; padding: 28px var(--m); }
  .stage-copy { padding: 40px var(--m) 24px; }
  .stage-copy h2 { font-size: 9vw; }
  .stage-ctrl { left: var(--m); right: var(--m); }
  .stage-names { font-size: .9rem; }
  .split .a, .split .b { grid-column: 1 / -1; }
  .split .b { margin-top: 32px; }
  .free { display: block; min-height: 0; }
  .free .b { margin-top: 32px; }
  .free .fig { font-size: 34vw; }
  .free .over { width: 34%; top: -6%; }
  .faq { display: block; }
  .faq-pane { display: none; }
  .faq-a { display: block; margin: 8px 0 0 20px; font-size: 1.1875rem; color: var(--ink); }
  .faq-item:not(.open) .faq-a { display: none; }
  .faq-list { gap: 20px; }
  .foot-line { grid-template-columns: 1fr; gap: 8px; font-size: .875rem; }
  .foot-line nav, .foot-line .r { justify-content: flex-start; justify-self: start; }
  .page-hero { display: block; padding-top: 120px; }
  .row-2, .row-2.flip { display: block; }
  .row-2 .f { margin-top: 28px; }
  .band .cols p { grid-column: 1 / -1; margin-bottom: 20px; }
  .cta { font-size: 10vw; }
  .cta .fld { display: block; width: 100%; margin: .15em 0; }
  .grid2 { grid-template-columns: 1fr; }
}
@media (min-width: 961px) { .faq-item .faq-a { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .mask > span { transform: none; }
  .fade-up, .js .reveal { opacity: 1; transform: none; }
}

/* ---------- derived from tokens ---------- */
.btn, .cta .fld, .cta .go { border-radius: var(--r); }
.chip { border-radius: var(--r-chip, 999px); }
@media (min-width: 961px) {
  .has-split .site-nav a:not(.btn) { color: var(--stage-ink); }
}


/* tabs inside the hero fragment, tools section, audience split */
.tabs { display: flex; gap: 4px; }
.tabs button { background: none; border: 0; padding: 6px 12px; border-radius: 999px; color: var(--muted); font: 600 13px/1 var(--font-text); cursor: pointer; transition: background-color .15s, color .15s; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.hero-ui.is-scan .chips { display: flex; }
.tools-head { margin-bottom: 56px; }
.tools-head h2 { max-width: 16ch; }
.row-2 .t h3 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem); line-height: .95; letter-spacing: -.04em; }
.aud { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 20px; margin-top: 56px; }
.aud > div { grid-column: span 6; background: var(--surface); padding: clamp(24px, 3vw, 44px); }
.aud h3 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); margin-bottom: 14px; }
.aud p { max-width: 38ch; }
.scan .grid2 input[readonly] { color: var(--muted); }
.sheet th[scope], .sheet tbody th { color: var(--ink); font-weight: 500; }
@media (max-width: 960px) { .aud > div { grid-column: 1 / -1; } .tools-head { margin-bottom: 36px; } }

/* ---------- hero: full-width before / after table ---------- */
.hero2 { padding-top: 110px; }
.hero2-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px 20px; align-items: end; margin-bottom: 40px; }
.hero2 h1 { grid-column: 1 / 8; font-size: clamp(2.6rem, .8rem + 4.6vw, 5.6rem); }
.hero2-side { grid-column: 9 / 13; display: grid; gap: 22px; justify-items: start; }
.hero2-side .lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); max-width: 34ch; }
.bigtable[data-ui] { border-radius: 0; border-left: 0; border-right: 0; background: var(--ui-bg); }
.bt-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px var(--m); }
.bt-cap { color: var(--muted); font-size: 13px; }
.seg { display: inline-flex; background: var(--surface); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; color: var(--muted); font: 600 13px/1 var(--font-text); padding: 9px 18px; border-radius: 999px; cursor: pointer; transition: background-color .2s, color .2s; }
.seg button[aria-pressed="true"] { background: var(--stage); color: var(--stage-ink); }
.seg button:hover:not([aria-pressed="true"]) { color: var(--ink); }
.bt-scroll { overflow-x: auto; scrollbar-width: thin; }
.bt-scroll:focus-visible { outline-offset: -3px; }
.bt { border-collapse: separate; border-spacing: 0; min-width: 2760px; width: 100%; font-size: 14px; }
.bt th, .bt td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--ui-line); white-space: nowrap; font-weight: 500; vertical-align: middle; }
.bt tbody tr:last-child th, .bt tbody tr:last-child td { border-bottom: 0; }
.bt thead th { color: var(--muted); font-size: 12.5px; font-weight: 600; background: var(--surface); }
.bt .grp th { font: 700 13px/1 var(--font-text); padding-block: 12px; letter-spacing: 0; }
.bt .grp .gb { background: var(--surface-2); color: var(--ink); }
.bt .grp .ga { background: var(--stage); color: var(--stage-ink); position: sticky; left: 0; }
.bt thead th.a { background: #cddaee; color: var(--ink); }
.bt tbody th { color: var(--ink); font-weight: 600; }
.bt .sticky { position: sticky; left: 0; z-index: 2; background: var(--ui-bg); min-width: 190px; }
.bt thead .sticky { background: var(--surface); z-index: 3; }
.bt .desc { white-space: normal; min-width: 270px; color: var(--muted); }
.bt .nil { color: var(--muted); opacity: .55; }
.bt td.a { background: #eef3fb; color: var(--ink); }
.bt td.ok .v { color: var(--accent-2-text); font-weight: 700; }
.bt td.lo .v { color: var(--warn); font-weight: 700; }
/* before: the added columns wait empty; after: they fill in left to right */
.bt td.a .v { opacity: 0; transform: translateX(-10px); display: inline-block; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.bt td.a::after { content: ""; display: block; height: 8px; width: 56px; background: var(--track); border-radius: 4px; margin-top: -16px; transition: opacity .3s; }
.bt td.a { position: relative; }
.bt td.a::after { position: absolute; left: 18px; top: 50%; margin-top: -4px; }
.is-after .bt td.a .v { opacity: 1; transform: none; transition-delay: calc(var(--c) * 70ms + 150ms); }
.is-after .bt td.a::after { opacity: 0; }
@media (max-width: 960px) {
  .hero2 { padding-top: 92px; }
  .hero2 h1 { font-size: min(7.6vw, 4.2rem); }
  .hero2-top { display: block; margin-bottom: 28px; }
  .hero2-side { margin-top: 20px; }
  .bt .sticky { min-width: 150px; }
  .bt-cap { display: none; }
  .bt-bar { justify-content: flex-end; }
}

/* ---------- what we add: definitions ---------- */
.defs { margin: 48px 0 0; display: grid; }
.defs > div { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 20px; padding: 18px 20px; align-items: baseline; }
.defs > div:nth-child(odd) { background: var(--surface); }
.defs dt { grid-column: 1 / 5; font-weight: 700; font-size: 1.125rem; }
.defs dd { grid-column: 5 / 13; margin: 0; color: var(--ink); }
@media (max-width: 960px) { .defs dt, .defs dd { grid-column: 1 / -1; } .defs dd { margin-top: 4px; } }

/* ---------- full-bleed fields ---------- */
.field { padding-block: var(--gap-section); margin-top: var(--gap-section); }
.field.soft { background: var(--surface); }
.field.navy { background: var(--stage); color: var(--stage-ink); }
.add { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 56px 20px; margin-top: 64px; }
.add > div:first-child { grid-column: 1 / 6; }
.add > div:last-child { grid-column: 7 / 13; }
.add h3 { font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.4rem); margin-bottom: 28px; color: var(--stage-ink); }
.add dl { margin: 0; display: grid; gap: 22px; }
.add dt { font-weight: 700; font-size: 1.125rem; }
.add dd { margin: 4px 0 0; color: #bccbe3; }
.aud2 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px 20px; margin-top: 56px; }
.aud2 article { grid-column: span 6; }
.aud2 .photo { aspect-ratio: 4 / 3; margin-bottom: 24px; }
.aud2 h3 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); margin-bottom: 12px; }
.aud2 p { max-width: 38ch; }
.wrong { display: grid; grid-template-columns: 1fr 1fr; margin-top: var(--gap-section); background: var(--accent-2); color: var(--accent-2-ink); }
.wrong .photo { min-height: 520px; }
.wrong-t { padding: clamp(40px, 6vw, 96px) var(--m); align-self: center; }
.wrong-t .statement { max-width: 30ch; }
.closing { display: grid; grid-template-columns: 1fr 1fr; margin-top: 0; background: var(--stage); color: var(--stage-ink); }
.closing-t { padding: clamp(48px, 7vw, 120px) var(--m); align-self: center; }
.closing .photo { min-height: 480px; }
.closing .cta { font-size: clamp(2.2rem, 1rem + 3.4vw, 4.4rem); }
.closing .cta .fld { background: rgba(255,255,255,.14); color: #fff; }
.closing .cta .fld::placeholder { color: #aebfdc; }
.closing .cta-note { font: 400 var(--step-body)/1.5 var(--font-text); letter-spacing: 0; color: #bccbe3; }
.closing .cta-msg { font: 500 var(--step-body)/1.5 var(--font-text); letter-spacing: 0; color: #fff; }
.wrong .photo img, .closing .photo img { height: 100%; }
.site-footer { margin-top: clamp(72px, 12svh, 140px); }
@media (max-width: 960px) {
  .add > div:first-child, .add > div:last-child { grid-column: 1 / -1; }
  .aud2 article { grid-column: 1 / -1; }
  .wrong, .closing { grid-template-columns: 1fr; }
  .wrong .photo, .closing .photo { min-height: 0; aspect-ratio: 4 / 3; }
  .closing .photo { order: -1; }
}
.bt .nil { display: inline-block; width: 12px; height: 2px; background: var(--muted); opacity: .5; vertical-align: middle; }
.add dl { gap: 30px; }
.add dt { font: 700 clamp(1.3rem, 1.1rem + .8vw, 1.75rem)/1.1 var(--font-display); letter-spacing: -.03em; }
.add dd { font-size: 1.0625rem; margin-top: 6px; }
figure { margin: 0; }

.closing-t { display: grid; gap: 28px; justify-items: start; }
.closing h2 { font-size: clamp(2.4rem, 1rem + 4vw, 5rem); max-width: 10ch; }
.closing .cta-note { font: 400 var(--step-body)/1.5 var(--font-text); color: #bccbe3; max-width: 34ch; }
.btn.lg { min-height: 64px; padding: 0 38px; font-size: 1.25rem; }
.btn.lg svg { width: 20px; height: 20px; }

/* column help */
.bt thead th.a { white-space: nowrap; }
.qm { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 6px; padding: 0; vertical-align: middle; border: 0; border-radius: 50%; background: rgba(11, 42, 82, .14); color: var(--ink); font: 700 11px/1 var(--font-text); cursor: help; transition: background-color .15s, color .15s, transform .15s; }
.qm:hover, .qm:focus-visible { background: var(--stage); color: var(--stage-ink); }
.qm:active { transform: scale(.92); }
.tip { position: fixed; z-index: 200; max-width: 260px; padding: 12px 14px; background: var(--stage); color: var(--stage-ink); border-radius: 8px; font: 500 14px/1.4 var(--font-text); box-shadow: 0 8px 24px rgba(11, 31, 58, .25); /* taste-skill-ignore: floating tooltip */ pointer-events: none; }
.tip[hidden] { display: none; }

.bt-src { padding-top: 28px; padding-bottom: 8px; }
.bt-src p { max-width: 62ch; color: var(--ink); }
.bt-src strong { font-weight: 700; }


/* upload block (home) */
.up-state { display: none; gap: 16px; }
.up-state.active { display: grid; }
.dropzone { position: relative; display: grid; justify-items: center; gap: 6px; padding: 44px 20px; text-align: center; border: 2px dashed var(--ui-line); border-radius: var(--ui-r); background: var(--bg); cursor: pointer; transition: border-color .2s, background-color .2s; }
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: #fff; }
.dropzone:focus-within { outline: 2px solid var(--ink); outline-offset: 3px; }
.dropzone svg { width: 36px; height: 36px; color: var(--accent-2); margin-bottom: 6px; }
.dropzone strong { font-size: 1.125rem; }
.dropzone span { color: var(--muted); }
.dropzone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.up-link { justify-self: start; color: var(--accent-2-text); font-weight: 600; }
.up-file { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: var(--bg); border-radius: var(--ui-r); font-weight: 600; overflow-wrap: anywhere; }
.up-change { background: none; border: 0; color: var(--accent-2-text); font: 600 14px var(--font-text); cursor: pointer; padding: 6px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
[data-upload] h3 { font: 700 1.5rem/1.2 var(--font-display); margin: 0; }
[data-upload] .btn { width: 100%; min-height: 50px; }
@media (prefers-reduced-motion: reduce) { .dropzone { transition: none; } }

/* source links in the sample table */
.bt a.src { display: inline-flex; vertical-align: middle; margin-left: 8px; color: var(--accent-2-text); border-radius: 4px; }
.bt a.src svg { width: 15px; height: 15px; }
.bt a.src:hover { color: var(--accent); }
.bt a.src:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.hero-copy.center { justify-content: center; padding-block: 120px; }
@media (max-width: 960px) { .hero-copy.center { justify-content: flex-start; padding-block: 96px 40px; } }


/* legal pages */
.legal { padding-top: 140px; }
.legal-head { max-width: 760px; }
.legal-head h1 { font-size: clamp(2.4rem, 1.4rem + 3.4vw, 4.2rem); }
.legal-meta { margin-top: 20px; color: var(--muted); font-size: var(--step-small); }
.legal-intro { margin-top: 20px; font-size: var(--step-lead); line-height: 1.3; max-width: 36ch; letter-spacing: -.01em; }
.legal-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; margin-top: 64px; align-items: start; }
.legal-toc { position: sticky; top: 96px; font-size: var(--step-small); }
.legal-toc p { font-weight: 700; margin-bottom: 12px; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.legal-toc a { text-decoration: none; color: var(--muted); }
.legal-toc a:hover, .legal-toc a:focus-visible { color: var(--ink); text-decoration: underline; }
.legal-body { max-width: 68ch; font-size: 1.0625rem; line-height: 1.6; }
.legal-body section { margin-bottom: 48px; scroll-margin-top: 96px; }
.legal-body h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); line-height: 1.1; letter-spacing: -.025em; margin-bottom: 16px; }
.legal-body p + p, .legal-body p + ul, .legal-body ul + p, .legal-body p + .tablewrap, .legal-body .tablewrap + p { margin-top: 14px; }
.legal-body ul { margin: 0; padding-left: 1.25em; display: grid; gap: 8px; }
.legal-body a { color: var(--accent-2-text); }
.tablewrap { overflow-x: auto; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--ui-line); }
.legal-table thead th { color: var(--muted); font-size: var(--step-small); font-weight: 600; }
.legal-table tbody th { font-weight: 600; width: 38%; }
.ph { background: #fff3c4; border-radius: 4px; padding: 0 4px; }
@media (max-width: 860px) {
  .legal { padding-top: 110px; }
  .legal-grid { grid-template-columns: 1fr; gap: 32px; }
  .legal-toc { position: static; }
}

/* ---------- prepare your file (home, upload section, left column) ---------- */
.up-lead { margin-top: 20px; max-width: 30ch; }
.prep-card { margin-top: clamp(28px, 3.5vw, 44px); }
.prep { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.prep thead th { text-align: left; padding: 12px 22px 8px; color: var(--muted); font-size: var(--step-small); font-weight: 600; }
.prep tbody th, .prep tbody td { text-align: left; vertical-align: top; padding: 14px 22px; border-top: 1px solid var(--ui-line); color: var(--ink); }
.prep tbody th { width: 40%; font-weight: 700; }
.prep small { display: block; margin-top: 2px; font-size: var(--step-small); font-weight: 500; color: var(--muted); }
.prep tbody tr:first-child small { color: var(--accent-2-text); font-weight: 700; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 560px) { .prep thead { display: none; } .prep tbody tr { display: block; padding: 12px 18px; border-top: 1px solid var(--ui-line); } .prep tbody th, .prep tbody td { display: block; padding: 0; border: 0; width: auto; } .prep tbody th small { display: inline; margin-left: 8px; } }

/* ---------- example file (home, under the upload widget) ---------- */
.example-card { margin-top: 20px; }
.example-card .ui-body { display: grid; gap: 14px; }
.example-card .ex-lead { color: var(--ink); font-size: 16px; }
.ex-row { display: flex; gap: 10px; }
.ex-row input { flex: 1; min-width: 0; }
.ex-row .btn { white-space: nowrap; }
@media (max-width: 560px) { .ex-row { flex-direction: column; } .ex-row .btn { width: 100%; } }


/* country picker (app.js combo()): an input with a filtered list in place of the native select */
.combo { position: relative; }
.combo::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; margin-top: -6px; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); pointer-events: none; }
[data-ui] .combo input[type=text] { padding-right: 36px; cursor: pointer; }
[data-ui] .combo input[type=text]:focus { cursor: text; }
.combo-list { position: fixed; z-index: 50; margin: 0; padding: 4px; list-style: none; overflow-y: auto; overscroll-behavior: contain; background: var(--ui-bg); border: 1px solid var(--ui-line); border-radius: 8px; box-shadow: 0 12px 32px rgba(11, 31, 58, .16); font: 400 14px/1.4 var(--font-text); color: var(--ink); }
.combo-list li { padding: 8px 10px; border-radius: 6px; cursor: pointer; }
.combo-list li.active { background: var(--surface); }
.combo-list li[aria-selected="true"] { font-weight: 600; color: var(--accent-2-text); }
.combo-list .combo-empty { color: var(--muted); cursor: default; }
