:root {
  --paper: #F6F3EC;
  --card: #FFFDF8;
  --ink: #0E1620;
  --ink-2: #16212D;
  --graphite: #46505C;
  --muted: #5F6872;
  --rule: #DAD3C4;
  --rule-strong: #B9B09D;
  --petrol: #0B4F5C;
  --petrol-deep: #083A44;
  --petrol-tint: #E4EEEC;
  --amber: #E9A23B;
  --recover: #1D7A55;
  --leak: #B83A26;
  --caution: #8F5D12;
  --on-ink: #F6F3EC;
  --on-ink-soft: #B4BCC4;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --shadow: 0 1px 0 var(--rule), 0 12px 32px -18px rgba(14, 22, 32, .28);
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--petrol); text-underline-offset: 3px; }
a:hover { color: var(--petrol-deep); }
:focus-visible { outline: 3px solid var(--petrol); outline-offset: 2px; }
.band-ink :focus-visible { outline-color: var(--amber); }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
h1, h2 { font-family: var(--serif); font-optical-sizing: auto; line-height: 1.05; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.125rem; line-height: 1.3; }
p { margin: 0 0 1em; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--on-ink); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 16px; top: 16px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
@media (max-width: 480px) { :root { --gutter: 16px; } body { font-size: 16px; } }

/* Eyebrow */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font: 500 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--petrol); margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; flex: none; }
.eyebrow-light { color: var(--amber); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 2px; border: 1px solid transparent;
  font: 600 15px/1.25 var(--sans); text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn span[aria-hidden] { transition: transform .15s; }
.btn:hover span[aria-hidden] { transform: translateX(3px); }
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-ink:hover { background: var(--petrol-deep); color: var(--on-ink); }
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-amber:hover { background: #F2B65A; color: var(--ink); }
.btn-ghost-light { border-color: rgba(246, 243, 236, .45); color: var(--on-ink); }
.btn-ghost-light:hover { border-color: var(--on-ink); color: var(--on-ink); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 243, 236, .94); backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-text { font: 600 17px/1.1 var(--serif); letter-spacing: -.01em; }
.brand-text span { color: var(--petrol); }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--graphite); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav a:hover { color: var(--ink); }
@media (max-width: 1060px) { .nav { display: none; } .header-cta { margin-left: auto; } }
@media (max-width: 420px) { .header-cta { padding: 8px 12px; font-size: 13px; } .brand-text { font-size: 15px; } }

/* Ink bands */
.band-ink { background: var(--ink); color: var(--on-ink); }
.band-ink p { color: var(--on-ink-soft); }
.band-ink strong { color: var(--on-ink); font-weight: 600; }

/* Hero */
.hero { padding: clamp(56px, 8vw, 112px) 0 clamp(56px, 7vw, 96px); position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(246,243,236,.035) 1px, transparent 1px);
  background-size: 100% 32px;
}
.hero-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 72px); align-items: center; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.25rem); margin-bottom: 26px; color: var(--on-ink); }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--amber); }
.lede { font-size: 1.125rem; max-width: 60ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .hero-ctas .btn { width: 100%; } }

/* Receipt */
.receipt {
  background: var(--card); color: var(--ink); border-radius: 4px; padding: 26px 26px 22px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
  position: relative; transform: rotate(-1.2deg);
}
.receipt::before, .receipt::after {
  content: ""; position: absolute; left: 0; right: 0; height: 10px;
  background: radial-gradient(circle at 5px 0, transparent 5px, var(--card) 5.5px) 0 0 / 14px 10px repeat-x;
}
.receipt::before { top: -10px; transform: scaleY(-1); }
.receipt::after { bottom: -10px; }
.receipt-head { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; letter-spacing: .1em; color: var(--muted); padding-bottom: 14px; border-bottom: 1px dashed var(--rule-strong); }
.receipt-lines { list-style: none; margin: 0; padding: 8px 0; }
.receipt-lines li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; font-size: 14px; border-bottom: 1px solid #EEE8DC; }
.receipt-lines li span:first-child { color: var(--graphite); }
.receipt-lines .mono { color: var(--leak); white-space: nowrap; }
.receipt-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 14px; border-top: 2px solid var(--ink); font-weight: 600; }
.receipt-total .mono { font-size: 1.6rem; color: var(--recover); }
.receipt .receipt-note { margin: 12px 0 0; font-size: 12px; color: var(--muted); }
@media (max-width: 900px) { .receipt { transform: none; } }
@media (max-width: 420px) { .receipt { padding: 22px 16px 18px; } .receipt-lines li { font-size: 13px; } }

