/* QueryLines marketing site — "paper & ledger ink".
   Light paper surfaces (stamping offices publish paper reports), ultramarine
   ledger-ink accent, dark chamfered bands for the chart-heavy sections.
   Palette validated with the dataviz skill:
     light chart current #2740E0 (all checks pass), dark chart current #6B7DF5
     (all checks pass, 5.07:1 vs band surface); prior-year gray is deliberate
     de-emphasis backed by legend + direct labels + table view. */

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(/fonts/schibsted-grotesk-var.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;
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/geist-mono-var.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;
}

:root {
  /* paper */
  --bg: #f7f6f3;
  --surface: #ffffff;
  --surface-raised: #fbfaf8;
  --surface-sunken: #f1efea;
  --ink: #16181d;
  --ink-secondary: #555962;
  --ink-muted: #6f747e;
  --hairline: rgba(22, 24, 29, 0.09);
  --hairline-strong: rgba(22, 24, 29, 0.2);

  /* ledger ink */
  --accent: #2740e0;
  --accent-hover: #1e33bd;
  --accent-ink: #ffffff;
  --accent-wash: rgba(39, 64, 224, 0.06);

  --data-2026: #2740e0;
  --data-2025: #a7acb8;
  --good: #177e43;
  --down: #c43d3d;
  --focus: #2740e0;

  --shadow-card: 0 1px 2px rgba(22, 24, 29, 0.04),
    0 10px 28px -16px rgba(22, 24, 29, 0.16);
  --shadow-float: 0 1px 2px rgba(22, 24, 29, 0.08),
    0 16px 40px -12px rgba(22, 24, 29, 0.22),
    0 48px 96px -32px rgba(39, 64, 224, 0.18);

  --radius-card: 14px;

  --font-sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", "Cascadia Code",
    "Roboto Mono", Consolas, "Liberation Mono", monospace;

  color-scheme: light;
}

/* Dark "ink" scope: chamfered bands and every code/response surface.
   All code is dark ink on this site — the inverse of the paper it sits on. */
.band,
.panel-dark {
  --bg: #0b0e14;
  --surface: #12161f;
  --surface-raised: #171c28;
  --surface-sunken: #080a0f;
  --ink: #f2f3f6;
  --ink-secondary: #a8aebb;
  --ink-muted: #7a8090;
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-strong: rgba(255, 255, 255, 0.17);

  --accent: #96a2ff;
  --accent-hover: #adb6ff;
  --accent-ink: #0b0e14;
  --accent-wash: rgba(150, 162, 255, 0.1);

  --data-2026: #6b7df5;
  --data-2025: #4a5163;
  --good: #45c57f;
  --down: #ed7e75;
  --focus: #96a2ff;

  --shadow-card: none;

  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  z-index: 100;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- type roles ---------- */

h1,
h2,
h3 {
  font-weight: 700;
  color: var(--ink);
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin: 0.4rem 0 0.7rem;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

/* mono eyebrow with the Clerk-style dot */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin: 0 0 0.4rem;
}

.eyebrow::before {
  content: "";
  width: 0.5em;
  height: 0.5em;
  background: var(--accent);
  display: inline-block;
  border-radius: 50%;
}

.section-head {
  margin-bottom: 2.25rem;
  max-width: 62ch;
}

.section-sub {
  color: var(--ink-secondary);
  margin: 0;
  font-size: 1.02rem;
}

section {
  padding: 4.5rem 0;
}

/* ---------- nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 246, 243, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand-mark {
  display: block;
  width: 27px;
  height: 27px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 1.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-secondary);
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-cta {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
  background: var(--surface);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.nav-cta:hover {
  border-color: var(--accent);
  color: var(--accent);
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }
}

/* brand + CTA pill are all that's left of the nav here; compress so they
   fit the narrowest phones without widening the page */
@media (max-width: 360px) {
  .site-nav .wrap {
    gap: 0.5rem;
  }
  .brand {
    font-size: 0.95rem;
    gap: 0.45rem;
  }
  .nav-cta {
    font-size: 0.78rem;
    padding: 0.4rem 0.7rem;
  }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 5.5rem 0 4.5rem;
  text-align: center;
}

/* faint paper grid, fading out from the top like a ledger sheet */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--hairline) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(
    ellipse 85% 80% at 50% 0%,
    black 25%,
    transparent 72%
  );
  mask-image: radial-gradient(
    ellipse 85% 80% at 50% 0%,
    black 25%,
    transparent 72%
  );
  pointer-events: none;
}

