/* Benchmark page. Extends the tokens in landing.css — this sheet defines no
   colours of its own, so the page cannot drift away from the landing page it
   has to look like. Loaded only on /benchmark via @stack('styles'). */

.bm-main { padding-bottom: 40px; }

.bm-hero {
  padding: 76px 0 46px;
  max-width: 900px;
}

.bm-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 1.3rem + 3vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 10px 0 18px;
}

.bm-hero .lede { max-width: 68ch; }

/* Four figures, but the grid is auto-fit rather than a fixed four columns:
   the numbers are rendered at display size and a fixed track would clip the
   widest of them on a narrow laptop before any breakpoint fired. */
.bm-headline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 18px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--line-strong);
}

.bm-figure {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 1.6rem + 2.4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.bm-figure small {
  font-size: 0.44em;
  color: var(--quiet);
  letter-spacing: 0;
}

.bm-figure-label {
  display: block;
  margin-top: 9px;
  font-size: 0.86rem;
  line-height: 1.35;
  color: var(--muted);
}

.bm-section { padding: 54px 0; border-top: 1px solid var(--line); }

.bm-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 8px 0 0;
}

/* ── Per-check bars ─────────────────────────────────────────────────────── */

.bm-checks {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  display: grid;
  gap: 26px;
}

.bm-check-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.bm-check-name {
  flex: 1 1 260px;
  font-weight: 600;
}

.bm-check-rate {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.bm-bar {
  display: block;
  position: relative;
  height: 12px;
  margin-top: 10px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.bm-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  /* Teal, not vermillion: this is the "authoritative data" surface, and
     vermillion is reserved for actions. A pass rate drawn in the CTA colour
     reads as something to click. */
  background: var(--teal);
}

.bm-bar-slim { height: 9px; margin-top: 0; min-width: 120px; }

.bm-check-counts {
  margin: 8px 0 0;
  font-size: 0.78rem;
  color: var(--quiet);
}

/* ── Distribution table ─────────────────────────────────────────────────── */

.bm-table {
  width: 100%;
  margin-top: 30px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.bm-table th, .bm-table td {
  text-align: left;
  padding: 11px 14px 11px 0;
  border-bottom: 1px solid var(--line);
}

.bm-table thead th {
  font-size: 0.74rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--quiet);
  font-weight: 600;
}

.bm-table tbody th { font-weight: 600; white-space: nowrap; }
.bm-table td:last-child { width: 45%; padding-right: 0; }

/* ── Segments ───────────────────────────────────────────────────────────── */

.bm-segments {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.bm-segment { padding: 26px 24px; background: var(--surface); border-radius: var(--radius); }

.bm-segment-label {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.bm-segment-figure {
  margin: 10px 0 6px;
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1;
  letter-spacing: -0.03em;
}

.bm-segment-figure small { font-size: 0.4em; color: var(--quiet); }

/* ── Method ─────────────────────────────────────────────────────────────── */

.bm-method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px 40px;
  margin-top: 30px;
}

.bm-method-grid h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
}

.bm-method-grid p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ── Closing CTA ────────────────────────────────────────────────────────── */

.bm-cta { padding: 20px 0 90px; }

.bm-cta-panel {
  padding: 44px 40px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  max-width: 760px;
}

.bm-cta-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.1rem);
  line-height: 1.15;
  margin: 8px 0 14px;
}

.bm-cta-panel .btn { margin-top: 10px; }

@media (max-width: 640px) {
  .bm-hero { padding-top: 52px; }
  .bm-cta-panel { padding: 32px 24px; }
  .bm-table td:last-child { display: none; }
}
