/* ==========================================================================
   Precision Dark (research): void canvas, OKLCH greyscale, one neutral accent.
   Light is the inverted twin. No blue, cyan, purple, neon, or vendor chrome.
   Vendor marks keep ChatGPT green / Claude coral / Grok slate — identity only.
   ========================================================================== */

@font-face {
  font-family: Geist;
  src: url("assets/fonts/geist-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Geist;
  src: url("assets/fonts/geist-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("assets/fonts/geist-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("assets/fonts/geist-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --sans: Geist, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --surface-void: oklch(0% 0 0);
  --surface-base: oklch(14% 0.005 285);
  --surface-raised: oklch(20% 0.005 285);
  --surface-float: oklch(25% 0.005 285);
  --border-hairline: oklch(100% 0 0 / 8%);
  --text-display: oklch(97% 0 0);
  --text-primary: oklch(88% 0 0);
  --text-body: oklch(75% 0 0);
  --text-muted: oklch(55% 0 0);
  --text-faint: oklch(40% 0 0);
  --accent: oklch(94% 0 0);
  --on-accent: oklch(12% 0 0);
  --edge: oklch(100% 0 0 / 10%);
  --ambience: 0 24px 60px oklch(0% 0 0 / 45%);
  --ease-snap: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-cine: cubic-bezier(0.25, 1, 0.5, 1);
  --radius: 10px;
  --bg: var(--surface-void);
  --bg-2: var(--surface-base);
  --surface: var(--surface-base);
  --surface-solid: var(--surface-base);
  --surface-2: var(--surface-raised);
  --track: oklch(100% 0 0 / 8%);
  --text: var(--text-primary);
  --muted: var(--text-muted);
  --border: var(--border-hairline);
  --border-strong: oklch(100% 0 0 / 14%);
  --good: var(--text-body);
  --y-bg: transparent; --y-fg: var(--text-primary);
  --n-bg: transparent; --n-fg: var(--text-faint);
  --l-bg: transparent; --l-fg: var(--text-muted);
  --d-bg: transparent; --d-fg: var(--text-faint);
  --f-price: oklch(94% 0 0 / 90%);
  --f-headroom: oklch(94% 0 0 / 72%);
  --f-models: oklch(94% 0 0 / 54%);
  --f-features: oklch(94% 0 0 / 40%);
  --f-context: oklch(94% 0 0 / 26%);
  --f-needs: oklch(94% 0 0 / 16%);
  --shadow: inset 0 1px 0 var(--edge), var(--ambience);
  --glow: none;
  --x-mark: #fff;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --surface-void: oklch(98% 0.003 285);
  --surface-base: oklch(100% 0 0);
  --surface-raised: oklch(95% 0.004 285);
  --surface-float: oklch(100% 0 0);
  --border-hairline: oklch(0% 0 0 / 10%);
  --text-display: oklch(18% 0 0);
  --text-primary: oklch(24% 0 0);
  --text-body: oklch(36% 0 0);
  --text-muted: oklch(48% 0 0);
  --text-faint: oklch(62% 0 0);
  --accent: oklch(22% 0 0);
  --on-accent: oklch(98% 0 0);
  --edge: oklch(0% 0 0 / 8%);
  --ambience: 0 18px 40px oklch(0% 0 0 / 6%);
  --track: oklch(0% 0 0 / 8%);
  --border-strong: oklch(0% 0 0 / 16%);
  --f-price: oklch(22% 0 0 / 90%);
  --f-headroom: oklch(22% 0 0 / 72%);
  --f-models: oklch(22% 0 0 / 54%);
  --f-features: oklch(22% 0 0 / 40%);
  --f-context: oklch(22% 0 0 / 26%);
  --f-needs: oklch(22% 0 0 / 16%);
  --x-mark: #000;
  color-scheme: light;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 118px; }
body {
  margin: 0;
  font: 400 15px/1.55 var(--sans);
  color: var(--text-body);
  background: var(--surface-void);
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 22px; }
h1, h2, h3, h4 { color: var(--text-display); margin: 0; font-weight: 500; }
h1 { font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1.0; letter-spacing: -.04em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 3rem); line-height: 1.05; letter-spacing: -.02em; }
h3 { font-size: 1.08rem; margin: 22px 0 10px; letter-spacing: -.02em; }
h4 { font-size: .95rem; }
p { margin: 0 0 10px; }
a { color: var(--accent); }
code { font-family: var(--mono); background: var(--surface-raised); padding: 1px 6px; border-radius: 4px; font-size: .88em; }
.small { font-size: .85rem; color: var(--text-muted); }
.lead { color: var(--text-muted); margin: 6px 0 0; max-width: 70ch; font-size: 1.02rem; font-weight: 400; }
.none { color: var(--text-muted); }
.note { color: var(--text-muted); font-size: .85rem; margin: 10px 0 0; }
.m { white-space: nowrap; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.vh-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.skip {
  position: absolute; left: 12px; top: 8px; z-index: 100;
  background: var(--accent); color: var(--on-accent);
  padding: 8px 12px; border-radius: 6px; text-decoration: none; font-weight: 500;
  transform: translateY(-120%);
}
.skip:focus { transform: none; }

.ic { width: 1.1em; height: 1.1em; flex: 0 0 auto; vertical-align: -.17em; }
.logo {
  --s: 30px;
  --vc: var(--text-muted);
  display: inline-grid; place-items: center;
  width: var(--s); height: var(--s);
  color: var(--vc);
  flex: 0 0 auto;
}
.logo svg { width: 100%; height: 100%; color: var(--vc); fill: var(--vc); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-muted); display: inline-block; }

/* ---------- buttons, chips, segmented ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface-raised); color: var(--text-primary);
  border: 1px solid var(--border-hairline); border-radius: 8px;
  padding: 9px 16px; cursor: pointer;
  font: inherit; font-size: .9rem; font-weight: 500;
  text-decoration: none;
  transition: transform 150ms var(--ease-snap), opacity 150ms var(--ease-snap);
}
.btn:hover { transform: scale(0.98); }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.btn.ghost { background: transparent; }
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px;
  border-radius: 8px; border: 1px solid var(--border-hairline);
  background: var(--surface-raised); color: var(--text-primary); cursor: pointer;
  transition: transform 150ms var(--ease-snap);
}
.icon-btn:hover { transform: scale(0.98); }
.pill {
  background: transparent; border: 1px solid var(--border-hairline); border-radius: 999px;
  padding: 4px 11px; font-size: .72rem; color: var(--text-muted); white-space: nowrap;
  font-family: var(--mono); font-weight: 500;
  letter-spacing: .05em; text-transform: uppercase;
}
.tabs, .chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.tab, .chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: transparent; border: 1px solid var(--border-hairline); color: var(--text-body);
  padding: 7px 14px; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: .88rem; text-decoration: none;
  transition: transform 150ms var(--ease-snap), opacity 150ms var(--ease-snap);
}
.tab:hover, .chip:hover { transform: scale(0.98); }
.tab[aria-selected="true"], .chip[aria-selected="true"], .chip[aria-pressed="true"] {
  background: var(--accent); border-color: transparent; color: var(--on-accent); font-weight: 500;
}
.seg { display: inline-flex; align-self: flex-start; border: 1px solid var(--border-hairline); border-radius: 8px; overflow: hidden; background: var(--surface-base); }
.seg button {
  background: transparent; color: var(--text-body); border: 0; padding: 8px 14px;
  font: inherit; font-size: .88rem; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  transition: transform 150ms var(--ease-snap);
}
.seg button + button { border-left: 1px solid var(--border-hairline); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); font-weight: 500; }
input[type="number"], input[type="search"], select {
  background: var(--surface-base); color: var(--text-primary);
  border: 1px solid var(--border-hairline); border-radius: 8px; padding: 8px 11px;
  font: inherit; font-size: .9rem;
}
input[type="search"] { min-width: 220px; margin-bottom: 14px; }
input::placeholder { color: var(--text-faint); }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface-void);
  border-bottom: 1px solid var(--border-hairline);
}
.bar { display: flex; align-items: center; gap: 18px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text-primary); font-weight: 500; letter-spacing: -.02em; white-space: nowrap; }
.brand b { font-weight: 500; color: var(--text-display); }
.brand-mark { display: grid; place-items: center; width: 26px; height: 26px; }
.brand-mark img { width: 26px; height: auto; display: block; }
.brand-mark .mark-on-light { display: none; }
:root[data-theme="light"] .brand-mark .mark-on-dark { display: none; }
:root[data-theme="light"] .brand-mark .mark-on-light { display: block; }
.nav { display: flex; gap: 2px; overflow-x: auto; flex: 1 1 auto; min-width: 0; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { text-decoration: none; color: var(--text-muted); padding: 6px 11px; border-radius: 6px; white-space: nowrap; font-size: .87rem; font-weight: 400; }
.nav a:hover, .nav a.on { background: var(--surface-raised); color: var(--text-primary); }
.bar-right { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.controls { border-top: 1px solid var(--border-hairline); background: var(--surface-base); }
.controls[hidden] { display: none; }
.controls-inner { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-end; padding-top: 14px; padding-bottom: 8px; }
.ctl { display: flex; flex-direction: column; gap: 4px; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); font-family: var(--mono); font-weight: 500; }
.ctl select, .ctl input { text-transform: none; letter-spacing: 0; font-family: var(--sans); }
.ctl select { min-width: 200px; max-width: 290px; }
.ctl-rate input { width: 92px; }
.ctl-rate input:disabled { opacity: .5; }
.hint { text-transform: none; letter-spacing: 0; opacity: .8; }
.ctl-reset { align-self: flex-end; }
.money-info { margin: 0; padding: 0 0 12px; font-size: .78rem; color: var(--text-muted); line-height: 1.45; }
.usd-note { font-size: .75rem; color: var(--text-muted); margin: -2px 0 8px; }

/* ---------- hero ---------- */
main.wrap { padding-top: 0; }
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; padding: 72px 0 28px; }
.hero-lead { font-size: 1.12rem; color: var(--text-muted); max-width: 52ch; margin: 18px 0 24px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero-cta .btn { padding: 12px 20px; font-size: .98rem; }
.vendor-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.vpill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 999px;
  background: var(--surface-base); border: 1px solid var(--border-hairline); font-size: .84rem;
}
.vpill b { display: block; line-height: 1.1; color: var(--text-primary); font-weight: 500; }
.vpill > span:not(.logo) { color: var(--text-muted); font-size: .76rem; }
.hero-art { min-width: 0; }
.hero-metrics {
  display: grid; grid-template-columns: 1fr; gap: 1px;
  background: var(--border-hairline); border-top: 1px solid var(--border-hairline);
}
.hero-metric {
  background: var(--surface-base); padding: 16px 18px 14px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 4px;
}
.hero-metric b {
  display: block; font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 500; line-height: 1;
  letter-spacing: -.04em; color: var(--text-display);
  font-family: var(--mono); font-variant-numeric: tabular-nums;
}
.hero-metric span {
  font-size: .72rem; color: var(--text-muted);
  font-family: var(--mono); letter-spacing: .05em; text-transform: uppercase; font-weight: 500;
}
details.fine { margin-top: 20px; font-size: .86rem; color: var(--text-muted); }
details.fine summary, details.explain summary, details.as-table summary {
  cursor: pointer; color: var(--text-primary); font-weight: 500; font-size: .85rem;
  list-style: none; display: inline-flex; align-items: center; gap: 6px;
}
details summary::-webkit-details-marker { display: none; }
details.fine > div { margin-top: 10px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface-base); border: 1px solid var(--border-hairline); }
.legend { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 10px; }

