/* =========================================================
   PREDIKT // CONSENSUS TERMINAL
   Design language: quant terminal.
   Rules: mono for data, grotesque for prose. Zero radius.
   No gradients, no shadows, no emoji, no decoration that
   pretends to be a function. Inner padding < outer gap.
   ========================================================= */

:root {
  --bg:        #0b0b0c;
  --bg-2:      #0e0e10;
  --surface:   #101013;
  --surface-2: #17171b;
  --border:    #24242a;
  --border-2:  #33333c;

  --text:      #e4e4df;   /* warm phosphor white */
  --muted:     #86868f;
  --muted-2:   #7d7d87;

  --brand:     #ff9e2c;
  --brand-ink: #ff9e2c;
  --brand-2:   #ffb75c;
  --brand-dim: rgba(255,158,44,.10);

  --win:       #2fd07f;
  --win-soft:  rgba(47,208,127,.10);
  --loss:      #ff4d4d;
  --loss-soft: rgba(255,77,77,.10);
  --cyan:      #4fd1e0;
  --gold:      var(--brand);

  --radius: 0; --radius-sm: 0;
  --shadow: none; --shadow-sm: none;

  --maxw: 1180px;
  --font: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --font-prose: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
}

/* ---------- Light theme (terminal on paper) ---------- */
html[data-theme="light"] {
  --bg:        #f5f4f0;   /* warm paper */
  --bg-2:      #edebe4;
  --surface:   #fcfbf8;
  --surface-2: #eceae2;
  --border:    #d8d4c9;
  --border-2:  #bfbaac;

  --text:      #1b1b1e;
  --muted:     #5c5b64;
  --muted-2:   #6f6e77;

  --brand:     #d97600;
  --brand-ink: #a85a00;
  --brand-2:   #b96400;
  --brand-dim: rgba(217,118,0,.09);

  --win:       #0b7a49;
  --win-soft:  rgba(11,122,73,.10);
  --loss:      #c93030;
  --loss-soft: rgba(201,48,48,.08);
}
html[data-theme="light"] body { -webkit-font-smoothing: auto; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

body.landing { background: var(--bg); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Typography ---------- */
h1,h2,h3,h4 { margin: 0; line-height: 1.1; letter-spacing: -.02em; font-weight: 800; }
.muted { color: var(--muted); }
.tabnum { font-variant-numeric: tabular-nums; }

.eyebrow {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 14px;
}
.eyebrow::before { content: "// "; color: var(--muted-2); }

/* ---------- Buttons — bracketed, square ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  padding: 12px 20px; border: 1px solid var(--border-2); background: transparent; color: var(--text);
  cursor: pointer; border-radius: 0; transition: background .12s, border-color .12s, color .12s;
  white-space: nowrap;
}
.btn:hover { border-color: var(--brand); color: var(--brand-ink); }

.btn-primary { background: var(--brand); border-color: var(--brand); color: #140c00; }
.btn-primary:hover { background: var(--brand-2); border-color: var(--brand-2); color: #140c00; }

.btn-win { background: var(--win); border-color: var(--win); color: #04170e; }
.btn-win:hover { background: #45e494; border-color: #45e494; color: #04170e; }

.btn-ghost, .btn-soft { background: transparent; }
.btn-soft { border-color: var(--border-2); }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 26px; font-size: 13px; }
.btn-sm { padding: 10px 14px; font-size: 11px; min-height: 38px; }
.btn:disabled { opacity: .4; cursor: default; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg); border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 18px; height: 58px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 15px; letter-spacing: .02em; text-transform: uppercase; }
.brand .logo {
  width: 22px; height: 22px; background: var(--brand); color: #140c00;
  display: grid; place-items: center; font-weight: 800; font-size: 13px; border-radius: 0;
}
.brand b { color: var(--brand-ink); font-weight: 800; }
.nav-links { display: flex; gap: 20px; margin-left: 20px; }
.nav-links a { display: inline-flex; align-items: center; min-height: 34px; color: var(--muted); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; font-weight: 500; }
.nav-links a:hover { color: var(--brand-ink); }
.nav-links a[aria-current] { color: var(--brand-ink); box-shadow: inset 0 -2px 0 var(--brand); }
.nav-spacer { flex: 1; }
.nav-cta { display: flex; align-items: center; gap: 8px; }

/* ---------- Sections ---------- */
section { padding: 72px 0; border-bottom: 1px solid var(--border); }
.section-head { max-width: 720px; margin: 0 0 40px; }
/* h1 здесь равноправен: на журнале заголовок раздела — это H1 страницы,
   а не подзаголовок лендинга. Без этого селектора он терял размер. */
.section-head h1,
.section-head h2 { font-size: 32px; letter-spacing: -.03em; }
.section-head p { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 620px; }

/* ---------- Hero ---------- */
.hero { padding: 80px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: start; }
.hero h1 { font-size: 46px; letter-spacing: -.045em; line-height: 1.06; }
.hero h1 .grad { color: var(--brand-ink); }
.hero p.lead { font-size: 14.5px; color: var(--muted); margin: 24px 0 30px; max-width: 540px; line-height: 1.75; }
.hero p.lead b { color: var(--text); font-weight: 700; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.trust { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; letter-spacing: .04em; }
.stars, .avatars { display: none; } /* no star ratings, no fake avatars */

/* readout card */
.hero-card { border: 1px solid var(--border); background: var(--surface); }
.hc-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--bg-2);
  font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.hero-card > .pcard { border: none; }
.hero-card > p { padding: 0 14px 14px; }
.live-dot { display: inline-flex; align-items: center; gap: 7px; color: var(--brand); font-weight: 700; }
.live-dot i { width: 6px; height: 6px; background: var(--brand); }

/* ---------- Prediction / idea card ---------- */
.pcard { background: var(--surface); border: 1px solid var(--border); padding: 16px; position: relative; }
.pcard .league {
  display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted);
  letter-spacing: .12em; text-transform: uppercase; padding-bottom: 12px; border-bottom: 1px dashed var(--border);
}
.pcard .sport-ico { display: none; }
.pcard .teams { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 4px; }
.pcard .team { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.pcard .team .badge {
  width: 34px; height: 20px; display: grid; place-items: center; font-size: 11px; font-weight: 700;
  color: #fff; letter-spacing: .05em; border-radius: 0;
}
.pcard .vs { color: var(--muted-2); font-size: 11px; letter-spacing: .1em; }
.pcard .meta { color: var(--muted); font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; margin-top: 6px; }
.pick-row { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
[hidden] { display: none !important; }

.record-offline { border: 1px solid var(--brand);
  background: var(--surface); padding: 14px 16px; margin: 0 0 18px;
  font-family: var(--font-prose); font-size: 13.5px; color: var(--muted); line-height: 1.6; }

.sig-row { display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 11px 0; border-bottom: 1px dashed var(--border); flex-wrap: wrap; }
.sig-main { min-width: 200px; }
.sig-name { font-weight: 700; font-size: 13.5px; }
.sig-sub { font-size: 11.5px; font-family: var(--font); }
.sig-full { display: flex; gap: 22px; align-items: baseline; }
.sig-col-r { text-align: right; }
.sig-val { font-weight: 700; font-size: 13.5px; }
.sig-tag { font-family: var(--font); font-size: 11px; letter-spacing: .14em; padding: 3px 8px;
  border: 1px solid currentColor; }
.sig-free { border-color: var(--cyan); color: var(--cyan); }
/* Математика решения под матчем: мелко, моноширинно, числа читаются как числа */
.sig-math { font-family: var(--font); font-size: 11px; color: var(--muted); margin-top: 4px; font-variant-numeric: tabular-nums; }
.sig-math .pos { color: var(--win); } .sig-math .neg { color: var(--loss); }
/* Подпись под отрицательным EV. Ставка при цене против нас — осознанный
   вход минимальным объёмом (ТЗ v2.0 §6.4), и клиенту это объясняется
   строкой, а не оставляется выглядеть ошибкой арифметики. */
.sig-math .sig-note { display: block; margin-top: 3px; color: var(--muted-2);
  font-family: var(--font-prose); font-size: 11.5px; line-height: 1.45; max-width: 52ch; }

.pick-label { font-size: 11px; color: var(--muted-2); letter-spacing: .12em; text-transform: uppercase; }
.pick-val { font-weight: 700; font-size: 15px; margin-top: 3px; }
.conf { display: inline-flex; padding: 3px 8px; background: var(--brand-dim); color: var(--brand); font-weight: 700; font-size: 13px; }
.conf.high { background: var(--win-soft); color: var(--win); }
.edge-tag { font-size: 11px; font-weight: 700; color: var(--win); background: var(--win-soft); padding: 2px 7px; }

.cbar { height: 4px; background: var(--surface-2); margin-top: 12px; }
.cbar > i { display: block; height: 100%; background: var(--brand); }

/* locked */
.pcard.locked .lockable { filter: blur(5px); user-select: none; pointer-events: none; opacity: .5; }
.lock-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(11,11,12,.6); }
.lock-overlay .pill {
  display: inline-flex; gap: 6px; border: 1px dashed var(--border-2); background: var(--bg);
  padding: 8px 14px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--brand);
}
.badge-pro, .badge-live {
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding: 3px 7px; border: 1px solid currentColor;
}
.badge-pro  { color: var(--brand); }
.badge-live { color: var(--win); }

/* ---------- Stat band — a readout strip ---------- */
.stat-band {
  display: grid; grid-template-columns: repeat(4,1fr);
  border: 1px solid var(--border); background: var(--surface);
}
.stat { padding: 26px 24px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
/* Шесть показателей в сетке на четыре — это ряд из четырёх и обрывок из
   двух. Класс «six» стоял в разметке с самого начала, но правила к нему
   не было. Три в ряд: два ровных ряда и колонка, в которую число
   помещается целиком. */
.stat-band.six { grid-template-columns: repeat(3, 1fr); }
.stat-band.six .stat:nth-child(3n) { border-right: none; }
.stat-band.six .stat:nth-child(-n+3) { border-bottom: 1px solid var(--border); }
/* Единица — часть числа, а не следующее слово: «+19.88» и «u» на разных
   строках читаются как два показателя. Размер сжимается вместе с
   колонкой, чтобы не переносить вообще ничего. */
.stat .num { font-size: clamp(25px, 3.4vw, 34px); font-weight: 800; letter-spacing: -.04em;
  font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat .num.win { color: var(--win); }
.stat .num.blue { color: var(--brand); }
.stat .lbl { color: var(--muted); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; margin-top: 6px; }

/* ---------- Panels ---------- */
.panel { background: var(--surface); border: 1px solid var(--border); padding: 22px; }
.panel h3 { font-size: 15px; letter-spacing: .04em; text-transform: uppercase; }
.panel .sub { color: var(--muted); font-size: 12px; margin: 6px 0 18px; }
.tr-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; }

/* Именно svg, а не любой .chart: в админке «.chart» — это коробка
   вокруг графика (заголовок + svg), и высота 240px её обрезала. */
svg.chart { width: 100%; height: 240px; }
.chart-legend { display: flex; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--border); }
.dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; vertical-align: middle; }

