:root {
  --ink: #0d1b17;
  --muted: #5a6b63;
  --soft: #7c8a83;
  --line: #e4e9e5;
  --line-strong: #d3dbd5;
  --bg: #f5f7f4;
  --panel: #ffffff;
  --raise: #fbfcfb;

  --brand: #0f766e;
  --brand-bright: #12a594;
  --gain: #157f3c;
  --gain-bright: #1faf53;
  --warn: #b4530a;
  --warn-soft: rgba(180, 83, 9, 0.08);

  /* dark cockpit */
  --cock-bg: #0c1a16;
  --cock-panel: #112822;
  --cock-line: rgba(255, 255, 255, 0.09);
  --cock-text: #eaf3ef;
  --cock-muted: #9bb1a8;

  --r: 16px;
  --r-sm: 11px;
  --shadow: 0 1px 2px rgba(13, 27, 23, 0.04), 0 18px 40px -24px rgba(13, 27, 23, 0.22);
  --shadow-sm: 0 1px 2px rgba(13, 27, 23, 0.05), 0 8px 20px -16px rgba(13, 27, 23, 0.2);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1100px 520px at 50% -8%, rgba(18, 165, 148, 0.10), transparent 62%),
    radial-gradient(900px 500px at 92% 4%, rgba(21, 127, 60, 0.07), transparent 60%),
    var(--bg);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

p, h1, h2, h3, h4 { margin: 0; }

button, a { font: inherit; }

button {
  min-height: 50px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: linear-gradient(180deg, #138577, var(--brand));
  color: #fff;
  padding: 0 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

button:hover { transform: translateY(-1px); filter: brightness(1.04); }
button:active { transform: translateY(0); }
button:disabled { opacity: 0.6; cursor: default; transform: none; filter: none; }

a { color: inherit; text-decoration: none; }

.shell {
  width: min(1000px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 30px 0 28px;
}

/* ---------- shared section surface ---------- */
.hero,
.runConsole,
.resultPanel,
.whyTools,
.story,
.learningLedger,
.judgeTest,
.proofPanel {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.eyebrow {
  color: var(--brand);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sectionEyebrow { margin-bottom: 14px; }

/* ---------- hero ---------- */
.hero {
  padding: 34px 34px 28px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-bright), var(--gain-bright) 55%, #635bff);
}

.brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 9px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--gain-bright);
  box-shadow: 0 0 0 4px rgba(31, 175, 83, 0.16);
}

.brand .brandTag {
  color: var(--soft);
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}

h1 {
  max-width: 18ch;
  margin-top: 16px;
  font-size: clamp(40px, 7.4vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 800;
  text-wrap: balance;
}

h1 .accent {
  background: linear-gradient(115deg, var(--brand-bright) 10%, var(--gain-bright) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subhead {
  max-width: 60ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.5;
}

.sponsorLine {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.sponsorLine span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--raise);
  color: var(--muted);
  padding: 0 13px;
  font-size: 13px;
  font-weight: 500;
}

.sponsorLine b { color: var(--ink); font-weight: 800; }

.cdot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c, var(--brand));
  flex: none;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.secondaryAction {
  min-height: 50px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: #fff;
  padding: 0 20px;
  font-weight: 700;
  color: var(--ink);
  transition: border-color 0.12s ease, background 0.12s ease;
}

.secondaryAction:hover { border-color: var(--brand); background: var(--raise); }

.quietButton {
  border-color: var(--line-strong);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.quietButton:hover { border-color: var(--brand); background: var(--raise); filter: none; }

.heroStats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 26px 0 0;
}

.heroStats div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--raise);
  padding: 14px 16px;
}

.heroStats div:last-child {
  border-color: rgba(21, 127, 60, 0.3);
  background: linear-gradient(180deg, rgba(31, 175, 83, 0.09), rgba(31, 175, 83, 0.03));
}

.heroStats dt {
  color: var(--soft);
  font-size: 12.5px;
  font-weight: 600;
}

.heroStats dd {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.heroStats dd span {
  font-size: 13px;
  font-weight: 600;
  color: var(--soft);
}

.heroStats dd.gain { color: var(--gain); }

/* ---------- dark run console (cockpit) ---------- */
.runConsole {
  margin-top: 14px;
  padding: 20px 22px 22px;
  background: var(--cock-bg);
  border-color: #0a1612;
  color: var(--cock-text);
}

.cockHead {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cockTitle {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cock-text);
}

.liveDot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--gain-bright);
  box-shadow: 0 0 0 0 rgba(31, 175, 83, 0.5);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(31, 175, 83, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(31, 175, 83, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 175, 83, 0); }
}

