/* ============================================
   Scraping API — Main Stylesheet
============================================ */

/* ---------- Reset & base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-base);
  font-feature-settings: 'ss01', 'cv11', 'kern';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
  color: inherit;
}

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

code, pre {
  font-family: var(--font-mono);
  font-feature-settings: 'calt' 0;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

p {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Tabular figures for numbers everywhere */
.tabular {
  font-variant-numeric: tabular-nums;
}

/* ---------- Layout primitives ---------- */
.container {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-narrow {
  max-width: var(--max-narrow);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section {
  padding: var(--space-32) 0;
}

.section-sm {
  padding: var(--space-20) 0;
}

@media (max-width: 768px) {
  .section {
    padding: var(--space-16) 0;
  }
  .section-sm {
    padding: var(--space-12) 0;
  }
  .container, .container-narrow {
    padding: 0 var(--space-5);
  }
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  flex-shrink: 0;
}

.eyebrow-number {
  color: var(--accent);
  font-weight: 600;
}

.display-xl {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.display-lg {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.display-md {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.display-sm {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.lead {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 42ch;
}

.body-secondary {
  color: var(--text-secondary);
}

.body-tertiary {
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

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

.inline-code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 2px 6px;
  background: var(--accent-softer);
  color: var(--accent);
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent-soft);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  padding: 13px 20px;
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease-out-quart);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 1px var(--accent), 0 1px 2px rgba(10,14,26,0.08), inset 0 1px 0 rgba(255,255,255,0.1);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 0 1px var(--accent-hover), 0 4px 12px -2px rgba(46,75,255,0.3);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  background: var(--accent-pressed);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  box-shadow: 0 0 0 1px var(--border-base), 0 1px 2px rgba(10,14,26,0.04);
}

.btn-secondary:hover {
  background: var(--bg-elevated);
  box-shadow: 0 0 0 1px var(--border-strong), 0 4px 12px -4px rgba(10,14,26,0.08);
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--text-primary);
  padding: 10px 14px;
}

.btn-ghost:hover {
  background: var(--bg-subtle);
}

.btn-arrow {
  display: inline-block;
  transition: transform var(--duration-fast) var(--ease-out-quart);
}

.btn:hover .btn-arrow {
  transform: translateX(2px);
}

.btn-sm {
  font-size: 13px;
  padding: 9px 14px;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(249, 249, 247, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  height: 64px;
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.nav-brand {
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.nav-brand-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--accent);
  margin: 0 6px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  font-size: 14px;
  color: var(--text-secondary);
}

.nav-links a {
  transition: color var(--duration-fast);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
  }
  .nav-inner {
    padding: 0 var(--space-5);
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: var(--space-24) 0 var(--space-32);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(10, 14, 26, 0.06) 1px, transparent 0);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse at center top, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center top, black 30%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: var(--max-hero);
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.hero-copy {
  max-width: 620px;
}

.hero-eyebrow {
  margin-bottom: var(--space-6);
}

.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.2vw, 4.25rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.038em;
  color: var(--text-primary);
  margin-bottom: var(--space-6);
}

.hero-h1 .hero-accent {
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
  font-family: var(--font-display);
}

.hero-sub {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 50ch;
  margin-bottom: var(--space-8);
}

.hero-ctas {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-10);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  font-size: 13px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.hero-meta-item::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px rgba(16, 166, 107, 0.5);
}

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-12);
    padding: 0 var(--space-5);
  }
  .hero {
    padding: var(--space-16) 0 var(--space-20);
  }
  .hero-copy {
    max-width: 100%;
  }
  .hero-sub {
    max-width: 100%;
  }
  .hero-h1 {
    font-size: clamp(2rem, 8.5vw, 3rem);
  }
  .hero-meta {
    flex-wrap: wrap;
    gap: var(--space-3) var(--space-4);
    font-size: 12px;
  }
  .hero-code {
    max-width: 100%;
    overflow-x: auto;
  }
  .code-frame {
    min-width: 0;
  }
  .code-block {
    font-size: 11px;
    line-height: 1.65;
  }
}

/* ---------- Code block (the signature element) ---------- */
.code-frame {
  position: relative;
  background: var(--bg-code);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-inverse);
  box-shadow: 0 40px 80px -20px rgba(10, 14, 26, 0.35), 0 8px 24px -8px rgba(10, 14, 26, 0.2), inset 0 1px 0 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.code-frame-header {
  display: flex;
  align-items: center;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-inverse);
  background: linear-gradient(to bottom, rgba(255,255,255,0.02), rgba(255,255,255,0));
}

