/* SPINALIS — site styles. No external requests: system fonts only. */

:root {
  --bg: #f4f3ee;
  --band: #ebe9e2;
  --surface: #fbfaf6;
  --ink: #12161d;
  --ink-2: #353b47;
  --muted: #676d7a;
  --rule: #d9d6cc;
  --rule-strong: #bfbbaf;
  --accent: #146b45;
  --accent-2: #0f5537;
  --accent-soft: #dcebe2;
  --bad: #9b3a2a;
  --bad-soft: #f2e1dc;
  --warn: #8a5a0b;
  --code-bg: #eeece5;
  --shadow: 0 1px 0 rgba(18, 22, 29, 0.04), 0 12px 32px -18px rgba(18, 22, 29, 0.22);
  --shadow-lg: 0 2px 0 rgba(18, 22, 29, 0.03), 0 40px 80px -40px rgba(18, 22, 29, 0.45);
  --grid: rgba(18, 22, 29, 0.055);

  /* The product itself is dark; its screenshots sit in a dark frame in both themes. */
  --app-bg: #0a0a0a;
  --app-bar: #141414;
  --app-rule: #262626;
  --app-ink: #a3a3a3;

  --max: 1180px;
  --radius: 10px;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0f12;
    --band: #12151a;
    --surface: #171a20;
    --ink: #ecebe6;
    --ink-2: #c4c7ce;
    --muted: #8e94a0;
    --rule: #252a32;
    --rule-strong: #353b45;
    --accent: #52c48f;
    --accent-2: #7fd8ad;
    --accent-soft: #15291f;
    --bad: #e7907d;
    --bad-soft: #2a1a17;
    --warn: #e2b25c;
    --code-bg: #1d2027;
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 16px 40px -20px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 2px 0 rgba(0, 0, 0, 0.3), 0 40px 90px -40px rgba(0, 0, 0, 0.9);
    --grid: rgba(236, 235, 230, 0.045);
    --app-rule: #2c3038;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
strong { font-weight: 650; }
code { font-family: var(--mono); font-size: 0.86em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 28px; }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 6px; z-index: 100;
}
.skip:focus { left: 8px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.header-row { display: flex; align-items: center; gap: 28px; height: 64px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.mark {
  display: inline-block; width: 30px; height: 30px; flex: none;
  background-color: currentColor;
  -webkit-mask: url("mark.png") center / contain no-repeat;
          mask: url("mark.png") center / contain no-repeat;
}
.mark-small { width: 18px; height: 18px; vertical-align: -4px; margin-right: 4px; }
.wordmark { font-family: var(--mono); font-weight: 700; letter-spacing: 0.16em; font-size: 15px; }

.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink-2); font-size: 15px; }
.nav a:hover { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 8px;
  background: var(--ink); color: var(--bg);
  font-weight: 600; font-size: 15px; text-decoration: none; line-height: 1.2;
  border: 1px solid var(--ink);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) { .btn-accent { color: #06140d; } }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-small { padding: 8px 14px; font-size: 14px; }
.btn .arr { transition: transform 0.15s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* ---------------------------------------------------------------- shared */

.section { padding: 104px 0; border-top: 1px solid var(--rule); }
.section-band { background: var(--band); }

.kicker {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 18px; font-family: var(--mono); font-size: 13px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.kicker span {
  display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px;
  border: 1px solid var(--rule-strong); border-radius: 4px; color: var(--ink); letter-spacing: 0.04em;
}

h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(38px, 4.6vw, 60px); font-weight: 720; letter-spacing: -0.035em; text-wrap: balance; }
h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 690; max-width: 920px; margin-bottom: 28px; text-wrap: balance; }
h3 { font-size: 20px; font-weight: 650; letter-spacing: -0.01em; }

.accent { color: var(--accent); }
.eyebrow {
  margin: 0 0 22px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent);
}
.small-head {
  margin: 0 0 12px; font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.prose { color: var(--ink-2); }
.prose p { margin: 0 0 16px; }
.narrow { max-width: 760px; }
.section-lead { margin: -8px 0 0; font-size: 18px; }

/* ---------------------------------------------------------------- app window (real screenshots) */

.window {
  margin: 0; border-radius: 12px; overflow: hidden;
  background: var(--app-bg); border: 1px solid var(--app-rule); box-shadow: var(--shadow-lg);
}
.window-bar {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  padding: 9px 14px; background: var(--app-bar); border-bottom: 1px solid var(--app-rule);
  font-family: var(--mono); font-size: 11.5px; color: var(--app-ink);
}
.window-bar::before {
  content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #52c48f;
  box-shadow: 0 0 0 3px rgba(82, 196, 143, 0.18);
}
.window-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.window a { display: block; }
.window img { width: 100%; }
.shot-caption { margin: 10px 2px 0; font-size: 13px; color: var(--muted); }

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative; padding: 84px 0 96px; overflow: hidden;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 44px 44px;
  background-position: center top;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 160px; pointer-events: none;
  background: linear-gradient(transparent, var(--bg));
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 56px; align-items: center; }
.lead { font-size: 20px; line-height: 1.55; color: var(--ink-2); margin: 26px 0 30px; max-width: 600px; }
.lead em { font-style: normal; color: var(--ink); box-shadow: inset 0 -0.42em 0 var(--accent-soft); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14.5px; color: var(--ink-2); }
.hero-points li::before { content: "✓"; margin-right: 7px; color: var(--accent); font-weight: 700; }

.hero-shot { position: relative; z-index: 1; margin-top: 64px; }
.hero-shot .window { transform: perspective(2400px) rotateX(4deg); transform-origin: center top; }
@media (prefers-reduced-motion: reduce) { .hero-shot .window { transform: none; } }

.record {
  margin: 0; background: var(--surface); border: 1px solid var(--rule);
  border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.record-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px;
  padding: 15px 22px; border-bottom: 1px solid var(--rule); font-family: var(--mono); font-size: 12px;
}
.record-title { font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.record-sub { color: var(--muted); }

.journal { list-style: none; margin: 0; padding: 22px 22px 6px; position: relative; }
.journal li { position: relative; padding: 0 0 20px 30px; display: grid; gap: 3px; }
.journal li::before {
  content: ""; position: absolute; left: 4px; top: 6px; width: 11px; height: 11px;
  border-radius: 50%; border: 2px solid var(--rule-strong); background: var(--surface);
}
.journal li::after {
  content: ""; position: absolute; left: 9px; top: 21px; bottom: 2px; width: 1px; background: var(--rule-strong);
}
.journal li:last-child::after { display: none; }
.j-event { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.j-body { font-size: 15.5px; color: var(--ink); line-height: 1.45; }
.j-label { display: block; font-size: 14px; color: var(--ink-2); }
.j-metric::before { border-color: var(--accent); }
.j-metric .j-body strong { display: block; margin-top: 2px; color: var(--accent); font-size: 48px; font-weight: 740; letter-spacing: -0.04em; line-height: 1; }
.j-artefact::before { border-color: var(--accent); background: var(--accent); }
.j-artefact .j-body {
  display: inline-block; justify-self: start; padding: 7px 12px; border-radius: 8px;
  background: var(--accent-soft); color: var(--ink); font-weight: 600;
}
.record-foot {
  display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 13px 22px;
  border-top: 1px dashed var(--rule-strong); font-family: var(--mono); font-size: 11.5px; color: var(--muted);
}
.record-foot span::before { content: "✓ "; color: var(--accent); }

/* ---------------------------------------------------------------- proof strip */

.proof { padding: 0 0 88px; }
.proof-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 18px; }
.proof-head p { margin: 0; }
.proof-head a { font-size: 14.5px; color: var(--accent); text-underline-offset: 4px; }
.proof-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.proof-grid li {
  position: relative; display: grid; align-content: start; gap: 8px;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 22px 22px 20px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.proof-grid li:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--rule)); transform: translateY(-2px); }