.hero .wrap {
  position: relative;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.3rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 0.7rem auto 1.2rem;
  max-width: 17ch;
}

.hero h1 .accent {
  color: var(--accent);
}

.pitch {
  max-width: 60ch;
  margin: 0 auto 2.2rem;
  font-size: 1.08rem;
  color: var(--ink-secondary);
}

.pitch strong {
  color: var(--ink);
  font-weight: 600;
}

.hero-ctas {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1rem;
}

.hero-ways {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-muted);
  letter-spacing: 0.01em;
  max-width: 46ch;
  margin: 0 auto;
}

/* ---------- buttons ---------- */

.btn {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.72rem 1.45rem;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-dark {
  background: var(--ink);
  color: var(--bg);
}

.btn-dark:hover {
  background: #2a2d35;
}

.btn-ghost {
  border-color: var(--hairline-strong);
  color: var(--ink);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- the query line (signature) ----------
   A hairline rule that resolves into a real premium series, drawn live from
   GET /v1/premium/sample?state=TX. If the fetch fails it stays a plain rule. */

.queryline {
  position: relative;
  margin: 2.2rem 0 3rem;
  height: 72px;
}

.queryline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid var(--hairline-strong);
}

.queryline svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.queryline path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.queryline .queryline-dot {
  fill: var(--accent);
  stroke: var(--bg);
  stroke-width: 2;
}

.queryline-caption {
  position: absolute;
  right: 0;
  top: calc(50% + 0.7rem);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  background: var(--bg);
  padding-left: 0.6rem;
}

@media (prefers-reduced-motion: no-preference) {
  .queryline path.draw {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: queryline-draw 1.3s cubic-bezier(0.6, 0, 0.3, 1) 0.2s forwards;
  }
  .queryline .queryline-dot {
    opacity: 0;
    animation: queryline-dot 0.3s ease 1.45s forwards;
  }
  @keyframes queryline-draw {
    to {
      stroke-dashoffset: 0;
    }
  }
  @keyframes queryline-dot {
    to {
      opacity: 1;
    }
  }
}

/* ---------- code / terminal panels (always dark ink) ---------- */

.panel {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.hero .panel {
  text-align: left;
  box-shadow: var(--shadow-float);
  border-color: rgba(255, 255, 255, 0.06);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 0.95rem;
  /* fixed height so side-by-side heads align whether they hold a copy
     button, window dots, or only a label */
  min-height: 42px;
  border-bottom: 1px solid var(--hairline);
  background: var(--surface-raised);
}

.panel-head-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-muted);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.panel-dots {
  display: flex;
  gap: 0.35rem;
}

.panel-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hairline-strong);
}

.code-columns {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
}

.code-columns > div:first-child {
  border-right: 1px solid var(--hairline);
}

@media (max-width: 800px) {
  .code-columns {
    grid-template-columns: 1fr;
  }
  .code-columns > div:first-child {
    border-right: none;
  }
  .code-columns .panel-head {
    border-top: 1px solid var(--hairline);
  }
  .code-columns > div:first-child .panel-head {
    border-top: none;
  }
}

pre {
  margin: 0;
  padding: 1.1rem 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.81rem;
  line-height: 1.65;
  overflow-x: auto;
  color: var(--ink);
  max-height: 340px;
  overflow-y: auto;
}

pre.curl-block {
  color: var(--ink-secondary);
}

pre .tok-key {
  color: #7fb3ff;
}

pre .tok-str {
  color: #ffc46b;
}

pre .tok-num {
  color: #6fd6a8;
}

pre .tok-null {
  color: var(--ink-muted);
}

pre .tok-comment {
  color: var(--ink-muted);
  font-style: italic;
}

pre .prompt {
  color: var(--good);
}

.copy-btn {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-secondary);
  background: transparent;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  padding: 0.26rem 0.65rem;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.copy-btn:hover {
  color: var(--ink);
  border-color: var(--accent);
}

.copy-btn.copied {
  color: var(--good);
  border-color: var(--good);
}

/* ---------- fact strip (trust-bar analog: the data is the logo wall) ---------- */

.fact-strip {
  padding: 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--surface);
}

.fact-strip .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.fact-cell {
  padding: 1.6rem 1.5rem;
  border-left: 1px solid var(--hairline);
}

.fact-cell:first-child {
  border-left: none;
}

