:root {
  --navy: #0B1220;
  --ink: #0B1220;
  --slate: #475569;
  --muted: #64748B;
  --line: #E4E1DA;
  --paper: #F9F7F4;
  --card: #FFFFFF;
  --blue: #3B82F6;
  --blue-ink: #2563EB;
  --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(--blue-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(--blue-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(--blue); 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 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: #5B9BFF; }
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(--blue-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: #5B9BFF; 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; }