.code-tabs {
  display: flex;
  gap: 0;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.code-tabs::-webkit-scrollbar { display: none; }

.code-tab {
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-inverse-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) var(--ease-out-quart);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.code-tab:hover {
  color: var(--text-inverse);
}

.code-tab[aria-selected="true"] {
  color: var(--text-inverse);
  background: rgba(124, 183, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(124, 183, 255, 0.2);
}

.code-tab-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.4;
}

.code-tab[aria-selected="true"] .code-tab-dot {
  background: var(--syntax-key);
  opacity: 1;
  box-shadow: 0 0 6px rgba(124, 183, 255, 0.6);
}

.code-frame-lights {
  display: flex;
  gap: 6px;
  margin-right: var(--space-3);
}

.code-frame-lights span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.05);
}

.code-body {
  display: none;
  padding: var(--space-5) var(--space-5) var(--space-6);
}

.code-body[data-active="true"] {
  display: block;
}

.code-block {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--syntax-text);
  margin: 0;
  white-space: pre;
  overflow-x: auto;
}

.code-block::-webkit-scrollbar {
  height: 6px;
}
.code-block::-webkit-scrollbar-track {
  background: transparent;
}
.code-block::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
}

/* Syntax token classes */
.t-comment  { color: var(--syntax-comment); font-style: italic; }
.t-key      { color: var(--syntax-key); }
.t-string   { color: var(--syntax-string); }
.t-number   { color: var(--syntax-number); }
.t-keyword  { color: var(--syntax-keyword); }
.t-punct    { color: var(--syntax-punct); }
.t-prompt   { color: var(--syntax-keyword); user-select: none; }
.t-flag     { color: var(--syntax-number); }
.t-url      { color: var(--syntax-string); }
.t-method   { color: var(--syntax-key); font-weight: 600; }
.t-fn       { color: var(--syntax-key); }

.code-response-divider {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-4) 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--syntax-comment);
}

.code-response-divider::before,
.code-response-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-inverse);
}

/* ---------- Trust strip ---------- */
.trust-strip {
  padding: var(--space-10) 0;
  border-top: 1px solid var(--border-base);
  border-bottom: 1px solid var(--border-base);
  background: var(--bg-elevated);
}

.trust-strip-inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-8);
  align-items: center;
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.trust-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.trust-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: lowercase;
  letter-spacing: 0.05em;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-base);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
}

.trust-badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--success);
}

@media (max-width: 900px) {
  .trust-strip-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }
}

/* ---------- Section headers ---------- */
.section-head {
  max-width: 720px;
  margin: 0 auto var(--space-16);
  text-align: center;
}

.section-head-left {
  max-width: 720px;
  margin-bottom: var(--space-12);
  text-align: left;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.028em;
  line-height: 1.1;
  margin-top: var(--space-4);
  margin-bottom: var(--space-4);
}

.section-head h2 em {
  color: var(--accent);
  font-style: italic;
}

.section-head p {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.section-head-center p {
  margin-left: auto;
  margin-right: auto;
  max-width: 580px;
}

/* ---------- Endpoint cards ---------- */
.endpoints-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.endpoint-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-base);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  transition: all var(--duration-base) var(--ease-out-quart);
  position: relative;
}

.endpoint-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.endpoint-card.endpoint-card-featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-softer), 0 20px 40px -16px rgba(46, 75, 255, 0.18);
}

.endpoint-card-featured::before {
  content: 'signature feature';
  position: absolute;
  top: -10px;
  left: var(--space-6);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.endpoint-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: lowercase;
  letter-spacing: 0.04em;
}

.endpoint-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.endpoint-route {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 10px 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-base);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.endpoint-route::-webkit-scrollbar { display: none; }

.endpoint-route-method {
  color: var(--accent);
  font-weight: 600;
}

.endpoint-desc {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.endpoint-fields {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.endpoint-fields li {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 8px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.endpoint-card-featured .endpoint-fields li {
  background: var(--accent-softer);
  color: var(--accent);
  border-color: var(--accent-soft);
}

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

/* ---------- Employment Check story ---------- */
.ec-story {
  background: var(--bg-navy);
  color: var(--text-inverse);
  padding: var(--space-32) 0;
  position: relative;
  overflow: hidden;
}

.ec-story::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 60% at 70% 40%, black, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 70% 40%, black, transparent 70%);
}

.ec-story-inner {
  position: relative;
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-20);
  align-items: center;
}

