/* Mattobot — design tokens */
:root {
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
  --font-display: 'Inter', system-ui, sans-serif;
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-2xl: 28px;
  --shadow-sm: 0 1px 0 rgba(0,0,0,0.04);
  --shadow-md: 0 4px 14px -2px rgba(0,0,0,0.18), 0 1px 0 rgba(0,0,0,0.04);
  --shadow-lg: 0 18px 40px -12px rgba(0,0,0,0.40), 0 2px 0 rgba(0,0,0,0.04);
  --ease: cubic-bezier(.2,.8,.2,1);
}

/* DARK (default) */
[data-theme="dark"] {
  --bg: oklch(0.16 0.012 260);
  --bg-2: oklch(0.18 0.012 260);
  --surface: oklch(0.21 0.012 260);
  --surface-2: oklch(0.24 0.013 260);
  --surface-hi: oklch(0.27 0.014 260);
  --border: oklch(0.30 0.014 260);
  --border-strong: oklch(0.40 0.018 260);
  --text: oklch(0.97 0.005 260);
  --text-2: oklch(0.82 0.010 260);
  --muted: oklch(0.62 0.012 260);
  --faint: oklch(0.45 0.012 260);
  --accent: oklch(0.86 0.20 130);
  --accent-ink: oklch(0.18 0.05 130);
  --accent-soft: oklch(0.86 0.20 130 / 0.12);
  --up: oklch(0.78 0.18 145);
  --down: oklch(0.68 0.22 25);
  --warn: oklch(0.82 0.16 75);
  --info: oklch(0.78 0.13 230);
  --grid: oklch(0.30 0.014 260 / 0.4);
  color-scheme: dark;
}

/* LIGHT */
[data-theme="light"] {
  --bg: oklch(0.98 0.004 260);
  --bg-2: oklch(0.96 0.005 260);
  --surface: oklch(1 0 0);
  --surface-2: oklch(0.97 0.005 260);
  --surface-hi: oklch(0.94 0.007 260);
  --border: oklch(0.90 0.008 260);
  --border-strong: oklch(0.78 0.010 260);
  --text: oklch(0.18 0.012 260);
  --text-2: oklch(0.32 0.012 260);
  --muted: oklch(0.50 0.012 260);
  --faint: oklch(0.65 0.010 260);
  --accent: oklch(0.72 0.20 135);
  --accent-ink: oklch(0.18 0.03 130);
  --accent-soft: oklch(0.86 0.16 130 / 0.18);
  --up: oklch(0.62 0.18 145);
  --down: oklch(0.58 0.22 25);
  --warn: oklch(0.72 0.16 70);
  --info: oklch(0.58 0.16 230);
  --grid: oklch(0.85 0.008 260 / 0.6);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { overflow-x: hidden; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 14.5px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  transition: background .25s var(--ease), color .25s var(--ease);
  overflow-x: hidden;
  max-width: 100vw;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; color: inherit; }

.mono { font-family: var(--font-mono); font-feature-settings: "zero","ss01"; letter-spacing: -0.01em; }
.tbl td.mono, .tbl th.mono { white-space: nowrap; }
.tabular { font-variant-numeric: tabular-nums; }

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

/* Scrollbars */
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; border: 2px solid var(--bg); }
*::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

/* App shell */
.app { min-height: 100vh; display: flex; flex-direction: column; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 13px; font-weight: 500;
  letter-spacing: -0.01em;
  transition: all .15s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--surface-2); border-color: var(--border-strong); }
.btn-primary {
  background: var(--accent); color: var(--accent-ink);
  border-color: transparent;
  font-weight: 600;
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-lg { height: 44px; padding: 0 20px; font-size: 14px; border-radius: var(--r-md); }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12px; border-radius: var(--r-sm); }
.btn-icon { width: 36px; padding: 0; justify-content: center; }
.btn-icon.btn-sm { width: 28px; }

/* Pill / badge */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 500;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-2);
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.pill .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--muted); }
.pill.pill-up { color: var(--up); border-color: oklch(from var(--up) l c h / 0.3); background: oklch(from var(--up) l c h / 0.10); }
.pill.pill-up .dot { background: var(--up); }
.pill.pill-down { color: var(--down); border-color: oklch(from var(--down) l c h / 0.3); background: oklch(from var(--down) l c h / 0.10); }
.pill.pill-warn { color: var(--warn); border-color: oklch(from var(--warn) l c h / 0.3); background: oklch(from var(--warn) l c h / 0.10); }
.pill.pill-accent { color: var(--accent); border-color: oklch(from var(--accent) l c h / 0.4); background: var(--accent-soft); }
.pill.pill-accent .dot { background: var(--accent); }

/* Card */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

/* Input */
.input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color .12s var(--ease), box-shadow .12s var(--ease);
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input::placeholder { color: var(--faint); }
textarea.input { height: auto; padding: 10px 12px; resize: vertical; }

/* Field */
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 12px; color: var(--muted); font-weight: 500; letter-spacing: -0.005em; }
.field-help { font-size: 11.5px; color: var(--faint); }

/* Section spacers */
.h1 { font-size: clamp(40px, 6vw, 76px); line-height: 0.98; letter-spacing: -0.04em; font-weight: 600; }
.h2 { font-size: clamp(28px, 3.5vw, 44px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 600; }
.h3 { font-size: 20px; letter-spacing: -0.02em; font-weight: 600; }
.eyebrow { font-family: var(--font-mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; }

/* Animated subtle grid background */
.grid-bg {
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
}

/* Aurora background — animated gradient blobs */
.aurora {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.aurora::before, .aurora::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .35;
}
.aurora::before {
  width: 520px; height: 520px;
  background: oklch(from var(--accent) l c h / 0.7);
  top: -160px; left: -120px;
  animation: aur1 18s ease-in-out infinite alternate;
}
.aurora::after {
  width: 420px; height: 420px;
  background: oklch(from var(--info) l c h / 0.5);
  bottom: -160px; right: -80px;
  animation: aur2 22s ease-in-out infinite alternate;
}
[data-theme="light"] .aurora::before { opacity: .25; }
[data-theme="light"] .aurora::after { opacity: .18; }
@keyframes aur1 {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(120px, 80px) scale(1.15); }
}
@keyframes aur2 {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(-100px, -60px) scale(1.2); }
}

/* Marquee fade edges */
.fade-edges {
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

/* Card hover lift */
.lift { transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease); }
.lift:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }

