:root {
  --canvas: #07090a;
  --surface: #111516;
  --surface-raised: #151a1c;
  --line: #252b2e;
  --line-strong: #353d40;
  --text: #f4f5f2;
  --muted: #a4aba9;
  --faint: #6d7775;
  --signal: #efd228;
  --signal-soft: rgba(239, 210, 40, 0.1);
  --blue: #1769e0;
  --blue-bright: #2f7df0;
  --green: #36cc78;
  --red: #f15b64;
  --poly: #2474e5;
  --kalshi: #00c986;
  --font: "Inter", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", Consolas, monospace;
  --radius: 12px;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--canvas); }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 20% -20%, rgba(239, 210, 40, 0.06), transparent 30rem),
    linear-gradient(180deg, #080a0b 0%, var(--canvas) 28rem);
  font-family: var(--font);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.28;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 0.6px, transparent 0.6px);
  background-size: 7px 7px;
  pointer-events: none;
}
a { color: inherit; text-decoration: none; }
button, input, select { color: inherit; font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
code, pre { font-family: var(--mono); }
::selection { color: #080a0b; background: var(--signal); }

.signal-rail {
  height: 34px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid #181c1e;
  background: #070809;
  color: var(--muted);
  font-size: 12px;
}
.signal-rail-label {
  height: 100%;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  border-right: 1px solid var(--line);
  color: var(--text);
  font-weight: 700;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 10px rgba(239, 210, 40, 0.65);
  animation: pulse 2.4s ease-in-out infinite;
}
.rail-track {
  display: flex;
  min-width: max-content;
  align-items: center;
  animation: rail 36s linear infinite;
}
.rail-track span { padding: 0 24px; border-right: 1px solid #1c2123; white-space: nowrap; }
.rail-track b { color: var(--signal); font-weight: 600; }
@keyframes rail { to { transform: translateX(-50%); } }
@keyframes pulse { 50% { opacity: 0.45; transform: scale(0.8); } }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 72px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 9, 10, 0.9);
  backdrop-filter: blur(18px);
}
.brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.brand img { width: 28px; height: 28px; object-fit: contain; }
.nav { display: flex; justify-content: flex-end; align-items: center; gap: 24px; color: var(--muted); font-size: 13px; font-weight: 600; }
.nav a { position: relative; padding: 27px 0 23px; }
.nav a:hover, .nav a.active { color: var(--text); }
.nav a.active::after { position: absolute; right: 0; bottom: 13px; left: 0; height: 2px; border-radius: 2px; content: ""; background: var(--signal); }
.account-link { padding: 8px 12px !important; border: 1px solid var(--line); border-radius: 8px; color: var(--text) !important; background: var(--surface); }
.account-link::after { display: none; }

.wrap { width: min(1220px, calc(100% - 40px)); margin: 0 auto; }
.hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr); gap: 48px; align-items: center; min-height: 610px; padding: 72px 0 58px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px; color: var(--signal); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.eyebrow::before { width: 22px; height: 1px; content: ""; background: var(--signal); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 700px; margin-bottom: 20px; font-size: clamp(42px, 5.5vw, 72px); line-height: 0.98; letter-spacing: -0.058em; }
h1 span { color: var(--signal); }
.hero-copy { max-width: 650px; margin-bottom: 28px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.hero-copy strong { color: var(--text); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 18px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--text); font-size: 14.5px; font-weight: 700; transition: 160ms ease; }
.btn:hover { transform: translateY(-1px); border-color: var(--line-strong); background: var(--surface-raised); }
.btn-primary { border-color: var(--blue); background: var(--blue); box-shadow: 0 10px 30px rgba(23, 105, 224, 0.2); }
.btn-primary:hover { border-color: var(--blue-bright); background: var(--blue-bright); }
.btn-signal { border-color: var(--signal); color: #090b0c; background: var(--signal); }
.btn-signal:hover { background: #f7dc35; }
.btn-disabled,
.btn-disabled:hover { cursor: not-allowed; transform: none; border-color: var(--line); color: var(--faint); background: #111517; box-shadow: none; }
.btn-disabled-signal,
.btn-disabled-signal:hover { border-color: rgba(239, 210, 40, 0.24); color: #c7b94d; background: rgba(239, 210, 40, 0.035); }
.hero-footnote { margin-top: 16px; color: var(--faint); font-size: 11px; }

.trace-card { overflow: hidden; border: 1px solid var(--line-strong); border-radius: 15px; background: rgba(17, 21, 22, 0.92); box-shadow: var(--shadow); }
.trace-head { display: flex; justify-content: space-between; align-items: center; padding: 15px 17px; border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 700; }
.trace-head span:last-child { color: var(--green); font: 10px var(--mono); }
.trace-body { padding: 20px; }
.trace-market { display: flex; justify-content: space-between; gap: 18px; }
.trace-market-label { color: var(--faint); font: 10px var(--mono); text-transform: uppercase; }
.trace-market h3 { margin: 6px 0 0; font-size: 17px; line-height: 1.35; letter-spacing: -0.02em; }
.trace-price { color: var(--signal); font-size: 35px; font-weight: 800; letter-spacing: -0.05em; }
.trace-delta { display: block; color: var(--green); font: 10px var(--mono); text-align: right; }
.trace-line {
  height: 70px;
  margin: 20px 0 16px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, transparent 49%, rgba(255, 255, 255, 0.035) 50%, transparent 51%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 80'%3E%3Cpath d='M2 66 L48 62 L82 63 L118 57 L147 59 L174 52 L202 55 L228 48 L250 49 L274 38 L296 41 L315 23 L335 27 L354 11 L398 8' fill='none' stroke='%23efd228' stroke-width='2.4'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.gate-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.gate { padding: 10px 11px; border: 1px solid var(--line); border-radius: 8px; background: #0e1213; }
.gate b { display: block; margin-bottom: 2px; color: var(--text); font: 600 11px var(--mono); }
.gate span { color: var(--faint); font-size: 10px; }
.trace-delivery { display: flex; align-items: center; gap: 9px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.trace-delivery b { color: var(--text); }
.delivery-chip { padding: 3px 7px; border-radius: 5px; color: var(--blue-bright); background: rgba(23, 105, 224, 0.12); font: 600 9px var(--mono); }

.truth-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 86px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.truth-item { min-height: 96px; padding: 20px; border-right: 1px solid var(--line); }
.truth-item:last-child { border-right: 0; }
.truth-item b { display: block; margin-bottom: 7px; font-size: 13px; }
.truth-item span { color: var(--faint); font-size: 11px; line-height: 1.55; }

.section { margin-bottom: 74px; scroll-margin-top: 100px; }
.pricing-lead { width: min(var(--api-page-width), calc(100% - 40px)); padding-top: 34px; }
.context-lead { padding-top: 24px; margin-bottom: 46px; }
.context-lead .section-head { margin-bottom: 18px; }
.section-head { display: flex; justify-content: space-between; gap: 32px; align-items: end; margin-bottom: 28px; }
.section-head-plain { align-items: center; margin-bottom: 18px; }
.delivery-section { margin-bottom: 46px; }
.section-kicker { margin-bottom: 10px; color: var(--signal); font: 600 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.section-title { max-width: 720px; margin-bottom: 0; font-size: clamp(30px, 3.5vw, 42px); font-weight: 650; line-height: 1.08; letter-spacing: -0.04em; }
.section-desc { max-width: 500px; margin-bottom: 0; color: var(--muted); font-size: 14.5px; font-weight: 600; line-height: 1.55; letter-spacing: -0.02em; }

.pricing-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 320px); gap: 28px; align-items: start; }
.pricing-main { min-width: 0; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.price-card { min-height: 430px; display: flex; flex-direction: column; justify-content: space-between; padding: 17px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.price-card.featured { position: relative; border-color: rgba(239, 210, 40, 0.42); background: linear-gradient(180deg, rgba(239, 210, 40, 0.055), var(--surface) 34%); }
.price-card.featured::before { position: absolute; top: 0; right: 17px; left: 17px; height: 2px; content: ""; background: var(--signal); }
.plan-topline { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.plan-name { font-size: 16px; font-weight: 700; line-height: 1.15; letter-spacing: -0.025em; }
.plan-tag { padding: 3px 5px; border: 1px solid var(--line); border-radius: 5px; color: var(--faint); font: 600 9px var(--mono); letter-spacing: 0.04em; text-align: right; text-transform: uppercase; }
.price { margin: 16px 0 5px; font-size: 34px; font-weight: 800; letter-spacing: -0.06em; }
.price small { color: var(--faint); font-size: 13px; font-weight: 600; letter-spacing: 0; }
.plan-copy { min-height: 62px; padding-bottom: 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12.5px; font-weight: 600; line-height: 1.4; letter-spacing: -0.018em; }
.plan-metric { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 11px 0; }
.metric { padding: 8px; border-radius: 7px; background: #0c1011; }
.metric b { display: block; font: 600 12px var(--mono); }
.metric span { color: var(--faint); font-size: 9px; font-weight: 600; line-height: 1.25; }
.features { display: grid; gap: 7px; padding: 0; margin: 0 0 16px; list-style: none; }
.features li { position: relative; padding-left: 14px; color: var(--muted); font-size: 12px; font-weight: 600; line-height: 1.28; letter-spacing: -0.015em; }
.features li::before { position: absolute; top: 6px; left: 0; width: 7px; height: 7px; border-radius: 50%; content: ""; background: var(--signal); box-shadow: 0 0 0 3px rgba(239, 210, 40, 0.08); }
.features li.off { color: var(--faint); text-decoration: line-through; }
.features li.off::before { border: 1px solid var(--faint); background: transparent; box-shadow: none; }
.price-card .btn { width: 100%; }
.archive-note { display: flex; align-items: flex-start; gap: 12px; margin-top: 10px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: #0b0e0f; font-size: 12.5px; font-weight: 600; line-height: 1.4; }
.archive-note b { flex: 0 0 auto; color: var(--signal); font: 600 11px var(--mono); text-transform: uppercase; }

.delivery-rail { min-width: 0; padding-top: 63px; padding-left: 20px; border-left: 1px solid var(--line); }
.delivery-rail-head { margin-bottom: 15px; }
.delivery-rail-head .section-kicker { margin-bottom: 7px; }
.delivery-rail-head .section-title { font-size: clamp(25px, 2.5vw, 34px); }
.delivery-rail-head p { margin: 12px 0 0; color: var(--muted); font-size: 12.5px; font-weight: 600; line-height: 1.45; }
.delivery-grid { display: grid; grid-template-columns: 1fr; gap: 9px; margin-bottom: 0; }
.delivery-card, .endpoint-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color 160ms ease, transform 160ms ease; }
.delivery-card:hover, .endpoint-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.delivery-card { padding: 13px; }
.delivery-type { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.method { padding: 4px 7px; border-radius: 5px; color: var(--signal); background: var(--signal-soft); font: 600 9px var(--mono); }
.delivery-card h3 { margin-bottom: 0; font-size: 15px; font-weight: 650; line-height: 1.2; letter-spacing: -0.025em; }
.delivery-card p { margin-bottom: 0; color: var(--muted); font-size: 12px; font-weight: 600; line-height: 1.4; letter-spacing: -0.018em; }
.endpoint-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.endpoint-card { display: grid; grid-template-columns: 190px minmax(0, 1.25fr) minmax(310px, 0.9fr); column-gap: 18px; align-items: center; padding: 13px 16px; }
.endpoint-meta { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; grid-column: 1; grid-row: 1 / span 2; margin-bottom: 0; }
.endpoint-plan { color: var(--faint); font: 600 10.5px var(--mono); text-transform: uppercase; }
.endpoint-path { grid-column: 2; grid-row: 1; margin-bottom: 3px; overflow-wrap: anywhere; color: var(--text); font: 600 14.5px var(--mono); }
.endpoint-card p { grid-column: 2; grid-row: 2; margin-bottom: 0; color: var(--muted); font-size: 14.5px; font-weight: 600; line-height: 1.5; letter-spacing: -0.018em; }
.payload { display: flex; grid-column: 3; grid-row: 1 / span 2; align-items: center; align-self: stretch; padding: 0 0 0 16px; border-top: 0; border-left: 1px solid var(--line); color: var(--faint); font: 500 11.5px/1.55 var(--mono); }
.payload b { color: var(--text); font-weight: 500; }

.context-shell { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.context-grid { display: grid; grid-template-columns: 1fr 0.62fr 1fr; align-items: stretch; }
.context-panel { padding: 18px; }
.context-panel + .context-panel { border-left: 1px solid var(--line); }
.context-label { margin-bottom: 10px; color: var(--faint); font: 600 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.sibling-list { display: grid; gap: 7px; }
.sibling-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: #0d1112; font-size: 14.5px; font-weight: 600; letter-spacing: -0.018em; }
.sibling-row b { font: 600 13px var(--mono); }
.sibling-row .up { color: var(--green); }
.sibling-row .down { color: var(--red); }
.event-link { display: grid; place-items: center; text-align: center; background: #0b0f10; }
.event-id { margin-bottom: 10px; color: var(--signal); font: 600 11px var(--mono); }
.event-link strong { display: block; max-width: 200px; font-size: 18px; font-weight: 650; line-height: 1.3; letter-spacing: -0.03em; }
.event-link span { display: block; margin-top: 10px; color: var(--faint); font-size: 12px; font-weight: 600; }
.context-result { background: linear-gradient(180deg, rgba(23, 105, 224, 0.08), transparent); }
.context-result h3 { margin-bottom: 9px; font-size: 22px; font-weight: 650; line-height: 1.2; letter-spacing: -0.04em; }
.context-result p { margin-bottom: 12px; color: var(--muted); font-size: 14.5px; font-weight: 600; line-height: 1.45; letter-spacing: -0.018em; }
.context-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.context-tags span { padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--faint); font: 600 10.5px var(--mono); }
.context-foot { display: flex; justify-content: space-between; align-items: center; gap: 22px; padding: 13px 18px; border-top: 1px solid var(--line); color: var(--muted); background: #0b0e0f; font-size: 14.5px; font-weight: 600; line-height: 1.45; letter-spacing: -0.018em; }
.context-foot > div:first-child { max-width: 720px; flex: 1 1 auto; }
.context-foot b { color: var(--text); font-weight: 700; }
.context-cta { display: flex; flex: 0 0 auto; gap: 9px; }

.use-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.use-card { min-height: 220px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.use-index { margin-bottom: 30px; color: var(--signal); font: 600 11px var(--mono); }
.use-card h3 { margin-bottom: 10px; font-size: 17px; font-weight: 650; line-height: 1.3; letter-spacing: -0.025em; }
.use-card p { margin-bottom: 0; color: var(--muted); font-size: 14.5px; font-weight: 600; line-height: 1.5; letter-spacing: -0.018em; }
.boundary { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 26px; align-items: center; margin-top: 14px; padding: 23px; border: 1px solid var(--line); border-radius: var(--radius); background: #0b0e0f; }
.boundary strong { font-size: 18px; }
.boundary p { margin-bottom: 0; color: var(--muted); font-size: 14.5px; font-weight: 600; line-height: 1.5; letter-spacing: -0.018em; }

.playground { overflow: hidden; border: 1px solid var(--line-strong); border-radius: 14px; background: #0b0e0f; box-shadow: var(--shadow); }
.playground-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 15px 18px; border-bottom: 1px solid var(--line); background: var(--surface); }
.playground-title { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 700; }
.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.window-dots i:first-child { background: var(--signal); }
.runtime-pill { color: var(--green); font: 500 9px var(--mono); }
.playground-body { display: grid; grid-template-columns: 235px minmax(0, 1fr); min-height: 500px; }
.endpoint-tabs { padding: 12px; border-right: 1px solid var(--line); background: #090c0d; }
.endpoint-tab { width: 100%; display: block; margin-bottom: 5px; padding: 11px; border: 1px solid transparent; border-radius: 7px; color: var(--muted); background: transparent; text-align: left; }
.endpoint-tab:hover, .endpoint-tab.active { border-color: var(--line); color: var(--text); background: var(--surface); }
.endpoint-tab b { display: block; margin-bottom: 4px; font: 600 12px var(--mono); }
.endpoint-tab span { color: var(--faint); font-size: 11px; font-weight: 600; }
.terminal-main { min-width: 0; display: grid; grid-template-rows: auto 1fr; }
.request-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 0.55fr) auto; gap: 9px; padding: 14px; border-bottom: 1px solid var(--line); }
.control { min-width: 0; height: 40px; padding: 0 11px; border: 1px solid var(--line); border-radius: 7px; outline: 0; background: var(--surface); font: 500 12px var(--mono); }
.control:focus { border-color: var(--blue); }
.terminal-panes { min-width: 0; display: grid; grid-template-columns: 1fr 1fr; }
.terminal-pane { min-width: 0; padding: 18px; }
.terminal-pane + .terminal-pane { border-left: 1px solid var(--line); }
.pane-label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 13px; color: var(--faint); font: 600 10.5px var(--mono); text-transform: uppercase; }
.copy-button { padding: 0; border: 0; color: var(--muted); background: transparent; font: 600 10.5px var(--mono); }
.copy-button:hover { color: var(--signal); }
pre { min-height: 280px; margin: 0; overflow: auto; color: #c7d0ce; font-size: 12px; font-weight: 500; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.response-status { color: var(--green); }
.terminal-note { padding: 13px 18px; border-top: 1px solid var(--line); color: var(--faint); background: #090c0d; font-size: 12px; font-weight: 600; }
.terminal-note b { color: var(--muted); }

.source-row { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 14px; }
.source-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.source-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.source-badge { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; font-size: 12px; font-weight: 700; }
.source-badge::before { width: 7px; height: 7px; border-radius: 2px; content: ""; background: var(--poly); }
.source-badge.kalshi::before { background: var(--kalshi); }
.source-card h3 { font-size: 18px; font-weight: 650; }
.source-card p { margin-bottom: 0; color: var(--muted); font-size: 14.5px; font-weight: 600; line-height: 1.5; letter-spacing: -0.018em; }
.contract-list { display: grid; }
.contract-row { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; font-weight: 600; }
.contract-row:last-child { border-bottom: 0; }
.contract-row span { color: var(--faint); }
.contract-row b { font: 600 11.5px var(--mono); text-align: right; }

footer { width: min(var(--api-page-width), calc(100% - 40px)); margin: 80px auto 28px; padding: 25px 0 0; display: grid; grid-template-columns: minmax(235px, 1.25fr) minmax(450px, 1.65fr) auto; align-items: start; gap: 34px; min-height: 0; border-top: 1px solid var(--line); background: #070809; font-size: 11px; line-height: normal; }
footer > .wrap { width: auto; margin: 0; }
.footer-core { display: grid; gap: 8px; }
.footer-brand { display: flex; align-items: center; gap: 8px; width: max-content; color: var(--muted); font-size: 12px; font-weight: 650; }
.footer-brand img { width: 58px; height: 30px; object-fit: contain; }
.footer-brand b { color: var(--text); font-size: 14px; letter-spacing: -0.02em; }
.footer-brand span { color: var(--faint); font-size: 10px; font-weight: 500; }
.footer-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; }
.footer-group { display: grid; align-content: start; gap: 7px; }
.footer-group b { margin-bottom: 3px; color: var(--signal); font-size: 10px; font-weight: 700; text-transform: lowercase; }
.footer-group a { color: var(--muted); font-size: 10px; }
.footer-group a:hover { color: var(--signal); }
.footer-status { justify-self: end; padding-top: 1px; margin: 0; color: var(--muted); font-size: 10px; }
.footer-live-dot { margin-right: 5px; color: var(--signal); font-size: 9px; }

.reveal { animation: reveal 520ms both; }
.reveal.delay-1 { animation-delay: 90ms; }
.reveal.delay-2 { animation-delay: 160ms; }
@keyframes reveal { from { opacity: 0; transform: translateY(10px); } }

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

@media (max-width: 860px) {
  .pricing-lead { width: min(100% - 24px, 1220px); }
  .pricing-layout { grid-template-columns: 1fr; }
  .delivery-rail { padding-top: 28px; padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card { min-height: 0; }
  .plan-copy { min-height: 0; }
  .delivery-grid { grid-template-columns: 1fr; }
  .endpoint-card { display: block; padding: 14px; }
  .endpoint-meta { align-items: center; margin-bottom: 8px; }
  .endpoint-path { margin-bottom: 6px; }
  .endpoint-card p { margin-bottom: 8px; }
  .payload { display: block; padding: 8px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .context-grid { grid-template-columns: 1fr; }
  .context-panel + .context-panel { border-top: 1px solid var(--line); border-left: 0; }
  .context-foot { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 760px) {
  .signal-rail-label { padding: 0 13px; }
  .site-header { height: 62px; padding: 0 14px; }
  .brand { font-size: 18px; }
  .brand img { width: 25px; height: 25px; }
  .nav { gap: 14px; }
  .nav .desktop { display: none; }
  .nav a { padding: 22px 0 19px; }
  .nav a.active::after { bottom: 9px; }
  .account-link { padding: 7px 10px !important; }
  .wrap { width: min(100% - 24px, 1220px); }
  .context-lead { padding-top: 28px; }
  .section { margin-bottom: 70px; }
  .section-head { display: block; }
  .section-desc { margin-top: 15px; }
  .endpoint-grid { grid-template-columns: 1fr; }
  .context-panel { padding: 18px; }
  .context-cta { width: 100%; flex-direction: column; }
  .context-cta .btn { width: 100%; }
  .use-grid { grid-template-columns: 1fr; }
  .use-card { min-height: 0; }
  .use-index { margin-bottom: 22px; }
  .boundary { grid-template-columns: 1fr; }
  .source-row { grid-template-columns: 1fr; }
  .playground-body { grid-template-columns: 1fr; }
  .endpoint-tabs { display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .endpoint-tab { flex: 0 0 145px; margin: 0 5px 0 0; }
  .request-controls { grid-template-columns: 1fr; }
  .terminal-panes { grid-template-columns: 1fr; }
  .terminal-pane + .terminal-pane { border-top: 1px solid var(--line); border-left: 0; }
  pre { min-height: 220px; }
  footer { width: calc(100% - 24px); margin: 40px auto 20px; padding: 22px 0 0; grid-template-columns: 1fr; gap: 24px; }
  footer > .wrap { width: 100%; }
  .footer-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .footer-status { grid-column: auto; justify-self: start; padding-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

/* Match the main OddsQ shell on the API page without changing other surfaces. */
:root { --api-page-width: 1420px; }

/* Keep every API section on the same horizontal rail as the header and pricing block. */
.wrap { width: min(var(--api-page-width), calc(100% - 40px)); }
#siblings .section-title { max-width: 900px; }

.site-header {
  position: relative;
  z-index: 30;
  display: grid;
  grid-template-columns: max-content minmax(240px, 1fr) max-content max-content;
  align-items: center;
  gap: 20px;
  min-height: 70px;
  height: auto;
  padding: 11px max(20px, calc((100vw - var(--api-page-width)) / 2));
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background: rgba(16, 19, 21, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  min-width: max-content;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: normal;
}

.brand-logo {
  width: 33px !important;
  height: 33px !important;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  object-fit: contain;
}

.brand-word {
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: -0.065em;
}

.brand-descriptor {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.brand-descriptor b { color: var(--signal); }

/* Match the main site's compact header breakpoint: hide only the descriptor. */
@media (max-width: 1280px) {
  .brand-descriptor { display: none; }
}

.search-shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-self: center;
  width: min(100%, 540px);
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: #1a2024;
}

.search-shell > span {
  margin-left: 15px;
  color: #aeb7b6;
  font-size: 18px;
}

.search-shell input {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 10px 14px 10px 12px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font: inherit;
  font-size: 12px;
}

.search-shell input::placeholder { color: #777f7c; }

.top-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.top-nav a {
  position: relative;
  padding: 8px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.012em;
}

.top-nav a::after {
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  content: "";
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.top-nav a:hover,
.top-nav a.active { color: var(--signal); }

.top-nav a:hover::after,
.top-nav a.active::after { transform: scaleX(1); }

.socials {
  display: flex;
  align-items: center;
  gap: 6px;
}

.socials a {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--muted);
  background: #1a2024;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.socials a:hover {
  border-color: rgba(241, 201, 40, 0.55);
  color: var(--signal);
  transform: translateY(-1px);
}

.socials svg { width: 15px; height: 15px; fill: currentColor; }

@media (max-width: 1100px) {
  .brand-descriptor,
  .socials { display: none; }
  .site-header { grid-template-columns: max-content minmax(0, 1fr) max-content; }
}

@media (max-width: 760px) {
  .wrap { width: min(100% - 24px, 1220px); }

  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 0;
    padding: 12px 16px;
  }

  .brand-logo { width: 29px !important; height: 29px !important; }
  .brand-word { font-size: 21px; }

  .search-shell {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }

  .top-nav {
    grid-column: 1;
    grid-row: 3;
    gap: 14px;
  }

  .socials {
    display: flex;
    grid-column: 2;
    grid-row: 3;
  }
}


/* ============================================================
   oddsq-plan-soon-r60
   Professional, on-brand "payments not live yet" state for the
   $30 / $99 plans. Replaces an off-product Telegram redirect.
   No fake checkout; no entitlement is granted client-side.
   ============================================================ */
.plan-soon {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(241, 201, 40, 0.28);
  border-left: 3px solid #f1c928;
  border-radius: 10px;
  background: rgba(241, 201, 40, 0.055);
  display: grid;
  gap: 6px;
}

.plan-soon[hidden] { display: none; }

.plan-soon b {
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f1c928;
}

.plan-soon .plan-soon-body {
  font-size: 0.9rem;
  line-height: 1.55;
  font-weight: 400;
  color: rgba(233, 237, 246, 0.78);
}

.plan-soon .plan-soon-name {
  font-style: normal;
  font-weight: 600;
  color: rgba(233, 237, 246, 0.95);
}

.plan-soon-trigger { cursor: pointer; }

/* OddsQ API experience r67: About-page depth with product-first hierarchy. */
main#api {
  display: grid;
  width: min(var(--api-page-width), calc(100% - 40px));
  gap: 14px;
  margin: 0 auto;
  padding: 28px 0 54px;
}

main#api > .wrap {
  width: 100%;
  margin: 0;
}

main#api > .section {
  margin: 0;
  padding: clamp(24px, 3vw, 42px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.026), transparent 56%),
    #111516;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.048),
    inset 0 -1px 0 rgba(0, 0, 0, 0.42),
    0 18px 38px rgba(0, 0, 0, 0.22);
}

main#api > .section:nth-child(even) {
  background:
    radial-gradient(circle at 100% 0, rgba(239, 210, 40, 0.045), transparent 28rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.02), transparent 58%),
    #101415;
}

.pricing-lead {
  padding-top: clamp(24px, 3vw, 42px);
}

.section-head {
  margin-bottom: 22px;
}

.section-title {
  color: var(--text);
  font-weight: 650;
  letter-spacing: -0.048em;
}

.pricing-layout {
  gap: clamp(24px, 2.4vw, 34px);
}

.pricing-grid {
  gap: 12px;
}

.price-card {
  position: relative;
  border-color: rgba(255, 255, 255, 0.105);
  background:
    radial-gradient(circle at 100% 0, rgba(255, 255, 255, 0.035), transparent 44%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.025), transparent 60%),
    #0d1112;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    inset 0 -1px 0 rgba(0, 0, 0, 0.48),
    0 11px 25px rgba(0, 0, 0, 0.2);
}

.price-card:nth-child(2) {
  border-color: rgba(47, 125, 240, 0.3);
  background:
    radial-gradient(circle at 100% 0, rgba(47, 125, 240, 0.09), transparent 48%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.025), transparent 60%),
    #0d1112;
}

.price-card.featured {
  border-color: rgba(239, 210, 40, 0.46);
  background:
    radial-gradient(circle at 100% 0, rgba(239, 210, 40, 0.105), transparent 48%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.027), transparent 60%),
    #0e1110;
}

.price-card.featured::before {
  right: 16px;
  left: 16px;
  border-radius: 0 0 999px 999px;
  box-shadow: 0 0 18px rgba(239, 210, 40, 0.26);
}

.price,
.plan-name {
  font-weight: 700;
}

.btn {
  position: relative;
  min-height: 44px;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: linear-gradient(180deg, #202629 0%, #111517 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.45),
    0 3px 0 #07090a,
    0 9px 18px rgba(0, 0, 0, 0.28);
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.btn:hover {
  border-color: rgba(239, 210, 40, 0.42);
  background: linear-gradient(180deg, #2a3032 0%, #161b1d 100%);
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(2px);
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, 0.38),
    0 1px 0 #07090a,
    0 4px 9px rgba(0, 0, 0, 0.24);
}

.price-card:nth-child(2) .btn-primary,
.context-cta .btn-primary,
#run-request.btn-primary {
  border-color: rgba(76, 145, 245, 0.72);
  background: linear-gradient(155deg, #2f83f4 0%, #1764d2 58%, #0c4598 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.23),
    0 3px 0 #082d66,
    0 10px 22px rgba(23, 105, 224, 0.24);
}

.price-card.featured .btn-primary {
  border-color: #efd228;
  color: #10120c;
  background: linear-gradient(155deg, #ffe34a 0%, #e8c623 58%, #b8960b 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.44),
    0 3px 0 #7f6808,
    0 10px 22px rgba(239, 210, 40, 0.18);
}

.archive-note {
  border-color: rgba(255, 255, 255, 0.095);
  background: #0a0e0f;
}

.signal-proof {
  display: grid;
  grid-template-columns: 1.08fr repeat(4, minmax(0, 1fr));
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
}

.signal-proof > div {
  min-height: 74px;
  padding: 12px;
  background: #0b0f10;
}

.signal-proof > div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.signal-proof span {
  display: block;
  margin-bottom: 6px;
  color: var(--faint);
  font: 600 9px var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.signal-proof b {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
}

.signal-proof-lead {
  background:
    radial-gradient(circle at 100% 0, rgba(239, 210, 40, 0.09), transparent 52%),
    #0d1110 !important;
}

.signal-proof-lead span,
.signal-proof-lead b {
  color: var(--signal);
}

.delivery-rail {
  border-left-color: rgba(255, 255, 255, 0.09);
}

.delivery-card,
.endpoint-card,
.use-card {
  border-color: rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.026), transparent 62%),
    #0c1011;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 8px 18px rgba(0, 0, 0, 0.16);
}

.delivery-card {
  position: relative;
  padding-left: 16px;
}

.delivery-card::before {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 0;
  width: 2px;
  border-radius: 999px;
  content: "";
  background: var(--signal);
  opacity: 0.72;
}

.context-shell,
.playground {
  border-color: rgba(255, 255, 255, 0.11);
  background: #0a0e0f;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 28px rgba(0, 0, 0, 0.2);
}

.context-result {
  background:
    radial-gradient(circle at 100% 0, rgba(239, 210, 40, 0.08), transparent 56%),
    linear-gradient(180deg, rgba(23, 105, 224, 0.06), transparent);
}

.endpoint-card:hover,
.delivery-card:hover {
  border-color: rgba(239, 210, 40, 0.28);
  transform: translateY(-1px);
}

@media (max-width: 1120px) {
  .signal-proof {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .signal-proof > div + div {
    border-left: 0;
  }

  .signal-proof > div:nth-child(even) {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
  }

  .signal-proof > div:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 860px) {
  main#api {
    width: min(100% - 24px, var(--api-page-width));
    padding-top: 14px;
  }

  main#api > .section {
    padding: 22px;
    border-radius: 15px;
  }

  .delivery-rail {
    padding-top: 24px;
    border-left: 0;
  }
}

@media (max-width: 560px) {
  .signal-proof {
    grid-template-columns: 1fr;
  }

  .signal-proof > div:nth-child(even) {
    border-left: 0;
  }

  .signal-proof > div + div {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
}
