/* =========================================================================
   PROSENTRIQ marketing site design system: "Instrument".
   Same tokens as the console (console/src/styles/tokens.css): cool mineral
   paper, deep spruce ink, and colour reserved for meaning (blue = observed,
   green = enforced, amber = waiting on a person). One typeface, Instrument
   Sans, whose width axis runs condensed for labels and data; JetBrains Mono
   only for real terminal output. The Autonomy Dial is the one bold element.
   Light by default, dark when the visitor's OS asks for it. No build step.
   ========================================================================= */

:root {
  color-scheme: light;
  --bg: #eef2f0;
  --bg-2: #e5ebe8;
  --surface: #ffffff;
  --surface-2: #f5f8f7;
  --surface-3: #e2e9e6;
  --line: #d6dfdb;
  --line-strong: #bfccc6;
  --ink: #12302b;
  --ink-2: #3d5650;
  --ink-3: #566c66;
  --accent: #2257b8;
  --accent-hover: #1a4594;
  --accent-soft: #e7eefb;
  --accent-on: #ffffff;
  --emerald: #0b7a54;
  --emerald-soft: #e3f4ec;
  --warn: #985a00;
  --warn-soft: #fbf1de;
  --danger: #b42f25;
  --danger-soft: #fbeae7;
  --level-1: #2257b8;
  --level-2: #985a00;
  --level-3: #0f8a5f;
  --level-4: #0b7a54;
  --level-5: #075c3f;
  --level-off: #d3dcd8;
  --code-bg: #0e1d19;
  --code-ink: #e2ece8;
  --code-dim: #8fa49d;
  --code-green: #5fd3a2;
  --code-blue: #9cbcf5;
  --shadow-sm: 0 1px 2px rgb(18 48 43 / 0.05), 0 1px 3px rgb(18 48 43 / 0.06);
  --shadow-md: 0 8px 24px -8px rgb(18 48 43 / 0.16), 0 2px 6px -2px rgb(18 48 43 / 0.06);
  --shadow-lg: 0 30px 60px -20px rgb(18 48 43 / 0.3), 0 8px 20px -8px rgb(18 48 43 / 0.1);

  --font-display: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --dense: 88%;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --content-width: 1180px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* Aliases kept for inline styles in older page templates. */
  --void: var(--bg);
  --surface-old: var(--surface);
  --mist: var(--ink-3);
  --faint: var(--ink-3);
  --sky: var(--accent);
  --emerald-deep: var(--emerald);
  --line-bright: var(--line-strong);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0b1714;
    --bg-2: #0f1e1a;
    --surface: #10201c;
    --surface-2: #152823;
    --surface-3: #1c322c;
    --line: #213831;
    --line-strong: #2d4740;
    --ink: #e2ece8;
    --ink-2: #a7bab4;
    --ink-3: #83978f;
    --accent: #7aa7f2;
    --accent-hover: #a3c2f6;
    --accent-soft: rgb(122 167 242 / 0.12);
    --accent-on: #0b1714;
    --emerald: #41c690;
    --emerald-soft: rgb(65 198 144 / 0.1);
    --warn: #e8a33e;
    --warn-soft: rgb(232 163 62 / 0.1);
    --danger: #f2806f;
    --danger-soft: rgb(242 128 111 / 0.1);
    --level-1: #7aa7f2;
    --level-2: #e8a33e;
    --level-3: #5fd3a2;
    --level-4: #41c690;
    --level-5: #2fa877;
    --level-off: #253e37;
    --code-bg: #08120f;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow-md: 0 8px 24px -8px rgb(0 0 0 / 0.6);
    --shadow-lg: 0 30px 60px -20px rgb(0 0 0 / 0.75), 0 0 0 1px rgb(226 236 232 / 0.04);
  }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
p a, li a, td a, .lead a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
p a:hover, li a:hover, td a:hover { text-decoration-color: currentColor; }
ul, ol { padding: 0; margin: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.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-link { position: fixed; top: 8px; left: 8px; z-index: 300; padding: 8px 14px; border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-md); transform: translateY(-160%); transition: transform 0.18s var(--ease); }
.skip-link:focus-visible { transform: none; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { margin: 0; color: var(--ink); text-wrap: balance; }
h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em; line-height: 1.04; }
h3, h4 { font-family: var(--font-body); font-weight: 600; letter-spacing: -0.012em; line-height: 1.3; }
p { margin: 0; max-width: 66ch; text-wrap: pretty; }
code, .mono { font-family: var(--font-mono); font-size: 0.88em; font-variant-ligatures: none; }
p code, li code, td code { padding: 1px 5px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--line); overflow-wrap: anywhere; }
.muted { color: var(--ink-3); }