/* ---------- sections ---------- */
section.sec { margin: 128px 0; }
.sec-head { margin-bottom: 26px; }
.panel, .card {
  background: var(--surface-base);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius);
}
.card { padding: 22px 24px; }
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.chart-scroll { overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.takeaway {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 1.02rem; font-weight: 400; line-height: 1.45;
  padding: 16px 0; border: 0; border-top: 1px solid var(--border-hairline); border-bottom: 1px solid var(--border-hairline);
  margin: 0 0 16px; background: none; border-radius: 0;
}
.takeaway .ic { color: var(--text-muted); width: 1.2em; height: 1.2em; margin-top: 3px; }
.takeaway strong { color: var(--text-display); font-weight: 500; }
details.as-table, details.explain { margin-top: 14px; }
details.as-table[open] > summary, details.explain[open] > summary { margin-bottom: 10px; }
details.as-table summary .ic, details.explain summary .ic { transition: transform 150ms var(--ease-snap); }
details[open] > summary .ic.chev { transform: rotate(180deg); }
.legend-row { display: flex; flex-wrap: wrap; gap: 10px 16px; font-size: .8rem; color: var(--text-muted); margin: 8px 0 0; }
.legend-row i { display: inline-block; width: 11px; height: 11px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.legend-row button {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: 1px solid var(--border-hairline); color: var(--text-primary);
  border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .84rem; cursor: pointer;
}
.legend-row button i { margin-right: 0; border: 1px solid var(--border-strong); }
.legend-row button[aria-pressed="false"] { opacity: .35; }
.sw-price { background: var(--f-price); } .sw-headroom { background: var(--f-headroom); } .sw-models { background: var(--f-models); }
.sw-features { background: var(--f-features); } .sw-context { background: var(--f-context); } .sw-needs { background: var(--f-needs); }

/* ---------- badges, glyphs ---------- */
.badge {
  display: inline-block; padding: 0; border-radius: 0; font-size: .78rem; font-weight: 500; white-space: nowrap;
  font-family: var(--mono); letter-spacing: .04em; text-transform: uppercase;
  background: none;
}
.badge.y { color: var(--text-primary); }
.badge.n, .badge.d { color: var(--text-faint); }
.badge.l { color: var(--text-muted); }
.val { font-size: .85rem; }
.cell-empty { color: var(--text-faint); }
.gl { position: relative; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 4px; color: var(--text-muted); background: none; }
.gl .ic { width: 15px; height: 15px; }
.gl.y { color: var(--text-primary); }
.gl.n { color: var(--text-faint); font-family: var(--mono); font-size: .95rem; }
.gl.l { color: var(--text-muted); }
.gl.d { color: var(--text-faint); }
.cap-dot { position: relative; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 26px; width: 26px; height: 26px; padding: 0; line-height: 0; vertical-align: middle; border-radius: 6px; border: 1px solid var(--border-hairline); color: var(--text-muted); }
.cap-dot .ic { display: block; width: 15px; height: 15px; margin: 0; flex: 0 0 15px; vertical-align: 0; }
.cap-dot.c2 { color: var(--text-primary); border-color: var(--border-strong); }
.cap-dot.c1 { color: var(--text-muted); }
.cap-dot.c0 { color: var(--text-faint); opacity: .7; }
.cap-dot.cu { color: var(--text-faint); border-style: dashed; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 0; border-radius: 0; background: transparent; }
table { border-collapse: collapse; width: 100%; font-size: .87rem; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border-hairline); vertical-align: top; }
thead th {
  background: transparent; font-weight: 500; white-space: nowrap; color: var(--text-muted);
  font-family: var(--mono); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--surface-raised); }
td:first-child, th:first-child { position: sticky; left: 0; background: var(--surface-void); z-index: 1; min-width: 180px; font-weight: 500; }
thead th:first-child { background: var(--surface-void); z-index: 2; }
.panel td:first-child, .panel th:first-child, .card td:first-child, .card th:first-child { background: var(--surface-base); }
.panel thead th:first-child, .card thead th:first-child { background: var(--surface-base); }
td.cat-row {
  background: transparent; font-weight: 500; color: var(--text-muted); font-size: .72rem;
  text-transform: uppercase; letter-spacing: .06em; position: static;
  font-family: var(--mono);
}
caption { text-align: left; font-weight: 500; padding: 10px 12px; color: var(--text-muted); caption-side: top; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--mono); }
.tbl-icons td { text-align: center; }
.tbl-icons td:first-child, .tbl-icons th:first-child { text-align: left; }

