@font-face {
  font-family: Inter;
  src: url("assets/fonts/InterVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  font-family: Inter, sans-serif;
  font-optical-sizing: auto;
  font-synthesis: none;
  color: #202124;
  background: #fff;
  --muted: #68686e;
  --line: #e8e8ec;
  --accent: #ae432b;
  --surface: #f6f6f8;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; font-size: 1rem; line-height: 1.55; -webkit-font-smoothing: antialiased; }
button, textarea, pre, code { font: inherit; }
a { color: inherit; text-decoration: none; }
a, button { touch-action: manipulation; }
a:focus-visible, button:focus-visible, textarea:focus-visible { outline: 3px solid #3866bc; outline-offset: 5px; }
a:hover { color: var(--accent); }
.shell { width: min(68rem, calc(100% - 4rem)); margin-inline: auto; }
.skip { position: fixed; top: -6rem; left: 1rem; padding: .75rem 1rem; z-index: 5; background: #202124; color: #fff; border-radius: .5rem; }
.skip:focus { top: 1rem; }
.site-header { position: sticky; top: 0; z-index: 2; background: rgba(255,255,255,.85); backdrop-filter: blur(20px) saturate(150%); }
.header-inner { display: flex; justify-content: space-between; align-items: center; min-height: 5rem; }
.wordmark { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: 1.4rem; font-weight: 650; letter-spacing: -.055em; }
.wordmark-dot { color: var(--accent); }
nav { display: flex; align-items: center; gap: 1.75rem; }
nav a { display: inline-flex; align-items: center; min-width: 2.75rem; justify-content: center; gap: .35rem; min-height: 2.75rem; font-size: .875rem; font-weight: 500; }
.hero { text-align: center; padding: 5.5rem 0 5.75rem; }
.eyebrow { font-size: .875rem; font-weight: 500; color: var(--muted); letter-spacing: .01em; margin: 0 0 1.4rem; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.8rem, 5.7vw, 4.75rem); font-weight: 600; letter-spacing: -.06em; line-height: 1.07; margin-bottom: 1.5rem; }
.hero-description { font-size: 1.3rem; line-height: 1.55; letter-spacing: -.025em; color: var(--muted); margin-bottom: 1.9rem; }
.button { min-height: 3rem; display: inline-flex; align-items: center; justify-content: center; gap: .85rem; padding: .7rem 1.5rem; border-radius: 2rem; font-size: .9375rem; font-weight: 550; transition: background 150ms ease, transform 100ms ease-out; }
.primary { background: #202124; color: #fff; }
.hero-actions { display: flex; justify-content: center; gap: .5rem; flex-wrap: wrap; }
.hero-actions button { font-family: inherit; cursor: pointer; border: 0; }
.hero>.copy-status { margin: .5rem 0 0; min-height: 1.5rem; }
.primary:hover { color: #fff; background: #414145; }
.button:active, .copy-button:active { transform: scale(.97); }
.hero-note { margin: 1rem 0 0; color: var(--muted); font-size: .8125rem; }
h2 { font-size: 1.65rem; font-weight: 600; line-height: 1.25; letter-spacing: -.04em; margin-bottom: .65rem; }
.section-heading { margin-bottom: 1.8rem; }
.section-heading p { font-size: .9375rem; color: var(--muted); margin-bottom: 0; }
.start { padding: 0 0 4.25rem; }
.setup-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 1.25rem; }
.setup-step { min-width: 0; padding: 1.4rem; background: var(--surface); border: 1px solid #eeeef1; border-radius: 1.1rem; }
.panel-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1.1rem; }
h3 { margin: 0; font-size: .9375rem; font-weight: 600; letter-spacing: -.02em; }
.copy-button { cursor: pointer; min-height: 2.75rem; min-width: 3.4rem; padding: .5rem .75rem; border: 1px solid #d5d5db; background: #fff; color: #38383d; border-radius: .6rem; font-size: .8125rem; font-weight: 500; transition: background 150ms ease, transform 100ms ease-out; }
.copy-button:hover { background: #ececf0; }
pre { margin: 0; padding: .25rem 0; font-size: .8125rem; line-height: 1.95; white-space: pre-wrap; overflow-wrap: anywhere; }
textarea { width: 100%; display: block; resize: vertical; padding: 0; min-height: 13.5rem; border: none; border-radius: 0; background: transparent; color: #424249; font-size: .8125rem; line-height: 1.7; }
.step-note { color: var(--muted); font-size: .75rem; margin: 1rem 0 0; }
.copy-status { color: var(--muted); font-size: .8125rem; min-height: 1.5rem; margin: .65rem 0 0; }
.review-note { color: var(--muted); font-size: .8125rem; line-height: 1.7; margin: .4rem 0 0; }
.privacy { max-width: 45rem; padding: 0 0 2.5rem; }
.privacy p { font-size: .8125rem; line-height: 1.7; color: var(--muted); margin-bottom: 0; }
.privacy strong { font-weight: 550; color: #434349; }
footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--line); padding: 1.25rem 0 1.75rem; }
footer p { font-size: .875rem; font-weight: 550; margin: 0; }
footer nav a { font-size: .8125rem; color: var(--muted); }
footer small { flex-basis: 100%; font-size: .6875rem; color: var(--muted); }
@media(max-width: 760px) {
  .shell { width: calc(100% - 2.5rem); }
  .header-inner { min-height: 4.5rem; }
  nav { gap: 1.25rem; }
  .hero { padding: 3.5rem 0 4rem; }
  h1 { font-size: clamp(2.6rem, 8.2vw, 3.8rem); letter-spacing: -.055em; }
  .hero-description { font-size: 1.0625rem; max-width: 28rem; margin-inline: auto; }
  .desktop-break { display: none; }
  h2 { font-size: 1.4rem; }
  .setup-grid { grid-template-columns: 1fr; gap: 1rem; }
  .setup-step { padding: 1.15rem; }
  textarea { min-height: 15rem; }
  .start { padding-bottom: 2.5rem; }
}
@media(prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .copy-button { transition: none; }
  .button:active, .copy-button:active { transform: none; }
}
@media(prefers-reduced-transparency: reduce) {
  .site-header { background: #fff; backdrop-filter: none; }
}
@media(prefers-contrast: more) {
  :root { --muted: #414146; --line: #909096; }
  .site-header { background: #fff; backdrop-filter: none; }
  .setup-step { border-color: #909096; }
}

.dataset { border-top: 1px solid var(--line); padding: 3rem 0; }
.research-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin: 2rem 0 1rem; }
.research-chart { margin: 0; min-width: 0; }
.research-chart figcaption p { color: var(--muted); font-size: .8125rem; margin: .35rem 0 1rem; }
.research-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.research-chart svg text { fill: #4c4c52; font: 13px Inter, sans-serif; font-variant-numeric: tabular-nums; }
.count-bar { fill: #465e78; }
.loss-bar { fill: #ae432b; }
.chart-note { color: var(--muted); font-size: .75rem; line-height: 1.65; margin: .7rem 0 1rem; }
.research-charts + details { margin-bottom: 1.5rem; }
@media(max-width:760px) { .research-charts { grid-template-columns: 1fr; gap: 1.5rem; } }
.dataset-heading { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.dataset-heading p,.dataset-intro,.dataset-note { color: var(--muted); font-size: .875rem; line-height: 1.65; }
.dataset-heading p { margin: 0; }
.dataset-intro { margin: 1.25rem 0; }
.dataset-link,.dataset-actions a { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; font-size: .8125rem; font-weight: 500; }
.dataset-table { width: 100%; border-collapse: collapse; font-size: .875rem; text-align: left; }
.dataset-table thead th { color: var(--muted); font-weight: 500; font-size: .75rem; padding: .75rem 0; }
.dataset-table th:first-child { width: 40%; }
.dataset-table th:nth-child(2) { width: 36%; }
.dataset-table tbody th,.dataset-table td { border-top: 1px solid var(--line); padding: 1rem 1rem 1rem 0; vertical-align: middle; }
.dataset-table tbody th { font-weight: 550; }
.dataset-table time { display: block; color: var(--muted); font-size: .75rem; font-weight: 400; margin-top: .2rem; }
.dataset-table td:nth-child(2) { color: var(--muted); }
.dataset-table td:last-child { padding-right: 0; }
.dataset-table td a { display: inline-flex; align-items: center; min-height: 2.75rem; gap: .4rem; margin-right: .8rem; font-size: .8125rem; }
.dataset-note { margin: .75rem 0 1.5rem; max-width: 55rem; }
.dataset-details { border-top: 1px solid var(--line); font-size: .875rem; }
.dataset-details summary { cursor: pointer; padding: 1.05rem 0; font-weight: 550; min-height: 2.75rem; }
.dataset-details summary:focus-visible { outline: 3px solid #3866bc; outline-offset: 3px; }
.dataset-details p { color: var(--muted); line-height: 1.7; }
.dataset-details dl { margin: .25rem 0 1.5rem; }
.dataset-details dl>div { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; margin-bottom: 1rem; }
.dataset-details dt { font-weight: 500; }
.dataset-details dd { margin: 0; color: var(--muted); }
.dataset-details dd a { text-decoration: underline; text-underline-offset: 3px; }
.dataset-details pre { background: var(--surface); border-radius: .75rem; padding: 1rem; margin-bottom: .75rem; }
.dataset-actions { display: flex; gap: 1.75rem; flex-wrap: wrap; margin-top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media(max-width: 760px) {
  .dataset { padding: 2rem 0; }
  .dataset-heading { display: block; }
  .dataset-heading>.dataset-link { margin-top: .5rem; }
  .dataset-table { font-size: .8125rem; }
  .dataset-table th:first-child { width: 39%; }
  .dataset-table th:nth-child(2) { width: 36%; }
  .dataset-table tbody th,.dataset-table td { padding-right: .6rem; }
  .dataset-table td a { margin-right: 0; }
  .dataset-details dl>div { grid-template-columns: 1fr; gap: .3rem; }
  .dataset-actions { gap: .75rem 1.5rem; }
}

.dataset-sources { color: var(--muted); font-size: .8125rem; line-height: 1.75; margin: -.5rem 0 1.25rem; }
.dataset-sources a { text-decoration: underline; text-underline-offset: 3px; }

[hidden] { display: none !important; }
.dataset-asof { color: var(--muted); font-size: .75rem; line-height: 1.7; margin: 0 0 1.25rem; }
.dataset-filters { display: inline-flex; gap: .25rem; background: var(--surface); padding: .25rem; border-radius: .8rem; margin-bottom: 1.5rem; max-width: 100%; }
.dataset-filters button { font: inherit; font-size: .8125rem; color: var(--muted); border: 1px solid transparent; background: transparent; min-height: 2.75rem; padding: .55rem 1rem; border-radius: .6rem; cursor: pointer; transition: background 150ms ease, color 150ms ease, transform 100ms ease-out; }
.dataset-filters button[aria-pressed="true"] { color: #202124; background: #fff; border-color: var(--line); box-shadow: 0 1px 2px #20212408; }
.dataset-filters button:active { transform: scale(.97); }
.dataset-view h3 { margin-bottom: .6rem; }
.dataset-view>.dataset-note { margin-top: 0; }
.catalog-status { font-size: .75rem; }
.dataset-view + .dataset-view { margin-top: 1.5rem; }
.dataset-filters:not([hidden]) ~ .dataset-view { margin-top: 0; }
.dataset a, .site-header a { transition: color 150ms ease; }
@media(max-width:760px) {
  .dataset-filters { display: flex; }
  .dataset-filters button { flex: 1; padding-inline: .65rem; }
}
@media(prefers-reduced-motion:reduce) {
  .dataset-filters button,.dataset a,.site-header a { transition: none; }
  .dataset-filters button:active { transform: none; }
}

.prompt-first { grid-template-columns: 1fr; }
.prompt-first textarea { min-height: 16rem; }
.manual-setup { margin-top: 1rem; font-size: .875rem; }
.manual-setup summary { cursor: pointer; min-height: 2.75rem; padding: .75rem 0; }
.manual-setup .setup-step { margin-top: .5rem; }

.terminal-panel { padding: 0; overflow: hidden; background: #fbfbfc; border-color: #dddde2; box-shadow: 0 8px 30px #20212405; }
.terminal-bar { margin: 0; padding: .65rem 1.1rem; border-bottom: 1px solid var(--line); background: #f3f3f5; }
.terminal-bar h3 { flex: 1; text-align: center; font-size: .75rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.terminal-lights { display: flex; align-items: center; gap: .35rem; min-width: 3.4rem; }
.terminal-lights i { display: block; width: .55rem; height: .55rem; border-radius: 50%; background: #c7c7ce; }
.terminal-lights i:first-child { background: #c97b68; }
.terminal-body { display: grid; grid-template-columns: 1rem minmax(0,1fr); gap: .75rem; padding: 1.5rem 1.4rem .5rem; }
.terminal-gutter { color: var(--accent); font-size: 1.2rem; line-height: 1.3; }
.terminal-panel textarea { line-height: 1.8; min-height: 18rem; }
.terminal-panel .step-note { margin: .65rem 1.4rem 1.2rem 3.15rem; }
@media(max-width:600px) {
  .terminal-bar { padding-inline: .85rem; }
  .terminal-lights { min-width: auto; gap: .25rem; }
  .terminal-bar h3 { font-size: .6875rem; }
  .terminal-body { padding: 1.1rem .85rem .35rem; gap: .4rem; }
  .terminal-panel textarea { min-height: 24rem; }
  .terminal-panel .step-note { margin: .65rem .85rem 1rem 2.25rem; }
}