.ec-story .eyebrow {
  color: var(--text-inverse-secondary);
}

.ec-story h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-inverse);
  margin: var(--space-5) 0 var(--space-6);
}

.ec-story h2 em {
  color: var(--syntax-key);
  font-style: italic;
}

.ec-story p {
  color: var(--text-inverse-secondary);
  font-size: 1.0625rem;
  line-height: 1.65;
  margin-bottom: var(--space-4);
  max-width: 52ch;
}

.ec-story p strong {
  color: var(--text-inverse);
  font-weight: 500;
}

/* Comparison widget */
.ec-compare {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-inverse);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  backdrop-filter: blur(8px);
}

.ec-compare-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--border-inverse);
  margin-bottom: var(--space-5);
}

.ec-compare-head-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  color: var(--text-inverse-secondary);
}

.ec-compare-head-value {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--syntax-key);
  font-variant-numeric: tabular-nums;
}

.ec-compare-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-4);
  align-items: baseline;
  padding: var(--space-4) 0;
  border-bottom: 1px dashed var(--border-inverse);
}

.ec-compare-row:last-of-type {
  border-bottom: 0;
}

.ec-compare-label {
  font-size: 0.9375rem;
  color: var(--text-inverse-secondary);
  line-height: 1.4;
}

.ec-compare-label strong {
  color: var(--text-inverse);
  display: block;
  font-weight: 500;
  margin-bottom: 2px;
}

.ec-compare-value {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--text-inverse);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.ec-compare-value.expensive {
  color: var(--text-tertiary);
  text-decoration: line-through;
  text-decoration-color: rgba(255,255,255,0.2);
}

.ec-compare-value.cheap {
  color: var(--syntax-string);
}

.ec-savings {
  margin-top: var(--space-5);
  padding: var(--space-4) var(--space-5);
  background: rgba(134, 232, 194, 0.08);
  border: 1px solid rgba(134, 232, 194, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.ec-savings-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--syntax-string);
  text-transform: lowercase;
  letter-spacing: 0.04em;
}

.ec-savings-value {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--syntax-string);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
  .ec-story-inner {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
  .ec-story {
    padding: var(--space-20) 0;
  }
}

/* ---------- Why engineers grid ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--border-base);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-elevated);
}

.why-cell {
  padding: var(--space-10);
  border-right: 1px solid var(--border-base);
  border-bottom: 1px solid var(--border-base);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  position: relative;
  transition: background var(--duration-base) var(--ease-out-quart);
}

.why-cell:hover {
  background: var(--bg-subtle);
}

.why-cell:nth-child(2n) { border-right: 0; }
.why-cell:nth-last-child(-n+2) { border-bottom: 0; }

.why-cell-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.05em;
}

.why-cell-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-top: var(--space-2);
}

.why-cell-title em {
  color: var(--accent);
  font-style: italic;
}

.why-cell-desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

@media (max-width: 820px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
  .why-cell {
    border-right: 0 !important;
    border-bottom: 1px solid var(--border-base) !important;
    padding: var(--space-8);
  }
  .why-cell:last-child {
    border-bottom: 0 !important;
  }
}

/* ---------- Pricing ---------- */
.pricing-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  margin-bottom: var(--space-10);
  flex-wrap: wrap;
}

.pricing-tabs {
  display: inline-flex;
  padding: 4px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-base);
  border-radius: var(--radius-lg);
  gap: 2px;
}

.pricing-tab {
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  border-radius: 7px;
  transition: all var(--duration-fast) var(--ease-out-quart);
  white-space: nowrap;
}

.pricing-tab[aria-selected="true"] {
  background: var(--bg-elevated);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.pricing-panel {
  display: none;
}

.pricing-panel[data-active="true"] {
  display: block;
}

/* Calculator */
.calc {
  background: var(--bg-elevated);
  border: 1px solid var(--border-base);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  margin-bottom: var(--space-10);
  box-shadow: var(--shadow-sm);
}

.calc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}

.calc-head-labels {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.calc-head-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: lowercase;
  letter-spacing: 0.04em;
}

.calc-volume {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.calc-volume-unit {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-tertiary);
  font-weight: 400;
  letter-spacing: 0;
}

.calc-price-box {
  text-align: right;
}

.calc-tier {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--accent-softer);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: var(--space-2);
  border: 1px solid var(--accent-soft);
  letter-spacing: 0.02em;
}