.fact-value {
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.fact-label {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-top: 0.15rem;
}

@media (max-width: 800px) {
  .fact-strip .wrap {
    grid-template-columns: repeat(2, 1fr);
  }
  .fact-cell:nth-child(3) {
    border-left: none;
  }
  .fact-cell:nth-child(n + 3) {
    border-top: 1px solid var(--hairline);
  }
}

/* ---------- dark chamfered bands ---------- */

.band {
  background: var(--bg);
  color: var(--ink);
  padding: 5.5rem 0;
  clip-path: polygon(
    0 40px,
    40px 0,
    calc(100% - 40px) 0,
    100% 40px,
    100% calc(100% - 40px),
    calc(100% - 40px) 100%,
    40px 100%,
    0 calc(100% - 40px)
  );
}

@media (max-width: 720px) {
  .band {
    clip-path: polygon(
      0 20px,
      20px 0,
      calc(100% - 20px) 0,
      100% 20px,
      100% calc(100% - 20px),
      calc(100% - 20px) 100%,
      20px 100%,
      0 calc(100% - 20px)
    );
  }
}

.band section {
  padding: 3rem 0;
}

.band section:first-child {
  padding-top: 1.5rem;
}

.band section:last-child {
  padding-bottom: 1rem;
}

/* ---------- demo widget ---------- */

.demo-panel {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.demo-controls {
  padding: 1.4rem 1.4rem 1.15rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  border-bottom: 1px solid var(--hairline);
}

/* param fields join the parent grid instead of stacking in one cell */
.demo-params {
  display: contents;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
}

.field select,
.field input {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  color: var(--ink);
  padding: 0.52rem 0.65rem;
  border-radius: 8px;
  transition: border-color 0.15s ease;
}

.field select:hover,
.field input:hover {
  border-color: var(--ink-muted);
}

.field select:disabled,
.field input:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.field-hint {
  font-size: 0.68rem;
  color: var(--ink-muted);
}

.demo-run-row {
  padding: 1rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.price-tag {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
  border: 1px solid currentColor;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-wash);
}

.price-tag.free {
  color: var(--good);
  background: rgba(23, 126, 67, 0.07);
}

.run-btn {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.92rem;
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  border-radius: 999px;
  padding: 0.62rem 1.4rem;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.run-btn:hover {
  background: var(--accent-hover);
}

.run-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.request-url {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-muted);
  word-break: break-all;
}

/* the response area is a dark ink terminal inside the light card */
.demo-io {
  border-top: 1px solid var(--hairline);
}

.demo-io .demo-output-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1.4rem;
  background: var(--surface-raised);
  border-bottom: 1px solid var(--hairline);
}

.status-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  color: var(--ink-muted);
}

.status-pill.ok {
  color: var(--good);
  border-color: var(--good);
}

.status-pill.paid {
  color: var(--accent);
  border-color: var(--accent);
}

.status-pill.err {
  color: var(--down);
  border-color: var(--down);
}

.demo-output {
  margin: 0;
  padding: 1.1rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.81rem;
  line-height: 1.65;
  max-height: 380px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--surface);
  color: var(--ink);
}

.demo-caption {
  margin: 0;
  padding: 0.9rem 1.4rem 1.1rem;
  font-size: 0.85rem;
  color: var(--ink-secondary);
  border-top: 1px dashed var(--hairline);
  background: var(--surface);
}

.demo-caption strong {
  color: var(--accent);
}

/* ---------- real-payment demo (opt-in "settle with wallet" flow) ---------- */

.demo-pay {
  padding: 0.9rem 1.4rem 1.1rem;
  border-top: 1px dashed var(--hairline);
  background: var(--surface);
}

.pay-btn {
  font-size: 0.82rem;
  padding: 0.5rem 1.1rem;
}

.pay-confirm-copy {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  color: var(--ink-secondary);
  max-width: 60ch;
}

.pay-confirm-copy strong {
  color: var(--accent);
}

.pay-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pay-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.pay-log {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.6rem;
}

.pay-log-line {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--ink-secondary);
  word-break: break-word;
}

.pay-log-line a {
  color: var(--accent);
}

.pay-log-line-err {
  color: var(--down);
}

.pay-receipt-line {
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
  color: var(--ink-secondary);
}

.pay-receipt-line strong {
  color: var(--accent);
}

