@font-face {
  font-family: 'Archivo Variable';
  src: url('/site/archivo.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

@font-face {
  font-family: 'Inter Variable';
  src: url('/site/inter.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono Variable';
  src: url('/site/jetbrains-mono.woff2') format('woff2-variations');
  font-weight: 100 800;
  font-display: swap;
}

/* Same tokens as src/styles.css, so the pages read as the same product as the app. */
:root {
  --bg: #05070a;
  --panel: #0b1017;
  --line: rgba(150, 190, 240, 0.12);
  --line-strong: rgba(150, 190, 240, 0.24);
  --text: #e9eff7;
  --muted: #93a1b3;
  --a: #35e0ff;
  --b: #ff9f43;
  --good: #5ef2a0;
  --display: 'Archivo Variable', 'Inter Variable', system-ui, sans-serif;
  --display-wide: 116%;
  --body: 'Inter Variable', system-ui, sans-serif;
  --mono: 'JetBrains Mono Variable', ui-monospace, monospace;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: radial-gradient(ellipse 90% 50% at 50% -10%, rgba(53, 224, 255, 0.07), transparent 70%), var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(53, 224, 255, 0.4);
}

a {
  color: var(--a);
  text-underline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-stretch: var(--display-wide);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.02;
  margin: 0 0 14px;
}

h2 {
  font-size: 24px;
  font-weight: 750;
  margin: 40px 0 10px;
}

h3 {
  font-size: 18px;
  margin: 16px 0 8px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 13px;
}

.ca {
  color: var(--a);
}

.cb {
  color: var(--b);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  line-height: 1.3;
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 30%, rgba(53, 224, 255, 0.35), rgba(53, 224, 255, 0.05));
  border: 1px solid rgba(53, 224, 255, 0.45);
  box-shadow: 0 0 24px rgba(53, 224, 255, 0.25);
}

.brand-name {
  display: block;
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 800;
  letter-spacing: 0.2em;
  font-size: 15px;
}

.brand-sub {
  display: block;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.top nav,
footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}

.top nav a,
footer nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.top nav a:hover,
footer nav a:hover {
  color: var(--text);
}

.btn,
.top nav a.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.3s;
}

.btn:hover,
.top nav a.btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(200, 225, 255, 0.35);
}

.btn.primary {
  background: linear-gradient(180deg, color-mix(in srgb, var(--a) 100%, #fff 14%), color-mix(in srgb, var(--a) 84%, #000));
  border-color: color-mix(in srgb, var(--a) 80%, #fff);
  color: #031016;
  padding: 12px 20px;
  font-size: 15px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45) inset,
    0 10px 30px rgba(53, 224, 255, 0.3),
    0 0 0 1px rgba(53, 224, 255, 0.2);
}

.btn.primary:hover {
  background: linear-gradient(180deg, color-mix(in srgb, var(--a) 100%, #fff 24%), var(--a));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 14px 40px rgba(53, 224, 255, 0.42),
    0 0 0 1px rgba(53, 224, 255, 0.3);
}

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 20px 40px;
}

.crumbs {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}

.crumbs a {
  color: var(--muted);
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
}

.hero img {
  border-radius: 14px;
  border: 1px solid var(--line);
}

.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (min-width: 860px) {
  .hero {
    grid-template-columns: 1.05fr 1fr;
  }
}

.eyebrow {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  color: var(--a);
  margin: 0 0 10px;
}

.lede {
  font-size: 18px;
  color: #cfd9e6;
}

.answer {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 20px 12px;
  margin-top: 28px;
}

.answer h2 {
  margin-top: 16px;
}

.diffs {
  padding-left: 20px;
}

.diffs li {
  margin: 8px 0;
}

.diff-src .badge {
  margin-left: 0;
  margin-right: 6px;
}

.one-line {
  font-size: 17px;
}

.facts {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
  font-size: 15px;
}

.facts th,
.facts td {
  text-align: left;
  vertical-align: top;
  padding: 9px 10px 9px 0;
  border-bottom: 1px solid var(--line);
}

.facts tbody th {
  font-weight: 500;
  color: var(--muted);
  width: 42%;
}

.facts.two tbody th {
  width: 34%;
}

.facts thead th {
  font: 750 15px var(--display);
  font-stretch: var(--display-wide);
}

.val {
  font-family: var(--mono);
  font-size: 0.94em;
  font-variant-numeric: tabular-nums;
  margin-right: 6px;
}

.val.text {
  font-family: var(--body);
  font-size: inherit;
}

.val.win {
  font-weight: 700;
  color: var(--good);
}

.metric {
  color: var(--muted);
  font-weight: 400;
  font-size: 13px;
}

.na {
  color: #5d6a7a;
  font-size: 13px;
}

/* Same pills and colours as the app's provenance badges (src/ui/prov.css, BASIS_COLOR). */
.badge {
  --prov: #8fb8ff;
  display: inline-flex;
  gap: 5px;
  align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
  padding: 1px 7px;
  border-radius: 99px;
  color: var(--prov);
  border: 1px solid color-mix(in srgb, var(--prov) 45%, transparent);
  background: color-mix(in srgb, var(--prov) 9%, transparent);
  white-space: nowrap;
  vertical-align: 2px;
}

.badge a {
  color: inherit;
  text-decoration: none;
}

.badge .cite {
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}

.badge a:hover {
  color: var(--text);
}

.b-tested {
  --prov: #5ef2a0;
}

.b-published {
  --prov: #8fb8ff;
}

.b-sim {
  --prov: #ffd35c;
}

.b-estimated {
  --prov: #c3a6ff;
}

@media (max-width: 640px) {
  .top {
    padding: 12px 16px;
    row-gap: 10px;
  }

  .brand-sub,
  .top nav a.btn {
    display: none;
  }

  .top nav {
    gap: 16px;
  }

  .facts {
    font-size: 14px;
  }

  .facts.two tbody th {
    width: 30%;
  }

  .facts td,
  .facts th {
    overflow-wrap: anywhere;
  }

  .badge {
    white-space: normal;
    overflow-wrap: normal;
    flex-wrap: wrap;
    row-gap: 2px;
    line-height: 1.2;
  }

  .val {
    display: block;
  }
}

.lab-link {
  display: inline-block;
  margin-top: 6px;
  font-weight: 600;
  text-decoration: none;
}

.ranks {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
}

.ranks li {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
}

.rank {
  font: 800 24px var(--display);
  font-stretch: var(--display-wide);
  color: var(--good);
  white-space: nowrap;
}

.rank small {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.links {
  padding-left: 20px;
}

.links li {
  margin: 6px 0;
}

.links.inline {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

@media (min-width: 700px) {
  .links.two-col {
    columns: 2;
    column-gap: 40px;
  }
}

.cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px 32px;
}

@media (min-width: 760px) {
  .cols {
    grid-template-columns: 1fr 1fr;
  }
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 10px 12px;
}

.card img {
  border-radius: 10px;
  margin-bottom: 6px;
}

.card-name {
  font: 750 16px var(--display);
  font-stretch: var(--display-wide);
}

.verdict {
  border-left: 3px solid var(--a);
  padding-left: 16px;
}

.sources ol,
.srcs {
  font-size: 13px;
  padding-left: 22px;
}

.sources li,
.srcs li {
  margin: 4px 0;
}

.sources li:target {
  background: rgba(53, 224, 255, 0.1);
}

footer {
  border-top: 1px solid var(--line);
  padding: 20px;
  max-width: 1080px;
  margin: 0 auto;
}
