/* AI Stack Analysis. Plain CSS, no build step.
   Inter for headlines, KPIs and body. Monospace with tabular figures for data. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/static/fonts/inter-latin-variable.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

/* Metric-matched fallback so text does not jump when Inter arrives. */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  size-adjust: 107.4%;
  ascent-override: 90.2%;
  descent-override: 22.5%;
  line-gap-override: 0%;
}

:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f6f7f9;
  --surface-2: #eceff3;
  --ink: #0b1220;
  --ink-2: #2a3547;
  --muted: #475467;
  --line: #d0d5dd;
  --line-strong: #8c96a6;
  --accent: #1f4fd8;
  --accent-ink: #163a9e;
  --accent-bg: #eef3ff;
  --good: #05603a;
  --good-bg: #e3f4ea;
  --bad: #a3170d;
  --bad-bg: #fdeae8;
  --warn: #6b4500;
  --warn-bg: #fff1c9;
  --banner: #ffd84d;
  --font-sans: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, "Liberation Mono",
    monospace;
  --gutter: 16px;
  --measure: 70ch;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 12px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover {
  color: var(--accent);
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  font-family: var(--font-sans);
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0;
}
h1 {
  font-size: clamp(1.75rem, 1.3rem + 2.2vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}
h2 {
  font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.6rem);
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}
h3 {
  font-size: 1.05rem;
  font-weight: 650;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}
p {
  margin: 0 0 1rem;
}
ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.3rem;
}
li {
  margin-bottom: 0.35rem;
}
code,
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.92em;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 0.75rem;
  z-index: 10;
}
.skip-link:focus {
  top: 0.5rem;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Banners ------------------------------------------------------------------ */

.preview-banner {
  background: var(--banner);
  color: #1a1300;
  border-bottom: 3px solid #1a1300;
  padding: 0.6rem var(--gutter);
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.4;
}
.preview-banner strong {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.04em;
}
.disclosure-bar {
  background: var(--ink);
  color: #e6e9ef;
  font-size: 0.82rem;
  line-height: 1.45;
}
.disclosure-bar .wrap {
  padding-block: 0.45rem;
}
.disclosure-bar p {
  margin: 0;
}
.disclosure-bar a {
  color: #ffffff;
}

/* Header ------------------------------------------------------------------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 0.75rem;
}
.brand {
  font-weight: 750;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.brand span {
  color: var(--accent);
}
.nav {
  display: flex;
  gap: 0.25rem 1.1rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
  font-weight: 550;
}
.nav a {
  color: var(--ink-2);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover {
  color: var(--accent);
}
.nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* Page head and prose ---------------------------------------------------------- */

main {
  padding-block: 2rem 3rem;
}
.eyebrow {
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 0.5rem;
}
.page-head {
  margin-bottom: 1.5rem;
}
.lede {
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: var(--measure);
  margin-top: 0.9rem;
}
.prose {
  max-width: var(--measure);
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.875rem;
}
.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.answer-block {
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  background: var(--surface);
  padding: 0.9rem 1.1rem;
  margin: 1.25rem 0 1.5rem;
  max-width: 100%;
}
.answer-block .eyebrow {
  margin-bottom: 0.35rem;
}
.answer-block p {
  margin: 0;
  font-size: 0.98rem;
  overflow-wrap: anywhere;
}

.callout {
  border: 1px solid var(--line-strong);
  background: var(--bg);
  padding: 0.9rem 1.1rem;
  margin: 1.25rem 0;
  max-width: var(--measure);
}
.callout.notice {
  background: var(--warn-bg);
  border-color: #c79200;
  color: #3d2800;
}
.callout > :last-child {
  margin-bottom: 0;
}
.callout h2,
.callout h3 {
  margin-top: 0;
}

/* KPIs, tabs, grids ------------------------------------------------------------ */

.kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  margin: 1.5rem 0;
}
.kpi {
  padding: 0.9rem 1rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-right: -1px;
  margin-bottom: -1px;
}
.kpi .value {
  display: block;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.kpi .label {
  font-size: 0.8rem;
  color: var(--muted);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
}
.tabs li {
  margin: 0;
}
.tabs a {
  display: block;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line);
  margin-right: -1px;
  background: var(--bg);
  color: var(--ink-2);
  font-size: 0.92rem;
  font-weight: 550;
  text-decoration: none;
}
.tabs a:hover {
  background: var(--surface);
}
.tabs a[aria-current="page"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.tab-group {
  margin-bottom: 0.25rem;
}
.tab-label {
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0.75rem 0 0.35rem;
}

.grid-2 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr);
}

