/* proxo.ai — every hex here is a value in docs/brand/tokens.json (pinned by
   tests/unit/test_marketing_site_build.py). Components use ROLES, never hexes. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/PlusJakartaSans-Variable.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --blue: #13212D; --blue-500: #253049; --blue-400: #333E5C; --blue-300: #405072;
  --blue-200: #6F84A3; --blue-150: #B3CBE2; --blue-100: #CEE4F7; --blue-50: #F3F8FD; --blue-950: #0C151D;
  --warning: #FFC107;

  --ink: #13212D; --muted: #383838; --faint: #666666;
  --canvas: #FCFCFC; --surface: #FFFFFF; --surface-elevated: #F6F6F6;
  --line: #7A7A7A; --line-subtle: #D9D9D9;
  --accent: #405072; --on-accent: #FFFFFF; --accent-soft: #CEE4F7;

  /* the navy band is navy in both themes */
  --band: var(--blue); --band-ink: #FFFFFF; --band-muted: #B4B4B4; --band-line: #333E5C;
  --band-raised: #253049; --band-accent: #CEE4F7; --band-on-accent: #13212D;

  --radius: 20px; --radius-sm: 12px;
  --wrap: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #FFFFFF; --muted: #B4B4B4; --faint: #A3A3A3;
    --canvas: #13212D; --surface: #13212D; --surface-elevated: #253049;
    --line: #6F84A3; --line-subtle: #333E5C;
    --accent: #CEE4F7; --on-accent: #13212D; --accent-soft: #405072;
    --band: #0C151D;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font: 400 17px/1.6 "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; line-height: 1.08; font-weight: 650; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.band :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--band-accent); }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--surface); padding: 8px 14px; border-radius: 999px; }

/* ── buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-secondary { border-color: var(--accent); color: var(--accent); }
.band .btn-primary, .site-header .btn-primary { background: var(--band-accent); color: var(--band-on-accent); }
.band .btn-secondary { border-color: var(--band-accent); color: var(--band-ink); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.arrow::after { content: "→"; transition: transform .2s var(--ease); }
.btn:hover .arrow::after, a:hover > .arrow::after { transform: translateX(3px); }

/* ── header ──────────────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--band); color: var(--band-ink); border-bottom: 1px solid var(--band-line); }
.header-row { display: flex; align-items: center; gap: 32px; min-height: 68px; }
.brand img { height: 24px; width: auto; }
.nav-desktop { display: flex; gap: 28px; margin-right: auto; }
.nav-desktop a, .link-quiet { color: var(--band-muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav-desktop a:hover, .nav-desktop a[aria-current="page"], .link-quiet:hover { color: var(--band-ink); }
.header-cta { display: flex; align-items: center; gap: 20px; }
.nav-mobile { display: none; }

@media (max-width: 820px) {
  .nav-desktop, .header-cta { display: none; }
  .header-row { justify-content: space-between; }
  .nav-mobile { display: block; }
  .nav-mobile summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-content: center; gap: 6px; }
  .nav-mobile summary::-webkit-details-marker { display: none; }
  .nav-mobile summary span { display: block; width: 22px; height: 2px; background: var(--band-ink); border-radius: 2px; transition: transform .2s var(--ease); }
  .nav-mobile[open] summary span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-mobile[open] summary span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav-mobile nav { position: absolute; left: 0; right: 0; top: 68px; background: var(--band); border-bottom: 1px solid var(--band-line); padding: 8px 16px 20px; display: grid; gap: 4px; }
  .nav-mobile nav a:not(.btn) { padding: 12px 0; color: var(--band-ink); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--band-line); }
  .nav-mobile nav .btn { margin-top: 12px; }
}

/* ── sections ────────────────────────────────────────────────────────────── */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-tight { padding: clamp(48px, 7vw, 80px) 0; }
.band { background: var(--band); color: var(--band-ink); }
.band .lede, .band .muted { color: var(--band-muted); }
.eyebrow { font-size: 13px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 18px; }
.band .eyebrow { color: var(--blue-150); }
.display { font-size: clamp(44px, 7.4vw, 88px); font-weight: 680; letter-spacing: -0.035em; }
.h2 { font-size: clamp(32px, 4.6vw, 54px); }
.h3 { font-size: 21px; letter-spacing: -0.015em; line-height: 1.25; }
.hush { color: var(--faint); }
.band .hush { color: var(--blue-200); }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 40ch; margin-top: 24px; }
.muted { color: var(--muted); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.center { text-align: center; margin-inline: auto; }
.center .lede { margin-inline: auto; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.center .cta-row { justify-content: center; }
.fineprint { margin-top: 16px; font-size: 14px; color: var(--faint); }
.band .fineprint { color: var(--band-muted); }

/* ── hero ────────────────────────────────────────────────────────────────── */
.hero { padding: clamp(64px, 9vw, 112px) 0 0; overflow: hidden; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto; height: 900px; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--blue-300) 55%, transparent), transparent);
  opacity: .55;
}
.hero .wrap { position: relative; }
.hero-copy { max-width: 820px; }
.hero .lede { max-width: 46ch; }
.hero-stage { margin-top: clamp(56px, 8vw, 88px); position: relative; }