.container { max-width: var(--content-width); margin: 0 auto; padding: 0 28px; }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.site-nav.scrolled { border-bottom-color: var(--line); }
.site-nav .container { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-body); font-weight: 650; font-size: 17px; letter-spacing: -0.015em; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.nav-links a { padding: 8px 12px; border-radius: 8px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: color 0.15s var(--ease), background-color 0.15s var(--ease); }
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active { background: var(--surface-2); }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; line-height: 1; white-space: nowrap; cursor: pointer;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease), transform 0.1s var(--ease), box-shadow 0.15s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--ink); color: var(--bg); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: color-mix(in srgb, var(--ink) 86%, var(--accent)); color: var(--bg); }
.btn-ghost { background: var(--surface); border-color: var(--line-strong); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 9px; }
.btn-block { width: 100%; }

/* ---------- Sections ---------- */
section { padding: 112px 0; }
section.tight { padding: 48px 0; }
.hairline { border-top: 1px solid var(--line); }
.section-tinted { background: var(--bg-2); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center p { margin-left: auto; margin-right: auto; }
.section-head h2 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 18px; }
.section-head p { color: var(--ink-2); font-size: 18.5px; line-height: 1.6; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature-grid { margin-top: 8px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 68px 0 72px; overflow: hidden; }
.hero .grid-2 { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 56px; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; padding: 5px 14px 5px 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); font-size: 13.5px; color: var(--ink-2); }
.hero-badge b { padding: 2px 9px; border-radius: 999px; background: var(--emerald-soft); color: var(--emerald); font-size: 12px; font-weight: 650; }
.hero-copy h1 { font-size: clamp(40px, 5.4vw, 70px); line-height: 1; letter-spacing: -0.042em; margin-bottom: 26px; }
.hero-copy p.lead { color: var(--ink-2); font-size: 19.5px; line-height: 1.6; max-width: 52ch; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--ink-3); font-size: 14px; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note svg { width: 15px; height: 15px; color: var(--emerald); }
.hero-visual { position: relative; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.observe { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.pill.ok { background: var(--emerald-soft); color: var(--emerald); border-color: transparent; }
.pill.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }

/* ---------- The instrument: the Autonomy Dial and its ledger ---------- */
.autonomy-dial { display: block; overflow: visible; }
.autonomy-dial .dial-seg { stroke: var(--level-off); transition: stroke 0.5s var(--ease); }
.autonomy-dial[data-level="1"] .dial-seg[data-on] { stroke: var(--level-1); }
.autonomy-dial[data-level="2"] .dial-seg[data-on] { stroke: var(--level-2); }
.autonomy-dial[data-level="3"] .dial-seg[data-on] { stroke: var(--level-3); }
.autonomy-dial[data-level="4"] .dial-seg[data-on] { stroke: var(--level-4); }
.autonomy-dial[data-level="5"] .dial-seg[data-on] { stroke: var(--level-5); }
.autonomy-dial .dial-figure { fill: var(--ink); font-family: var(--font-display); font-weight: 600; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }

.instrument { margin: 0; justify-self: end; width: min(100%, 460px); }
.instrument-face { display: grid; justify-items: center; padding: 8px 0 4px; }
.instrument-dial { width: min(300px, 78vw); height: auto; }
.instrument-name { margin-top: -6px; font-size: 19px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); text-align: center; max-width: none; }