/* ---------- charts ---------- */
.ch { width: 100%; height: auto; display: block; overflow: visible; }
.ch-hbars { max-width: none; }
.ch-t { font: 500 13px/1 var(--sans); fill: var(--text-muted); }
.ch-name { fill: var(--text-primary); font-weight: 500; font-size: 13px; }
.ch-val { fill: var(--text-display); font-weight: 500; font-size: 13px; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.ch-sub { font-size: 12px; font-weight: 400; fill: var(--text-muted); font-family: var(--mono); }
.ch-axis { font-size: 12px; font-weight: 400; font-family: var(--mono); }
.ch-left { text-anchor: start; }
.ch-vendor { fill: var(--text-primary); font-size: 13px; font-weight: 500; }
.ch-save { fill: var(--text-body); font-weight: 500; font-size: 13px; font-family: var(--mono); }
.ch-ring { fill: var(--text-display); font-weight: 500; letter-spacing: -.03em; font-family: var(--mono); }
.ch-grid { stroke: var(--border-hairline); stroke-width: 1; }
.ch-dash { stroke-dasharray: 4 5; }
.ch-lane { fill: var(--surface-raised); }
.ch-track { stroke: var(--track); }
.ch-track-fill, .ch-rowbg { fill: var(--track); }
.ch-track-line { stroke: var(--track); stroke-width: 1; }
.ch-hollow { fill: var(--surface-base); stroke-width: 3; }
.ch-api { stroke: var(--text-muted); stroke-width: 2.5; stroke-dasharray: 2 7; stroke-linecap: round; }
.ch-now { stroke: var(--accent); stroke-dasharray: 5 5; stroke-width: 1.6; }
.ch-nowdot { fill: var(--accent); stroke: var(--surface-void); stroke-width: 2; }
.ch-badge { color: var(--text-muted); }
.fc-price { fill: var(--f-price); } .fc-headroom { fill: var(--f-headroom); } .fc-models { fill: var(--f-models); }
.fc-features { fill: var(--f-features); } .fc-context { fill: var(--f-context); } .fc-needs { fill: var(--f-needs); }
.fs-price { stroke: var(--f-price); } .fs-headroom { stroke: var(--f-headroom); } .fs-models { stroke: var(--f-models); }
.fs-features { stroke: var(--f-features); } .fs-context { stroke: var(--f-context); } .fs-needs { stroke: var(--f-needs); }
.pt { cursor: pointer; outline: none; color: var(--text-primary); }
.pt-dot { transition: opacity 150ms var(--ease-snap); }
.pt:hover .pt-dot, .pt:focus-visible .pt-dot { opacity: .8; }
.sp { transition: opacity 150ms var(--ease-snap); }
.ch-scatter:hover .sp { opacity: .55; }
.ch-scatter .sp:hover { opacity: 1; }
.ch-ring-svg, .ch-donut, .ch-blocks { width: auto; flex: 0 0 auto; }
.ch-stack { height: 16px; }
.bar-g { transform-box: fill-box; transform-origin: left center; animation: grow .7s var(--ease-cine) both; }
.ring-arc { animation: ringin .9s var(--ease-cine) both; }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes ringin { from { stroke-dashoffset: var(--c); } }

/* ---------- find my plan ---------- */
.finder { padding: 28px; }
.f-step { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 1rem; margin: 4px 0 14px; color: var(--text-primary); }
.step-n {
  color: var(--text-muted); font-size: .82rem; font-weight: 500;
  font-family: var(--mono);
}
.preset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 26px; }
.preset {
  /* flex column: a <button> stretched by the grid would otherwise centre its content and leave a band above the image */
  position: relative; display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; text-align: left;
  border: 1px solid var(--border-hairline); border-radius: var(--radius); overflow: hidden;
  background: var(--surface-base); color: var(--text-primary); cursor: pointer; padding: 0; font: inherit;
  transition: transform 150ms var(--ease-snap);
}
.preset:hover { transform: scale(0.98); }
.preset img { display: block; flex: none; margin: 0; width: 100%; height: auto; border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; aspect-ratio: 1 / 1; object-fit: cover; background: #000; }
.preset-t { display: block; padding: 9px 12px 11px; }
.preset-t b { display: block; font-size: .92rem; font-weight: 500; }
.preset-t span { display: block; color: var(--text-muted); font-size: .76rem; line-height: 1.3; }
.preset[aria-pressed="true"] { border-color: var(--accent); }
.preset[aria-pressed="true"]::after {
  content: ""; position: absolute; top: 9px; right: 9px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px var(--surface-void);
}
/* step 1 keeps the same slots in both modes: plan type, budget, seats (team only), annual at the far right */
.f-setup { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px 32px; margin-bottom: 8px; }
.f-setup .f-block { margin-bottom: 0; }
.f-setup .f-mode { width: 230px; }
.f-setup .seg button { white-space: nowrap; }
.f-setup .f-budget { width: 300px; }
.f-setup .f-seats { width: 170px; }
.f-setup .f-label { white-space: nowrap; }
/* chips (just me) and the seat total (team) share one line under the budget slot */
.f-setup-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 30px; margin-bottom: 20px; padding-left: 262px; }
.pills[hidden] { display: none; }
.f-block { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.f-block[hidden], .f-set[hidden] { display: none; }
.f-label { font-size: .82rem; color: var(--text-muted); font-weight: 500; }
.f-help { font-size: .75rem; color: var(--text-muted); max-width: 300px; }
.f-block input[type="number"] { width: 170px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pills .chip { padding: 4px 11px; font-size: .8rem; margin: 0; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: .9rem; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track {
  position: relative; width: 42px; height: 24px; border-radius: 999px;
  background: var(--track); border: 1px solid var(--border-hairline);
  transition: transform 150ms var(--ease-snap); flex: 0 0 auto;
}
.switch .track::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--text-display); transition: transform 150ms var(--ease-snap);
}
.switch input:checked + .track { background: var(--accent); border-color: transparent; }
.switch input:checked + .track::after { transform: translateX(18px); background: var(--on-accent); }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }
.f-set { border: 0; margin: 0; padding: 0; min-width: 0; }
.f-set legend { font-size: .82rem; color: var(--text-muted); font-weight: 500; padding: 0; margin-bottom: 10px; }
.use-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tile { position: relative; display: block; cursor: pointer; }
.tile input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tile-body {
  display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 12px; border-radius: 8px;
  border: 1px solid var(--border-hairline); background: var(--surface-raised);
  transition: transform 150ms var(--ease-snap);
}
.tile-body .ic { width: 22px; height: 22px; color: var(--text-muted); }
.tile-body b { font-size: .84rem; line-height: 1.25; font-weight: 500; color: var(--text-primary); }
.tile:hover .tile-body { transform: scale(0.98); }
.tile input:checked + .tile-body { border-color: var(--accent); }
.tile input:checked + .tile-body .ic { color: var(--text-primary); }
.tile input:focus-visible + .tile-body { outline: 2px solid var(--accent); outline-offset: 2px; }
.weights-row { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.sliders { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px 26px; flex: 1 1 520px; }
.slider { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 10px; align-items: center; font-size: .86rem; }
.slider .sw { width: 12px; height: 12px; border-radius: 2px; }
.slider input { grid-column: 1 / 4; width: 100%; accent-color: var(--accent); }
.slider output { font-weight: 500; min-width: 1ch; text-align: right; font-family: var(--mono); }
.mix { display: flex; align-items: center; gap: 12px; font-size: .78rem; color: var(--text-muted); }
.f-actions { display: flex; gap: 12px; align-items: center; margin-top: 20px; flex-wrap: wrap; }

/* results — bento: best match is the large tile, DOM order = visual order */
#finder-result h3.res-h { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; margin: 34px 0 6px; }
.podium {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
  margin-top: 16px;
}
.pick {
  position: relative; padding: 22px 22px 24px;
  background: var(--surface-base);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius);
  display: flex; flex-direction: column;
}
/* #1 spans the full row: summary on the left, reasons and actions on the right */
.pick-1 {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 40px;
  border-color: var(--accent);
}
/* with only two results, the second one takes the full row */
.pick-2:last-child { grid-column: 1 / -1; }
.pick-main, .pick-side { min-width: 0; display: flex; flex-direction: column; }
.pick-side { flex: 1 1 auto; gap: 12px; }
.pick .pick-side > .btn { margin-top: auto; align-self: flex-start; }
.pick-rank {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: .72rem;
  letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px;
  font-family: var(--mono);
}
.pick-1 .pick-rank { color: var(--text-display); }
.pick-head { display: flex; align-items: center; gap: 12px; }
.pick-head .ring-wrap { margin-left: auto; }
.pick-vendor { font-size: .8rem; color: var(--text-muted); font-weight: 500; }
.pick-name { font-size: 1.3rem; font-weight: 500; letter-spacing: -.02em; line-height: 1.1; color: var(--text-display); }
.pick-price {
  font-size: 2.3rem; font-weight: 500; letter-spacing: -.04em; line-height: 1; margin: 16px 0 4px;
  font-variant-numeric: tabular-nums; font-family: var(--mono); color: var(--text-display);
}
.pick-price small { font-size: .85rem; font-weight: 400; color: var(--text-muted); letter-spacing: 0; font-family: var(--sans); }
.pick .ch-stack { margin: 12px 0 6px; max-width: 340px; }
.cov { font-size: .78rem; color: var(--text-muted); margin: 6px 0 0; }
ul.why { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 7px; font-size: .88rem; }
ul.why li { display: flex; gap: 9px; align-items: flex-start; }
ul.why li .tt { min-width: 0; }
ul.why li .ic { margin-top: 3px; color: var(--text-muted); }
ul.why li.ok .ic { color: var(--text-muted); }
ul.why li.no { color: var(--text-muted); }
ul.why li.no .ic { color: var(--text-faint); }
.tt-hi { color: var(--text-display); }
.tt-lo { color: var(--text-muted); }
details.math { margin: 14px 0 6px; font-size: .85rem; }
/* why this order: calm summary above the podium, one line per lower-ranked card */
.rank-why { margin-top: 16px; padding: 16px 20px; background: var(--surface-base); border: 1px solid var(--border-hairline); border-radius: var(--radius); font-size: .92rem; color: var(--text-body); }
.rank-why p { margin: 0; max-width: 95ch; }
.rank-why .rank-why-h { display: flex; align-items: center; gap: 8px; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); font-family: var(--mono); margin-bottom: 8px; }
.pick-why { font-size: .82rem; color: var(--text-muted); margin: 4px 0 8px; line-height: 1.45; }
details.math summary { cursor: pointer; color: var(--text-primary); font-weight: 500; list-style: none; }
.pick .btn { margin-top: 10px; }
.compare { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 24px; align-items: center; padding: 22px; margin-top: 18px; }
.compare ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.compare li { display: flex; align-items: center; gap: 10px; font-size: .92rem; }
.compare li i { width: 28px; height: 2px; border-radius: 0; display: inline-block; flex: 0 0 auto; background: var(--text-muted); }
.compare li:first-child i { background: var(--accent); }
.vendor-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.vbest { display: flex; align-items: center; gap: 14px; padding: 16px; }
.vbest .vb-t { min-width: 0; flex: 1; }
.vbest b { display: block; font-size: 1.02rem; font-weight: 500; color: var(--text-primary); }
.vbest .vb-p { font-size: 1.15rem; font-weight: 500; font-variant-numeric: tabular-nums; font-family: var(--mono); }
.overchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ochip {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border-radius: 999px;
  border: 1px dashed var(--border-strong); color: var(--text-muted); font-size: .82rem;
}
ul.limits { margin: 18px 0 0; padding-left: 18px; color: var(--text-muted); font-size: .85rem; }

