/* Bottleneck Verdict — dark, gaming-adjacent, readability-first.
   No frameworks, no webfonts, system font stack only. */
:root {
  --bg: #0c0f14;
  --bg-raise: #141922;
  --bg-card: #171d28;
  --line: #262f42;
  --text: #e8ecf3;
  --muted: #9aa7bb;
  --accent: #ffb020;        /* verdict amber */
  --accent-ink: #1a1206;
  --good: #3ecf7a;
  --cpu: #ff7a59;
  --gpu: #4da3ff;
  --radius: 14px;
  --maxw: 1060px;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gpu); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Header */
header.site {
  border-bottom: 1px solid var(--line);
  background: rgba(12, 15, 20, 0.92);
}
header.site .wrap {
  display: flex; align-items: center; gap: 28px;
  padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap;
}
.logo { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo .v { color: var(--accent); }
nav.main { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
nav.main a { color: var(--muted); font-weight: 600; font-size: 0.95rem; }
nav.main a[aria-current="page"] { color: var(--text); border-bottom: 2px solid var(--accent); }
nav.main a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero { padding: 44px 0 8px; }
.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.9rem); line-height: 1.12;
  letter-spacing: -0.03em; margin: 0 0 12px; max-width: 22ch;
}
.hero h1 .hl { color: var(--accent); }
.hero p.lede { color: var(--muted); font-size: 1.12rem; max-width: 62ch; margin: 0 0 8px; }
.honest-badge {
  display: inline-block; margin-top: 10px; padding: 6px 12px;
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); font-size: 0.85rem; background: var(--bg-raise);
}
.honest-badge strong { color: var(--good); font-weight: 700; }

/* Calculator card */
.tool {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; margin: 26px 0;
}
.tool h2 { margin: 0 0 4px; font-size: 1.3rem; letter-spacing: -0.01em; }
.tool .sub { color: var(--muted); margin: 0 0 20px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 0.95rem; }
.field .hint { color: var(--muted); font-size: 0.83rem; margin-top: 4px; }
select, input[type="text"] {
  width: 100%; padding: 12px 14px; font-size: 1rem; color: var(--text);
  background: var(--bg-raise); border: 1px solid var(--line); border-radius: 10px;
}
select:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.res-group { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.res-group legend, .res-label { font-weight: 700; font-size: 0.95rem; margin-bottom: 8px; display: block; }
.res-group fieldset { border: 0; padding: 0; margin: 0; }
.radio-pill { position: relative; }
.radio-pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio-pill span {
  display: inline-block; padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-raise);
  font-weight: 600; cursor: pointer;
}
.radio-pill input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.radio-pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
button.run {
  margin-top: 22px; width: 100%; padding: 15px; font-size: 1.08rem; font-weight: 800;
  background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 10px; cursor: pointer;
}
button.run:hover { filter: brightness(1.07); }

/* Result */
.result { margin-top: 26px; border-top: 1px dashed var(--line); padding-top: 22px; }
.result[hidden] { display: none; }
.verdict-word { font-size: clamp(1.5rem, 3.6vw, 2.1rem); font-weight: 850; letter-spacing: -0.02em; margin: 0 0 4px; }
.verdict-word.cpu { color: var(--cpu); }
.verdict-word.gpu { color: var(--gpu); }
.verdict-word.balanced { color: var(--good); }
.verdict-range { font-size: 1.12rem; margin: 0 0 6px; }
.verdict-why { color: var(--muted); max-width: 68ch; }
.bar { display: flex; height: 16px; border-radius: 8px; overflow: hidden; margin: 18px 0 6px; border: 1px solid var(--line); }
.bar .cpu-seg { background: var(--cpu); }
.bar .gpu-seg { background: var(--gpu); }
.bar-legend { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.85rem; }
.bar-legend .cpu-t { color: var(--cpu); font-weight: 700; }
.bar-legend .gpu-t { color: var(--gpu); font-weight: 700; }
table.restable { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.95rem; }
table.restable th, table.restable td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
table.restable th { color: var(--muted); font-weight: 600; }
table.restable tr.current td { background: rgba(255, 176, 32, 0.08); font-weight: 700; }
.upgrade {
  border: 1px solid var(--line); border-left: 4px solid var(--accent);
  background: var(--bg-raise); border-radius: 10px; padding: 16px 18px; margin-top: 16px;
}
.upgrade h3 { margin: 0 0 6px; font-size: 1.05rem; }
.upgrade p { margin: 0 0 10px; color: var(--muted); }
.buy-slot {
  display: inline-block; padding: 10px 16px; border-radius: 8px; font-weight: 700;
  border: 1px dashed var(--muted); color: var(--muted); cursor: not-allowed;
}
.buy-note { font-size: 0.8rem; color: var(--muted); margin-top: 8px; }
.disclaimer { color: var(--muted); font-size: 0.85rem; margin-top: 18px; max-width: 70ch; }