/* ── product mock ────────────────────────────────────────────────────────── */
.mock {
  background: var(--surface); color: var(--ink); border-radius: var(--radius) var(--radius) 0 0;
  border: 1px solid var(--line-subtle); border-bottom: 0;
  box-shadow: 0 -1px 0 color-mix(in srgb, var(--blue-100) 30%, transparent), 0 40px 120px -30px rgb(0 0 0 / .55);
  display: grid; grid-template-columns: 210px 1fr; min-height: 440px; overflow: hidden;
}
.mock-side { background: var(--surface-elevated); border-right: 1px solid var(--line-subtle); padding: 20px 14px; display: grid; align-content: start; gap: 4px; font-size: 14px; }
.mock-side img { height: 18px; width: auto; margin: 4px 8px 18px; }
.mock-side span { padding: 8px 10px; border-radius: 10px; color: var(--muted); }
.mock-side span[aria-current] { background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.mock-main { padding: 22px 26px; display: grid; gap: 18px; align-content: start; min-width: 0; }
.mock-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--faint); }
.mock-bar b { color: var(--ink); font-size: 18px; margin-right: auto; font-weight: 650; }
.mock-entity { border: 1px solid var(--line-subtle); border-radius: 999px; padding: 4px 12px; color: var(--muted); }
.mock-entity.is-active { background: var(--ink); border-color: var(--ink); color: var(--canvas); }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mock-stat { border: 1px solid var(--line-subtle); border-radius: var(--radius-sm); padding: 14px 16px; display: grid; gap: 4px; }
.mock-stat span { font-size: 13px; color: var(--faint); }
.mock-stat strong { font-size: clamp(18px, 2.2vw, 26px); font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.mock-stat-net { background: var(--blue-50); }
@media (prefers-color-scheme: dark) { .mock-stat-net { background: var(--blue-500); } }
.mock-panel { border: 1px solid var(--line-subtle); border-radius: var(--radius-sm); overflow: hidden; }
.mock-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; font-weight: 600; font-size: 14px; border-bottom: 1px solid var(--line-subtle); }
.mock-badge { background: var(--accent); color: var(--on-accent); border-radius: 999px; min-width: 24px; text-align: center; font-size: 12px; padding: 2px 8px; }
.mock-list { list-style: none; margin: 0; padding: 0; }
.mock-row { display: grid; grid-template-columns: 1fr auto auto auto; gap: 14px; align-items: center; padding: 11px 16px; font-size: 14px; border-top: 1px solid var(--line-subtle); }
.mock-row:first-child { border-top: 0; }
.mock-vendor { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-tag { color: var(--faint); font-size: 13px; }
.mock-amt { font-variant-numeric: tabular-nums; font-weight: 600; }
.chip { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 10px; }
.chip-pending { background: var(--warning); color: var(--blue); }
.chip-approved { background: var(--accent-soft); color: var(--ink); }

@media (max-width: 820px) {
  .mock { grid-template-columns: 1fr; min-height: 0; }
  .mock-side { display: none; }
  .mock-main { padding: 16px; }
  .mock-row { grid-template-columns: 1fr auto; }
  .mock-row .mock-tag, .mock-row .chip { display: none; }
}
@media (max-width: 520px) {
  .mock-stats { grid-template-columns: 1fr 1fr; }
  .mock-stat-net { grid-column: 1 / -1; }
}

/* ── interactive demo host (frontend/src/demo, in a shadow root) ────────── */
.demo-host { position: relative; }
.demo-host[data-mounting]:not([data-ready]) { visibility: hidden; }
.demo-host[data-ready] {
  height: 640px; overflow: hidden; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line-subtle);
  box-shadow: 0 40px 120px -30px rgb(0 0 0 / .55);
}
.demo-full[data-ready] { height: min(820px, calc(100vh - 140px)); min-height: 600px; box-shadow: 0 30px 80px -40px rgb(0 0 0 / .35); }
.hero-stage .mock { border-radius: var(--radius); border-bottom: 1px solid var(--line-subtle); }
.demo-caption { padding: 20px 0 48px; text-align: center; color: var(--band-muted); font-size: 15px; }
.demo-caption a { color: var(--band-accent); font-weight: 600; text-decoration: none; margin-left: 6px; white-space: nowrap; }
.demo-page-hero { padding-bottom: 32px; }
.demo-stage { padding-bottom: clamp(56px, 8vw, 96px); }
.demo-tips { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; color: var(--muted); font-size: 15px; }
.demo-tips b { color: var(--ink); }
@media (max-width: 820px) {
  .demo-host[data-ready], .demo-full[data-ready] { height: 680px; }
  .demo-tips { grid-template-columns: 1fr; }
}

