/* Visual language follows the live sandbase.ai homepage: white sheet, zinc neutrals,
   hairlines, 14px cards, Clash Grotesk display, Geist Mono labels, violet accent. */
@font-face { font-family: "Clash Grotesk"; src: url("/fonts/ClashGrotesk-Variable.woff2") format("woff2"); font-weight: 200 700; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/GeistMono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/GeistMono-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light;
  --canvas: #ffffff;
  --sheet: #ffffff;
  --soft: #fafafa;
  --surface-alt: #f4f4f5;
  --line: #e4e4e7;
  --ink: #18181b;
  --ink-muted: #52525b;
  --ink-subtle: #71717a;
  --accent: #5e3fff;
  --violet: #8b6fff;
  --violet-soft: #f1edff;
  --lime: #d9ff43;
  --panel: #18181b;
  --panel-fg: #f4f4f5;
  --panel-muted: #a1a1aa;
  --danger: #c2342a;
  --danger-soft: #fdf0ef;
  --pass: #3f7a1a;
  --on-accent: #ffffff;
  --r: 14px;
  --display: "Clash Grotesk", "PingFang SC", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --inset: max(clamp(1.25rem, 5.5556vw, 5rem), calc((100% - 90rem) / 2 + 5rem));
  --float: 0 12px 32px rgb(0 0 0 / .08);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --on-accent: #0e0b1a;
  --canvas: #111113;
  --sheet: #1c1c1f;
  --soft: #161618;
  --surface-alt: #262629;
  --line: #36363a;
  --ink: #f4f4f5;
  --ink-muted: #b4b4bc;
  --ink-subtle: #9898a2;
  --accent: #d9ff43;
  --violet-soft: #2a2450;
  --danger: #f87171;
  --danger-soft: #3a1d1b;
  --pass: #d9ff43;
  --float: 0 12px 32px rgb(0 0 0 / .45);
}
* { box-sizing: border-box; }
html { background: var(--canvas); color: var(--ink); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
body { margin: 0; overflow-x: clip; }
::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
main a:not([class]) { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
main a:not([class]):hover { text-decoration-color: var(--accent); }
code { font-family: var(--mono); font-size: .86em; background: var(--surface-alt); padding: 1px 5px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.25rem, 1.35rem + 3.06vw, 3.375rem); line-height: 1.12; letter-spacing: -.025em; }
h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); line-height: 1.08; letter-spacing: -.025em; }
h3 { font-size: 1.375rem; line-height: 1.625rem; letter-spacing: -.011em; }
p { text-wrap: pretty; margin: 0; }
.grad { background: linear-gradient(90deg, #5e3fff, #c04bff 60%, #ff6a3d); -webkit-background-clip: text; background-clip: text; color: transparent; }

.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 18px; }
.label, small, .meta, .tid, .crumb { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.tid { color: var(--accent); }
.meta { color: var(--ink-subtle); }
.muted { color: var(--ink-muted); }
.lede { max-width: 34rem; color: var(--ink-muted); font-size: 19px; line-height: 1.55; }
.crumb { color: var(--ink-subtle); margin-bottom: 18px; }
.crumb a:hover { color: var(--accent); }

/* Announcement strip */
.strip { background: var(--violet); color: #fff; text-align: center; font-size: 14px; padding: 10px 16px;
  background-image: linear-gradient(90deg, rgb(255 255 255 / .08) 1px, transparent 0), linear-gradient(180deg, rgb(255 255 255 / .08) 1px, transparent 0);
  background-size: 8px 8px; }
.strip b { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; font-weight: 700; margin-right: 10px; }
.strip a { text-decoration: underline; text-underline-offset: 3px; margin-left: 8px; }
.strip a:hover { color: #fff; }

/* Header */
.top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 72px; padding: 0 20px;
  background: color-mix(in srgb, var(--canvas) 92%, transparent); backdrop-filter: saturate(1.4) blur(8px);
  position: sticky; top: 0; z-index: 20; border-bottom: 1px solid transparent; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 22px; font-weight: 550; letter-spacing: -.018em; }
.brand:hover { color: var(--ink); }
.logo { width: 26px; height: 26px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px; flex: none; }
.logo i { background: var(--ink); border-radius: 3px; }
.logo i:last-child { background: var(--violet); }
.top nav { display: flex; gap: 24px; justify-content: center; font-size: 15.5px; }
.top nav a { color: var(--ink); }
.top nav a[aria-current] { color: var(--accent); }
.tools { display: flex; gap: 18px; align-items: center; justify-content: flex-end; }
.lang { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--ink-muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border: 1px solid var(--ink); color: var(--ink); font-family: var(--display); font-size: 16px; font-weight: 500;
  transition: background-color .15s, color .15s, border-color .15s; white-space: nowrap; }
.btn:hover { background: var(--surface-alt); color: var(--ink); }
.btn.primary { background: var(--ink); color: var(--canvas); }
.btn.primary:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.sm { min-height: 44px; padding: 0 20px; }
.btn .arrow { font-family: var(--body); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { display: flex; flex-wrap: wrap; gap: 18px; margin: 18px 0 0; padding: 0; list-style: none; color: var(--ink-muted); font-size: 14px; }
.fine li::before { content: "✓"; color: var(--pass); margin-right: 6px; }
.more { font-family: var(--display); font-size: 16px; font-weight: 500; }
.more::after { content: " →"; font-family: var(--body); }

/* Layout */
.wrap { padding-inline: var(--inset); }
main { padding: 48px var(--inset) 96px; }
main.home { padding: 0 0 0; }
.section { padding: 96px var(--inset); }
.section.tint { background: var(--soft); border-block: 1px solid var(--line); }
.shead { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: 40px; }
.shead .lede { font-size: 17px; justify-self: end; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 56px; padding: 56px var(--inset) 64px; }
.hero > * { min-width: 0; }
.hero h1 { font-size: clamp(48px, 5.6vw, 84px); line-height: 1.02; letter-spacing: -.03em; }
.hero .lede { margin: 22px 0 30px; }
.mosaic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; height: 640px; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 8%, #000 88%, transparent); mask-image: linear-gradient(180deg, transparent, #000 8%, #000 88%, transparent); }
.mosaic .col { display: flex; flex-direction: column; gap: 12px; }
.mosaic .col:nth-child(1) { margin-top: 48px; }
.mosaic .col:nth-child(3) { margin-top: 96px; }

/* Cards */
.card { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; font-size: 14px; line-height: 1.45; overflow: hidden; }
.card .ch { display: flex; justify-content: space-between; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 12px; }
.card .ch span:last-child { color: var(--accent); }
.bubble { background: var(--violet-soft); color: var(--ink); padding: 10px 12px; border-radius: 10px; margin: 0 0 8px; }
.ph { display: inline-block; font-family: var(--mono); font-size: .82em; line-height: 1.3; padding: 0 5px; margin: 0 1px; border: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent); color: var(--accent); border-radius: 4px; vertical-align: 1px; }
.bubble.agent { background: var(--surface-alt); }
.bubble.sys { background: transparent; border: 1px dashed var(--line); color: var(--ink-muted); font-family: var(--mono); font-size: 11.5px; }
.rule { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink-muted); margin-top: 8px; }
.card.dark { background: var(--panel); border-color: var(--panel); color: var(--panel-fg); font-family: var(--mono); font-size: 12px; line-height: 1.6; }
.card.dark .ch { color: var(--panel-muted); }
.card.dark .ch span:last-child { color: var(--lime); }
.card.dark pre { margin: 0; white-space: pre-wrap; font: inherit; }
.k { color: #c4a7ff; } .s { color: #a5e6a0; } .c { color: #8c8ca6; } .ok { color: var(--lime); }
.card.violet { background: var(--violet); border-color: var(--violet); color: #fff; }
.card.violet .ch, .card.violet .ch span:last-child { color: rgb(255 255 255 / .8); }
.card.violet b { font-family: var(--display); font-size: 30px; font-weight: 500; letter-spacing: -.02em; display: block; line-height: 1.1; }
.bar { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; margin: 8px 0; font-size: 13px; }
.bar i { grid-column: 1 / -1; height: 4px; background: var(--surface-alt); border-radius: 2px; position: relative; }
.bar i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w, 0%); background: var(--violet); border-radius: 2px; }

/* Agent strip */
.logos { padding: 30px 0; border-block: 1px solid var(--line); background: var(--sheet); overflow: hidden; }
.logos .label { text-align: center; color: var(--ink-muted); font-size: 12px; margin-bottom: 18px; }
.pills { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; padding: 0 20px; }
.pill { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px 0 12px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--sheet); font-size: 16px; font-weight: 500; white-space: nowrap; }
.pill .av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 11px; font-weight: 700;
  background: var(--surface-alt); color: var(--ink); }
