/* ============================================================
   DemandSphere Design System
   ============================================================ */

/* ── Accessibility ──────────────────────────────────────── */
.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}

/* ── Fonts ───────────────────────────────────────────────── */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin-italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/dm-sans-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ── Variables ────────────────────────────────────────────── */
:root {
  --bg:         #0c0f14;
  --surface:    #131820;
  --overlay:    #1a2130;
  --border:     #252d38;
  --border-hi:  #3c4046;
  --text:       #e2e8f0;
  --muted:      #8b9bb0;
  --faint:      #2a3340;
  --slate:      #94a3b8;

  --blue:       #3b82f6;
  --blue-lt:    #60a5fa;
  --violet:     #7c3aed;
  --vlt:        #a78bfa;
  --emerald:    #10b981;
  --emerald-lt: #34d399;
  --amber:      #f59e0b;
  --amber-lt:   #fbbf24;
  --red:        #ef4444;
  --orange:     #ea580c;
  --orange-lt:  #fb923c;
  --cyan:       #06b6d4;
  --cyan-lt:    #22d3ee;

  --nav-h: 52px;
  --wrap:  1080px;
  --rad:   10px;
  --rad-lg:12px;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }

/* ── Typography helpers ───────────────────────────────────── */
.h-xl {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #fff;
}
.h-lg {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #fff;
}
.h-md {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  display: block;
}
.mono { font-family: 'JetBrains Mono', monospace; }

