/* BidLab by Knockbook — product styles.
   Brand system follows knockbook.com: warm cream ground, navy ink, raspberry
   accent, Bricolage Grotesque headlines, Manrope text, IBM Plex Mono labels.
   BidLab keeps its own logo mark; the raspberry dot marks the best plan. */

@font-face { font-family: "Bricolage Grotesque"; src: url("./assets/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("./assets/manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("./assets/plexmono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("./assets/plexmono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ground: #EAE4D8; --band: #E2DBCB; --surface: #F7F4ED; --screen: #FFFFFF;
  --ink: #17202C; --ink-2: #22303F; --strong: #333A42; --body: #565A5E; --muted: #6F6A60; --faint: #94908A;
  --rule: #D6CEBE; --rule-soft: #DFD8C9;
  --accent: #CE2C63; --accent-hover: #B72455; --accent-tint: #FBE7EE; --accent-border: #F0D3DE; --accent-on-ink: #FF8FB4;
  --on-ink: #EFEAE0; --on-ink-muted: #A7A296;
  --sky: #2CB3DF; --sky-deep: #0F5E78;
  --ok: #1F6B45; --ok-tint: #E4F1E8; --warn: #7A4F00; --warn-tint: #FBF0D6; --error: #A3203F; --error-tint: #FBE7EE;
  --display: "Bricolage Grotesque", "Manrope", system-ui, sans-serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r-card: 18px; --r-control: 12px;
  --shadow: 0 1px 0 rgba(23, 32, 44, .04), 0 12px 32px -18px rgba(23, 32, 44, .28);
  --shadow-cta: 0 10px 24px -12px rgba(23, 32, 44, .55);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0; color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  background-color: var(--ground);
  background-image: linear-gradient(rgba(23, 32, 44, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(23, 32, 44, .045) 1px, transparent 1px);
  background-size: 64px 64px; background-position: -1px -1px;
}
a { color: var(--ink); text-decoration-color: var(--accent-border); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { text-decoration-color: var(--accent); }
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0 0 .5rem; letter-spacing: -0.03em; }
h1 { font-size: clamp(34px, 4.2vw, 52px); font-weight: 800; line-height: 1.02; }
h2 { font-size: clamp(20px, 1.9vw, 24px); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: .4rem 0 .8rem; color: var(--body); }
small { font-weight: 500; color: var(--muted); }
:focus-visible { outline: 3px solid var(--sky-deep); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -200vw; }
.skip:focus { left: 12px; top: 8px; z-index: 50; background: var(--screen); padding: 10px 14px; border-radius: 10px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.num, td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- header ---------- */
.site { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 max(4vw, 18px); min-height: 72px; background: rgba(234, 228, 216, .88); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--rule); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand b { font: 800 22px/1 var(--display); letter-spacing: -0.04em; }
.brand .by { display: block; font: 600 12px/1.1 var(--sans); color: var(--muted); letter-spacing: 0; margin-top: 3px; }
.brand .by i { font-style: normal; color: var(--ink-2); }
.brand .by i + i { color: var(--accent); }
.site nav { display: flex; align-items: center; gap: 4px 26px; font-size: 15px; font-weight: 600; }
.site nav a { text-decoration: none; padding: 8px 0; color: var(--strong); white-space: nowrap; }
.site nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); }
.site nav a[aria-current=page] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); }
.site nav .start { background: var(--ink); color: var(--on-ink); padding: 11px 18px; border-radius: var(--r-control); box-shadow: var(--shadow-cta); }
.site nav .start:hover { background: var(--ink-2); color: #fff; text-decoration: none; }

/* ---------- buttons ---------- */
button, .primary, .secondary, .accent, .filebutton { font: 700 15px/1.2 var(--sans); min-height: 46px; padding: 12px 20px; border-radius: var(--r-control); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; transition: background .15s, border-color .15s, transform .15s; }
.primary { background: var(--ink); color: var(--on-ink); border: 1px solid var(--ink); box-shadow: var(--shadow-cta); }
.primary:hover { background: var(--ink-2); color: #fff; }
.primary:active, .accent:active { transform: translateY(1px); }
.accent { background: var(--accent); color: #fff; border: 1px solid var(--accent); box-shadow: 0 10px 24px -12px rgba(206, 44, 99, .7); }
.accent:hover { background: var(--accent-hover); }
.secondary, button.secondary, .filebutton { background: var(--screen); color: var(--ink); border: 1px solid var(--rule); }
.secondary:hover, .filebutton:hover { border-color: var(--ink); }
button:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.filebutton { position: relative; }
.filebutton input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.filebutton:focus-within { outline: 3px solid var(--sky-deep); outline-offset: 3px; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.arrow::after { content: "→"; font-weight: 600; }

/* ---------- labels ---------- */
.over, .eyebrow { font: 500 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 8px; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px; border: 1px solid var(--rule); border-radius: 999px; background: var(--surface); font: 700 14px/1.2 var(--sans); color: var(--strong); margin: 0; }
.pill::before { content: ""; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-tint) radial-gradient(circle, var(--accent) 0 3.5px, transparent 4px); }
.chip { display: inline-flex; align-items: center; gap: 6px; font: 500 12px/1.3 var(--mono); letter-spacing: .04em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--band); color: var(--strong); margin: 0 6px 6px 0; }
.chip.ok { background: var(--ok-tint); color: var(--ok); }
.chip.ok::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.warn { display: block; text-transform: none; letter-spacing: 0; font: 600 14px/1.45 var(--sans); background: var(--warn-tint); color: var(--warn); border-radius: 12px; padding: 10px 14px; }
.chip.warn[hidden] { display: none; }
.chips { margin: 0 0 10px; }
.best { display: inline-flex; align-items: center; gap: 6px; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 0 8px; white-space: nowrap; vertical-align: middle; }
.best::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }

/* ---------- forms ---------- */
.field { margin: 0 0 16px; min-width: 0; }
label { display: block; font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
label.inline { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; margin: 0; }
label .unit { font-weight: 500; color: var(--muted); }
input:not([type=radio]):not([type=checkbox]):not([type=file]):not([type=range]), select, textarea { font: 500 16px/1.4 var(--sans); width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--rule); border-radius: var(--r-control); background: var(--screen); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover, textarea:hover { border-color: #BFB5A2; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23, 32, 44, .12); }
label.inline select { width: auto; }
input[type=number] { font-variant-numeric: tabular-nums; }
input[type=file] { font: 600 15px var(--sans); max-width: 100%; margin: 4px 0; color: var(--body); }
input[type=file]::file-selector-button { font: 700 14px var(--sans); border: 1px solid var(--rule); background: var(--screen); border-radius: 10px; padding: 9px 14px; margin-right: 12px; cursor: pointer; color: var(--ink); }
input[aria-invalid] { border-color: var(--error) !important; box-shadow: 0 0 0 3px var(--error-tint) !important; }
.hint { color: var(--muted); font-size: 14px; margin: 0 0 8px; }
.field-error { color: var(--error); font-size: 14px; font-weight: 700; margin: 6px 0 0; }
.field-error:empty, .warning:empty { display: none; }
.warning { background: var(--warn-tint); color: var(--warn); padding: 10px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; }
fieldset { border: 0; padding: 0; margin: 0; }
.pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.pairs.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pairs.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pairs.four .field label { min-height: 2.9em; }

/* ---------- journey layout ---------- */
.journey { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); max-width: 1240px; margin: 0 auto; padding: 36px max(3vw, 18px) 80px; align-items: start; }
.journey article { min-width: 0; max-width: 920px; }
.rail { position: sticky; top: 96px; }
.rail-back { display: inline-flex; font-size: 14px; font-weight: 700; text-decoration: none; color: var(--muted); margin-bottom: 18px; }
.rail-back:hover { color: var(--ink); }
.rail-project { padding: 16px; margin-bottom: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--rule); }
.rail-project strong { display: block; font: 800 20px/1.1 var(--display); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.rail-project span { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.rail ol { list-style: none; margin: 0; padding: 0; position: relative; }
.rail ol::before { content: ""; position: absolute; left: 25px; top: 22px; bottom: 22px; width: 1px; background: var(--rule); }
.rail li a { position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; color: var(--strong); text-decoration: none; font-weight: 600; font-size: 15px; }
.rail li a[href]:hover { background: rgba(255, 255, 255, .55); color: var(--ink); }
.rail [aria-current=step] { background: var(--screen); color: var(--ink); font-weight: 800; box-shadow: var(--shadow); }
.rail [aria-disabled=true] { color: var(--faint); }
.stepnum { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--rule); background: var(--surface); font: 500 12px var(--mono); flex: none; position: relative; z-index: 1; }
.rail [aria-current=step] .stepnum { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.rail li.done .stepnum { background: var(--ok-tint); border-color: #B9D8C4; color: var(--ok); font-family: var(--sans); font-weight: 800; }

.intro { margin-bottom: 6px; }
.intro h1 { margin: 0 0 10px; }
.intro h1:focus { outline: none; }
.lead { color: var(--body); font-size: 18px; line-height: 1.5; margin: 0; max-width: 62ch; }

.step-actions { position: sticky; top: 72px; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 18px 0 20px; padding: 10px 10px 10px 18px; background: rgba(247, 244, 237, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--rule); border-radius: 16px; box-shadow: var(--shadow); }
.step-actions .secondary { border: 0; background: none; padding-left: 0; min-height: 40px; font-weight: 700; color: var(--strong); box-shadow: none; }
.step-actions .secondary:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); }
.step-actions .primary::after { content: "→"; }
.step-actions a.primary[href="./"]::after { content: none; }

section, .section, .method { background: var(--screen); border: 1px solid var(--rule); border-radius: var(--r-card); padding: 26px 28px; margin: 0 0 16px; box-shadow: var(--shadow); }
section > :last-child, .section > :last-child { margin-bottom: 0; }
section > h2:first-child, .section > h2:first-child { margin-bottom: 14px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.section-head h2 { margin: 0; }
.section-head a { font-size: 14px; font-weight: 700; }
details.method { padding: 0; background: var(--surface); box-shadow: none; }
.method summary { cursor: pointer; font: 700 15px/1.3 var(--sans); padding: 18px 28px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.method summary::-webkit-details-marker { display: none; }
.method summary::after { content: "+"; font: 500 20px/1 var(--mono); color: var(--muted); }
.method[open] summary::after { content: "–"; }
.method > :not(summary) { margin-left: 28px; margin-right: 28px; }
.method > :last-child { margin-bottom: 22px; }
#notice:empty { display: none; }
#notice { padding: 12px 16px; border-radius: 12px; background: var(--error-tint); color: var(--error); font-weight: 700; margin: 0 0 14px; scroll-margin-top: 150px; }
#notice[data-tone=ok] { background: var(--ok-tint); color: var(--ok); }

/* choices */
.option { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--rule); border-radius: 14px; padding: 16px 18px; margin: 0 0 10px; font-weight: 500; cursor: pointer; background: var(--screen); transition: border-color .15s, background .15s, box-shadow .15s; }
.option:hover { border-color: #BFB5A2; }
.option.compact { padding: 12px 16px; margin-bottom: 8px; }
.option input { margin-top: 3px; width: 20px; height: 20px; flex: none; accent-color: var(--ink); }
.option:has(input:checked) { border-color: var(--ink); background: var(--surface); box-shadow: inset 4px 0 0 var(--ink); }
.option:has(input:focus-visible) { outline: 3px solid var(--sky-deep); outline-offset: 2px; }
.option-body { display: grid; gap: 3px; min-width: 0; }
.option-body strong { font-weight: 800; color: var(--ink); }
.option-body > span { color: var(--body); font-size: 14px; }
.option-body dl { display: grid; grid-template-columns: max-content 1fr; gap: 3px 14px; margin: 8px 0 0; font-size: 14px; }
.option-body dt { font: 500 11px/1.9 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.option-body dd { margin: 0; color: var(--strong); }
.option.ruled-out { background: repeating-linear-gradient(135deg, #FBFAF6 0 8px, #F5F2EA 8px 9px); cursor: not-allowed; }
.option.ruled-out strong { color: var(--muted); font-weight: 600; }
.tag { justify-self: start; font: 500 11px/1.6 var(--mono) !important; text-transform: uppercase; letter-spacing: .08em; background: var(--band); color: var(--strong) !important; padding: 2px 9px; border-radius: 999px; }

/* tables */
.scroll { overflow-x: auto; max-width: 100%; }
table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
caption { text-align: left; font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 6px 0 10px; }
th, td { padding: 12px 12px; border-bottom: 1px solid var(--rule-soft); text-align: left; vertical-align: top; }
thead th { font: 500 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border-bottom-color: var(--rule); }
tbody th { font-weight: 600; color: var(--strong); }
tbody tr:last-child > * { border-bottom: 0; }

/* the comparison */
.verdict { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 12px; margin: 4px 0 18px; }
.verdict > div { border: 1px solid var(--rule); border-radius: 16px; padding: 18px 18px 16px; background: var(--surface); min-width: 0; }
.verdict > .is-best { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.verdict > .is-choice { background: var(--screen); border-color: var(--ink); }
.verdict .label { font: 500 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); display: flex; align-items: center; gap: 10px; margin: 0; }
.verdict .is-best .label { color: var(--on-ink-muted); }
.verdict .is-best .best { color: var(--accent-on-ink); margin: 0; }
.verdict .is-best .best::before { background: var(--accent-on-ink); box-shadow: 0 0 0 4px rgba(255, 143, 180, .2); }
.verdict .plan { font: 700 15px/1.35 var(--sans); margin: 6px 0 14px; min-height: 2.7em; color: var(--ink); }
.verdict .is-best .plan { color: #fff; }
.verdict .big { display: flex; align-items: baseline; gap: 10px; }
.verdict .big b { font: 800 clamp(44px, 5vw, 64px)/0.9 var(--display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.verdict .big span { font-size: 14px; font-weight: 600; color: var(--muted); }
.verdict .is-best .big span { color: var(--on-ink-muted); }
.verdict .sub-metrics { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 12px; font: 500 13px/1.5 var(--mono); color: var(--muted); }
.verdict .is-best .sub-metrics { color: var(--on-ink-muted); }
.verdict .sub-metrics b { font-weight: 500; color: var(--ink); }
.verdict .is-best .sub-metrics b { color: #fff; }
table.compare td { font: 700 18px/1.3 var(--display); letter-spacing: -0.01em; }
table.compare thead th { vertical-align: bottom; }
table.compare .colhead { display: grid; justify-items: end; gap: 3px; }
table.compare .colhead small { font: 600 12px/1.35 var(--sans); text-transform: none; letter-spacing: 0; color: var(--muted); max-width: 22ch; text-align: right; }
table.compare .colhead .best { margin: 0; }
table.compare td:nth-child(3) { background: var(--surface); }
.todo { margin-top: 18px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--accent); border-radius: 14px; }
.do { font: 700 18px/1.45 var(--sans); color: var(--ink); margin: 0 0 4px; }
.changed { background: var(--accent-tint); border: 1px solid var(--accent-border); color: var(--ink); padding: 10px 14px; border-radius: 12px; font-size: 15px; font-weight: 600; margin: 0 0 14px; }

/* plan chart: one bar per tested plan */
.planchart { display: grid; grid-template-columns: repeat(var(--n, 9), minmax(0, 1fr)); align-items: end; gap: 8px; height: 190px; padding: 26px 4px 0; margin: 6px 0 4px; border-bottom: 1px solid var(--rule); background: repeating-linear-gradient(0deg, transparent 0 37px, var(--rule-soft) 37px 38px); }
.planchart button { all: unset; box-sizing: border-box; position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; cursor: pointer; border-radius: 8px 8px 0 0; }
.planchart button:focus-visible { outline: 3px solid var(--sky-deep); outline-offset: 2px; }
.planchart button:disabled { cursor: not-allowed; }
.planchart i { display: block; width: 100%; max-width: 46px; height: var(--h); min-height: 4px; border-radius: 8px 8px 2px 2px; background: #A9A08D; transition: height .45s cubic-bezier(.2, .8, .2, 1), background .2s; }
.planchart .out i { background: repeating-linear-gradient(135deg, #D9D1C1 0 5px, #EFEAE0 5px 9px); }
.planchart .usual i { background: #6F6A60; }
.planchart .is-best i { background: var(--ink); }
.planchart .is-choice i { box-shadow: 0 0 0 3px var(--screen), 0 0 0 5px var(--ink); }
.planchart em { position: absolute; top: -22px; font: 500 12px var(--mono); font-style: normal; color: var(--strong); white-space: nowrap; }
.planchart .is-best em::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 4px; box-shadow: 0 0 0 3px var(--accent-tint); }
.planaxis span { display: grid; }
.planaxis .s { display: none; }
.axiskey { display: none; font: 500 11px var(--mono); color: var(--muted); margin: 6px 0 0; }
.planaxis { display: grid; grid-template-columns: repeat(var(--n, 9), minmax(0, 1fr)); gap: 8px; padding: 6px 4px 0; font: 500 11px/1.35 var(--mono); color: var(--muted); text-align: center; }
.chartkey { display: flex; flex-wrap: wrap; gap: 6px 18px; font: 500 12px var(--mono); color: var(--muted); margin: 12px 0 18px; }
.chartkey span { display: inline-flex; align-items: center; gap: 6px; }
.chartkey i { width: 12px; height: 12px; border-radius: 3px; background: #A9A08D; }
.chartkey .k-usual i { background: #6F6A60; }
.chartkey .k-best i { background: var(--ink); }
.chartkey .k-out i { background: repeating-linear-gradient(135deg, #D9D1C1 0 3px, #EFEAE0 3px 5px); }

.source { color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.source .chip { margin: 0; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 16px 0 20px; }
.facts dt { font: 500 11px/1.9 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; color: var(--strong); }
.request { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; font-size: 15px; }
.request dt { font: 500 11px/1.9 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.request dd { margin: 0; color: var(--strong); }
.upload { border-top: 1px dashed var(--rule); margin-top: 16px; padding-top: 16px; }
.file-status { font-size: 15px; font-weight: 600; margin: 10px 0; color: var(--strong); }
.file-status[data-tone=ok] { color: var(--ok); }
.file-status[data-tone=error] { color: var(--error); background: var(--error-tint); padding: 10px 14px; border-radius: 12px; }
.links { font-size: 15px; font-weight: 600; }
.sub { border-top: 1px solid var(--rule-soft); padding-top: 18px; margin-top: 18px; }
.sub:first-of-type { border-top: 0; padding-top: 0; margin-top: 6px; }
.assumption, .explain { font-size: 14px; color: var(--body); background: var(--surface); padding: 12px 14px; border-radius: 12px; border: 1px solid var(--rule-soft); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 12px 0; }
.kpis b { display: block; font: 800 32px/1 var(--display); letter-spacing: -0.03em; }
.kpis span { color: var(--muted); font-size: 14px; font-weight: 600; }
#why ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
#why li { position: relative; padding: 12px 14px 12px 40px; background: var(--surface); border-radius: 12px; color: var(--strong); font-weight: 500; }
#why li::before { content: ""; position: absolute; left: 16px; top: 20px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
#why li:first-child::before { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.decide textarea { min-height: 72px; }

/* ---------- home ---------- */
.home { max-width: 1240px; margin: 0 auto; padding: 0 max(3vw, 18px) 60px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(36px, 6vw, 84px) 0 clamp(32px, 4vw, 56px); background: none; border: 0; box-shadow: none; border-radius: 0; margin: 0; }
.hero h1 { font-size: clamp(40px, 5vw, 66px); line-height: .98; letter-spacing: -0.045em; margin: 22px 0 20px; }
.hero h1 em { font-style: normal; color: var(--accent); display: block; }
.hero .lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--body); max-width: 44ch; }
.hero .buttons { margin-top: 30px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 38px; padding-top: 26px; border-top: 1px solid var(--rule); }
.stats b { display: block; font: 800 34px/1 var(--display); letter-spacing: -0.03em; color: var(--ink); }
.stats span { display: block; font-size: 14px; font-weight: 600; color: var(--muted); margin-top: 6px; }
.instrument { background: var(--screen); border: 1px solid var(--rule); border-radius: 24px; box-shadow: 0 30px 60px -36px rgba(23, 32, 44, .45), 0 1px 0 rgba(23, 32, 44, .04); overflow: hidden; padding: 0; margin: 0; }
.instrument header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--rule-soft); }
.instrument header strong { font: 800 18px var(--display); letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
.instrument header strong::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #3F8A5E; box-shadow: 0 0 0 4px #DDEEE3; }
.instrument header span { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.instrument .body { padding: 18px 22px 8px; }
.instrument .q { font: 700 15px/1.4 var(--sans); color: var(--strong); margin: 0 0 12px; }
.instrument .over { margin: 16px 0 0; }
.segmented { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; margin: 0 0 6px; }
.segmented button { flex: 1 1 auto; min-height: 40px; padding: 8px 12px; border: 0; background: none; border-radius: 10px; font: 700 14px var(--sans); color: var(--strong); box-shadow: none; }
.segmented button[aria-pressed=true] { background: var(--ink); color: var(--on-ink); }
.instrument .result { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--rule-soft); background: var(--surface); }
.instrument .result > div { padding: 16px 22px; }
.instrument .result > div + div { border-left: 1px solid var(--rule-soft); }
.instrument .result span { display: block; font: 500 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.instrument .result b { display: block; font: 800 30px/1.05 var(--display); letter-spacing: -0.03em; margin-top: 6px; }
.instrument .result small { display: block; font-size: 13px; margin-top: 4px; }
.instrument .why { margin: 0; padding: 14px 22px 18px; font-size: 14px; color: var(--strong); border-top: 1px solid var(--rule-soft); }
.continue { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; background: var(--ink); color: var(--on-ink); border-radius: 18px; padding: 16px 20px; margin: 22px 0 0; text-decoration: none; box-shadow: var(--shadow); }
.continue span { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--on-ink-muted); display: block; }
.continue strong { font: 800 20px/1.2 var(--display); color: #fff; }
.continue b { font-weight: 700; color: var(--accent-on-ink); }
.continue:hover b { text-decoration: underline; }
.band { margin: 28px 0; background: none; border: 0; box-shadow: none; padding: 0; }
.band > h2 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; letter-spacing: -0.035em; margin: 0 0 8px; }
.band > p.lead { margin-bottom: 22px; }
.industries { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.industries li { margin: 0; }
.industries a { position: relative; display: grid; align-content: start; gap: 8px; height: 100%; padding: 20px 20px 18px; border: 1px solid var(--rule); border-radius: var(--r-card); background: var(--screen); text-decoration: none; box-shadow: var(--shadow); transition: transform .2s, border-color .2s; }
.industries a:hover { transform: translateY(-2px); border-color: var(--ink); }
.industries a::after { content: "→"; position: absolute; right: 18px; top: 16px; font-weight: 700; color: var(--faint); transition: color .2s, transform .2s; }
.industries a:hover::after { color: var(--accent); transform: translateX(3px); }
.industries .sector { padding-right: 24px; font: 500 11px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.industries strong { font: 700 19px/1.25 var(--display); letter-spacing: -0.015em; color: var(--ink); padding-right: 18px; }
.industries .meta { font-size: 13px; color: var(--muted); }
.steps5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps5 li { background: var(--surface); border: 1px solid var(--rule); border-radius: 16px; padding: 18px; }
.steps5 li::before { counter-increment: s; content: "0" counter(s); display: block; font: 500 12px var(--mono); color: var(--accent); letter-spacing: .1em; margin-bottom: 10px; }
.steps5 strong { display: block; font: 700 17px/1.25 var(--display); }
.steps5 span { display: block; font-size: 14px; color: var(--muted); margin-top: 6px; }
.dark { background: var(--ink); color: var(--on-ink); border-radius: 28px; padding: clamp(28px, 4vw, 52px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; margin: 28px 0; border: 0; }
.dark h2 { color: #fff; font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; letter-spacing: -0.035em; }
.dark p { color: var(--on-ink-muted); }
.dark .eyebrow { color: var(--accent-on-ink); }
.dark dl { margin: 0; display: grid; gap: 0; }
.dark dl > div { padding: 14px 0; border-top: 1px solid rgba(239, 234, 224, .14); }
.dark dt { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--on-ink-muted); }
.dark dd { margin: 4px 0 0; color: #fff; font-weight: 600; }
.dark .accent { margin-top: 10px; }
.projectrow { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 4px; border-bottom: 1px solid var(--rule-soft); color: var(--ink); text-decoration: none; }
.projectrow:last-child { border-bottom: 0; }
.projectrow:hover strong { text-decoration: underline; text-decoration-color: var(--accent); }
.row-main { display: grid; min-width: 0; }
.row-main strong { font: 700 18px/1.25 var(--display); }
.row-main span, .row-status small { color: var(--muted); font-size: 14px; }
.row-status { display: grid; justify-items: end; text-align: right; flex: none; gap: 4px; }
.row-status b { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; background: var(--band); padding: 4px 10px; border-radius: 999px; }
.empty { color: var(--muted); }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; padding: 28px 0 10px; margin-top: 30px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--muted); }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 600; }
.footer a { color: var(--strong); text-decoration: none; }
.footer a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- smaller screens ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .steps5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dark { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .journey { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 16px 16px 60px; }
  .rail { position: static; }
  .rail-back, .rail-project { display: none; }
  .rail ol { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  .rail ol::before { left: 10%; right: 10%; top: 20px; bottom: auto; width: auto; height: 1px; }
  .rail li a { flex-direction: column; gap: 4px; padding: 6px 2px; font-size: 11px; text-align: center; line-height: 1.15; min-height: 58px; justify-content: flex-start; }
  .rail [aria-current=step] { box-shadow: none; background: none; }
  .stepnum { width: 26px; height: 26px; }
  .pairs.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site nav a:not(.start):not(.keep) { display: none; }
  .step-actions { top: 64px; }
  .site { min-height: 64px; }
}
@media (max-width: 560px) {
  body { background-size: 40px 40px; }
  section, .section { padding: 20px 18px; border-radius: 16px; }
  .method summary { padding: 16px 18px; }
  .method > :not(summary) { margin-left: 18px; margin-right: 18px; }
  .pairs, .pairs.three, .pairs.four { grid-template-columns: minmax(0, 1fr); }
  .pairs.four .field label { min-height: 0; }
  .lead { font-size: 16px; }
  .step-actions { padding: 8px 8px 8px 14px; margin: 12px 0 14px; border-radius: 14px; }
  .step-actions .primary { padding: 11px 14px; font-size: 14px; }
  .brand b { font-size: 20px; }
  .brand svg { width: 30px; height: 30px; }
  .site { padding: 0 16px; gap: 10px; }
  .site nav .start { padding: 10px 14px; font-size: 14px; }
  .verdict { grid-template-columns: minmax(0, 1fr) !important; }
  .verdict .plan { min-height: 0; }
  table.compare td { font-size: 16px; }
  table.compare .colhead small { max-width: 13ch; }
  th, td { padding: 10px 6px; }
  .planchart { height: 150px; gap: 4px; }
  .planaxis { gap: 4px; font-size: 11px; }
  .planaxis .l { display: none; }
  .planaxis .s { display: grid; }
  .axiskey { display: block; }
  .site nav .keep { display: none; }
  .projectrow { flex-direction: column; align-items: flex-start; gap: 6px; }
  .row-status { justify-items: start; text-align: left; }
  .facts, .request { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .facts dd, .request dd { margin-bottom: 10px; }
  .stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .steps5 { grid-template-columns: minmax(0, 1fr); }
  .instrument .result b { font-size: 24px; }
  .instrument header, .instrument .body, .instrument .result > div, .instrument .why { padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