/* ---------- best value ---------- */
.vbanner {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: stretch;
  border-radius: var(--radius); overflow: hidden; margin-bottom: 26px;
  border: 1px solid var(--border-hairline); background: var(--surface-base);
}
.vbanner > img {
  display: block; width: 100%; height: 100%; min-height: 280px; object-fit: cover; object-position: center; background: #000; order: 2;
}
.vbanner-in { padding: 34px; max-width: 720px; color: var(--text-body); }
.vbanner-in .sec-head { margin-bottom: 14px; }
.vbanner-in .lead { color: var(--text-muted); }
.value-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.vcard { padding: 24px; margin: 18px 0; }
.vcard-h { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.vcard-h h3 { margin: 0; font-size: 1.25rem; }
.cheap { display: grid; gap: 8px; }
.cheap-row { display: grid; grid-template-columns: minmax(150px, 1.1fr) repeat(3, minmax(0, 1fr)); gap: 10px; align-items: stretch; }
.cheap-use { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: .9rem; }
.cheap-use .ic { width: 20px; height: 20px; color: var(--text-muted); }
.cheap-head .cheap-cell { background: none; border: 0; flex-direction: row; justify-content: flex-start; padding: 0 4px; gap: 10px; font-weight: 500; }
.cheap-cell {
  position: relative; display: flex; flex-direction: column; justify-content: center; gap: 2px;
  padding: 10px 12px; border-radius: 8px; background: var(--surface-raised); border: 1px solid var(--border-hairline);
  font-size: .84rem; min-height: 58px;
}
.cheap-cell.win { background: var(--surface-raised); border-color: var(--accent); }
.cheap-cell .cp { font-size: 1.15rem; font-weight: 500; font-variant-numeric: tabular-nums; line-height: 1.1; font-family: var(--mono); }
.cheap-cell .cp small { font-weight: 400; font-size: .72rem; color: var(--text-muted); font-family: var(--sans); }
.cheap-cell .cn { color: var(--text-muted); font-size: .76rem; }
.cheap-cell .crown { position: absolute; top: -9px; right: 8px; color: var(--text-muted); background: var(--surface-base); border-radius: 50%; padding: 3px; width: 24px; height: 24px; border: 1px solid var(--border-hairline); }
.cheap-cell.off { opacity: .7; border-style: dashed; justify-content: center; color: var(--text-muted); }
.step-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.step-col { padding: 16px; border-radius: var(--radius); background: var(--surface-raised); border: 1px solid var(--border-hairline); }
.step-col h4 { display: flex; align-items: center; gap: 10px; font-size: 1rem; margin-bottom: 8px; }
.pools { display: grid; gap: 8px; margin-top: 12px; }
.pool { display: grid; grid-template-columns: 72px 1fr; gap: 10px; align-items: center; font-size: .8rem; color: var(--text-muted); }
.pool b { color: var(--text-primary); font-size: .84rem; display: block; font-weight: 500; }
.heat { display: grid; gap: 10px; }
.heat-row { display: grid; grid-template-columns: 112px repeat(3, minmax(0, 1fr)); gap: 10px; align-items: stretch; }
.heat-row .hl { display: flex; align-items: center; font-weight: 500; font-size: .9rem; gap: .3em; flex-wrap: wrap; }
.heat-head .hc { background: none; border: 0; flex-direction: row; align-items: center; gap: 10px; font-weight: 500; padding: 0 4px; min-height: 0; }
.hc {
  display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 8px;
  background: var(--surface-raised); border: 1px solid var(--border-hairline); font-size: .82rem; min-height: 96px;
}
.hc.empty { border-style: dashed; color: var(--text-muted); justify-content: center; }
.hc .hp { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.hc .hp b { font-size: .98rem; font-weight: 500; }
.hc .hp span { font-weight: 500; font-variant-numeric: tabular-nums; font-family: var(--mono); }
.hc .hp small { font-weight: 400; color: var(--text-muted); font-size: .72rem; }
.caps { display: flex; gap: 4px; flex-wrap: wrap; }
.heat-key { display: flex; flex-wrap: wrap; gap: 10px 16px; font-size: .78rem; color: var(--text-muted); align-items: center; margin-bottom: 14px; }
.heat-key > span { display: inline-flex; align-items: center; gap: 6px; line-height: 26px; }
.heat-key > span > .cap-dot { gap: 0; }
.pit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pit-col h4 { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 1rem; }
.pit { padding: 12px 13px; border-radius: 8px; background: var(--surface-raised); border: 1px solid var(--border-hairline); margin-bottom: 9px; font-size: .85rem; }
.pit b { display: block; font-size: .88rem; margin-bottom: 2px; font-weight: 500; color: var(--text-primary); }
.pit p { margin: 0; color: var(--text-muted); }
.credit-note { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--text-muted); margin-top: 8px; }
.credit-note .ic { color: var(--text-muted); margin-top: 2px; }
.calc-inputs { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 14px; }
.calc-inputs label { display: flex; flex-direction: column; gap: 5px; font-size: .82rem; color: var(--text-muted); font-weight: 500; }
.calc-inputs input { width: 180px; }
.cheapest { font-weight: 500; color: var(--text-display); }
.seat-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

/* ---------- reference sections ---------- */
.plan-card { padding: 22px; }
.pc-top { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.pc-top .pn { font-weight: 500; font-size: 1.15rem; line-height: 1.1; color: var(--text-display); }
.pc-top .pv { color: var(--text-muted); font-size: .8rem; font-weight: 500; }
.price {
  font-size: 2.1rem; font-weight: 500; letter-spacing: -.04em; line-height: 1.05;
  font-variant-numeric: tabular-nums; font-family: var(--mono); color: var(--text-display);
}
.price small { font-size: .85rem; font-weight: 400; color: var(--text-muted); letter-spacing: 0; font-family: var(--sans); }
.billing { font-size: .8rem; color: var(--text-muted); margin: 4px 0 10px; }
.tagline { color: var(--text-muted); margin: 2px 0 10px; font-size: .9rem; }
.kv { margin: 12px 0 4px; font-size: .87rem; }
.kv b { display: flex; align-items: center; gap: 6px; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); margin-bottom: 5px; font-weight: 500; font-family: var(--mono); }
.kv b .ic { width: 14px; height: 14px; }
ul.tight { margin: 6px 0 0; padding-left: 18px; }
ul.tight li { margin: 3px 0; }
ul.feat { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 7px; }
ul.feat li { display: flex; gap: 9px; align-items: flex-start; }
ul.feat li .ic { color: var(--text-muted); margin-top: 3px; }
.mini-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.mini-tags span { background: transparent; border: 1px solid var(--border-hairline); border-radius: 6px; padding: 2px 9px; font-size: .78rem; }
.src { font-size: .76rem; color: var(--text-muted); margin-top: 12px; }
.src a { color: var(--text-muted); }
.meters { display: grid; gap: 6px; margin: 14px 0 6px; }
.usage-card { padding: 20px; }
.usage-card h3 { margin: 0 0 8px; display: flex; align-items: center; gap: 10px; font-size: 1.05rem; }
.dm { width: 100%; }
.dm td, .dm th { text-align: center; padding: 7px 8px; }
.dm td:first-child, .dm th:first-child { text-align: left; }
.src-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.src-list li { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }

.site-footer { border-top: 1px solid var(--border-hairline); padding: 26px 0; color: var(--text-muted); font-size: .85rem; margin-top: 80px; }

/* ---------- motion ---------- */
/* sections are always visible: no reveal animation (content must never be hidden on mobile) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .bar-g, .ring-arc { animation: none !important; }
  * { transition-duration: .01ms !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1400px) { .bar-right .pill { display: none; } }
@media (max-width: 1060px) {
  .bar { flex-wrap: wrap; row-gap: 6px; }
  .nav { order: 3; flex: 1 1 100%; }
  html { scroll-padding-top: 150px; }
  .hero { grid-template-columns: 1fr; padding-top: 34px; }
  .vbanner { grid-template-columns: 1fr; }
  .vbanner > img { min-height: 180px; max-height: 220px; order: 0; }
  .f-setup { flex-direction: column; align-items: stretch; }
  .f-setup .f-mode, .f-setup .f-budget, .f-setup .f-seats { width: auto; }
  .f-setup-sub { padding-left: 0; }
  .compare { grid-template-columns: 1fr; }
  .podium { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .cols-3, .cols-2, .step-grid, .pit-grid, .vendor-row { grid-template-columns: minmax(0, 1fr); }
  .heat-row { grid-template-columns: 1fr; }
  .heat-head { display: none; }
  .heat-row .hl { font-size: 1rem; margin-top: 8px; }
  .cheap-row { grid-template-columns: 1fr; }
  .cheap-head { display: none; }
  .cheap-use { margin-top: 8px; }
  .sec-head { gap: 12px; }
  section.sec { margin: 88px 0; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 14px; }
  .pick-1 { grid-template-columns: minmax(0, 1fr); row-gap: 18px; }
  section.sec { margin: 72px 0; }
  .finder, .vcard { padding: 16px; }
  .brand-text { display: none; }
  .bar-right .pill { display: none; }
  .vbanner-in { padding: 22px; }
  .price { font-size: 1.8rem; }
  .ctl select { min-width: 150px; max-width: 100%; }
  input[type="search"] { width: 100%; }
  .hero-metric b { font-size: 2rem; }
}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.f-label .req{color:#e5484d;margin-left:2px}

/* ---------- static content pages (generated by scripts/build.mjs) ---------- */
.page { padding-top: 30px; max-width: 1000px; }
.page h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.05; margin: 12px 0 12px; }
.page h2 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); margin: 56px 0 14px; scroll-margin-top: 90px; }
.page h3 { scroll-margin-top: 90px; }
.page p, .page li { max-width: 78ch; }
.page main a, .page a:not(.btn):not(.brand) { color: var(--text-primary); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; font-size: .82rem; color: var(--text-muted); }
.crumbs li + li::before { content: "\203A"; margin-right: 6px; color: var(--text-faint); }
.crumbs a { color: var(--text-muted) !important; text-decoration: none; }
.dateline { font-size: .82rem; color: var(--text-muted); margin: 0 0 20px; font-family: var(--mono); }
.answer { border: 1px solid var(--border-hairline); border-radius: var(--radius); background: var(--surface-base); padding: 20px 22px; font-size: 1.04rem; color: var(--text-primary); line-height: 1.6; margin: 0 0 8px; }
.answer p { margin: 0; max-width: none; }
.tcard { padding: 2px 0; margin: 14px 0; }
.tcard caption { font-size: .84rem; }
.tcard th[scope="row"] { font-weight: 500; color: var(--text-primary); }
.plist { padding-left: 20px; margin: 8px 0 12px; }
.plist li { margin: 5px 0; }
.faq-item h3 { margin: 24px 0 6px; }
.faq-item p { margin: 0; }
.notice { border-left: 2px solid var(--border-strong); padding: 6px 14px; color: var(--text-muted); font-size: .88rem; margin: 12px 0; }
.rel-links { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.rel-links li { max-width: none; }
.rel-links a { display: block; padding: 11px 14px; border: 1px solid var(--border-hairline); border-radius: var(--radius); text-decoration: none; background: var(--surface-base); color: var(--text-primary); }
.rel-links a:hover { border-color: var(--border-strong); }
.cta { margin: 26px 0 0; display: flex; gap: 10px; flex-wrap: wrap; }
.foot-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px 24px; margin: 0 0 18px; }
.foot-links ul { list-style: none; padding: 0; margin: 0; }
.foot-links li { margin: 4px 0; }
.foot-h { margin: 0 0 6px; font-family: var(--mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); }
#key-facts:empty, #home-dates:empty, #compare-links:empty { display: none; }
.hub-links { margin-top: 4px; }
.site-footer a { color: var(--text-muted); }
@media (max-width: 640px) { .page { padding-top: 18px; } .answer { padding: 16px; font-size: 1rem; } .page td:first-child, .page th:first-child { min-width: 130px; } }