/* Subtle line-pattern divider */
.section-mark {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.section-mark::before {
  content: ""; width: 22px; height: 1px; background: var(--accent);
}

/* Heatmap cell */
.heat-grid { display: grid; grid-template-columns: repeat(30, 1fr); gap: 3px; }
.heat-cell {
  aspect-ratio: 1; border-radius: 2px; background: var(--surface-2);
  transition: transform .15s var(--ease);
}
.heat-cell:hover { transform: scale(1.5); z-index: 1; }

/* Command palette */
.cmdk-backdrop {
  position: fixed; inset: 0; background: rgba(8,10,14,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 80;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 12vh 20px 20px;
  animation: fadeIn .12s var(--ease);
}
.cmdk {
  width: 100%; max-width: 580px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: dialogIn .15s var(--ease);
}
.cmdk-input {
  width: 100%; height: 50px;
  padding: 0 18px 0 46px;
  background: transparent; color: var(--text);
  border: none; outline: none;
  font-size: 15px;
  border-bottom: 1px solid var(--border);
}
.cmdk-input::placeholder { color: var(--faint); }
.cmdk-list { max-height: 400px; overflow-y: auto; padding: 6px; }
.cmdk-item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px; border-radius: var(--r-sm);
  cursor: pointer; font-size: 13.5px;
}
.cmdk-item.active { background: var(--accent-soft); }
.cmdk-item .cmdk-cat { margin-left: auto; font-size: 11px; color: var(--muted); font-family: var(--font-mono); }
.cmdk-section { padding: 8px 12px 4px; font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); }

/* Better stat */
.stat-row {
  display: flex; align-items: baseline; gap: 8px;
}
.stat-row .delta-up { color: var(--up); font-size: 12px; font-weight: 500; }
.stat-row .delta-down { color: var(--down); font-size: 12px; font-weight: 500; }

/* Live tag with pulsing background */
.live-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 8px;
  background: oklch(from var(--up) l c h / 0.10);
  color: var(--up);
  border: 1px solid oklch(from var(--up) l c h / 0.3);
  border-radius: 999px;
  font-family: var(--font-mono); font-size: 10.5px;
  text-transform: uppercase; letter-spacing: 0.06em;
  font-weight: 500;
}

/* Marketplace card hover overlay */
.indicator-card .ic-overlay {
  position: absolute; inset: auto 0 0 0;
  padding: 12px;
  background: linear-gradient(180deg, transparent, oklch(from var(--bg) l c h / 0.92) 60%);
  display: flex; gap: 10px; align-items: end;
  opacity: 0; transform: translateY(8px);
  transition: opacity .2s var(--ease), transform .25s var(--ease);
}
.indicator-card:hover .ic-overlay { opacity: 1; transform: translateY(0); }
.ic-overlay .mini-stat {
  font-family: var(--font-mono); font-size: 10.5px; color: var(--text);
  background: oklch(from var(--bg) l c h / 0.7);
  border: 1px solid var(--border);
  padding: 4px 8px; border-radius: 4px;
  backdrop-filter: blur(8px);
}

/* Hover shine — only for accent surfaces */
.ic-shine::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), oklch(from var(--accent) l c h / 0.10), transparent 40%);
  opacity: 0; transition: opacity .2s var(--ease);
  pointer-events: none;
}
.indicator-card:hover .ic-shine::before { opacity: 1; }

/* Reveal-on-load */
@keyframes revealUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { animation: revealUp .5s var(--ease) both; }
.reveal-2 { animation-delay: .08s; }
.reveal-3 { animation-delay: .16s; }
.reveal-4 { animation-delay: .24s; }

/* Number ticker styling */
.ticker-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* Marketplace toolbar sticky */
.market-toolbar {
  position: sticky; top: 60px; z-index: 10;
  background: oklch(from var(--bg) l c h / 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 14px 0;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
}

/* Subtle scan line for "data" surfaces */
.scanline {
  position: relative;
}
.scanline::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 3px, oklch(from var(--text) l c h / 0.012) 3px 4px);
}

