/* LAZAZ — lazaz.app
   Tokens are copied from the LAZAZ Terminal so the two read as one product:
   terminal/frontend/tailwind.config.js (brand, dark-*), src/index.css (.card, .th-cell, Inter)
   and the Tailwind slate / green / red values the terminal uses in dark mode. */

:root {
  /* tailwind.config.js → dark */
  --dark-900: #0d0f1a;    /* page background */
  --dark-800: #131624;    /* .card background */
  --dark-700: #1a1f35;    /* inputs, table header rows */
  --dark-600: #222840;    /* .card border */
  --dark-500: #2d3555;    /* stronger border, hover */
  /* tailwind.config.js → brand */
  --brand-500: #4f6ef7;   /* labels, links, primary button */
  --brand-600: #3b55e6;   /* button hover */
  --brand-tint: rgba(79, 110, 247, 0.1); /* bg-brand-500/10 */
  /* Tailwind slate, as the terminal uses it on dark */
  --white: #ffffff;
  --slate-200: #e2e8f0;   /* body text */
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;   /* secondary text */
  --slate-500: #64748b;   /* captions */
  /* Gains and losses: cards use the 500s (TodayGlance tone), the benchmark line the 400s */
  --green-500: #22c55e;
  --red-500: #ef4444;
  --green-400: #4ade80;
  --red-400: #f87171;

  --sans: 'Inter', 'Segoe UI', sans-serif; /* the terminal's font stack */
  --radius: 10px;         /* rounded-xl at the terminal's 13px root */
  --radius-sm: 8px;       /* rounded-lg */
  --container: 1240px;
  --header-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 56px); }

body {
  margin: 0;
  background: var(--dark-900);
  color: var(--slate-200);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-500); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--white); margin: 0; font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; }
p { margin: 0; }
strong { color: var(--white); font-weight: 600; }
::selection { background: var(--brand-500); color: #fff; }
:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; border-radius: 4px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.num, .mono { font-variant-numeric: tabular-nums; }
.up { color: var(--green-500); }
.down { color: var(--red-500); }
.muted { color: var(--slate-400); }
.dim { color: var(--slate-500); }

.skip-link { position: absolute; left: 16px; top: -48px; z-index: 300; background: var(--brand-500); color: #fff; padding: 8px 14px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: #fff; }

/* Small uppercase blue label: TodayGlance → text-xs font-semibold uppercase tracking-wide text-brand-500 */
.label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-500);
}
.label .sub { color: var(--brand-500); opacity: 0.8; }
/* Grey table-header label: .th-cell → text-xs font-semibold text-slate-400 uppercase tracking-wider */
.th { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate-400); }

/* .card */
.card { background: var(--dark-800); border: 1px solid var(--dark-600); border-radius: var(--radius); padding: 18px 20px; }

/* ── Header ───────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--dark-800);
  border-bottom: 1px solid var(--dark-600);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }

.logo { display: flex; align-items: center; gap: 9px; color: var(--white); }
.logo:hover { color: var(--white); text-decoration: none; }
.logo img { width: 30px; height: 30px; }
.logo span { font-size: 1.02rem; font-weight: 700; letter-spacing: 0.08em; }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--slate-400); font-size: 0.88rem; font-weight: 500; padding: 6px 10px; border-radius: var(--radius-sm); }
.nav a:hover { color: var(--white); background: var(--dark-700); text-decoration: none; }
.nav a.active { color: var(--brand-500); }

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

.nav-toggle, .nav-close {
  width: 38px; height: 38px;
  border: 1px solid var(--dark-600);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--slate-200);
  cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle { display: none; margin-left: auto; }
.nav-close { display: flex; position: absolute; top: 11px; right: 16px; }
.nav-toggle svg, .nav-close svg { width: 18px; height: 18px; stroke: currentColor; }

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--dark-900);
  display: none;
  flex-direction: column;
  padding: 72px 16px 24px;
}
.nav-overlay.open { display: flex; }
.nav-overlay a { color: var(--white); font-size: 1.15rem; font-weight: 500; padding: 13px 0; border-bottom: 1px solid var(--dark-600); }
.nav-overlay a:hover { text-decoration: none; }
.nav-overlay .btn { margin-top: 20px; border-bottom: 0; justify-content: center; font-size: 0.95rem; }

/* ── Benchmarks line (BenchmarkTicker.jsx) ─────── */