.pay-receipt-hash {
  margin: 0;
  padding: 0.55rem 0.75rem;
  font-size: 0.76rem;
  max-height: none;
  overflow-x: auto;
  white-space: nowrap;
  background: var(--surface-raised);
  border: 1px solid var(--hairline);
  border-radius: 8px;
}

.pay-receipt-hash a {
  color: var(--accent);
}

@media (max-width: 480px) {
  .pay-confirm-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .pay-confirm-actions .btn {
    justify-content: center;
  }
}

/* ---------- stat tiles ---------- */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

@media (max-width: 720px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-tile {
  background: var(--surface);
  padding: 1.25rem 1.4rem;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.stat-delta {
  margin-top: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.stat-delta.up {
  color: var(--good);
}

.stat-delta.down {
  color: var(--down);
}

.data-as-of {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-muted);
  margin: 0 0 1.5rem;
}

/* ---------- chart ---------- */

.chart-panel {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 1.5rem 1.5rem 1rem;
}

.chart-legend {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-secondary);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.legend-swatch.y2026 {
  background: var(--data-2026);
}

.legend-swatch.y2025 {
  background: var(--data-2025);
}

.chart-svg text {
  font-family: var(--font-mono);
}

.axis-label {
  fill: var(--ink-muted);
  font-size: 11px;
}

.grid-line {
  stroke: var(--hairline);
  stroke-width: 1;
}

.baseline {
  stroke: var(--hairline-strong);
  stroke-width: 1;
}

.bar-2025 {
  fill: var(--data-2025);
}

.bar-2026 {
  fill: var(--data-2026);
}

.bar-value {
  fill: var(--ink-secondary);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.bar-value.accent {
  fill: var(--ink);
  font-weight: 700;
}

.bar-group-label {
  fill: var(--ink-secondary);
  font-size: 12px;
}

.chart-table-toggle {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-muted);
  background: none;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  cursor: pointer;
  margin-top: 0.75rem;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.chart-table-toggle:hover {
  color: var(--ink);
  border-color: var(--accent);
}

.chart-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin-top: 1rem;
}

.chart-table th,
.chart-table td {
  text-align: right;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--hairline);
  font-variant-numeric: tabular-nums;
}

.chart-table th:first-child,
.chart-table td:first-child {
  text-align: left;
  color: var(--ink-secondary);
}

.chart-table th {
  color: var(--ink-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.66rem;
  letter-spacing: 0.05em;
}

/* ---------- state toggle ---------- */

.state-toggle {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.25rem;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  margin-bottom: 1rem;
}

.state-toggle-btn {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-secondary);
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.state-toggle-btn:hover {
  color: var(--ink);
}

.state-toggle-btn.active {
  color: var(--accent-ink);
  background: var(--accent);
}

/* ---------- data coverage table + use cases ---------- */

/* tables can't shrink below their content's min width; the wrapper scrolls
   instead of letting the table widen the page on narrow viewports */
.table-scroll {
  overflow-x: auto;
  margin-bottom: 2.5rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table caption {
  caption-side: bottom;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-muted);
  margin-top: 0.75rem;
}

.data-table caption a {
  color: var(--accent);
  text-decoration: none;
}

.data-table caption a:hover {
  text-decoration: underline;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}

.data-table th {
  font-family: var(--font-mono);
  color: var(--ink-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.66rem;
  letter-spacing: 0.05em;
}

.data-table td:first-child {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent);
}

.data-table td {
  color: var(--ink-secondary);
}

.usecase-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 800px) {
  .usecase-list {
    grid-template-columns: 1fr;
  }
}

.usecase-list li {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 1.1rem 1.2rem;
}

.usecase-q {
  margin: 0 0 0.6rem;
  font-weight: 600;
  color: var(--ink);
}

.usecase-code {
  margin: 0;
  padding: 0;
  background: none;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-secondary);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: none;
}

/* ---------- pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  align-items: stretch;
}

@media (max-width: 800px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow-card);
}

.price-card.featured {
  border: 1.5px solid var(--accent);
  background: linear-gradient(180deg, var(--accent-wash), var(--surface) 55%);
}

.price-figure {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.price-figure .unit {
  font-size: 0.9rem;
  color: var(--ink-muted);
  font-weight: 500;
}

.price-card h3 {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-muted);
}

.price-card.featured h3 {
  color: var(--accent);
}

.price-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
}

.pricing-note {
  margin-top: 1.6rem;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

/* ---------- why per query (old way vs QueryLines) ---------- */