/* Metrics */
.metrics { background: var(--card); border-bottom: 1px solid var(--rule); }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.metric { padding: 26px 20px; border-left: 1px solid var(--rule); display: flex; flex-direction: column; gap: 4px; }
.metric:first-child { border-left: 0; padding-left: 0; }
.metric-fig { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 500; color: var(--ink); line-height: 1.1; }
.metric-label { font-size: 13px; color: var(--muted); }
@media (max-width: 760px) {
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .metric { padding: 20px 14px; }
  .metric:nth-child(odd) { border-left: 0; padding-left: 0; }
  .metric:nth-child(n+3) { border-top: 1px solid var(--rule); }
}

/* Sections */
.section { padding: clamp(64px, 9vw, 128px) 0; }
.section-alt { background: #EFEBE1; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section-head { max-width: 780px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head h2 { margin-bottom: 16px; }
.section-sub { color: var(--graphite); max-width: 66ch; margin: 0; }

.card { background: var(--card); border: 1px solid var(--rule); border-radius: 4px; box-shadow: var(--shadow); }

/* Calculator */
.calc-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 28px; align-items: start; }
.calc-inputs { padding: clamp(20px, 3vw, 36px); }
.field { border: 0; margin: 0; padding: 0 0 26px; }
.field + .field { padding-top: 26px; border-top: 1px solid var(--rule); }
.field:last-child { padding-bottom: 0; }
.field-label { float: left; width: 100%; display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; padding: 0; margin-bottom: 14px; }
.field-label + * { clear: both; }
.step { display: inline-grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--ink); border-radius: 50%; font-size: 12px; flex: none; }

.range-pair { display: flex; align-items: center; gap: 18px; }
.range-pair input[type=range] { flex: 1; min-width: 0; }
.num-wrap { display: flex; align-items: center; border: 1px solid var(--rule-strong); border-radius: 2px; background: #fff; width: 170px; flex: none; }
.num-wrap-sm { width: 92px; }
.num-wrap input { border: 0; background: transparent; width: 100%; min-width: 0; padding: 10px 10px; font-size: 16px; color: var(--ink); text-align: right; }
.num-wrap input:focus { outline: none; }
.num-wrap:focus-within { outline: 3px solid var(--petrol); outline-offset: 1px; }
.num-prefix { padding-left: 12px; color: var(--muted); }
.num-suffix { padding-right: 12px; color: var(--muted); }
.range-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 8px; padding-right: 188px; }
.range-pair:has(.num-wrap-sm) + .range-scale { padding-right: 110px; }
.range-scale .bench { color: var(--petrol); }
@media (max-width: 560px) {
  .range-pair { flex-direction: column; align-items: stretch; gap: 12px; }
  .num-wrap, .num-wrap-sm { width: 100%; }
  .range-scale, .range-pair:has(.num-wrap-sm) + .range-scale { padding-right: 0; }
}

input[type=range] {
  -webkit-appearance: none; appearance: none; height: 28px; background: transparent; cursor: pointer;
  --fill: 50%;
}
input[type=range]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 2px;
  background: linear-gradient(to right, var(--petrol) var(--fill), var(--rule) var(--fill));
}
input[type=range]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--rule); }
input[type=range]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--petrol); }
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%;
  background: var(--card); border: 2px solid var(--petrol); box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--card); border: 2px solid var(--petrol); }