/* Pricing card highlight */
.plan-card {
  position: relative; overflow: hidden;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.plan-card.popular {
  border-color: var(--accent) !important;
  background: linear-gradient(180deg, var(--accent-soft), var(--surface) 80%);
}
.plan-card .pop-tag {
  position: absolute; top: 12px; right: 12px;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 4px;
}

/* Spark line scaffold */
.spark { display:block; width: 100%; height: 100%; }

/* Toast */
.toasts {
  position: fixed; right: 18px; bottom: 18px; z-index: 100;
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.toast {
  pointer-events: auto;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: 10px 14px;
  font-size: 13px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px;
  animation: toastIn .25s var(--ease);
  min-width: 240px;
}
.toast .toast-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--accent); flex: none; }
.toast.error .toast-dot { background: var(--down); }
@keyframes toastIn {
  from { transform: translateY(8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Dialog */
.dialog-backdrop {
  position: fixed; inset: 0; background: rgba(8,10,14,0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 60;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn .15s var(--ease);
}
[data-theme="light"] .dialog-backdrop { background: rgba(20,24,32,0.45); }
.dialog {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  max-width: 100%;
  width: 480px;
  animation: dialogIn .2s var(--ease);
}
.dialog-lg { width: 720px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes dialogIn {
  from { transform: translateY(8px) scale(.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

/* Ticker */
.ticker {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  overflow: hidden;
  white-space: nowrap;
  display: flex;
}
.ticker-track {
  display: inline-flex;
  gap: 32px;
  padding: 10px 0;
  animation: tickerScroll 60s linear infinite;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.ticker-track .up { color: var(--up); }
.ticker-track .down { color: var(--down); }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Marquee logos */
.brands-row {
  display: flex; align-items: center; gap: 56px;
  font-family: var(--font-mono); color: var(--muted); font-size: 14px; letter-spacing: -0.01em;
  white-space: nowrap;
}

/* Sidebar nav for dashboard */
.side {
  width: 240px;
  border-right: 1px solid var(--border);
  background: var(--bg);
  padding: 18px 14px;
  display: flex; flex-direction: column; gap: 4px;
  flex: none;
}
.side-section { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--faint); text-transform: uppercase; padding: 14px 10px 6px; font-weight: 500;}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  height: 34px; padding: 0 10px;
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-size: 13.5px; font-weight: 500;
  cursor: pointer;
  transition: background .12s var(--ease), color .12s var(--ease);
  position: relative;
}
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active { background: var(--surface-2); color: var(--text); }
.nav-item.active::before {
  content: ""; position: absolute; left: -14px; top: 7px; bottom: 7px;
  width: 2px; background: var(--accent); border-radius: 0 2px 2px 0;
}
.nav-item .nav-badge { margin-left: auto; }

/* Top bar */
.topbar {
  height: 60px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
  background: var(--bg);
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Logo */
.logo {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; letter-spacing: -0.025em; font-size: 16px;
  color: var(--text);
}
.logo-mark {
  width: 22px; height: 22px;
  position: relative;
  display: inline-block;
}

/* Stat tile */
.stat {
  padding: 16px 18px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex; flex-direction: column; gap: 6px;
}
.stat .label { font-size: 12px; color: var(--muted); font-weight: 500; letter-spacing: -0.005em; }
.stat .value { font-family: var(--font-mono); font-size: 26px; letter-spacing: -0.02em; font-weight: 500; }
.stat .delta { font-size: 12px; }

/* Table */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { text-align: left; padding: 12px 14px; font-size: 13px; border-bottom: 1px solid var(--border); }
.tbl th { font-weight: 500; color: var(--muted); font-size: 11.5px; letter-spacing: 0.04em; text-transform: uppercase; background: var(--bg-2); position: sticky; top: 0; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: var(--surface-2); }

/* Dot blink */
.live-dot {
  width: 7px; height: 7px; border-radius: 999px; background: var(--up);
  box-shadow: 0 0 0 0 oklch(from var(--up) l c h / 0.6);
  animation: pulse 1.6s var(--ease) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 oklch(from var(--up) l c h / 0.6); }
  70% { box-shadow: 0 0 0 8px oklch(from var(--up) l c h / 0); }
  100% { box-shadow: 0 0 0 0 oklch(from var(--up) l c h / 0); }
}

/* Hero chart placeholder */
.chart-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
}

/* Hover shine */
.shine {
  position: relative; overflow: hidden;
}
.shine::after {
  content:""; position:absolute; inset:0;
  background: linear-gradient(115deg, transparent 30%, oklch(from var(--accent) l c h / 0.12) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .9s var(--ease);
  pointer-events: none;
}
.shine:hover::after { transform: translateX(100%); }

/* Soft divider */
.divider { height: 1px; background: var(--border); }

/* Container */
.container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.container-wide { max-width: 1400px; }

/* Responsive utilities */
@media (max-width: 860px) {
  .hide-mobile { display: none !important; }
}
@media (min-width: 861px) {
  .show-mobile { display: none !important; }
}

/* Indicator preview "chart" — pure CSS */
.fake-chart {
  position: relative; width: 100%; height: 100%; min-height: 220px;
  background:
    radial-gradient(ellipse at 80% 30%, oklch(from var(--accent) l c h / 0.06), transparent 60%),
    linear-gradient(180deg, transparent 50%, var(--bg-2) 100%);
}

/* Loader bar */
.bar { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.bar > div { height: 100%; background: var(--accent); border-radius: 999px; transition: width .3s var(--ease); }

/* Tooltip-ish hint */
.kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; padding: 0 5px; height: 18px;
  border-radius: 4px;
  background: var(--surface-2); border: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 10.5px; color: var(--muted);
}

/* Hero tag chip */
.tag-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  border: 1px solid oklch(from var(--accent) l c h / 0.25);
  flex-wrap: wrap;
  max-width: 100%;
  line-height: 1.5;
}

/* Tabs */
.tabs { display: inline-flex; gap: 2px; background: var(--surface-2); padding: 3px; border-radius: var(--r-sm); border: 1px solid var(--border); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs > button {
  border: none; background: transparent; color: var(--muted);
  height: 28px; padding: 0 12px; border-radius: 4px;
  font-size: 12.5px; font-weight: 500;
  cursor: pointer;
  transition: color .12s var(--ease), background .12s var(--ease);
  flex: none;
  white-space: nowrap;
}
.tabs > button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* Skeleton */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%);
  background-size: 200% 100%; animation: shimmer 1.5s linear infinite;
  border-radius: var(--r-sm);
}

/* Page transitions */
.view-enter { animation: viewIn .25s var(--ease); }
@keyframes viewIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  background: var(--bg);
  margin-top: 80px;
}
@media (max-width: 600px) {
  .footer { padding: 32px 0 24px; margin-top: 48px; }
}

/* Hide scrollbar utility */
.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* Mobile dashboard */
.mobile-nav-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 40; animation: fadeIn .15s var(--ease);
}

/* Dashboard main content area */
.dash-main { padding: 24px; flex: 1; min-width: 0; }
@media (max-width: 600px) { .dash-main { padding: 16px; } }
@media (max-width: 380px) { .dash-main { padding: 12px; } }

/* Dashboard topbar title ellipsis on narrow screens */
@media (max-width: 480px) {
  .topbar-title { font-size: 16px !important; }
  .topbar { gap: 8px; }
  .topbar-right { gap: 4px !important; }
  .topbar .btn-icon { width: 32px; }
}

@media (max-width: 860px) {
  .side {
    position: fixed; left: 0; top: 0; bottom: 0;
    z-index: 50; transform: translateX(-100%);
    transition: transform .25s var(--ease);
    box-shadow: var(--shadow-lg);
  }
  .side.open { transform: translateX(0); }
  .topbar { padding: 0 16px; }
  .container { padding: 0 16px; }
}

/* Print friendly indicator card */
.indicator-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.indicator-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.indicator-thumb {
  aspect-ratio: 16/9;
  position: relative;
  background: var(--bg-2);
  overflow: hidden;
}

/* Section header pattern */
.section-head {
  display: flex; align-items: end; justify-content: space-between; gap: 24px;
  margin-bottom: 28px;
}

/* Hero number callouts */
.callout-row { display: flex; gap: 32px; flex-wrap: wrap; }
.callout-row > div { display: flex; flex-direction: column; }
.callout-row .v { font-family: var(--font-mono); font-size: 28px; letter-spacing: -0.02em; font-weight: 500; }
.callout-row .l { font-size: 12px; color: var(--muted); }

/* Marketing nav link */
.mlink { color: var(--text-2); font-size: 13.5px; font-weight: 500; padding: 6px 10px; border-radius: 6px; }
.mlink:hover { color: var(--text); background: var(--surface-2); }

/* Wallet pill */
.wallet-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-2);
}

/* "Coming soon" lock */
.locked-card {
  position: relative;
  overflow: hidden;
}
.locked-card .lock-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent, var(--bg) 70%);
  display: flex; align-items: end; justify-content: center;
  padding: 28px;
  pointer-events: none;
}