.pill .av.cn { background: var(--violet-soft); color: var(--accent); }
.pill:hover { border-color: var(--ink); color: var(--ink); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.stats > div { padding: 28px; border-right: 1px solid var(--line); }
.stats > div:last-child { border-right: 0; }
.stats b { display: block; font-family: var(--display); font-size: 48px; font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }
.stats span { color: var(--ink-muted); font-size: 15px; }

/* Tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tabs button { font: inherit; font-size: 15px; height: 40px; padding: 0 16px; border: 1px solid var(--line); background: var(--sheet); color: var(--ink); cursor: pointer; }
.tabs button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--canvas); }
.tabs button:hover:not([aria-pressed="true"]) { border-color: var(--ink); }

/* Task grid */
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.tcard { display: flex; flex-direction: column; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); padding: 18px;
  transition: transform .35s ease, box-shadow .35s ease, border-color .2s; }
.tcard:hover { transform: translateY(-3px); box-shadow: var(--float); color: var(--ink); }
.tcard h3 { font-size: 19px; line-height: 1.3; margin: 2px 0 12px; }
.tcard .bubble { font-size: 14px; }
.tcard .foot { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.tcard[hidden] { display: none; }

/* Scoring scale */
.scale { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--sheet); }
.scale > div { padding: 24px; border-right: 1px solid var(--line); }
.scale > div:last-child { border-right: 0; background: var(--danger-soft); }
.scale b { display: block; font-family: var(--display); font-size: 44px; font-weight: 500; letter-spacing: -.03em; line-height: 1; margin: 14px 0 10px; }
.scale p { color: var(--ink-muted); font-size: 14.5px; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.pillars > div { border: 1px solid var(--line); border-radius: var(--r); padding: 24px; background: var(--sheet); }
.pillars .num { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: .08em; }
.pillars h3 { margin: 10px 0 8px; font-size: 20px; }
.pillars p { color: var(--ink-muted); font-size: 15px; }

/* Dark closing panel */
.closing { margin: 0 var(--inset) 96px; background: var(--panel); color: var(--panel-fg); border-radius: var(--r); padding: 56px; display: grid;
  grid-template-columns: minmax(0, 1.3fr) auto; gap: 32px; align-items: end; position: relative; overflow: hidden; }
.closing::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(90deg, rgb(255 255 255 / .05) 1px, transparent 0), linear-gradient(180deg, rgb(255 255 255 / .05) 1px, transparent 0); background-size: 8px 8px; pointer-events: none; }
.closing > * { position: relative; }
.closing .eyebrow { color: var(--lime); }
.closing h2 { color: #fff; }
.closing p { color: var(--panel-muted); margin-top: 16px; max-width: 40rem; }
.closing .btn { border-color: #fff; background: #fff; color: #0b0b0f; }
.closing .btn:hover { background: var(--lime); border-color: var(--lime); }
.closing .btn.ghost { background: transparent; color: #fff; }
.closing .btn.ghost:hover { background: rgb(255 255 255 / .1); color: #fff; border-color: #fff; }

/* Status labels */
.status { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; color: var(--ink); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); flex: none; }
.status.pass::before { background: var(--pass); }
.status.partial::before { background: var(--violet); }
.status.fail::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-subtle); }
.status.unsupported::before { background: var(--line); }
.status.violation { color: var(--danger); background: var(--danger-soft); padding: 3px 8px; border-radius: 999px; font-weight: 700; }
.status.violation::before { background: var(--danger); }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border: 1px solid var(--line); font-family: var(--mono); font-size: 11.5px;
  color: var(--ink-muted); background: var(--sheet); margin: 0 6px 6px 0; }