.choices { display: grid; gap: 8px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice-body {
  display: flex; flex-direction: column; gap: 2px; padding: 12px 16px 12px 18px;
  border: 1px solid var(--rule); border-radius: 2px; background: #fff;
  border-left: 3px solid transparent; transition: border-color .15s, background-color .15s;
}
.choice:hover .choice-body { border-color: var(--rule-strong); }
.choice input:checked + .choice-body { border-color: var(--petrol); border-left-color: var(--petrol); background: var(--petrol-tint); }
.choice input:focus-visible + .choice-body { outline: 3px solid var(--petrol); outline-offset: 2px; }
.choice-title { font-weight: 500; font-size: 15px; }
.choice-note { font-size: 13px; color: var(--muted); }

.calc-result { position: sticky; top: 92px; }
@media (max-width: 960px) { .calc-grid { grid-template-columns: 1fr; } .calc-result { position: static; } }
.result-card { padding: clamp(20px, 3vw, 32px); }
.result-card .eyebrow { margin-bottom: 8px; }
.result-total { font-size: clamp(2.3rem, 4.4vw, 3.2rem); font-weight: 500; line-height: 1.05; margin: 0 0 6px; color: var(--recover); letter-spacing: -.02em; }
.result-pct { color: var(--graphite); margin-bottom: 20px; }
.result-pct .mono { color: var(--ink); font-weight: 500; }
.ledger { list-style: none; margin: 0 0 22px; padding: 0; border-top: 1px solid var(--rule); }
.ledger li { padding: 13px 0 12px; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; }
.ledger-row { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 8px; font-size: 14px; }
.ledger-row > span:first-child { color: var(--graphite); }
.ledger .dots { flex: 1; border-bottom: 1px dotted var(--rule-strong); min-width: 16px; transform: translateY(-4px); }
.ledger .val { font-weight: 500; white-space: nowrap; }
.bar { height: 4px; background: #EEE8DC; border-radius: 2px; overflow: hidden; align-self: center; }
.bar i { display: block; height: 100%; width: 0; background: var(--petrol); transition: width .28s ease; }
.share { font-size: 12px; color: var(--muted); min-width: 40px; text-align: right; }

.stub {
  position: relative; margin: 0 -1px 22px; padding: 18px 0 2px;
  border-top: 1.5px dashed var(--rule-strong);
}
.result-card .stub, .score-result .stub { margin-left: 0; margin-right: 0; }
.stub::before, .stub::after {
  content: ""; position: absolute; top: -10px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--rule);
}
.section-alt .stub::before, .section-alt .stub::after { background: #EFEBE1; }
.stub::before { left: calc(-1 * clamp(20px, 3vw, 32px) - 10px); }
.stub::after { right: calc(-1 * clamp(20px, 3vw, 32px) - 10px); }
.stub-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 6px 0; }
.stub-label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stub-val { font-weight: 600; text-align: right; font-size: 15px; }
.stub-roi .stub-val { color: var(--recover); font-size: 1.15rem; }
.fine { font-size: 12.5px; color: var(--muted); margin: 14px 0 0; }

/* Scorecard */
.score-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 28px; align-items: start; }
@media (max-width: 960px) { .score-grid { grid-template-columns: 1fr; } }
.clauses { padding: 8px clamp(14px, 2.4vw, 28px); }
.clause { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--rule); cursor: pointer; }
.clause:last-child { border-bottom: 0; }
.clause input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--recover); cursor: pointer; }
.clause-body { display: flex; flex-direction: column; gap: 3px; }
.clause-title { font-weight: 600; font-size: 15px; }
.clause-q { font-size: 14px; color: var(--graphite); }
.chip { font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 6px 8px; border-radius: 2px; white-space: nowrap; border: 1px solid currentColor; }
.chip-high { color: var(--leak); }
.chip-medhigh { color: var(--leak); opacity: .85; }
.chip-med { color: var(--caution); }
.clause input:checked ~ .chip { color: var(--recover); opacity: 1; }
@media (max-width: 520px) {
  .clause { grid-template-columns: auto 1fr; }
  .clause .chip { grid-column: 2; justify-self: start; }
}
.score-result { padding: clamp(20px, 3vw, 32px); position: sticky; top: 92px; }
@media (max-width: 960px) { .score-result { position: static; } }
.rating { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 500; margin: 0 0 14px; letter-spacing: -.01em; }
.rating[data-state=critical] { color: var(--leak); }
.rating[data-state=moderate] { color: var(--caution); }
.rating[data-state=institutional] { color: var(--recover); }
.gauge { height: 8px; background: #EEE8DC; border-radius: 4px; overflow: hidden; margin-bottom: 12px; }
.gauge i { display: block; height: 100%; width: 0; background: var(--leak); transition: width .28s ease, background-color .28s; }
.score-line { color: var(--graphite); font-size: 14px; margin-bottom: 22px; }
.score-line .mono { color: var(--ink); font-weight: 500; }
#s-evap { color: var(--leak); font-size: 1.15rem; }
.missing-title { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 6px 0 8px; }
.missing { list-style: none; margin: 0 0 22px; padding: 0; font-size: 14px; }
.missing li { padding: 7px 0 7px 18px; position: relative; border-bottom: 1px solid #EEE8DC; color: var(--graphite); }
.missing li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 8px; height: 2px; background: var(--leak); }
.missing li.none { padding-left: 0; color: var(--recover); }
.missing li.none::before { display: none; }

/* Independence */
.independence { padding: clamp(64px, 8vw, 112px) 0; }
.independence h2 { color: var(--on-ink); max-width: 18ch; margin-bottom: 48px; }
.zeros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid rgba(246,243,236,.18); }
.zero { padding: 30px 28px 6px 0; }
.zero + .zero { padding-left: 28px; border-left: 1px solid rgba(246,243,236,.18); }
.zero-fig { display: block; font-size: 3.4rem; line-height: 1; color: var(--amber); margin-bottom: 14px; }
.zero h3 { color: var(--on-ink); margin-bottom: 8px; }
.zero p { font-size: 15px; }
@media (max-width: 820px) {
  .zeros { grid-template-columns: 1fr; }
  .zero, .zero + .zero { padding: 24px 0 6px; border-left: 0; }
  .zero + .zero { border-top: 1px solid rgba(246,243,236,.18); }
}