/* Step indicator */
.steps { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; }
.steps .step {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted);
}
@media (max-width: 540px) {
  .steps .step > span:not(.num) { display: none; }
  .steps .step { gap: 0; }
}
.steps .step .num {
  width: 22px; height: 22px; border-radius: 999px;
  border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
}
.steps .step.active { color: var(--text); }
.steps .step.active .num { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.steps .step.done .num { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.steps .sep { flex: 1; height: 1px; background: var(--border); }

/* Logo mark drawing */
.logo-mark::before, .logo-mark::after {
  content: ""; position: absolute; inset: 0;
}
.logo-mark::before {
  background: var(--accent);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.logo-mark::after {
  background: var(--bg);
  clip-path: polygon(50% 18%, 50% 82%, 18% 50%);
  mix-blend-mode: normal;
}
[data-theme="light"] .logo-mark::after { background: var(--bg); }

/* Diagonal bisect on the diamond */
.logo-mark .slash {
  position: absolute; inset: 0;
  background: var(--accent-ink);
  clip-path: polygon(46% 0, 54% 0, 54% 100%, 46% 100%);
  transform: rotate(45deg);
}

/* ═══════════════════ NEW NAVBAR ═══════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: 64px;
  background: oklch(from var(--bg) l c h / 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.navbar-scrolled {
  background: oklch(from var(--bg) l c h / 0.85);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 8px 30px -16px rgba(0,0,0,0.25);
}
.navbar-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.navbar-left { display: flex; align-items: center; gap: 28px; min-width: 0; }
.navbar-logo { flex-shrink: 0; }
.navbar-links { display: flex; align-items: center; gap: 2px; }
.nav-item-wrap { position: relative; padding: 8px 0; }

.nlink {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 12px;
  border-radius: var(--r-md);
  background: transparent; border: 0;
  font-family: inherit; font-size: 13.5px; font-weight: 500;
  color: var(--text-2); cursor: pointer;
  text-decoration: none;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.nlink:hover, .nlink-active { background: var(--surface-2); color: var(--text); }
.nlink-active svg { transform: rotate(-90deg) !important; }

.navbar-right { display: flex; align-items: center; gap: 8px; }
.nav-search {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 10px 0 12px; min-width: 220px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-family: inherit; font-size: 13px; color: var(--text);
  cursor: pointer; transition: all .15s var(--ease);
}
.nav-search:hover { border-color: var(--border-strong); background: var(--surface); }

/* ═══════════════════ MEGA MENU ═══════════════════ */
.megamenu {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.40);
  animation: mmIn .18s var(--ease);
}
@keyframes mmIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.mm-eyebrow {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 12px; font-weight: 500;
}
.mm-cat {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px; background: transparent; border: 0;
  border-radius: var(--r-sm);
  font-family: inherit; font-size: 13px; color: var(--text-2);
  cursor: pointer; text-align: left;
  transition: all .12s var(--ease);
}
.mm-cat:hover { background: var(--surface-2); color: var(--text); }
.mm-cat:hover svg { color: var(--accent); transform: translateX(2px); }
.mm-cat svg { transition: all .15s var(--ease); color: var(--faint); }
.mm-cat-accent { color: var(--accent); font-weight: 500; }
.mm-cat-accent:hover { color: var(--accent); }

.mm-link {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px; border-radius: var(--r-md);
  cursor: pointer; text-decoration: none; color: inherit;
  transition: background .12s var(--ease);
}
.mm-link:hover { background: var(--surface-2); }
.mm-link-ico {
  flex-shrink: 0; width: 32px; height: 32px;
  display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-sm); color: var(--accent);
}
.mm-link-t { display: block; font-weight: 500; font-size: 13px; color: var(--text); }
.mm-link-d { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

.mm-feat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); overflow: hidden;
  cursor: pointer; text-align: left; padding: 0;
  transition: all .15s var(--ease);
}
.mm-feat:hover { border-color: var(--accent); transform: translateY(-2px); }
.mm-feat-thumb {
  height: 84px; background: var(--bg-2);
  border-bottom: 1px solid var(--border); position: relative; overflow: hidden;
}

.mm-prod {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-md);
  cursor: pointer; text-align: left;
  transition: all .15s var(--ease);
}
.mm-prod:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.mm-prod-ico {
  flex-shrink: 0; width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  border-radius: var(--r-sm);
}
.mm-prod-t {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 14px; color: var(--text); margin-bottom: 4px;
}
.mm-prod-d { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.mm-status {
  font-family: var(--font-mono); font-size: 9.5px;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 2px 6px; border-radius: 999px;
}
.mm-status-live { background: oklch(from var(--up) l c h / 0.15); color: var(--up); }
.mm-status-soon { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }

/* ═══════════════════ MOBILE DRAWER ═══════════════════ */
.nav-burger {
  width: 40px; height: 40px;
  display: grid; place-items: center; gap: 4px;
  background: transparent; border: 1px solid var(--border);
  border-radius: var(--r-md); cursor: pointer;
  grid-template-rows: repeat(3, 2px);
}
.nav-burger span {
  display: block; width: 18px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all .2s var(--ease);
}
.nav-mobile-open .nav-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-mobile-open .nav-burger span:nth-child(2) { opacity: 0; }
.nav-mobile-open .nav-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-drawer-backdrop {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  animation: fadeIn .15s var(--ease);
}
.mobile-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(92vw, 360px);
  background: var(--bg); border-left: 1px solid var(--border);
  display: flex; flex-direction: column;
  animation: drawerIn .22s var(--ease);
}
@keyframes drawerIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
.md-eyebrow {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--faint); padding: 8px 12px 6px; font-weight: 500;
}
.md-link {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; border-radius: var(--r-md);
  font-size: 14px; color: var(--text); text-decoration: none;
  cursor: pointer;
}
.md-link:hover { background: var(--surface-2); }
.md-link-sub { font-size: 13px; color: var(--text-2); padding: 8px 12px; }

/* Tablet utility */
@media (max-width: 1100px) {
  .hide-tablet { display: none !important; }
}

/* Mobile responsive for navbar */
@media (max-width: 860px) {
  .navbar { height: 56px; }
  .navbar-inner { padding: 0 16px; }
}
@media (min-width: 861px) {
  .nav-burger { display: none; }
}

/* ═══════════════════ FAQ SECTION ═══════════════════ */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}
.faq-aside { position: sticky; top: 96px; }
.faq-contact {
  margin-top: 8px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 8px;
  display: flex; flex-direction: column;
}
.faq-contact-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  border-radius: var(--r-md);
  transition: background .15s var(--ease);
}
.faq-contact-row:hover { background: var(--surface-2); }
.faq-contact-row + .faq-contact-row { border-top: 1px solid var(--border); border-radius: 0; }
.faq-contact-row + .faq-contact-row:hover { background: var(--surface-2); }
.faq-contact-ico {
  flex-shrink: 0; width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  border-radius: var(--r-sm);
}
.faq-contact-t { font-size: 13px; font-weight: 500; color: var(--text); }
.faq-contact-d { font-size: 12px; color: var(--muted); margin-top: 2px; }