.eq-tip {
  position: absolute; display: none; z-index: 10; pointer-events: none;
  background: var(--bg); border: 1px solid var(--border-2);
  padding: 9px 11px; font-size: 11.5px; line-height: 1.55; color: var(--muted);
  font-family: var(--font); white-space: nowrap; box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
.eq-tip.show { display: block; }
.eq-tip b { color: var(--text); }
.eq-tip b.win { color: var(--win); }
.eq-tip b.loss { color: var(--loss); }
.eq-tip b.void { color: var(--muted); }
.eq-tip span { font-size: 11px; color: var(--muted-2); letter-spacing: .05em; }

@keyframes eq-pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
.eq-pulse { animation: eq-pulse 2.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .eq-pulse { animation: none; } }

.chart-cta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; font-size: 11.5px; letter-spacing: .06em; font-family: var(--font); }
.chart-cta a { color: var(--brand); }
.chart-cta a:hover { text-decoration: underline; }

/* sport rows */
.sport-row { display: grid; grid-template-columns: 120px 1fr 50px; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--border); }
.sport-row:last-child { border-bottom: none; }
.sport-row .name { font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.bar { height: 6px; background: var(--surface-2); }
.bar > i { display: block; height: 100%; background: var(--brand); }
.sport-row .pct { text-align: right; font-weight: 700; font-size: 13px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--border); }
.step { padding: 28px 24px; border-right: 1px solid var(--border); background: var(--surface); }
.step:last-child { border-right: none; }
.step .n { color: var(--brand); font-size: 11px; letter-spacing: .16em; margin-bottom: 16px; font-weight: 700; }
/* Только прямой ребёнок шага: класс «n» слишком общий, чтобы искать его
   по всему поддереву. В админке «.n» — это числовая ячейка таблицы, и
   каждая получала «0» перед значением и « /» после. */