/* ── logo strip ──────────────────────────────────────────────────────────── */
.works-with { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 40px; color: var(--faint); font-size: 15px; }
.works-with strong { color: var(--ink); font-weight: 600; font-size: 17px; }

/* ── pillars ─────────────────────────────────────────────────────────────── */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-subtle); border: 1px solid var(--line-subtle); border-radius: var(--radius); overflow: hidden; }
.pillar { background: var(--surface); padding: clamp(24px, 3vw, 36px); display: grid; gap: 12px; align-content: start; }
.pillar .num { font-size: 13px; font-weight: 650; color: var(--accent); font-variant-numeric: tabular-nums; }
.pillar p { color: var(--muted); }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .pillars { grid-template-columns: 1fr; } }

/* ── split feature ───────────────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.split-rev .split-copy { order: 2; }
.split-copy .lede { max-width: 38ch; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--muted); }
.ticks li::before { content: ""; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%; background: var(--accent-soft) center / 10px no-repeat; box-shadow: inset 0 0 0 5px var(--accent-soft), inset 0 0 0 9px var(--accent); }
.band .ticks li { color: var(--band-muted); }
.band .ticks li::before { background: var(--band-raised); box-shadow: inset 0 0 0 5px var(--band-raised), inset 0 0 0 9px var(--band-accent); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split-rev .split-copy { order: 0; } }

.card { background: var(--surface); border: 1px solid var(--line-subtle); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.band .card { background: var(--band-raised); border-color: var(--band-line); color: var(--band-ink); }

/* approval scene */
.approval { display: grid; gap: 18px; }
.approval-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.approval-row .who { font-weight: 600; font-size: 19px; margin-right: auto; }
.approval-row .amt { font-size: 28px; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.approval-meta { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 15px; padding: 16px 0; border-block: 1px solid var(--band-line); }
.approval-meta dt { color: var(--band-muted); }
.approval-meta dd { margin: 0; }
.approval-actions { display: flex; gap: 10px; }
.state { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; border-radius: 999px; padding: 6px 14px; background: var(--warning); color: var(--blue); }
.state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.approval[data-state="approved"] .state { background: var(--band-accent); }
.approval[data-state="approved"] .state-label::after { content: "Approved · ready to pay"; }
.approval:not([data-state="approved"]) .state-label::after { content: "Pending review"; }

/* entity chart */
.entity-chart { width: 100%; height: auto; overflow: visible; }
.ec-label { fill: var(--ink); font-size: 17px; font-weight: 600; }
.ec-value { fill: var(--muted); font-size: 17px; font-variant-numeric: tabular-nums; }
.ec-approved { fill: var(--accent); }
.ec-pending { fill: var(--blue-150); }
@media (prefers-color-scheme: dark) { .ec-pending { fill: var(--blue-300); } .legend span + span::before { background: var(--blue-300); } }
.legend { display: flex; gap: 20px; margin-top: 20px; font-size: 14px; color: var(--faint); }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; background: var(--accent); }
.legend span + span::before { background: var(--blue-150); }

