/* Benchmarks page. Shares styles.css with the homepage; this file adds the chart cards. */
.bench-body .site-header {color: #fff;}
.bench-hero {background: var(--blue); color: #fff; padding: 152px 0 72px;}
.eyebrow {font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.75); margin-bottom: 24px;}
.bench-hero h1 {font-family: var(--font-heading); font-size: clamp(56px, 7.4vw, 104px); line-height: .9; letter-spacing: -.02em;}
.bench-hero h1 em, .bench-hero h1 span {display: block;}
.bench-hero .deck {max-width: 760px; margin-top: 28px; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.4; font-weight: 400; letter-spacing: 0;}
.learned {margin-top: 40px; font-family: var(--font-heading); font-size: 34px; line-height: 1.1; letter-spacing: -.01em;}
.bench-facts {display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; margin-top: 14px;}
.bench-facts div {display: flex; flex-direction: column; gap: 6px;}
.bench-facts dt {font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.75);}
.bench-facts dd {font-family: var(--font-heading); font-size: 34px; line-height: 1;}
.bench-hero .hero-link {display: inline-block; margin-top: 28px; font-size: 14px; color: #fff; text-decoration: underline; text-underline-offset: 4px;}
.bench-facts dd small {display: block; margin-top: 6px; font-family: var(--font-body); font-size: 13px; color: rgba(255,255,255,.8);}

/* Hero: finding first, then the verdict board that says who won, then what was tested. */
.hero-body {display: flex; gap: 64px; align-items: flex-start; margin-top: 40px;}
.hero-copy {width: 400px; flex-shrink: 0;}
.hero-copy .deck {margin-top: 0;}
.hero-gloss {margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.35); font-size: 15px; line-height: 22px; color: rgba(255,255,255,.92);}
.verdict {flex-grow: 1; min-width: 0; overflow-x: auto;}
.verdict table {width: 100%; min-width: 640px; border-collapse: collapse; border-top: 1px solid rgba(255,255,255,.35);}
.verdict th {padding: 14px 24px 10px 0; text-align: left; font-family: var(--font-mono); font-weight: 400; font-size: 11px; line-height: 14px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.78);}
.verdict td {padding: 18px 24px 18px 0; border-top: 1px solid rgba(255,255,255,.35); vertical-align: middle;}
.verdict tr:last-child td {border-bottom: 1px solid rgba(255,255,255,.35);}
.verdict th:last-child, .verdict td:last-child {padding-right: 0;}
.verdict .rank {width: 28px; font-family: var(--font-heading); font-size: 28px; line-height: 28px;}
.verdict .model {width: 170px; font-weight: 500; font-size: 17px; line-height: 22px; white-space: nowrap;}
.verdict .model i {display: inline-block; width: 12px; height: 12px; margin-right: 10px; vertical-align: -1px;}
.verdict .score {display: flex; align-items: center; gap: 16px;}
.verdict .big {width: 92px; flex-shrink: 0; font-family: var(--font-heading); font-size: 44px; line-height: 44px;}
.verdict .meter {flex-grow: 1; min-width: 0; max-width: 272px;}
.verdict .bar {position: relative; display: block; height: 10px; background: rgba(255,255,255,.22);}
.verdict .bar i {display: block; height: 10px;}
.verdict .bar b {position: absolute; top: -4px; width: 2px; height: 18px; background: #fff;}
.verdict .meter small {display: block; margin-top: 6px; font-size: 13px; line-height: 16px; color: rgba(255,255,255,.85);}
.verdict .meter small.hit {color: #fff; font-weight: 500;}
.verdict .n {font-family: var(--font-heading); font-size: 30px; line-height: 30px; white-space: nowrap;}
.tested {margin-top: 40px;}
.tested-label {font-family: var(--font-mono); font-size: 11px; line-height: 14px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.78);}

.bench-section {padding: 96px 0; border-top: 1px solid var(--rule);}
.bench-section .section-head {padding-bottom: 40px;}
.bench-section .section-head h2 {font-size: 60px; line-height: 58px;}
.bench-blue {background: var(--blue); color: #fff; border-top: 0;}
.bench-blue .section-head-blue p {color: #fff;}
.foot {margin-top: 20px; max-width: 760px; font-size: 14px; line-height: 21px; color: var(--muted);}

/* Leaderboard */
.lb-table {overflow-x: auto;}
.lb-table table {width: 100%; border-collapse: collapse; font-size: 15px;}
.lb-table th, .lb-table td {padding: 14px 12px; text-align: right; border-bottom: 1px solid var(--rule); white-space: nowrap; vertical-align: top;}
.lb-table th {font-family: var(--font-mono); font-weight: 400; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom-color: var(--ink); white-space: normal; max-width: 150px;}
.lb-table th.wide {max-width: none; white-space: nowrap;}
.lb-table th:first-child, .lb-table td:first-child {text-align: left; padding-left: 0;}
.lb-table th.group {text-align: center; color: var(--ink); padding-bottom: 6px; letter-spacing: .14em;}
.lb-table thead tr:last-child th {border-bottom-color: var(--rule);}
.lb-table td.model {font-size: 18px;}
.lb-table td.model i {display: inline-block; width: 10px; height: 10px; margin-right: 10px; border-radius: 2px; vertical-align: 1px;}
.lb-table td .big {font-family: var(--font-heading); font-size: 30px; line-height: 1;}
.lb-table td .bar {display: block; height: 6px; margin-top: 8px; background: var(--panel); border-radius: 3px; overflow: hidden;}
.lb-table td .bar i {display: block; height: 100%;}
.lb-table td small {display: block; margin-top: 4px; font-size: 12px; color: var(--muted); white-space: normal;}
.lb-table td.best .big {color: var(--blue-text);}
.lb-table td.na {color: var(--muted);}
.lb-table th.split, .lb-table td.split {padding-left: 24px;}
.lb-table tr:not(:first-child) th.split, .lb-table td.split {border-left: 1px solid var(--ink);}

/* Chart cards */
.grid {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; min-width: 0;}
.card {display: flex; flex-direction: column; min-width: 0; gap: 14px; padding: 24px; background: #fff; border: 1px solid var(--rule); border-radius: 6px; color: var(--ink);}
.card.wide {grid-column: 1 / -1;}
.card h3 {font-size: 20px; font-weight: 500; line-height: 26px; letter-spacing: -.01em;}
.card .sub {margin-top: -8px; font-size: 14px; line-height: 20px; color: var(--muted);}
.card .note {font-size: 13px; line-height: 19px; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 12px;}
.card .chart {width: 100%; overflow-x: auto;}
.card .chart svg {min-width: 320px;}
.bench-body {overflow-x: hidden;}
.card svg {display: block; width: 100%; height: auto; font-family: var(--font-body); font-size: 12px;}
.card svg text {fill: var(--ink);}
.card svg .axis {stroke: var(--rule); stroke-width: 1;}
.card svg .axis-dark {stroke: var(--ink);}
.card svg .tick {fill: var(--muted); font-family: var(--font-mono); font-size: 10px;}
.card svg .lab {font-size: 12px;}
.card svg .val {font-family: var(--font-mono); font-size: 11px;}
.card svg .grid {stroke: var(--rule); stroke-dasharray: 2 3;}
.legend-row {display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px;}
.legend-row span {display: inline-flex; align-items: center; gap: 8px;}
.legend-row i {width: 10px; height: 10px; border-radius: 2px;}
.legend-row i.line {height: 2px; width: 16px; border-radius: 0;}
.legend-row i.hollow {border: 1.5px solid currentColor; background: transparent !important;}
.bench-blue .card {border-color: transparent;}

.stat-row {display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;}
.stat-row div {padding: 14px; background: var(--panel); border-radius: 4px;}
.stat-row b {display: block; font-family: var(--font-heading); font-size: 32px; line-height: 1; font-weight: 400;}
.stat-row small {display: block; margin-top: 6px; font-size: 12px; color: var(--muted);}

.mini-table {width: 100%; min-width: 560px; border-collapse: collapse; font-size: 13px;}
.mini-table th, .mini-table td {padding: 8px 8px; text-align: right; border-bottom: 1px solid var(--rule); white-space: nowrap;}
.mini-table th {font-family: var(--font-mono); font-weight: 400; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);}
.mini-table th:first-child, .mini-table td:first-child {text-align: left; padding-left: 0;}
.mini-table td.m {font-family: var(--font-mono); font-size: 12px;}
.mini-table tr.dim td {color: var(--muted);}

.caveat-list {display: grid; gap: 14px; margin-top: 32px; max-width: 900px;}
.caveat-list li {padding: 16px 0; border-top: 1px solid var(--rule); font-size: 15px; line-height: 23px; color: var(--body-muted);}
.caveat-list b {display: block; font-weight: 500; color: var(--ink); margin-bottom: 2px;}

.contact .button-blue {background: var(--blue);}

@media (max-width: 1180px) {
  .bench-facts {grid-template-columns: repeat(3, 1fr);}
}
@media (max-width: 1100px) {
  .hero-body {flex-direction: column; gap: 32px;}
  .hero-copy {width: auto; max-width: 640px;}
  .verdict {width: 100%;}
}
@media (max-width: 900px) {
  .grid {grid-template-columns: 1fr;}
  .bench-section .section-head h2 {font-size: 44px; line-height: 42px;}
}
@media (max-width: 760px) {
  .bench-hero {padding: 104px 0 48px;}
  .bench-hero h1 {font-size: 48px; line-height: 46px;}
  .bench-hero .deck {font-size: 17px;}
  .bench-facts {grid-template-columns: repeat(2, 1fr); gap: 18px;}
  .bench-facts dd {font-size: 28px;}
  .verdict .big {width: 72px; font-size: 32px; line-height: 32px;}
  .verdict .n {font-size: 22px; line-height: 22px;}
  .bench-section {padding: 56px 0;}
  .card {padding: 18px;}
  .stat-row {grid-template-columns: 1fr;}
  .lb-table td .big {font-size: 22px;}
}

/* Founder Bench hero: title, intro row, then a full-width band of facts. */
.fb-intro {max-width: 860px; margin-top: 40px;}
.fb-intro .deck {margin-top: 0; max-width: none; font-size: clamp(22px, 2vw, 28px); line-height: 1.3; text-wrap: balance;}
.fb-intro .hero-gloss {margin-top: 20px; padding-top: 0; border-top: 0; font-size: 17px; line-height: 26px; color: rgba(255,255,255,.8);}
.fb-tested {margin-top: 64px;}
.bench-hero h1 em:only-child {font-size: clamp(64px, 9vw, 136px);}
.fb-tested .bench-facts {grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 16px; border-top: 1px solid rgba(255,255,255,.35); border-bottom: 1px solid rgba(255,255,255,.35);}
.fb-tested .bench-facts div {padding: 24px 24px 28px; gap: 12px; border-left: 1px solid rgba(255,255,255,.35);}
.fb-tested .bench-facts div:first-child {padding-left: 0; border-left: 0;}
.fb-tested .bench-facts dd {font-size: 64px; line-height: .95; letter-spacing: -.02em;}
@media (max-width: 900px) {
  .fb-tested {margin-top: 48px;}
  .fb-tested .bench-facts {grid-template-columns: repeat(2, 1fr);}
  .fb-tested .bench-facts div, .fb-tested .bench-facts div:first-child {padding: 18px 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.35);}
  .fb-tested .bench-facts div:nth-child(-n+2) {border-top: 0;}
  .fb-tested .bench-facts dd {font-size: 44px;}
  .fb-tested .bench-facts div:last-child:nth-child(odd) {grid-column: span 2;}
}