.faq-right { display: flex; flex-direction: column; gap: 18px; }
.faq-tabs {
  display: flex; gap: 4px; flex-wrap: wrap;
  padding: 4px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px;
  align-self: flex-start;
}
.faq-tab {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 14px;
  background: transparent; border: 0; cursor: pointer;
  border-radius: 999px;
  font-family: inherit; font-size: 12.5px; font-weight: 500;
  color: var(--text-2);
  transition: all .15s var(--ease);
}
.faq-tab:hover { color: var(--text); }
.faq-tab-active {
  background: var(--accent); color: var(--accent-ink) !important;
}
.faq-tab-count {
  font-family: var(--font-mono); font-size: 10px;
  padding: 1px 6px; border-radius: 999px;
  background: oklch(from currentColor l c h / 0.18);
}
.faq-tab-active .faq-tab-count { background: oklch(from var(--accent-ink) l c h / 0.18); }

.faq-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 0; }
.faq-q {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px; align-items: center;
  width: 100%; padding: 22px 24px;
  background: transparent; border: 0; cursor: pointer;
  font-family: inherit; text-align: left;
  transition: background .12s var(--ease);
}
.faq-q:hover { background: var(--surface-2); }
.faq-q-num {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--faint); letter-spacing: 0.06em;
}
.faq-q-text {
  font-size: 15px; font-weight: 500; color: var(--text);
  line-height: 1.4;
}
.faq-q-icon {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 50%; color: var(--text-2);
  transition: all .25s var(--ease);
}
.faq-item-open .faq-q-icon {
  background: var(--accent); border-color: var(--accent);
  color: var(--accent-ink); transform: rotate(135deg);
}
.faq-item-open .faq-q-text { color: var(--accent); }
.faq-a-wrap {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .28s var(--ease);
}
.faq-item-open .faq-a-wrap { grid-template-rows: 1fr; }
.faq-a {
  overflow: hidden;
  padding: 0 24px;
  color: var(--text-2); font-size: 14px; line-height: 1.6;
}
.faq-item-open .faq-a {
  padding: 0 24px 22px 60px;
}

@media (max-width: 900px) {
  .faq-grid { grid-template-columns: 1fr; gap: 36px; }
  .faq-aside { position: static; }
  .faq-q { padding: 18px 18px; gap: 12px; }
  .faq-q-text { font-size: 14px; }
  .faq-item-open .faq-a { padding: 0 18px 18px 18px; }
}

/* ═══════════════════ AUTH PAGES ═══════════════════ */
.auth-root {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  background: var(--bg);
}
.auth-form-col {
  display: flex; flex-direction: column;
  padding: 28px 40px;
  min-height: 100vh;
}
.auth-form-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.auth-back {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: var(--r-md);
  font-size: 12.5px; color: var(--text-2); text-decoration: none;
  background: transparent;
  transition: background .15s var(--ease);
}
.auth-back:hover { background: var(--surface-2); color: var(--text); }
.auth-form-body {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 32px 0;
}
.auth-form-foot {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--muted);
}
.auth-foot-links { display: flex; gap: 16px; }
.auth-foot-links a {
  color: var(--muted); text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.auth-foot-links a:hover { color: var(--text); }

.auth-h {
  font-size: clamp(28px, 4vw, 36px); font-weight: 600;
  margin: 0 0 8px; letter-spacing: -0.02em; line-height: 1.1;
}
.auth-sub {
  color: var(--text-2); font-size: 15px;
  margin: 0 0 28px;
}

/* Social row */
.auth-social {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  margin-bottom: 18px;
}
.auth-social-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  height: 44px; padding: 0 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-family: inherit; font-size: 13.5px; font-weight: 500;
  color: var(--text); cursor: pointer;
  transition: all .15s var(--ease);
}
.auth-social-btn:hover {
  background: var(--surface-2); border-color: var(--border-strong);
  transform: translateY(-1px);
}

.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0 18px;
  font-size: 11.5px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}

/* Custom input */
.ainput-wrap { display: flex; flex-direction: column; gap: 6px; }
.ainput {
  display: flex; align-items: stretch;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color .15s var(--ease), background .15s var(--ease), box-shadow .15s var(--ease);
}
.ainput-focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px oklch(from var(--accent) l c h / 0.12);
}
.ainput-ico {
  flex-shrink: 0; width: 44px;
  display: grid; place-items: center;
  color: var(--muted);
}
.ainput-focus .ainput-ico, .ainput-filled .ainput-ico { color: var(--accent); }
.ainput-prefix {
  display: flex; align-items: center;
  padding-left: 14px; padding-right: 0;
  font-family: var(--font-mono); color: var(--muted);
  font-size: 14px;
}
.ainput-field {
  flex: 1; min-width: 0; position: relative;
  padding: 8px 12px 6px 4px;
}
.ainput-ico + .ainput-field { padding-left: 0; }
.ainput-prefix + .ainput-field { padding-left: 4px; }
.ainput-label {
  position: absolute; left: 4px; top: 16px;
  font-size: 14px; color: var(--muted);
  pointer-events: none;
  transition: all .15s var(--ease);
  transform-origin: left top;
}
.ainput-focus .ainput-label,
.ainput-filled .ainput-label {
  transform: translateY(-9px) scale(0.78);
  color: var(--text-2);
  font-weight: 500;
}
.ainput-focus .ainput-label { color: var(--accent); }
.ainput input, .ainput-field input {
  width: 100%; border: 0; outline: 0;
  background: transparent;
  padding: 14px 0 0;
  font-family: inherit; font-size: 14px; color: var(--text);
}
.ainput input::placeholder { color: var(--faint); font-size: 13px; }
.ainput-action {
  flex-shrink: 0; width: 44px;
  display: grid; place-items: center;
  background: transparent; border: 0; cursor: pointer;
  color: var(--muted);
  transition: color .15s var(--ease);
}
.ainput-action:hover { color: var(--text); }
.ainput-hint { font-size: 11.5px; color: var(--muted); padding: 0 4px; line-height: 1.4; }

/* Password strength */
.pw-strength {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 4px 0;
}
.pw-strength-bars {
  display: flex; gap: 4px; flex: 1;
}
.pw-strength-bars > div {
  flex: 1; height: 3px; border-radius: 2px;
  transition: background .2s var(--ease);
}
.pw-strength-label {
  font-family: var(--font-mono); font-size: 10.5px;
  text-transform: uppercase; letter-spacing: 0.06em;
  font-weight: 500; min-width: 50px; text-align: right;
}