/* ---------- 5-section layout ---------- */
.anchor { display: block; position: relative; height: 0; width: 0; overflow: hidden; }
.chipbar { display: none; }
.glance { padding: 0; overflow-x: auto; }
.glance-t { width: 100%; border-collapse: collapse; font-size: .86rem; }
.glance-t caption { caption-side: top; text-align: left; padding: 14px 16px 6px; color: var(--text-muted); font-size: .76rem; font-family: var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.glance-t th, .glance-t td { padding: 10px 12px; border-top: 1px solid var(--border-hairline); text-align: left; vertical-align: top; }
.glance-t thead th { color: var(--text-muted); font-weight: 500; font-size: .78rem; }
.glance-t tbody th { font-weight: 500; white-space: nowrap; border-left: 3px solid var(--vc, transparent); }
.glance-t tbody th .logo { vertical-align: middle; }
.glance-t a { color: var(--text-primary); text-decoration: none; }
.glance-t a:hover { text-decoration: underline; }
.glance-t .gp { display: block; font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--text-display); font-size: .92rem; }
.glance-t .gfree { display: block; font-size: .7rem; color: var(--text-muted); font-weight: 400; }
.hero-art .glance { border: 0; border-radius: 0; background: var(--surface-base); }
.sec-head:has(> .seg) { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.sub { margin-top: 40px; }
.cols-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: start; }
.cols-4 > *, .step-col, .sec-tabs, .tabpanel, .tabpanel > *, details.more { min-width: 0; max-width: 100%; }
.tabs-sec { max-width: 100%; }
.sec-tabs { margin-top: 44px; }
.tabs-sec { border-bottom: 1px solid var(--border-hairline); padding-bottom: 10px; }
.tabs-sec [role="tab"] {
  font: inherit; font-size: .88rem; padding: 7px 13px; border-radius: 8px; cursor: pointer;
  background: var(--surface-base); border: 1px solid var(--border-hairline); color: var(--text-muted);
}
.tabs-sec [role="tab"][aria-selected="true"] { background: var(--accent); color: var(--on-accent); border-color: transparent; font-weight: 500; }
.tabpanel { padding-top: 8px; }
.tabpanel > h3 { margin-top: 26px; }
details.more { margin-top: 18px; }
details.more > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--text-primary); }
details.more[open] > summary { margin-bottom: 14px; }
.caps { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0; }
.usage-tabs { display: none; }
.site-footer h2 { font-size: 1.3rem; margin: 10px 0 14px; color: var(--text-primary); }
.site-footer h3 { font-size: 1rem; margin: 26px 0 8px; color: var(--text-primary); }
.site-footer .foot-links { margin-top: 30px; }
.legend-row i.dia { transform: rotate(45deg); border-radius: 1px; }
@media (max-width: 1200px) { .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .nav { display: none; }
  .chipbar {
    display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 10px 14px 10px; margin-top: 2px;
  }
  .chipbar::-webkit-scrollbar { display: none; }
  .chipbar a {
    flex: 0 0 auto; text-decoration: none; font-size: .82rem; padding: 6px 12px; border-radius: 999px;
    border: 1px solid var(--border-hairline); color: var(--text-muted); background: var(--surface-base); white-space: nowrap;
  }
  .chipbar a.on { background: var(--accent); color: var(--on-accent); border-color: transparent; }
  html { scroll-padding-top: 124px; }
  .cols-4 { grid-template-columns: minmax(0, 1fr); }
  .js .usage-tabs { display: flex; }
  .js #usage-root[data-show] > .usage-card { display: none; }
  .js #usage-root[data-show="chatgpt"] > [data-v="chatgpt"], .js #usage-root[data-show="claude"] > [data-v="claude"],
  .js #usage-root[data-show="gemini"] > [data-v="gemini"], .js #usage-root[data-show="grok"] > [data-v="grok"] { display: block; }
  .tabs-sec { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tabs-sec [role="tab"] { flex: 0 0 auto; white-space: nowrap; }
}

/* hero: short title, one-line lead; full price summary lives in #plans */
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); line-height: 1.02; }
.hero-sub { font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--text-primary); margin: 14px 0 0; }
.hero .hero-lead { font-size: 1.02rem; max-width: 46ch; margin: 12px 0 20px; }
.glance-t td.gsame { color: var(--text-muted); }
.price-summary { margin: 14px 2px 0; max-width: 110ch; color: var(--text-muted); line-height: 1.55; }
@media (max-width: 560px) {
  .glance-t { font-size: .8rem; }
  .glance-t th, .glance-t td { padding: 9px 7px; }
  .glance-t .gp { font-size: .84rem; }
  .glance-t caption { padding: 12px 10px 6px; letter-spacing: 0; }
  .glance-t tbody th .logo { display: none; }
  .glance-t th:first-child { min-width: 0; }
}