/* Pillars */
.pillars { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.pillar { padding: 32px 36px 28px 0; border-bottom: 1px solid var(--rule); }
.pillar:nth-child(even) { padding-left: 36px; padding-right: 0; border-left: 1px solid var(--rule); }
.pillar-num { display: block; color: var(--petrol); font-size: 13px; margin-bottom: 14px; }
.pillar h3 { font-family: var(--serif); font-size: 1.45rem; margin-bottom: 12px; }
.pillar p { color: var(--graphite); margin: 0; max-width: 56ch; }
@media (max-width: 820px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar:nth-child(even) { padding: 28px 0 24px; border-left: 0; }
}

/* Benchmarks */
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 4px; background: var(--card); box-shadow: var(--shadow); }
.bench-table { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 14.5px; }
.bench-table th, .bench-table td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
.bench-table thead th { font: 500 11px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: #F9F6EF; border-bottom: 1px solid var(--ink); }
.bench-table tbody th { font-weight: 600; color: var(--ink); width: 30%; }
.bench-table tbody tr:last-child > * { border-bottom: 0; }
.bench-table td { color: var(--graphite); }
.bench-table .tq { background: var(--petrol-tint); color: var(--petrol-deep); font-weight: 500; }
.bench-table thead .tq { color: var(--petrol); background: #DCE8E5; }
@media (max-width: 760px) {
  .bench-table tbody th { position: sticky; left: 0; background: var(--card); z-index: 1; box-shadow: 1px 0 0 var(--rule); }
}

/* Engagement */
.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .models { grid-template-columns: 1fr; } }
.model { padding: 28px 26px; display: flex; flex-direction: column; }
.model-feature { border-top: 3px solid var(--petrol); }
.model-tag { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--petrol); margin-bottom: 10px; }
.model h3 { font-family: var(--serif); font-size: 1.35rem; margin-bottom: 14px; }
.model-price { font-size: 1.15rem; font-weight: 500; padding: 12px 0; border-top: 1px dashed var(--rule-strong); border-bottom: 1px dashed var(--rule-strong); margin-bottom: 18px; }
.model-price span { display: block; font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.ticks { list-style: none; margin: 0 0 18px; padding: 0; font-size: 15px; color: var(--graphite); }
.ticks li { position: relative; padding: 5px 0 5px 22px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 9px; height: 5px; border-left: 2px solid var(--recover); border-bottom: 2px solid var(--recover); transform: rotate(-45deg); }
.model-fit { margin: auto 0 0; font-size: 13.5px; color: var(--muted); padding-top: 12px; border-top: 1px solid var(--rule); }

/* FAQ */
.faq-wrap { max-width: 920px; }
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule-strong); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font: 600 1.1rem/1.4 var(--sans);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 18px; font: 400 26px/1 var(--mono); color: var(--petrol);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--graphite); padding: 0 44px 22px 0; margin: 0; max-width: 72ch; }