/* ── Layout ───────────────────────────────────────────────── */
.wide-layout { --wrap: 1400px; }
.wrap       { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.section    { padding: 60px 0; }
.section-sm { padding: 36px 0; }
hr.rule     { border: none; border-top: 1px solid var(--border); margin: 38px 0 10px 0; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  padding: 9px 20px;
  border-radius: 7px;
  cursor: pointer;
  transition: all .15s;
  border: none;
  font-family: 'Inter', sans-serif;
}
.btn-lg { font-size: 14px; padding: 12px 28px; }
.btn-sm { font-size: 12px; padding: 7px 16px; }

.btn-violet { background: var(--violet); color: #fff; }
.btn-violet:hover { background: #6d28d9; transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--slate);
  border: 1px solid var(--border-hi);
}
.btn-ghost:hover { border-color: var(--vlt); color: var(--text); }

.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: #2563eb; transform: translateY(-1px); }

.btn-emerald { background: var(--emerald); color: #fff; }
.btn-emerald:hover { background: #059669; transform: translateY(-1px); }
.btn-amber { background: var(--amber); color: #000; }
.btn-amber:hover { background: #d97706; transform: translateY(-1px); }
.btn-slate { background: var(--slate); color: #000; }
.btn-slate:hover { background: #78909c; transform: translateY(-1px); }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: #c2410c; transform: translateY(-1px); }
.btn-cyan { background: var(--cyan); color: #fff; }
.btn-cyan:hover { background: #0891b2; transform: translateY(-1px); }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--rad);
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--border-hi); }
.card-violet:hover { border-color: var(--violet); }
.card-blue:hover   { border-color: var(--blue); }
.card-emerald:hover{ border-color: var(--emerald); }

/* ── Tags / badges ───────────────────────────────────────── */
.tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}
.tag-violet  { background: rgba(124,58,237,.15);  color: var(--vlt); }
.tag-blue    { background: rgba(59,130,246,.12);  color: var(--blue-lt); }
.tag-emerald { background: rgba(16,185,129,.12);  color: var(--emerald-lt); }
.tag-amber   { background: rgba(245,158,11,.12);  color: var(--amber-lt); }
.tag-slate   { background: rgba(100,116,139,.1);  color: var(--slate); }
.tag-orange  { background: rgba(234,88,12,.12);   color: var(--orange-lt); }
.tag-cyan    { background: rgba(6,182,212,.12);    color: var(--cyan-lt); }

/* ── Pillar grid ─────────────────────────────────────────── */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  border: 1px solid var(--border);
  border-radius: var(--rad);
  overflow: hidden;
}
.pillar {
  padding: 28px 24px 22px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  transition: background .18s;
  display: block;
  color: inherit;
}
.pillar:last-child { border-right: none; }
.pillar:hover { background: var(--overlay); }
.pillar-bar { width: 26px; height: 2px; border-radius: 2px; margin-bottom: 18px; }
.pillar h4 { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.pillar p  { font-size: 12px; color: var(--muted); line-height: 1.5; margin-bottom: 14px; }
.pillar-link { font-size: 11px; font-family: 'JetBrains Mono', monospace; }

/* ── Feature grid (3-col) ────────────────────────────────── */
.feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.feat-card { background: var(--surface); border: 1px solid var(--border-hi); border-radius: 10px; padding: 28px; transition: border-color .15s; }
.feat-card:hover { border-color: var(--vlt); }
.feat-card .tag { margin-bottom: 14px; }
.feat-card h4 { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.feat-card p  { font-size: 13px; color: var(--muted); line-height: 1.65; }
.feat-items { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.feat-item {
  font-size: 12px; color: var(--muted);
  display: flex; align-items: flex-start; gap: 8px;
}
.feat-item::before {
  content: '';
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--border-hi); flex-shrink: 0; margin-top: 6px;
}

/* ── Ledger (product table) ──────────────────────────────── */
.ledger-row {
  display: grid;
  grid-template-columns: 220px 1fr 60px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
  transition: all .12s;
  color: inherit;
}
.ledger-row:first-of-type { border-top: 1px solid var(--border); }
.ledger-row:hover .ledger-name { color: var(--vlt); }
.ledger-row:hover .ledger-arrow { opacity: 1; }
.ledger-name  { font-size: 14px; font-weight: 500; color: var(--text); transition: color .12s; }
.ledger-desc  { font-size: 12px; color: var(--muted); padding-right: 32px; }
.ledger-arrow { font-size: 12px; color: var(--muted); text-align: right; opacity: 0; font-family: 'JetBrains Mono', monospace; transition: opacity .12s; }

/* ── Pricing grid ────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--rad-lg);
  overflow: hidden;
}
.pricing-col { background: var(--surface); padding: 28px 24px; }
.pricing-col.featured { background: var(--overlay); }
.pricing-tier { font-family: 'JetBrains Mono', monospace; font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 14px; display: block; }
.pricing-amount { font-size: 1.9rem; font-weight: 700; color: var(--text); letter-spacing: -0.03em; margin-bottom: 4px; }
.pricing-amount span { font-size: 12px; font-weight: 400; color: var(--muted); }
.pricing-desc { font-size: 12px; color: var(--muted); margin-bottom: 20px; line-height: 1.5; }
.pricing-items { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.pricing-item { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.pricing-item::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--border-hi); flex-shrink: 0; }

/* ── Three-col experience grid ───────────────────────────── */
.exp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--rad);
  overflow: hidden;
  margin-top: 48px;
}
.exp-cell { background: var(--surface); padding: 40px 32px; }
.exp-num  { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--border-hi); margin-bottom: 20px; display: block; }
.exp-cell h3 { font-size: 18px; font-weight: 600; color: var(--text); letter-spacing: -0.02em; margin-bottom: 12px; }
.exp-cell p  { font-size: 13px; color: var(--muted); line-height: 1.7; }

/* ── Tools grid ──────────────────────────────────────────── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--rad);
  overflow: hidden;
}
.tool-cell { background: var(--surface); padding: 20px; transition: background .15s; }
.tool-cell:hover { background: var(--overlay); }
.tool-name { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.tool-desc { font-size: 12px; color: var(--muted); line-height: 1.5; margin-bottom: 14px; }
.tool-link { font-size: 11px; font-family: 'JetBrains Mono', monospace; color: var(--muted); transition: color .15s; }
.tool-cell:hover .tool-link { color: var(--vlt); }

/* ── FOUND Conference cards ──────────────────────────────── */
.found-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
  margin-top: 36px;
}
.found-card { background: var(--surface); border: 1px solid var(--border-hi); border-radius: 10px; padding: 24px; transition: border-color .15s; }
.found-card:hover { border-color: var(--border-hi); }
.found-date { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px; display: block; }
.found-card h4 { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.found-card p  { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* ── CTA band ────────────────────────────────────────────── */
.cta-band {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--rad);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h3 { font-size: 1.1rem; font-weight: 600; color: var(--text); letter-spacing: -0.01em; margin-bottom: 4px; }
.cta-band p  { font-size: 13px; color: var(--muted); }
.cta-btns   { display: flex; gap: 10px; flex-shrink: 0; justify-content: center; flex-wrap: wrap; }

/* ── Quote block ─────────────────────────────────────────── */
.quote-block { padding-left: 24px; }
.quote-block p { font-size: 1.1rem; font-weight: 300; font-style: italic; color: var(--slate); line-height: 1.65; }

/* ── Stat/number display ─────────────────────────────────── */
.stat-num { font-size: 2.8rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }

/* ── LLM logo strip ──────────────────────────────────────── */
.llm-logos { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.llm-logo  { height: 32px; width: auto; opacity: 0.6; filter: grayscale(1); transition: opacity .15s, filter .15s; }
.llm-logo:hover { opacity: 1; filter: none; }

/* ── Marketecture SVG wrapper ────────────────────────────── */
.marketecture { display: block; width: 100%; }

/* ── Product hero (feature pages) ───────────────────────── */
.product-hero {
  padding: 56px 32px 40px;
  max-width: var(--wrap);
  margin: 0 auto;
  text-align: center;
}
.product-hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.product-hero h1 { margin-bottom: 14px; max-width: 680px; margin-left: auto; margin-right: auto; }
.product-hero .subtitle {
  font-size: 15px;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.65;
  margin: 0 auto 28px;
}
.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 32px;
  margin-bottom: 16px;
}
.stat-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--rad); padding: 14px 16px; }
.stat-value { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 11px; color: var(--muted); }

/* ── Page section helpers ────────────────────────────────── */
.section-label { margin-bottom: 16px; }
.section-header { margin-bottom: 48px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p  { font-size: 14px; color: var(--muted); max-width: 480px; line-height: 1.65; }

/* ── Two-column grid ─────────────────────────────────────── */
.two-col   { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.three-col { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }

/* ── Enterprise flow vizzes (stack on mobile) ─────────────── */
.ent-flow5 { display: grid; grid-template-columns: 1fr auto 1.2fr auto 1fr; gap: 16px; align-items: center; }
.ent-flow3 { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 20px; }
@media (max-width: 768px) {
  .ent-flow5, .ent-flow3 { grid-template-columns: 1fr; }
  .ent-flow5 .ent-arrow { display: none; }
}

/* ── Comparison table ────────────────────────────────────── */
.comp-table { border-collapse: collapse; width: 100%; }
.comp-table th {
  padding: 14px 16px; text-align: left;
  font-size: 11px; font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted); border-bottom: 1px solid var(--border);
}
.comp-table td { padding: 12px 16px; font-size: 13px; border-bottom: 1px solid var(--border); color: var(--muted); }
.comp-table tr:last-child td { border-bottom: none; }
.comp-table .ds-row td { background: rgba(124,58,237,.06); }
.comp-table td:first-child { color: var(--text); font-weight: 500; }
.check   { color: var(--emerald-lt); }
.partial { color: var(--amber-lt); }
.cross   { color: var(--muted); }

/* ── Accordion (FAQ) ─────────────────────────────────────── */
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-item:first-child { border-top: 1px solid var(--border); }
.accordion-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; background: none; border: none; cursor: pointer;
  font-size: 14px; font-weight: 500; color: var(--text); text-align: left;
  transition: color .15s;
}
.accordion-trigger:hover { color: var(--vlt); }
.accordion-trigger svg { flex-shrink: 0; transition: transform .2s; }
.accordion-item.open .accordion-trigger svg { transform: rotate(180deg); }
.accordion-body { display: none; padding: 0 0 20px; font-size: 13px; color: var(--muted); line-height: 1.7; max-width: 680px; }
.accordion-item.open .accordion-body { display: block; }
.accordion-body a { color: var(--vlt); text-decoration: underline; text-decoration-color: rgba(167,139,250,.4); text-underline-offset: 2px; }
.accordion-body a:hover { text-decoration-color: var(--vlt); }

/* ════════════════════════════════════
   HELLO BAR
════════════════════════════════════ */
.hellobar {
  background: #1e1535;
  border-bottom: 1px solid #2d2045;
  color: #c4b5fd;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  position: relative;
  z-index: 201;
}
.hellobar-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 8px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.hellobar-text { color: #c4b5fd; }
.hellobar-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: #e9d5ff;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.hellobar-link:hover { opacity: .85; }
.hellobar-cta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  background: var(--violet);
  padding: 4px 12px;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s;
}
.hellobar-cta:hover { background: #6d28d9; }

@media (max-width: 600px) {
  .hellobar-inner { padding: 8px 12px; gap: 6px; font-size: 12px; }
  .hellobar-link { font-size: 10px; }
  .hellobar-cta { font-size: 9px; padding: 3px 10px; }
}

/* ════════════════════════════════════
   NAV
════════════════════════════════════ */
.ds-nav {
  position: sticky; top: 0; z-index: 200;
  height: var(--nav-h);
  background: rgba(12,15,20,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 32px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
  position: relative;
}
.nav-left  { display: flex; align-items: center; gap: 36px; }
.nav-logo img { height: 26px; display: block; }
.nav-links { display: flex; align-items: center; gap: 4px; }

.nav-btn, .nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; color: var(--muted);
  padding: 6px 10px; border-radius: 6px;
  background: none; border: none; cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.nav-btn:hover, .nav-link:hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav-btn svg { transition: transform .15s; color: var(--muted); }
.nav-item.open .nav-btn svg { transform: rotate(180deg); }
.nav-item.open .nav-btn { color: var(--text); background: rgba(255,255,255,.04); }
.nav-link.active { color: var(--text); }

.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-search-btn { display: flex; align-items: center; color: var(--muted); padding: 6px; transition: color .15s; }
.nav-search-btn:hover { color: var(--text); }
.nav-signin { font-size: 13px; color: var(--muted); transition: color .15s; padding: 6px 4px; }
.nav-signin:hover { color: var(--text); }

.nav-btn-ghost {
  font-size: 12px; font-weight: 500; padding: 7px 14px; border-radius: 6px;
  border: 1px solid var(--border-hi); color: var(--slate);
  background: none; cursor: pointer; font-family: 'Inter', sans-serif;
  transition: all .15s;
}
.nav-btn-ghost:hover { border-color: var(--vlt); color: var(--text); }

.nav-btn-violet {
  font-size: 12px; font-weight: 500; padding: 7px 14px; border-radius: 6px;
  background: var(--violet); color: #fff; border: none; cursor: pointer;
  font-family: 'Inter', sans-serif; transition: background .15s, transform .15s;
}
.nav-btn-violet:hover { background: #6d28d9; transform: translateY(-1px); }

.mobile-toggle {
  display: none; background: none; border: none; cursor: pointer;
  color: var(--muted); padding: 4px;
}

/* ── Dropdown shell ── */
.nav-item { position: relative; }
.nav-drop {
  position: absolute; top: calc(100% + 8px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--rad);
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  opacity: 0; pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 120ms ease, transform 120ms ease;
  z-index: 300;
}
.nav-drop.visible { opacity: 1; pointer-events: all; transform: translateY(0); }

/* Platform mega */
.drop-platform { left: 0; width: 840px; display: flex; overflow: hidden; }
.plat-left {
  width: 256px; flex-shrink: 0;
  background: var(--overlay); border-right: 1px solid var(--border);
  padding: 16px 12px; display: flex; flex-direction: column;
}
.plat-section-label {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--border-hi); padding: 6px 10px 8px;
}
.plat-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 10px; border-radius: 7px;
  font-size: 13px; color: var(--muted);
  cursor: pointer; transition: all .12s;
  border: 1px solid transparent;
}
.plat-item:hover, .plat-item.active {
  color: var(--text); background: var(--surface); border-color: var(--border);
}
.plat-item.active { color: var(--vlt); }
.plat-item svg { flex-shrink: 0; opacity: .4; }
.plat-item.active svg, .plat-item:hover svg { opacity: 1; }
.plat-cta { margin-top: auto; padding: 14px 10px 6px; border-top: 1px solid var(--border); }
.plat-cta p { font-size: 11px; color: var(--muted); line-height: 1.5; margin-bottom: 10px; }
.plat-cta a {
  display: block; text-align: center; font-size: 12px; font-weight: 500;
  padding: 8px; border-radius: 6px; background: var(--violet); color: #fff;
  transition: background .15s;
}
.plat-cta a:hover { background: #6d28d9; }
.plat-cta a.plat-cta-trial { margin-top: 8px; padding: 7px; background: none; border: 1px solid var(--border-hi); color: var(--text); }
.plat-cta a.plat-cta-trial:hover { background: none; border-color: var(--vlt); }
.plat-right { flex: 1; padding: 20px 24px; overflow: hidden; }
.plat-panel { display: none; }
.plat-panel.active { display: block; }
.plat-panel-title {
  font-size: 12px; font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted); margin-bottom: 14px;
}
.plat-features { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.plat-feat {
  display: flex; align-items: center;
  padding: 8px 10px; border-radius: 6px;
  font-size: 13px; color: var(--muted);
  transition: all .12s;
}
.plat-feat:hover { color: var(--text); background: var(--overlay); }
.plat-feat::before {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: var(--border-hi); flex-shrink: 0; margin-right: 8px;
  transition: background .12s;
}
.plat-feat:hover::before { background: var(--vlt); }

/* Solutions mega */
.drop-solutions {
  left: -60px; width: 860px;
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  overflow: hidden;
}
.sol-col { padding: 20px 20px 16px; border-right: 1px solid var(--border); }
.sol-col:last-child { border-right: none; }
.sol-col-label {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--border-hi); margin-bottom: 10px; padding-left: 2px;
}
.sol-item {
  display: block; padding: 7px 10px; border-radius: 6px;
  font-size: 13px; color: var(--muted); transition: all .12s;
}
.sol-item:hover { color: var(--text); background: var(--overlay); }
.sol-item.featured { color: var(--vlt); font-weight: 500; }
.sol-item.featured:hover { background: rgba(124,58,237,.1); }
.sol-cta { margin-top: 14px; padding: 14px 10px 0; border-top: 1px solid var(--border); }
.sol-cta p { font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.sol-cta a {
  font-size: 12px; font-weight: 500; color: var(--vlt);
  padding: 7px 10px; border-radius: 6px;
  border: 1px solid rgba(124,58,237,.3); display: inline-block;
  transition: all .12s;
}
.sol-cta a:hover { background: rgba(124,58,237,.1); }
.sol-cta a + a { margin-top: 6px; }

/* Tools dropdown */
.drop-tools { left: 0; width: 240px; padding: 10px; }
.drop-resources { left: -100px; width: 680px; display: flex; padding: 0; }
.tool-drop-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 10px; border-radius: 7px;
  font-size: 13px; color: var(--muted); transition: all .12s;
}
.tool-drop-item:hover { color: var(--text); background: var(--overlay); }

/* ── Mobile menu ── */
.mobile-menu {
  display: none;
  position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: var(--bg); overflow-y: auto;
  border-top: 1px solid var(--border); z-index: 199;
}
.mobile-menu.open { display: block; }
.mob-section {}
.mob-toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 16px 24px;
  background: none; border: none; border-bottom: 1px solid var(--border);
  color: var(--text); font-size: 15px; font-weight: 500;
  font-family: 'Inter', sans-serif; cursor: pointer;
}
.mob-toggle svg { transition: transform .2s; color: var(--muted); flex-shrink: 0; }
.mob-section.open .mob-toggle svg { transform: rotate(180deg); }
.mob-link {
  display: block; padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 15px; font-weight: 500; color: var(--text);
}
.mob-content { display: none; background: var(--surface); border-bottom: 1px solid var(--border); }
.mob-section.open .mob-content { display: block; }
.mob-group { padding: 16px 24px; border-bottom: 1px solid var(--border); }
.mob-group:last-child { border-bottom: none; }
.mob-group-label {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--border-hi); margin-bottom: 10px;
}
.mob-item { display: block; padding: 7px 0; font-size: 13px; color: var(--muted); transition: color .12s; }
.mob-item:hover { color: var(--text); }
.mob-item.featured { color: var(--vlt); font-weight: 500; }
.mob-actions { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.mob-actions .nav-btn-ghost,
.mob-actions .nav-btn-violet { width: 100%; text-align: center; padding: 12px; font-size: 14px; border-radius: 7px; }
.mob-actions .nav-signin { display: block; text-align: center; padding: 8px; }

/* ════════════════════════════════════
   FOOTER
════════════════════════════════════ */
.ds-footer { border-top: 1px solid var(--border); padding: 48px 0 36px; background: var(--bg); }
.footer-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 32px; margin-bottom: 40px;
}
.footer-brand p { font-size: 12px; color: var(--muted); line-height: 1.7; margin-top: 14px; }
.footer-col-label {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--border-hi); margin-bottom: 14px; display: block;
}
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: 12px; color: var(--muted); transition: color .15s; }
.footer-links a:hover { color: var(--slate); }
.footer-bottom {
  max-width: var(--wrap); margin: 0 auto; padding: 24px 32px 0;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom span { font-size: 11px; font-family: 'JetBrains Mono', monospace; color: var(--border-hi); }
.footer-bottom-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-bottom-links a { font-size: 11px; color: var(--muted); transition: color .15s; }
.footer-bottom-links a:hover { color: var(--slate); }

/* ════════════════════════════════════
   RESPONSIVE
════════════════════════════════════ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-right  { display: none; }
  .mobile-toggle { display: flex; }

  .pillar-grid  { grid-template-columns: 1fr 1fr; }
  .feat-grid    { grid-template-columns: 1fr; }
  .exp-grid     { grid-template-columns: 1fr; }
  .tools-grid   { grid-template-columns: 1fr 1fr; }
  .found-grid   { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .two-col      { grid-template-columns: 1fr; gap: 40px; }
  .three-col    { grid-template-columns: 1fr; }
  .ledger-row   { grid-template-columns: 1fr; gap: 4px; }
  .ledger-arrow { display: none; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .wrap { padding: 0 20px; }
  .product-hero { padding: 40px 20px 32px; }
}

@media (max-width: 600px) {
  .pillar-grid { grid-template-columns: 1fr; }
  .tools-grid  { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .cta-btns { width: 100%; }
  .cta-btns .btn { flex: 1; text-align: center; }
  .llm-logo { height: 24px; }
  .hub-stats { gap: 16px; }
}

/* ── Demo-or-trial CTA (product layout bottom section) ── */
.cta-choice { padding: 96px 32px; text-align: center; }
.cta-choice .label { display: block; margin-bottom: 16px; }
.cta-choice-title { max-width: 720px; margin: 0 auto 12px; }
.cta-choice-sub { font-size: 14px; color: var(--muted); line-height: 1.65; max-width: 480px; margin: 0 auto 32px; }
.cta-choice-btns { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; }
.cta-or { font-size: 13px; color: var(--muted); }
.cta-choice-note { margin-top: 16px; font-size: 12px; color: var(--muted); }
@media (max-width: 600px) {
  .cta-choice { padding: 72px 20px; }
  .cta-choice-btns { flex-direction: column; gap: 8px; }
  .cta-choice-btns .btn { width: 100%; max-width: 280px; text-align: center; }
}

/* ── End-of-post CTA card (blog posts) ── */
.post-cta { padding: 24px 20px; margin-top: 40px; text-align: center; }
.post-content .post-cta-title { font-size: 16px; font-weight: 600; color: var(--text); margin: 0 0 6px; text-wrap: balance; }
.post-content .post-cta-sub { font-size: 14px; color: var(--muted); margin: 0 0 18px; text-wrap: balance; }
.post-cta-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.post-content .post-cta a.btn { text-decoration: none; }
.post-content .post-cta a.btn-violet { color: #fff; }
.post-content .post-cta a.btn-ghost { color: var(--text); }

/* ── Dashboard mockup (homepage) ──────────────────── */
.screen-frame { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.screen-chrome { padding: 10px 14px; background: var(--overlay); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 6px; }
.kpi-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 16px; }
.kpi { background: var(--overlay); border-radius: 7px; padding: 12px 14px; border: 1px solid var(--border); }
.kpi-label { font-size: 10px; color: var(--muted); margin-bottom: 4px; font-family: 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: 0.06em; }
.kpi-val { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.kpi-delta { font-size: 10px; margin-top: 2px; font-family: 'JetBrains Mono', monospace; }
.chart-area { background: var(--overlay); border-radius: 7px; border: 1px solid var(--border); padding: 14px; margin-bottom: 14px; }
.mention-list { display: flex; flex-direction: column; gap: 6px; }
.mention-row { display: flex; align-items: center; padding: 7px 10px; background: var(--overlay); border-radius: 6px; border: 1px solid var(--border); gap: 12px; }
.mention-name { font-size: 11px; color: var(--text); font-family: 'JetBrains Mono', monospace; width: 72px; flex-shrink: 0; }
.mention-bar-wrap { flex: 1; height: 3px; background: var(--border); border-radius: 2px; }
.mention-bar { height: 100%; border-radius: 2px; }
.mention-pct { font-size: 10px; font-family: 'JetBrains Mono', monospace; color: var(--muted); width: 28px; text-align: right; }

/* ── Trusted-by grid (homepage) ────────────────────── */
.trusted-grid { display: grid; grid-template-columns: repeat(8, 1fr); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.trusted-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 0; justify-items: center; align-items: center; padding: 0; }
.trusted-item { display: flex; align-items: center; justify-content: center; height: 40px; }
.trusted-item span { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: var(--border-hi); white-space: nowrap; }
.trusted-logo { height: 30px; width: auto; max-width: 200px; opacity: .7; transition: opacity .2s; }
.trusted-logo:hover { opacity: .9; }

@media (max-width: 900px) {
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .trusted-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 600px) {
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .trusted-grid { grid-template-columns: repeat(2, 1fr); }
  .trusted-strip { grid-template-columns: repeat(2, 1fr); gap: 28px 0; }
  .trusted-logo { max-width: 130px; height: 24px; }
  .trusted-item { height: 32px; }
}

/* ── Mockup chrome dots ── */
.chrome-dot { display: block; width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* ── KPI delta colors ── */
.up { color: #10b981; }
.dn { color: #ef4444; }

/* ════════════════════════════════════
   PRICING PAGE
════════════════════════════════════ */

/* ── Free tools strip ── */
.free-strip {
  display: grid; grid-template-columns: 1fr 2fr; gap: 56px; align-items: center;
}
.free-strip-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.free-tool { background: var(--surface); border: 1px solid var(--border); border-radius: var(--rad); padding: 22px 20px; transition: border-color .15s; }
.free-tool:hover { border-color: var(--emerald); }
.free-tool-icon {
  width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  background: rgba(16,185,129,.12); margin-bottom: 14px;
}
.free-tool-icon svg { width: 20px; height: 20px; color: var(--emerald-lt); }
.free-tool h4 { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.free-tool p  { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* ── Product pricing cards (3-col) ── */
.prod-pricing-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.prod-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--rad-lg); overflow: hidden; position: relative; transition: border-color .15s; display: flex; flex-direction: column; }
.prod-card:hover { border-color: var(--border-hi); }
.prod-card.featured { border-color: var(--violet); }
.best-badge {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  background: var(--violet); color: #fff; font-size: 10px; font-weight: 600;
  padding: 5px 14px; border-radius: 0 0 8px 8px; z-index: 1;
  font-family: 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: .08em;
}
.prod-card.featured .prod-card-head { padding-top: 42px; }
.prod-card-head {
  display: flex; align-items: center; gap: 14px; padding: 22px 24px;
  border-bottom: 1px solid var(--border);
}
.prod-card-head.blue    { background: rgba(59,130,246,.08); }
.prod-card-head.violet  { background: rgba(124,58,237,.08); }
.prod-card-head.hybrid  { background: linear-gradient(135deg, rgba(59,130,246,.08), rgba(124,58,237,.08)); }
.prod-icon {
  width: 42px; height: 42px; border-radius: 10px; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.prod-icon.blue   { background: rgba(59,130,246,.15); }
.prod-icon.violet { background: rgba(124,58,237,.15); }
.prod-icon.hybrid { background: rgba(124,58,237,.15); }
.prod-icon svg { width: 22px; height: 22px; }
.prod-card-head h3 { font-size: 15px; font-weight: 600; color: var(--text); }
.prod-card-head p  { font-size: 12px; color: var(--muted); margin-top: 2px; }
.prod-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.prod-card-body .check-list { flex: 1; margin-bottom: 20px; }
.prod-card-body > .btn, .prod-card-body > a.btn { margin-top: auto; }
.prod-card-desc { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 20px; min-height: 3.2em; }

.starts-box {
  background: var(--overlay); border: 1px solid var(--border); border-radius: var(--rad);
  padding: 18px; text-align: center; margin-bottom: 20px;
}
.starts-box .label { margin-bottom: 6px; }
.starts-amount { font-size: 1.7rem; font-weight: 700; color: #fff; letter-spacing: -0.03em; }
.starts-amount .cur { font-size: 1rem; color: var(--vlt); vertical-align: top; margin-right: 2px; }
.starts-amount .per { font-size: 13px; font-weight: 400; color: var(--muted); }
.starts-note { font-size: 11px; color: var(--muted); margin-top: 4px; }

.tier-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.tier-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 14px; background: var(--overlay); border-radius: 8px;
  border: 1px solid var(--border);
}
.tier-name { font-size: 13px; font-weight: 600; color: var(--text); }
.tier-detail { font-size: 11px; color: var(--muted); margin-top: 2px; }
.tier-price { font-size: 15px; font-weight: 700; color: var(--vlt); white-space: nowrap; }
.tier-price span { font-size: 11px; font-weight: 400; color: var(--muted); }

/* ── Add-on products (2-col) ── */
.addon-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.addon-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--rad-lg); padding: 28px 24px; }
.addon-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.addon-icon {
  width: 44px; height: 44px; border-radius: 10px; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.addon-icon.amber   { background: rgba(245,158,11,.12); }
.addon-icon.emerald { background: rgba(16,185,129,.12); }
.addon-icon svg { width: 22px; height: 22px; }
.addon-head h3 { font-size: 15px; font-weight: 600; color: var(--text); }
.addon-head p  { font-size: 12px; color: var(--muted); margin-top: 2px; }
.addon-desc { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 20px; }
.addon-detail {
  background: var(--overlay); border-radius: var(--rad); padding: 18px; margin-bottom: 18px;
  border: 1px solid var(--border);
}
.addon-detail-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.addon-detail-text  { font-size: 12px; color: var(--muted); line-height: 1.5; }
.addon-price { font-size: 1.3rem; font-weight: 700; color: var(--vlt); margin-top: 10px; }

.storage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.storage-cell {
  background: var(--overlay); border: 1px solid var(--border);
  border-radius: 8px; padding: 14px; text-align: center;
}
.storage-cell .tier-name { font-size: 12px; margin-bottom: 4px; }
.storage-val { font-size: 1.1rem; font-weight: 700; color: var(--amber); }
.storage-unit { font-size: 11px; color: var(--muted); }
.storage-desc { font-size: 10px; color: var(--muted); margin-top: 6px; }

.check-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.check-list li { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.check-list li::before {
  content: '\2713'; width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  font-size: 11px; display: flex; align-items: center; justify-content: center;
  background: rgba(16,185,129,.15); color: var(--emerald-lt);
}

/* ── Feature comparison tabs ── */
.plan-tabs {
  display: flex; gap: 6px; width: fit-content; margin: 0 auto 36px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 5px;
}
.plan-tab {
  padding: 10px 22px; border: none; background: transparent; color: var(--muted);
  font-size: 13px; font-weight: 500; border-radius: 7px; cursor: pointer;
  transition: all .15s; font-family: 'Inter', sans-serif;
}
.plan-tab.active { background: var(--violet); color: #fff; }
.plan-tab:hover:not(.active) { color: var(--text); }

/* ── Feature comparison grid ── */
.feat-compare { border: 1px solid var(--border); border-radius: var(--rad-lg); overflow: hidden; display: none; }
.feat-compare.active { display: block; }
.fc-header {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  background: var(--overlay); border-bottom: 1px solid var(--border);
}
.fc-header-cell {
  padding: 18px 16px; font-size: 13px; font-weight: 600; color: var(--text); text-align: center;
}
.fc-header-cell:first-child { text-align: left; color: var(--muted); }
.fc-header-cell.feat-col { background: rgba(124,58,237,.08); }
.fc-header-price { font-size: 11px; font-weight: 400; color: var(--vlt); display: block; margin-top: 2px; }

.fc-cat {
  padding: 12px 16px; font-size: 11px; font-weight: 600; color: var(--vlt);
  background: rgba(124,58,237,.04); border-bottom: 1px solid var(--border);
  text-transform: uppercase; letter-spacing: .06em;
  font-family: 'JetBrains Mono', monospace;
}
.fc-row {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  border-bottom: 1px solid var(--border); transition: background .1s;
}
.fc-row:hover { background: rgba(255,255,255,.015); }
.fc-cell {
  padding: 12px 16px; font-size: 13px; color: var(--slate); text-align: center;
  display: flex; align-items: center; justify-content: center;
}
.fc-cell:first-child { text-align: left; justify-content: flex-start; color: var(--text); }
.fc-cell.feat-col { background: rgba(124,58,237,.04); }
.fc-check { color: var(--emerald-lt); font-weight: 600; }
.fc-x     { color: var(--border-hi); }

.fc-cta {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  padding: 20px 0; background: var(--surface);
}
.fc-cta .fc-cell { padding: 6px 16px; }

/* ── Pricing notes ── */
.pricing-note {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--rad);
  font-size: 13px; color: var(--muted); max-width: 720px; margin: 0 auto;
}
.pricing-note svg { width: 18px; height: 18px; color: var(--border-hi); flex-shrink: 0; }

/* ── Pricing responsive ── */
@media (max-width: 900px) {
  .free-strip { grid-template-columns: 1fr; gap: 32px; }
  .free-strip-tools { grid-template-columns: repeat(3, 1fr); }
  .prod-pricing-row { grid-template-columns: 1fr; }
  .addon-grid { grid-template-columns: 1fr; }
  .fc-header, .fc-row, .fc-cta { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
  .fc-cell, .fc-header-cell { padding: 10px 8px; font-size: 12px; }
  .plan-tabs { flex-direction: column; width: 100%; }
}
@media (max-width: 600px) {
  .free-strip-tools { grid-template-columns: 1fr; }
  .storage-grid { grid-template-columns: 1fr; }
  .feat-compare { overflow-x: auto; }
  .fc-header, .fc-row, .fc-cta { min-width: 580px; }
}

/* ════════════════════════════════════
   PRODUCT HUB PAGES
════════════════════════════════════ */

/* ── Stats bar ── */
.hub-stats {
  display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
  padding: 36px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin-top: 48px;
}
.hub-stat { text-align: center; }
.hub-stat-val { font-size: 1.8rem; font-weight: 700; letter-spacing: -0.03em; }
.hub-stat-label { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ── Hub feature grid (linked cards) ── */
.hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hub-card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--rad); padding: 26px 24px; text-decoration: none; transition: border-color .15s, transform .15s;
}
.hub-card:hover { border-color: var(--border-hi); transform: translateY(-2px); }
.hub-card-icon {
  width: 42px; height: 42px; border-radius: 10px; display: flex;
  align-items: center; justify-content: center; margin-bottom: 16px; flex-shrink: 0;
}
.hub-card-icon svg { width: 22px; height: 22px; }
.hub-card-icon.blue    { background: rgba(59,130,246,.12); }
.hub-card-icon.violet  { background: rgba(124,58,237,.12); }
.hub-card-icon.emerald { background: rgba(16,185,129,.12); }
.hub-card-icon.amber   { background: rgba(245,158,11,.12); }
.hub-card-icon.slate   { background: rgba(148,163,184,.1); }
.hub-card-icon.orange  { background: rgba(234,88,12,.12); }
.hub-card-icon.cyan    { background: rgba(6,182,212,.12); }
.hub-card h3 { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.hub-card p  { font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 14px; flex: 1; }
.hub-card-link {
  font-size: 12px; font-weight: 500; display: inline-flex; align-items: center; gap: 4px;
  font-family: 'JetBrains Mono', monospace;
}
.hub-card-link svg { width: 14px; height: 14px; }

/* color variants for hover accent & link color */
.hub-card.blue:hover    { border-color: rgba(59,130,246,.4); }
.hub-card.violet:hover  { border-color: rgba(124,58,237,.4); }
.hub-card.emerald:hover { border-color: rgba(16,185,129,.4); }
.hub-card.amber:hover   { border-color: rgba(245,158,11,.4); }
.hub-card.slate:hover   { border-color: rgba(148,163,184,.3); }
.hub-card.orange:hover  { border-color: rgba(234,88,12,.4); }
.hub-card.cyan:hover    { border-color: rgba(6,182,212,.4); }
.hub-card.blue .hub-card-link    { color: var(--blue-lt); }
.hub-card.violet .hub-card-link  { color: var(--vlt); }
.hub-card.emerald .hub-card-link { color: var(--emerald-lt); }
.hub-card.amber .hub-card-link   { color: var(--amber-lt); }
.hub-card.slate .hub-card-link   { color: var(--slate); }
.hub-card.orange .hub-card-link  { color: var(--orange-lt); }
.hub-card.cyan .hub-card-link    { color: var(--cyan-lt); }

/* ── Capabilities grid (4-col) ── */
.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cap-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--rad);
  padding: 22px 18px; text-align: center;
}
.cap-icon {
  width: 40px; height: 40px; border-radius: 9px; display: flex;
  align-items: center; justify-content: center; margin: 0 auto 10px;
}
.cap-icon svg { width: 20px; height: 20px; }
.cap-item h4 { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.cap-item p  { font-size: 11px; color: var(--muted); }

/* ── Hub responsive ── */
@media (max-width: 900px) {
  .hub-grid { grid-template-columns: 1fr; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .hub-stats { gap: 28px; }
}
@media (max-width: 600px) {
  .cap-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════
   BLOG POST CONTENT
════════════════════════════════════ */
.post-content { font-size: 15px; line-height: 1.8; color: var(--text); }
.post-content h2 { font-size: 1.4rem; font-weight: 700; color: #fff; margin: 40px 0 14px; letter-spacing: -0.02em; scroll-margin-top: calc(var(--nav-h) + 24px); }
.post-content h3 { font-size: 1.1rem; font-weight: 600; color: var(--text); margin: 32px 0 10px; scroll-margin-top: calc(var(--nav-h) + 24px); }
.post-content p { margin-bottom: 18px; }
.post-content a { color: var(--vlt); text-decoration: underline; text-decoration-color: rgba(167,139,250,.4); text-underline-offset: 2px; }
.post-content a:hover { color: #fff; text-decoration-color: var(--vlt); }
.post-content ul, .post-content ol { margin: 0 0 18px 20px; }
.post-content li { margin-bottom: 8px; }
.post-content blockquote { padding: 12px 20px; margin: 24px 0; color: var(--slate); font-style: italic; background: var(--surface); border-radius: var(--rad); }
.post-content code { font-family: 'JetBrains Mono', monospace; font-size: 13px; background: var(--overlay); padding: 2px 6px; border-radius: 4px; }
.post-content pre { background: var(--overlay); border: 1px solid var(--border); border-radius: var(--rad); padding: 20px; margin: 24px 0; overflow-x: auto; }
.post-content pre code { background: none; padding: 0; }
.post-content img { border-radius: var(--rad); border: 1px solid var(--border); margin: 24px 0; max-width: 100%; height: auto; cursor: zoom-in; }
.lightbox { display: none; position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.85); backdrop-filter: blur(8px); cursor: zoom-out; align-items: center; justify-content: center; padding: 32px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 24px 64px rgba(0,0,0,.5); }
.post-content hr { border: none; border-top: 1px solid var(--border); margin: 32px 0; }
.post-content table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 24px 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--rad); overflow: hidden; }
.post-content th { padding: 10px 14px; text-align: left; font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--overlay); border-bottom: 1px solid var(--border); }
.post-content td { padding: 10px 14px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--border); }
.post-content tr:last-child td { border-bottom: none; }
.post-content tbody tr:hover td { background: rgba(124, 58, 237, .04); }

/* ── Blog grid ── */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
/* Blog listing runs wider than the 1080px default so each card gains ~10%.
   Card width = (container - 64 padding - 40 gaps) / 3, so 1176 gives 357px. */
.wrap.blog-wrap { max-width: 1176px; }
.blog-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--rad-lg); overflow: hidden; text-decoration: none; transition: border-color .15s; }
.blog-card:hover { border-color: var(--border-hi); }
.blog-card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--overlay); display: block; }
.blog-card-img.contain { object-fit: contain; padding: 12px 0; border-radius: 3px; }
.blog-card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.blog-card-body h3 { font-size: .95rem; font-weight: 600; color: var(--text); margin-bottom: 8px; line-height: 1.4; }
.blog-card-body p { font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 12px; flex: 1; }
.blog-card-meta { font-size: 11px; color: var(--muted); display: flex; gap: 10px; align-items: center; margin-top: auto; }
.blog-card-meta time { color: var(--slate); }
.blog-card-tags { display: flex; gap: 5px; margin-bottom: 10px; flex-wrap: wrap; }

/* ── Blog list fallback (no image) ── */
.post-list { display: flex; flex-direction: column; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--rad-lg); overflow: hidden; }
.post-item { display: block; background: var(--surface); padding: 28px; text-decoration: none; transition: background .12s; }
.post-item:hover { background: var(--overlay); }
.post-item h3 { font-size: 1.05rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.post-item p { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 10px; }
.post-meta { font-size: 12px; color: var(--muted); display: flex; gap: 12px; align-items: center; }
.post-meta time { color: var(--slate); }

/* ── Site search ── */
.search-box { position: relative; max-width: 400px; margin: 0 auto; }
.search-input { width: 100%; padding: 10px 16px 10px 40px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--rad); color: var(--text); font-size: 14px; font-family: inherit; outline: none; transition: border-color .15s; }
.search-input::placeholder { color: var(--muted); }
.search-input:focus { border-color: var(--border-hi); }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.search-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--rad); max-height: 400px; overflow-y: auto; z-index: 100; display: none; }
.search-results.visible { display: block; }
.search-result-item { display: block; padding: 12px 16px; text-decoration: none; border-bottom: 1px solid var(--border); transition: background .1s; }
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--overlay); }
.search-result-item h4 { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.search-result-item p { font-size: 12px; color: var(--muted); line-height: 1.4; }
.search-result-item .search-result-type { font-size: 10px; color: var(--vlt); font-family: 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: .08em; }
.search-no-results { padding: 16px; text-align: center; color: var(--muted); font-size: 13px; }

/* ── Blog pagination ── */
.blog-pager { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
.pager-btn { background: var(--surface); border: 1px solid var(--border); border-radius: var(--rad); color: var(--text); font-size: 13px; padding: 8px 14px; cursor: pointer; transition: border-color .15s, background .15s; font-family: inherit; }
.pager-btn:hover { border-color: var(--border-hi); background: var(--overlay); }
.pager-btn.active { background: var(--violet); border-color: var(--violet); color: #fff; }
.pager-ellipsis { color: var(--muted); font-size: 13px; padding: 0 4px; }

/* ── Breadcrumbs ── */
.post-breadcrumb-bar { padding: 16px 0 0; }
.breadcrumbs { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.breadcrumbs a { color: var(--muted); text-decoration: none; transition: color .12s; }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs span:last-child { color: var(--slate); max-width: 400px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.breadcrumb-sep { color: var(--border-hi); }

/* ── Post layout with sidebar ── */
.post-wrap { display: grid; grid-template-columns: 200px 1fr; gap: 56px; max-width: 1000px; }
.post-sidebar { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; }
.post-main { min-width: 0; max-width: 720px; }

.sidebar-section { margin-bottom: 28px; }
.sidebar-section .label { display: block; }

/* ── Share links ── */
.share-links { display: flex; gap: 8px; }
.share-btn { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--rad); color: var(--muted); cursor: pointer; transition: border-color .15s, color .15s; text-decoration: none; }
.share-btn:hover { border-color: var(--border-hi); color: var(--text); }

/* ── Sidebar TOC ── */
.sidebar-toc { list-style: none; padding: 0; margin: 0; }
.sidebar-toc li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.sidebar-toc li:last-child { border-bottom: none; }
.toc-link { text-decoration: none; display: block; transition: opacity .12s; }
.toc-link:hover { opacity: .8; }
.toc-title { display: block; font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.5; }
.toc-summary { display: block; font-size: 13px; color: var(--muted); line-height: 1.5; margin-top: 2px; }

/* ── Post prev/next nav ── */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.post-nav-link { display: block; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--rad); text-decoration: none; transition: border-color .15s; }
.post-nav-link:hover { border-color: var(--border-hi); }
.post-nav-label { font-size: 11px; color: var(--muted); font-family: 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: .08em; display: block; margin-bottom: 6px; }
.post-nav-title { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.4; display: block; }
.post-nav-older { text-align: right; }

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .post-wrap { grid-template-columns: 1fr; }
  .post-sidebar { position: static; display: flex; gap: 24px; flex-wrap: wrap; }
  .sidebar-section { margin-bottom: 0; }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
}

/* ── Events ── */
.event-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.event-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--rad-lg);
  overflow: hidden; transition: border-color .15s;
}
.event-card { text-decoration: none; }
.event-card:hover { border-color: var(--border-hi); }
.event-card-img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; display: block; border-radius: var(--rad-lg) var(--rad-lg) 0 0; }
.event-card-body { padding: 24px; }
.event-date {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; text-transform: uppercase;
  letter-spacing: .08em; color: var(--vlt); margin-bottom: 10px; display: block;
}
.event-card h3 { font-size: 1.05rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.event-card p { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 14px; }
.event-location { font-size: 12px; color: var(--slate); display: flex; align-items: center; gap: 6px; }
.event-location svg { width: 14px; height: 14px; }

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

/* ── Additional mobile fixes ── */
@media (max-width: 600px) {
  /* Hub stats: 2x2 grid instead of single row */
  .hub-stats {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 24px 0;
  }
  .hub-stat-val { font-size: 1.4rem; }

  /* Post sidebar: collapse TOC on mobile */
  .post-sidebar { order: 1; }
  .post-main { order: 0; }
  .sidebar-section h4 { font-size: 11px; }
  .sidebar-section .toc-link { font-size: 12px; }
}

/* ── Syntax highlighting (Rouge) ── */
.post-content .highlight { background: #0f1726; border-radius: var(--rad); }
.post-content .highlight pre { background: transparent; }
.post-content .highlight .c,
.post-content .highlight .cm,
.post-content .highlight .c1,
.post-content .highlight .cs { color: #4a5f7a; font-style: italic; } /* comments */
.post-content .highlight .k,
.post-content .highlight .kd,
.post-content .highlight .kn,
.post-content .highlight .kp,
.post-content .highlight .kr,
.post-content .highlight .kt { color: #a78bfa; } /* keywords - violet */
.post-content .highlight .s,
.post-content .highlight .sb,
.post-content .highlight .sc,
.post-content .highlight .sd,
.post-content .highlight .s2,
.post-content .highlight .se,
.post-content .highlight .sh,
.post-content .highlight .si,
.post-content .highlight .sx,
.post-content .highlight .s1 { color: #5b8fff; } /* strings - blue */
.post-content .highlight .na,
.post-content .highlight .no { color: #60a5fa; } /* attributes - light blue */
.post-content .highlight .nb,
.post-content .highlight .nc,
.post-content .highlight .nd,
.post-content .highlight .ni,
.post-content .highlight .ne,
.post-content .highlight .nf { color: #34d399; } /* names/functions - emerald */
.post-content .highlight .m,
.post-content .highlight .mf,
.post-content .highlight .mh,
.post-content .highlight .mi,
.post-content .highlight .mo { color: #f59e0b; } /* numbers - amber */
.post-content .highlight .o,
.post-content .highlight .p { color: #8b9bb0; } /* operators/punctuation */
.post-content .highlight .nt { color: #a78bfa; } /* tags - violet */
.post-content .highlight .nv,
.post-content .highlight .vi,
.post-content .highlight .vg,
.post-content .highlight .vc { color: #e8ecf4; } /* variables */
.post-content .highlight .sr { color: #f472b6; } /* regex - pink */
.post-content .highlight .ss { color: #5b8fff; } /* symbols */
.post-content .highlight .err { color: #ef4444; } /* errors */
.post-content .highlight .gd { color: #ef4444; } /* diff deleted */
.post-content .highlight .gi { color: #22c55e; } /* diff inserted */
.post-content .highlight .gh { color: #e8ecf4; font-weight: 600; } /* diff heading */

/* ============================================================
   AI Frontier Model Tracker
   ============================================================ */

/* ── Stat pill ── */
.stat-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 4px; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .04em; border: 1px solid var(--border); background: var(--overlay); color: var(--muted); white-space: nowrap; }

/* ── Filters ── */
.fmt-filter-bar { border-bottom: 1px solid var(--border); background: var(--surface); position: sticky; top: var(--nav-h); z-index: 100; }
.fmt-filter-inner { max-width: 1400px; margin: 0 auto; padding: 0 32px; height: 48px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.fmt-search-wrap { position: relative; }
.fmt-search-wrap svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.fmt-search-input { padding: 7px 12px 7px 32px; background: var(--overlay); border: 1px solid var(--border); border-radius: 7px; color: var(--text); font-size: 13px; font-family: 'Inter', sans-serif; outline: none; width: 210px; transition: border-color .15s; }
.fmt-search-input::placeholder { color: var(--muted); }
.fmt-search-input:focus { border-color: var(--border-hi); }
.filter-group { display: flex; gap: 3px; background: var(--overlay); border: 1px solid var(--border); border-radius: 8px; padding: 3px; }
.fchip { padding: 5px 13px; border: none; background: transparent; color: var(--muted); font-size: 12px; font-weight: 500; border-radius: 5px; cursor: pointer; transition: all .12s; font-family: 'Inter', sans-serif; white-space: nowrap; }
.fchip:hover:not(.on) { color: var(--text); }
.fchip.on { background: var(--violet); color: #fff; }
.fmt-rc { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); margin-left: auto; white-space: nowrap; }

/* ── Table ── */
.tbl-wrap { max-width: 1400px; margin: 0 auto; padding: 20px 32px; }
.tbl-card { background: var(--surface); border: 1px solid var(--border); border-radius: 0; }
.tbl-scroll { }  /* deliberately not a scroll container - see the mobile block below */
.tbl-scroll::-webkit-scrollbar { width: 5px; height: 5px; }
.tbl-scroll::-webkit-scrollbar-track { background: var(--surface); }
.tbl-scroll::-webkit-scrollbar-thumb { background: var(--border-hi); border-radius: 3px; }
.tbl-scroll table { border-collapse: separate; border-spacing: 0; width: 100%; }
.tbl-scroll thead th { padding: 12px 8px; text-align: left; font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); border-bottom: 1px solid var(--border); white-space: nowrap; cursor: pointer; user-select: none; background: var(--overlay); transition: color .12s; position: sticky; top: var(--thead-top, 120px); z-index: 10; }
.tbl-scroll thead th.sort-on { color: var(--vlt); }
.tbl-scroll thead th:hover:not(.sort-on) { color: var(--slate); }
.tbl-scroll tbody tr.mr { border-bottom: 1px solid var(--border); cursor: pointer; transition: background .08s; }
.tbl-scroll tbody tr.mr:hover td { background: rgba(124, 58, 237, .04); }
.tbl-scroll tbody tr.mr.sel td { background: rgba(124, 58, 237, .06); }
.tbl-scroll tbody tr.mr.sel td:first-child { box-shadow: inset 2px 0 0 var(--violet); }
.tbl-scroll tbody td { padding: 10px 8px; font-size: 13px; white-space: nowrap; color: var(--muted); }
.tbl-scroll tbody td.name-cell { color: var(--text); }

/* ── Expansion ── */
.tbl-scroll tbody tr.exp-tr td { padding: 0; background: var(--overlay); white-space: normal; max-width: 0; }
.exp-inner { border-top: 1px solid var(--border); overflow: hidden; }
.exp-tabs { display: flex; padding: 0 16px; border-bottom: 1px solid var(--border); gap: 0; flex-wrap: wrap; }
.etab { padding: 10px 16px; font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all .12s; background: none; border-left: none; border-right: none; border-top: none; }
.etab:hover:not(.on) { color: var(--slate); }
.etab.on { color: var(--vlt); border-bottom-color: var(--violet); }
.ep { display: none; padding: 20px 24px; overflow-wrap: break-word; word-break: break-word; }
.ep.on { display: block; }

/* ── Detail grid ── */
.det-grid { display: grid; grid-template-columns: 380px 1fr; gap: 32px; }
.det-grid > div:first-child { min-width: 0; overflow-wrap: break-word; word-break: break-word; }
.ic { background: var(--faint, #2a3340); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; }
.ic-l { font-family: 'JetBrains Mono', monospace; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 4px; }
.ic-v { font-size: 15px; font-weight: 600; color: var(--text); }
.ic-4 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.bench-row { display: flex; align-items: center; margin-bottom: 8px; }
.bench-lbl { font-family: 'JetBrains Mono', monospace; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); width: 76px; flex-shrink: 0; }
.bench-track { flex: 1; height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; margin: 0 10px; }
.bench-fill { height: 100%; border-radius: 2px; transition: width .5s cubic-bezier(.4, 0, .2, 1); }
.bench-val { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600; color: var(--text); width: 35px; text-align: right; }

/* ── Download grid ── */
.dl-grid { display: flex; flex-wrap: wrap; gap: 24px; padding: 4px 0; }
.dl-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; text-decoration: none; }
.dl-card:hover .dl-icon-box { border-color: var(--border-hi); }
.dl-icon-box { width: 68px; height: 68px; border-radius: 14px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); background: var(--overlay); transition: border-color .12s; }
.dl-icon-box img { object-fit: contain; }
.dl-name { font-size: 13px; color: var(--text); display: flex; align-items: center; gap: 4px; }
.dl-arr { color: var(--muted); font-size: 12px; }

/* ── Provider logo ── */
.prov-logo { width: 28px; height: 28px; border-radius: 7px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; border: 1px solid; }
.prov-logo img { width: 16px; height: 16px; object-fit: contain; }
.prov-init { font-family: 'JetBrains Mono', monospace; font-size: 9px; font-weight: 600; line-height: 1; }

/* ── Score colors ── */
.sc-hi { color: var(--emerald-lt); font-weight: 500; }
.sc-md { color: var(--amber-lt); font-weight: 500; }
.sc-lo { color: var(--muted); }
.sc-na { color: var(--border-hi); font-family: 'JetBrains Mono', monospace; }
.sota-tag { font-family: 'JetBrains Mono', monospace; font-size: 9px; padding: 1px 5px; border-radius: 3px; background: rgba(124, 58, 237, .2); color: var(--vlt); font-weight: 600; vertical-align: middle; margin-left: 3px; }

/* ── News ── */
.news-item { padding: 13px 0; border-bottom: 1px solid var(--border); }
.news-item:last-child { border-bottom: none; }
.news-title { font-size: 13px; font-weight: 500; color: var(--text); display: block; line-height: 1.45; margin-bottom: 5px; transition: color .12s; }
.news-title:hover { color: var(--vlt); }
.news-meta { display: flex; align-items: center; gap: 5px; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); }
.news-expand { display: inline-flex; align-items: center; gap: 5px; margin-top: 12px; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--vlt); cursor: pointer; border: 1px solid rgba(124, 58, 237, .25); padding: 6px 12px; border-radius: 6px; background: none; transition: background .12s; }
.news-expand:hover { background: rgba(124, 58, 237, .08); }

/* ── Brief ── */
.brief-p { font-size: 13px; line-height: 1.75; color: var(--muted); margin-bottom: 14px; }
.brief-p:last-child { margin-bottom: 0; }
.brief-label { display: flex; align-items: center; gap: 6px; margin-bottom: 16px; }

/* ── Source link ── */
.source-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--vlt); padding: 6px 14px; border: 1px solid rgba(124, 58, 237, .28); border-radius: 6px; transition: background .12s; }
.source-btn:hover { background: rgba(124, 58, 237, .08); }

/* ── Animations ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.fu { animation: fadeUp .35s ease both; }
.fu1 { animation-delay: .05s; }
.fu2 { animation-delay: .1s; }
@keyframes spin { to { transform: rotate(360deg); } }
.sp { animation: spin .8s linear infinite; }

/* ── Radar: Algorithm Update Tracker ── */
.radar-table { border-collapse: separate; border-spacing: 0; width: 100%; }
.radar-table thead th { padding: 10px 14px; text-align: left; font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--overlay); }
.radar-table tbody tr { border-bottom: 1px solid var(--border); transition: background .08s; }
.radar-table tbody tr:hover td { background: rgba(124, 58, 237, .04); }
.radar-table tbody td { padding: 11px 14px; font-size: 13px; color: var(--muted); }
.rc { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); margin-left: auto; }
.live-banner { padding: 12px 32px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

/* ── Tracker responsive ── */
@media (max-width: 900px) {
  .fmt-tracker-hero-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 768px) {
  .fmt-filter-inner { height: auto; padding: 12px 16px; gap: 8px; }
  .fmt-search-input { width: 100%; }
  .det-grid { grid-template-columns: 1fr; }
  .tbl-wrap { padding: 12px 16px; }
  .radar-kpi-grid { grid-template-columns: 1fr 1fr !important; }
  .radar-chart-grid { grid-template-columns: 1fr !important; }
  .release-item { flex-direction: column !important; }
}

/* ── Pricing Configurator ─────────────────────────────────── */

/* Hub page */
.cfg-hub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 640px) { .cfg-hub-grid { grid-template-columns: 1fr; } }
.cfg-hub-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 28px; text-decoration: none; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s; }
.cfg-hub-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,.3); }
.cfg-hub-card.cfg-blue:hover { border-color: rgba(59,130,246,.5); }
.cfg-hub-card.cfg-violet:hover { border-color: rgba(124,58,237,.5); }
.cfg-hub-card-top { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.cfg-hub-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cfg-blue .cfg-hub-icon { background: rgba(59,130,246,.12); color: var(--blue-lt); }
.cfg-violet .cfg-hub-icon { background: rgba(124,58,237,.12); color: var(--vlt); }
.cfg-hub-icon svg { width: 20px; height: 20px; }
.cfg-hub-title { font-size: 1.1rem; font-weight: 600; line-height: 1.2; margin-bottom: 3px; }
.cfg-blue .cfg-hub-title { color: var(--text); }
.cfg-violet .cfg-hub-title { color: var(--text); }
.cfg-hub-sub { font-size: 0.8rem; color: var(--muted); line-height: 1.4; }
.cfg-hub-features { font-size: 0.8rem; color: var(--slate); list-style: none; margin-bottom: 20px; flex: 1; }
.cfg-hub-features li { padding: 4px 0 4px 22px; position: relative; }
.cfg-hub-features li::before { content: ''; position: absolute; left: 0; top: 50%; width: 13px; height: 13px; transform: translateY(-50%); background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat; }
.cfg-blue .cfg-hub-features li::before { background: var(--blue); }
.cfg-violet .cfg-hub-features li::before { background: var(--violet); }
.cfg-hub-cta { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.85rem; font-weight: 600; padding: 11px 20px; border-radius: 8px; width: 100%; transition: background .15s; }
.cfg-blue .cfg-hub-cta { background: var(--blue); color: #fff; }
.cfg-blue:hover .cfg-hub-cta { background: #2563eb; }
.cfg-violet .cfg-hub-cta { background: var(--violet); color: #fff; }
.cfg-violet:hover .cfg-hub-cta { background: #6d28d9; }
.cfg-hub-cta-arrow { transition: transform .2s; }
.cfg-hub-card:hover .cfg-hub-cta-arrow { transform: translateX(4px); }

/* Breadcrumb bar */
.cfg-breadcrumb { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.cfg-breadcrumb-nav { display: flex; align-items: center; gap: 6px; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); }
.cfg-breadcrumb-nav a { color: var(--muted); text-decoration: none; transition: color .12s; }
.cfg-breadcrumb-nav a:hover { color: var(--text); }
.cfg-breadcrumb-nav .cfg-bc-sep { color: var(--border-hi); }
.cfg-breadcrumb-nav .cfg-bc-current { color: var(--slate); }
.cfg-signout { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); text-decoration: none; transition: color .12s; display: flex; align-items: center; gap: 5px; }
.cfg-signout:hover { color: var(--text); }
.cfg-signout svg { width: 13px; height: 13px; }

/* Calculator shared */
.cfg-header { text-align: center; margin-bottom: 28px; }
.cfg-header h1 { font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 700; margin-bottom: 6px; }
.cfg-header p { color: var(--muted); font-size: 0.95rem; }
.cfg-header-blue h1 { color: var(--blue-lt); }
.cfg-header-violet h1 { color: var(--vlt); }

.cfg-currency-row { display: flex; justify-content: center; margin-bottom: 24px; }
.cfg-currency-wrap { display: flex; align-items: center; gap: 16px; }
.cfg-currency-toggle { display: flex; gap: 4px; background: var(--surface); padding: 4px; border-radius: 8px; border: 1px solid var(--border); }
.cfg-currency-btn { padding: 6px 14px; border: none; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; background: transparent; color: var(--muted); transition: all .15s; font-family: 'JetBrains Mono', monospace; }
.cfg-currency-btn:hover:not(.active) { background: var(--overlay); color: var(--text); }
.cfg-rate-input { display: flex; align-items: center; gap: 6px; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); }
.cfg-rate-input input { width: 70px; padding: 4px 8px; font-size: 11px; font-family: 'JetBrains Mono', monospace; background: var(--surface); border: 1px solid var(--border); border-radius: 4px; color: var(--text); text-align: right; }
.cfg-rate-input input:focus { outline: none; }
.cfg-rate-status { font-size: 12px; }

/* Color variants for active currency button */
.cfg-blue-accent .cfg-currency-btn.active { background: var(--blue); color: #fff; }
.cfg-blue-accent .cfg-rate-input input:focus { border-color: var(--blue); }
.cfg-violet-accent .cfg-currency-btn.active { background: var(--violet); color: #fff; }
.cfg-violet-accent .cfg-rate-input input:focus { border-color: var(--violet); }

/* Tabs */
.cfg-tabs { display: flex; gap: 4px; margin-bottom: 24px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.cfg-tab { padding: 12px 20px; background: transparent; border: none; color: var(--muted); font-size: 13px; font-weight: 500; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .15s, border-color .15s; white-space: nowrap; font-family: inherit; }
.cfg-tab:hover { color: var(--text); }
.cfg-blue-accent .cfg-tab.active { color: var(--blue-lt); border-bottom-color: var(--blue); }
.cfg-violet-accent .cfg-tab.active { color: var(--vlt); border-bottom-color: var(--violet); }
.cfg-tab-content { display: none; }
.cfg-tab-content.active { display: block; }

/* Calculator grid */
.cfg-calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* Input section */
.cfg-input-section { background: var(--surface); padding: 24px; border-radius: var(--rad-lg); border: 1px solid var(--border); }
.cfg-section-title { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 20px; }
.cfg-form-group { margin-bottom: 20px; }
.cfg-form-group:last-child { margin-bottom: 0; }
.cfg-form-label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; font-weight: 500; }
.cfg-input, .cfg-select { width: 100%; padding: 10px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 14px; font-family: inherit; }
.cfg-select { cursor: pointer; }
.cfg-input:focus, .cfg-select:focus { outline: none; }
.cfg-blue-accent .cfg-input:focus, .cfg-blue-accent .cfg-select:focus { border-color: var(--blue); }
.cfg-violet-accent .cfg-input:focus, .cfg-violet-accent .cfg-select:focus { border-color: var(--violet); }
.cfg-input-hint { font-size: 11px; color: var(--muted); margin-top: 4px; font-family: 'JetBrains Mono', monospace; }

/* Engine / endpoint toggles */
.cfg-toggle-section { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.cfg-toggle-title { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.cfg-toggle-list { display: flex; flex-direction: column; gap: 8px; }
.cfg-toggle-item { display: flex; align-items: center; padding: 10px 12px; background: var(--bg); border-radius: 8px; border: 1px solid var(--border); transition: opacity .15s; }
.cfg-toggle-item.disabled { opacity: .45; }
.cfg-toggle-left { display: flex; align-items: center; gap: 10px; }
.cfg-toggle-cb { width: 16px; height: 16px; cursor: pointer; }
.cfg-blue-accent .cfg-toggle-cb { accent-color: var(--blue); }
.cfg-violet-accent .cfg-toggle-cb { accent-color: var(--violet); }
.cfg-toggle-name { font-size: 13px; font-weight: 500; color: var(--text); cursor: pointer; }
.cfg-toggle-item.disabled .cfg-toggle-name { color: var(--muted); text-decoration: line-through; }
.cfg-toggle-count { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); }

/* Results section */
.cfg-results { display: flex; flex-direction: column; gap: 14px; }
.cfg-result-card { background: var(--surface); padding: 18px 20px; border-radius: var(--rad-lg); border: 1px solid var(--border); }
.cfg-result-label { font-family: 'JetBrains Mono', monospace; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; }
.cfg-result-value { font-size: 1.6rem; font-weight: 700; color: var(--text); }
.cfg-result-sub { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); margin-top: 3px; }

/* Primary result card */
.cfg-result-primary { border: none; }
.cfg-blue-accent .cfg-result-primary { background: linear-gradient(135deg, #1e3a5f 0%, #1d4ed8 100%); }
.cfg-violet-accent .cfg-result-primary { background: linear-gradient(135deg, #3b1764 0%, #6d28d9 100%); }
.cfg-result-primary .cfg-result-label { color: rgba(255,255,255,.75); }
.cfg-result-primary .cfg-result-value { color: #fff; font-size: 1.85rem; }
.cfg-result-primary .cfg-result-sub { color: rgba(255,255,255,.65); }

/* Breakdown row inside primary card */
.cfg-result-breakdown { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.1); }
.cfg-breakdown-item { display: flex; flex-direction: column; }
.cfg-breakdown-label { font-family: 'JetBrains Mono', monospace; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.55); }
.cfg-breakdown-value { font-size: 14px; font-weight: 600; color: #fff; }

/* Rate tables */
.cfg-rate-wrap { background: var(--surface); border-radius: var(--rad-lg); padding: 24px; border: 1px solid var(--border); }
.cfg-rate-header { margin-bottom: 18px; }
.cfg-rate-title { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.cfg-rate-subtitle { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); }
.cfg-rate-note { font-size: 12px; color: var(--muted); margin-top: 12px; font-style: italic; }
.cfg-table { width: 100%; border-collapse: collapse; }
.cfg-table th { text-align: left; padding: 10px 14px; font-family: 'JetBrains Mono', monospace; font-size: 10px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); border-bottom: 1px solid var(--border); }
.cfg-table td { padding: 10px 14px; font-size: 13px; border-bottom: 1px solid var(--border); color: var(--slate); }
.cfg-table tbody tr:hover { background: var(--overlay); }
.cfg-table .cfg-col-price { color: var(--blue-lt); }
.cfg-violet-accent .cfg-table .cfg-col-price { color: var(--vlt); }
.cfg-table .cfg-col-fee { text-align: right; color: var(--text); font-weight: 500; }

/* Responsive */
@media (max-width: 768px) {
  .cfg-calc-grid { grid-template-columns: 1fr; }
  .cfg-tabs { gap: 0; }
  .cfg-tab { padding: 10px 14px; font-size: 12px; }
  .cfg-breadcrumb { flex-direction: column; align-items: flex-start; }
}

/* ── AI Credits Calculator ─────────────────────────────── */

/* Tabs */
.cfg-cr-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border-hi); margin-bottom: 20px; overflow-x: auto; margin-top: 20px; }
.cfg-cr-tab { padding: 10px 14px; font-size: 13px; font-weight: 500; color: var(--slate); cursor: pointer; border-bottom: 2px solid transparent; transition: color 0.15s, border-color 0.15s; display: flex; align-items: center; gap: 8px; user-select: none; white-space: nowrap; }
.cfg-cr-tab:hover { color: var(--text); }
.cfg-cr-tab.active { color: var(--text); border-bottom-color: var(--vlt); }
.cfg-cr-tab-badge { font-size: 10px; font-weight: 600; padding: 1.5px 6px; border-radius: 9999px; white-space: nowrap; }
.cfg-cr-tb-i { background: rgba(167,139,250,0.15); color: var(--vlt); }
.cfg-cr-tb-g { background: rgba(52,211,153,0.15); color: var(--emerald-lt); }
.cfg-cr-tb-a { background: rgba(251,191,36,0.15); color: var(--amber-lt); }
.cfg-cr-tb-s { background: rgba(148,163,184,0.15); color: var(--slate); }
.cfg-cr-tb-t { background: rgba(56,189,248,0.15); color: #38bdf8; }

/* Panels */
.cfg-cr-panel { display: none; }
.cfg-cr-panel.active { display: block; }

/* Section cards */
.cfg-cr-section { background: var(--surface); border: 1px solid var(--border-hi); border-radius: 12px; overflow: hidden; }
.cfg-cr-section-body { padding: 12px 20px; overflow-x: auto; }

/* Tab descriptions */
.cfg-cr-tab-desc { font-size: 13px; color: var(--slate); line-height: 1.5; margin-bottom: 16px; padding: 12px 16px; background: var(--overlay); border: 1px solid var(--border-hi); border-radius: 8px; }
.cfg-cr-tab-desc strong { color: var(--text); }

/* Tables */
.cfg-cr-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 480px; }
.cfg-cr-table th { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); padding: 6px 6px 8px; border-bottom: 1px solid var(--border-hi); text-align: left; }
.cfg-cr-table th.r { text-align: right; }
.cfg-cr-table th.c { text-align: center; }
.cfg-cr-table td { padding: 6px 6px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cfg-cr-table tr:last-child td { border-bottom: none; }
.cfg-cr-td-label { color: var(--text); font-size: 12px; }
.cfg-cr-td-rate { color: var(--slate); text-align: right; font-size: 11px; white-space: nowrap; width: 52px; padding-right: 10px; }
.cfg-cr-td-input { width: 60px; }
.cfg-cr-td-input-wide { width: 72px; }
.cfg-cr-td-cost { color: var(--vlt); text-align: right; font-weight: 600; width: 60px; font-size: 12px; }
.cfg-cr-table input[type="number"] { width: 100%; padding: 4px 5px; background: var(--overlay); border: 1px solid var(--border); border-radius: 5px; color: var(--text); font-size: 12px; text-align: right; outline: none; font-family: inherit; -moz-appearance: textfield; }
.cfg-cr-table input[type="number"]:focus { border-color: var(--vlt); }
.cfg-cr-table input[type="number"]::-webkit-outer-spin-button,
.cfg-cr-table input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cfg-cr-provider-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); padding: 10px 0 3px; }

/* Inputs */
.cfg-cr-table input[type="number"],
.cfg-cr-quick input[type="number"] { width: 100%; padding: 5px 6px; background: var(--overlay); border: 1px solid var(--border-hi); border-radius: 5px; color: var(--text); font-size: 13px; text-align: right; outline: none; font-family: inherit; -moz-appearance: textfield; }
.cfg-cr-table input[type="number"]:focus,
.cfg-cr-quick input[type="number"]:focus { border-color: var(--vlt); }
.cfg-cr-table input[type="number"]::-webkit-outer-spin-button,
.cfg-cr-table input[type="number"]::-webkit-inner-spin-button,
.cfg-cr-quick input[type="number"]::-webkit-outer-spin-button,
.cfg-cr-quick input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cfg-cr-table input[type="checkbox"],
.cfg-cr-quick input[type="checkbox"],
.cfg-cr-section input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--vlt); cursor: pointer; }

/* Quick calc card */
.cfg-cr-quick { background: var(--overlay); border: 1px solid var(--border-hi); border-radius: 8px; padding: 16px 20px; margin-bottom: 16px; }
.cfg-cr-quick h3 { font-size: 13px; font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.cfg-cr-qc-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; font-size: 13px; }
.cfg-cr-qc-row label { flex: 1; color: var(--slate); }
.cfg-cr-qc-row input[type="number"] { width: 80px; }
.cfg-cr-qc-result { color: var(--vlt); font-weight: 600; min-width: 90px; text-align: right; }
.cfg-cr-qc-note { font-size: 11px; color: var(--muted); margin-top: 8px; line-height: 1.4; }
.cfg-cr-qc-sim { font-size: 12px; color: var(--slate); margin-top: 8px; padding: 8px 12px; background: var(--surface); border-radius: 6px; }
.cfg-cr-qc-sim b { color: var(--text); }

/* Quick calc checkboxes */
.cfg-cr-qc-checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 4px 24px; margin: 12px 0 8px; }
.cfg-cr-qc-check { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text); cursor: pointer; padding: 3px 0; }
.cfg-cr-qc-check input[type="checkbox"] { width: 14px; height: 14px; }
.cfg-cr-qc-check-rate { color: var(--muted); font-size: 11px; margin-left: auto; }
.cfg-cr-qc-checks-header { grid-column: 1 / -1; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); padding-top: 4px; }

/* Coming soon badge + row note */
.cfg-cr-coming-soon { display: inline-block; margin-left: 8px; padding: 2px 7px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--amber); background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.35); border-radius: 4px; vertical-align: middle; }
.cfg-cr-row-note { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }

/* Total bar */
.cfg-cr-total-bar { background: var(--surface); border: 2px solid var(--vlt); border-radius: 12px; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; margin-top: 20px; position: sticky; bottom: 16px; z-index: 10; }
.cfg-cr-total-label { font-size: 15px; font-weight: 600; }
.cfg-cr-total-value { font-size: 1.75rem; font-weight: 700; color: var(--vlt); }
.cfg-cr-total-cost { font-size: 13px; color: var(--slate); margin-top: 2px; }
.cfg-cr-total-breakdown { display: flex; gap: 16px; margin-top: 4px; flex-wrap: wrap; }
.cfg-cr-total-breakdown span { font-size: 11px; color: var(--muted); }
.cfg-cr-total-breakdown span b { color: var(--slate); font-weight: 600; }

/* Reset button */
.cfg-cr-reset-btn { padding: 6px 12px; background: var(--overlay); border: 1px solid var(--border-hi); border-radius: 6px; color: var(--slate); font-size: 12px; font-family: inherit; cursor: pointer; transition: color 0.15s; }
.cfg-cr-reset-btn:hover { color: var(--text); }

/* Responsive */
@media (max-width: 640px) {
  .cfg-cr-tabs { gap: 0; }
  .cfg-cr-tab { padding: 8px 10px; font-size: 12px; }
  .cfg-cr-total-bar { flex-direction: column; gap: 12px; text-align: center; }
  .cfg-cr-total-bar > div:last-child { text-align: center; }
  .cfg-cr-total-breakdown { justify-content: center; }
  .cfg-cr-qc-checks { grid-template-columns: 1fr; }
}

/* ── Agent subpage feature cards + observability grid ── */
.ag-cap-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); gap:14px; }
.ag-cap { background:var(--surface); border:1px solid var(--border); border-radius:10px; padding:22px; transition:border-color .15s, transform .15s; }
.ag-cap:hover { border-color:var(--border-hi); transform:translateY(-2px); }
.ag-cap-ico { width:34px; height:34px; border-radius:8px; background:rgba(234,88,12,.1); border:1px solid rgba(234,88,12,.22); display:flex; align-items:center; justify-content:center; margin-bottom:13px; }
.ag-obs-grid { display:grid; grid-template-columns:1.4fr 1fr; gap:18px; align-items:stretch; }
@media (max-width:720px) { .ag-obs-grid { grid-template-columns:1fr; } }

/* ───── Customers logo wall (/customers/, noindex) ───── */
.cust-section { margin-top: 52px; }
.cust-section:first-of-type { margin-top: 0; }
.cust-cat {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--vlt);
  display: flex; align-items: baseline; gap: 10px; margin-bottom: 18px;
}
.cust-cat .cust-count { color: var(--muted); font-size: 10px; }
.cust-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
}
.cust-chip {
  background: #ffffff; border-radius: 10px; height: 130px;
  display: flex; align-items: center; justify-content: center;
  padding: 24px 30px; border: 1px solid var(--border-hi);
}
.cust-chip img {
  max-height: 72px; max-width: 100%; width: auto; object-fit: contain;
  filter: none;
}
/* Square-canvas marks (e.g. Simple Icons wordmarks) that read small at the
   default height cap - let them fill more of the chip. */