/* ================= Phase 5 de-slop ================= */
/* Every <details> summary site-wide: one chevron, down when closed, flipped when open. */
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary::marker { content: ""; }
details > summary { display: flex; align-items: center; gap: 8px; }
details > summary::after {
  content: ""; flex: none; width: 7px; height: 7px; margin: 0 4px 3px auto;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform 180ms var(--ease-snap, ease); opacity: .7;
}
details[open] > summary::after { transform: rotate(225deg); margin-bottom: -3px; }
details.more > summary, details.pc-more > summary { display: inline-flex; }
details.more > summary::after { margin-left: 2px; }
summary .ic.chev { display: none; }
details.more > summary > h2 { margin: 0; }

/* Hero vendor pills */
.hero-art .glance { background: none; border: 0; padding: 0; overflow: visible; }
.vpills { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.vpill {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 999px; text-decoration: none;
  background: var(--surface-base); border: 1px solid var(--border-hairline); color: var(--text-primary);
  transition: border-color 150ms, transform 150ms;
}
.vpill:hover, .vpill:focus-visible { border-color: var(--accent); }
.vpill .logo { flex: none; }
.vp-n { font-weight: 500; }
.vp-p { margin-left: auto; font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--text-display); white-space: nowrap; }
.dateline { margin-top: 14px; color: var(--text-muted); }

/* Plan cards: one vendor at a time once JS runs */
.js #plan-cards[data-show] > .plan-card { display: none; }
.js #plan-cards[data-show="chatgpt"] > [data-v="chatgpt"], .js #plan-cards[data-show="claude"] > [data-v="claude"],
.js #plan-cards[data-show="gemini"] > [data-v="gemini"], .js #plan-cards[data-show="grok"] > [data-v="grok"] { display: block; }
#plan-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.plan-card .pc-top { flex-wrap: nowrap; }
.plan-card .pc-top .price { margin-left: auto; font-size: 1.5rem; white-space: nowrap; }
.plan-card ul.feat { padding-left: 18px; list-style: disc; display: block; font-size: .88rem; }
.plan-card ul.feat li { display: list-item; margin: 4px 0; }
.pc-more { margin-top: 10px; font-size: .86rem; }
.pc-more > summary { color: var(--text-muted); font-size: .84rem; }
.see-all { margin: 16px 2px 0; font-size: .9rem; }
.see-all a { color: var(--text-primary); }
section.sec { margin: 80px 0; }
.sec-head .lead { margin: 6px 0 0; color: var(--text-muted); }