/* Tables ----------------------------------------------------------------------- */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--bg);
  margin: 0.5rem 0 1.25rem;
  -webkit-overflow-scrolling: touch;
}
.table-scroll:focus-visible {
  outline-offset: -3px;
}
table.data {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.8125rem;
  line-height: 1.4;
}
table.data.wide {
  min-width: 1100px;
}
table.data caption {
  text-align: left;
}
table.data th,
table.data td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
  background: var(--bg);
}
table.data thead th {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--surface);
  border-bottom: 2px solid var(--ink);
  white-space: nowrap;
  vertical-align: bottom;
}
table.data thead th .unit {
  display: block;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 450;
  color: var(--muted);
}
table.data tbody tr:last-child th,
table.data tbody tr:last-child td {
  border-bottom: 0;
}
table.data tbody tr:hover td,
table.data tbody tr:hover th {
  background: var(--accent-bg);
}
table.data .num {
  text-align: right;
  white-space: nowrap;
}
table.data thead th.num {
  text-align: right;
}
table.data .val {
  display: block;
  font-weight: 650;
  color: var(--ink);
}
table.data .ci {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
}
table.data .sticky {
  position: sticky;
  left: 0;
  z-index: 1;
  box-shadow: 1px 0 0 var(--line);
  min-width: 11rem;
}
table.data thead th.sticky {
  z-index: 2;
  background: var(--surface);
}
table.data th[scope="row"] {
  font-family: var(--font-sans);
  font-weight: 650;
  font-size: 0.9rem;
}
table.data .rank {
  display: inline-block;
  min-width: 1.6rem;
  font-family: var(--font-mono);
  color: var(--muted);
  font-weight: 600;
}
table.data .wrap-text {
  white-space: normal;
  min-width: 14rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
}
table.data .break {
  overflow-wrap: anywhere;
}

/* Badges ----------------------------------------------------------------------- */

.badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0.03em;
  padding: 0.28rem 0.45rem;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-2);
  white-space: nowrap;
  vertical-align: middle;
}
.badge-tied {
  background: var(--accent-bg);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.badge-good,
.badge-helps,
.badge-invoice-verified {
  background: var(--good-bg);
  border-color: var(--good);
  color: var(--good);
}
.badge-bad,
.badge-hurts,
.badge-broken {
  background: var(--bad-bg);
  border-color: var(--bad);
  color: var(--bad);
}
.badge-warn,
.badge-dashboard-reported,
.badge-not-comparable {
  background: var(--warn-bg);
  border-color: #c79200;
  color: var(--warn);
}
.badge-no-clear-difference,
.badge-unverified,
.badge-muted {
  background: var(--surface);
  color: var(--ink-2);
}
.unit-inline {
  color: var(--muted);
  font-size: 0.75rem;
}
.flag-better {
  background: var(--good-bg) !important;
}

/* Definition lists and release box -------------------------------------------------- */

dl.facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 0 0 1.25rem;
  border: 1px solid var(--line);
}
dl.facts div {
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--line);
}
dl.facts div:last-child {
  border-bottom: 0;
}
dl.facts dt {
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
dl.facts dd {
  margin: 0.1rem 0 0;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}

/* Footer ----------------------------------------------------------------------- */

.site-footer {
  border-top: 3px solid var(--ink);
  background: var(--surface);
  padding-block: 2rem;
  font-size: 0.9rem;
  color: var(--ink-2);
}
.site-footer h2 {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.6rem;
  color: var(--ink);
}
.site-footer .grid-2 {
  gap: 1.5rem;
}
.site-footer ul {
  list-style: none;
  padding: 0;
}
.site-footer p {
  max-width: 62ch;
}
.footer-meta {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

/* Wider screens ---------------------------------------------------------------- */

@media (min-width: 720px) {
  :root {
    --gutter: 24px;
  }
  .kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .site-footer .grid-2 {
    grid-template-columns: 1.6fr 1fr 1fr;
  }
  dl.facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  dl.facts div:nth-last-child(2):nth-child(odd) {
    border-bottom: 0;
  }
  main {
    padding-block: 2.75rem 4rem;
  }
}

/* Phones: 390px and below ------------------------------------------------------- */

@media (max-width: 480px) {
  body {
    font-size: 0.97rem;
  }
  .nav {
    gap: 0.1rem 0.9rem;
  }
  .kpi .value {
    font-size: 1.4rem;
  }
  table.data th,
  table.data td {
    padding: 0.5rem 0.6rem;
  }
  table.data .sticky {
    min-width: 8.5rem;
  }
  .lede {
    font-size: 1.05rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

@media print {
  .preview-banner {
    border: 3px solid #000;
  }
  .nav,
  .skip-link {
    display: none;
  }
  .table-scroll {
    overflow: visible;
  }
}