/* statement scan */
.scan { display: grid; gap: 0; font-size: 14px; }
.scan-doc { border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 18px; display: flex; gap: 14px; align-items: center; color: var(--muted); }
.scan-doc b { color: var(--ink); }
.scan-doc i { width: 34px; height: 42px; border-radius: 6px; border: 1.5px solid var(--line); position: relative; flex: none; }
.scan-doc i::after { content: ""; position: absolute; inset: 10px 7px auto; height: 14px; background: repeating-linear-gradient(var(--line-subtle) 0 2px, transparent 2px 5px); }
.scan-arrow { justify-self: center; height: 34px; width: 2px; background: linear-gradient(var(--line-subtle), var(--accent)); margin: 4px 0; }
.scan-rows { border: 1px solid var(--line-subtle); border-radius: var(--radius-sm); overflow: hidden; }
.scan-rows div { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; padding: 11px 16px; border-top: 1px solid var(--line-subtle); font-variant-numeric: tabular-nums; }
.scan-rows div:first-child { border-top: 0; color: var(--faint); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.scan-rows .conf { color: var(--accent); font-weight: 600; }

/* ── pricing ─────────────────────────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { text-align: left; display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 14px; border: 1px solid var(--line-subtle); border-radius: var(--radius); background: var(--surface); padding: 30px; }
.plan-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plan h3 { font-size: 19px; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price strong { font-size: 46px; font-weight: 680; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price span { color: var(--faint); }
.plan .muted { font-size: 15px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; }
.plan li { padding-left: 26px; position: relative; color: var(--muted); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.plan .btn { width: 100%; }
.annual { font-size: 14px; color: var(--faint); }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

.billing-toggle { display: none; padding: 4px; border-radius: 999px; border: 1px solid var(--line-subtle); background: var(--surface); margin-bottom: 40px; }
.billing-toggle button { border: 0; background: none; font: inherit; font-size: 15px; font-weight: 600; color: var(--muted); padding: 8px 18px; border-radius: 999px; cursor: pointer; }
.billing-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--canvas); }
.price [data-annual], [data-billing="annual"] .price [data-monthly] { display: none; }
[data-billing="annual"] .price [data-annual] { display: inline; }
.js .billing-toggle { display: inline-flex; }

.calc { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
.calc label { display: grid; gap: 12px; font-weight: 600; }
.calc label + label { margin-top: 24px; }
.calc-label { display: flex; align-items: baseline; gap: 10px; }
.calc-label small { font-weight: 400; color: var(--faint); }
.calc output { margin-left: auto; font-size: 22px; font-variant-numeric: tabular-nums; color: var(--accent); }
.calc-results { margin-top: 28px; }
.calc input[type="range"] { width: 100%; accent-color: var(--accent); }
.calc-results { display: grid; gap: 12px; }
.calc-result { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 22px; border: 1px solid var(--line-subtle); border-radius: var(--radius-sm); }
.calc-result strong { font-size: 28px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.calc-result.best { border-color: var(--accent); background: var(--blue-50); }
@media (prefers-color-scheme: dark) { .calc-result.best { background: var(--blue-500); } }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }

.compare { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 14px 12px; border-bottom: 1px solid var(--line-subtle); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { font-size: 14px; color: var(--faint); font-weight: 600; }
.compare td.yes::before { content: "✓"; color: var(--accent); font-weight: 700; }
.compare td.no::before { content: "—"; color: var(--faint); }
.table-scroll { overflow-x: auto; }

.faq { display: grid; gap: 0; border-top: 1px solid var(--line-subtle); }
.faq details { border-bottom: 1px solid var(--line-subtle); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-weight: 600; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-size: 24px; font-weight: 400; color: var(--faint); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 68ch; }

/* ── grids ───────────────────────────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.feature { display: grid; gap: 10px; align-content: start; }
.feature p { color: var(--muted); }
.band .feature p { color: var(--band-muted); }
.icon { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--ink); display: grid; place-items: center; margin-bottom: 8px; }
.band .icon { background: var(--band-raised); color: var(--band-accent); }
.icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* spec sheet */
.spec { display: grid; grid-template-columns: auto 1fr; gap: 0 24px; margin: 0; font-size: 15px; }
.spec dt, .spec dd { padding: 14px 0; border-top: 1px solid var(--band-line); }
.spec dt:first-of-type, .spec dd:first-of-type { border-top: 0; }
.spec dt { color: var(--band-muted); }
.spec dd { margin: 0; font-weight: 600; }
@media (max-width: 520px) { .spec { grid-template-columns: 1fr; } .spec dd { border-top: 0; padding-top: 0; } }

/* ── page hero (sub-pages) ───────────────────────────────────────────────── */
.page-hero { padding: clamp(64px, 9vw, 112px) 0 clamp(48px, 6vw, 72px); }
.page-hero .display { font-size: clamp(40px, 6vw, 72px); }

/* ── contact ─────────────────────────────────────────────────────────────── */
.contact-list { display: grid; gap: 16px; }
.contact-list .card { display: grid; gap: 6px; }
.contact-list a { font-weight: 600; font-size: 19px; text-decoration-color: var(--line-subtle); text-underline-offset: 4px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 10px 28px; margin: 0; }
.facts dt { color: var(--faint); }
.facts dd { margin: 0; }

/* ── prose (legal) ───────────────────────────────────────────────────────── */
.prose { max-width: 760px; font-size: 16px; line-height: 1.7; }
.prose h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 12px; }
.prose h2 { font-size: 24px; margin: 48px 0 12px; letter-spacing: -0.015em; line-height: 1.25; }
.prose h3 { font-size: 18px; margin: 32px 0 8px; letter-spacing: -0.01em; line-height: 1.3; }
.prose p, .prose ul, .prose ol, .prose table { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line-subtle); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--surface-elevated); }
.prose .align-center { text-align: center; } .prose .align-right { text-align: right; }
.prose hr { border: 0; border-top: 1px solid var(--line-subtle); margin: 40px 0; }
.prose blockquote { margin: 0 0 16px; padding-left: 16px; border-left: 3px solid var(--accent-soft); color: var(--muted); }
.doc-meta { color: var(--faint); font-size: 14px; margin-bottom: 40px; }

/* ── footer ──────────────────────────────────────────────────────────────── */
.site-footer { background: var(--band); color: var(--band-ink); padding: 64px 0 32px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand img { height: 22px; width: auto; }
.footer-brand p { color: var(--band-muted); margin-top: 16px; }
.site-footer nav { display: grid; gap: 10px; align-content: start; }
.site-footer h2 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-150); margin-bottom: 6px; font-weight: 650; }
.site-footer nav a { color: var(--band-muted); text-decoration: none; }
.site-footer nav a:hover { color: var(--band-ink); }
.footer-base { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--band-line); color: var(--band-muted); font-size: 14px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ── motion (JS-armed only: content is never hidden without JS) ──────────── */
.js .reveal { opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.in { opacity: 1; transform: none; }
.d1 { --i: 1; } .d2 { --i: 2; } .d3 { --i: 3; } .d4 { --i: 4; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
