/* /benchmark — modelled on HumanizerBench (dated run, setup line, disclosure, per-detector columns, raw data
   published) with Rinse's compare-page hero. Built on /styles.css tokens. */
.bm { --grn: #0b7a43; --grn-bg: #e4f6ec; --red: #b42318; --red-bg: #fdeceb; --gry: #f2f3f6; --ink2: #2b3038; }
.bm .grad { background: linear-gradient(90deg, #7c3aed, #c026d3 70%, #ec4899); -webkit-background-clip: text; background-clip: text; color: transparent; }

.bm-hero { position: relative; overflow: hidden; isolation: isolate; padding-block: 56px 56px; text-align: center; }
.bm-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(#eceaf3 1px, transparent 1px), linear-gradient(90deg, #eceaf3 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 0%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 70% at 50% 0%, #000 20%, transparent 75%); }
.bm-crumbs { display: flex; gap: 8px; justify-content: center; font-size: 13.5px; color: var(--muted); }
.bm-crumbs a { color: var(--muted); text-decoration: none; }
.bm-crumbs a:hover { color: var(--accent); }
.bm-hero h1 { font-size: clamp(34px, 5vw, 60px); font-weight: 750; letter-spacing: -0.04em; line-height: 1.05; margin: 16px auto 0; max-width: 18ch; }
.bm-hero .sub { margin: 18px auto 0; max-width: 680px; color: #4a4f5a; font-size: clamp(16.5px, 1.5vw, 19px); line-height: 1.58; }
.bm-stamp { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 22px; }
.bm-stamp span { display: inline-flex; align-items: center; gap: 7px; font: 500 13px var(--font); color: #3e4450; background: rgba(255, 255, 255, .9); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.bm-stamp span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #a78bfa; }
.bm-stamp span.amb::before { background: #f59e0b; }
.bm-stamp span.who::before { background: #94a3b8; }
.bm-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

.bm-sec { padding-block: 56px; }
.bm-sec + .bm-sec { border-top: 1px solid var(--line); }
.bm-h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 750; letter-spacing: -0.03em; line-height: 1.1; }
.bm-note { color: var(--muted); font-size: 15px; margin-top: 10px; max-width: 72ch; }
.bm-note.small { font-size: 13px; }

/* summary */
.bm-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.bm-stat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.bm-stat b { display: block; font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.03em; line-height: 1.1; }
.bm-stat span { display: block; margin-top: 6px; color: var(--muted); font-size: 14.5px; line-height: 1.4; }
.bm-fam { width: 100%; margin-top: 18px; border-collapse: collapse; font-size: 15px; }
.bm-fam caption { text-align: left; font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--faint); padding-bottom: 8px; }
.bm-fam th, .bm-fam td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.bm-fam thead th { font-weight: 600; color: var(--muted); font-size: 13.5px; }

/* results table */
.bm-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.bm-filter button { border: 0; background: none; font: 600 14px var(--font); padding: 8px 12px; border-radius: 8px; color: var(--muted); cursor: pointer; }
.bm-filter button[aria-pressed="true"] { background: #fff; color: var(--fg); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.bm-scroll { margin-top: 20px; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.bm-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 760px; }
.bm-table thead th { text-align: left; font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--faint); padding: 14px 14px; border-bottom: 1px solid var(--line); background: #fcfcfd; }
.bm-table tbody th, .bm-table tbody td { text-align: left; padding: 14px; vertical-align: top; }
.bm-row tr:first-child > * { border-top: 1px solid #eef0f3; }
.bm-row:first-of-type tr:first-child > * { border-top: 0; }
.bm-table tbody th b { display: block; font-weight: 650; }
.bm-table tbody th small { display: block; color: var(--faint); font: 500 12.5px var(--mono); margin-top: 2px; }
.bm-sc b { display: block; font-weight: 700; }
.bm-sc small { display: block; color: var(--faint); font: 500 12px var(--mono); }
.bm-sc.ok b { color: var(--grn); }
.bm-sc.bad b { color: var(--red); }
.bm-pass { display: inline-block; font: 600 12.5px var(--font); padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.bm-pass.ok { background: var(--grn-bg); color: var(--grn); }
.bm-pass.bad { background: var(--red-bg); color: var(--red); }
.bm-more td { padding-top: 0 !important; }
.bm-more summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 14px; list-style: none; }
.bm-more summary::-webkit-details-marker { display: none; }
.bm-more summary::after { content: " +"; }
.bm-more details[open] summary::after { content: " −"; }
.bm-prompt { margin-top: 12px; font-size: 14.5px; color: var(--ink2); }
.bm-texts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; }
.bm-texts > div { background: var(--gry); border-radius: 12px; padding: 14px 16px; }
.bm-texts > div + div { background: #f6f3ff; }
.bm-texts p { font-size: 14.5px; line-height: 1.6; color: var(--ink2); margin-top: 6px; }
.bm-lbl { font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
.bm-row[hidden] { display: none; }

/* method */
.bm-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.bm-steps { margin: 18px 0 0; padding-left: 20px; display: grid; gap: 12px; color: var(--ink2); }
.bm-not { list-style: none; margin: 18px 0 0; padding: 0; }
.bm-not li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink2); }
.bm-not li::before { content: ""; flex: none; width: 16px; height: 2px; margin-top: 12px; background: var(--red); }

/* runs */
.bm-runs { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.bm-runs a { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; }
.bm-runs a:hover { border-color: var(--accent); }
.bm-runs span { color: var(--muted); font-size: 14.5px; }
.bm-end { margin-top: 32px; text-align: center; }

@media (max-width: 900px) {
  .bm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bm-cols { grid-template-columns: 1fr; gap: 32px; }
  .bm-texts { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .bm-stats { grid-template-columns: 1fr; }
  .bm-cta .btn { width: 100%; }
}

.bm-sec .bm-h2 { text-align: left; }
.bm-stat b { white-space: nowrap; font-size: clamp(24px, 2.6vw, 32px); }
/* Phones: each draft becomes a card instead of a side-scrolling table */
@media (max-width: 720px) {
  .bm-scroll { overflow: visible; border: 0; background: none; }
  .bm-table { min-width: 0; display: block; }
  .bm-table thead { display: none; }
  .bm-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 12px; }
  .bm-row[hidden] { display: none; }
  .bm-row tr { display: contents; }
  .bm-table .bm-row th, .bm-table .bm-row td { display: block; padding: 0; border: 0 !important; }
  .bm-row tr:first-child > th { grid-column: 1 / -1; }
  .bm-row tr:first-child > td::before { display: block; font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin-bottom: 2px; }
  .bm-row tr:first-child > td:nth-of-type(1)::before { content: "Before"; }
  .bm-row tr:first-child > td:nth-of-type(2)::before { content: "After"; }
  .bm-row tr:first-child > td:nth-of-type(3)::before { content: "Result"; }
  .bm-row tr:first-child > td:nth-of-type(4)::before { content: "Reworded"; }
  .bm-row tr:first-child > td:nth-of-type(5)::before { content: "Facts kept"; }
  .bm-row tr:first-child > td:nth-of-type(6)::before { content: "Time"; }
  .bm-more td { grid-column: 1 / -1; }
}
