/* CombDesk — demo trading desk for Bee Swarm Simulator.
   Visual identity: violet → sky gradient on a cool light surface.
   Deliberately different from the amber/dark BSS Index theme. */

:root {
  --bg: #f6f7fc;
  --surface: #ffffff;
  --surface-2: #f2f3fa;
  --ink: #171a2b;
  --ink-2: #3d4260;
  --muted: #6a708c;
  --faint: #949ab4;
  --line: #e3e6f3;
  --accent: #6d3bf5;
  --accent-2: #0ea5e9;
  --accent-soft: #f1ecff;
  --up: #0f8a58;
  --up-soft: #e6f6ee;
  --down: #d32f4d;
  --down-soft: #fdeaee;
  --flat: #6a708c;
  --flat-soft: #eef0f7;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(23, 26, 43, .05), 0 2px 8px rgba(23, 26, 43, .04);
  --shadow-md: 0 10px 30px rgba(23, 26, 43, .08), 0 2px 6px rgba(23, 26, 43, .04);
  --shadow-lg: 0 24px 60px rgba(23, 26, 43, .12), 0 4px 12px rgba(23, 26, 43, .05);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
  font-family: var(--mono);
  font-size: .86em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .1em .4em;
  color: var(--ink-2);
  white-space: nowrap;
}

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff; padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex; align-items: center; gap: 20px;
  min-height: 66px;
  padding: 10px 0;
}

.brand { display: flex; align-items: center; gap: 11px; color: inherit; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: grid; place-items: center;
  width: 38px; height: 38px; flex: none;
  border-radius: 11px;
  background: linear-gradient(135deg, #7c4dff, #0ea5e9);
  box-shadow: 0 6px 16px rgba(109, 59, 245, .28);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 750; font-size: 18px; letter-spacing: -.02em; }
.brand-tag { font-size: 11.5px; color: var(--muted); letter-spacing: .01em; }

.header-nav { display: flex; gap: 4px; margin-left: auto; }
.header-nav a {
  color: var(--ink-2); font-size: 14px; font-weight: 550;
  padding: 7px 12px; border-radius: 999px;
}
.header-nav a:hover { background: var(--surface-2); text-decoration: none; color: var(--accent); }

.api-badges { display: flex; align-items: center; gap: 8px; }

.badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600;
  padding: 7px 13px; border-radius: 999px;
  white-space: nowrap; color: inherit;
}
.badge:hover { text-decoration: none; }
.badge-primary {
  color: #fff;
  background: linear-gradient(135deg, #7c4dff, #0ea5e9);
  box-shadow: 0 6px 16px rgba(109, 59, 245, .25);
}
.badge-primary:hover { filter: brightness(1.06); }
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #b9ffd9; box-shadow: 0 0 0 3px rgba(185, 255, 217, .22);
}
.badge-ghost { border: 1px solid var(--line); color: var(--ink-2); background: var(--surface); }
.badge-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative; overflow: hidden;
  padding: 68px 0 56px;
  background:
    radial-gradient(900px 380px at 88% -12%, rgba(14, 165, 233, .16), transparent 62%),
    radial-gradient(760px 420px at 4% 0%, rgba(124, 77, 255, .17), transparent 60%),
    var(--bg);
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); gap: 44px; align-items: start; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid #e3d8ff;
  padding: 6px 13px; border-radius: 999px; margin: 0 0 18px;
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, .55);
  animation: pulse 2.1s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .5); }
  70% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5.2vw, 52px);
  line-height: 1.07;
  letter-spacing: -.035em;
  font-weight: 780;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, #7c4dff, #0ea5e9);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { margin: 0 0 26px; font-size: 17px; color: var(--ink-2); max-width: 60ch; }
.lede strong { color: var(--ink); font-weight: 650; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: 14.5px; font-weight: 620;
  padding: 11px 20px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; background: none; color: inherit;
  transition: transform .12s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #7c4dff, #0ea5e9);
  box-shadow: 0 10px 24px rgba(109, 59, 245, .26);
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-secondary { background: var(--surface); border-color: var(--line); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { font-size: 13px; padding: 7px 14px; }

.hero-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-md);
}
.hero-panel-title { margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); }
.endpoint-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 7px; }
.endpoint-list code { display: block; background: var(--surface-2); white-space: normal; word-break: break-word; }
.hero-panel-note { margin: 0; font-size: 13px; color: var(--muted); }
.hero-panel-note code { font-size: 12px; }

