:root {
  --ink: #252a31;
  --muted: #626a74;
  --paper: #f6f7f8;
  --white: #fff;
  --navy: #30363d;
  --blue: #385d7a;
  --orange: #786b5f;
  --green: #4d6758;
  --red: #765b58;
  --line: #dce1e6;
  --shadow: none;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; line-height: 1.62; }
a { color: var(--blue); }
img { max-width: 100%; display: block; }
.wrap { width: min(1160px, calc(100% - 36px)); margin: 0 auto; }
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); color: var(--ink); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.topbar .wrap { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -.01em; }
.nav { display: flex; flex-wrap: wrap; gap: 18px; font-size: .87rem; }
.nav a { color: var(--muted); text-decoration: none; }
.hero { background: #fff; color: var(--ink); padding: 50px 0 46px; border-bottom: 1px solid var(--line); }
.eyebrow { color: var(--muted); text-transform: uppercase; letter-spacing: .11em; font-weight: 700; font-size: .73rem; }
.hero h1 { max-width: 820px; margin: 10px 0 18px; font-family: inherit; font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.1; letter-spacing: -.035em; font-weight: 720; }
.hero .standfirst { max-width: 790px; margin: 0; color: var(--muted); font-size: clamp(1rem, 1.7vw, 1.16rem); }
.hero-meta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 11px; }
.pill { border: 1px solid var(--line); border-radius: 999px; padding: 6px 11px; color: var(--muted); font-size: .8rem; }
main { padding: 48px 0 90px; }
section { scroll-margin-top: 76px; margin: 0 0 62px; }
.section-head { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 28px; align-items: start; margin-bottom: 26px; }
.section-no { font-size: .77rem; font-weight: 700; color: var(--muted); letter-spacing: .09em; text-transform: uppercase; padding-top: 7px; }
h2 { margin: 0; font-family: inherit; font-size: clamp(1.7rem, 3vw, 2.35rem); line-height: 1.15; letter-spacing: -.025em; }
h3 { margin: 0 0 8px; font-size: 1.12rem; line-height: 1.3; }
p { margin: 0 0 14px; }
.lead { color: var(--muted); font-size: 1.12rem; max-width: 800px; }
.verdict { border-radius: 12px; border: 1px solid var(--line); background: var(--white); box-shadow: none; display: grid; grid-template-columns: 1.1fr .9fr; overflow: hidden; }
.verdict-copy { padding: 36px; }
.verdict-copy h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); }
.verdict-side { padding: 36px; background: #f7f8f9; border-left: 1px solid var(--line); }
.verdict-side strong { display: block; font-size: 1.05rem; margin-bottom: 6px; }
.status { display: inline-flex; border-radius: 5px; padding: 5px 8px; margin-bottom: 15px; background: #eef0f2; color: #555d66; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 22px 0 0; }
.metric { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 18px; }
.metric b { display: block; font-family: inherit; font-size: 1.55rem; line-height: 1; margin-bottom: 9px; color: var(--ink); }
.metric span { color: var(--muted); font-size: .9rem; }
.promise { margin: 22px 0 0; padding: 22px 24px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.promise p:last-child { margin-bottom: 0; }
.ladder { display: grid; gap: 12px; }
.rung { display: grid; grid-template-columns: 56px 190px minmax(0,1fr) 118px; gap: 18px; align-items: center; padding: 17px 19px; border: 1px solid var(--line); border-radius: 9px; background: var(--white); }
.rung-no { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--muted); background: #f0f2f4; font-weight: 700; }
.rung-title { font-weight: 850; }
.rung-copy { color: var(--muted); }
.rung-state { justify-self: end; border-radius: 999px; padding: 6px 10px; font-size: .72rem; font-weight: 850; text-transform: uppercase; letter-spacing: .05em; text-align: center; }
.rung-state.proven { background: #edf2ef; color: var(--green); }
.rung-state.partial { background: #f3f0ec; color: #6f6257; }
.rung-state.rejected { background: #f2eeee; color: var(--red); }
.rung-state.pending { background: #eef1f3; color: var(--blue); }
.rung-actions { grid-column: 3 / 5; display: flex; gap: 9px; flex-wrap: wrap; margin-top: -4px; }
.timeline { position: relative; margin-left: 10px; }
.timeline:before { content: ""; position: absolute; left: 12px; top: 12px; bottom: 10px; width: 2px; background: #ccd5df; }
.step { position: relative; display: grid; grid-template-columns: 54px 150px minmax(0,1fr); gap: 16px; padding: 0 0 34px; }
.dot { width: 24px; height: 24px; border-radius: 50%; background: #69717a; border: 6px solid var(--paper); z-index: 1; }
.when { font-weight: 700; color: var(--muted); font-size: .84rem; padding-top: 2px; }
.step-card { background: var(--white); border: 1px solid var(--line); border-radius: 9px; padding: 21px 23px; }
.step-card p:last-child { margin-bottom: 0; }
.tag { display: inline-block; padding: 3px 7px; border-radius: 4px; font-size: .69rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-top: 4px; }
.tag.good { background: #e5f2eb; color: var(--green); }
.tag.warn { background: #fff0e4; color: #985019; }
.tag.bad { background: #f8e8e6; color: var(--red); }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 24px; }
.card ul { padding-left: 20px; margin-bottom: 0; }
.card li + li { margin-top: 8px; }
.worked { border-top: 2px solid #89988f; }
.failed { border-top: 2px solid #9a8c8a; }
.callout { border-left: 3px solid #8a8f96; padding: 20px 23px; background: #f1f3f4; border-radius: 0 8px 8px 0; margin-top: 22px; }
.evidence-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.evidence { background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.evidence figure { margin: 0; background: #e8edf2; aspect-ratio: 16/10; overflow: hidden; }
.evidence figure img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.evidence-body { padding: 22px; }
.evidence-body p { color: var(--muted); }
.buttons { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 17px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 12px; border-radius: 6px; font-weight: 700; text-decoration: none; background: #454c54; color: #fff; }
.button.secondary { color: var(--navy); background: #fff; border: 1px solid #aeb9c5; }
.qa-chart { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.score { padding: 23px; border-radius: 8px; color: var(--ink); border: 1px solid var(--line); }
.score.goodish { background: #f2f5f3; }
.score.badish { background: #f5f2f2; }
.score b { display: block; font-family: inherit; font-size: 2rem; line-height: 1; }
.score span { display: block; margin-top: 10px; max-width: 360px; }
.model-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.model-table th, .model-table td { padding: 15px 17px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.model-table th { background: #eef0f2; color: var(--ink); font-size: .77rem; letter-spacing: .04em; text-transform: uppercase; }
.model-table tr:last-child td { border-bottom: 0; }
.model-table .pass { color: var(--green); font-weight: 850; }
.model-table .fail { color: var(--red); font-weight: 850; }
.next { background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 32px; }
.next h2 { color: var(--ink); }
.next ol { padding-left: 22px; margin-bottom: 0; }
.next li + li { margin-top: 12px; }
.gate { margin-top: 22px; padding: 18px 20px; border-radius: 8px; background: #f1f3f4; }
.fineprint { color: var(--muted); font-size: .86rem; }
footer { border-top: 1px solid var(--line); padding: 28px 0 52px; color: var(--muted); font-size: .88rem; }
@media (max-width: 820px) {
  .nav { display: none; }
  .hero { padding: 42px 0 38px; }
  .section-head { grid-template-columns: 1fr; gap: 6px; }
  .verdict, .two-col, .evidence-grid, .qa-chart { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .step { grid-template-columns: 38px 1fr; gap: 10px; }
  .when { grid-column: 2; }
  .step-card { grid-column: 2; }
  .rung { grid-template-columns: 46px 1fr; gap: 10px; }
  .rung-title, .rung-copy, .rung-state, .rung-actions { grid-column: 2; justify-self: start; }
}
@media (max-width: 500px) {
  .wrap { width: min(calc(100% - 22px), 1160px); }
  .hero h1 { font-size: 1.85rem; overflow-wrap: anywhere; }
  h2 { font-size: 1.6rem; overflow-wrap: anywhere; }
  main { padding-top: 32px; }
  section { margin-bottom: 46px; }
  .metrics { grid-template-columns: 1fr 1fr; gap: 9px; }
  .metric { padding: 15px; }
  .metric b { font-size: 1.8rem; }
  .verdict-copy, .verdict-side, .next { padding: 24px; }
  .model-table { display: block; overflow-x: auto; }
}