/* HTML bar charts (usage, team, API): fluid, readable at 375 */
.mbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .88rem; }
.mbars li { display: grid; grid-template-columns: minmax(0, 11rem) minmax(40px, 1fr) auto; align-items: center; gap: 10px; }
.mb-l { display: flex; align-items: center; gap: 6px; min-width: 0; }
.mb-l > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-l .logo { flex: none; }
.mb-t { height: 8px; border-radius: 4px; background: var(--border-hairline); overflow: hidden; }
.mb-t i { display: block; height: 100%; border-radius: 4px; background: var(--text-muted); }
.mbars li.best .mb-t i { background: var(--accent); }
.mb-v { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.mbars li.best .mb-v { color: var(--text-display); font-weight: 500; }
#usage-root .mbars li { grid-template-columns: minmax(0, 6.5rem) minmax(30px, 1fr) auto; }
.takeaway { font-size: .95rem; padding: 0; border: 0; margin: 4px 0 14px; }

/* SVG charts never wider than their box */
svg.ch { max-width: 100%; height: auto; }
.chart-scroll { overflow-x: auto; }

/* Finder: compact picks */
.preset-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.preset.chip { width: auto; padding: 7px 14px; }
.preset.chip::after { content: none !important; }
.podium { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pick, .pick-1 { display: flex; flex-direction: column; padding: 18px; grid-column: auto; }
.pick-2:last-child { grid-column: auto; }
.pick-head { display: flex; align-items: center; gap: 10px; }
.pick-rank { margin: 0; min-width: 1.6em; }
.pick-t { min-width: 0; flex: 1; }
.pick-name { font-size: 1.02rem; }
.pick-price { font-size: 1.1rem; margin: 2px 0 0; letter-spacing: 0; }
.pick-price small { font-size: .78rem; }
.pick-score { font-family: var(--mono); font-size: 1.05rem; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--border-hairline); color: var(--text-display); }
.pick-1 .pick-score { border-color: var(--accent); }
.pick-why { margin: 12px 0 10px; font-size: .86rem; }
.pick .btn { margin-top: auto; align-self: flex-start; }
.btn.ghost { background: transparent; }
.fx-how .rank-why { padding: 0; border: 0; background: none; }
.fx-how .compare { display: block; padding: 0; max-width: 420px; margin: 12px 0; }
.fx-how-h { margin: 18px 0 6px; font-size: .95rem; }
.math-t { font-size: .84rem; }
.math-t td:first-child, .math-t th:first-child { min-width: 0; }
.ochip { cursor: pointer; font: inherit; font-size: .84rem; }

/* Footer: Popular searches */
.site-footer .foot-h { font-size: 1.05rem; margin: 0 0 12px; }
ul.foot-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
ul.foot-row a { display: inline-block; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border-hairline); color: var(--text-primary); text-decoration: none; font-size: .82rem; }
ul.foot-row a:hover { border-color: var(--accent); }
p.foot-row { margin: 16px 0 6px; }

/* Tables: scroll inside their box, first column sticky, headers never clipped */
.table-wrap { max-width: 100%; overflow-x: auto; }
.table-wrap th { white-space: nowrap; }
.page .table-wrap td:first-child, .page .table-wrap th:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface-void); min-width: 9rem; max-width: 14rem; white-space: normal; }

@media (max-width: 760px) {
  .podium { grid-template-columns: minmax(0, 1fr); }
  .vpills { grid-template-columns: minmax(0, 1fr); }
  section.sec { margin: 56px 0; }
  .mbars li { grid-template-columns: minmax(0, 8.5rem) minmax(30px, 1fr) auto; font-size: .84rem; }
}
@media (max-width: 1060px) { .podium { grid-template-columns: minmax(0, 1fr); } }