.cust-chip img.zoom { max-height: 118px; }

/* ───── Partners page ───── */
.partner-group { margin-top: 52px; }
.partner-group:first-of-type { margin-top: 0; }
.partner-cat {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--vlt); margin-bottom: 18px;
}
.partner-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px;
}
.partner-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 0; overflow: hidden; display: flex; flex-direction: column;
}
.partner-chip {
  background: #ffffff; height: 104px; display: flex; align-items: center; justify-content: center;
  padding: 22px 28px; border-bottom: 1px solid var(--border);
}
.partner-chip img { max-height: 56px; max-width: 100%; width: auto; object-fit: contain; }
.partner-chip .partner-name-fallback {
  font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 1.35rem; color: #0c0f14;
  letter-spacing: -0.01em;
}
.partner-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.partner-body h3 { font-size: 1.05rem; font-weight: 600; color: var(--text); margin: 0 0 8px; }
.partner-body p { font-size: 0.9rem; color: var(--slate); line-height: 1.5; margin: 0 0 16px; }
.partner-links { margin-top: auto; display: flex; gap: 16px; align-items: center; }
.partner-links a {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.06em;
  color: var(--vlt); text-decoration: none;
}
.partner-links a:hover { text-decoration: underline; }

/* WTS member offer callout */
.wts-offer { background: linear-gradient(180deg, rgba(124,58,237,.10), rgba(124,58,237,.03));
  border: 1px solid rgba(124,58,237,.35); border-radius: 14px; padding: 36px 40px; }