.proof-grid a { text-decoration: none; }
.proof-grid a::after { content: ""; position: absolute; inset: 0; }
.p-domain { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.p-num { font-size: 44px; font-weight: 740; letter-spacing: -0.04em; line-height: 1; color: var(--accent); }
.p-num .from { font-size: 24px; color: var(--muted); font-weight: 650; text-decoration: line-through; text-decoration-thickness: 2px; }
.p-num .arrow { font-size: 20px; color: var(--muted); margin: 0 4px; font-weight: 500; }
.p-what { font-size: 14.5px; color: var(--ink-2); line-height: 1.45; }

/* ---------------------------------------------------------------- problem */

.two-col { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: start; }
.obligations {
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 24px 26px;
}
.obligations ul { list-style: none; margin: 0; padding: 0; }
.obligations li {
  display: flex; justify-content: space-between; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid var(--rule); font-size: 16px;
}
.obligations li:last-child { border-bottom: 0; }
.ref { font-family: var(--mono); font-size: 12px; color: var(--accent); white-space: nowrap; align-self: center; }

/* ---------------------------------------------------------------- why now */

.why-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.date-stamp {
  margin: 4px 0 22px; font-size: clamp(44px, 6vw, 76px); font-weight: 740; letter-spacing: -0.04em; line-height: 1;
}
.why-points { display: grid; gap: 20px; }
.point { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 24px 26px; }
.point h3 { margin-bottom: 8px; }
.point p { margin: 0; color: var(--ink-2); }

/* ---------------------------------------------------------------- walkthrough */

.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; gap: 88px; counter-reset: step; }
.step {
  position: relative; display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 56px; align-items: center; counter-increment: step;
}
.step:nth-child(even) { grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.72fr); }
.step:nth-child(even) .step-copy { order: 2; }
.step-copy { position: relative; }
.step-copy::before {
  content: counter(step, decimal-leading-zero);
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px;
  border-radius: 50%; border: 1px solid var(--accent); color: var(--accent);
  font-family: var(--mono); font-size: 14px; font-weight: 600; background: var(--accent-soft);
}
.step h3 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.02em; margin-bottom: 14px; text-wrap: balance; }
.step p { margin: 0 0 14px; color: var(--ink-2); }
.step-facts { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.step-facts li {
  display: flex; gap: 10px; align-items: baseline; font-size: 14.5px; color: var(--ink-2);
  padding-top: 8px; border-top: 1px solid var(--rule);
}
.step-facts b { font-family: var(--mono); font-size: 13px; color: var(--ink); font-weight: 600; white-space: nowrap; }

.callout {
  margin: 18px 0 0; padding: 14px 16px; border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--warn) 45%, var(--rule)); background: color-mix(in srgb, var(--warn) 8%, var(--surface));
  font-size: 15px; color: var(--ink-2);
}
.callout strong { color: var(--ink); }
.callout .before-after { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; font-weight: 720; letter-spacing: -0.03em; }
.callout .was { font-size: 22px; color: var(--muted); text-decoration: line-through; }
.callout .is { font-size: 30px; color: var(--accent); }

.cta-band {
  margin-top: 88px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
  padding: 28px 32px; border-radius: 14px; background: var(--surface); border: 1px solid var(--rule); box-shadow: var(--shadow);
}
.cta-band h3 { font-size: 22px; margin-bottom: 4px; }
.cta-band p { margin: 0; color: var(--ink-2); font-size: 15.5px; max-width: 640px; }

/* ---------------------------------------------------------------- platform */

.lifecycle {
  list-style: none; margin: 44px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; counter-reset: stage;
}
.lifecycle li {
  position: relative; background: var(--surface); border: 1px solid var(--rule); border-radius: 8px;
  padding: 14px 14px 16px; display: grid; gap: 6px; align-content: start; counter-increment: stage;
}
.lifecycle li::before {
  content: counter(stage, decimal-leading-zero); font-family: var(--mono); font-size: 11px; color: var(--muted);
}
.stage { font-weight: 650; font-size: 16px; }
.records { font-size: 13px; line-height: 1.4; color: var(--muted); }
.chain-label {
  margin: 10px 0 0; padding-top: 10px; border-top: 2px solid var(--accent);
  font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.04em;
}

.pillars { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 56px; }
.pillar { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 30px; }
.pillar h3 { font-size: 24px; margin-bottom: 14px; }
.pillar p { color: var(--ink-2); margin: 0 0 14px; }
.pillar p:last-child { margin-bottom: 0; }