/* ADHD pass: one primary action, a big #1 pick, at most 5 items per visible group */
.btn.big { padding: 14px 26px; font-size: 1.05rem; }
.hero-cta { margin-top: 18px; }
#finder #finder-result { margin: 18px 0 0; }
.podium { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pick-1 { grid-column: 1 / -1; padding: 24px; border-color: var(--accent); }
.pick-1 .pick-name { font-size: 1.45rem; }
.pick-1 .pick-price { font-size: 1.6rem; }
.pick-1 .pick-why { font-size: 1rem; color: var(--text-primary); }
.js #plan-cards[data-show] > .plan-card.pc-x:not(.pc-show) { display: none; }
.cap-more { grid-column: 1 / -1; }
.cap-more > .cap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 10px; }
ul.foot-row > li.foot-more { flex-basis: 100%; }
ul.foot-row > li.foot-more ul.foot-row { margin-top: 10px; }
@media (max-width: 1060px) { .podium { grid-template-columns: minmax(0, 1fr); } }
#vr-team .mbars li { grid-template-columns: minmax(0, 20rem) minmax(40px, 1fr) auto; }
#vr-team .mb-l > span { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.25; }
@media (max-width: 760px) { #vr-team .mbars li { grid-template-columns: minmax(0, 9.5rem) minmax(30px, 1fr) auto; } }
#finder .panel.finder { padding: 20px 24px; }
#finder .panel.finder .f-set { margin-top: 14px; }
@media (max-width: 600px) { #finder .panel.finder { padding: 16px; } }

/* ---------- Card grids site-wide: equal heights, balanced rows, one card style ---------- */
.card-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.card-grid > * { min-width: 0; }
.podium, .use-grid, .cap-grid, .cols-2, .cols-3, .cols-4, .step-grid, .pit-grid, .vendor-row, .vpills, .rel-links { align-items: stretch; }
.plan-card, .usage-card { display: flex; flex-direction: column; padding: 20px; border-radius: var(--radius); }
.js #plan-cards[data-show="chatgpt"] > [data-v="chatgpt"], .js #plan-cards[data-show="claude"] > [data-v="claude"],
.js #plan-cards[data-show="gemini"] > [data-v="gemini"], .js #plan-cards[data-show="grok"] > [data-v="grok"] { display: flex; }
.js #plan-cards[data-show] > .plan-card.pc-x:not(.pc-show) { display: none; }
.plan-card .pc-top { margin-bottom: 10px; }
.plan-card .price { font-family: var(--mono); font-size: 1.5rem; font-weight: 500; letter-spacing: -.01em; line-height: 1.1; color: var(--text-display); margin: 0 0 8px; white-space: nowrap; }
.plan-card .price small { font-size: .8rem; font-weight: 400; color: var(--text-muted); font-family: var(--sans); letter-spacing: 0; }
.plan-card .tagline { margin: 0 0 8px; }
.plan-card ul.feat { margin: 0; }
.plan-card .pc-more { margin-top: auto; padding-top: 12px; }
.pc-top .pn, .pick-name, .usage-card h3 { font-size: 1.05rem; font-weight: 500; line-height: 1.2; }
.pick .btn { margin-top: auto; align-self: flex-start; }
.tile-body { height: 100%; }
.use-grid > .tile, .cap-grid > .tile { height: 100%; }
.rel-links { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.rel-links li { display: flex; }
.rel-links a { flex: 1; }
@media (max-width: 760px) { .rel-links { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  .card-grid { grid-template-columns: minmax(0, 1fr); }
  .js #usage-root[data-show="chatgpt"] > [data-v="chatgpt"], .js #usage-root[data-show="claude"] > [data-v="claude"],
  .js #usage-root[data-show="gemini"] > [data-v="gemini"], .js #usage-root[data-show="grok"] > [data-v="grok"] { display: flex; }
}

/* ---------- Restored visuals ---------- */
.chart-t { margin: 0 0 10px; font-size: .78rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); font-family: var(--mono); }
.chart-panel { padding: 18px 20px; margin: 0 0 22px; overflow: hidden; }
.chart-panel .chart-scroll, .compare-panel .chart-scroll { max-width: 100%; }
.chart-panel svg.ch, .compare-panel svg.ch { display: block; width: 100%; height: auto; }
#ladder-root .pt { cursor: pointer; }
#plans .sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
#plans .tabs { margin-bottom: 14px; }
.compare-panel { margin-top: 18px; padding: 14px 20px; }
.compare-panel > summary { font-weight: 500; color: var(--text-primary); cursor: pointer; }
.compare-panel[open] > summary { margin-bottom: 14px; }
.compare-panel [role=tabpanel] { padding-top: 6px; min-width: 0; }
/* Features by price band: icon matrix */
.bm-key { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .78rem; color: var(--text-muted); margin: 0 0 12px; }
.bm-key span { display: inline-flex; align-items: center; gap: 5px; }
.bm-key .ic { width: 15px; height: 15px; }
.bmatrix { display: grid; gap: 6px; }
.bm-row { display: grid; grid-template-columns: 92px repeat(4, minmax(0, 1fr)); gap: 6px; align-items: stretch; }
.bm-head span { display: flex; align-items: center; gap: 8px; font-size: .84rem; padding: 4px 8px; }
.bm-band { font-family: var(--mono); font-size: .8rem; color: var(--text-muted); display: flex; align-items: center; }
.bm-cell { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px solid var(--border-hairline); border-radius: var(--radius); background: var(--surface-raised); min-width: 0; }
.bm-none { visibility: hidden; }
.bm-vn { display: none; font-style: normal; font-size: .72rem; color: var(--text-muted); }
.bm-pn { font-size: .86rem; font-weight: 500; color: var(--text-primary); }
.bm-caps { display: flex; flex-wrap: wrap; gap: 4px; }
.bm-cap { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--border-hairline); }
.bm-cap .ic { width: 13px; height: 13px; }
.bm-y { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.bm-l { border-color: var(--accent); color: var(--text-primary); background: transparent; }
.bm-n, .bm-u { color: var(--text-faint); opacity: .45; }
i.bm-cap { width: 12px; height: 12px; border-radius: 3px; }
@media (max-width: 600px) {
  .bm-head { display: none; }
  .bm-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bm-band { grid-column: 1 / -1; padding-top: 8px; }
  .bm-vn { display: block; }
  .bm-none { display: none; }
}
/* Finder: radar beside the #1 pick */
.pick-1.has-radar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 340px); column-gap: 28px; align-items: start; }
.pick-1.has-radar > .pick-main { display: flex; flex-direction: column; height: 100%; }
.pick-radar { min-width: 0; }
.pick-radar svg.ch { display: block; width: 100%; height: auto; max-width: 340px; }
.pick-radar .legend-row { font-size: .74rem; }
@media (max-width: 760px) { .pick-1.has-radar { grid-template-columns: minmax(0, 1fr); row-gap: 14px; } .pick-radar svg.ch { margin: 0 auto; } }
.f-hint { margin: 0 0 12px; color: var(--text-muted); font-size: .9rem; }
.money-info:empty { display: none; }

/* ---------- Currency & tax popover ---------- */
.cur-wrap { position: relative; }
.controls.pop { position: absolute; top: calc(100% + 10px); right: 0; left: auto; width: 300px; z-index: 60; border: 1px solid var(--border-hairline); border-top: 1px solid var(--border-hairline); border-radius: var(--radius); background: var(--surface-base); box-shadow: 0 12px 32px rgba(0, 0, 0, .28); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.controls.pop[hidden] { display: none; }
.controls.pop::before { content: ""; position: absolute; top: -7px; right: 12px; width: 12px; height: 12px; background: var(--surface-base); border-left: 1px solid var(--border-hairline); border-top: 1px solid var(--border-hairline); transform: rotate(45deg); }
.controls.pop .ctl { width: 100%; }
.controls.pop .ctl select, .controls.pop .ctl input { width: 100%; min-width: 0; max-width: none; }
.controls.pop .seg { align-self: stretch; }
.controls.pop .seg button { flex: 1; }
.controls.pop .money-info { padding: 0; }
.controls.pop .ctl-reset { align-self: flex-start; background: none; border: 0; padding: 0; color: var(--text-muted); font: inherit; font-size: .84rem; text-decoration: underline; cursor: pointer; }
.controls.pop .ctl-reset:hover { color: var(--text-primary); }
@media (max-width: 600px) {
  .controls.pop { position: fixed; left: 0; right: 0; width: auto; top: 96px; border-radius: 0 0 var(--radius) var(--radius); border-left: 0; border-right: 0; }
  .controls.pop::before { display: none; }
}
.podium:has(> .pick-1.has-radar) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.podium > .pick-1.has-radar { grid-column: 1 / -1; }
.podium:has(> .pick-1.has-radar) > .pick-2:last-child { grid-column: 1 / -1; }
@media (max-width: 600px) { .podium:has(> .pick-1.has-radar) { grid-template-columns: minmax(0, 1fr); } }

/* usage dots: linear unit chart, 1 dot = base plan, rows of 20 */
.mdots li { grid-template-columns: minmax(0, 7rem) auto 1fr; grid-template-areas: "l d v"; align-items: start; }
.mdots .mb-l { grid-area: l; } .mdots .mb-v { grid-area: v; line-height: 1.2; }
.mb-d { grid-area: d; display: grid; grid-template-columns: repeat(20, 6.5px); gap: 2.5px; padding-top: .5em; }
.mb-d i { width: 6.5px; height: 6.5px; border-radius: 50%; background: var(--accent); }
/* dots go under the plan name whenever the card is too narrow for name + 20 dots + value on one line */
.mdots { container-type: inline-size; min-width: 0; }
@container (max-width: 400px) { .mdots li { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "l v" "d d"; row-gap: 4px; } .mb-d { padding-top: 0; } }
@media (max-width: 560px) { .mdots li { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "l v" "d d"; row-gap: 4px; } .mb-d { padding-top: 0; } }
.dot-key { margin: 10px 0 0; }

/* global billing toggle in the top bar */
.bill-seg { align-self: center; }
.bill-seg button { padding: 6px 10px; font-size: .8rem; }
.bill-seg .bs { display: none; }
@media (max-width: 560px) { .bill-seg .bl { display: none; } .bill-seg .bs { display: inline; } .bill-seg button { padding: 6px 8px; } }

/* sticky top bar: brand left, nav, then currency/theme + billing grouped right; always visible */
.topbar { position: sticky; top: 0; background: color-mix(in oklab, var(--surface-void) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.bar-left { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; margin-left: auto; }
.bar-right { margin-left: -8px; }

.nojs-list { margin: 0; padding-left: 1.4em; display: grid; gap: 4px; color: var(--text-muted); font-size: .9rem; }
.nojs-line { margin: 0 0 8px; color: var(--text-muted); font-size: .9rem; }
.nojs-panel { grid-column: 1 / -1; padding: 16px; }

@media (max-width: 560px) { .controls.pop { position: fixed; top: 102px; left: 14px; right: 14px; width: auto; } .controls.pop::before { display: none; } }

/* footer: all pages in labelled columns */
.foot-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px 32px; margin: 0 0 22px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin: 0 0 7px; }
.foot-col a { color: var(--text-muted); text-decoration: none; font-size: .85rem; }
.foot-col a:hover { color: var(--text-primary); text-decoration: underline; }
.site-footer .foot-col .foot-h { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); margin: 0 0 10px; }
@media (max-width: 900px) { .foot-cols { grid-template-columns: 1fr 1fr; } }

/* summary box: one sentence, then key facts as aligned label/value rows */
.answer-facts { margin: 12px 0 0; display: grid; gap: 6px; font-size: .95rem; }
.answer-facts > div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 12px; }
.answer-facts dt { color: var(--text-muted); }
.answer-facts dd { margin: 0; color: var(--text-primary); font-variant-numeric: tabular-nums; }
@media (max-width: 480px) { .answer-facts > div { grid-template-columns: 7.5rem minmax(0, 1fr); } }

/* Vendor logos inline in deep pages */
.vlogo { vertical-align: -0.22em; margin-right: .35em; }
th .vlogo, li .vlogo { --s: 18px; }
h3 .vlogo { --s: 20px; }
.h1-logos { display: flex; align-items: center; gap: .6rem; margin: .4rem 0 .5rem; }
.h1-logos .vlogo { margin: 0; }
.h1-vs { color: var(--text-muted); font-size: .85rem; font-weight: 500; }

/* Sortable table headers (sort.js) */
.sort-btn { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; white-space: inherit; border-radius: 4px; }
.sort-btn:hover { color: var(--text-display); }
.sort-btn:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.sort-btn::after { content: ""; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 5px solid currentColor; opacity: 0; transition: opacity .15s; }
.sort-btn:hover::after { opacity: .35; }
th[aria-sort] .sort-btn::after { opacity: 1; }
th[aria-sort="descending"] .sort-btn::after { transform: rotate(180deg); }
.brand-text { letter-spacing: -.022em; font-weight: 700; }
.brand-text .bt-m { color: var(--text-muted); }
.brand-text .bt-ai { font-weight: 500; }