/* ---------------------------------------------------------- stats strip */

.stats-strip { padding: 0 0 8px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
  margin-top: -34px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-md);
}
.stat-label { display: block; font-size: 12px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.stat-value { display: block; font-size: 30px; font-weight: 760; letter-spacing: -.03em; margin: 4px 0 2px; }
.stat-value-sm { font-size: 17px; font-weight: 680; letter-spacing: -.01em; }
.stat-sub { font-size: 12.5px; color: var(--muted); }

/* -------------------------------------------------------------- sections */

.section { padding: 68px 0; }
.section-alt { background: linear-gradient(180deg, #ffffff, #f9faff); border-block: 1px solid var(--line); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 28px;
  margin-bottom: 26px;
}
.section-head-stack { display: block; }
.section-kicker {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}
.section-head h2 { margin: 0; font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -.03em; font-weight: 760; }
.section-note { margin: 0; font-size: 14.5px; color: var(--muted); max-width: 46ch; }
.muted-inline { color: var(--faint); }

/* ----------------------------------------------------------- search area */

.search-bar {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 8px 7px 18px;
  box-shadow: var(--shadow-md);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.search-bar:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(109, 59, 245, .12), var(--shadow-md); }
.search-icon { color: var(--faint); display: grid; place-items: center; flex: none; }
.search-bar input {
  flex: 1 1 auto; min-width: 0;
  border: 0; background: none; outline: none;
  font: inherit; font-size: 16px; color: var(--ink);
  padding: 8px 0;
}
.search-bar input::placeholder { color: var(--faint); }
.search-bar select {
  flex: none; max-width: 210px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface-2); color: var(--ink-2);
  font: inherit; font-size: 13.5px; font-weight: 550;
  padding: 8px 12px; outline: none; cursor: pointer;
}
.search-bar select:focus-visible { border-color: var(--accent); }

.result-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 18px 2px 14px; }
.result-meta { margin: 0; font-size: 14px; color: var(--muted); }
.result-meta strong { color: var(--ink); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
  gap: 14px;
}

.item-card {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform .14s ease, box-shadow .18s ease, border-color .18s ease;
}
.item-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #d5cdfa; }
.item-card:focus-within { border-color: var(--accent); }