.sql-demo { margin: 18px 0 20px; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; background: var(--code-bg); }
.sql-row { display: grid; gap: 4px; padding: 10px 14px; border-bottom: 1px solid var(--rule); }
.sql-row code { font-size: 12.5px; overflow-wrap: anywhere; color: var(--ink); }
.sql-tag { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.verdict { font-family: var(--mono); font-size: 12px; font-weight: 600; }
.sql-row.ok { box-shadow: inset 3px 0 0 var(--accent); }
.sql-row.ok .verdict { color: var(--accent); }
.sql-row.ok .verdict::before { content: "✓ "; }
.sql-row.bad { box-shadow: inset 3px 0 0 var(--bad); }
.sql-row.bad .verdict { color: var(--bad); }
.sql-row.bad .verdict::before { content: "✗ "; }
.pillar .sql-note { margin: 0; padding: 8px 14px; font-size: 12px; color: var(--muted); }

.lineage { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.lineage li {
  position: relative; justify-self: start; margin-left: 26px;
  font-family: var(--mono); font-size: 12.5px; padding: 6px 12px; border: 1px solid var(--rule-strong);
  border-radius: 6px; background: var(--code-bg);
}
.lineage li::before {
  content: ""; position: absolute; left: -22px; top: 50%; width: 9px; height: 9px; margin-top: -5px;
  border-radius: 50%; border: 2px solid var(--accent); background: var(--surface);
}
.lineage li + li::after {
  content: ""; position: absolute; left: -17px; bottom: calc(50% + 6px); width: 1px; height: 26px; background: var(--rule-strong);
}
.lineage li:last-child::before { background: var(--accent); }

.generated { margin-top: 56px; }
.artefacts {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px;
}
.artefacts li { padding: 13px 0 13px 28px; border-bottom: 1px solid var(--rule); position: relative; color: var(--ink-2); }
.artefacts li::before { content: "✓"; position: absolute; left: 2px; color: var(--accent); font-weight: 700; }
.artefacts strong { color: var(--ink); }
.profile-packs { margin: 28px 0 0; max-width: 820px; color: var(--ink-2); }

/* ---------------------------------------------------------------- evidence: four demos */

.demos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 44px; }
.demo {
  display: grid; grid-template-rows: auto 1fr; overflow: hidden;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 14px;
}
.demo-shot { background: var(--app-bg); border-bottom: 1px solid var(--rule); }
.demo-shot img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; object-position: top left; }
.demo-body { padding: 26px 28px 28px; display: grid; align-content: start; gap: 12px; }
.demo-domain { margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.demo-figure { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; line-height: 1; }
.demo-figure .n { font-size: 54px; font-weight: 740; letter-spacing: -0.04em; color: var(--accent); }
.demo-figure .from { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; color: var(--muted); text-decoration: line-through; text-decoration-thickness: 2px; }
.demo-figure .arrow { font-size: 24px; color: var(--muted); }
.demo-figure .unit { font-size: 15px; color: var(--muted); letter-spacing: 0; }
.demo h3 { font-size: 21px; }
.demo p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.means { margin: 4px 0 0; padding: 14px 16px; border-radius: 10px; background: var(--code-bg); }
.means .small-head { margin-bottom: 8px; }
.means ul { margin: 0; padding: 0 0 0 18px; display: grid; gap: 5px; font-size: 14.5px; color: var(--ink-2); }
.means li::marker { color: var(--accent); }
.bars-head { margin: 6px 0 -4px !important; }
.bars { display: grid; gap: 7px; margin: 2px 0 0; padding: 0; list-style: none; }
.bars li { display: grid; grid-template-columns: 152px minmax(0, 1fr) 48px; align-items: center; gap: 12px; font-size: 13.5px; color: var(--ink-2); }
.bars .track { height: 8px; border-radius: 4px; background: var(--rule); overflow: hidden; }
.bars .fill { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.bars .weak .fill { background: var(--warn); }
/* F1 bar lengths, one per value shown on the page (no inline styles). */
.w996 { width: 99.6%; } .w903 { width: 90.3%; } .w895 { width: 89.5%; } .w857 { width: 85.7%; } .w938 { width: 93.8%; } .w863 { width: 86.3%; } .w497 { width: 49.7%; } .w473 { width: 47.3%; }
.bars b { font-family: var(--mono); font-size: 12.5px; font-weight: 600; text-align: right; color: var(--ink); }
.demo-evidence {
  margin: 4px 0 0 !important; padding: 12px 14px; border-radius: 8px;
  background: var(--accent-soft); color: var(--ink) !important; font-weight: 550; font-size: 15px !important;
}
.trl { margin: 32px 0 0; max-width: 880px; color: var(--ink-2); }
.data-note { margin: 12px 0 0; max-width: 880px; font-size: 13.5px; color: var(--muted); }

/* ---------------------------------------------------------------- alternatives */

.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); }
.compare { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 15.5px; }
.compare th, .compare td { padding: 15px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-size: 13px; font-family: var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.compare tbody th { font-weight: 600; width: 26%; }
.compare td { color: var(--ink-2); }
.compare .us { background: var(--accent-soft); color: var(--ink); font-weight: 600; }
.compare thead .us { color: var(--accent); font-weight: 700; }

.economics { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 32px; }
.econ { border-top: 2px solid var(--ink); padding-top: 20px; }
.econ p { margin: 0 0 12px; color: var(--ink-2); }
.econ-figure { font-size: 34px; font-weight: 720; letter-spacing: -0.03em; color: var(--ink) !important; line-height: 1.15; }
.econ-figure span { display: block; font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-top: 4px; }

/* ---------------------------------------------------------------- procurement */

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fact { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 24px 26px; }
.fact h3 { font-size: 18px; margin-bottom: 8px; }
.fact p { margin: 0; font-size: 15.5px; color: var(--ink-2); }

.sub-h { margin: 64px 0 18px; font-size: 24px; }
.competitors { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--rule-strong); }
.comp { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 2fr); gap: 32px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.comp dt { font-weight: 650; font-size: 17px; }
.comp dd { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.tag, .eg { display: block; margin-top: 6px; font-family: var(--mono); font-size: 12px; font-weight: 500; }
.tag { color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; }
.eg { color: var(--muted); }

/* ---------------------------------------------------------------- design partners */

.partners { background: var(--ink); color: var(--bg); border-top: 0; }
.partners .kicker { color: color-mix(in srgb, var(--bg) 62%, var(--ink)); }
.partners .kicker span { color: var(--bg); border-color: color-mix(in srgb, var(--bg) 35%, var(--ink)); }
.partners h2 { color: var(--bg); }
.partners .section-lead { color: color-mix(in srgb, var(--bg) 78%, var(--ink)); }
.offer { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 44px; }
.offer-col {
  padding: 26px; border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--bg) 18%, var(--ink));
  background: color-mix(in srgb, var(--bg) 4%, var(--ink));
}
.offer-col h3 { color: var(--bg); font-size: 18px; margin-bottom: 14px; }
.offer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.offer-col li { position: relative; padding-left: 22px; font-size: 15.5px; color: color-mix(in srgb, var(--bg) 80%, var(--ink)); }
.offer-col li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }
.offer-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 34px; }
.offer-cta .btn-ghost { color: var(--bg); border-color: color-mix(in srgb, var(--bg) 35%, var(--ink)); }
.offer-cta .btn-ghost:hover { border-color: var(--bg); }
.offer-cta p { margin: 0; font-size: 14px; color: color-mix(in srgb, var(--bg) 60%, var(--ink)); }