.benchmarks { border-bottom: 1px solid var(--dark-600); background: var(--dark-900); }
.benchmarks-inner { display: flex; align-items: center; gap: 12px; padding: 7px 0; }
.benchmarks-as-of { flex: 0 0 auto; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--slate-500); white-space: nowrap; }
.benchmarks-scroller { flex: 1 1 auto; overflow: hidden; min-width: 0; mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.benchmarks-track { display: flex; gap: 8px; width: max-content; animation: benchmarks 60s linear infinite; }
.benchmarks-scroller:hover .benchmarks-track, .benchmarks-scroller:focus-within .benchmarks-track { animation-play-state: paused; }
@keyframes benchmarks { to { transform: translateX(-50%); } }
.chip {
  flex: 0 0 auto;
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--dark-600);
  border-radius: var(--radius-sm);
  background: var(--dark-800);
  font-size: 0.84rem;
  white-space: nowrap;
}
.chip b { color: var(--white); font-weight: 700; }
.chip .v { color: var(--slate-300); font-variant-numeric: tabular-nums; }
.chip .c { font-size: 0.74rem; font-weight: 600; }
.chip .c.up { color: var(--green-400); }
.chip .c.down { color: var(--red-400); }
@media (prefers-reduced-motion: reduce) {
  .benchmarks-track { animation: none; }
  .benchmarks-scroller { overflow-x: auto; scrollbar-width: none; }
  .benchmarks-track [aria-hidden="true"] { display: none; }
}

/* ── Buttons & links ──────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand-500); color: #fff; }
.btn-primary:hover { background: var(--brand-600); color: #fff; }
.btn-ghost { border-color: var(--dark-500); color: var(--slate-200); }
.btn-ghost:hover { border-color: var(--brand-500); color: var(--white); }
.btn-text { color: var(--slate-400); }
.btn-text:hover { color: var(--white); background: var(--dark-700); }
.btn-sm { padding: 7px 13px; font-size: 0.85rem; }

.link-arrow { display: inline-flex; align-items: center; gap: 5px; font-weight: 500; font-size: 0.9rem; }
.link-arrow::after { content: '→'; }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 26px; }

/* ── Home hero ────────────────────────────────── */

.hero { padding: 56px 0 64px; border-bottom: 1px solid var(--dark-600); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 3.6vw, 2.75rem); letter-spacing: -0.025em; line-height: 1.1; }
.hero-sub { font-size: 1.04rem; color: var(--slate-400); margin-top: 16px; max-width: 470px; }