/* both columns are prose; suppress the mono/accent key-column treatment */
.compare-table td:first-child {
  font-family: inherit;
  font-weight: 400;
  color: var(--ink-muted);
}

.compare-table td + td {
  color: var(--ink);
}

.compare-note {
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.compare-note a {
  color: var(--accent);
  text-decoration: none;
}

.compare-note a:hover {
  text-decoration: underline;
}

.pricing-note a {
  color: var(--accent);
  text-decoration: none;
}

.pricing-note a:hover {
  text-decoration: underline;
}

/* ---------- for agents (dark bento) ---------- */

.agents-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 1.1rem;
}

@media (max-width: 800px) {
  .agents-grid {
    grid-template-columns: 1fr;
  }
}

.agent-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 1.4rem 1.5rem;
}

.agent-card h3 {
  margin: 0 0 1rem;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.agents-grid .panel {
  grid-column: 1 / -1;
}

.agent-links {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.agent-links a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px dotted var(--hairline-strong);
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.agent-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.mcp-tools-head {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-muted);
  margin: 0 0 0.85rem;
}

.mcp-tools-head code {
  color: var(--ink-secondary);
}

.mcp-tools-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mcp-tools-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px dashed var(--hairline);
  padding-bottom: 0.45rem;
}

.mcp-tools-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.mcp-tools-list code {
  color: var(--ink);
}

.mcp-tool-price {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
}

.mcp-tool-price.free {
  color: var(--good);
}

.mcp-tools-foot {
  margin: 0.9rem 0 0;
  font-size: 0.82rem;
}

.mcp-tools-foot a {
  color: var(--accent);
  text-decoration: none;
}

.mcp-tools-foot a:hover {
  text-decoration: underline;
}

/* ---------- integrate: tabbed quickstart panel ---------- */

.quickstart {
  margin-bottom: 1.1rem;
}

.quickstart-tablist {
  display: flex;
  gap: 0.25rem;
  padding: 0.4rem 0.6rem 0;
  background: var(--surface-raised);
  border-bottom: 1px solid var(--hairline);
  overflow-x: auto;
}

.quickstart-tab {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.6rem 0.9rem;
  margin-bottom: -1px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.quickstart-tab:hover {
  color: var(--ink);
}

.quickstart-tab.active {
  color: var(--accent);
  border-color: var(--accent);
}

.quickstart-pane > .panel-head {
  border-top: none;
}

.quickstart-note {
  margin: 0;
  padding: 0.85rem 1.15rem 1.05rem;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--ink-secondary);
  border-top: 1px solid var(--hairline);
}

.quickstart-note code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.quickstart-note a {
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}

.quickstart-note a:hover {
  text-decoration: underline;
}

.quickstart-more {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin: 0 0 2.2rem;
}

.quickstart-more a {
  color: var(--accent);
  text-decoration: none;
}

.quickstart-more a:hover {
  text-decoration: underline;
}

@media (max-width: 420px) {
  .quickstart-tab {
    padding: 0.55rem 0.65rem;
    font-size: 0.72rem;
  }
}

/* ---------- listed where agents look (slim social-proof strip) ---------- */

.listed-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.5rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
}

.listed-row-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.listed-row-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.3rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.listed-row-links a {
  color: var(--ink-secondary);
  text-decoration: none;
  border-bottom: 1px dotted var(--hairline-strong);
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.listed-row-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

@media (max-width: 600px) {
  .listed-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
}

/* ---------- decision-maker callout ---------- */

.callout {
  padding: 4.5rem 0;
}

.callout-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 2.2rem 2.4rem;
}

.callout-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 0.6rem;
}

.callout-body {
  max-width: 62ch;
  color: var(--ink-secondary);
  margin: 0 0 1rem;
  font-size: 1.02rem;
}

.callout-links {
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0;
}

.callout-links a {
  color: var(--accent);
  text-decoration: none;
}

.callout-links a:hover {
  text-decoration: underline;
}

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--hairline);
  padding: 3rem 0 3.5rem;
  background: var(--surface);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
}

.footer-brand .brand-mark {
  width: 24px;
  height: 24px;
}

.footer-attribution {
  max-width: 46ch;
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin: 0;
}

.footer-contact {
  font-size: 0.9rem;
  margin: 0;
  line-height: 2;
}

.footer-contact a {
  color: var(--ink-secondary);
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--accent);
}

.footer-meta {
  margin-top: 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-muted);
}

/* ---------- utility ---------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