.auth-spinner {
  display: inline-block; width: 14px; height: 14px;
  border: 1.5px solid currentColor; border-right-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.auth-switch {
  font-size: 13.5px; color: var(--muted);
  margin-top: 24px; text-align: center;
}
.auth-switch a { color: var(--accent); text-decoration: none; font-weight: 500; }
.auth-switch a:hover { text-decoration: underline; }

/* Showcase column */
.auth-show-col {
  position: relative; overflow: hidden;
  background: var(--bg-2);
  border-left: 1px solid var(--border);
}
.auth-show-inner {
  position: relative; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding: 56px 48px;
  max-width: 620px; margin: 0 auto;
}
.auth-show-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  align-self: flex-start;
  padding: 6px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 11.5px; color: var(--text-2);
  font-family: var(--font-mono);
  margin-bottom: 24px;
}
.auth-show-title {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600; letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 28px;
}
.auth-show-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 18px;
}
.auth-show-card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-2); border-bottom: 1px solid var(--border);
}

.auth-show-stream {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 12px 14px;
  margin-bottom: 24px;
}
.auth-show-stream-head {
  display: flex; justify-content: space-between;
  margin-bottom: 8px;
}
.auth-show-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 6px;
  border-top: 1px solid var(--border);
  animation: slideInRight .4s var(--ease) both;
}
.auth-show-row:nth-child(2) { border-top: 0; }
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: translateX(0); }
}
.auth-show-side {
  font-family: var(--font-mono); font-size: 9.5px;
  font-weight: 600; padding: 2px 6px; border-radius: 3px;
  letter-spacing: 0.06em;
}
.auth-show-side-long { background: oklch(from var(--up) l c h / 0.18); color: var(--up); }
.auth-show-side-short { background: oklch(from var(--down) l c h / 0.18); color: var(--down); }

.auth-show-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.auth-show-stats > div { padding: 14px 0; border-top: 1px solid var(--border); }
.auth-show-stats .v {
  font-family: var(--font-mono); font-size: 22px; font-weight: 600;
  color: var(--text); letter-spacing: -0.02em;
}
.auth-show-stats .l {
  font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-top: 4px;
}

/* Onboard list (signup side) */
.auth-onboard {
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 28px;
}
.auth-onboard-row {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: all .2s var(--ease);
}
.auth-onboard-row:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}
.auth-onboard-num {
  flex-shrink: 0;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  border-radius: var(--r-sm);
}
.auth-onboard-t { font-weight: 600; font-size: 14px; color: var(--text); margin-bottom: 2px; }
.auth-onboard-d { font-size: 12.5px; color: var(--muted); line-height: 1.4; }

.auth-quote {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 22px;
}
.auth-quote-stars {
  display: flex; gap: 2px; color: var(--accent);
  font-size: 14px; margin-bottom: 12px;
}
.auth-quote-text {
  margin: 0 0 18px;
  font-size: 15px; line-height: 1.5; color: var(--text);
  font-style: italic;
}
.auth-quote-by { display: flex; align-items: center; gap: 12px; }
.auth-avatar {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  border-radius: 50%;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
}

/* Auth responsive */
@media (max-width: 960px) {
  .auth-root { grid-template-columns: 1fr; }
  .auth-form-col { padding: 20px 24px; min-height: auto; }
  .auth-form-body { padding: 24px 0 48px; }
  .auth-show-col { display: none; }
}
@media (max-width: 480px) {
  .auth-social { grid-template-columns: 1fr; }
  .auth-form-col { padding: 16px 18px; }
}

/* ─────────────────────────── EXTRA PAGES ─────────────────────────── */

/* Billing toggle (Pricing) */
.billing-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-top: 8px;
  max-width: 100%;
  flex-wrap: wrap;
}
.billing-toggle-btn {
  appearance: none; background: transparent; border: 0;
  height: 36px; padding: 0 16px; border-radius: 999px;
  color: var(--text-2); font-size: 13px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.billing-toggle-btn:hover { color: var(--text); }
.billing-toggle-btn.active {
  background: var(--surface-2); color: var(--text);
  box-shadow: 0 0 0 1px var(--border-strong) inset, var(--shadow-sm);
}
.billing-toggle-tag {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  padding: 2px 6px; border-radius: 4px;
  background: var(--surface-hi); color: var(--muted);
}
.billing-toggle-tag-accent { background: var(--accent-soft); color: var(--accent); }

/* Pricing cards */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.pricing-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  display: flex; flex-direction: column;
}
.pricing-card-featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-soft), var(--surface) 60%);
  box-shadow: 0 0 0 1px var(--accent) inset, var(--shadow-md);
}
.pricing-card-flag {
  position: absolute; top: -10px; left: 24px;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 4px;
}
.pricing-card-head { margin-bottom: 16px; }
.pricing-price { display: baseline; margin-bottom: 6px; line-height: 1; }
.pricing-currency { font-size: 22px; color: var(--muted); margin-right: 2px; vertical-align: top; line-height: 1.4; }
.pricing-num { font-size: 52px; font-weight: 700; letter-spacing: -0.04em; }
.pricing-period { font-size: 13px; color: var(--muted); margin-left: 6px; font-weight: 500; }
.pricing-list {
  list-style: none; padding: 0; margin: 24px 0 0;
  display: flex; flex-direction: column; gap: 10px;
}
.pricing-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; line-height: 1.5; color: var(--text-2);
}
.pricing-list li.pricing-li-off { color: var(--faint); text-decoration: line-through; }
.pricing-li-ico {
  flex: none; width: 18px; height: 18px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 1px;
}

/* Compare table */
.compare-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare-table th, .compare-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); }
.compare-table thead th { font-size: 13px; font-weight: 600; background: var(--surface-2); }
.compare-table thead th:first-child { background: transparent; }
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-feat { font-size: 13px; color: var(--text-2); width: 40%; }
.compare-val { font-size: 13px; color: var(--text); width: 20%; }

/* Pricing FAQ */
.pricing-faq-item {
  border-top: 1px solid var(--border);
  padding: 14px 0;
}
.pricing-faq-item:last-child { border-bottom: 1px solid var(--border); }
.pricing-faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 15px; font-weight: 500; color: var(--text);
  padding: 6px 0;
}
.pricing-faq-item summary::-webkit-details-marker { display: none; }
.pricing-faq-item[open] summary svg { transform: rotate(45deg); color: var(--accent); }
.pricing-faq-item summary svg { transition: transform .2s var(--ease), color .2s var(--ease); color: var(--muted); }
.pricing-faq-item > div { padding: 6px 0 12px; color: var(--text-2); font-size: 14px; line-height: 1.6; max-width: 720px; }

@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card-featured { order: -1; }
  .pricing-faq-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
}

