/* Worth a Knock. Tokens follow .docs/worth-a-knock-brand-book.md.
   Build UI from the semantic tokens (surface, ink, action...), not the brand hexes. */

:root {
  --brand-navy: #1c2a42;
  --brand-orange: #ec8d31;
  --brand-cyan: #1fb6d9;
  --brand-yellow: #ffc53d;
  --brand-paper: #f5f4f0;

  --surface: #f5f4f0;
  --surface-raised: #ffffff;
  --line: #d5d8dd;
  --ink: #1c2a42;
  --ink-muted: #56657d;
  --action: #ec8d31;
  --on-action: #1c2a42;
  --action-ink: #a4560f;
  --data: #1fb6d9;
  --data-ink: #0a6e88;
  --alert: #ffc53d;
  --on-alert: #1c2a42;
  --focus-ring: #0a6e88;

  --font-display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 12px;
  --gutter: 16px;
  --section: 48px;

  color-scheme: light;
}

/* Dark tokens. Also applied to every navy band via .band-navy. */
@media (prefers-color-scheme: dark) {
  :root {
    --surface: #1c2a42;
    --surface-raised: #26375a;
    --line: #34476b;
    --ink: #f5f4f0;
    --ink-muted: #b4bcc9;
    --action-ink: #ec8d31;
    --data-ink: #1fb6d9;
    --focus-ring: #1fb6d9;
    color-scheme: dark;
  }
}

.band-navy,
.site-header,
.site-footer {
  --surface: #1c2a42;
  --surface-raised: #26375a;
  --line: #34476b;
  --ink: #f5f4f0;
  --ink-muted: #b4bcc9;
  --action-ink: #ec8d31;
  --data-ink: #1fb6d9;
  --focus-ring: #1fb6d9;
  background: var(--brand-navy);
  color: var(--ink);
}

@media (min-width: 768px) {
  :root { --gutter: 24px; --section: 80px; }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 400 16px/24px var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img, video { height: auto; }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
a { color: var(--data-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
strong { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--surface);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--action); color: var(--on-action);
  padding: 8px 16px; border-radius: var(--radius-md); font-weight: 600;
}
.skip:focus { top: 12px; }

/* Type */
.display-xl, .display-lg, .display-md {
  font-family: var(--font-display);
  text-wrap: balance;
  letter-spacing: 0;
}
.display-xl { font-size: clamp(44px, 7.2vw, 72px); line-height: 0.95; font-weight: 800; }
.display-lg { font-size: clamp(34px, 4.6vw, 48px); line-height: 1; font-weight: 800; }
.display-md { font-size: 32px; line-height: 34px; font-weight: 700; }
.heading { font: 700 22px/28px var(--font-sans); }
.lead { font-size: 18px; line-height: 28px; color: var(--ink-muted); }
.band-navy .lead { color: var(--ink); opacity: 0.92; }
.small { font-size: 14px; line-height: 20px; }
.muted { color: var(--ink-muted); }
.label, .eyebrow {
  font: 600 12px/16px var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}
.eyebrow { color: var(--data-ink); margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.eyebrow-alert { color: var(--ink); }
.eyebrow-alert .icon { color: var(--alert); }
.band:not(.band-navy) .eyebrow-alert .icon { color: var(--on-alert); background: var(--alert); border-radius: var(--radius-sm); padding: 2px; width: 20px; height: 20px; }
.data { font: 500 14px/20px var(--font-mono); }
.score { font: 600 36px/36px var(--font-mono); color: var(--data-ink); }
.measure { max-width: 680px; }
.text-link { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }

/* Icons */
.icon { width: 24px; height: 24px; flex: none; }
.icon-sm { width: 18px; height: 18px; }
.icon-xs { width: 16px; height: 16px; }
.icon-muted { color: var(--ink-muted); }
.icon-data { color: var(--data-ink); }

/* Layout */
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.band { padding: var(--section) 0; }
.band > .wrap > * + * { margin-top: 24px; }
.band-raised { background: var(--surface-raised); border-block: 1px solid var(--line); }
.band + .band-navy, .band-navy + .band-navy { border-top: 1px solid var(--line); }

.split { display: grid; gap: 32px; align-items: start; }
.split > div > * + * { margin-top: 16px; }
@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split-reverse > :first-child { order: 2; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  background: var(--action); color: var(--on-action);
  font: 700 16px/20px var(--font-sans);
  border: 0; border-radius: var(--radius-md);
  text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn:hover { background: #f09a45; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand img { height: 48px; width: auto; }
@media (min-width: 900px) { .brand img { height: 56px; } }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius-md);
  background: transparent; color: var(--ink); cursor: pointer;
}
.site-nav { display: none; }
.site-nav ul { list-style: none; padding: 0; display: flex; gap: 4px; }
.site-nav a:not(.btn) {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 8px 12px; border-radius: var(--radius-md); display: block;
}
.site-nav a:not(.btn):hover { background: var(--surface-raised); }
.site-nav a[aria-current="page"] { color: var(--brand-orange); }
.site-nav.open {
  display: flex; flex-direction: column; align-items: stretch; gap: 12px;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--brand-navy); padding: 16px var(--gutter) 24px; border-bottom: 1px solid var(--line);
}
.site-nav.open ul { flex-direction: column; }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.open { display: flex; position: static; flex-direction: row; align-items: center; gap: 16px; padding: 0; border: 0; }
  .site-nav.open ul { flex-direction: row; }
}