.step > .n::before { content: "0"; }
.step > .n::after { content: " /"; color: var(--muted-2); }
.step h3 { font-size: 15px; margin-bottom: 10px; letter-spacing: -.01em; }
.step p { color: var(--muted); font-size: 13px; margin: 0; line-height: 1.7; }

.cards-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }

/* ---------- Pricing (kept for dashboard) ---------- */
.billing-toggle { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 28px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.switch { position: relative; width: 44px; height: 22px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; background: var(--surface-2); border: 1px solid var(--border-2); cursor: pointer; }
.slider:before { content: ""; position: absolute; height: 14px; width: 14px; left: 3px; top: 3px; background: var(--brand); transition: .15s; }
.switch input:checked + .slider:before { transform: translateX(21px); }
.save-badge { font-size: 11px; font-weight: 700; color: var(--win); border: 1px solid var(--win); padding: 2px 6px; }

.plans { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--border); }
.plan { background: var(--surface); border-right: 1px solid var(--border); padding: 26px 24px; display: flex; flex-direction: column; position: relative; }
.plan:last-child { border-right: none; }
.plan.popular { background: var(--bg-2); border-top: 2px solid var(--brand); }
.plan .tag-pop { position: absolute; top: 0; right: 0; background: var(--brand); color: #140c00; font-size: 11px; font-weight: 700; padding: 3px 8px; letter-spacing: .12em; }
.plan .pname { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; color: var(--brand); }
.plan .price { font-size: 36px; font-weight: 800; letter-spacing: -.04em; margin: 14px 0 2px; font-variant-numeric: tabular-nums; }
.plan .price small { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .per { color: var(--muted); font-size: 11px; margin-bottom: 22px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 9px; }
.plan li { display: flex; gap: 9px; font-size: 12.5px; line-height: 1.5; }
.plan li .ck { color: var(--win); flex: none; }
.plan li .ck::before { content: "+"; }
.plan li.off { color: var(--muted-2); }
.plan li.off .ck::before { content: "-"; color: var(--muted-2); }
.plan li .ck { font-size: 0; }
.plan li .ck::before { font-size: 12.5px; font-weight: 700; }
.plan .btn { margin-top: auto; }
.guarantee { text-align: center; color: var(--muted-2); font-size: 12px; letter-spacing: .02em; font-family: var(--font-prose); margin-top: 20px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 14px; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: baseline; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "[+]"; color: var(--brand-ink); font-size: 12px; flex: none; }
.faq details[open] summary::after { content: "[-]"; }
.faq details[open] summary { color: var(--brand-ink); }
.faq p { color: var(--muted); margin: 0 0 20px; font-size: 13px; line-height: 1.75; max-width: 700px; }

/* ---------- CTA band ---------- */
.cta-band { border: 1px solid var(--border-2); background: var(--surface); padding: 56px 32px; text-align: center; }
.cta-band .eyebrow { text-align: center; }
.cta-band h2 { font-size: 34px; letter-spacing: -.04em; }
.cta-band p { color: var(--muted); font-size: 13.5px; margin: 16px auto 0; max-width: 560px; line-height: 1.75; }

/* ---------- Footer ---------- */
.site-footer { padding: 48px 0 30px; color: var(--muted); border-bottom: none; }
.foot-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 24px; margin-bottom: 34px; }
.foot-grid h3 { font-size: 11px; text-transform: uppercase; letter-spacing: .16em; color: var(--brand-ink); margin: 0 0 14px; }
.foot-grid a { display: flex; align-items: center; min-height: 32px; color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.foot-grid a:hover { color: var(--text); }
.foot-bottom { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; border-top: 1px solid var(--border); padding-top: 22px; font-size: 11px; flex-wrap: wrap; }
.disclaimer { font-size: 11.5px; color: var(--muted-2); max-width: 720px; line-height: 1.7; letter-spacing: .02em; }

/* ---------- Auth ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.auth-side { background: var(--bg-2); border-right: 1px solid var(--border); padding: 44px 44px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side .pitch { max-width: 440px; }
.auth-side h2 { font-size: 28px; letter-spacing: -.04em; margin: 16px 0 14px; }
.auth-side p { color: var(--muted); font-size: 13.5px; line-height: 1.75; }
.auth-side .mini-stats { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--border); margin-top: 30px; }
.auth-side .mini-stats > div { padding: 16px; border-right: 1px solid var(--border); }
.auth-side .mini-stats > div:last-child { border-right: none; }
.auth-side .mini-stats .num { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.auth-side .mini-stats .num.win { color: var(--win); }
.auth-side .mini-stats .lbl { color: var(--muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; margin-top: 4px; }
.auth-testi { border: 1px solid var(--border); border-left: 2px solid var(--brand); padding: 16px; background: var(--surface); }

.auth-main { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card .brand { margin-bottom: 30px; }
.auth-card h1 { font-size: 24px; letter-spacing: -.03em; margin-bottom: 8px; }
.auth-card .sub { color: var(--muted); font-size: 12.5px; margin-bottom: 28px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.field label::before { content: "> "; color: var(--brand); }
.field input {
  width: 100%; background: var(--bg); border: 1px solid var(--border-2); border-radius: 0;
  padding: 12px 13px; color: var(--text); font: inherit; font-size: 14px;
}
.field input:focus { outline: none; border-color: var(--brand); }
.field input:disabled { color: var(--muted-2); }
.field .hint { font-size: 11px; color: var(--muted-2); margin-top: 6px; }
.form-error { border: 1px solid var(--loss); border-left-width: 2px; color: var(--loss); background: var(--loss-soft); font-size: 12px; padding: 10px 12px; margin-bottom: 16px; display: none; }
.form-error::before { content: "[!] "; font-weight: 700; }
.form-error.show { display: block; }
.form-ok { border: 1px solid var(--win); border-left-width: 2px; color: var(--win); background: var(--win-soft); font-size: 12px; padding: 10px 12px; margin-bottom: 16px; display: none; font-family: var(--font-prose); }
.form-ok::before { content: "[ok] "; font-weight: 700; font-family: var(--font); }
.form-ok.show { display: block; }
.btn.is-busy { opacity: .6; cursor: progress; }
.form-row { display: flex; gap: 12px; }
.form-row .field { flex: 1; }
.auth-alt { color: var(--muted); font-size: 12px; margin-top: 22px; }
.auth-alt a { color: var(--brand); font-weight: 700; }
.check-line { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--muted); margin: 6px 0 22px; line-height: 1.5; }
.check-line input { width: 14px; height: 14px; accent-color: var(--brand); flex: none; }

/* ---------- Dashboard ---------- */
body.app { background: var(--bg); }
.app-shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.sidebar { background: var(--bg-2); border-right: 1px solid var(--border); padding: 18px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.sidebar .brand { padding: 4px 6px 24px; }
.side-nav { display: flex; flex-direction: column; gap: 1px; }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 11px; color: var(--muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; border-left: 2px solid transparent; }
.side-nav a .ico { display: none; }
.side-nav a::before { content: "·"; color: var(--muted-2); }
.side-nav a:hover { color: var(--text); background: var(--surface); }
.side-nav a.active { color: var(--brand-ink); background: var(--surface); border-left-color: var(--brand); }
.side-nav a.active::before { content: ">"; color: var(--brand); }
.side-foot { margin-top: auto; }
.plan-chip { display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid var(--border); padding: 12px; margin-bottom: 10px; background: var(--surface); }
.plan-chip .pl { font-size: 11px; color: var(--muted-2); letter-spacing: .14em; text-transform: uppercase; }

.ev-row { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border: 1px solid var(--border); background: var(--surface); padding: 14px 18px; margin-bottom: 8px; }
.ev-row b { font-size: 14px; }
.ev-row small { display: block; color: var(--muted-2); font-size: 11.5px; margin-top: 3px; font-family: var(--font); }
.plan-chip .val { font-weight: 700; font-size: 13px; margin-top: 2px; }
.plan-chip .val.free { color: var(--muted); }
.plan-chip .val.pro { color: var(--brand); }

.app-main { padding: 24px 28px 60px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 18px; margin-bottom: 24px; border-bottom: 1px solid var(--border); }
.topbar h1 { font-size: 20px; letter-spacing: .04em; text-transform: uppercase; }
.topbar h1::before { content: "// "; color: var(--muted-2); }
.topbar .who { display: flex; align-items: center; gap: 10px; }
.topbar .who .av { width: 32px; height: 32px; background: var(--brand); color: #140c00; display: grid; place-items: center; font-weight: 800; font-size: 12px; }

.view { display: none; }
.view.active { display: block; }

.kpi-grid { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--border); margin-bottom: 22px; }
.kpi { background: var(--surface); border-right: 1px solid var(--border); padding: 18px; }
.kpi:last-child { border-right: none; }
.kpi .lbl { color: var(--muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.kpi .num { font-size: 26px; font-weight: 800; margin-top: 8px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.kpi .delta { font-size: 11px; font-weight: 700; margin-top: 4px; letter-spacing: .04em; }
.delta.up { color: var(--win); }
.delta.down { color: var(--loss); }

.grid-2 { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; }
.grid-2.rev { grid-template-columns: 1fr 1.5fr; }

.list-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.list-head h3 { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; min-height: 34px; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--border); padding: 6px 12px; cursor: pointer; background: transparent; font-family: var(--font); line-height: inherit; }
.chip:hover { color: var(--text); }
.chip.active { color: var(--brand-ink); border-color: var(--brand); }

.table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.table th { text-align: left; color: var(--muted-2); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .14em; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.table td { padding: 12px; border-bottom: 1px dashed var(--border); }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--surface-2); }
.result-pill { display: inline-flex; font-weight: 700; font-size: 11.5px; letter-spacing: .1em; padding: 3px 8px; text-transform: uppercase; }
.result-pill.win  { color: var(--win); background: var(--win-soft); }
.result-pill.loss { color: var(--loss); background: var(--loss-soft); }
.result-pill.void { color: var(--muted); background: var(--surface-2); }

.upgrade-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  border: 1px solid var(--brand); background: var(--brand-dim); padding: 20px 22px; margin-bottom: 22px;
}
.upgrade-banner h3 { font-size: 15px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 6px; color: var(--brand); }
.upgrade-banner p { color: var(--muted); font-size: 12.5px; margin: 0; }

/* ---------- Modal ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(11,11,12,.85); display: none; place-items: center; z-index: 100; padding: 20px; }
.modal-backdrop.show { display: grid; }
.modal { width: 100%; max-width: 430px; background: var(--surface); border: 1px solid var(--border-2); padding: 26px; }
.modal h3 { font-size: 16px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.modal .sub { color: var(--muted); font-size: 12px; margin-bottom: 20px; }
.modal .order { border: 1px solid var(--border); padding: 14px; margin-bottom: 18px; background: var(--bg); }
.order-row { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; padding: 5px 0; }
.order-row.total { border-top: 1px dashed var(--border); margin-top: 6px; padding-top: 10px; font-weight: 800; font-size: 14px; }
.demo-note { font-size: 12px; color: var(--muted-2); text-align: center; margin-top: 14px; letter-spacing: .02em; font-family: var(--font-prose); }

/* ---------- Toast ---------- */
.toast-stack { position: fixed; left: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 200; }
.toast { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border-2); border-left: 2px solid var(--brand); padding: 11px 14px; max-width: 320px; font-size: 12px; }
.toast .av { width: 26px; height: 26px; display: grid; place-items: center; font-weight: 800; color: #140c00; flex: none; font-size: 11px; }
.toast b { font-weight: 700; }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--border); margin: 22px 0; }
.grid-empty { text-align: center; color: var(--muted); padding: 40px 0; }
.urgency, .countdown, .spots, .quotes, .quote { display: none; } /* no fake urgency, no fake testimonials */

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .tr-grid, .grid-2, .grid-2.rev, .auth-wrap { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .cards-grid, .steps, .plans { grid-template-columns: 1fr; }
  .step, .plan { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-band, .stat-band.six { grid-template-columns: repeat(2,1fr); }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .stat:nth-child(2n) { border-right: none; }
  .stat-band.six .stat:nth-child(3n) { border-right: 1px solid var(--border); }
  .stat-band.six .stat:nth-child(2n) { border-right: none; }
  .stat-band.six .stat:nth-child(-n+4) { border-bottom: 1px solid var(--border); }
  .kpi-grid { grid-template-columns: repeat(2,1fr); }
  .auth-side { display: none; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; align-items: center; overflow-x: auto; }
  .sidebar .brand, .side-foot { display: none; }
  .side-nav { flex-direction: row; }
  .nav-links { margin-left: 0; gap: 16px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { white-space: nowrap; }
  .nav { flex-wrap: wrap; height: auto; padding: 10px 0; row-gap: 4px; }
  .nav-spacer { display: none; }
  .nav-links { order: 3; width: 100%; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .stat-band, .kpi-grid, .stat-band.six { grid-template-columns: 1fr; }
  .stat, .kpi { border-right: none; border-bottom: 1px solid var(--border); }
  .hero h1 { font-size: 27px; }
  .section-head h1, .section-head h2, .cta-band h2 { font-size: 24px; }
}

.hero p.lead,
.section-head p,
.step p,
.status p,
.d-item span,
.faq p,
.panel > p,
.cta-band p,
.honesty p,
.auth-side p,
.disclaimer,
.upgrade-banner p {
  font-family: var(--font-prose);
  letter-spacing: 0;
  line-height: 1.65;
}
.hero p.lead { font-size: 16px; line-height: 1.6; }
.section-head p { font-size: 15px; }
.step p, .status p, .faq p, .d-item span { font-size: 14px; }
.honesty p { font-size: 14px; }

h1, h2, h3, .num, .price, .tabnum, .table, .logtable, .btn, .chip, .eyebrow, .lbl { font-family: var(--font); }

.stat-band + .honesty { margin-top: 32px !important; }
.honesty + .tr-grid { margin-top: 32px !important; }
.steps + .honesty { margin-top: 32px !important; }
.section-head { margin-bottom: 48px; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.btn:focus-visible, .chip:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 0;
  border-color: var(--brand);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .eq-pulse { animation: none !important; }
  *, *::before, *::after { transition-duration: 60ms !important; }
}