.calc-price {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.calc-price-suffix {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-tertiary);
  letter-spacing: 0;
}

.calc-price-cpm {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: var(--space-1);
}

.calc-slider-wrap {
  position: relative;
  padding: var(--space-4) 0 0;
}

.calc-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: var(--border-base);
  border-radius: 100px;
  outline: none;
  margin: var(--space-2) 0;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  background: #fff;
  border: 2px solid var(--accent);
  border-radius: 50%;
  cursor: grab;
  box-shadow: 0 2px 8px rgba(46, 75, 255, 0.35);
  transition: transform var(--duration-fast) var(--ease-out-quart);
}

.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.calc-slider::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.2);
}

.calc-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: #fff;
  border: 2px solid var(--accent);
  border-radius: 50%;
  cursor: grab;
  box-shadow: 0 2px 8px rgba(46, 75, 255, 0.35);
}

.calc-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-3);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
}

/* Pricing table (unified) */
.pricing-table {
  background: var(--bg-elevated);
  border: 1px solid var(--border-base);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.pricing-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr auto;
  align-items: center;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border-base);
  gap: var(--space-6);
  transition: background var(--duration-fast);
}

.pricing-row:last-child {
  border-bottom: 0;
}

.pricing-row:hover {
  background: var(--bg-subtle);
}

.pricing-row.is-active {
  background: var(--accent-softer);
}

.pricing-row-head {
  background: var(--bg-subtle);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: lowercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  padding: var(--space-4) var(--space-6);
}
.pricing-row-head:hover { background: var(--bg-subtle); }

.pricing-tier-name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.pricing-tier-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
}

.pricing-row.is-active .pricing-tier-dot {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(46, 75, 255, 0.5);
}

.pricing-col {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.pricing-col-price {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 15px;
}

.pricing-col-cpm {
  color: var(--text-tertiary);
  font-size: 12px;
}

.pricing-cta {
  text-align: right;
}

@media (max-width: 820px) {
  .pricing-intro {
    flex-direction: column;
    align-items: flex-start;
  }
  .calc-head {
    flex-direction: column;
    gap: var(--space-4);
  }
  .calc-price-box {
    text-align: left;
  }
  .pricing-table {
    border-radius: var(--radius-lg);
  }
  .pricing-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "tier price"
      "volume cpm";
    gap: var(--space-1) var(--space-4);
    padding: var(--space-5) var(--space-5);
  }
  .pricing-row-head {
    display: none;
  }
  .pricing-row .pricing-tier-name {
    grid-area: tier;
  }
  .pricing-row .pricing-col:nth-of-type(2) {
    grid-area: volume;
    font-size: 12px;
    color: var(--text-tertiary);
  }
  .pricing-row .pricing-col:nth-of-type(3) {
    grid-area: price;
    text-align: right;
    font-size: 16px;
  }
  .pricing-row .pricing-col:nth-of-type(4) {
    grid-area: cpm;
    text-align: right;
    font-size: 11px;
  }
  .pricing-cta {
    display: none;
  }
}

/* EC pricing table — a secondary, pyramid-style visual */
.ec-pyramid {
  margin-top: var(--space-10);
  padding: var(--space-8);
  border: 1px solid var(--border-base);
  border-radius: var(--radius-xl);
  background: var(--bg-elevated);
}

.ec-pyramid-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.ec-pyramid-head h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.ec-pyramid-head h3::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.ec-pyramid-head p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  max-width: 44ch;
}

.ec-pyramid-table {
  display: grid;
  gap: 2px;
  margin-top: var(--space-4);
}

.ec-py-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  align-items: center;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  gap: var(--space-4);
  font-family: var(--font-mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.ec-py-row .ec-py-volume {
  color: var(--text-primary);
}

.ec-py-row .ec-py-cpm {
  color: var(--accent);
  font-weight: 500;
}

.ec-py-row .ec-py-note {
  color: var(--text-tertiary);
  font-size: 12px;
  text-align: right;
}

.ec-py-bar {
  height: 6px;
  border-radius: 100px;
  background: var(--accent);
  transition: width var(--duration-slow) var(--ease-out-expo);
}

@media (max-width: 820px) {
  .ec-py-row {
    grid-template-columns: 1fr auto;
    gap: var(--space-1) var(--space-3);
    padding: var(--space-3) var(--space-4);
  }
  .ec-py-row .ec-py-volume {
    font-size: 12px;
    color: var(--text-secondary);
  }
  .ec-py-row .ec-py-cpm {
    font-size: 14px;
    color: var(--accent);
    font-weight: 500;
  }
  .ec-py-row .ec-py-bar-wrap {
    display: none;
  }
  .ec-py-row .ec-py-note {
    grid-column: 1 / -1;
    text-align: left;
    font-size: 11px;
    color: var(--text-tertiary);
  }
}

/* ---------- Dev experience (SDK tabs) ---------- */
.dev-block {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-12);
  align-items: start;
}