/* The terminal panel: Overview cards rebuilt in HTML */
.term { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.term .card { padding: 16px 18px; }
.term-wide { grid-column: 1 / -1; }
.idx-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.idx-value { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.idx-value .big { font-size: 1.75rem; font-weight: 700; color: var(--white); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.idx-value .chg { font-size: 0.95rem; font-weight: 600; }
.idx-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--dark-600); }
.idx-stats div { display: flex; flex-direction: column; gap: 2px; }
.idx-stats .v { color: var(--white); font-weight: 600; font-size: 0.86rem; font-variant-numeric: tabular-nums; }
.pnl { font-size: 1.45rem; font-weight: 700; margin-top: 6px; font-variant-numeric: tabular-nums; }
.pnl-sub { font-size: 0.82rem; margin-top: 2px; }
.pnl-sub .sep { color: var(--slate-500); }
.mini { margin-top: 10px; font-size: 0.82rem; }
.kv { display: flex; justify-content: space-between; gap: 8px; font-size: 0.82rem; line-height: 1.85; }
.kv dt { color: var(--slate-400); }
.kv dd { margin: 0; font-variant-numeric: tabular-nums; }
.kv dd b { color: var(--slate-200); font-weight: 600; }
.movers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.movers ul { list-style: none; margin: 4px 0 0; padding: 0; }
.movers li { display: flex; justify-content: space-between; font-size: 0.82rem; line-height: 1.85; }
.movers li b { color: var(--slate-200); font-weight: 600; }
.movers li span { font-weight: 500; font-variant-numeric: tabular-nums; }
.strip { display: grid; grid-template-columns: repeat(3, 1fr); }
.strip div { padding: 0 16px; }
.strip div:first-child { padding-left: 0; }
.strip div + div { border-left: 1px solid var(--dark-600); }
.strip .v { color: var(--white); font-weight: 700; font-size: 0.98rem; margin-top: 3px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.strip .s { font-size: 0.72rem; color: var(--slate-500); }
.as-of { margin-top: 10px; font-size: 0.74rem; color: var(--slate-500); }

/* ── Feature rows (home) ──────────────────────── */

.features { border-bottom: 1px solid var(--dark-600); }
.feature {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 56px;
  align-items: start;
  padding: 56px 0;
}
.feature + .feature { border-top: 1px solid var(--dark-600); }
.feature h2 { font-size: 1.45rem; letter-spacing: -0.015em; margin-top: 10px; line-height: 1.25; }
.feature p { color: var(--slate-400); margin-top: 12px; font-size: 0.94rem; }
.feature p + p { margin-top: 10px; }
.feature .link-arrow { margin-top: 16px; }
.media { min-width: 0; }
.media img { border: 1px solid var(--dark-600); border-radius: var(--radius); width: 100%; }
.media figcaption, .media .caption { margin-top: 8px; font-size: 0.76rem; color: var(--slate-500); }
.media figure { margin: 0; }
.scroll-x { overflow-x: auto; border-radius: var(--radius); }
.scroll-x img { min-width: 640px; }

/* Control Room plan panel (HTML, same layout as the terminal side panel) */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.plan-q { font-size: 0.82rem; color: var(--slate-400); margin-top: 4px; }
.plan-q b { color: var(--white); }
.plan-answer { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--dark-600); border-radius: var(--radius-sm); background: var(--dark-900); }
.plan-answer .big { font-size: 1.15rem; font-weight: 700; color: var(--white); font-variant-numeric: tabular-nums; }
.plan-answer .s { font-size: 0.8rem; color: var(--slate-400); margin-top: 2px; }
.plan .kv { margin-top: 10px; }
.plan .kv.total { border-top: 1px solid var(--dark-600); margin-top: 4px; padding-top: 4px; }
.plan .kv.total dt, .plan .kv.total dd b { color: var(--white); font-weight: 600; }
.plan-note { margin-top: 10px; padding: 8px 10px; border-radius: 6px; background: var(--dark-700); font-size: 0.76rem; color: var(--slate-400); line-height: 1.5; }
.plan-note b { color: var(--slate-200); }
.ok { color: var(--green-500); font-weight: 600; }

/* ── Fee calculator ───────────────────────────── */

.calc { padding: 0; overflow: hidden; }
.calc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 18px 0; }
.calc-inputs { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 12px; padding: 12px 18px 16px; border-bottom: 1px solid var(--dark-600); }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate-400); }
/* .input → bg-dark-700 border-dark-500 rounded-lg focus:border-brand-500 */
.field input, .field select {
  width: 100%;
  background: var(--dark-700);
  border: 1px solid var(--dark-500);
  border-radius: var(--radius-sm);
  padding: 8px 11px;
  color: var(--slate-200);
  font: 500 0.9rem var(--sans);
  font-variant-numeric: tabular-nums;
  outline: none;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--slate-400) 50%), linear-gradient(135deg, var(--slate-400) 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; text-overflow: ellipsis; }
.field input:focus, .field select:focus { border-color: var(--brand-500); box-shadow: 0 0 0 1px var(--brand-500); }
.calc-out { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.calc-out th { text-align: left; font-weight: 400; color: var(--slate-400); padding: 8px 18px; }
.calc-out td { text-align: right; color: var(--slate-200); padding: 8px 18px; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 500; }
.calc-out tr + tr th, .calc-out tr + tr td { border-top: 1px solid var(--dark-600); }
.calc-out .total th, .calc-out .total td { color: var(--white); font-weight: 600; background: var(--dark-700); }
.calc-out .key th { color: var(--white); font-weight: 600; }
.calc-out .key td { color: var(--white); font-weight: 700; font-size: 0.98rem; }

/* ── Closing strip ────────────────────────────── */

.closing { padding: 40px 0; border-bottom: 1px solid var(--dark-600); }
.closing-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.closing h2 { font-size: 1.3rem; }
.closing p { color: var(--slate-400); margin-top: 4px; font-size: 0.92rem; }
.closing .hero-actions { margin-top: 0; }

/* ── Inner pages ──────────────────────────────── */

.section { padding: 80px 0; }
.section--tight { padding: 48px 0; }
.section--panel { background: var(--dark-800); border-top: 1px solid var(--dark-600); border-bottom: 1px solid var(--dark-600); }
.section + .section:not(.section--panel) { border-top: 1px solid var(--dark-600); }

.page-hero { padding: 56px 0 44px; border-bottom: 1px solid var(--dark-600); }
.page-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); letter-spacing: -0.025em; margin-top: 10px; max-width: 820px; line-height: 1.12; }
.page-hero p { color: var(--slate-400); font-size: 1.04rem; max-width: 680px; margin-top: 14px; }
.page-hero .hero-actions { margin-top: 22px; }