.ledger { display: grid; gap: 0; margin-top: 28px; border-top: 1px solid var(--line-strong); }
.ledger-entry { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 14px; padding: 14px 2px; border-bottom: 1px solid var(--line); transition: opacity 0.45s var(--ease); }
.ledger-tag { grid-row: span 2; align-self: start; min-width: 132px; padding-top: 2px; font-size: 13px; font-weight: 600; font-stretch: var(--dense); }
.ledger-tag[data-tone="enforced"] { color: var(--emerald); }
.ledger-tag[data-tone="waiting"] { color: var(--warn); }
.ledger-tag[data-tone="observed"] { color: var(--accent); }
.ledger-what { font-family: var(--font-mono); font-size: 14px; color: var(--ink); }
.ledger-why { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.ledger-why b { font-family: var(--font-mono); font-weight: 600; font-size: 13px; color: var(--warn); }
.js .ledger-entry[hidden] { display: grid; opacity: 0; visibility: hidden; }

/* ---------- Terminal ---------- */
.terminal { background: var(--code-bg); border: 1px solid color-mix(in srgb, var(--code-ink) 10%, transparent); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); color: var(--code-ink); }
.terminal-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid rgb(255 255 255 / 0.07); background: rgb(255 255 255 / 0.03); }
.terminal-bar .dot { display: none; }
.terminal-bar .path { margin-left: 0; color: var(--code-dim); font-family: var(--font-mono); font-size: 12.5px; }
.terminal-body { padding: 22px 24px 26px; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.75; overflow-x: auto; }
.terminal-body > div { white-space: pre-wrap; overflow-wrap: anywhere; }
.terminal-body .muted { color: var(--code-dim); }
.terminal-body .sigil { color: var(--code-green); user-select: none; }
.terminal-body .out-ok { color: var(--code-green); }
.terminal-body .out-info { color: var(--code-blue); }
.terminal-cursor { display: inline-block; width: 8px; height: 16px; margin-left: 1px; background: var(--code-green); vertical-align: text-bottom; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.terminal + .terminal, .terminal + table, .terminal + p { margin-top: 18px; }
.copy-btn { margin-left: auto; padding: 4px 10px; border-radius: 6px; border: 1px solid rgb(255 255 255 / 0.14); background: transparent; color: var(--code-dim); font-size: 12px; font-family: var(--font-body); cursor: pointer; }
.copy-btn:hover { color: var(--code-ink); border-color: rgb(255 255 255 / 0.3); }

/* ---------- Trust strip ---------- */
.trust-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.trust-strip span { display: flex; align-items: flex-start; gap: 10px; padding: 20px 20px; font-size: 14px; font-weight: 500; line-height: 1.45; color: var(--ink-2); border-left: 1px solid var(--line); }
.trust-strip span:first-child { border-left: 0; }
.trust-strip svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--emerald); margin-top: 1px; }

/* ---------- Cards ---------- */
.card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-sm); color: var(--ink); }
a.card { transition: border-color 0.15s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
a.card:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--ink); }
.feature-card h3 { font-size: 18px; margin: 20px 0 10px; }
.feature-card p { color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.card ul:not(.price-list) { padding-left: 20px; list-style: disc; }
.card li { color: var(--ink-2); font-size: 15px; margin-bottom: 8px; }
.feature-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-strong); color: var(--ink); }
.feature-svg { width: 21px; height: 21px; }

/* ---------- Steps (a real sequence: the dial's levels) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.step { position: relative; padding: 28px 30px 30px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); }
.step-dial { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; font-size: 13.5px; font-weight: 600; font-stretch: var(--dense); color: var(--ink-3); }
.step-dial .autonomy-dial { width: 56px; height: auto; }
.step h3 { font-size: 19px; margin-bottom: 10px; }
.step p { color: var(--ink-2); font-size: 15.5px; line-height: 1.62; }

/* ---------- Product screenshot ---------- */
.product-shot { margin: 0; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface); padding: 6px; box-shadow: var(--shadow-lg); }
.product-shot img { width: 100%; height: auto; border-radius: 9px; }

/* ---------- Capabilities: a quiet list, not a card grid ---------- */
.capabilities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 64px; }
.capability { display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 6px 18px; align-content: start; color: var(--ink); }
.capability h3 { align-self: center; min-height: 40px; display: flex; align-items: center; }
.capability:hover { color: var(--ink); }
.capability:hover h3 { color: var(--accent); }
.capability-icon { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-strong); color: var(--ink); }
.capability h3 { font-size: 18px; transition: color 0.15s var(--ease); }
.capability p { color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.feature-svg { width: 20px; height: 20px; }

/* ---------- Architecture ---------- */
.plane-diagram { display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); align-items: stretch; }
.plane { padding: 30px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); }
.plane.plane-agent { border-top: 3px solid var(--emerald); }
.plane.plane-api { border-top: 3px solid var(--accent); }
.plane-label { font-weight: 650; font-size: 17px; margin-bottom: 18px; color: var(--ink); }
.plane-label small { display: block; margin-top: 2px; font-weight: 450; font-size: 13.5px; color: var(--ink-3); }
.plane-items { display: grid; gap: 8px; }
.plane-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: 14.5px; color: var(--ink-2); }
.plane-item::before { content: ""; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.plane-agent .plane-item::before { background: var(--emerald); }
.plane-api .plane-item::before { background: var(--accent); }
.plane-link { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--ink-3); font-size: 11.5px; font-weight: 600; text-align: center; }
.plane-link::before { content: ""; position: absolute; top: 12%; bottom: 12%; left: 50%; border-left: 1.5px dashed var(--line-strong); }
.plane-link span { position: relative; padding: 6px 4px; background: var(--bg); line-height: 1.3; }