.thumb {
  position: relative; flex: none;
  width: 50px; height: 50px; border-radius: 12px;
  background: linear-gradient(135deg, #f0ebff, #e6f4ff);
  display: grid; place-items: center; overflow: hidden;
}
.thumb img { width: 100%; height: 100%; object-fit: contain; position: relative; z-index: 1; }
.thumb-init {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-weight: 750; font-size: 19px; color: #8a7fd0;
}
.thumb img.is-broken { display: none; }

.item-body { min-width: 0; flex: 1 1 auto; }
.item-name {
  margin: 0; font-size: 14.5px; font-weight: 650; letter-spacing: -.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.item-cat { margin: 1px 0 6px; font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.item-value { font-size: 15px; font-weight: 730; letter-spacing: -.01em; }
.star { color: var(--accent-2); font-size: 12px; }

.chip {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11.5px; font-weight: 700; letter-spacing: -.005em;
  padding: 2px 7px; border-radius: 999px;
}
.chip-up { color: var(--up); background: var(--up-soft); }
.chip-down { color: var(--down); background: var(--down-soft); }
.chip-flat { color: var(--flat); background: var(--flat-soft); }

.item-link {
  position: absolute; top: 10px; right: 12px;
  font-size: 11px; font-weight: 650; color: var(--faint);
  opacity: 0; transition: opacity .15s ease, color .15s ease;
}
.item-card:hover .item-link, .item-link:focus-visible { opacity: 1; }
.item-link:hover { color: var(--accent); text-decoration: none; }

/* skeletons */
.skeleton { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: flex; gap: 12px; align-items: center; }
.skeleton-thumb { width: 50px; height: 50px; border-radius: 12px; background: var(--surface-2); animation: shimmer 1.3s infinite; }
.skeleton-lines { flex: 1; display: grid; gap: 7px; }
.skeleton-line { height: 10px; border-radius: 6px; background: var(--surface-2); animation: shimmer 1.3s infinite; }
.skeleton-line.w60 { width: 60%; }
.skeleton-line.w40 { width: 40%; }
@keyframes shimmer { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* empty + error states */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.empty-state h3 { margin: 12px 0 6px; font-size: 17px; }
.empty-state p { margin: 0 auto; color: var(--muted); font-size: 14px; max-width: 42ch; }
.empty-icon {
  width: 46px; height: 46px; margin: 0 auto; border-radius: 14px;
  display: grid; place-items: center; font-size: 22px;
  background: var(--accent-soft); color: var(--accent);
}

.slot-error { margin-top: 18px; }
.error-box {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--down-soft); border: 1px solid #f6cdd6;
  color: #8c1630; border-radius: var(--radius); padding: 14px 16px;
  font-size: 14px;
}
.error-box strong { display: block; color: #7a0f27; margin-bottom: 2px; }
.error-box code { background: rgba(255,255,255,.6); }

/* --------------------------------------------------------------- movers */

.movers-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.panel-head h3 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.arrow-up { color: var(--up); font-size: 12px; }
.arrow-down { color: var(--down); font-size: 12px; }
.panel-tag { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.panel-tag-up { color: var(--up); background: var(--up-soft); }
.panel-tag-down { color: var(--down); background: var(--down-soft); }

.mover-list { list-style: none; margin: 0; padding: 6px; }
.mover-item {
  display: grid; grid-template-columns: 26px minmax(0, 1fr) auto auto; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--radius-sm);
}
.mover-item + .mover-item { border-top: 1px solid var(--surface-2); }
.mover-rank { font-size: 12px; font-weight: 700; color: var(--faint); font-variant-numeric: tabular-nums; }
.mover-name { font-size: 14.5px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mover-value { font-size: 13.5px; font-weight: 650; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mover-change { font-size: 12.5px; font-weight: 720; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mover-change.up { color: var(--up); }
.mover-change.down { color: var(--down); }

/* ------------------------------------------------------------ calculator */

.calc {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start;
}
.calc-sides { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 14px; align-items: start; }
.calc-side { min-width: 0; }
.calc-vs {
  align-self: center; margin-top: 34px;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800; letter-spacing: .04em; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line);
}
.side-label { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); margin-bottom: 7px; }

.picker { position: relative; }
.picker-input {
  width: 100%;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--ink);
  font: inherit; font-size: 15px; padding: 11px 14px; outline: none;
  box-shadow: var(--shadow-sm);
}
.picker-input::placeholder { color: var(--faint); }
.picker-input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(109, 59, 245, .12); }

.picker-list {
  position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0;
  max-height: 320px; overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
}
.picker-opt {
  display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: center;
  width: 100%; text-align: left; border: 0; background: none; cursor: pointer;
  padding: 8px 9px; border-radius: 10px; font: inherit; color: inherit;
}
.picker-opt:hover, .picker-opt.is-active { background: var(--accent-soft); }
.picker-opt .thumb { width: 34px; height: 34px; border-radius: 9px; }
.picker-opt .thumb-init { font-size: 14px; }
.picker-name { display: block; font-size: 14px; font-weight: 620; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.picker-meta { display: block; font-size: 11.5px; color: var(--muted); }
.picker-empty { padding: 14px 12px; font-size: 13.5px; color: var(--muted); text-align: center; }

.picked { margin-top: 12px; }
.picked-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 11px 13px; box-shadow: var(--shadow-sm);
}
.picked-card .thumb { width: 42px; height: 42px; }
.picked-name { font-size: 14.5px; font-weight: 650; }
.picked-meta { font-size: 12px; color: var(--faint); }
.picked-value { margin-left: auto; text-align: right; }
.picked-value strong { display: block; font-size: 17px; font-weight: 750; letter-spacing: -.02em; }
.picked-value span { font-size: 11.5px; color: var(--faint); }

.verdict-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 22px;
  min-height: 240px;
}
.verdict-hint { margin: 0; color: var(--muted); font-size: 14.5px; }
.verdict-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.verdict-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.verdict-badge {
  font-size: 13px; font-weight: 800; letter-spacing: .08em;
  padding: 6px 14px; border-radius: 999px;
}
.verdict-badge.win { color: var(--up); background: var(--up-soft); }
.verdict-badge.fair { color: var(--flat); background: var(--flat-soft); }
.verdict-badge.loss { color: var(--down); background: var(--down-soft); }
.verdict-diff { font-size: 40px; font-weight: 780; letter-spacing: -.04em; line-height: 1.05; }
.verdict-diff small { font-size: 16px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.verdict-pct { font-size: 14px; font-weight: 650; margin: 4px 0 16px; }
.verdict-rows { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 9px; }
.verdict-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.verdict-row span:first-child { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.verdict-row b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.verdict-explain { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); }
.verdict-legend { font-weight: 750; font-size: 12px; letter-spacing: .04em; }
.verdict-legend.win { color: var(--up); }
.verdict-legend.fair { color: var(--flat); }
.verdict-legend.loss { color: var(--down); }

/* ---------------------------------------------------------------- widget */

.widget-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 34px; align-items: start; }
.widget-copy .section-head { margin-bottom: 20px; }
.widget-copy .section-note { margin-top: 10px; max-width: 52ch; }
.widget-copy .picker { margin-bottom: 16px; max-width: 460px; }

.snippet { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; box-shadow: var(--shadow-sm); max-width: 640px; }
.snippet-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.snippet-title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.snippet-code {
  margin: 0; padding: 14px 16px; overflow-x: auto;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.6; color: var(--ink-2);
  white-space: pre-wrap; word-break: break-word;
}
.hint { font-size: 13px; color: var(--up); min-height: 20px; margin: 8px 0 0; }
.hint.is-error { color: var(--down); }

.widget-preview { display: grid; gap: 12px; justify-items: center; }
.frame-wrap {
  background: repeating-conic-gradient(#eef0f7 0% 25%, #ffffff 0% 50%) 50% / 18px 18px;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px; box-shadow: var(--shadow-md);
  width: 100%; max-width: 400px;
  display: flex; justify-content: center;
}
.frame-wrap iframe { border: 0; border-radius: 14px; width: 100%; max-width: 360px; height: 320px; background: #0b0f19; }
.note { margin: 0; font-size: 13px; color: var(--muted); max-width: 46ch; text-align: center; }
.note strong { color: var(--ink-2); }

/* ---------------------------------------------------------------- footer */

.site-footer { background: #12142a; color: #c9cde3; padding: 48px 0 30px; margin-top: 0; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 26px; justify-content: space-between; align-items: flex-start; }
.footer-brand { max-width: 42ch; }
.footer-brand .brand-name { color: #fff; display: block; margin-bottom: 8px; }
.footer-brand p { margin: 0; font-size: 14px; color: #9aa0c0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer-links a { color: #c9cde3; font-size: 14px; font-weight: 550; }
.footer-links a:hover { color: #fff; }
.footer-credit {
  margin: 30px 0 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1);
  font-size: 13px; color: #8b91b4;
}
.footer-credit a { color: #a5b4fc; }

/* ------------------------------------------------------------ responsive */

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 30px; }
  .calc { grid-template-columns: 1fr; }
  .widget-grid { grid-template-columns: 1fr; }
  .header-nav { display: none; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .container { width: min(1180px, 100% - 28px); }
  .section { padding: 50px 0; }
  .section-head { display: block; }
  .section-note { margin-top: 10px; max-width: none; }
  .hero { padding: 44px 0 44px; }
  .movers-grid { grid-template-columns: 1fr; }
  .calc-sides { grid-template-columns: 1fr; }
  .calc-vs { margin: 0 auto; }
  .search-bar { flex-wrap: wrap; border-radius: 18px; padding: 10px 12px; }
  .search-bar input { flex: 1 1 100%; order: -1; }
  .search-bar select { flex: 1 1 auto; max-width: none; }
  .api-badges { margin-left: auto; }
  .brand-tag { display: none; }
  .stat-value { font-size: 25px; }
  .verdict-diff { font-size: 34px; }
}

@media (max-width: 520px) {
  .badge-ghost { display: none; }
  .stats-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .header-inner { gap: 10px; }
}

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