/* About */
.about-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  padding: 24px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-top: -40px;
  box-shadow: var(--shadow-md);
}
.about-stat-v { font-family: var(--font-mono); font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.about-stat-l { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 4px; }

@media (max-width: 720px) {
  .about-stats { grid-template-columns: 1fr 1fr; padding: 18px; gap: 12px 18px; }
  .about-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
}

/* Timeline */
.timeline { display: flex; flex-direction: column; gap: 8px; position: relative; padding-left: 84px; }
.timeline::before {
  content: ""; position: absolute; left: 88px; top: 8px; bottom: 8px;
  width: 1px; background: var(--border);
}
.timeline-row {
  display: grid; grid-template-columns: 84px 24px 1fr; align-items: flex-start;
  gap: 0; padding: 14px 0;
  margin-left: -84px;
}
.timeline-year { font-family: var(--font-mono); font-size: 13px; color: var(--muted); font-weight: 500; padding-top: 2px; }
.timeline-dot {
  width: 10px; height: 10px; border-radius: 999px;
  background: var(--accent); margin-top: 6px; margin-left: 4px;
  box-shadow: 0 0 0 4px var(--bg-2), 0 0 0 5px var(--accent-soft);
  position: relative; z-index: 1;
}
.timeline-t { font-size: 16px; font-weight: 600; }
.timeline-d { font-size: 13.5px; color: var(--text-2); margin-top: 4px; line-height: 1.55; }

@media (max-width: 540px) {
  .timeline { padding-left: 32px; }
  .timeline::before { left: 36px; }
  .timeline-row { grid-template-columns: 24px 1fr; gap: 12px; margin-left: 0; padding: 14px 0; }
  .timeline-year { grid-column: 1 / -1; padding-top: 0; }
}

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.team-card {
  padding: 24px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.team-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.team-avatar {
  width: 48px; height: 48px; border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-soft), var(--surface-2));
  border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 14px; font-weight: 600;
  color: var(--accent);
  margin-bottom: 14px;
}
@media (max-width: 900px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .team-grid { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid {
  display: grid; grid-template-columns: 360px 1fr; gap: 24px;
}
.contact-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.contact-card:hover { border-color: var(--border-strong); background: var(--surface-2); }
.contact-card-ico {
  flex: none; width: 36px; height: 36px; border-radius: 8px;
  background: var(--accent-soft); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
}
.contact-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-topic { display: flex; gap: 6px; flex-wrap: wrap; }
.contact-topic-btn {
  appearance: none; background: var(--surface);
  border: 1px solid var(--border); color: var(--text-2);
  height: 32px; padding: 0 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 500;
  transition: all .18s var(--ease);
}
.contact-topic-btn:hover { color: var(--text); border-color: var(--border-strong); }
.contact-topic-btn.active { background: var(--accent-soft); color: var(--accent); border-color: oklch(from var(--accent) l c h / 0.5); }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-row-2 { grid-template-columns: 1fr; }
}

/* Affiliates */
.calc-grid { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.calc-card {
  padding: 20px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-lg);
}
.calc-range {
  width: 100%; height: 6px; -webkit-appearance: none; appearance: none;
  background: linear-gradient(90deg, var(--accent), var(--accent) 0%, var(--surface-2) 0%);
  border-radius: 999px; outline: none;
}
.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; border-radius: 999px;
  background: var(--accent); border: 2px solid var(--bg);
  box-shadow: var(--shadow-md); cursor: pointer;
}
.calc-range::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 999px;
  background: var(--accent); border: 2px solid var(--bg);
  box-shadow: var(--shadow-md); cursor: pointer;
}
.calc-result {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 16px;
  padding: 24px; margin-top: 16px;
  background: linear-gradient(135deg, var(--accent-soft), transparent);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.calc-result-l { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.calc-result-v { font-family: var(--font-mono); font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.calc-result-arrow {
  width: 36px; height: 36px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent);
}

.aff-tiers { display: flex; flex-direction: column; gap: 8px; }
.aff-tier {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: all .18s var(--ease);
}
.aff-tier-active {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--accent-soft), var(--surface));
  box-shadow: var(--shadow-md);
}
.aff-tier-cut {
  font-family: var(--font-mono); font-size: 22px; font-weight: 700;
  color: var(--accent); letter-spacing: -0.02em;
  width: 56px; line-height: 1;
}

.aff-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.aff-step {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  position: relative; overflow: hidden;
}
.aff-step::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent); opacity: 0.4;
}
.aff-step-num { font-family: var(--font-mono); font-size: 12px; color: var(--accent); font-weight: 600; letter-spacing: 0.06em; margin-bottom: 12px; }
.aff-step-t { font-size: 17px; font-weight: 600; margin-bottom: 6px; letter-spacing: -0.01em; }
.aff-step-d { font-size: 14px; color: var(--text-2); line-height: 1.55; }