a.tag:hover { border-color: var(--ink); color: var(--ink); }
.tag.safe { border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); color: var(--danger); }

/* Tables */
.scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--sheet); }
table { border-collapse: collapse; width: 100%; background: var(--sheet); }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 15px; }
tr:last-child > td, tr:last-child > th { border-bottom: 0; }
thead th { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); font-weight: 400; white-space: nowrap; }
thead th a { color: var(--ink-muted); }
.grid td, .grid th { white-space: nowrap; }
.grid tbody th { position: sticky; left: 0; background: var(--sheet); font-weight: 500; font-size: 16px; }
.grid tbody th small { display: block; color: var(--ink-subtle); font-weight: 400; margin-top: 2px; }
.grid tbody tr:hover > * { background: var(--soft); }
.score { font-variant-numeric: tabular-nums; font-weight: 500; }
td.strong .score { font-family: var(--display); font-size: 20px; }
.blank { color: var(--ink-subtle); }
.runs { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.runs td:first-child { font-family: var(--mono); font-size: 12.5px; white-space: nowrap; color: var(--ink-muted); }

/* Page heads */
.phead { padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.phead .lede { margin-top: 14px; font-size: 17px; }

/* Task page */
.task { display: grid; grid-template-columns: minmax(0, 720px) minmax(240px, 1fr); gap: 56px; align-items: start; }
.task .side { position: sticky; top: 96px; display: grid; gap: 12px; }
.task h2 { font-size: 22px; line-height: 1.3; letter-spacing: -.011em; margin: 40px 0 14px; }
.chat { border: 1px solid var(--line); border-radius: var(--r); padding: 18px; background: var(--sheet); }
.chat .bubble { font-size: 17px; line-height: 1.5; padding: 14px 16px; }
.crits { display: grid; gap: 10px; }
.crit { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: var(--sheet); }
.crit ul { margin: 8px 0 0; padding-left: 18px; color: var(--ink); }
.crit.violation { border-color: color-mix(in srgb, var(--danger) 30%, var(--line)); background: var(--danger-soft); }
ul.inline { list-style: none; padding: 0; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }

/* Lists and agent page */
.list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.list li { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; background: var(--sheet); transition: box-shadow .3s, transform .3s; }
.list li:hover { box-shadow: var(--float); transform: translateY(-2px); }
.list li b { font-family: var(--display); font-weight: 500; font-size: 20px; letter-spacing: -.01em; }
.list li span { font-size: 14.5px; color: var(--ink-muted); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 0 0 16px; }
.facts > div { padding: 18px 20px; border-right: 1px solid var(--line); }
.facts > div:last-child { border-right: 0; }
.facts dt { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-subtle); }
.facts dd { margin: 6px 0 0; font-weight: 500; }
.scorebar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 0 32px; }
.scorebar > div { border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; background: var(--sheet); }
.scorebar > div:first-child { background: var(--violet); border-color: var(--violet); color: #fff; }
.scorebar > div:first-child .score-label, .scorebar > div:first-child .blank { color: rgb(255 255 255 / .8); }
.score-label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-subtle); margin-bottom: 10px; }
.scorebar .score, .scorebar .blank { font-family: var(--display); font-size: 52px; line-height: 1; letter-spacing: -.03em; font-weight: 500; }
.dimlist { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 28px; margin: 0 0 40px; }
.dimlist li { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 10px 0; font-size: 15px; }
main > h2, .boardh { font-size: 28px; letter-spacing: -.02em; margin: 48px 0 8px; }
.boardnote { color: var(--ink-muted); margin-bottom: 16px; }