/* ---------------------------------------------------------------- pricing */

.tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.tier { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 26px 24px; display: flex; flex-direction: column; }
.tier-featured { border-color: color-mix(in srgb, var(--accent) 55%, var(--rule)); box-shadow: var(--shadow); }
.tier h3 { font-family: var(--mono); font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.tier-featured h3 { color: var(--accent); }
.price {
  display: flex; flex-direction: column; justify-content: flex-end;
  margin: 12px 0 18px; min-height: 84px; font-size: 32px; font-weight: 730; letter-spacing: -0.03em; line-height: 1.1;
}
.price span { display: block; font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-top: 4px; }
.price .from { font-size: 13px; margin: 0 0 2px; }
.tier ul { list-style: none; margin: 0; padding: 0; }
.tier li { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--rule); }
.tier li span { font-size: 13px; color: var(--muted); }
.tier li strong { font-size: 15px; font-weight: 600; }
.tier .yes { color: var(--accent); }
.tier .no { color: var(--muted); font-weight: 500; }
.tier-note { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); }
.pricing-foot { margin: 26px 0 0; color: var(--ink-2); }

/* ---------------------------------------------------------------- faq */

.faq { display: grid; gap: 0; max-width: 900px; border-top: 1px solid var(--rule-strong); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 2px; cursor: pointer; list-style: none; font-size: 18px; font-weight: 620;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--rule-strong); font-family: var(--mono); font-weight: 400; color: var(--muted);
  transition: transform 0.15s ease;
}
.faq details[open] summary::after { content: "−"; color: var(--accent); border-color: var(--accent); }
.faq .answer { padding: 0 2px 22px; color: var(--ink-2); max-width: 780px; }
.faq .answer p { margin: 0 0 12px; }
.faq .answer p:last-child { margin: 0; }

/* ---------------------------------------------------------------- market */

.funnel { list-style: none; margin: 8px 0 30px; padding: 0; display: grid; gap: 12px; max-width: 920px; }
.funnel li {
  display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 24px; align-items: baseline;
  padding: 18px 22px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
}
.funnel li:nth-child(2) { margin-left: 28px; }
.funnel li:nth-child(3) { margin-left: 56px; }
.funnel li:nth-child(4) { margin-left: 84px; border-color: color-mix(in srgb, var(--accent) 45%, var(--rule)); }
.f-num { font-size: 30px; font-weight: 730; letter-spacing: -0.03em; }
.funnel li:nth-child(4) .f-num { color: var(--accent); }
.f-text { color: var(--ink-2); font-size: 15.5px; }

/* ---------------------------------------------------------------- roadmap */

.timeline {
  list-style: none; margin: 8px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0;
  border-top: 2px solid var(--ink);
}
.timeline li { position: relative; padding: 22px 14px 0 0; }
.timeline li::before {
  content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px;
  border-radius: 50%; background: var(--bg); border: 2px solid var(--ink);
}
.timeline li:last-child::before { background: var(--accent); border-color: var(--accent); }
.timeline .m { display: block; font-family: var(--mono); font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.timeline .t { display: block; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.timeline li:last-child .t { color: var(--ink); font-weight: 650; }
.roadmap-note { margin: 24px 0 0; font-size: 13px; color: var(--muted); font-family: var(--mono); }

/* ---------------------------------------------------------------- team */

.founders { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.founder {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 28px;
}
.monogram {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 12px;
  background: var(--ink); color: var(--bg); font-family: var(--mono); font-weight: 700; letter-spacing: 0.06em;
}
.founder h3 { font-size: 22px; }
.role { margin: 4px 0 14px; font-family: var(--mono); font-size: 12.5px; color: var(--accent); letter-spacing: 0.04em; }
.founder p { margin: 0 0 12px; color: var(--ink-2); font-size: 15.5px; }
.owns { margin-bottom: 0 !important; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 14px !important; color: var(--muted) !important; }
.funding { margin: 28px 0 0; font-weight: 600; }
.team-lead { margin: -12px 0 32px; font-size: 18px; }

/* ---------------------------------------------------------------- contact */

.contact { background: var(--ink); color: var(--bg); border-top: 0; }
.contact .prose { color: color-mix(in srgb, var(--bg) 78%, var(--ink)); font-size: 18px; }
.contact h2 { color: var(--bg); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: center; }
.contact-card { border: 1px solid color-mix(in srgb, var(--bg) 25%, var(--ink)); border-radius: 12px; padding: 28px; }
.contact-card .small-head { color: color-mix(in srgb, var(--bg) 60%, var(--ink)); }
.contact-mail { display: inline-block; font-size: 22px; font-weight: 650; color: var(--bg); text-decoration-color: var(--accent); text-underline-offset: 5px; overflow-wrap: anywhere; }
.contact-note { margin: 12px 0 0; font-size: 14px; color: color-mix(in srgb, var(--bg) 60%, var(--ink)); }
.intents { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 8px; }
.intents a {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 12px 14px; border-radius: 8px; text-decoration: none; color: var(--bg); font-size: 15px; font-weight: 550;
  border: 1px solid color-mix(in srgb, var(--bg) 18%, var(--ink));
  transition: border-color 0.15s ease, background 0.15s ease;
}
.intents a::after { content: "→"; color: var(--accent); }
.intents a:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--ink)); }

/* ---------------------------------------------------------------- footer */

.site-footer { padding: 36px 0 48px; border-top: 1px solid var(--rule); }
.footer-row { display: grid; gap: 8px; }
.site-footer p { margin: 0; font-size: 14px; color: var(--ink-2); }
.site-footer .footer-meta { font-size: 12.5px; color: var(--muted); font-family: var(--mono); }

/* ---------------------------------------------------------------- v3: range, fit check, frontier, security, lock-in, cost */

.hero-compact { padding: 72px 0 64px; }
.hero-compact .lead { max-width: 760px; }