.leaderboard-row {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.leaderboard-row:last-child { border-bottom: 0; }
.leaderboard-rank {
  font-family: var(--font-mono); font-size: 13px; color: var(--muted);
  font-weight: 500; width: 28px; flex: none;
}
.leaderboard-rank-top { color: var(--accent); }
.leaderboard-stat {
  display: flex; flex-direction: column; align-items: flex-end; min-width: 80px;
}
.leaderboard-stat .l { font-size: 10px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.05em; }
.leaderboard-stat .v { font-size: 13px; margin-top: 2px; }

@media (max-width: 900px) {
  .calc-grid { grid-template-columns: 1fr; }
  .aff-steps { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .calc-result { grid-template-columns: 1fr; gap: 12px; padding: 18px; }
  .calc-result-arrow { transform: rotate(90deg); justify-self: center; }
  .leaderboard-row { padding: 12px 14px; gap: 10px; }
  .aff-tier { padding: 12px 14px; gap: 12px; }
  .aff-tier-cut { font-size: 18px; width: 44px; }
}

/* Docs */
.docs-grid { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.docs-side {
  position: sticky; top: 80px;
  padding: 4px 0;
}
.docs-search {
  display: flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--muted);
  margin-bottom: 8px;
}
.docs-search input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font-size: 13px; color: var(--text);
}
.docs-cat {
  font-family: var(--font-mono); font-size: 10.5px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--faint); padding: 0 12px 8px;
}
.docs-link {
  display: block; width: 100%; text-align: left;
  padding: 7px 12px; border-radius: 6px;
  background: transparent; border: 0;
  font-size: 13.5px; color: var(--text-2);
  transition: all .14s var(--ease);
}
.docs-link:hover { color: var(--text); background: var(--surface-2); }
.docs-link-active {
  color: var(--accent); background: var(--accent-soft);
  font-weight: 500;
}
.docs-cta {
  margin-top: 24px; padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.docs-content { max-width: 720px; }
.docs-block {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.docs-block:last-child { border-bottom: 0; }
.docs-feedback {
  margin-top: 32px; padding: 18px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}
@media (max-width: 860px) {
  .docs-grid { grid-template-columns: 1fr; gap: 24px; }
  .docs-side { position: static; }
}

/* Legal */
.legal-tab {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 13px; color: var(--text-2);
  transition: all .15s var(--ease);
}
.legal-tab:hover { border-color: var(--border-strong); color: var(--text); }
.legal-tab-active {
  background: var(--accent-soft); color: var(--accent);
  border-color: oklch(from var(--accent) l c h / 0.5);
}
.legal-doc { display: flex; flex-direction: column; gap: 28px; }
.legal-section h2 {
  font-size: 18px; margin: 0 0 10px; letter-spacing: -0.01em;
}
.legal-section p {
  font-size: 14.5px; color: var(--text-2); line-height: 1.7;
  margin: 0;
}

/* 404 */
.not-found-num {
  font-family: var(--font-mono); font-size: clamp(80px, 18vw, 200px);
  font-weight: 700; line-height: 0.9; letter-spacing: -0.05em;
  display: inline-flex; align-items: center; gap: clamp(8px, 2vw, 20px);
  background: linear-gradient(180deg, var(--text), var(--text-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.not-found-zero {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: clamp(80px, 18vw, 200px); height: clamp(80px, 18vw, 200px);
  border: clamp(8px, 2vw, 22px) solid;
  border-color: var(--accent);
  border-radius: 999px;
  background-clip: border-box; -webkit-background-clip: border-box;
  -webkit-text-fill-color: transparent;
  animation: spin404 18s linear infinite;
}
.not-found-zero-inner {
  width: 30%; height: 30%; border-radius: 999px;
  background: var(--accent); box-shadow: 0 0 24px var(--accent);
}
@keyframes spin404 { to { transform: rotate(360deg); } }

/* ═════════════════ RESPONSIVE OVERRIDES (audit pass 2) ═════════════════ */

/* Navbar height token + spacer (used to compensate for fixed navbar) */
:root { --nav-h: 64px; }
@media (max-width: 860px) { :root { --nav-h: 56px; } }
.navbar-spacer { height: var(--nav-h); }

/* .icon-btn alias for legacy class name */
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: all .15s var(--ease);
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--border-strong); }

/* Prevent iOS Safari focus zoom on small inputs */
@media (max-width: 540px) {
  .input, textarea.input, select.input { font-size: 16px; }
  .ainput input, .ainput-field input { font-size: 16px; }
}

/* Toast max-width to prevent overflow on narrow phones */
.toast { max-width: calc(100vw - 36px); }

/* Section head wraps on mobile so right-side actions drop below */
@media (max-width: 600px) {
  .section-head { flex-wrap: wrap; align-items: flex-start; gap: 12px 16px; }
  .section-head > :last-child { width: 100%; }
}

/* Hero callout-row gap reduces on mobile */
@media (max-width: 540px) {
  .callout-row { gap: 16px 24px; }
  .callout-row .v { font-size: 22px; }
}

/* Step indicator: drop separators on extreme narrow */
@media (max-width: 380px) {
  .steps { gap: 6px; }
  .steps .sep { display: none; }
}

/* Brands row + ticker track tighten on mobile */
@media (max-width: 600px) {
  .brands-row { gap: 28px; flex-wrap: wrap; justify-content: center !important; }
  .ticker-track { gap: 18px; font-size: 11px; }
}

/* FAQ tabs: rectangular when wrapped (rounded pill looks weird with multi-row content) */
@media (max-width: 720px) {
  .faq-tabs { border-radius: var(--r-md); }
}

/* About stats grid: collapse to single column at narrow phones */
@media (max-width: 480px) {
  .about-stats { grid-template-columns: 1fr; }
}

/* Dialog backdrop: tighter padding on small phones so dialog has room */
@media (max-width: 480px) {
  .dialog-backdrop { padding: 12px; }
}

/* Pricing: fix invalid `display: baseline` and clamp the giant price */
.pricing-price { display: inline-flex; align-items: baseline; flex-wrap: wrap; }
.pricing-num { font-size: clamp(40px, 11vw, 52px); }

/* Pricing FAQ summary: align icon to top so it doesn't drift on multi-line questions */
.pricing-faq-item summary { align-items: flex-start; }
.pricing-faq-item summary svg { margin-top: 4px; }

/* Compare table: fade hint on mobile so users notice horizontal scroll */
@media (max-width: 720px) {
  .compare-wrap {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
            mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
  }
}

/* Slider: bigger hit area for touch */
.calc-range { padding: 12px 0; box-sizing: content-box; }
.calc-range::-webkit-slider-thumb { width: 24px; height: 24px; }
.calc-range::-moz-range-thumb { width: 24px; height: 24px; }

/* Affiliate tier card: allow wrap if pill drops below */
@media (max-width: 480px) {
  .aff-tier { flex-wrap: wrap; }
}

/* Leaderboard mono name should ellipsis instead of overflowing */
.leaderboard-row .mono { overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* Docs sidebar: cap height so all links remain reachable on short laptops */
@media (min-width: 861px) {
  .docs-side { max-height: calc(100vh - 96px); overflow-y: auto; padding-right: 4px; }
}

/* Billing toggle: rectangular when wrapped (rounded outer + multi-row looks weird) */
@media (max-width: 480px) {
  .billing-toggle { border-radius: var(--r-md); }
}

/* Lower the .h1 floor so it fits on 320px screens */
.h1 { font-size: clamp(32px, 7vw, 76px); }

/* Reduce shine + lift hover effects on touch devices (no real hover) */
@media (hover: none) {
  .lift:hover, .indicator-card:hover { transform: none; }
  .shine:hover::after { transform: translateX(-100%); }
  /* Touch users: show indicator card stats by default since hover doesn't fire */
  .indicator-card .ic-overlay { opacity: 1; transform: translateY(0); }
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .ticker-track, .ab-marquee-track, .not-found-zero { animation: none !important; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Auth form head + foot wrap on narrow */
@media (max-width: 380px) {
  .auth-form-head, .auth-form-foot { flex-wrap: wrap; gap: 8px 16px; }
}

/* Auth showcase column: align breakpoint with .hide-mobile (was 960, hide-mobile fires at 860) */
@media (max-width: 860px) {
  .auth-root { grid-template-columns: 1fr; }
  .auth-form-col { padding: 20px 24px; min-height: auto; }
  .auth-form-body { padding: 24px 0 48px; }
  .auth-show-col { display: none; }
}

/* Pricing card flag: center on mobile so it sits above the heading cleanly */
@media (max-width: 540px) {
  .pricing-card-flag { left: 50%; transform: translateX(-50%); }
}

/* Topbar action btn icon-only on mobile (when text is hidden via .hide-mobile) */
@media (max-width: 860px) {
  .topbar .btn-primary { padding: 0 10px; }
  .topbar .btn-primary svg { margin: 0 2px; }
}