.empty { border: 1px dashed var(--line); border-radius: var(--r); padding: 56px 24px; text-align: center; color: var(--ink-muted); background: var(--soft); }
.failcard { border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; margin-bottom: 14px; background: var(--sheet); }
.failcard blockquote { margin: 14px 0; font-family: var(--display); font-size: 24px; line-height: 1.3; letter-spacing: -.015em; }
.requests { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.requests li { border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; gap: 12px; background: var(--sheet); }
.requests p { color: var(--ink-muted); }
.requests .btn { align-self: flex-start; margin-top: auto; }
.pick { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.pick select { font: inherit; height: 48px; padding: 0 14px; border: 1px solid var(--ink); background: var(--sheet); color: var(--ink); }
.prose { max-width: 720px; }
.prose h1 { margin-bottom: 24px; }
.prose h2 { font-size: 24px; letter-spacing: -.015em; margin: 44px 0 12px; }
.prose p, .prose li { color: var(--ink); font-size: 16.5px; line-height: 1.7; }
.prose ul, .prose ol { padding-left: 20px; }
.prose li::marker { color: var(--accent); }
.prose table { margin: 16px 0; border: 1px solid var(--line); }

footer { padding: 40px var(--inset); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--ink-muted); font-size: 14.5px; border-top: 1px solid var(--line); }
footer a:hover { color: var(--accent); }

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; gap: 32px; }
  .mosaic { height: 520px; }
  .shead { grid-template-columns: 1fr; }
  .shead .lede { justify-self: start; }
  .task { grid-template-columns: 1fr; }
  .task .side { position: static; }
}
@media (max-width: 900px) {
  .top { grid-template-columns: auto 1fr; height: auto; min-height: 64px; padding-block: 12px; row-gap: 10px; }
  .top > * { min-width: 0; }
  .top nav { grid-column: 1 / -1; order: 3; justify-content: flex-start; overflow-x: auto; white-space: nowrap; gap: 18px; }
  .stats, .scale { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > div:nth-child(2) { border-right: 0; } .stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .pillars { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .closing { grid-template-columns: 1fr; padding: 32px; }
  .section { padding: 64px var(--inset); }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mosaic .col:nth-child(3) { display: none; }
}
@media (max-width: 560px) { .mosaic { display: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Theme toggle */
.theme { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--line);
  background: var(--sheet); color: var(--ink); cursor: pointer; padding: 0; }
.theme:hover { border-color: var(--ink); }
.theme svg { width: 16px; height: 16px; }
.theme .sun { display: none; }
html[data-theme="dark"] .theme .sun { display: block; }
html[data-theme="dark"] .theme .moon { display: none; }
html[data-theme="dark"] .strip { background-color: #5e3fff; }

/* ---- Review fixes ---- */
.showall { display: flex; gap: 20px; align-items: center; justify-content: center; margin-top: 28px; }
.showall .btn[hidden] { display: none; }
.pills { display: grid; grid-template-columns: repeat(5, max-content); justify-content: center; }
.list li { padding: 0; }
.lcard { display: flex; flex-direction: column; gap: 6px; padding: 20px; height: 100%; color: var(--ink); }
.lcard:hover { color: var(--ink); }
.lcard b { font-family: var(--display); font-weight: 500; font-size: 20px; letter-spacing: -.01em; }
.lcard span { font-size: 14.5px; color: var(--ink-muted); }
.lcard .meta { color: var(--ink-subtle); font-size: 11px; }
.requests { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.runs td:first-child a { font-family: var(--mono); }
.side .runs td:first-child, .ranking { font-family: var(--body); }
.side .runs td:first-child { font-size: 15px; color: var(--ink); }
.ranking { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--sheet); }
.ranking li { display: grid; grid-template-columns: minmax(120px, 220px) 1fr 56px; gap: 20px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.ranking li:last-child { border-bottom: 0; }
.ranking li > :last-child { text-align: right; }
.rbar { height: 6px; background: var(--surface-alt); border-radius: 3px; overflow: hidden; }
.rbar i { display: block; height: 100%; background: var(--violet); border-radius: 3px; }
.fhead { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 15px; }
.fhead .meta a { color: var(--accent); }
.bubble.sys { font-family: var(--body); font-size: 14.5px; }
.gcards { display: none; list-style: none; padding: 0; margin: 0; }
.tools .theme { flex: none; }

@media (max-width: 1200px) { .pills { grid-template-columns: repeat(auto-fit, minmax(160px, max-content)); } }
@media (max-width: 900px) {
  .strip .long { display: none; }
  .top { padding-inline: 16px; }
  .top nav { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 24px; scrollbar-width: none; }
  .top nav::-webkit-scrollbar { display: none; }
  .requests { grid-template-columns: 1fr; }
  .pills { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 16px; }
  .pill { font-size: 15px; height: 44px; }
  .hero { padding-top: 32px; }
  .hero h1 { font-size: 44px; }
  .lede { font-size: 17px; }
  .phead { padding-bottom: 24px; margin-bottom: 24px; }
  main { padding-top: 32px; }
  .grid-wrap, .scroll.gridtable { display: none; }
}
@media (max-width: 700px) {
  .scroll:has(> .grid) { display: none; }
  .gcards { display: grid; gap: 12px; }
  .gcards a { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; background: var(--sheet); color: var(--ink); }
  .gname { grid-column: 1 / -1; display: flex; flex-direction: column; }
  .gname b { font-family: var(--display); font-size: 20px; font-weight: 500; }
  .gname small { color: var(--ink-subtle); }
  .gnum .score, .gnum .blank { font-family: var(--display); font-size: 24px; }
  .gnum .score-label { margin-bottom: 2px; }
  .gflag { grid-column: 1 / -1; }
  .scorebar { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .scorebar > div { padding: 14px; }
  .scorebar .score, .scorebar .blank { font-size: 28px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div:nth-child(2) { border-right: 0; }
  .facts > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .ranking li { grid-template-columns: 1fr 80px 44px; gap: 12px; }
  .task h2 { margin-top: 32px; }
  .fine { gap: 6px 14px; }
  .shead h2, h2 { font-size: 32px; }
  .closing { margin-bottom: 56px; }
}
@media (max-width: 560px) { .brand .bname { display: none; } }
main .gcards a, main .gcards a:hover { text-decoration: none; }
.pills { display: flex; flex-wrap: wrap; justify-content: center; max-width: 900px; margin: 0 auto; }
@media (max-width: 900px) {
  .pills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pick { flex-wrap: nowrap; }
  .pick select { flex: 1; min-width: 0; }
}

/* Prompts read as a quoted line, not a coloured chat bubble. */
.bubble, .tcard .bubble { background: none; border-radius: 0; padding: 2px 0 2px 14px; border-left: 2px solid var(--line); color: var(--ink); }
.tcard:hover .bubble, .card:hover .bubble { border-left-color: var(--accent); }
.bubble.sys { border: 0; border-left: 2px dashed var(--line); padding-left: 14px; color: var(--ink-muted); }
.chat { padding: 20px 22px; }
.chat .bubble { font-size: 18px; border-left-width: 3px; border-left-color: var(--accent); }
.chat .bubble.sys { font-size: 14.5px; border-left-width: 2px; border-left-color: var(--line); margin-top: 14px; }
.ph { border-color: var(--line); color: var(--ink-muted); background: var(--surface-alt); border-style: solid; }

/* Hero: single centred column, no card wall. */
.hero { display: block; text-align: center; padding: 104px var(--inset) 96px; }
.hero > div { max-width: 920px; margin: 0 auto; }
.hero h1 { font-size: clamp(44px, 6.4vw, 92px); }
.hero .lede { margin: 26px auto 34px; max-width: 40rem; }
.hero .ctas, .hero .fine { justify-content: center; }
@media (max-width: 900px) { .hero { padding: 56px var(--inset) 56px; } .hero h1 { font-size: 44px; } }

/* Placeholders: plain coloured text, no chip. */
.ph { background: none; border: 0; padding: 0; margin: 0; border-radius: 0; font-family: inherit; font-size: inherit; line-height: inherit; vertical-align: baseline;
  color: var(--accent); text-decoration: underline dotted; text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent); text-underline-offset: 3px; }

/* ================= Design pass: calmer, editorial ================= */
:root { --hl: #e5ff6e; }
html[data-theme="dark"] { --hl: rgb(139 111 255 / .55); }
/* Highlighter instead of gradient text */
.hero mark, h1 mark { background: linear-gradient(transparent 58%, var(--hl) 58%, var(--hl) 92%, transparent 92%); color: inherit; padding: 0 .06em; }
.grad { background: none; color: inherit; -webkit-background-clip: border-box; background-clip: border-box; }
/* Strip: quiet, no pixel grid */
.strip { background: var(--ink); background-image: none; color: color-mix(in srgb, var(--canvas) 82%, transparent); font-size: 13.5px; padding: 9px 16px; }
.strip b { font-family: var(--body); letter-spacing: 0; font-size: 13.5px; color: var(--canvas); }
.strip a:hover { color: var(--canvas); }
html[data-theme="dark"] .strip { background-color: #1c1c1f; color: #b4b4bc; }
html[data-theme="dark"] .strip b { color: #f4f4f5; }
.closing::before { display: none; }
/* Fewer shouting labels: sentence case, body font */
.eyebrow { font-family: var(--body); font-size: 14px; letter-spacing: 0; text-transform: none; font-weight: 500; }
.crumb, .meta, .label, small, .score-label, .facts dt, thead th, .card .ch, .lang { text-transform: none; letter-spacing: 0; font-family: var(--body); }
.crumb { font-size: 13px; }
.meta, small { font-size: 13px; }
.score-label, .facts dt { font-size: 13px; }
thead th { font-size: 13px; color: var(--ink-muted); }
.lang { font-size: 13.5px; }
.status { font-family: var(--body); text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 500; }
.status.violation { font-weight: 600; }
.tag { font-family: var(--body); font-size: 12.5px; border-radius: 999px; padding: 0 10px; }
.tag.on { border-color: var(--ink); color: var(--ink); }
.tid { font-size: 12px; letter-spacing: .02em; }
/* Icons */
.ico { display: inline-block; flex: none; border-radius: 22%; object-fit: cover; background: var(--sheet); box-shadow: 0 0 0 1px var(--line); }
.ico.av { display: inline-grid; place-items: center; font-size: 11px; font-weight: 600; color: var(--ink-muted); background: var(--surface-alt); box-shadow: none; }
.pill { padding: 0 18px 0 10px; }
.pill .ico { border-radius: 50%; }
.aname { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.aname span small { display: block; }
.grid tbody th .aname small { margin-top: 0; }
.titlerow { display: flex; align-items: center; gap: 18px; }
.titlerow .ico { border-radius: 14px; }
.gname { display: flex; align-items: center; gap: 12px; }
.gname > span { display: flex; flex-direction: column; }
/* Home agent rows by group */
.logos { padding: 72px var(--inset); background: var(--canvas); }
.lhead { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 28px; }
.lhead h2 { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); }
.prow { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: start; padding: 18px 0; border-top: 1px solid var(--line); }
.prow:last-child { border-bottom: 1px solid var(--line); }
.plabel { font-weight: 500; color: var(--ink-muted); padding-top: 12px; }
.prow .pills { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 10px; max-width: none; margin: 0; padding: 0; }
/* Agent cards */
.lhead2 { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.lhead2 .ico { border-radius: 12px; }
.list li[hidden], .tcard[hidden], tr[hidden], .gcards li[hidden] { display: none !important; }
/* Compare picker */
.pick { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; align-items: center; margin-bottom: 28px; max-width: 760px; }
.picker { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; background: var(--sheet); cursor: pointer; transition: border-color .15s; }
.picker:hover, .picker:focus-within { border-color: var(--ink); }
.picker img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 0 0 1px var(--line); flex: none; }
.pick select { appearance: none; -webkit-appearance: none; flex: 1; min-width: 0; border: 0; height: auto; padding: 0 28px 0 0; background: transparent;
  font-family: var(--display); font-size: 20px; font-weight: 500; letter-spacing: -.01em; color: var(--ink); cursor: pointer; outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2371717a' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 4px center; }
.vs { color: var(--ink-subtle); font-size: 14px; }
.compare tbody tr:first-child th { font-family: var(--display); font-size: 18px; color: var(--ink); }
/* About */
.about { max-width: 880px; }
.about .big { font-family: var(--display); font-size: clamp(22px, 1.4rem + .6vw, 28px); line-height: 1.4; letter-spacing: -.012em; color: var(--ink); }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.steps li { border: 1px solid var(--line); border-radius: var(--r); padding: 22px; background: var(--sheet); }
.steps .num { color: var(--accent); font-family: var(--mono); font-size: 12px; }
.steps h3 { margin: 8px 0 6px; font-size: 20px; }
.steps p { color: var(--ink-muted); font-size: 15px; }
.rules { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.rules li { display: grid; grid-template-columns: 220px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.rules b { font-weight: 500; }
.rules span { color: var(--ink-muted); }
.who2 { display: flex; gap: 22px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; background: var(--sheet); }
.avatar { width: 64px; height: 64px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--ink); color: var(--canvas); font-family: var(--display); font-size: 22px; font-weight: 500; }
.who2 b { font-family: var(--display); font-size: 22px; font-weight: 500; }
.who2 p { color: var(--ink-muted); margin-top: 6px; }
.who2 .links { display: flex; gap: 18px; margin-top: 12px; }
.closing.small { margin: 48px 0 0; padding: 36px; }
@media (max-width: 900px) {
  .prow { grid-template-columns: 1fr; gap: 10px; }
  .plabel { padding-top: 0; }
  .prow .pills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .rules li { grid-template-columns: 1fr; gap: 4px; }
  .pick { grid-template-columns: 1fr; }
  .vs { text-align: center; }
  .pick select { font-size: 18px; }
  .who2 { flex-direction: column; }
  .logos { padding: 48px var(--inset); }
}
.compare tbody tr:first-child th { font-weight: 500; }
.compare th { font-weight: 500; }
.scorebar.empty > div:first-child { background: var(--sheet); border-color: var(--line); color: var(--ink); }
.scorebar.empty > div:first-child .score-label, .scorebar.empty > div:first-child .blank { color: var(--ink-subtle); }
@media (max-width: 900px) {
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--inset)); padding-inline: var(--inset); }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex: none; }
}

/* Skip link, reports */
.skip { position: absolute; left: 12px; top: -48px; z-index: 50; background: var(--ink); color: var(--canvas); padding: 10px 14px; }
.skip:focus { top: 12px; color: var(--canvas); }
.reports { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; max-width: 880px; }
.rcard { display: block; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; background: var(--sheet); color: var(--ink); transition: box-shadow .3s, transform .3s; }
.rcard:hover { box-shadow: var(--float); transform: translateY(-2px); color: var(--ink); }
.rcard h3 { font-size: 24px; line-height: 1.25; margin: 8px 0 8px; }
.rcard p { color: var(--ink-muted); }
.rcard.big { max-width: 880px; }
.rcard.big h3 { font-size: clamp(24px, 1.2rem + 1vw, 32px); }
.post .prose { font-size: 17px; }
.post .prose p, .post .prose li { font-size: 17px; line-height: 1.75; }
.post .prose p + p { margin-top: 14px; }
.post .prose a { color: var(--accent); }
.progress { display: grid; gap: 8px; margin: 0 0 32px; max-width: 520px; font-size: 14px; color: var(--ink-muted); }
.progress i { display: block; height: 6px; background: var(--surface-alt); border-radius: 3px; overflow: hidden; }
.progress b { display: block; height: 100%; min-width: 4px; background: var(--violet); border-radius: 3px; }