.wts-offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 24px; }
.wts-offer-item { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 22px 24px; }
.wts-offer-item .amt { font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 2rem; color: var(--vlt); line-height: 1; margin-bottom: 10px; }
.wts-offer-item .lbl { color: var(--slate); font-size: 0.92rem; line-height: 1.5; }

/* ── Korean pages ────────────────────────────────────────── */
/* JetBrains Mono carries no Hangul, so Korean in .label and .tag falls back to
   a system face. The 0.12em tracking meant for Latin small-caps then reads as
   broken spacing between syllable blocks. Tighten it for ko only. */
[lang="ko"] .label,
[lang="ko"] .tag { letter-spacing: .02em; }
[lang="ko"] .h-xl,
[lang="ko"] .h-lg { letter-spacing: -.01em; }


/* Mega menus must not overflow the viewport.
   Each panel is absolutely positioned against its own .nav-item, so an 860px
   panel hanging off an item ~400px from the left ran to 1151px and gave every
   page a horizontal scrollbar between 901px (where the desktop nav appears)
   and ~1240px. Handing the containing block back to .ds-nav lets them centre
   under the full nav instead of tracking their trigger.
   Must stay at the end of the file: the .drop-* rules that set left: -60px /
   -100px come later in the nav section and would otherwise win on source order. */