.dev-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.028em;
  line-height: 1.1;
  margin: var(--space-4) 0 var(--space-5);
}

.dev-copy h2 em {
  color: var(--accent);
  font-style: italic;
}

.dev-copy p {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: var(--space-5);
  max-width: 44ch;
}

.dev-features {
  list-style: none;
  padding: 0;
  margin: var(--space-6) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.dev-features li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 14px;
  color: var(--text-secondary);
}

.dev-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 600;
  font-size: 12px;
  width: 20px;
  height: 20px;
  background: var(--accent-softer);
  border: 1px solid var(--accent-soft);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .dev-block {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: var(--max-narrow);
  margin: 0 auto;
  border-top: 1px solid var(--border-base);
}

.faq-item {
  border-bottom: 1px solid var(--border-base);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6) 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  transition: color var(--duration-fast);
  gap: var(--space-6);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--accent);
}

.faq-icon {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-base);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--duration-base) var(--ease-out-quart);
  position: relative;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  transition: transform var(--duration-base) var(--ease-out-quart);
}

.faq-icon::before {
  width: 10px;
  height: 1.5px;
}

.faq-icon::after {
  width: 1.5px;
  height: 10px;
}

.faq-item[open] .faq-icon {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.faq-item[open] .faq-icon::after {
  transform: rotate(90deg) scaleY(0);
}

.faq-answer {
  padding: 0 var(--space-12) var(--space-6) 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.faq-answer p + p {
  margin-top: var(--space-3);
}

.faq-answer a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* ---------- CTA band ---------- */
.cta-band {
  padding: var(--space-20) 0;
}

.cta-band-inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.cta-band-card {
  background: var(--bg-navy);
  color: var(--text-inverse);
  border-radius: var(--radius-2xl);
  padding: var(--space-16) var(--space-10);
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-inverse);
}

.cta-band-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.08) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at center, black, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black, transparent 70%);
}

.cta-band-card > * {
  position: relative;
}

.cta-band-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.028em;
  line-height: 1.1;
  color: var(--text-inverse);
  margin-bottom: var(--space-4);
}

.cta-band-card h2 em {
  color: var(--syntax-key);
  font-style: italic;
}

.cta-band-card p {
  font-size: 1.0625rem;
  color: var(--text-inverse-secondary);
  max-width: 52ch;
  margin: 0 auto var(--space-8);
}

.cta-band-card .btn-primary {
  background: #fff;
  color: var(--text-primary);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 8px 24px -8px rgba(0,0,0,0.4);
}

.cta-band-card .btn-primary:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.2), 0 12px 28px -8px rgba(0,0,0,0.5);
}

.cta-band-card .btn-secondary {
  background: transparent;
  color: var(--text-inverse);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.2);
}

.cta-band-card .btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.35);
}

/* ---------- Footer ---------- */
.footer {
  padding: var(--space-20) 0 var(--space-12);
  border-top: 1px solid var(--border-base);
  background: var(--bg-base);
}

.footer-grid {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

.footer-brand-block p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  max-width: 32ch;
  margin-top: var(--space-4);
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: lowercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  margin-bottom: var(--space-4);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-col a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--duration-fast);
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: var(--space-6) var(--space-6) 0;
  border-top: 1px solid var(--border-base);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-6);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
  flex-wrap: wrap;
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.footer-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px rgba(16, 166, 107, 0.5);
}

@media (max-width: 820px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
  .footer-brand-block {
    grid-column: 1 / -1;
  }
}

/* ---------- Motion: reveal on load ---------- */
@keyframes fade-up {
  0% { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  animation: fade-up 800ms var(--ease-out-expo) forwards;
}

.reveal-1 { animation-delay: 50ms; }
.reveal-2 { animation-delay: 150ms; }
.reveal-3 { animation-delay: 250ms; }
.reveal-4 { animation-delay: 350ms; }
.reveal-5 { animation-delay: 450ms; }
.reveal-6 { animation-delay: 550ms; }

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

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