/* ---------- Lists ---------- */
.price-list { display: grid; gap: 13px; margin: 24px 0 28px; }
.price-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--ink-2); line-height: 1.55; }
.price-list li b { color: var(--ink); font-weight: 600; }
.price-list li .tick { display: grid; place-items: center; width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; border-radius: 50%; background: var(--emerald-soft); color: var(--emerald); }
.price-list li .tick.tick-danger { background: var(--danger-soft); color: var(--danger); }
.tick-icon { width: 13px; height: 13px; display: block; }

/* ---------- Pricing ---------- */
.pricing-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.price-card { display: flex; flex-direction: column; padding: 32px; border-radius: var(--radius-xl); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); }
.price-card.featured { position: relative; border-color: var(--ink); box-shadow: var(--shadow-md); }
.price-card.featured::before { content: "Most teams"; position: absolute; top: -12px; left: 32px; padding: 3px 10px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 650; }
.price-card .tier-name { font-size: 15px; font-weight: 650; color: var(--ink); margin-bottom: 14px; }
.price-card .tier-price { font-family: var(--font-display); font-size: 52px; font-weight: 600; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; line-height: 1; margin-bottom: 12px; }
.price-card .tier-price small { font-family: var(--font-body); font-size: 15px; color: var(--ink-3); font-weight: 500; letter-spacing: 0; }
.price-card .tier-desc { color: var(--ink-2); font-size: 15px; margin-bottom: 24px; }
.price-card .btn { margin-top: auto; }
.price-card .price-list { margin-bottom: 0; }
.price-card .btn + .price-list { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }

.pricing-table, .compliance-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: var(--surface); }
.pricing-table { margin-top: 16px; }
.pricing-table th, .pricing-table td, .compliance-table th, .compliance-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pricing-table tr:last-child td, .compliance-table tr:last-child td { border-bottom: 0; }
.pricing-table th, .compliance-table th { background: var(--surface-2); color: var(--ink-3); font-weight: 600; font-size: 13px; }
.pricing-table td:first-child { color: var(--ink); font-weight: 500; }
.pricing-table td { color: var(--ink-2); }
.table-scroll { overflow-x: auto; border-radius: var(--radius-md); }