@media (min-width: 901px) and (max-width: 1259px) {
  .nav-item { position: static; }
  .drop-platform, .drop-solutions, .drop-resources, .drop-tools {
    left: 50%; right: auto;
    transform: translateX(-50%) translateY(-4px);
    max-width: calc(100vw - 32px);
  }
  .drop-platform  { width: min(840px, calc(100vw - 32px)); }
  .drop-solutions { width: min(860px, calc(100vw - 32px)); }
  .drop-resources { width: min(680px, calc(100vw - 32px)); }
  /* .visible resets translateY; restore the centring on the same declaration. */
  .drop-platform.visible, .drop-solutions.visible,
  .drop-resources.visible, .drop-tools.visible {
    transform: translateX(-50%) translateY(0);
  }
}

/* ── Chart hover tooltip (blog data charts) ── */
.aio-chart { position: relative; }
.aio-chart svg { display: block; width: 100%; height: auto; }
.aio-hit:hover { fill: rgba(139,92,246,.06); }
.aio-tip {
  position: absolute; pointer-events: none; opacity: 0;
  /* Parked at the origin when hidden. opacity:0 still occupies layout, so a
     stale inline left from the expanded chart widened the page. */
  left: 0; top: 0;
  transform: translate(-50%, -100%);
  background: var(--overlay); border: 1px solid var(--border-hi);
  border-radius: 7px; padding: 7px 11px; white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,.55);
  transition: opacity .1s ease; z-index: 3;
}
.aio-tip.on { opacity: 1; }
.aio-tip-d {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.aio-tip-v {
  font-size: 17px; font-weight: 700; color: var(--vlt);
  line-height: 1.2; margin-top: 2px;
}

/* ── Copy-as-CSV button (data tables in posts) ── */
.csv-copy-row { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.csv-copy {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 7px; padding: 7px 12px; cursor: pointer;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  transition: color .15s, border-color .15s, background .15s;
}
.csv-copy:hover { color: var(--text); border-color: var(--border-hi); background: var(--overlay); }
.csv-copy svg { flex-shrink: 0; }
.csv-copy.done { color: var(--emerald); border-color: var(--emerald); }

/* Watermark on data charts. Sits in the card padding rather than the plot area,
   which is where the late-September peak runs. */
.aio-mark {
  position: absolute; top: 14px; left: 16px;
  width: 22px; height: auto; opacity: .72; pointer-events: none; z-index: 2;
  /* .post-content img carries a margin, border, radius and zoom cursor. Margin
     offsets an absolutely positioned box too, which pushed the mark onto the
     100% axis label, and the border drew a box around the logo. */
  margin: 0 !important; border: 0 !important; border-radius: 0 !important;
  cursor: default !important;
}
@media (max-width: 600px) { .aio-mark { width: 18px; top: 11px; left: 12px; } }

/* Expand control and full-screen state for data charts. */
.aio-expand {
  position: absolute; top: 12px; right: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 5px; padding: 4px 8px; cursor: pointer;
  font-family: 'JetBrains Mono', monospace; font-size: 9.5px;
  letter-spacing: .07em; text-transform: uppercase; color: var(--muted);
  /* Without this the longer "Close (esc)" label wrapped to two lines in the
     zoomed state and the control doubled in height. */
  white-space: nowrap; line-height: 1.35;
  opacity: .5; transition: opacity .15s, color .15s, border-color .15s;
}
.aio-chart:hover .aio-expand,
.aio-expand:focus-visible { opacity: 1; }
.aio-expand:hover { color: var(--text); border-color: var(--border-hi); }

.aio-backdrop {
  position: fixed; inset: 0; background: rgba(6, 8, 16, .88);
  backdrop-filter: blur(3px); z-index: 900;
  opacity: 0; pointer-events: none; transition: opacity .16s ease;
}
.aio-backdrop.on { opacity: 1; pointer-events: auto; }

.aio-chart.zoom {
  position: fixed; z-index: 901;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(1500px, 94vw); max-height: 92vh; margin: 0;
  display: flex; flex-direction: column; justify-content: center;
}
.aio-chart.zoom .aio-expand { opacity: 1; }
body.aio-locked { overflow: hidden; }
@media (max-width: 600px) { .aio-chart.zoom { width: 96vw; } }

/* Horizontal scroll affordance for wide data tables inside viz cards.
   Four layered backgrounds: two card-coloured covers pinned to the content
   (background-attachment: local) and two shadows pinned to the viewport
   (scroll). The shadow is only visible while there is more content in that
   direction, so it appears in a narrow column and vanishes when the table
   fits or is scrolled to the end. No JS. */
.viz-scroll {
  overflow-x: auto;
  background:
    linear-gradient(to right, #141d2e 36%, rgba(20,29,46,0)) left center,
    linear-gradient(to left,  #141d2e 36%, rgba(20,29,46,0)) right center,
    radial-gradient(farthest-side at 0 50%,   rgba(0,0,0,.42), rgba(0,0,0,0)) left center,
    radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,.42), rgba(0,0,0,0)) right center;
  background-repeat: no-repeat;
  background-size: 52px 100%, 52px 100%, 20px 100%, 20px 100%;
  background-attachment: local, local, scroll, scroll;
}

/* ── X post card (self-contained, no external embed) ── */
.x-post-wrap { margin: 14px 0; }
.x-post,
.post-content a.x-post,
.post-content a.x-post:hover {
  display: block; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 18px; margin: 0;
  /* .post-content a underlines links and outranks a bare .x-post rule, which
     underlined the whole card including the post body and translation. */
  text-decoration: none; transition: border-color .15s, background .15s;
}
.x-post * { text-decoration: none; }
.x-post:hover { border-color: var(--border-hi); background: var(--overlay); }
.x-post-top { display: flex; align-items: center; gap: 11px; margin-bottom: 11px; }
.x-post-av {
  width: 44px; height: 44px; flex-shrink: 0; object-fit: cover;
  /* .post-content img sets radius, border, margin and a zoom cursor, and wins
     on specificity, so each one is overridden here. */
  border-radius: 50% !important; border: 1px solid var(--border) !important;
  margin: 0 !important; cursor: pointer !important;
}
.x-post-id { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.x-post-name { font-size: 14.5px; font-weight: 600; color: var(--text); line-height: 1.3; }
.x-post-handle { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; color: var(--muted); }
.x-post-mark { flex-shrink: 0; color: var(--slate); opacity: .7; }
.x-post:hover .x-post-mark { opacity: 1; color: var(--text); }
.x-post-text {
  font-size: 14.5px; line-height: 1.65; color: var(--text);
  white-space: pre-wrap; word-wrap: break-word;
}
.x-post-more { color: var(--vlt); }
.x-post-tr {
  margin-top: 12px; padding: 11px 13px; border-radius: 8px;
  background: var(--bg); border: 1px solid var(--border);
}
.x-post-tr-label {
  display: block; font-family: 'JetBrains Mono', monospace; font-size: 9.5px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--slate);
  opacity: .8; margin-bottom: 6px;
}
.x-post-tr-text { font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.x-post-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--border);
}
.x-post-date, .x-post-cta {
  font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: .07em;
}
.x-post-date { color: var(--slate); opacity: .8; }
.x-post-cta { display: inline-flex; align-items: center; gap: 6px; text-transform: uppercase; color: var(--vlt); }
.x-post:hover .x-post-cta { color: var(--text); }
@media (max-width: 600px) {
  .x-post { padding: 14px 15px; }
  .x-post-av { width: 38px; height: 38px; }
  .x-post-text { font-size: 14px; }
}

/* ── Koi strip below the footer ── */
.koi-strip {
  position: relative;
  width: 100%;
  /* Breathing space between the footer links and the artwork. Margin rather
     than padding, because the image is absolutely positioned to the strip and
     padding would be covered by it. */
  margin-top: 30px;
  /* 20.83vw is width/4.8, the artwork's own aspect, so the strip matches the
     image exactly and nothing is cut off the top or bottom. The floor keeps it
     a strip rather than a sliver on phones, where it crops inward from the
     sides toward the two koi instead. */
  height: clamp(170px, 20.83vw, 720px);
  overflow: hidden;
  background: var(--bg);
}
.koi-strip img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  opacity: .62;
  /* Dissolves upward so the artwork has no top edge and no seam against the
     footer. Masked rather than faded with a gradient overlay so it works on
     any background. */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.6) 14%, #000 38%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.6) 14%, #000 38%);
}