.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 56px; align-items: end; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); margin-top: 10px; }
.section-head p { color: var(--slate-400); }
.section-head--stack { grid-template-columns: 1fr; max-width: 760px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.split--wide-right { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.split h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); margin-top: 10px; }
.split .lead { color: var(--slate-400); margin-top: 14px; }

.checks { list-style: none; margin: 20px 0 0; padding: 0; }
.checks li { position: relative; padding: 11px 0 11px 22px; border-top: 1px solid var(--dark-600); font-size: 0.93rem; }
.checks li:last-child { border-bottom: 1px solid var(--dark-600); }
.checks li::before { content: ''; position: absolute; left: 2px; top: 19px; width: 8px; height: 8px; background: var(--brand-500); border-radius: 2px; }
.checks li span { color: var(--slate-400); }

/* Ruled columns (no icons) */
.grid-3, .grid-2 { display: grid; gap: 0; border-top: 1px solid var(--dark-600); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cell { padding: 24px 28px 8px 0; }
.cell + .cell { padding-left: 28px; border-left: 1px solid var(--dark-600); }
.grid-2 .cell:nth-child(3) { padding-left: 0; border-left: 0; }
.grid-2 .cell:nth-child(n+3) { border-top: 1px solid var(--dark-600); padding-top: 24px; margin-top: 16px; }
.cell h3 { font-size: 1.02rem; }
.cell p { color: var(--slate-400); font-size: 0.92rem; margin-top: 8px; }
.cell .link-arrow { margin-top: 12px; }

/* Numbered rows */
.rows { border-top: 1px solid var(--dark-600); }
.row { display: grid; grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1.4fr) 20px; gap: 20px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--dark-600); color: inherit; }
a.row:hover { background: var(--dark-800); text-decoration: none; }
.row-num { font-size: 0.8rem; font-weight: 600; color: var(--brand-500); font-variant-numeric: tabular-nums; }
.row h3 { font-size: 1rem; }
.row p { color: var(--slate-400); font-size: 0.92rem; }
.row-arrow { color: var(--slate-500); }

/* Screenshot figures on inner pages (tight crops, no window chrome) */
.shot { margin: 28px 0 0; }
.shot .frame img, .frame img { border: 1px solid var(--dark-600); border-radius: var(--radius); }
.shot figcaption { margin-top: 8px; font-size: 0.78rem; color: var(--slate-500); }
.shot a { display: block; }

/* Illustration panel on the Control Room page */
.mock { background: var(--dark-800); border: 1px solid var(--dark-600); border-radius: var(--radius); overflow: hidden; font-size: 0.88rem; }
.mock-head { padding: 12px 16px; border-bottom: 1px solid var(--dark-600); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mock-body { padding: 16px; }
.mock-q { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border: 1px solid var(--dark-500); border-radius: var(--radius-sm); background: var(--dark-700); color: var(--white); }
.mock-q::before { content: '›'; color: var(--brand-500); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chips .chip { font-size: 0.78rem; color: var(--slate-400); padding: 5px 10px; }
.chips .chip--on { border-color: var(--brand-500); color: var(--white); background: var(--brand-tint); }
.flow { list-style: none; margin: 14px 0 0; padding: 0; counter-reset: flow; }
.flow li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid var(--dark-600); color: var(--slate-200); }
.flow li::before { counter-increment: flow; content: counter(flow); font-size: 0.74rem; font-weight: 600; color: var(--brand-500); width: 20px; height: 20px; border: 1px solid var(--dark-500); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.flow li span { color: var(--slate-400); display: block; font-size: 0.84rem; }

.notice { border: 1px solid var(--dark-600); border-left: 3px solid var(--brand-500); background: var(--dark-800); padding: 14px 18px; border-radius: var(--radius-sm); color: var(--slate-400); font-size: 0.9rem; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--dark-600); border-radius: var(--radius); background: var(--dark-800); }
.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 620px; }
.table th { text-align: left; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate-400); padding: 12px 18px; border-bottom: 1px solid var(--dark-600); }
.table td { padding: 13px 18px; border-bottom: 1px solid var(--dark-600); vertical-align: top; color: var(--slate-400); }
.table tr:last-child td { border-bottom: 0; }
.table td:first-child { color: var(--white); font-weight: 600; white-space: nowrap; }
.table td.mono { color: var(--slate-200); font-size: 0.85rem; }