/* Briefing / form */
.briefing { padding: clamp(64px, 9vw, 120px) 0; }
.brief-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 960px) { .brief-grid { grid-template-columns: 1fr; } }
.brief-copy h2 { color: var(--on-ink); margin-bottom: 20px; }
.brief-steps { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid rgba(246,243,236,.18); }
.brief-steps li { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(246,243,236,.18); color: var(--on-ink); font-size: 15px; }
.brief-steps .mono { color: var(--amber); font-size: 13px; padding-top: 2px; }
.lead-form { color: var(--ink); padding: clamp(20px, 3vw, 36px); }
.lead-form p { color: var(--muted); }
.form-head h3 { font-family: var(--serif); font-size: 1.5rem; margin-bottom: 6px; }
.sync-note { min-height: 0; margin: 0 0 14px; font-size: 13.5px; }
.sync-note:not(:empty) { color: var(--recover) !important; padding: 10px 12px; background: #E6F1EB; border-left: 3px solid var(--recover); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; margin: 10px 0 22px; position: relative; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.f { display: flex; flex-direction: column; gap: 6px; }
.f-full { grid-column: 1 / -1; }
.f > span { font-size: 13px; font-weight: 600; color: var(--graphite); }
.f b { color: var(--leak); font-weight: 600; }
.f input, .f select, .f textarea {
  font: 400 15px/1.4 var(--sans); color: var(--ink); background: #fff;
  border: 1px solid var(--rule-strong); border-radius: 2px; padding: 11px 12px; width: 100%; min-width: 0;
}
.f select { appearance: none; -webkit-appearance: none; padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, var(--graphite) 50%), linear-gradient(135deg, var(--graphite) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.f textarea { font: 400 13.5px/1.5 var(--mono); resize: vertical; min-height: 140px; }
.f input:focus, .f select:focus, .f textarea:focus { outline: 3px solid var(--petrol); outline-offset: 1px; border-color: var(--petrol); }
.f.invalid input, .f.invalid select { border-color: var(--leak); }
.f.flash input, .f.flash select, .f.flash textarea { animation: flash 1.2s ease; }
@keyframes flash { 0%, 60% { box-shadow: 0 0 0 3px rgba(11,79,92,.45); border-color: var(--petrol); } 100% { box-shadow: none; } }
.hp { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 12px 0 0; font-size: 14px; font-weight: 500; min-height: 1px; }
.form-status.ok { color: var(--recover) !important; }
.form-status.err { color: var(--leak) !important; }
.lead-form.sent .form-grid, .lead-form.sent #lead-submit, .lead-form.sent .sync-note { display: none; }
.lead-form a { color: var(--petrol); }

/* Footer */
.site-footer { background: var(--ink-2); color: var(--on-ink-soft); padding: 48px 0 28px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 32px; padding-bottom: 28px; border-bottom: 1px solid rgba(246,243,236,.14); }
.footer-grid p { max-width: 48ch; margin: 12px 0 0; }
.brand-foot { color: var(--on-ink); }
.brand-foot:hover { color: var(--on-ink); }
.brand-foot .brand-text span { color: var(--amber); }
.site-footer nav { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 32px; align-content: start; }
.site-footer a { color: var(--on-ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--on-ink); text-decoration: underline; }
.foot-base { padding-top: 20px; font-size: 12px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

/* Privacy page */
.doc { max-width: 760px; padding: clamp(48px, 7vw, 96px) var(--gutter); margin: 0 auto; }
.doc h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 24px; }
.doc h2 { font-size: 1.4rem; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--graphite); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media (max-width: 480px) { .hide-sm { display: none; } }

/* =========================================================================
   Phase 2: 42-page library (design.md section 9)
   ========================================================================= */

/* Global header: silo dropdowns */
.nav-silos { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav-group { position: relative; }
.nav-group summary, .nav-mobile summary {
  list-style: none; cursor: pointer; padding: 8px 10px; border-radius: 2px;
  font-size: 14px; font-weight: 500; color: var(--graphite); display: inline-flex; align-items: center; gap: 6px;
}
.nav-group summary::-webkit-details-marker, .nav-mobile summary::-webkit-details-marker { display: none; }
.nav-group summary::after, .nav-mobile summary::after {
  content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform .15s;
}
.nav-group[open] summary::after, .nav-mobile[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.nav-group summary:hover, .nav-group[open] summary { color: var(--ink); background: #ECE7DC; }
.nav-group[data-active] summary { color: var(--ink); box-shadow: inset 0 -2px 0 var(--petrol); }
.nav-panel {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); width: 340px; z-index: 60;
  background: var(--card); border: 1px solid var(--rule); border-radius: 4px; box-shadow: var(--shadow); padding: 16px 18px 12px;
}
.nav-group:last-child .nav-panel { left: auto; right: 0; transform: none; }
.nav-panel-head { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.nav-panel ul, .nav-sheet ul { list-style: none; margin: 0; padding: 0; }
.nav-panel li a, .nav-sheet li a { display: block; padding: 7px 0; font-size: 14px; color: var(--ink); text-decoration: none; border-bottom: 1px solid #EEE8DC; }
.nav-panel li:last-child a { border-bottom: 0; }
.nav-panel li a:hover, .nav-sheet li a:hover { color: var(--petrol); }
.nav-panel li a[aria-current], .nav-sheet li a[aria-current] { color: var(--petrol); font-weight: 600; }
.nav-hub a { font-family: var(--mono); font-size: 12px !important; letter-spacing: .08em; text-transform: uppercase; color: var(--petrol) !important; }
.nav-mobile { display: none; margin-left: auto; }
.nav-sheet {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 60; background: var(--card); border-bottom: 1px solid var(--rule);
  box-shadow: var(--shadow); padding: 12px var(--gutter) 24px; max-height: calc(100vh - 68px); overflow-y: auto;
}
.nav-sheet-home a { font-weight: 600; color: var(--ink); text-decoration: none; }
.nav-sheet-group { padding-top: 14px; }
.nav-sheet-head { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--petrol); margin: 0 0 4px; }
.site-header .header-inner { position: relative; }
@media (max-width: 1060px) {
  .nav-silos { display: none; }
  .nav-mobile { display: block; }
  .nav-mobile + .header-cta { margin-left: 0; }
}

/* Breadcrumbs */
.crumbs { border-bottom: 1px solid var(--rule); background: var(--paper); }
.crumbs .wrap { display: flex; flex-wrap: wrap; gap: 6px 10px; padding-top: 10px; padding-bottom: 10px; font-size: 12px; color: var(--muted); }
.crumbs a { color: var(--graphite); text-decoration: none; }
.crumbs a:hover { color: var(--petrol); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); }
.crumbs .sep { color: var(--rule-strong); }

/* Document page hero */
.page-hero { padding: clamp(44px, 6vw, 84px) 0 clamp(40px, 5vw, 64px); }
.page-hero h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); color: var(--on-ink); max-width: 24ch; margin-bottom: 22px; }
.page-lede { max-width: 70ch; font-size: 1.08rem; }
.page-lede p { color: var(--on-ink-soft); }
.page-lede strong { color: var(--on-ink); }
.page-lede a { color: var(--amber); }
.page-meta { font-size: 12px; letter-spacing: .06em; color: var(--on-ink-soft); margin: 4px 0 26px; }

/* Article column */
.doc-wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(24px, 4vw, 48px); }
.doc-wrap .toc { grid-column: 1; }
.doc-wrap .doc-body { grid-column: 2; max-width: 780px; min-width: 0; }
.toc { position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; }
.toc-head { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.toc-links { display: flex; flex-direction: column; border-left: 1px solid var(--rule); }
.toc-links a { padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; font-size: 13.5px; line-height: 1.35; color: var(--graphite); text-decoration: none; }
.toc-links a:hover { color: var(--ink); border-left-color: var(--rule-strong); }
.toc-links .toc-tool { color: var(--petrol); font-weight: 600; }
@media (max-width: 1000px) {
  .doc-wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .doc-wrap .toc, .doc-wrap .doc-body { grid-column: 1; }
  .toc { position: static; max-height: none; }
  .toc-links { flex-direction: row; flex-wrap: wrap; gap: 8px; border-left: 0; }
  .toc-links a { border: 1px solid var(--rule); border-radius: 2px; padding: 5px 10px; margin: 0; font-size: 13px; background: var(--card); }
}
.doc-section { padding: 0 0 clamp(36px, 5vw, 56px); }
.doc-section h2 { font-size: clamp(1.55rem, 2.6vw, 2.1rem); margin-bottom: 18px; padding-top: 22px; position: relative; }
.doc-section h2::before { content: ""; position: absolute; top: 0; left: 0; width: 24px; height: 2px; background: var(--petrol); }
.doc-section h3 { font-size: 1.12rem; margin: 26px 0 10px; }
.doc-section p, .doc-section li { color: #1E2833; }
.doc-section ul, .doc-section ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.doc-section li { margin-bottom: .45em; }
.doc-section code { font-family: var(--mono); font-size: .88em; background: #EDE8DD; padding: 1px 5px; border-radius: 2px; }
.doc-section .table-wrap { margin: 18px 0 26px; }

/* Data table */
table.data { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--card); min-width: 560px; }
table.data th, table.data td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
table.data thead th { font: 500 11px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: #F1EDE4; border-bottom: 1px solid var(--rule-strong); }
table.data tbody th { font-weight: 600; color: var(--ink); }
table.data td.mono { white-space: nowrap; }
table.data .tq { background: var(--petrol-tint); }
table.data thead .tq { color: var(--petrol); }
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 4px; -webkit-overflow-scrolling: touch; }
@media (max-width: 760px) {
  table.data tbody th { position: sticky; left: 0; background: var(--card); z-index: 1; box-shadow: 1px 0 0 var(--rule); min-width: 130px; max-width: 46vw; }
}

/* Contract clause, callout, steps, key-value */
blockquote.clause { position: relative; margin: 20px 0 26px; padding: 18px 22px 16px; background: var(--card); border: 1px solid var(--rule); border-left: 3px solid var(--petrol); border-radius: 4px; }
blockquote.clause p { font-size: 15px; color: var(--ink); margin-bottom: .6em; }
blockquote.clause .clause-tag { font: 500 11px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--petrol); margin: 0 8.5em 10px 0; }
.clause-copy { position: absolute; top: 12px; right: 12px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; background: transparent; border: 1px solid var(--rule-strong); color: var(--graphite); border-radius: 2px; padding: 5px 9px; cursor: pointer; }
.clause-copy:hover { border-color: var(--ink); color: var(--ink); }
aside.callout { margin: 20px 0 26px; padding: 16px 20px; background: var(--card); border: 1px solid var(--rule); border-left: 3px solid var(--amber); border-radius: 4px; }
aside.callout p:last-child { margin-bottom: 0; }
ol.steps { list-style: none; counter-reset: step; padding: 0 !important; }
ol.steps > li { counter-increment: step; position: relative; padding: 0 0 18px 46px; margin: 0 0 18px; border-bottom: 1px solid var(--rule); }
ol.steps > li:last-child { border-bottom: 0; }
ol.steps > li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 2px; width: 30px; height: 26px; display: grid; place-items: center; background: var(--ink); color: var(--on-ink); font: 500 12px/1 var(--mono); border-radius: 2px; }
dl.kv { margin: 18px 0 26px; border-top: 1px solid var(--rule); }
dl.kv > div { display: grid; grid-template-columns: minmax(140px, 32%) 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--rule); }
dl.kv dt { font-weight: 600; font-size: 14.5px; }
dl.kv dd { margin: 0; color: #1E2833; font-size: 14.5px; }
@media (max-width: 560px) { dl.kv > div { grid-template-columns: 1fr; gap: 4px; } }

/* Tools */
.tool { scroll-margin-top: 70px; }
.tool-stack { display: grid; gap: 22px; }
.tool-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; }
.tool-row .field + .field { border-top: 0; padding-top: 0; }
.tool-row .field { padding-bottom: 0; }
@media (max-width: 960px) {
  .tool-row { grid-template-columns: 1fr; }
  .tool-row .field + .field { border-top: 1px solid var(--rule); padding-top: 22px; }
  .tool-row .field { padding-bottom: 22px; }
  .tool-row .field:last-child { padding-bottom: 0; }
}
.tool-spend-row, .tool-spend { padding: clamp(18px, 2.6vw, 28px); }
.tool-col { display: grid; gap: 18px; min-width: 0; }
.result-wide { padding: clamp(20px, 3vw, 32px); min-width: 0; }
.field-help { clear: both; font-size: 13.5px; color: var(--muted); margin: -6px 0 12px; }
.num-wrap-suffix { width: 210px; }
.ledger-plain li { grid-template-columns: 1fr; }
.verdict { font-weight: 600; margin: 16px 0 6px; }
.vendor-notes { list-style: none; padding: 0; margin: 0 0 18px; font-size: 14px; color: var(--graphite); }
.vendor-notes li { padding: 6px 0; border-bottom: 1px dotted var(--rule-strong); }
.vendor-notes:empty { display: none; }
.h2h-table tr.sub th, .h2h-table tr.sub td { color: var(--graphite); background: #F7F4EC; }
.h2h-table tr.sub .tq { background: var(--petrol-tint); }
.h2h-table tr.total th, .h2h-table tr.total td { font-weight: 600; font-size: 15px; border-top: 2px solid var(--ink); }
.score-table input.bidder-name { width: 100%; min-width: 110px; font: 500 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; background: #fff; border: 1px solid var(--rule-strong); border-radius: 2px; padding: 6px 8px; color: var(--ink); }
.score-table input.w-in { width: 72px; padding: 7px 8px; border: 1px solid var(--rule-strong); border-radius: 2px; font-size: 15px; background: #fff; text-align: right; }
.score-table select.s-in { padding: 7px 8px; border: 1px solid var(--rule-strong); border-radius: 2px; font-size: 15px; background: #fff; min-width: 64px; }
.score-table tfoot th, .score-table tfoot td { border-bottom: 0; font-weight: 600; }
.rank { list-style: none; padding: 0; margin: 0 0 6px; border-top: 1px solid var(--rule); }
.rank li { padding: 12px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 8px; }
.rank li .val { font-size: 1.15rem; }
.rank li.lead .val { color: var(--recover); }
.rank li.lead .bar i { background: var(--recover); }
.policy-out { margin: 0 0 16px; padding: 10px 0 6px 1.3em; font-size: 14px; max-height: 340px; overflow-y: auto; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.policy-out li { margin-bottom: .6em; color: #1E2833; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; margin-bottom: 10px; }
.btn-ghost:hover { background: var(--ink); color: var(--on-ink); }
.builder-grid { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--rule); }
.builder-grid .f > span { display: flex; align-items: center; gap: 10px; }
.tool-filters { padding: clamp(18px, 2.6vw, 28px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 32px; align-items: end; }
.filter-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
@media (max-width: 860px) { .tool-filters { grid-template-columns: 1fr; gap: 20px; } }
.matrix-table td, .matrix-table th { font-size: 13.5px; }
.matrix-table .pick-col { width: 44px; text-align: center; }
.matrix-table .pick-col input { width: 18px; height: 18px; accent-color: var(--petrol); }
.matrix-table tr.picked th, .matrix-table tr.picked td { background: var(--petrol-tint); }
.matrix-table tr[hidden] { display: none; }
.matrix-status { font-size: 12px; color: var(--muted); margin: 14px 0; }

/* Related cards and hub index */
.related { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px); }
.rel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.rel-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rel-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 44px; background: var(--card); border: 1px solid var(--rule); border-radius: 4px; text-decoration: none; color: var(--ink); transition: border-color .15s; }
.rel-card:hover { border-color: var(--petrol); color: var(--ink); }
.rel-silo { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--petrol); }
.rel-title { font: 600 1.15rem/1.25 var(--serif); }
.rel-sum { font-size: 14px; color: var(--graphite); line-height: 1.5; }
.rel-arrow { position: absolute; left: 22px; bottom: 16px; color: var(--petrol); transition: transform .15s; }
.rel-card:hover .rel-arrow { transform: translateX(4px); }
@media (max-width: 900px) { .rel-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .rel-grid, .rel-grid-2 { grid-template-columns: 1fr; } }

/* Home: research library */
.lib-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.lib-col { border-top: 2px solid var(--ink); padding-top: 14px; }
.lib-head { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--petrol); margin: 0 0 10px; }
.lib-col ul { list-style: none; margin: 0; padding: 0; }
.lib-col li a { display: block; padding: 7px 0; font-size: 14px; line-height: 1.35; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }
.lib-col li a:hover { color: var(--petrol); }
.lib-col li.lib-hub a { font-weight: 600; }
@media (max-width: 1060px) { .lib-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .lib-grid { grid-template-columns: 1fr; } }

/* Footer: 42-link index */
.foot-index { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; padding-top: 28px; padding-bottom: 28px; border-bottom: 1px solid rgba(246, 243, 236, .14); }
.foot-head { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); margin: 0 0 10px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { padding: 3px 0; font-size: 13px; line-height: 1.4; }
.foot-col a[aria-current] { color: var(--on-ink); }
.foot-col .nav-hub a { color: var(--on-ink) !important; font-size: 11px !important; }
@media (max-width: 1060px) { .foot-index { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .foot-index { grid-template-columns: 1fr 1fr; } }
@media (max-width: 400px) { .foot-index { grid-template-columns: 1fr; } }
.rank .ledger-row { display: flex; align-items: baseline; gap: 8px; font-size: 14px; }
.rank .dots { flex: 1; border-bottom: 1px dotted var(--rule-strong); min-width: 16px; transform: translateY(-4px); }
.rank .val { font-weight: 500; white-space: nowrap; }
.matrix-table td.mono { white-space: normal; min-width: 120px; }