/* ── Mobile horizontal overflow ─────────────────────────────────────────────
   Wide data tables and filter rows were sitting in the document flow, so the
   whole page scrolled sideways on a phone instead of the component scrolling
   inside itself. Measured on a 390px viewport before this: model tracker 852px
   over, cost calculator 420px, algorithm tracker 230px.

   .tbl-scroll above is unconditional - a table wider than its container should
   scroll at any viewport. The rest is scoped to narrow screens so desktop
   layout is untouched. Note that setting overflow-x on an element forces
   overflow-y to auto as well, which is why these are confined to the filter
   and pill rows rather than applied to a card that holds a dropdown. */
@media (max-width: 760px) {
  /* Wide data tables scroll inside themselves here rather than dragging the
     page sideways. This is scoped to narrow screens ON PURPOSE: overflow-x
     makes the element a scrolling ancestor, and .tbl-scroll thead th is
     position:sticky with top:120px, so applying it at all widths re-anchored
     the header to the top of the TABLE instead of the viewport and left it
     floating in the middle of the rows. The sticky header is dropped here for
     the same reason - a vertically sticky header inside a horizontally
     scrolling box is not worth the trade on a phone. */
  .tbl-scroll { overflow-x: auto; }
  .tbl-scroll thead th { position: static; top: auto; }

  .filter-group,
  #col-picker,
  #year-f {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 100%;
  }
  .filter-group::-webkit-scrollbar,
  #col-picker::-webkit-scrollbar,
  #year-f::-webkit-scrollbar { display: none; }

  /* Pills carry long labels; let them wrap rather than push the page wide. */
  .stat-pill {
    max-width: 100%;
    flex-wrap: wrap;
  }
}