/* Long pages with a side index */
.with-index { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 56px; align-items: start; }
.page-index { position: sticky; top: calc(var(--header-h) + 64px); display: flex; flex-direction: column; border-left: 1px solid var(--dark-600); }
.page-index a { color: var(--slate-500); font-size: 0.86rem; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 1px solid transparent; }
.page-index a:hover { color: var(--white); text-decoration: none; }
.page-index a.active { color: var(--white); border-left-color: var(--brand-500); }

.block { padding: 0 0 56px; }
.block + .block { padding-top: 56px; border-top: 1px solid var(--dark-600); }
.block h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin-top: 10px; }
.block > p { color: var(--slate-400); margin-top: 12px; max-width: 720px; }

.feature-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; }
.feature-list li { padding: 15px 0; border-top: 1px solid var(--dark-600); }
.feature-list h3 { font-size: 0.96rem; }
.feature-list p { color: var(--slate-400); font-size: 0.9rem; margin-top: 4px; }

.faq { border-top: 1px solid var(--dark-600); }
.faq details { border-bottom: 1px solid var(--dark-600); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 36px 18px 0; position: relative; font-weight: 600; color: var(--white); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 14px; font-size: 1.35rem; color: var(--brand-500); }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--slate-400); padding: 0 36px 18px 0; max-width: 820px; }

/* ── Footer ───────────────────────────────────── */

.site-footer { padding: 48px 0 28px; font-size: 0.88rem; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 36px; }
.footer-brand p { color: var(--slate-500); margin-top: 12px; max-width: 320px; }
.site-footer h4 { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate-500); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer ul a { color: var(--slate-400); }
.site-footer ul a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--dark-600); color: var(--slate-500); font-size: 0.78rem; }
.footer-bottom p { max-width: 640px; }

/* ── Screenshot gallery (Tour) ────────────────── */