.modeBadge {
  margin-left: auto;
  border: 1px solid var(--cock-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--cock-muted);
  padding: 3px 11px;
  font-size: 11px;
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: 0.02em;
}

.runStatus {
  margin-top: 12px;
  color: var(--cock-muted);
  font-size: 15px;
}

.runStatus b { color: var(--cock-text); }

.steps {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  border: 1px solid var(--cock-line);
  border-left: 3px solid var(--brand-bright);
  border-radius: var(--r-sm);
  background: var(--cock-panel);
  padding: 13px 15px;
  opacity: 0;
  transform: translateY(5px);
  animation: stepIn 0.34s ease forwards;
}

@keyframes stepIn { to { opacity: 1; transform: none; } }

.steps li[data-key^="nemotron"] { border-left-color: #76b900; }   /* NVIDIA green */
.steps li[data-key^="hermes"]   { border-left-color: var(--brand-bright); }
.steps li[data-key^="stripe"]   { border-left-color: #635bff; }   /* Stripe purple */
.steps li[data-key^="funnel"]   { border-left-color: #5a6b63; }
.steps li.guardrail { border-left-color: var(--warn); background: rgba(180, 83, 9, 0.12); }

.steps .sys {
  align-self: center;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--cock-muted);
}

.steps .body strong { display: block; font-size: 16px; color: var(--cock-text); letter-spacing: -0.01em; }
.steps .body p { margin-top: 4px; color: var(--cock-muted); font-size: 14px; line-height: 1.36; }
.steps li.guardrail .sys { color: #f0a868; }

.proofChip {
  margin-top: 9px !important;
  font-family: var(--mono);
  font-size: 12px !important;
  color: #8fd3b6 !important;
  overflow-wrap: anywhere;
}

.liveTag {
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid var(--cock-line);
  color: var(--cock-muted);
}

.liveTag.on {
  color: #8fd3b6;
  border-color: rgba(31, 175, 83, 0.5);
  background: rgba(31, 175, 83, 0.12);
}

/* approval gate (inside cockpit) */
.approvalGate {
  margin-top: 14px;
  border: 1px solid rgba(240, 168, 104, 0.4);
  border-radius: var(--r-sm);
  background: rgba(180, 83, 9, 0.16);
  padding: 16px 18px;
  color: var(--cock-text);
}

.approvalGate strong { display: block; font-size: 16px; }
.approvalGate p { margin-top: 6px; color: var(--cock-muted); font-size: 14.5px; line-height: 1.4; }
.approvalGate b { color: var(--cock-text); }

.approvalGate .gateActions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.approvalGate .approve { background: linear-gradient(180deg, #1faf53, var(--gain)); }
.approvalGate .deny {
  background: transparent;
  border: 1px solid var(--cock-line);
  color: var(--cock-text);
  box-shadow: none;
}
.approvalGate .deny:hover { background: rgba(255, 255, 255, 0.05); filter: none; }

/* skill diff (inside cockpit) */
.skillDiff {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.skillDiff article {
  border: 1px solid var(--cock-line);
  border-radius: var(--r-sm);
  background: var(--cock-panel);
  padding: 14px 16px;
}

.skillDiff article.after { border-color: rgba(31, 175, 83, 0.45); background: rgba(31, 175, 83, 0.1); }

.skillDiff span {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--cock-muted);
}

.skillDiff h4 { margin: 8px 0 0; font-size: 16px; color: var(--cock-text); letter-spacing: -0.01em; }
.skillDiff p { margin-top: 6px; color: var(--cock-muted); font-size: 14px; line-height: 1.36; }
.skillDiff p.angle { font-style: italic; opacity: 0.92; }
.skillDiff ul.changes { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.skillDiff ul.changes li { color: var(--cock-muted); font-size: 13px; line-height: 1.34; }
.skillDiff p.reason { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--cock-line); color: var(--cock-text); font-size: 13px; }
.skillDiff p.reason strong { color: var(--cock-muted); font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.02em; }

/* ---------- result panel ---------- */
.resultPanel { margin-top: 14px; padding: 26px; }

.resultHead { display: grid; gap: 10px; }

.trafficBadge {
  justify-self: start;
  display: inline-grid;
  place-items: center;
  min-height: 32px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.07);
  color: var(--brand);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
}

.plainNote { max-width: 70ch; color: var(--muted); font-size: 17px; line-height: 1.45; }

.comparison {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 14px;
  margin-top: 18px;
}

.comparison article {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--raise);
  padding: 20px;
}

.comparison .after { border-color: rgba(21, 127, 60, 0.35); background: rgba(21, 127, 60, 0.06); }

.comparison span {
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.comparison .after span { color: var(--gain); }

.comparison strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(32px, 4.6vw, 48px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.comparison p { margin-top: 8px; color: var(--muted); font-size: 18px; font-weight: 600; }
.comparison p.rev { color: var(--ink); font-weight: 800; }
.comparison .after p.rev { color: var(--gain); }

.arrow {
  align-self: center;
  color: var(--soft);
  font-size: 26px;
  font-weight: 700;
}

.lift {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 16px;
  margin-top: 14px;
  border: 1px solid rgba(21, 127, 60, 0.3);
  border-radius: var(--r-sm);
  background: linear-gradient(180deg, rgba(31, 175, 83, 0.1), rgba(31, 175, 83, 0.04));
  padding: 18px 22px;
}

.lift span {
  color: var(--gain);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.lift strong {
  grid-row: 1 / 3;
  grid-column: 2;
  color: var(--gain);
  font-size: clamp(40px, 6vw, 60px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.lift p { grid-column: 1; color: var(--muted); font-size: 18px; font-weight: 600; }

.netNote { margin-top: 12px; color: var(--soft); font-size: 14.5px; line-height: 1.45; }

.leadReason { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 22px; }
.leadReason h2 { margin-top: 7px; font-size: clamp(24px, 3.4vw, 36px); line-height: 1.05; letter-spacing: -0.025em; }
.leadReason > p:not(.eyebrow) { max-width: 72ch; margin-top: 10px; color: var(--muted); font-size: 17px; line-height: 1.5; }

.leadSteps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.leadSteps article {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--raise);
  padding: 16px;
}

.leadSteps .mid { background: #fff; }

.leadSteps span {
  color: var(--brand);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.leadSteps strong { display: block; margin-top: 8px; font-size: clamp(22px, 2.8vw, 30px); line-height: 1.05; letter-spacing: -0.02em; }
.leadSteps p { margin-top: 7px; color: var(--muted); font-size: 15px; line-height: 1.36; }

/* ---------- why tools ---------- */
.whyTools { margin-top: 14px; padding: 26px; }

.whyGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.whyGrid article {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--raise);
  padding: 18px;
  transition: border-color 0.14s ease, transform 0.14s ease;
}

.whyGrid article:hover { border-color: var(--line-strong); transform: translateY(-2px); }

.whyGrid span { color: var(--brand); font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.whyGrid strong { display: block; margin-top: 7px; font-size: 20px; letter-spacing: -0.01em; }
.whyGrid p { margin-top: 9px; color: var(--muted); font-size: 15.5px; line-height: 1.45; }

/* ---------- story ---------- */
.story { margin-top: 14px; padding: 26px; }

.storyGrid { display: grid; gap: 9px; }

.storyGrid article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--raise);
  padding: 16px 18px;
}

.storyGrid span {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--brand);
  font-weight: 800;
  font-size: 14px;
}

.storyGrid p { color: var(--muted); font-size: 16.5px; line-height: 1.45; }
.storyGrid strong { color: var(--ink); }

.decisionTrace { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.decisionTrace > strong { font-size: 14px; }
.decisionTrace ol { display: grid; gap: 6px; margin: 9px 0 0; padding-left: 20px; }
.decisionTrace li { color: var(--muted); font-size: 15px; line-height: 1.4; }

/* ---------- judge test ---------- */
.learningLedger { margin-top: 14px; padding: 26px; }

.ledgerHead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: 18px;
  align-items: start;
}

.ledgerHead h2 {
  margin-top: 7px;
  font-size: clamp(26px, 3.4vw, 38px);
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.ledgerHead p:not(.eyebrow) {
  max-width: 66ch;
  margin-top: 9px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.ledgerStats {
  display: grid;
  gap: 8px;
  margin: 0;
}

.ledgerStats div {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--raise);
  padding: 13px 14px;
}

.ledgerStats dt {
  color: var(--soft);
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ledgerStats dd {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}

.ledgerLatest {
  margin-top: 16px;
  border: 1px solid rgba(18, 165, 148, 0.24);
  border-radius: var(--r-sm);
  background: rgba(18, 165, 148, 0.06);
  padding: 16px;
}

.ledgerLatest span,
.ledgerCard span {
  color: var(--brand);
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ledgerLatest strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 22px;
  letter-spacing: -0.015em;
}

.ledgerLatest p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.ledgerEntries {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.ledgerCard {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--raise);
  padding: 16px;
}

.ledgerCard header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.ledgerCard h3 {
  margin-top: 7px;
  color: var(--ink);
  font-size: 19px;
  letter-spacing: -0.01em;
}

.ledgerCard time {
  color: var(--soft);
  font-family: var(--mono);
  font-size: 12px;
}

.ledgerGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin-top: 12px;
}

.ledgerGrid p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.4;
}

.ledgerGrid strong {
  color: var(--ink);
  font-weight: 800;
}

.ledgerOutcome {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.ledgerOutcome b {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  background: rgba(18, 165, 148, 0.11);
  color: var(--brand);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.judgeTest { margin-top: 14px; padding: 26px; }

.judgeIntro h2 {
  margin-top: 7px;
  font-size: clamp(26px, 3.4vw, 38px);
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.judgeIntro p:not(.eyebrow) {
  max-width: 68ch;
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.judgeForm {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  gap: 10px;
  margin-top: 18px;
  align-items: end;
}

.judgeForm label {
  display: grid;
  gap: 6px;
}

.judgeForm span {
  color: var(--soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.judgeForm input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--raise);
  color: var(--ink);
  padding: 0 11px;
  font: 700 15px/1 var(--font);
}

.judgeForm input:focus {
  outline: 2px solid rgba(18, 165, 148, 0.18);
  border-color: var(--brand);
}

.judgeForm button { min-height: 44px; white-space: nowrap; }

.judgeResult {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--raise);
  padding: 16px;
}

.judgeResultHead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.judgeResultHead strong { color: var(--ink); font-size: 18px; }
.judgeResultHead span { color: var(--soft); font-family: var(--mono); font-size: 12px; }
.judgeResult > p { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.45; }

.judgeMetrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.judgeMetrics article,
.judgeResultGrid > article {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  padding: 14px;
}

.judgeMetrics span,
.pagePreview span {
  color: var(--brand);
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.judgeMetrics strong {
  display: block;
  margin-top: 6px;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.05;
}

.judgeMetrics p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.judgeResultGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.pagePreview {
  grid-row: span 2;
  background: linear-gradient(180deg, rgba(18, 165, 148, 0.07), #fff) !important;
}

.pagePreview h3 {
  margin-top: 12px;
  color: var(--ink);
  font-size: clamp(26px, 3.8vw, 42px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.pagePreview p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.pagePreview .fakeForm {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.fakeForm i,
.fakeForm b {
  min-height: 40px;
  display: grid;
  align-items: center;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 13px;
}

.fakeForm i {
  flex: 1;
  border: 1px solid var(--line-strong);
  color: var(--soft);
  font-style: normal;
}

.fakeForm b {
  background: var(--ink);
  color: #fff;
}

.previewWhy {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  font-size: 13px !important;
}

/* ---------- proof ---------- */
.proofPanel { margin-top: 14px; padding: 26px; }
.proofHead {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}
.proofHead h2 { margin-top: 7px; font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -0.025em; }
.proofSub { margin-top: 7px; color: var(--muted); font-size: 15px; line-height: 1.45; }

.receiptButton {
  width: auto;
  min-width: 150px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(18, 165, 148, 0.26);
  border-radius: var(--r-sm);
  background: var(--ink);
  color: white;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.receiptButton:disabled {
  cursor: wait;
  opacity: 0.68;
}

.receiptPanel {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--raise);
  padding: 16px;
}

.receiptHead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.receiptHead strong {
  color: var(--ink);
  font-size: 18px;
}

.receiptHead span {
  color: var(--soft);
  font-family: var(--mono);
  font-size: 12px;
}

.receiptPanel > p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.changedArtifacts {
  margin-top: 12px;
  border: 1px solid rgba(18, 165, 148, 0.24);
  border-radius: var(--r-sm);
  background: rgba(18, 165, 148, 0.06);
  padding: 13px 14px;
}

.changedArtifacts > strong {
  color: var(--ink);
  font-size: 15px;
}

.changedArtifacts p {
  margin-top: 6px;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.changedArtifacts a {
  color: var(--brand);
  font-weight: 700;
}

.receiptGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.receiptGrid article {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  padding: 14px;
}

.receiptGrid article > strong {
  display: inline-block;
  margin: 0 8px 8px 0;
  color: var(--ink);
  font-size: 16px;
}

.receiptGrid p {
  margin-top: 5px;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.35;
}

.receiptStatus {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(180, 83, 10, 0.12);
  color: #92400e;
  font-size: 11px;
  font-weight: 900;
}

.receiptStatus.ok {
  background: rgba(18, 165, 148, 0.12);
  color: var(--brand);
}

.receiptSafety {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.proofRows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.proofRows article {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--raise);
  padding: 18px;
}

.proofRows span { color: var(--brand); font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.proofRows strong { display: block; margin-top: 7px; font-size: 19px; color: var(--ink); }
.proofRows p { margin-top: 7px; color: var(--muted); font-size: 15px; line-height: 1.45; }

.liveArtifact {
  display: grid;
  gap: 5px;
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.liveArtifact strong { color: var(--ink); }
.liveArtifact p { margin-top: 0; overflow-wrap: anywhere; font-size: 13.5px; }

.liveArtifact pre {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.4;
}

/* ---------- video mode ---------- */
.videoOverlay {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 50;
  width: min(720px, calc(100vw - 28px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(13, 27, 23, 0.16);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 60px -28px rgba(13, 27, 23, 0.45);
  padding: 14px;
  transform: translateX(-50%);
}

.videoOverlay[hidden] { display: none; }
.videoOverlay span { color: var(--brand); font-family: var(--mono); font-size: 11px; font-weight: 800; }
.videoOverlay strong { display: block; margin-top: 2px; color: var(--ink); font-size: 16px; }
.videoOverlay p { margin-top: 2px; color: var(--muted); font-size: 13px; line-height: 1.35; }
.videoOverlay button { min-height: 40px; padding: 0 14px; font-size: 13px; }

.videoFocus {
  outline: 3px solid rgba(18, 165, 148, 0.34);
  outline-offset: 4px;
}

/* ---------- footer ---------- */
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: 20px;
  padding: 4px 6px;
  color: var(--soft);
  font-size: 13px;
}

.foot span:first-child { font-weight: 800; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .shell { width: calc(100vw - 22px); padding-top: 16px; }
  .hero { padding: 24px 20px; }
  .runConsole, .resultPanel, .whyTools, .story, .learningLedger, .judgeTest, .proofPanel { padding: 20px; }

  h1 { font-size: clamp(30px, 8.2vw, 46px); }
  h1 br { display: none; }

  .heroStats { grid-template-columns: 1fr; gap: 14px; }

  .whyGrid, .proofRows, .leadSteps, .receiptGrid, .judgeMetrics, .judgeResultGrid, .ledgerHead, .ledgerGrid { grid-template-columns: 1fr; }
  .proofHead { align-items: stretch; flex-direction: column; }
  .receiptButton { width: 100%; }
  .judgeForm { grid-template-columns: 1fr; }
  .judgeForm button { width: 100%; }

  .comparison { grid-template-columns: 1fr; }
  .arrow { transform: rotate(90deg); justify-self: center; }

  .skillDiff { grid-template-columns: 1fr; }

  .actions { display: grid; grid-template-columns: 1fr; }
  .secondaryAction { width: 100%; }
  .videoOverlay { grid-template-columns: 1fr; }
  .videoOverlay button { width: 100%; }

  .lift { grid-template-columns: 1fr; }
  .lift strong { grid-row: auto; grid-column: 1; margin-top: 4px; }
  .lift p { grid-column: 1; }

  .steps li { grid-template-columns: 1fr; gap: 6px; }
  .steps .sys { align-self: start; }
}