/* Replaces paired onmouseover/onmouseout handlers that set borderColor by
   hand. Inline event handlers are not covered by CSP script hashes, so each
   one forced 'unsafe-inline' to stay in script-src. */
.hover-border { transition: border-color .15s ease; }
.hover-border:hover { border-color: var(--border-hi); }

/* App mockups are fixed-layout dashboards: a 52px rail plus content with its
   own intrinsic widths. The frame clips them on desktop, which is the intended
   look. On a phone the children still force the frame wider than the viewport,
   so there it scrolls inside itself instead of taking the page with it. */
.app-mock { overflow: hidden; }
@media (max-width: 760px) {
  .app-mock { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
}

/* ── Documentation (/docs/) ─────────────────────────────────────────────────
   Three columns: topic sidebar, content, on-this-page. Collapses to one on a
   phone, where the sidebar becomes a scrolling strip above the content. All
   colours come from the existing tokens so docs stay in the design system. */
.docs-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr) 200px;
  gap: 40px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 32px 32px 80px;
  align-items: start;
}

.docs-side { position: sticky; top: calc(var(--nav-h) + 20px); max-height: calc(100vh - var(--nav-h) - 40px); overflow-y: auto; }
.docs-side-head { margin-bottom: 14px; }
.docs-side-head .label { display: block; margin-bottom: 10px; }
.docs-filter {
  width: 100%; padding: 7px 10px; font-size: 12.5px; font-family: inherit;
  background: var(--overlay); border: 1px solid var(--border);
  border-radius: 7px; color: var(--text);
}
.docs-filter:focus { outline: none; border-color: var(--border-hi); }
.docs-group { margin-bottom: 20px; }
.docs-group-title {
  font-family: 'JetBrains Mono', monospace; font-size: 10px; text-transform: uppercase;
  letter-spacing: .11em; color: var(--muted); margin-bottom: 7px; padding-left: 10px;
}
.docs-link {
  display: block; padding: 5px 10px; font-size: 13.5px;
  color: var(--slate); text-decoration: none; border-radius: 6px; line-height: 1.45;
}
.docs-link:hover { color: var(--text); background: var(--overlay); }
.docs-link.on { color: var(--vlt); background: var(--overlay); font-weight: 500; }