/* Content pages */
main.content { padding: 34px 0 10px; }
main.content h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); letter-spacing: -0.02em; margin: 0 0 14px; }
main.content h2 { font-size: 1.25rem; margin: 30px 0 8px; letter-spacing: -0.01em; }
main.content p, main.content li { color: #c9d2e0; max-width: 72ch; }
main.content .muted { color: var(--muted); }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 26px 0; }
.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px;
}
.card h3 { margin: 0 0 6px; font-size: 1.08rem; }
.card p { color: var(--muted); margin: 0 0 10px; font-size: 0.95rem; }

footer.site {
  border-top: 1px solid var(--line); margin-top: 48px; padding: 26px 0 34px;
  color: var(--muted); font-size: 0.88rem;
}
footer.site .wrap { display: flex; gap: 22px; flex-wrap: wrap; }
footer.site nav { display: flex; gap: 16px; flex-wrap: wrap; }
footer.site a { color: var(--muted); }
footer.site .fineprint { width: 100%; margin-top: 8px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

@media (max-width: 640px) {
  .grid, .cards { grid-template-columns: 1fr; }
  .tool { padding: 20px 16px; }
  header.site .wrap { gap: 14px; }
  nav.main { margin-left: 0; }
  .hero { padding-top: 30px; }
}

/* ---- v2 additions ---- */
/* Two same-scale index bars (replaces the v1 share bar, finding 15) */
.indexbars { margin: 18px 0 6px; }
.ib-row { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.ib-label { flex: 0 0 34%; font-size: 0.9rem; color: var(--text); }
.ib-track { flex: 1; height: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.ib-fill { height: 100%; }
.cpu-fill { background: var(--cpu); }
.gpu-fill { background: var(--gpu); }
.ib-val { flex: 0 0 5.2em; text-align: right; font-weight: 700; white-space: nowrap; }
.ib-note { color: var(--muted); font-size: 0.83rem; margin: 6px 0 0; }
.cpu-t { color: var(--cpu); font-weight: 700; }
.gpu-t { color: var(--gpu); font-weight: 700; }
.result .verdict-range { font-size: 1.14rem; line-height: 1.55; }
table.datatable { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.95rem; }
table.datatable th, table.datatable td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.datatable th { color: var(--muted); font-weight: 600; }
.prov { font-size: 0.78rem; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.prov.direct { color: var(--good); }
@media (max-width: 640px) {
  /* Finding 16: stack the per-resolution table into labelled blocks */
  table.restable thead { display: none; }
  table.restable, table.restable tbody, table.restable tr, table.restable td { display: block; width: 100%; }
  table.restable tr { border: 1px solid var(--line); border-radius: 10px; margin: 10px 0; padding: 6px 4px; }
  table.restable td { border-bottom: none; padding: 5px 10px; font-size: 1rem; }
  table.restable td::before { content: attr(data-th); display: block; color: var(--muted); font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
  table.restable tr.current td { background: transparent; }
  table.restable tr.current { background: rgba(255, 176, 32, 0.08); }
  .ib-label { flex-basis: 42%; font-size: 0.85rem; }
  /* v3 (finding 11): provenance/index text was small and technical on
     mobile — bump it to a readable size. */
  .ib-note { font-size: 0.93rem; line-height: 1.55; }
  .ib-val { font-size: 0.95rem; }
  .prov { font-size: 0.86rem; padding: 3px 9px; }
  table.datatable { font-size: 0.88rem; }
  table.datatable th, table.datatable td { padding: 6px 6px; }
}