/* ---------- Calculator ---------- */
#calc.card { padding: 32px; }
.calc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.calc-grid label { display: flex; flex-direction: column; gap: 8px; color: var(--ink-2); font-size: 14px; font-weight: 500; }
.calc-grid input[type=number] { height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-family: var(--font-mono); font-size: 16px; }
.calc-grid input[type=number]:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); outline: none; }
.calc-grid .calc-check { flex-direction: row; align-items: center; gap: 10px; color: var(--ink); }
.calc-grid .calc-check input { width: 18px; height: 18px; accent-color: var(--ink); }
.calc-out { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.calc-out > div { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.calc-out .muted { font-size: 13.5px; font-weight: 500; }
.calc-out strong { font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.calc-out small { font-size: 13px; }
.calc-diff { margin: 18px 0 0; font-weight: 600; color: var(--emerald); min-height: 1.6em; }

/* ---------- FAQ ---------- */
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 2px; font-size: 17px; font-weight: 600; cursor: pointer; list-style: none; border-radius: 6px; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q::marker { content: ""; }
.faq-q:hover { color: var(--accent); }
.faq-q .chev { display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; background: var(--surface-2); color: var(--ink-3); transition: transform 0.25s var(--ease); }
.faq-item[open] .faq-q .chev { transform: rotate(180deg); }
.chev-icon { width: 16px; height: 16px; }
.faq-a { padding: 0 2px 24px; color: var(--ink-2); font-size: 16px; max-width: 70ch; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; padding: 72px 56px; border-radius: 20px; background: #12302b; color: #e2ece8; text-align: left; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 56px; align-items: end; }
.cta-band > * { position: relative; }
.cta-band h2 { color: #f5f8f7; font-size: clamp(32px, 4.2vw, 52px); margin: 0; }
.cta-band p { color: #a7bab4; font-size: 18px; margin: 0; }
.cta-band .btn-primary { background: #f5f8f7; color: #12302b; }
.cta-band .btn-primary:hover { background: #ffffff; color: #12302b; }
.cta-band .cta-copy { display: grid; gap: 16px; }
.cta-band .cta-act { display: grid; gap: 14px; }
@media (prefers-color-scheme: dark) { .cta-band { background: #152823; border: 1px solid #2d4740; } }
.signup-form-row { display: flex; gap: 10px; width: 100%; }
.signup-form-row input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border-radius: 10px; border: 1px solid rgb(226 236 232 / 0.2); background: rgb(226 236 232 / 0.06); color: #f5f8f7; font-family: inherit; font-size: 16px; }
.signup-form-row input::placeholder { color: #8fa49d; }
.signup-form-row input:focus { border-color: #9cbcf5; outline: none; box-shadow: 0 0 0 3px rgb(156 188 245 / 0.28); }
.signup-form-row .btn { height: 48px; }
.signup-form { width: 100%; }
/* Inline validation on the dark band: the site's dark-surface danger tone
   (5.5:1 on the band, 5.9:1 in dark mode), on the border, ring and message.
   The message slot stays in the DOM (aria-live) and takes no space when empty. */
.signup-form-row input[aria-invalid="true"] { border-color: #f2806f; }
.signup-form-row input[aria-invalid="true"]:focus { border-color: #f2806f; box-shadow: 0 0 0 3px rgb(242 128 111 / 0.28); }
.cta-band .signup-error { margin: 0; font-size: 14.5px; line-height: 1.45; color: #f2806f; }
.cta-band .signup-error:not(:empty) { margin-top: 10px; display: flex; gap: 8px; align-items: baseline; }
.cta-band .signup-error:not(:empty)::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; transform: translateY(-2px); }
.cta-fine { font-size: 13.5px !important; color: #8fa49d !important; }
.cta-fine a { color: #cfdcd7; }

/* ---------- Counters (Immunity) ---------- */
.counters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.counter { padding: 26px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); }
.counter strong { display: block; margin-bottom: 6px; font-family: var(--font-display); font-size: 42px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; color: var(--ink); font-variant-numeric: tabular-nums; }
.counter span { color: var(--ink-3); font-size: 14px; }
.counter.loading strong { color: var(--ink-3); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 96px 0 56px; border-bottom: 1px solid var(--line); background: var(--bg); }
.page-hero h1 { font-size: clamp(38px, 5vw, 60px); margin-bottom: 20px; max-width: 20ch; letter-spacing: -0.028em; }
.page-hero p.lead { color: var(--ink-2); font-size: 19.5px; max-width: 62ch; line-height: 1.6; }

/* ---------- Legal ---------- */
.legal-doc h2 { font-family: var(--font-body); font-weight: 650; font-size: 21px; letter-spacing: -0.012em; margin: 48px 0 14px; scroll-margin-top: 90px; }
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc h3 { font-size: 17px; margin: 28px 0 10px; }
.legal-doc p, .legal-doc li { color: var(--ink-2); font-size: 16px; line-height: 1.75; max-width: 72ch; margin-bottom: 14px; }
.legal-doc ul, .legal-doc ol { margin: 0 0 14px; padding-left: 22px; list-style: disc; }
.legal-doc ol { list-style: decimal; }
.legal-doc li { margin-bottom: 8px; }
.legal-doc strong { color: var(--ink); }
.legal-meta { padding: 14px 18px; margin-bottom: 40px; border-radius: var(--radius-md); background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-3); font-size: 14px; max-width: none !important; }
.legal-nav { display: flex; gap: 4px; margin-bottom: 32px; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); width: fit-content; max-width: 100%; overflow-x: auto; }
.legal-nav a { padding: 7px 14px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.legal-nav a:hover { color: var(--ink); }
.legal-nav a.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

/* ---------- Footer ---------- */
footer.site-footer { padding: 72px 0 36px; border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); gap: 32px; margin-bottom: 56px; }
.footer-col h4 { margin-bottom: 16px; font-size: 13px; font-weight: 650; color: var(--ink); }
.footer-col a { display: block; width: fit-content; margin-bottom: 11px; font-size: 14.5px; color: var(--ink-2); }
.footer-col a:hover { color: var(--ink); }
.footer-brand p { margin-top: 16px; color: var(--ink-3); font-size: 14.5px; max-width: 34ch; }
.footer-status { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; color: var(--ink-2); }
.footer-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 3px var(--emerald-soft); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13.5px; }
.footer-bottom a { color: var(--ink-3); }
.footer-bottom a:hover { color: var(--ink); }
.footer-legal-links { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 20px; }
.link-button { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.link-button:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Cookie banner ---------- */
#cookie-banner { position: fixed; left: 50%; bottom: 14px; z-index: 200; display: none; align-items: center; gap: 12px 24px; width: min(980px, calc(100vw - 28px)); padding: 10px 12px 10px 20px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); box-shadow: var(--shadow-lg); transform: translateX(-50%); animation: rise 0.35s var(--ease); }
#cookie-banner.visible { display: flex; }
#cookie-banner h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
#cookie-banner p { flex: 1; font-size: 14px; line-height: 1.45; color: var(--ink-2); margin: 0; max-width: none; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
@keyframes rise { from { opacity: 0; } }

/* ---------- 404 ---------- */
.notfound { padding: 140px 0; text-align: center; }
.notfound .code { display: inline-block; margin-bottom: 20px; padding: 4px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-family: var(--font-mono); font-size: 13px; color: var(--ink-3); }
.notfound h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 16px; }
.notfound p { margin: 0 auto 32px; color: var(--ink-2); font-size: 18px; }

/* ---------- Reveal on scroll (progressive: content is visible without JS) ---------- */
/* Removed: per-section fade-ins. The hero dial is the page's one moment of motion. */

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .trust-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trust-strip span:nth-child(4) { border-left: 0; }
  .trust-strip span:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 960px) {
  section { padding: 80px 0; }
  .hero { padding: 56px 0 72px; }
  .grid-2, .hero .grid-2 { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .grid-3, .steps, .pricing-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .plane-diagram { grid-template-columns: minmax(0, 1fr); }
  .plane-link { min-height: 56px; }
  .plane-link::before { top: 0; bottom: 0; }
  .instrument { justify-self: stretch; width: 100%; }
  .capabilities { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px 20px 20px; margin: 0; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
  }
  .nav-links.mobile-open { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 16px; }
  .nav-links a.active::after { display: none; }
  .nav-links a.active { background: var(--surface-2); }
  .nav-cta { margin-left: auto; }
  .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 760px) {
  .container { padding: 0 20px; }
  section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
  .section-head p, .hero-copy p.lead, .page-hero p.lead { font-size: 17px; }
  .trust-strip { grid-template-columns: minmax(0, 1fr); }
  .trust-strip span { border-left: 0 !important; border-top: 1px solid var(--line); padding: 14px 18px; }
  .trust-strip span:first-child { border-top: 0; }
  .calc-grid, .calc-out, .counters { grid-template-columns: minmax(0, 1fr); }
  .card, .price-card, .step, .plane { padding: 24px; }
  .ledger-entry { grid-template-columns: minmax(0, 1fr); }
  .ledger-tag { grid-row: auto; min-width: 0; }
  .cta-band { padding: 48px 22px; border-radius: 20px; }
  /* Stacked: field, its message, then the button, so the message sits under
     what it is about. flex: none keeps the field 48px tall (flex: 1 gave it a
     zero basis once the row stacked, squashing it to the text height). */
  .signup-form { display: flex; flex-direction: column; }
  .signup-form-row { display: contents; }
  .signup-form-row input { order: 1; flex: none; }
  .cta-band .signup-error { order: 2; }
  .signup-form-row .btn { order: 3; margin-top: 10px; }
  .page-hero { padding: 64px 0 40px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .terminal-body { padding: 18px; font-size: 12.5px; }
  #cookie-banner.visible { flex-direction: column; align-items: stretch; padding: 16px; }
  .cookie-actions .btn { flex: 1; }
  .cta-band { grid-template-columns: minmax(0, 1fr); }
  .site-nav .container { gap: 12px; }
}