.docs-main { min-width: 0; }
.docs-crumb { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); margin-bottom: 14px; }
.docs-crumb a { color: var(--muted); text-decoration: none; }
.docs-crumb a:hover { color: var(--vlt); }
.docs-crumb-sep { margin: 0 7px; opacity: .5; }
.docs-h1 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); font-weight: 700; line-height: 1.15; margin-bottom: 12px; }
.docs-summary { font-size: 1.02rem; color: var(--muted); line-height: 1.65; margin-bottom: 32px; max-width: 70ch; }

.docs-body { font-size: 15px; line-height: 1.75; color: var(--text); max-width: 74ch; }
.docs-body h2 { font-size: 1.3rem; font-weight: 650; margin: 40px 0 12px; scroll-margin-top: calc(var(--nav-h) + 24px); }
.docs-body h3 { font-size: 1.05rem; font-weight: 600; margin: 28px 0 8px; scroll-margin-top: calc(var(--nav-h) + 24px); }
.docs-body p { margin-bottom: 16px; color: var(--slate); }
.docs-body strong { color: var(--text); font-weight: 600; }
.docs-body a { color: var(--vlt); }
.docs-body ul, .docs-body ol { margin: 0 0 18px 20px; color: var(--slate); }
.docs-body li { margin-bottom: 7px; }
.docs-body code { font-family: 'JetBrains Mono', monospace; font-size: 12.5px; background: var(--overlay); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; color: var(--text); }
.docs-body pre { background: var(--overlay); border: 1px solid var(--border); border-radius: var(--rad); padding: 16px 18px; overflow-x: auto; margin-bottom: 20px; }
.docs-body pre code { background: none; border: none; padding: 0; font-size: 12.5px; line-height: 1.7; }
.docs-body table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 13.5px; }
.docs-body th { text-align: left; font-family: 'JetBrains Mono', monospace; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 500; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--border); }
.docs-body td { padding: 9px 12px 9px 0; border-bottom: 1px solid var(--border); color: var(--slate); vertical-align: top; }
.docs-body blockquote { border-left: 2px solid var(--border-hi); padding: 2px 0 2px 16px; margin: 0 0 20px; color: var(--muted); }

/* Cards for the index page */
.docs-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 8px 0 28px; }
.docs-card { display: block; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; text-decoration: none; }
.docs-card:hover { border-color: var(--border-hi); }
.docs-card-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.docs-card-desc { font-size: 12.5px; color: var(--muted); line-height: 1.6; }

.docs-pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border); }
.docs-pager-link { display: flex; flex-direction: column; gap: 3px; padding: 12px 16px; border: 1px solid var(--border); border-radius: 9px; text-decoration: none; font-size: 13.5px; color: var(--text); max-width: 48%; }
.docs-pager-link:hover { border-color: var(--border-hi); }
.docs-pager-next { text-align: right; align-items: flex-end; }
.docs-foot { margin-top: 32px; font-size: 12.5px; color: var(--muted); line-height: 1.7; }

.docs-toc { position: sticky; top: calc(var(--nav-h) + 20px); font-size: 12.5px; }
.docs-toc .label { display: block; margin-bottom: 10px; }
.docs-toc-link { display: block; padding: 4px 0 4px 10px; border-left: 1px solid var(--border); color: var(--muted); text-decoration: none; line-height: 1.45; }
.docs-toc-link.sub { padding-left: 22px; }
.docs-toc-link:hover { color: var(--text); }
.docs-toc-link.on { color: var(--vlt); border-left-color: var(--vlt); }

@media (max-width: 1100px) {
  .docs-shell { grid-template-columns: 220px minmax(0, 1fr); }
  .docs-toc { display: none; }
}
/* On desktop the toggle is irrelevant: the sidebar is always open. */
.docs-side-toggle { display: none; }

@media (max-width: 760px) {
  .docs-shell { grid-template-columns: 1fr; gap: 24px; padding: 20px 20px 60px; }
  .docs-side { position: static; max-height: none; border-bottom: 1px solid var(--border); padding-bottom: 18px; }
  /* Nineteen links above the content is a long scroll before you reach a word
     of it, so the list collapses behind a toggle on a phone. */
  /* .docs-side-head .label sets display:block at 0,2,0, so a bare .docs-side-label
     here loses the cascade and the heading renders twice on mobile. */
  .docs-side-head .docs-side-label { display: none; }
  .docs-side-toggle {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    width: 100%; padding: 10px 12px; font-family: 'JetBrains Mono', monospace;
    font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
    background: var(--overlay); border: 1px solid var(--border); border-radius: 8px; cursor: pointer;
  }
  .docs-side-toggle svg { transition: transform .15s ease; }
  .docs-side-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .docs-nav { display: none; margin-top: 12px; }
  .docs-nav.open { display: block; }
  /* The filter is for scanning a long list on a wide screen; behind a toggle
     on a phone it is redundant. */
  .docs-filter { display: none; }
  .docs-body { max-width: none; }
  .docs-pager { flex-direction: column; }
  .docs-pager-link { max-width: none; }
  .docs-pager-next { text-align: left; align-items: flex-start; }
}

/* ---------- Country flags (market coverage pages) -------------------------
   One 10.9 KB sprite covers all 36 flags. Shipping the flag-icons SVGs
   individually would be 209 KB and 36 requests, three quarters of it the
   Mexican and Spanish coats of arms, which are invisible at this size.

   Decorative only. Every flag sits beside its alpha-2 code and country name
   as text, because a dozen of these are indistinguishable at 20px and the
   table's whole value is that it is precise. Hence aria-hidden in the markup.
   -------------------------------------------------------------------------- */
.flag {
  display: inline-block;
  width: 20px;
  height: 15px;
  margin-right: 9px;
  vertical-align: -2px;
  border-radius: 2px;
  background-image: url('../images/flags.webp');
  background-size: 120px 90px;
  background-repeat: no-repeat;
  /* a hairline keeps the white-edged flags (JP, CH, PL) off a pale surface */
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .10);
}
.flag-ar { background-position: -0px -0px; }
.flag-at { background-position: -20px -0px; }
.flag-au { background-position: -40px -0px; }
.flag-be { background-position: -60px -0px; }
.flag-br { background-position: -80px -0px; }
.flag-ca { background-position: -100px -0px; }
.flag-ch { background-position: -0px -15px; }
.flag-cl { background-position: -20px -15px; }
.flag-cn { background-position: -40px -15px; }
.flag-de { background-position: -60px -15px; }
.flag-dk { background-position: -80px -15px; }
.flag-es { background-position: -100px -15px; }
.flag-fi { background-position: -0px -30px; }
.flag-fr { background-position: -20px -30px; }
.flag-gb { background-position: -40px -30px; }
.flag-hk { background-position: -60px -30px; }
.flag-id { background-position: -80px -30px; }
.flag-in { background-position: -100px -30px; }
.flag-it { background-position: -0px -45px; }
.flag-jp { background-position: -20px -45px; }
.flag-kr { background-position: -40px -45px; }
.flag-mx { background-position: -60px -45px; }
.flag-my { background-position: -80px -45px; }
.flag-nl { background-position: -100px -45px; }
.flag-no { background-position: -0px -60px; }
.flag-nz { background-position: -20px -60px; }
.flag-ph { background-position: -40px -60px; }
.flag-pl { background-position: -60px -60px; }
.flag-pt { background-position: -80px -60px; }
.flag-ru { background-position: -100px -60px; }
.flag-sa { background-position: -0px -75px; }
.flag-se { background-position: -20px -75px; }
.flag-tr { background-position: -40px -75px; }
.flag-tw { background-position: -60px -75px; }
.flag-us { background-position: -80px -75px; }
.flag-za { background-position: -100px -75px; }

/* ── Artifact panel: tabbed real payloads (CSV / API / MCP) ── */
.io-panel { background: var(--overlay); border: 1px solid var(--border-hi); border-radius: 10px; overflow: hidden; }
.io-tabs { display: flex; border-bottom: 1px solid var(--border-hi); background: var(--surface); overflow-x: auto; }
.io-tab {
  appearance: none; background: none; border: 0; border-bottom: 2px solid transparent;
  color: var(--muted); font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: .1em; text-transform: uppercase; padding: 13px 18px; cursor: pointer;
  white-space: nowrap; transition: color .15s, border-color .15s;
}
.io-tab:hover { color: var(--text); }
.io-tab.active { color: var(--vlt); border-bottom-color: var(--vlt); }
.io-pane { display: none; padding: 18px 20px; overflow-x: auto; }
.io-pane.active { display: block; }
.io-pane pre { margin: 0; font-family: 'JetBrains Mono', monospace; font-size: 12px; line-height: 1.75; color: var(--slate); white-space: pre; }
.io-req {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted);
  margin-bottom: 13px; padding-bottom: 11px; border-bottom: 1px solid var(--border);
}
.io-k { color: #a78bfa; }
.io-s { color: #34d399; }
.io-n { color: #60a5fa; }
.io-c { color: #64748b; }
.io-hl { color: var(--text); }

/* ── Format visualizations inside .io-panel ── */
.fmt-head { display:flex; align-items:center; gap:9px; margin-bottom:14px; padding-bottom:12px; border-bottom:1px solid var(--border); }
.fmt-head svg { width:16px; height:16px; flex-shrink:0; }
.fmt-head .fmt-name { font-family:'JetBrains Mono',monospace; font-size:11px; letter-spacing:.06em; color:var(--text); }
.fmt-head .fmt-sub  { font-family:'JetBrains Mono',monospace; font-size:11px; color:var(--muted); margin-left:auto; }

/* spreadsheet */
.fmt-sheet { width:100%; border-collapse:collapse; font-size:12px; min-width:620px; }
.fmt-sheet th { background:var(--surface); color:var(--muted); font-family:'JetBrains Mono',monospace; font-size:10px; letter-spacing:.07em; text-transform:uppercase; font-weight:500; text-align:left; padding:8px 11px; border:1px solid var(--border); white-space:nowrap; }
.fmt-sheet td { color:var(--slate); padding:9px 11px; border:1px solid var(--border); white-space:nowrap; }
.fmt-sheet td.num { font-family:'JetBrains Mono',monospace; text-align:right; color:var(--text); }
.fmt-sheet td.kw { color:var(--text); }
.fmt-sheet tr:nth-child(even) td { background:rgba(255,255,255,.012); }

/* json structure */
.fmt-tree { font-family:'JetBrains Mono',monospace; font-size:12px; min-width:520px; }
.fmt-node { display:flex; align-items:baseline; gap:10px; padding:5px 0; }
.fmt-node + .fmt-node { border-top:1px solid rgba(255,255,255,.035); }
.fmt-indent { display:inline-block; width:18px; flex-shrink:0; }
.fmt-key { color:#a78bfa; width:168px; flex-shrink:0; }
.fmt-val { color:var(--text); flex:1; }
.fmt-val.s { color:#34d399; }
.fmt-val.n { color:#60a5fa; }
.fmt-type { color:var(--muted); font-size:10px; letter-spacing:.06em; text-transform:uppercase; flex-shrink:0; }

/* mcp exchange */
.fmt-ex { display:grid; grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); gap:14px; }
.fmt-blk { background:var(--bg); border:1px solid var(--border); border-radius:8px; padding:14px 16px; }
.fmt-blk .fmt-blk-lab { font-family:'JetBrains Mono',monospace; font-size:10px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); margin-bottom:9px; }
.fmt-blk pre { margin:0; font-family:'JetBrains Mono',monospace; font-size:12px; line-height:1.7; color:var(--slate); white-space:pre-wrap; word-break:break-word; }