/* Hero */
.hero { padding-top: 48px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-copy > * + * { margin-top: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.band-navy .text-link { color: var(--brand-paper); }
@media (min-width: 1000px) {
  .hero { padding-top: 72px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; }
}
.page-hero .wrap > * + * { margin-top: 16px; }
.page-hero-full { min-height: 60vh; display: flex; align-items: center; }

.ticks { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; line-height: 20px; }
.ticks li { display: inline-flex; align-items: center; gap: 6px; }
.ticks .icon { color: var(--data-ink); }

/* Video */
.video-frame {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--radius-lg); border: 1px solid var(--line); background: #0f1829;
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
.video figcaption { margin-top: 8px; color: var(--ink-muted); }
/* Hero video sits in a flat paper-white frame, so it reads as a placed element on the navy. */
.hero-media .video-frame {
  border: 10px solid var(--brand-paper); border-radius: 16px;
  background: var(--brand-paper);
}
.hero-media .video-frame video { border-radius: 6px; }
.hero-media .video figcaption { margin-top: 12px; }

/* Cards */
.card {
  background: var(--surface-raised); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 16px;
}
@media (min-width: 768px) { .card { padding: 24px; } }
.band-raised .card { background: var(--surface); }
.card > * + * { margin-top: 12px; }
.card-accent { border-color: var(--data); box-shadow: inset 4px 0 0 var(--data); }

/* Problem list */
.problem-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.problem-list .card { display: flex; gap: 16px; align-items: flex-start; }
.problem-list .card > * + * { margin-top: 0; }
.problem-list h3 { font: 700 18px/24px var(--font-sans); margin: 4px 0 6px; }
.problem-list p { color: var(--ink-muted); }
.problem-list .label { color: var(--action-ink); }
/* The problem copy is short and the card list is long: keep the copy in view while the cards scroll past. */
@media (min-width: 960px) {
  .split-sticky > div:first-child { position: sticky; top: 104px; }
}
.problem-list .card { border-left: 3px solid var(--action); }

/* Icon tiles. Warm (orange) marks a problem, cool (cyan) marks what we do about it. */
.icon-tile {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-md);
}
.icon-tile-warm { background: color-mix(in srgb, var(--action) 16%, transparent); color: var(--action-ink); }
.icon-tile-cool { background: color-mix(in srgb, var(--data) 16%, transparent); color: var(--data-ink); }

/* Steps */
.steps { list-style: none; padding: 0; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 24px;
}
.step > * + * { margin-top: 12px; }
.step h3 { font: 700 22px/28px var(--font-sans); }
.step p { color: var(--ink-muted); }
.step .icon { color: var(--ink); }
.step-num {
  flex: none;
  font: 600 14px/1 var(--font-mono); color: var(--data-ink);
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border: 1px solid var(--data); border-radius: var(--radius-sm);
}
.step .step-num { position: absolute; top: 24px; right: 24px; }
.step:last-child { border-color: var(--action); }
.step:last-child .step-num { border-color: var(--action); color: var(--action-ink); }

/* Checklists */
.checklist { list-style: none; padding: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .icon { color: var(--data-ink); margin-top: 3px; }
.checklist-x .icon { color: var(--ink-muted); }
.fit .heading + .checklist { margin-top: 12px; }
.fit .checklist + .heading { margin-top: 24px; }

/* Opportunity card */
.opp-card {
  background: var(--surface-raised); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 24px; display: grid; gap: 16px;
  max-width: 520px;
}
.band-raised .opp-card { background: var(--surface); }
.opp-address { color: var(--ink); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.opp-score { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px 16px; }
.opp-score .score { grid-column: 2; grid-row: 1 / span 2; }
.scorebar { grid-column: 1; height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.scorebar > span { display: block; height: 100%; background: var(--data); border-radius: inherit; }
.badges { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font: 600 13px/18px var(--font-sans); padding: 4px 8px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink);
}
.badge-alert { background: var(--alert); color: var(--on-alert); border-color: var(--alert); }
.opp-why > * + * { margin-top: 4px; }
.opp-foot { display: grid; gap: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.opp-foot .label { margin-bottom: 6px; }
@media (min-width: 520px) { .opp-foot { grid-template-columns: auto 1fr; gap: 24px; } }
.tag {
  display: inline-block; background: var(--brand-navy); color: var(--brand-paper);
  font: 600 14px/20px var(--font-sans); padding: 4px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}
.opp-opener p.small { color: var(--ink-muted); font-style: italic; }
.card-note { margin-top: 8px; }

/* Stats */
.stats { display: grid; gap: 16px; }
@media (min-width: 800px) { .stats { grid-template-columns: 1fr 1fr 2fr; } }
.stat {
  background: var(--surface-raised); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 24px; display: flex; flex-direction: column; gap: 8px;
}
.stat-wide { justify-content: center; }
.stat-num { font: 600 clamp(40px, 5vw, 56px)/1 var(--font-mono); color: var(--data-ink); }
.stat-num-ink { font-size: 40px; }
.stat-label { color: var(--ink-muted); }

/* Myth vs truth */
.myth { display: grid; gap: 16px; align-items: stretch; }
@media (min-width: 800px) { .myth { grid-template-columns: 1fr 1.7fr; } }
.myth-think {
  border: 1px dashed var(--line); border-radius: var(--radius-md); padding: 24px;
  display: grid; align-content: center; gap: 12px;
}
.myth-quote { font: 600 18px/26px var(--font-sans); color: var(--ink-muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.myth-true {
  border: 2px solid var(--data); border-radius: var(--radius-lg); padding: 28px;
  background: color-mix(in srgb, var(--data) 8%, var(--surface-raised));
  display: grid; gap: 16px;
}
.myth-true .label { color: var(--data-ink); }
.myth-true > p:last-child { font-size: 18px; line-height: 28px; }
.myth-lock { display: flex; align-items: center; gap: 16px; }
.myth-lock .icon-tile { width: 56px; height: 56px; }
.myth-lock .icon { width: 30px; height: 30px; }
.myth-lock p { display: grid; gap: 4px; }
.myth-num { font: 600 clamp(40px, 5vw, 56px)/1 var(--font-mono); color: var(--data-ink); }
.myth-num-label { font: 700 20px/26px var(--font-sans); }

/* Offer */
.offer { display: grid; gap: 40px; align-items: start; }
.offer > div > * + * { margin-top: 24px; }
@media (min-width: 960px) { .offer { grid-template-columns: 1.4fr 1fr; gap: 64px; } }
.stack { list-style: none; padding: 0; display: grid; gap: 20px; }
.stack li { display: flex; gap: 16px; align-items: flex-start; }
.stack .icon { color: var(--data-ink); margin-top: 2px; }
.stack h3 { font: 700 18px/24px var(--font-sans); }
.stack p { color: var(--ink-muted); }
.side-card {
  background: var(--brand-navy); color: var(--brand-paper);
  border-radius: var(--radius-lg); padding: 32px; display: grid; gap: 16px; align-content: start;
  --line: #34476b; --ink: #f5f4f0; --ink-muted: #b4bcc9; --data-ink: #1fb6d9; --focus-ring: #1fb6d9; --surface: #1c2a42;
}
@media (min-width: 960px) { .offer .side-card { position: sticky; top: 96px; } }
.side-card .label, .side-card .muted { color: #b4bcc9; }
.side-card .checklist .icon { color: var(--brand-cyan); }

/* Storm, signals */
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); font-size: 14px; line-height: 20px;
}
.combo { list-style: none; padding: 0; display: grid; gap: 8px; }
.combo li { padding: 10px 14px; border-left: 3px solid var(--data); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.split > div > .heading { margin-top: 32px; }

.approaches { display: grid; gap: 16px; }
.approaches > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: start; }
.approaches dd { margin: 0; color: var(--ink-muted); }

.compare-cols { display: grid; gap: 16px; }
@media (min-width: 800px) { .compare-cols { grid-template-columns: 1fr 1fr; } }
.numbered { padding-left: 22px; display: grid; gap: 8px; }
.numbered li::marker { font-family: var(--font-mono); color: var(--ink-muted); }

/* Comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-raised); }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th { font: 600 12px/16px var(--font-sans); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); }
.compare thead th:last-child { color: var(--data-ink); }
.compare tbody th { font-weight: 700; width: 26%; }
.compare td { width: 37%; }
.compare td .icon { display: inline-block; vertical-align: -3px; margin-right: 8px; }
.compare td:last-child { background: color-mix(in srgb, var(--data) 7%, transparent); font-weight: 600; }

.math { display: grid; gap: 16px; }
@media (min-width: 800px) { .math { grid-template-columns: repeat(3, 1fr); } }
.math sup a { text-decoration: none; font-size: 12px; }
.sources { padding-left: 20px; display: grid; gap: 4px; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font: 700 18px/26px var(--font-sans); }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 26px; width: 10px; height: 10px;
  border-right: 2px solid var(--ink-muted); border-bottom: 2px solid var(--ink-muted);
  transform: rotate(45deg); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 30px; }
.faq-a { padding: 0 0 20px; color: var(--ink-muted); max-width: 70ch; }

/* CTA band */
.cta-inner { display: grid; gap: 24px; align-items: center; }
.cta-inner > div > * + * { margin-top: 16px; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1fr auto; gap: 48px; } }

/* Book a call: qualifying form */
.js-only { display: none !important; }
.js .js-only { display: flex !important; }
.book-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .book-grid { grid-template-columns: 1.4fr 1fr; gap: 64px; } }
.qform { gap: 0; }
.qstep { display: grid; gap: 24px; }
.qstep + .qstep { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--line); }
.js .qstep { display: none; }
.js .qstep.is-current { display: grid; }
.js .qstep + .qstep { margin-top: 0; padding-top: 0; border-top: 0; }
.qprogress { flex-direction: column; gap: 8px; margin-bottom: 24px; }
.qprogress .label { font-family: var(--font-mono); letter-spacing: 0.04em; color: var(--data-ink); }
.qbar { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.qbar > span { display: block; height: 100%; width: 25%; background: var(--data); border-radius: inherit; transition: width 0.25s ease; }
.field-group { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 12px; }
.field-group legend { font-weight: 600; font-size: 15px; padding: 0; margin-bottom: 12px; }
.field-group legend.heading { font: 700 22px/28px var(--font-sans); }
.field .heading { font: 700 22px/28px var(--font-sans); }
.choices { display: grid; gap: 8px; }
@media (min-width: 560px) {
  .choices-2 { grid-template-columns: 1fr 1fr; }
  .choices-3 { grid-template-columns: repeat(3, 1fr); }
}
.choice {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  min-height: 52px; padding: 12px 16px;
  border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface);
  font-weight: 600; transition: border-color 0.15s ease, background-color 0.15s ease;
}
.choice:hover { border-color: var(--ink-muted); }
.choice input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--brand-navy); }
.choice:has(input:checked) { border-color: var(--data); box-shadow: inset 0 0 0 1px var(--data); background: color-mix(in srgb, var(--data) 8%, var(--surface)); }
.choice:has(input:focus-visible) { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.choice input:focus-visible { outline: none; box-shadow: none; }
.field-group[aria-invalid="true"] .choice { border-color: var(--action-ink); }
.qerror:empty { display: none; }
.qerror { font-weight: 600; color: var(--action-ink); }
.qnav { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.qnav .btn:last-child { min-width: 160px; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--surface); border-color: var(--ink-muted); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.book-aside > * + * { margin-top: 24px; }
.fit-note > * + * { margin-top: 6px; }
.reason > * + * { margin-top: 16px; }
.scheduler { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.scheduler iframe { display: block; width: 100%; height: 760px; border: 0; }

/* Contact */
.contact-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.3fr 1fr; gap: 64px; } }
.form { display: grid; gap: 20px; }
.form > * + * { margin-top: 0; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; gap: 20px; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font-weight: 600; font-size: 15px; }
.optional { font-weight: 400; color: var(--ink-muted); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 16px/24px var(--font-sans); color: var(--ink);
  background: var(--surface); border: 1px solid var(--ink-muted); border-radius: var(--radius-sm);
  padding: 11px 12px; min-height: 48px;
}
.field textarea { resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 0; }
.field [aria-invalid="true"] { border-color: var(--action-ink); box-shadow: inset 0 0 0 1px var(--action-ink); }
.hint { color: var(--ink-muted); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status:empty { display: none; }
.form-status { font-weight: 600; padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.form-status.is-error { border-color: var(--action-ink); color: var(--action-ink); }
.contact-aside > * + * { margin-top: 24px; }
.contact-aside .side-card .btn { justify-self: start; }
.next-steps { list-style: none; padding: 0; display: grid; gap: 20px; }
.next-steps li { display: flex; gap: 16px; align-items: flex-start; }
.next-steps h3 { font: 700 18px/24px var(--font-sans); }
.next-steps p { color: var(--ink-muted); }
.ticks-ink .icon { color: var(--data-ink); }
.contact-aside p .icon { display: inline-block; vertical-align: -3px; }

/* Prose */
.prose > * + * { margin-top: 16px; }
.prose .heading { margin-top: 32px; }

/* Footer */
.site-footer { padding: 48px 0 96px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1fr auto; } .site-footer { padding-bottom: 32px; } }
.footer-tag { margin-top: 12px; color: var(--ink-muted); max-width: 340px; }
.footer-links { list-style: none; padding: 0; display: grid; gap: 8px; }
@media (min-width: 800px) { .footer-links { grid-template-columns: repeat(2, auto); gap: 8px 32px; } }
.footer-links a { color: var(--ink); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-legal {
  margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; color: var(--ink-muted);
}
.footer-legal a { color: var(--ink); }

/* Mobile sticky CTA: appears after the hero scrolls away. */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: var(--brand-navy); border-top: 1px solid #34476b;
  transform: translateY(110%); transition: transform 0.25s ease;
}
.sticky-cta .btn { width: 100%; }
.sticky-cta.show { transform: none; }
@media (min-width: 900px) { .sticky-cta { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Palette rhythm: cyan icon tiles for what we do, a deeper navy for the proof band. */
.step .icon, .stack .icon {
  width: 44px; height: 44px; padding: 10px; border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--data) 16%, transparent); color: var(--data-ink);
}
.stack .icon { margin-top: 0; }
.step { border-top: 3px solid var(--data); }
.step:last-child { border-top-color: var(--action); }
.step:last-child .icon { background: color-mix(in srgb, var(--action) 16%, transparent); color: var(--action-ink); }
.band-deep { --surface-raised: #1f2f4c; background: #131d31; }
.band-deep .stat { border-top: 3px solid var(--data); }

/* Versus: the old way is quiet and dashed, our way is outlined in cyan and wider. Shared with the home myth block. */
.versus { display: grid; gap: 16px; align-items: stretch; }
@media (min-width: 800px) { .versus { grid-template-columns: 1fr 1.4fr; } }
.versus-old { border: 1px dashed var(--line); border-radius: var(--radius-md); padding: 24px; display: grid; gap: 12px; align-content: start; }
.versus-old .numbered li { color: var(--ink-muted); }
.versus-new {
  border: 2px solid var(--data); border-radius: var(--radius-lg); padding: 28px;
  background: color-mix(in srgb, var(--data) 8%, var(--surface-raised));
  display: grid; gap: 12px; align-content: start;
}
.versus-new .label { color: var(--data-ink); }
.versus-new .numbered { font-weight: 600; }
.versus-new .numbered li::marker { color: var(--data-ink); }
.versus-count { font: 800 28px/30px var(--font-display); }
.versus-old .versus-count { color: var(--ink-muted); }
.versus-you span {
  display: inline-block; background: var(--action); color: var(--on-action);
  padding: 2px 10px; border-radius: var(--radius-sm); font-weight: 700;
}

/* Signals grouped by where they come from, instead of pills. */
.signal-groups { display: grid; gap: 12px; }
@media (min-width: 560px) { .signal-groups { grid-template-columns: 1fr 1fr; } }
.signal-group {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 20px; display: grid; gap: 12px; align-content: start;
}
.signal-group h3 { font: 700 18px/24px var(--font-sans); }
.signal-group ul { list-style: none; padding: 0; }
.signal-group li { padding: 7px 0; border-top: 1px solid var(--line); color: var(--ink-muted); font-size: 15px; line-height: 22px; }
.combo li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-weight: 600; }
.combo b { font: 600 16px/1 var(--font-mono); color: var(--data-ink); }
.combo-inline li { background: transparent; border: 0; padding: 0; }
.combo-inline span { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 10px; font-size: 14px; }

/* Score section: factors list and the score anatomy card. */
.factors { list-style: none; padding: 0; display: grid; gap: 16px; margin-top: 16px; }
.factors li { display: flex; gap: 14px; align-items: flex-start; }
.factors h4 { font: 700 17px/24px var(--font-sans); margin: 0 0 2px; }
.factors p { color: var(--ink-muted); }
.anatomy {
  border: 2px solid var(--data); border-radius: var(--radius-lg); padding: 28px;
  background: var(--surface-raised); display: grid; gap: 20px;
}
.anatomy .label { margin-bottom: 8px; }
.anatomy .data { color: var(--ink-muted); margin-top: -12px; }
.scale { display: grid; gap: 8px; }
.scale-num { font: 600 64px/1 var(--font-mono); color: var(--data-ink); }
.scale-bar { height: 12px; background: var(--line); border-radius: 999px; overflow: hidden; }
.scale-bar > span { display: block; height: 100%; background: var(--data); }
.scale-ticks { display: flex; justify-content: space-between; color: var(--ink-muted); font-size: 12px; }
.anatomy .tag { margin-right: 6px; }
.anatomy-not { border: 1px dashed var(--line); border-radius: var(--radius-md); padding: 16px; }
.anatomy-not p:last-child { color: var(--ink-muted); }
.approaches-title { margin-top: 48px; }
.approach-cards { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 800px) { .approach-cards { grid-template-columns: repeat(3, 1fr); } }
.approach-cards p { color: var(--ink-muted); }

/* Details: four same-shaped cards so storm, quality, canvassing and postcards read as one set. */
.details { display: grid; gap: 16px; }
@media (min-width: 800px) { .details { grid-template-columns: 1fr 1fr; } }
.detail { display: grid; gap: 12px; align-content: start; }
.detail > * + * { margin-top: 0; }
.detail-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.detail h3 { font: 700 20px/26px var(--font-sans); }
.detail p:not(.label) { color: var(--ink-muted); }
.icon-tile-alert { background: color-mix(in srgb, var(--alert) 18%, transparent); color: var(--alert); }

/* Compare: the chart sits in the page intro, and our column is filled and outlined. */
.compare-title { margin-top: 48px !important; }
.page-hero .table-wrap { margin-top: 20px; }
.compare thead th:last-child { background: var(--brand-cyan); color: var(--on-action); }
.compare td:nth-child(2) { color: var(--ink-muted); }
.compare td:last-child {
  background: color-mix(in srgb, var(--data) 14%, var(--surface-raised));
  border-left: 2px solid var(--data); border-right: 2px solid var(--data);
  font-weight: 600; color: var(--ink);
}
.compare thead th:last-child { border-left: 2px solid var(--data); border-right: 2px solid var(--data); }
.compare tbody tr:last-child td:last-child { border-bottom: 2px solid var(--data); }

/* CTA band: orange ground with navy type, so the last section never blends into the navy above it. */
.cta-band {
  background: var(--brand-orange);
  --ink: #1c2a42; --ink-muted: #1c2a42; --data-ink: #1c2a42; --focus-ring: #1c2a42; --line: #c87420;
  color: var(--ink); border-top: 0 !important;
}
.cta-band .lead { color: var(--ink); opacity: 1; }
.cta-band .btn { background: var(--brand-navy); color: var(--brand-paper); }
.cta-band .btn:hover { background: #26375a; }
.split > .signal-groups > * + *, .split > .anatomy > * + * { margin-top: 0; }
