:root {
  --navy: #0B1220;
  --ink: #0B1220;
  --slate: #475569;
  --muted: #64748B;
  --line: #E4E1DA;
  --paper: #F7F9FD;
  --card: #FFFFFF;
  --accent: #4263EB;
  --accent-ink: #3154C7;
  --pass: #047857;
  --fail: #DC2626;
  --hold: #B45309;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", system-ui, Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre, textarea, .mono { font-family: var(--mono); font-size: 13px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* nav */
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav .brand img { height: 30px; display: block; }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav ul a { color: var(--slate); font-weight: 500; font-size: 15px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px; font-weight: 600; font-size: 15px;
  background: var(--navy); color: #fff !important; border: 0; cursor: pointer; text-decoration: none !important;
}
.btn:hover { background: #1b2436; }
.btn.ghost { background: transparent; color: var(--ink) !important; box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--slate); }
.btn.small { padding: 8px 14px; font-size: 14px; }

/* hero */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 96px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 16px; }
h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.02; letter-spacing: -0.035em; margin: 0 0 20px; font-weight: 750; }
.lead { font-size: 19px; color: var(--slate); margin: 0 0 32px; max-width: 30em; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* receipt card */
.receipt {
  background: var(--card); border-radius: var(--radius) var(--radius) 0 0; padding: 26px 26px 34px;
  box-shadow: 0 1px 0 var(--line), 0 24px 60px -30px rgba(11,18,32,.35);
  position: relative; font-size: 14px;
  -webkit-mask: radial-gradient(circle 7px at 50% 100%, #0000 98%, #000) 50% 100% / 22px 100% repeat-x;
          mask: radial-gradient(circle 7px at 50% 100%, #0000 98%, #000) 50% 100% / 22px 100% repeat-x;
}
.receipt-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.receipt-head span { font-weight: 600; font-size: 13px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.badge { font-weight: 700; font-size: 13px; padding: 4px 10px; border-radius: 999px; letter-spacing: .04em; }
.badge.pass { color: var(--pass); background: #ECFDF5; }
.badge.fail { color: var(--fail); background: #FEF2F2; }
.badge.hold { color: var(--hold); background: #FFFBEB; }
.row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px dashed var(--line); }
.row:first-of-type { border-top: 0; }
.row dt { color: var(--muted); }
.row dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.row dd.mono { font-weight: 500; }
.sig { margin-top: 14px; font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.sig::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pass); }

/* sections */
section { padding: 88px 0; border-top: 1px solid var(--line); }
h2 { font-size: clamp(28px, 3.6vw, 38px); letter-spacing: -0.025em; line-height: 1.15; margin: 0 0 14px; font-weight: 700; }
.sub { color: var(--slate); font-size: 18px; margin: 0 0 48px; max-width: 36em; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { counter-increment: s; }
.step::before {
  content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px;
  background: var(--navy); color: #fff; font-weight: 700; font-size: 14px; margin-bottom: 16px;
}
.step h3 { font-size: 17px; margin: 0 0 6px; letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--slate); font-size: 15px; }

.outcomes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.outcome { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.outcome .badge { display: inline-block; margin-bottom: 14px; }
.outcome p { margin: 0; color: var(--slate); font-size: 15px; }
.outcome strong { color: var(--ink); }

.dark { background: var(--navy); color: #E2E8F0; border: 0; }
.dark h2 { color: #fff; }
.dark .sub { color: #94A3B8; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: #1E293B; border-radius: var(--radius); overflow: hidden; }
.fact { background: var(--navy); padding: 26px; }
.fact h3 { margin: 0 0 6px; font-size: 16px; color: #fff; }
.fact p { margin: 0; font-size: 15px; color: #94A3B8; }

.final { text-align: center; }
.final .sub { margin: 0 auto 32px; }
.final .cta { justify-content: center; }

footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
footer img { height: 22px; display: block; }

/* verify page */
.page-head { padding: 56px 0 32px; }
.page-head h1 { font-size: clamp(34px, 5vw, 48px); }
.verify { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: start; padding-bottom: 88px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.panel h3 { margin: 0 0 12px; font-size: 15px; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; align-items: center; }
.toolbar .label { color: var(--muted); font-size: 13px; margin-right: 4px; }
textarea {
  width: 100%; min-height: 360px; resize: vertical; border: 1px solid var(--line); border-radius: 10px;
  padding: 14px; background: #FCFBF9; color: var(--ink); line-height: 1.5;
}
textarea:focus, input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
textarea.keys { min-height: 76px; }
details { margin-top: 14px; }
summary { cursor: pointer; color: var(--slate); font-size: 14px; font-weight: 500; }
.hint { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
.result-empty { color: var(--muted); font-size: 15px; }
.verdict { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.verdict .icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 20px; }
.verdict.ok .icon { background: var(--pass); }
.verdict.bad .icon { background: var(--fail); }
.verdict.warn .icon { background: var(--hold); }
.verdict.demo .icon { background: var(--muted); font-family: var(--mono); }
.verdict strong { font-size: 18px; display: block; line-height: 1.2; }
.verdict small { color: var(--muted); font-size: 14px; }
.reasons { margin: 0 0 16px; padding-left: 18px; color: var(--fail); font-size: 14px; }
.local { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); margin-top: 16px; }

@media (max-width: 860px) {
  .hero, .verify { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; padding-bottom: 64px; gap: 40px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .outcomes, .facts { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .nav ul li.hide-sm { display: none; }
}
@media (max-width: 520px) {
  textarea { min-height: 220px; }
  .wrap { padding: 0 16px; }
  .steps { grid-template-columns: 1fr; }
  .nav ul { gap: 16px; }
  .nav .brand img { height: 26px; }
}
.toolbar.actions { margin: 16px 0 0; }

/* pilot form */
.pilot { max-width: 640px; }
.pilot .page-head { padding-bottom: 24px; }
.form { display: grid; gap: 18px; margin-bottom: 88px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.form input:not([type=radio]), .form textarea {
  font: inherit; font-weight: 400; font-size: 15px; width: 100%; padding: 11px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: #FCFBF9; color: var(--ink);
}
.form textarea { min-height: 0; resize: vertical; font-family: inherit; }
.form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.form legend { font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.form .choice { display: flex; gap: 10px; align-items: center; font-weight: 400; font-size: 15px; cursor: pointer; }
.form .choice input { accent-color: var(--navy); width: 16px; height: 16px; }
.form .opt { color: var(--muted); font-weight: 400; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.form button[disabled] { opacity: .6; cursor: default; }
.status { font-size: 14px; color: var(--muted); }
.status.error { color: var(--fail); }
.done { margin: 0; font-size: 17px; font-weight: 600; color: var(--pass); }

/* benchmark */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 56px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 2px; }
.stat strong { font-size: 30px; letter-spacing: -0.02em; line-height: 1.1; }
.stat span { font-weight: 600; font-size: 14px; }
.stat small { color: var(--muted); font-size: 13px; }
.bench-section { padding: 48px 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table.bench { width: 100%; border-collapse: collapse; font-size: 14px; }
.bench th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.bench td { padding: 12px 14px; border-top: 1px dashed var(--line); vertical-align: top; }
.bench td.mono, .bench .mono { font-family: var(--mono); font-size: 12px; }
.bench .obs div + div { margin-top: 6px; }
.bench .badge { font-size: 11px; padding: 2px 8px; }
.bench td.ok { color: var(--pass); font-weight: 700; }
.bench td.bad { color: var(--fail); font-weight: 700; }
.bench tr.miss { background: #FFF8F7; }
.limits { margin: 0; padding-left: 20px; color: var(--slate); max-width: 46em; }
.limits li + li { margin-top: 12px; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* homepage v2 */
.hero h1 { font-size: clamp(40px, 5.6vw, 60px); text-wrap: balance; }
.hero-note { margin: 20px 0 0; font-size: 14px; color: var(--muted); }
section .eyebrow { margin-bottom: 12px; }
.eyebrow.on-dark { color: #8BA8FF; }
h2 { text-wrap: balance; max-width: 22em; }

.problems { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.problem { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.problem .num { display: block; font: 600 13px/1 var(--mono); color: var(--accent-ink); margin-bottom: 18px; }
.problem h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -0.01em; }
.problem p { margin: 0; color: var(--slate); font-size: 15px; }

.story { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 0; max-width: 760px; }
.story li { display: grid; grid-template-columns: 40px 1fr; gap: 20px; padding: 0 0 28px; position: relative; }
.story li::before { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: var(--line); }
.story li:last-child::before { background: linear-gradient(var(--line), var(--line) 60%, transparent); }
.story .dot { width: 40px; height: 40px; border-radius: 10px; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.story h3 { margin: 8px 0 6px; font-size: 18px; letter-spacing: -0.01em; }
.story p { margin: 0; color: var(--slate); font-size: 16px; max-width: 40em; }

.fork { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-left: 60px; }
.branch { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; border-top-width: 3px; }
.branch.pass { border-top-color: var(--pass); }
.branch.fail { border-top-color: var(--fail); }
.branch.hold { border-top-color: var(--hold); }
.branch .badge { display: inline-block; margin-bottom: 14px; }
.branch h3 { margin: 0 0 6px; font-size: 17px; }
.branch p { margin: 0; color: var(--slate); font-size: 15px; }

.audiences { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.audience { display: flex; flex-direction: column; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.audience h3 { margin: 0; font-size: 19px; letter-spacing: -0.015em; }
.audience p { margin: 0; color: var(--slate); font-size: 15px; }
.audience .gain { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); color: var(--ink); font-weight: 600; font-size: 14px; }

.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: #1E293B; border-radius: var(--radius); overflow: hidden; }
.numbers > div { background: var(--navy); padding: 26px; display: grid; gap: 4px; }
.numbers strong { font-size: 40px; letter-spacing: -0.03em; line-height: 1.05; color: #fff; font-variant-numeric: tabular-nums; }
.numbers span { color: #E2E8F0; font-weight: 600; font-size: 15px; }
.numbers small { color: #94A3B8; font-size: 13px; }
.dark .more { margin: 24px 0 0; }
.dark .more a { color: #8BA8FF; font-weight: 600; }

.facts.light { background: var(--line); }
.facts.light .fact { background: var(--card); }
.facts.light .fact h3 { color: var(--ink); }
.facts.light .fact p { color: var(--slate); }

.narrow { max-width: 760px; }
#faq details { border-top: 1px solid var(--line); margin: 0; padding: 18px 0; }
#faq details:last-of-type { border-bottom: 1px solid var(--line); }
#faq summary { font-size: 17px; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
#faq summary::-webkit-details-marker { display: none; }
#faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; }
#faq details[open] summary::after { content: "−"; }
#faq details p { margin: 10px 0 0; color: var(--slate); font-size: 16px; max-width: 40em; }
#faq h2 { margin-bottom: 28px; }

@media (max-width: 860px) {
  .problems, .audiences, .fork { grid-template-columns: 1fr; }
  .fork { margin-left: 0; }
  .numbers { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .numbers strong { font-size: 32px; }
  .story li { grid-template-columns: 32px 1fr; gap: 14px; }
  .story .dot { width: 32px; height: 32px; font-size: 14px; }
  .story li::before { left: 15px; top: 32px; }
}
.final h2 { margin-left: auto; margin-right: auto; }
.facts.light { margin-top: 32px; }

/* case study */
.stats.three { grid-template-columns: repeat(3, 1fr); margin-bottom: 20px; }
.bench td small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.bench td small.miss { color: var(--fail); font-weight: 600; }
.page-head .eyebrow { margin-bottom: 12px; }
.bench-section .story { margin-top: 8px; }
@media (max-width: 860px) { .stats.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .stats.three .stat strong { font-size: 24px; } .stats.three .stat { padding: 14px; } }
.sub.after-list { margin-top: 24px; }
.bench tr.hl td { background: rgba(59, 130, 246, 0.06); }
.bench td a.mono { font-size: 12px; }
.run-head { margin: 56px 0 16px; }

/* proof strip */
.proof-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; padding: 0; width: calc(100% - 48px); max-width: 992px; margin: -48px auto 24px; }
.proof-strip a { background: var(--card); padding: 18px 20px; display: grid; gap: 2px; color: var(--ink); text-decoration: none !important; transition: background .15s; }
.proof-strip a:hover { background: #F3F1EC; }
.proof-strip strong { font-size: 16px; letter-spacing: -0.01em; }
.proof-strip span { font-size: 13px; color: var(--muted); }
.receipt dd.bad { color: var(--fail); }
a.sig { color: var(--muted); text-decoration: none; }
a.sig:hover { color: var(--accent-ink); }

/* money flow */
.flow { margin: 40px 0 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.flow svg { display: block; width: 100%; height: auto; }
.flow svg.v { display: none; }
.flow-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }
.flow-notes p { margin: 0; color: var(--slate); font-size: 15px; }
.flow-notes b { color: var(--ink); }

/* modes */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.mode { display: flex; flex-direction: column; gap: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.mode .btn { align-self: flex-start; margin-top: auto; }
.mode-head { display: flex; justify-content: space-between; align-items: baseline; }
.mode-head h3 { margin: 0; font-size: 26px; letter-spacing: -0.02em; }
.mode-head span { font-weight: 600; color: var(--slate); }
.mode ul { margin: 0; padding-left: 20px; color: var(--slate); display: grid; gap: 8px; }
.mode.dark-card { background: var(--navy); border-color: var(--navy); }
.mode.dark-card h3 { color: #fff; }
.mode.dark-card .mode-head span { color: #94A3B8; }
.mode.dark-card ul { color: #CBD5E1; }
.btn.ghost.on-dark { color: #fff !important; box-shadow: inset 0 0 0 1.5px #334155; }
.btn.ghost.on-dark:hover { box-shadow: inset 0 0 0 1.5px #94A3B8; }

@media (max-width: 860px) {
  .proof-strip { grid-template-columns: 1fr 1fr; margin-top: 32px; }
  .proof-strip a { padding: 14px 16px; }
  .flow { padding: 20px; }
  .flow svg.h { display: none; }
  .flow svg.v { display: block; max-width: 340px; margin: 0 auto; }
  .flow-notes, .modes { grid-template-columns: 1fr; }
}

/* language switch */
.nav a.lang { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--slate); padding: 5px 8px; border-radius: 8px; box-shadow: inset 0 0 0 1.5px var(--line); text-decoration: none; }
.nav a.lang:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--slate); }
@media (max-width: 520px) { .nav ul { gap: 14px; } }

/* verify: drop zone and sharing */
.drop { position: relative; border-radius: 12px; }
.drop.over textarea { outline: 2px dashed var(--accent); outline-offset: 2px; }
.drop-hint { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.file-pick { color: var(--accent-ink); cursor: pointer; font-weight: 600; }
.file-pick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-pick:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.share-note { font-size: 13px; color: var(--muted); align-self: center; }

/* docs */
.docs { display: grid; grid-template-columns: 220px 1fr; gap: 56px; padding-top: 40px; padding-bottom: 96px; align-items: start; }
.docs-nav { position: sticky; top: 24px; font-size: 14px; }
.docs-nav-title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.docs-nav ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 2px solid var(--line); }
.docs-nav a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--slate); text-decoration: none; }
.docs-nav a:hover, .docs-nav a.active { color: var(--ink); border-left-color: var(--accent); }
.docs-body { min-width: 0; max-width: 760px; }
.docs-body h1 { font-size: clamp(32px, 4.5vw, 44px); }
.docs-body section { padding: 40px 0 8px; border-top: 1px solid var(--line); margin-top: 40px; scroll-margin-top: 16px; }
.docs-body h2 { font-size: 28px; letter-spacing: -0.02em; margin: 0 0 16px; }
.docs-body h3 { font-size: 17px; margin: 28px 0 8px; }
.docs-body p, .docs-body li { color: var(--slate); }
.docs-body b { color: var(--ink); }
.docs-body pre { background: var(--navy); color: #E2E8F0; border-radius: 12px; padding: 18px 20px; overflow-x: auto; line-height: 1.55; margin: 12px 0 16px; }
.docs-body pre code { font-size: 13px; color: inherit; }
.docs-body p code, .docs-body li code, .docs-body td code { background: #EFECE6; padding: 1px 6px; border-radius: 6px; font-size: 13px; color: var(--ink); }
.docs-steps { padding-left: 22px; display: grid; gap: 10px; }
.docs-list { padding-left: 20px; display: grid; gap: 6px; }
.docs-table td { vertical-align: top; }
.docs-table td.mono { white-space: normal; word-break: break-word; }
.docs-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
@media (max-width: 860px) {
  .docs { grid-template-columns: 1fr; gap: 0; padding-top: 16px; }
  .docs-nav { position: static; margin-bottom: 8px; }
  .docs-nav ol { display: flex; flex-wrap: wrap; gap: 6px; border: 0; }
  .docs-nav a { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; margin: 0; background: var(--card); }
  .docs-cols { grid-template-columns: 1fr; }
}

/* dark theme: follows the system setting */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ink: #E6EAF0; --slate: #A7B1C2; --muted: #8592A6; --line: #243042;
    --paper: #0A0E15; --card: #111827; --accent-ink: #8BA8FF;
    --pass: #34D399; --fail: #F87171; --hold: #FBBF24;
  }
  .btn { background: #E6EAF0; color: #0B1220 !important; }
  .btn:hover { background: #FFFFFF; }
  .btn.ghost { background: transparent; color: var(--ink) !important; }
  .badge.pass { background: rgba(52, 211, 153, .12); }
  .badge.fail { background: rgba(248, 113, 113, .12); }
  .badge.hold { background: rgba(251, 191, 36, .12); }
  textarea, .form input:not([type=radio]), .form textarea { background: #0D131D; }
  .bench tr.miss { background: rgba(248, 113, 113, .08); }
  .bench tr.hl td { background: rgba(122, 176, 255, .08); }
  .proof-strip a:hover { background: #162033; }
  .docs-body p code, .docs-body li code, .docs-body td code { background: #1A2333; }
  .docs-body pre { background: #0D131D; border: 1px solid var(--line); }
  .story .dot { background: #1E293B; }
  .dark { background: #0E1524; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .numbers > div { background: #0E1524; }
  .mode.dark-card { background: #0E1524; border-color: var(--line); }
  .receipt { box-shadow: 0 1px 0 var(--line), 0 24px 60px -30px rgba(0, 0, 0, .7); }
  .verdict.ok .icon { background: #047857; }
  .verdict.bad .icon { background: #DC2626; }
  .verdict.warn .icon { background: #B45309; }
  .flow rect[fill="#fff"] { fill: var(--card); }
  .flow rect[stroke="#E4E1DA"] { stroke: var(--line); }
  .flow rect[fill="#0B1220"] { fill: #1E293B; }
  .flow text[fill="#0B1220"] { fill: var(--ink); }
  .flow text[fill="#475569"] { fill: var(--slate); }
  .flow rect[stroke="#047857"] { stroke: var(--pass); }
  .flow rect[stroke="#DC2626"] { stroke: var(--fail); }
  .flow rect[stroke="#B45309"] { stroke: var(--hold); }
  .flow text[fill="#047857"] { fill: var(--pass); }
  .flow text[fill="#DC2626"] { fill: var(--fail); }
  .flow text[fill="#B45309"] { fill: var(--hold); }
  .flow path[stroke="#047857"] { stroke: var(--pass); }
  .flow path[stroke="#DC2626"] { stroke: var(--fail); }
  .flow path[stroke="#B45309"] { stroke: var(--hold); }
}

/* pilot: after sending */
.done h2 { margin: 0 0 8px; font-size: 24px; }
.done ol { padding-left: 20px; display: grid; gap: 6px; color: var(--slate); }
div.done { font-weight: 400; color: var(--ink); }
div.done h2 { color: var(--pass); }

/* pilot terms */
.pilot-terms { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pilot-terms li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: 14px; color: var(--slate); }
.pilot-terms b { color: var(--ink); display: block; margin-bottom: 2px; }
@media (max-width: 600px) { .pilot-terms { grid-template-columns: 1fr; } }
/* on-chain tables on small screens */
@media (max-width: 520px) { .bench-section .table-wrap .bench { min-width: 560px; } }
/* contrast */
:root { --muted: #5B6B82; --fail: #C81E1E; }

/* mobile menu: a plain <details>, works without JS; /js/nav.mjs closes it on outside click / Esc */
.nav { position: relative; }
.nav ul li.show-sm { display: none; }
.menu summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 10px; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { box-shadow: inset 0 0 0 1.5px var(--slate); }
.menu-panel { position: absolute; left: 0; right: 0; top: 64px; z-index: 20; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px;
  box-shadow: 0 24px 60px -30px rgba(11,18,32,.45); }
.nav .menu-panel a { padding: 12px 14px; border-radius: 10px; color: var(--ink); font-size: 16px; }
.nav .menu-panel a:hover { background: var(--line); text-decoration: none; }
@media (max-width: 860px) { .nav ul li.show-sm { display: list-item; } }
@media (max-width: 380px) { .nav a.btn.small { padding-left: 10px; padding-right: 10px; } .nav ul { gap: 10px; } }
.nav a.btn.small { white-space: nowrap; }
.nav .menu-panel a.menu-lang { display: none; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; margin-top: 4px; color: var(--slate); }
@media (max-width: 420px) {
  .nav ul li:has(> a.lang) { display: none; }
  .nav .menu-panel a.menu-lang { display: block; }
}

/* hidden tests: the qualification gate under the three sources */
.tests-gate { margin: 24px 0 0; padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--slate); max-width: 60em; }
.tests-gate b { color: var(--ink); }

/* Hidden Test Index */
.preview-note { margin: -16px 0 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--slate); font-size: 14px; max-width: 46em; }
.index-grid td { vertical-align: top; }
.index-grid a.cell { display: inline-flex; flex-direction: column; gap: 2px; text-decoration: none; }
.index-grid a.cell:hover .why { text-decoration: underline; }
.index-grid .why { font-size: 13px; color: var(--slate); }
.index-limits { margin-top: 32px; }
.index-agents th { white-space: normal; vertical-align: bottom; }
.index-agents td:not(:first-child), .index-agents th:not(:first-child) { text-align: right; }

/* demo page */
.demo pre { background: var(--navy); color: #E2E8F0; border-radius: 12px; padding: 16px 18px; overflow-x: auto; line-height: 1.55; margin: 0; max-width: 100%; }
.demo pre code { font-size: 13px; color: inherit; }
.demo .mode { min-width: 0; }
.demo .mode p { margin: 0; color: var(--slate); }
.demo .bench-section > pre { margin: 0 0 16px; }
@media (prefers-color-scheme: dark) { .demo pre { background: #0D131D; border: 1px solid var(--line); } }
.demo .mode-head { flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.demo .mode-head h3 { margin: 0; }
@media (max-width: 520px) { .demo .mode { padding: 20px; } .demo .modes { grid-template-columns: 1fr; } }

/* ResultBond receipt growth loop */
.resultbond-extension-cta {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--line, #E4E1DA);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(11,18,32,.035), rgba(66,99,235,.055));
}
.resultbond-extension-cta .resultbond-extension-kicker {
  display: block;
  margin-bottom: 6px;
  color: #3154C7;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
}
.resultbond-extension-cta strong {
  display: block;
  font-size: 18px;
  line-height: 1.25;
}
.resultbond-extension-cta p {
  margin: 7px 0 14px;
  color: var(--muted, #64748B);
}
@media (prefers-color-scheme: dark) {
  .resultbond-extension-cta {
    border-color: rgba(148,163,184,.22);
    background: linear-gradient(135deg, rgba(66,99,235,.08), rgba(230,184,92,.09));
  }
  .resultbond-extension-cta .resultbond-extension-kicker { color: #8BA8FF; }
}

/* ResultBond family banner */
.resultbond-extension-banner {
  margin-top: 22px;
  margin-bottom: 8px;
  padding: 22px;
  border: 1px solid var(--line, #E4E1DA);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(255,255,255,.58);
}
.resultbond-extension-banner h2 { margin: 4px 0 7px; font-size: clamp(22px, 3vw, 31px); }
.resultbond-extension-banner p { margin: 0; max-width: 760px; color: var(--muted, #64748B); }
.resultbond-extension-banner .resultbond-extension-kicker { color: #3154C7; font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.resultbond-extension-actions { display: flex; gap: 9px; flex-wrap: wrap; flex: 0 0 auto; }
@media (max-width: 760px) {
  .resultbond-extension-banner { align-items: flex-start; flex-direction: column; }
}
@media (prefers-color-scheme: dark) {
  .resultbond-extension-banner { background: rgba(255,255,255,.025); border-color: rgba(148,163,184,.22); }
  .resultbond-extension-banner .resultbond-extension-kicker { color: #8BA8FF; }
}

/* ResultBond product page */
.resultbond-extension-page section { padding: 62px 0; }
.resultbond-extension-hero { padding-top: 70px; padding-bottom: 54px; }
.resultbond-extension-hero h1 { max-width: 920px; margin: 8px 0 18px; font-size: clamp(42px, 7vw, 76px); line-height: .98; letter-spacing: -.045em; }
.resultbond-extension-hero .lead { max-width: 850px; }
.resultbond-extension-family-line { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line, #E4E1DA); color: var(--muted, #64748B); font-size: 13px; }
.resultbond-extension-family-line b { color: inherit; }
.resultbond-extension-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-top: 24px; }
.resultbond-extension-grid article { border: 1px solid var(--line, #E4E1DA); border-radius: 14px; padding: 18px; background: rgba(255,255,255,.58); }
.resultbond-extension-grid article > span { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; background: #0B1220; color: #fff; font-size: 11px; font-weight: 800; }
.resultbond-extension-grid h3 { margin: 13px 0 7px; }
.resultbond-extension-grid p { margin: 0; color: var(--muted, #64748B); font-size: 14px; line-height: 1.55; }
.resultbond-extension-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.resultbond-extension-two > div { border: 1px solid rgba(148,163,184,.2); border-radius: 14px; padding: 20px; }
.resultbond-extension-two ul { margin: 10px 0 0; padding-left: 20px; color: #cbd5e1; line-height: 1.6; }
.privacy-box { max-width: 900px; border: 1px solid var(--line, #E4E1DA); border-radius: 14px; padding: 18px; background: rgba(255,255,255,.58); }
.privacy-box p { margin: 0 0 10px; line-height: 1.6; }
.privacy-box p:last-child { margin-bottom: 0; }
@media (max-width: 900px) { .resultbond-extension-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) {
  .resultbond-extension-page section { padding: 44px 0; }
  .resultbond-extension-grid, .resultbond-extension-two { grid-template-columns: 1fr; }
  .resultbond-extension-hero h1 { font-size: clamp(38px, 12vw, 56px); }
}
@media (prefers-color-scheme: dark) {
  .resultbond-extension-grid article, .privacy-box { background: rgba(255,255,255,.025); border-color: rgba(148,163,184,.22); }
}

/* GitHub PR request: a submitted request is not a verified outcome. */
.pr-intake-note {
  margin-top: 14px; padding: 12px 15px;
  border: 1px solid var(--line, #e4e1da); border-radius: 11px;
  color: var(--muted, #475569); background: var(--card, #fff);
  font-size: 13px; line-height: 1.55; overflow-wrap: anywhere;
}
.pilot-terms[hidden] { display: none !important; }