.gallery-stage { position: relative; background: var(--dark-900); border: 1px solid var(--dark-600); border-radius: var(--radius); aspect-ratio: 16 / 9; overflow: hidden; touch-action: pan-y; }
.gallery-track { display: flex; height: 100%; transition: transform 0.35s ease; }
.gallery-slide { flex: 0 0 100%; height: 100%; margin: 0; cursor: zoom-in; }
.gallery-slide img { width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.gallery-btn { position: absolute; width: 38px; height: 38px; border: 1px solid var(--dark-500); border-radius: var(--radius-sm); background: var(--dark-800); color: var(--white); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.gallery-btn:hover { border-color: var(--brand-500); }
.gallery-btn svg, .lightbox svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gallery-btn--prev, .gallery-btn--next { top: 50%; transform: translateY(-50%); }
.gallery-btn--prev { left: 12px; }
.gallery-btn--next { right: 12px; }
.gallery-btn--expand { top: 12px; right: 12px; width: 34px; height: 34px; }
.gallery-bar { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 12px; }
.gallery-caption { font-size: 0.9rem; color: var(--slate-400); }
.gallery-count { font-size: 0.76rem; font-weight: 600; color: var(--brand-500); white-space: nowrap; font-variant-numeric: tabular-nums; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; padding-bottom: 6px; }
.gallery-thumb { flex: 0 0 116px; aspect-ratio: 16 / 9; padding: 0; border: 1px solid var(--dark-600); border-radius: 6px; background: var(--dark-900); cursor: pointer; opacity: 0.5; overflow: hidden; }
.gallery-thumb:hover { opacity: 0.85; }
.gallery-thumb[aria-current="true"] { border-color: var(--brand-500); opacity: 1; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(13, 15, 26, 0.97); display: none; align-items: center; justify-content: center; padding: 56px 76px 76px; touch-action: pan-y; }
.lightbox.open { display: flex; }
.lightbox-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; user-select: none; }
.lightbox button { position: absolute; width: 42px; height: 42px; border: 1px solid var(--dark-500); border-radius: var(--radius-sm); background: var(--dark-800); color: var(--white); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.lightbox button:hover { border-color: var(--brand-500); }
.lightbox-close { top: 12px; right: 16px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-bar { position: absolute; left: 16px; right: 16px; bottom: 22px; display: flex; justify-content: center; gap: 16px; font-size: 0.85rem; color: var(--slate-400); text-align: center; }

/* ── 404 ──────────────────────────────────────── */

.not-found { min-height: 55vh; display: flex; align-items: center; }
.not-found h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-top: 10px; }
.not-found p { color: var(--slate-400); margin-top: 12px; max-width: 520px; }

/* ── Responsive ───────────────────────────────── */

@media (max-width: 1100px) {
  .header-actions .btn-text { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-sub { max-width: 620px; }
}

@media (max-width: 960px) {
  .nav, .header-actions { display: none; }
  .nav-toggle { display: inline-flex; }
  .feature { grid-template-columns: 1fr; gap: 24px; padding: 44px 0; }
  .section-head, .split, .split--wide-right { grid-template-columns: 1fr; gap: 20px; }
  .split { gap: 36px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-3 .cell, .grid-3 .cell + .cell { padding: 20px 0; border-left: 0; }
  .grid-3 .cell + .cell { border-top: 1px solid var(--dark-600); }
  .with-index { grid-template-columns: 1fr; gap: 0; }
  .page-index { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  body { font-size: 14.5px; }
  .container { padding: 0 16px; }
  .benchmarks-as-of { display: none; }
  .hero { padding: 36px 0 44px; }
  .term, .plans { grid-template-columns: 1fr; }
  .idx-stats { grid-template-columns: repeat(2, 1fr); }
  .strip { grid-template-columns: 1fr; }
  .strip div, .strip div:first-child { padding: 8px 0; }
  .strip div + div { border-left: 0; border-top: 1px solid var(--dark-600); }
  .calc-inputs { grid-template-columns: 1fr 1fr; }
  .calc-inputs .field:last-child { grid-column: 1 / -1; }
  .calc-out th, .calc-out td { padding: 8px 14px; }
  .section { padding: 56px 0; }
  .row { grid-template-columns: 36px minmax(0, 1fr); gap: 4px 10px; }
  .row p { grid-column: 2; }
  .row-arrow { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-2 .cell, .grid-2 .cell + .cell { padding: 20px 0; border-left: 0; margin-top: 0; }
  .grid-2 .cell + .cell { border-top: 1px solid var(--dark-600); }
  .feature-list { grid-template-columns: 1fr; }
  .lightbox { padding: 56px 12px 84px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 16px; transform: none; }
  .lightbox-bar { bottom: 70px; }
  .gallery-thumb { flex-basis: 92px; }
}

/* Data tables rebuilt from the terminal (.th-cell / .table-cell) */
.data { padding: 16px 0 6px; }
.data > .label { padding: 0 18px; }
.data-scroll { overflow-x: auto; margin-top: 8px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table th { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate-400); text-align: right; padding: 8px 12px; border-bottom: 1px solid var(--dark-600); }
.data-table td { text-align: right; padding: 8px 12px; border-bottom: 1px solid var(--dark-600); color: var(--slate-200); }
.data-table th:first-child, .data-table td:first-child { text-align: left; padding-left: 18px; }
.data-table th:last-child, .data-table td:last-child { padding-right: 18px; }
.data-table td.sym { color: var(--brand-500); font-weight: 600; }
.data-table td.muted { color: var(--slate-400); }
.data-table td.up { color: var(--green-500); }
.data-table td.down { color: var(--red-500); }
.data-table tfoot td { border-bottom: 0; background: var(--dark-700); color: var(--white); font-weight: 600; }
.data-table tfoot td.muted { color: var(--slate-400); font-weight: 400; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table--metrics td.strong { color: var(--white); font-weight: 600; }
.data-table--metrics td.strong.down { color: var(--red-500); }
.data-table--metrics th.hl { color: var(--brand-500); }
.data-table--metrics tbody tr:last-child td { border-bottom: 0; }