/* Range ladder: three kinds of problem, simplest first */
.ladder { margin: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; }
.ladder-head { display: flex; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--rule); font-family: var(--mono); font-size: 12px; }
.ladder-head span:first-child { font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.ladder-head span:last-child { color: var(--muted); }
.ladder ol { list-style: none; margin: 0; padding: 0; counter-reset: rung; }
.ladder li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--rule); counter-increment: rung; }
.ladder li:last-child { border-bottom: 0; }
.ladder li::before { content: counter(rung, decimal-leading-zero); grid-row: 1 / span 2; align-self: start; font-family: var(--mono); font-size: 12px; color: var(--accent); padding-top: 3px; }
.rung-kind { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.rung-task { grid-column: 2; font-size: 16px; font-weight: 620; line-height: 1.3; }
.rung-detail { grid-column: 2; font-size: 13.5px; color: var(--ink-2); }
.rung-num { grid-column: 3; grid-row: 1 / span 3; text-align: right; font-size: 30px; font-weight: 740; letter-spacing: -0.03em; color: var(--accent); line-height: 1; }
.rung-num small { display: block; margin-top: 4px; font-size: 11.5px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.ladder-foot { margin: 0; padding: 12px 20px; border-top: 1px dashed var(--rule-strong); font-family: var(--mono); font-size: 11.5px; color: var(--muted); }

/* What the numbers are */
.numbers-note { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px; align-items: start; padding: 28px 32px; border-radius: 14px; background: var(--surface); border: 1px solid var(--rule); }
.numbers-note h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 0; }
.numbers-note ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.numbers-note li { position: relative; padding-left: 26px; color: var(--ink-2); }
.numbers-note li::before { content: "✓"; position: absolute; left: 2px; color: var(--accent); font-weight: 700; }

/* Fit check: radio questions, verdict computed in CSS with :has() — no JavaScript */
.fit { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 32px; align-items: start; margin-top: 36px; }
.fit-qs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: fq; }
.fit-qs li { counter-increment: fq; padding: 18px 20px; border-radius: 12px; background: var(--surface); border: 1px solid var(--rule); }
.fit-qs fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.fit-qs legend { padding: 0; font-size: 16.5px; font-weight: 600; line-height: 1.4; }
.fit-qs legend::before { content: counter(fq) ". "; font-family: var(--mono); font-size: 13px; color: var(--accent); }
.fit-qs .why { display: block; margin: 4px 0 12px; font-size: 14px; color: var(--muted); font-weight: 400; }
.choice { display: flex; gap: 8px; flex-wrap: wrap; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice label { cursor: pointer; padding: 7px 18px; border-radius: 999px; border: 1px solid var(--rule-strong); font-size: 14.5px; font-weight: 550; color: var(--ink-2); transition: all 0.12s ease; }
.choice input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.choice input:checked + label { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.verdict-box { position: sticky; top: 88px; padding: 24px; border-radius: 14px; background: var(--ink); color: var(--bg); }
.verdict-box .small-head { color: color-mix(in srgb, var(--bg) 60%, var(--ink)); }
.v { display: none; }
.v h3 { color: var(--bg); font-size: 21px; margin-bottom: 8px; }
.v p { margin: 0 0 14px; font-size: 15px; color: color-mix(in srgb, var(--bg) 80%, var(--ink)); }
.v .btn-accent { margin-top: 4px; }
.v-wait { display: block; }
/* Every combination of answers to questions 1 and 2 shows exactly one verdict: the
   waiting line goes as soon as either is answered, and a half-answered pair says which
   question decides it rather than leaving the panel empty. */
.fit:has(input[name="q1"]:checked) .v-wait, .fit:has(input[name="q2"]:checked) .v-wait { display: none; }
.fit:has(#q1n:checked):not(:has(input[name="q2"]:checked)) .v-next-q2 { display: block; }
.fit:has(#q2n:checked):not(:has(input[name="q1"]:checked)) .v-next-q1 { display: block; }
/* good fit: data must stay, or the same task is paid per token */
.fit:has(#q1y:checked) .v-good, .fit:has(#q2y:checked) .v-good { display: block; }
/* strong fit: data must stay AND (decisions about people, or no evidence today) — overrides good */
.fit:has(#q1y:checked):has(#q3y:checked) .v-good, .fit:has(#q1y:checked):has(#q4n:checked) .v-good { display: none; }
.fit:has(#q1y:checked):has(#q3y:checked) .v-strong, .fit:has(#q1y:checked):has(#q4n:checked) .v-strong { display: block; }
/* not now: nothing has to stay inside, nothing is paid per token */
.fit:has(#q1n:checked):has(#q2n:checked) .v-none { display: block; }
.fit:has(#q5n:checked) .v-gpu { display: block; }
.v-gpu { margin-top: 14px; padding-top: 14px; border-top: 1px dashed color-mix(in srgb, var(--bg) 30%, var(--ink)); }
.fit-fallback { margin-top: 12px; font-size: 13px; color: var(--muted); }
@supports selector(:has(a)) { .fit-fallback { display: none; } }

/* Results: base model → fine-tuned → frontier, per task */
.scoreline { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 8px; }
.scoreline li { display: grid; grid-template-columns: minmax(0, 1fr) 120px 64px; gap: 12px; align-items: center; font-size: 14px; color: var(--ink-2); }
.scoreline .track { height: 10px; border-radius: 5px; background: var(--rule); overflow: hidden; }
.scoreline .fill { display: block; height: 100%; border-radius: 5px; background: var(--muted); }
.scoreline .ours .fill { background: var(--accent); }
.scoreline .frontier .fill { background: var(--ink-2); }
.scoreline b { font-family: var(--mono); font-size: 13px; text-align: right; color: var(--ink); }
.scoreline .ours { color: var(--ink); font-weight: 600; }
.scoreline b small, .vs td small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.scoreline li { grid-template-columns: minmax(0, 1fr) 120px 76px; }
.effort { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.effort li { padding: 4px 10px; border-radius: 999px; background: var(--code-bg); font-family: var(--mono); font-size: 12px; color: var(--ink-2); }

/* Frontier comparison table */
.vs { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 680px; }
.vs th, .vs td { padding: 14px 16px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.vs thead th { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.vs td.num { font-family: var(--mono); font-size: 15px; white-space: nowrap; }
.vs .ours { background: var(--accent-soft); color: var(--ink); font-weight: 650; }
.vs tbody th { font-weight: 600; }
.vs tbody th small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
.thesis { margin: 32px 0 0; padding: 22px 26px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 12px 12px 0; font-size: 19px; line-height: 1.5; max-width: 900px; }
.thesis strong { color: var(--accent); }
.method { margin: 18px 0 0; font-size: 14px; color: var(--muted); max-width: 900px; }

/* Security questions inside How it works */
.qa { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.qa details { border-radius: 12px; background: var(--surface); border: 1px solid var(--rule); align-self: start; }
.qa summary {
  list-style: none; cursor: pointer; position: relative; padding: 18px 44px 18px 44px;
  font-size: 17px; font-weight: 600; line-height: 1.35;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before {
  content: "Q"; position: absolute; left: 22px; top: 20px;
  font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--accent);
}
.qa summary::after {
  content: "+"; position: absolute; right: 20px; top: 17px;
  font-size: 18px; line-height: 1.2; font-weight: 400; color: var(--muted);
}
.qa details[open] summary::after { content: "−"; color: var(--accent); }
.qa summary:hover { color: var(--accent); }
.qa .answer { padding: 0 22px 20px 44px; }
.qa p { margin: 0 0 10px; font-size: 15px; color: var(--ink-2); }
.qa p:last-child { margin-bottom: 0; }
.qa .honest { font-size: 13.5px; color: var(--muted); }

/* Cost: manual evidence vs Pro */
.cost { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 620px; }
.cost th, .cost td { padding: 13px 16px; border-bottom: 1px solid var(--rule); text-align: right; }
.cost th:first-child, .cost td:first-child { text-align: left; }
.cost thead th { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.cost td { font-family: var(--mono); font-size: 14.5px; }
.cost .save { color: var(--accent); font-weight: 700; }
.cost .lose { color: var(--muted); }
.cost-lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin: 8px 0 28px; }

.demos-3 { grid-template-columns: 1fr; }
/* One column since the method notes fold away: the card reads top to bottom,
   and nothing has to be squeezed into a side rail. */
.demos-3 .demo-body { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 13px; padding: 30px 32px; }
.demos-3 .demo-body > * { max-width: 820px; }
.vs-facts { margin-top: 28px; }
#frontier .table-wrap, #pricing .table-wrap { margin-top: 32px; }
.lockin { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.team-mini { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 22px 0 0; font-size: 14.5px; color: color-mix(in srgb, var(--bg) 70%, var(--ink)); }
.team-mini a { color: var(--bg); text-underline-offset: 4px; text-decoration-color: var(--accent); }
.nav a.nav-inv { color: var(--accent); }




/* score bars (generated) */
.scoreline .w103 { width: 10.3%; } .scoreline .w180 { width: 17.9%; } .scoreline .w200 { width: 20.0%; } .scoreline .w308 { width: 30.8%; } .scoreline .w385 { width: 38.5%; } .scoreline .w423 { width: 42.3%; } .scoreline .w462 { width: 46.2%; } .scoreline .w777 { width: 77.7%; } .scoreline .w807 { width: 80.7%; } .scoreline .w834 { width: 83.4%; } .scoreline .w849 { width: 84.9%; } .scoreline .w917 { width: 91.7%; } .scoreline .w903 { width: 90.3%; } .scoreline .w333 { width: 33.3%; }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1080px) {
  .lockin { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fit { grid-template-columns: 1fr; }
  .verdict-box { position: static; }
  .qa { grid-template-columns: 1fr; }
  .lifecycle { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .facts, .tiers, .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline { grid-template-columns: 1fr; border-top: 0; border-left: 2px solid var(--ink); margin-left: 6px; }
  .timeline li { padding: 0 0 22px 26px; }
  .timeline li::before { top: 4px; left: -7px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 36px; }
  .step, .step:nth-child(even) { grid-template-columns: 1fr; gap: 28px; }
  .step:nth-child(even) .step-copy { order: 0; }
  .step-copy { max-width: 720px; }
  .offer { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .demos-3 .demo-body { grid-template-columns: 1fr; padding: 24px; }
  .demos-3 .means { grid-column: 1; grid-row: auto; }
  .lockin { grid-template-columns: 1fr; }
  .numbers-note, .cost-lead { grid-template-columns: 1fr; gap: 16px; }
  .scoreline li { grid-template-columns: minmax(0, 1fr) 80px 58px; }
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .section { padding: 72px 0; }
  .hero { padding: 52px 0 64px; }
  .proof { padding-bottom: 64px; }
  .nav { display: none; }
  .btn-small { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-shot { margin-top: 44px; }
  .hero-shot .window { transform: none; }
  .two-col, .why-grid, .pillars, .economics, .founders, .contact-grid, .demos { grid-template-columns: 1fr; gap: 28px; }
  .lead { font-size: 18px; }
  .artefacts { grid-template-columns: 1fr; }
  .comp { grid-template-columns: 1fr; gap: 8px; }
  .funnel li { grid-template-columns: 1fr; gap: 6px; }
  .funnel li:nth-child(n) { margin-left: 0; }
  .steps { gap: 64px; }
  .cta-band { padding: 24px; margin-top: 64px; }
}

@media (max-width: 720px) {
  /* The frontier and cost tables stack the same way: the SPINALIS column must stay on screen. */
  .vs, .cost { min-width: 0; }
  .vs thead, .cost thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .vs, .vs tbody, .vs tr, .vs th, .vs td, .cost, .cost tbody, .cost tr, .cost td { display: block; width: auto; }
  .vs tr, .cost tr { margin-bottom: 12px; background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
  .vs tbody th, .cost td:first-child { padding: 12px 16px; border-bottom: 1px solid var(--rule); text-align: left; font-family: var(--sans); font-weight: 600; }
  .vs td, .cost td:not(:first-child) { display: grid; grid-template-columns: 48% 1fr; gap: 12px; padding: 10px 16px; text-align: left; }
  .vs td::before, .cost td:not(:first-child)::before { content: attr(data-label); font-family: var(--mono); font-size: 11.5px; line-height: 1.6; color: var(--muted); font-weight: 400; }
  .vs td.ours::before { color: var(--accent); font-weight: 700; }
  .vs tr td:last-child, .cost tr td:last-child { border-bottom: 0; }
  /* The comparison stacks into one card per criterion: a sideways-scrolling
     table would put the SPINALIS column off the edge of a phone screen. */
  .table-wrap { overflow: visible; border: 0; background: transparent; }
  .compare { min-width: 0; font-size: 15px; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto; }
  .compare tr { margin-bottom: 12px; background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
  .compare tbody th { width: auto; padding: 12px 16px; border-bottom: 1px solid var(--rule); }
  .compare td { display: grid; grid-template-columns: 42% 1fr; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--rule); }
  .compare tr td:last-child { border-bottom: 0; }
  .compare td::before { content: attr(data-label); font-family: var(--mono); font-size: 11.5px; line-height: 1.5; color: var(--muted); }
  .compare td.us::before { color: var(--accent); font-weight: 700; }
}

@media (max-width: 560px) {
  .ladder li { grid-template-columns: 26px minmax(0, 1fr); }
  .rung-num { grid-column: 2; grid-row: auto; text-align: left; margin-top: 6px; font-size: 26px; }
  .rung-num small { display: inline; margin-left: 8px; }
  .lifecycle, .facts, .tiers, .proof-grid { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 1fr; }
  .demo-figure .n { font-size: 46px; }
  .demo-body { padding: 22px; }
  .bars li { grid-template-columns: 124px minmax(0, 1fr) 46px; gap: 8px; }
  .window-bar { font-size: 10.5px; }
}

/* ---------------------------------------------------------------- pricing: what a governed AI system is */

.gov { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 36px; align-items: start; margin: 8px 0 20px; }
.gov-copy h3 { font-size: clamp(21px, 2.2vw, 26px); margin-bottom: 14px; text-wrap: balance; }
.gov-copy p { margin: 0 0 12px; color: var(--ink-2); }
.gov-figure { margin: 0; display: grid; gap: 10px; }
.gov-sys { padding: 14px 16px; border-radius: 12px; border: 2px solid var(--accent); background: var(--surface); }
.gov-free { border-style: dashed; border-color: var(--rule-strong); background: transparent; }
.gov-name { margin: 0 0 10px; font-weight: 650; font-size: 15.5px; }
.gov-name span { display: inline-block; margin-right: 10px; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: var(--bg); font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; vertical-align: 2px; }
.gov-free .gov-name span { background: var(--rule-strong); color: var(--ink); }
.gov-parts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.gov-parts li { padding: 5px 10px; border-radius: 8px; background: var(--code-bg); font-family: var(--mono); font-size: 12.5px; color: var(--ink); line-height: 1.3; }
.gov-parts li small { display: block; font-family: var(--sans); font-size: 11px; color: var(--muted); }
.gov-parts li.prod { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.gov-figure figcaption { padding: 10px 2px 0; font-size: 15px; color: var(--ink-2); }
.gov-figure figcaption strong { color: var(--accent); }
.gov-rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 48px; }
.gov-rules > div { padding: 20px 22px; border-radius: 12px; background: var(--surface); border: 1px solid var(--rule); }
.gov-rules h4 { margin: 0 0 10px; font-size: 16px; }
.gov-rules ul { margin: 0; padding: 0 0 0 18px; display: grid; gap: 6px; font-size: 14.5px; color: var(--ink-2); }
.gov-rules > div:nth-child(1) li::marker { color: var(--accent); }
.gov-rules > div:nth-child(2) li::marker { color: var(--bad); }
.tier-terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; margin: 24px 0 0; }
.tier-terms > div { padding-top: 12px; border-top: 1px solid var(--rule); }
.tier-terms dt { font-weight: 650; font-size: 14.5px; }
.tier-terms dd { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
#pricing .sub-h { margin-top: 56px; }

@media (max-width: 1080px) {
  .gov-rules { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .gov, .tier-terms { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------------------------------------------------------------- sizing */

.specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 32px 0 0; }
.specs > div { padding: 18px 20px; border-radius: 12px; background: var(--surface); border: 1px solid var(--rule); }
.specs dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.specs dd { margin: 6px 0 0; font-size: 16.5px; font-weight: 650; line-height: 1.3; }
.specs dd small { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--muted); }
#sizing .sub-h { margin: 48px 0 16px; font-size: 20px; }
.vs.size td { color: var(--ink-2); }
.vs.size td.ours { color: var(--ink); }
.size-means { margin-top: 18px; max-width: 900px; }
.size-means p { margin: 0 0 8px; color: var(--ink-2); }

@media (max-width: 860px) {
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* header: eight links fit on one line down to the mobile breakpoint */
.nav a, .btn-small { white-space: nowrap; }
@media (max-width: 1180px) { .header-row { gap: 20px; } .nav { gap: 16px; } .nav a { font-size: 14px; } }
@media (max-width: 1080px) { .nav a[href="#security"], .nav a[href="#faq"] { display: none; } }
@media (max-width: 960px) { .nav a[href="#sizing"], .nav a[href="#how"] { display: none; } }
@media (max-width: 400px) { .btn-small { padding: 7px 10px; font-size: 13px; } .wordmark { letter-spacing: 0.1em; } .header-row { gap: 12px; } }

/* ---------------------------------------------------------------- v4: read-at-a-glance
   Comprehension layer: a plain-language line above every score, the fine print folded
   away behind a summary, and per-item dots for scores a reader cannot picture. */

/* One sentence in words, for the reader who will not decode "13/39". */
.plain {
  margin: 2px 0 0 !important; padding: 12px 14px; border-left: 3px solid var(--accent);
  background: var(--accent-soft); border-radius: 0 8px 8px 0;
  color: var(--ink) !important; font-size: 16px !important; line-height: 1.5;
}
.plain strong { font-weight: 700; }
.plain em { font-style: normal; color: var(--ink-2); }

/* Fine print, folded. Open it and it reads exactly as before. */
details.means { padding: 0; background: var(--code-bg); }
details.means > summary {
  list-style: none; cursor: pointer; padding: 11px 16px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
details.means > summary::-webkit-details-marker { display: none; }
details.means > summary::after {
  content: "+"; font-family: var(--sans); font-size: 15px; line-height: 1;
  width: 18px; height: 18px; display: grid; place-items: center;
  border: 1px solid var(--rule-strong); border-radius: 50%; color: var(--muted);
}
details.means[open] > summary::after { content: "−"; color: var(--accent); border-color: var(--accent); }
details.means > summary:hover { color: var(--ink); }
details.means ul { padding: 0 16px 14px 34px; }

/* Every test item as one dot: what "13 of 39" is made of. */
.dots { margin: 6px 0 0; }
.dots figcaption { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.dots-row { margin-top: 12px; }
.dots-who { margin: 0 !important; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 14.5px; color: var(--ink-2) !important; }
.dots-row.ours .dots-who { color: var(--ink) !important; font-weight: 650; }
.dots-who b { font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--muted); }
.dots-row.ours .dots-who b { color: var(--accent); }
.dots ol { list-style: none; margin: 7px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.dots ol > li { box-sizing: border-box; width: 14px; height: 14px; border-radius: 4px; background: var(--rule); }
.dots ol > li.ok { background: var(--accent); }
.dots ol > li.near { background: var(--accent-soft); border: 1.5px solid var(--accent); }
.dots ol > li.miss { background: var(--rule-strong); }
.dots-legend { list-style: none; margin: 11px 0 0; padding: 0; display: grid; gap: 4px; font-size: 13.5px; color: var(--ink-2); }
.dots-legend li { position: relative; padding-left: 19px; }
.dots-legend li::before { content: ""; position: absolute; left: 0; top: 6px; width: 10px; height: 10px; border-radius: 3px; background: var(--rule); }
.dots-legend li.ok::before { background: var(--accent); }
.dots-legend li.near::before { background: var(--accent-soft); border: 1.5px solid var(--accent); }
.dots-legend li.miss::before { background: var(--rule-strong); }
.dots-legend b { font-family: var(--mono); font-size: 13px; color: var(--ink); }
.dots-note { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 14.5px; color: var(--ink-2); }
.dots-note strong { color: var(--ink); }

/* The frontier verdict, as three cards instead of a paragraph. */
.vcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 28px 0 0; }
.vcard { padding: 20px 22px; border-radius: 12px; background: var(--surface); border: 1px solid var(--rule); display: grid; gap: 6px; align-content: start; }
.vcard.win { border-color: var(--accent); }
.vcard .v-task { margin: 0; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.vcard .v-num { margin: 0; font-size: 30px; font-weight: 720; letter-spacing: -0.03em; line-height: 1.1; color: var(--accent); }
.vcard.loss .v-num { color: var(--ink-2); }
.vcard p.v-say { margin: 0; font-size: 15px; color: var(--ink-2); }
.vcard .v-who { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* Investors: what the ecosystem already solves, and what it does not. */
.gapmap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 26px 0 0; }
.gapmap > div { padding: 18px 20px; border-radius: 12px; background: var(--surface); border: 1px solid var(--rule); display: grid; gap: 6px; align-content: start; }
.gapmap .gap-state { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.gapmap h3 { margin: 0; font-size: 17px; }
.gapmap p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.gapmap .gap-open { border-color: var(--bad); background: var(--bad-soft); }
.gapmap .gap-open .gap-state { color: var(--bad); }

@media (max-width: 860px) {
  .vcards, .gapmap { grid-template-columns: 1fr; }
  .plain { font-size: 15.5px !important; }
}

.vcards-foot { margin: 14px 0 0; font-size: 15px; color: var(--muted); }
.vcard .v-who { display: block; margin-top: 6px; }

/* A method note the reader can open, not a wall they must pass. */
.method-fold { margin-top: 26px; max-width: 900px; border-radius: 10px; }
.method-fold .answer { padding: 0 16px 14px; }
.method-fold .answer p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.6; }

.gap-lead { margin: 30px 0 0; font-size: 18px; }

/* Competitor matrix: the white space is the argument. */
.vs.matrix th[scope="col"] { font-size: 11px; }
.vs.matrix td { text-align: center; }
.vs.matrix tr.us th, .vs.matrix tr.us td { background: var(--accent-soft); }
.vs.matrix tr.us th { color: var(--ink); }
.vs.matrix .yes, .vs.matrix .no, .vs.matrix .part { font-family: var(--mono); font-size: 12px; }
.vs.matrix .yes { color: var(--accent); font-weight: 650; }
.vs.matrix .yes::before { content: "✓ "; }
.vs.matrix .no { color: var(--muted); }
.vs.matrix .no::before { content: "✗ "; }
.vs.matrix .part { color: var(--warn); }
.vs.matrix .part::before { content: "~ "; }
.comp-notes { margin: 22px 0 0; max-width: 900px; display: grid; gap: 10px; }
.comp-notes p { margin: 0; color: var(--ink-2); font-size: 15px; }
@media (max-width: 720px) { .vs.matrix td { text-align: left; } }

/* "What you will be asked": the duty in plain words, and who can answer it. */
.vs.asks { font-size: 15px; }
.vs.asks tbody th small { display: block; margin-top: 3px; font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.vs.asks td.ours { background: var(--accent-soft); }
.vs.asks .yes, .vs.asks .no { font-size: 14.5px; }
.vs.asks .yes { color: var(--ink); }
.vs.asks .yes::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.vs.asks .no { color: var(--muted); }
.vs.asks .no::before { content: "✗ "; color: var(--bad); }
.asks-foot { margin: 18px 0 0; max-width: 820px; font-size: 16px; color: var(--ink-2); }

@media (max-width: 720px) { .vs.asks td { grid-template-columns: 38% 1fr; } }

/* Sizing: the number first, the part name second. */
.specs dd b { display: block; margin-bottom: 2px; font-size: 30px; font-weight: 740; letter-spacing: -0.03em; line-height: 1.1; color: var(--ink); }
.specs dd { font-weight: 500; color: var(--ink-2); }
.size-note { margin: -4px 0 14px; max-width: 820px; font-size: 15px; color: var(--ink-2); }
.size-note strong { color: var(--ink); }
/* Share of the 16 GB card one build used. */
.memcell .memv { display: block; }
.mem { display: block; margin-top: 6px; width: 100%; max-width: 140px; height: 6px; border-radius: 3px; background: var(--rule); overflow: hidden; }
.vs.size td.memcell { text-align: left; }
.mem > span { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
.mem .m11 { width: 11.3%; } .mem .m19 { width: 18.8%; } .mem .m20 { width: 20%; } .mem .m51 { width: 50.6%; } .mem .m68 { width: 68.1%; }

/* The range of task families, before the three measured examples. */
.tasks { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tasks li { padding: 16px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--rule); display: grid; gap: 6px; align-content: start; }
.tasks .t-kind { margin: 0; font-size: 16.5px; font-weight: 680; color: var(--ink); }
.tasks .t-jobs { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.tasks .t-proof { margin-top: 4px; font-family: var(--mono); font-size: 12px; color: var(--accent); text-decoration: none; }
.tasks .t-proof:hover { text-decoration: underline; }
.tasks li.measured { border-color: var(--accent); }
.tasks li.yours { background: var(--accent-soft); border-color: var(--accent); }
.examples-h { margin: 46px 0 0; font-size: 20px; }
.examples-h + .demos { margin-top: 18px; }
@media (max-width: 1000px) { .tasks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .tasks { grid-template-columns: 1fr; } }
