/* ============================================================
   tradewsamet — design system
   ============================================================ */

:root {
  /* tone */
  --bg:      #07090b;
  --bg-1:    #0c0f13;
  --bg-2:    #11151b;
  --bg-card: #0e1217;
  --line:    rgba(255, 255, 255, 0.08);
  --line-2:  rgba(255, 255, 255, 0.14);
  --text:    #e8ebef;
  --muted:   #8a929c;
  --faint:   #5b636d;

  /* accent (tweakable) — default brand red */
  --accent:    #e01e2b;
  --accent-ink:#ffffff;        /* text on accent */
  --ink: #e8ebef;              /* alias of --text for headings/emphasis */
  --accent-dim: color-mix(in oklab, var(--accent) 22%, transparent);
  --accent-soft:color-mix(in oklab, var(--accent) 12%, transparent);

  /* chart semantics — decoupled from accent (always green up / red down) */
  --up:   #16c784;
  --down: #ea3943;

  /* type */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Manrope', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* metrics */
  --maxw: min(1560px, 92vw);
  --radius: 16px;
  --radius-sm: 10px;

  /* theme-aware helpers (flip in light mode) */
  --hairline: rgba(255,255,255,0.04);   /* inset top highlight on cards */
  --glass:    rgba(255,255,255,0.03);    /* ghost-button / faint fills */
  --scrim:    rgba(255,255,255,0.08);    /* track backgrounds */
  --shadow-strong: rgba(0,0,0,0.85);
}

/* ---- LIGHT THEME ------------------------------------------ */
:root[data-theme="light"] {
  --bg:      #f5f7fa;
  --bg-1:    #ffffff;
  --bg-2:    #eef1f5;
  --bg-card: #ffffff;
  --line:    rgba(18, 24, 33, 0.10);
  --line-2:  rgba(18, 24, 33, 0.17);
  --text:    #161b21;
  --muted:   #545c66;
  --faint:   #868e98;
  --ink:     #161b21;

  --hairline: rgba(18,24,33,0.05);
  --glass:    rgba(18,24,33,0.035);
  --scrim:    rgba(18,24,33,0.09);
  --shadow-strong: rgba(20,28,40,0.18);
}
/* targeted light-mode adjustments for elements that hardcoded white */
:root[data-theme="light"] .nav-links a.is-current { color: var(--accent); }
:root[data-theme="light"] .tterminal-bar { background: rgba(18,24,33,0.02); }
:root[data-theme="light"] .cm-line.entry { border-color: rgba(18,24,33,0.40); }
:root[data-theme="light"] .cm-line.entry .tag { background: rgba(18,24,33,0.10); }
:root[data-theme="light"] .cm-watermark { color: rgba(18,24,33,0.05); }
:root[data-theme="light"] body::before {
  background:
    radial-gradient(900px 600px at 78% -8%, var(--accent-soft), transparent 60%),
    radial-gradient(700px 500px at 10% 0%, rgba(60,90,200,0.06), transparent 55%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-size: clamp(16px, 0.5vw + 14px, 19px);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ambient background --------------------------------------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 78% -8%, var(--accent-soft), transparent 60%),
    radial-gradient(700px 500px at 10% 0%, rgba(120,140,255,0.05), transparent 55%);
}
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 12%, black, transparent 72%);
  opacity: 0.5;
}

main, header, footer { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 3vw, 56px);
}

/* shared bits ---------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.04; letter-spacing: -0.02em; }

.section { padding: 110px 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 52px); margin: 18px 0 16px; }
.section-head p { color: var(--muted); font-size: 18px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 0 0 var(--accent-dim);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px var(--accent-dim); }
.btn-ghost {
  background: var(--glass);
  border-color: var(--line-2);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn svg { width: 16px; height: 16px; }

/* ============================================================
   NAV
   ============================================================ */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
header.scrolled { border-bottom-color: var(--line); }
.theme-toggle {
  width: 38px; height: 38px; flex-shrink: 0;
  display: inline-grid; place-items: center; cursor: pointer;
  border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--glass); color: var(--text);
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent-dim); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .ic-sun { display: none; }
.theme-toggle .ic-moon { display: block; }
:root[data-theme="light"] .theme-toggle .ic-sun { display: block; }
:root[data-theme="light"] .theme-toggle .ic-moon { display: none; }
.nav {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-logo { display: block; height: 26px; width: auto; }
.brand-foot .brand-logo { height: 34px; }
@media (min-width: 1440px) { .brand-logo { height: 30px; } }
@media (max-width: 480px) { .brand-logo { height: 22px; } }

.brand .mark {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--accent);
  display: grid; place-items: center;
  box-shadow: 0 0 18px var(--accent-dim);
}
.brand .mark svg { width: 15px; height: 15px; }
.brand b { color: var(--accent); font-weight: 700; }
.nav-links {
  display: flex;
  gap: 32px;
  font-size: 14.5px;
  color: var(--muted);
}
.nav-links a { transition: color .2s ease; position: relative; }
.nav-links a:hover { color: var(--text); }
.nav-links a.is-current { color: #fff; font-weight: 600; }
.nav-links a.is-current::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -7px;
  height: 2px; border-radius: 2px;
  background: var(--accent);
}
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: 72px 0 90px; }

/* centered banner hero */
.hero-centered { padding: 40px 0 80px; text-align: center; }
.banner-bleed {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-bottom: 10px;
}
.banner-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 1700px;
  margin: 0 auto;
}
.hero-centered-inner { display: flex; flex-direction: column; align-items: center; }
.lead.center { text-align: center; margin-left: auto; margin-right: auto; }
.hero-cta.center { justify-content: center; }
.hero-stats.center { justify-content: center; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 74px);
  margin: 22px 0 22px;
}
.hero h1 .hl { color: var(--accent); }
.hero p.lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 600px;
  margin-bottom: 34px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--faint);
  letter-spacing: 0.01em;
}
.lead.center + .hero-cta + .hero-trust { text-align: center; }
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 46px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.hero-stats .stat .num {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.hero-stats .stat .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 4px;
}

/* chart card ----------------------------------------------- */
.chart-card {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-card));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 14px;
  box-shadow: 0 40px 90px -40px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.04);
  position: relative;
}
.chart-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.chart-pair { display: flex; align-items: center; gap: 10px; }
.chart-pair .sym { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.chart-pair .tf {
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px;
}
.chart-price { text-align: right; }
.chart-price .p { font-family: var(--font-mono); font-size: 18px; font-weight: 600; }
.chart-price .c { font-family: var(--font-mono); font-size: 12px; color: var(--up); }
.chart-plot {
  position: relative;
  height: 280px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  padding: 8px 4px 4px;
}
/* animated live hero chart */
.chart-plot.is-animated { display: block; padding: 0; height: 300px; }
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--up); position: relative;
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--up) 60%, transparent);
  animation: livePulse 1.8s ease-out infinite;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--up) 55%, transparent); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.hero-pnl {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
  padding: 9px 13px; border-radius: 12px;
  background: color-mix(in oklab, var(--bg) 55%, transparent);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
}
.hero-pnl .lbl { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.hero-pnl .val { font-family: var(--font-mono); font-weight: 700; font-size: 18px; color: var(--up); letter-spacing: -0.01em; }
.hero-toast {
  position: absolute; left: 14px; bottom: 14px; z-index: 3;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 13px; border-radius: 11px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 600;
  background: color-mix(in oklab, var(--bg) 55%, transparent);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  opacity: 0; transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease;
  pointer-events: none;
}
.hero-toast.show { opacity: 1; transform: none; }
.hero-toast .badge { font-weight: 700; padding: 2px 8px; border-radius: 6px; font-size: 11px; letter-spacing: 0.04em; }
.hero-toast.buy .badge { background: var(--up); color: #04140b; }
.hero-toast.sell .badge { background: var(--down); color: #1a0405; }
.hero-toast .px { color: var(--muted); }
.candle { position: relative; flex: 1; display: flex; justify-content: center; align-items: flex-end; }
.candle .wick { position: absolute; width: 2px; background: currentColor; opacity: .55; }
.candle .body { width: 64%; border-radius: 2px; background: currentColor; }
.candle.up { color: var(--up); }
.candle.down { color: var(--down); }
.signal {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 7px;
  border-radius: 6px;
  transform: translateX(-50%);
  white-space: nowrap;
}
.signal.buy { background: var(--up); color: #04140b; box-shadow: 0 0 18px color-mix(in oklab, var(--up) 35%, transparent); }
.signal.sell { background: var(--down); color: #1a0405; }
.signal::after {
  content: "";
  position: absolute;
  left: 50%; transform: translateX(-50%);
  border: 5px solid transparent;
}
.signal.buy::after { bottom: -9px; border-top-color: var(--up); }
.signal.sell::after { top: -9px; border-bottom-color: var(--down); }

/* ============================================================
   TICKER
   ============================================================ */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-1);
  overflow: hidden;
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  gap: 0;
  animation: ticker 38s linear infinite;
  will-change: transform;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.tick {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  font-family: var(--font-mono);
  font-size: 13px;
  border-right: 1px solid var(--line);
}
.tick .s { color: var(--text); font-weight: 600; }
.tick .v { color: var(--muted); }
.tick .ch.up { color: var(--up); }
.tick .ch.down { color: var(--down); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ============================================================
   FEATURES
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: border-color .25s ease, transform .25s ease, background .25s ease;
}
.feature:hover { border-color: var(--line-2); transform: translateY(-4px); background: var(--bg-2); }
.feature .ico {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-dim);
  display: grid; place-items: center;
  color: var(--accent);
  margin-bottom: 20px;
}
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { font-size: 20px; margin-bottom: 9px; }
.feature p { color: var(--muted); font-size: 15px; }

/* ============================================================
   SHOWCASE
   ============================================================ */
image-slot { display: block; width: 100%; }

/* market tabs (segmented) */
.sc-tabs {
  display: flex;
  width: fit-content;
  gap: 4px;
  padding: 5px;
  margin: 0 auto 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-card);
  flex-wrap: wrap;
  justify-content: center;
}
.sc-tab {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--muted);
  background: none;
  border: none;
  padding: 10px 22px;
  border-radius: 10px;
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
}
.sc-tab:hover { color: var(--text); }
.sc-tab.is-active { background: var(--accent); color: var(--accent-ink); }

/* terminal frame */
.terminal {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-card));
  box-shadow: 0 50px 110px -50px rgba(0,0,0,0.85), inset 0 1px 0 rgba(255,255,255,0.04);
  max-width: 1080px;
  margin: 0 auto;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.015);
}
.tdots { display: flex; gap: 7px; }
.tdots .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.tsym { display: flex; align-items: center; gap: 10px; }
.tsym .sym { font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: 0.01em; }
.tsym .tf { font-family: var(--font-mono); font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; }
.tlegend { margin-left: auto; display: flex; gap: 16px; }
.tlegend .lg { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.06em; }
.tlegend .sq { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.tlegend .sq.up { background: var(--up); }
.tlegend .sq.down { background: var(--down); }
.terminal-body { position: relative; background: var(--bg); }
.sc-pane { display: none; }
.sc-pane.is-active { display: block; }
.sc-slot { height: clamp(320px, 44vw, 560px); }

/* ---- generated chart mock (no upload needed) ---- */
.chartmock {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,0.025), transparent 60%),
    var(--bg);
}
.cm-grid { position: absolute; inset: 0; pointer-events: none; }
.cm-grid .h {
  position: absolute; left: 0; right: 0;
  border-top: 1px solid rgba(255,255,255,0.045);
}
.cm-plot {
  position: absolute;
  top: 22px; bottom: 26px; left: 20px; right: 72px;
  display: flex; align-items: flex-end; gap: 4px;
}
.cm-plot .candle { position: relative; flex: 1; height: 100%; }
.cm-plot .candle .wick { position: absolute; left: 50%; transform: translateX(-50%); width: 2px; background: currentColor; opacity: .55; }
.cm-plot .candle .body { position: absolute; left: 18%; width: 64%; border-radius: 1.5px; background: currentColor; }
.cm-plot .candle.up { color: var(--up); }
.cm-plot .candle.down { color: var(--down); }

/* overlay lines (entry / tp / sl) */
.cm-line { position: absolute; left: 20px; right: 72px; border-top: 1.5px dashed; display: flex; align-items: center; }
.cm-line.entry { border-color: rgba(255,255,255,0.45); }
.cm-line.tp { border-color: var(--up); }
.cm-line.sl { border-color: var(--down); }
.cm-line .tag {
  position: absolute; right: -68px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  padding: 2px 7px; border-radius: 5px; white-space: nowrap;
  transform: translateY(-50%);
}
.cm-line.entry .tag { background: rgba(255,255,255,0.12); color: var(--text); }
.cm-line.tp .tag { background: var(--up); color: #04140b; }
.cm-line.sl .tag { background: var(--down); color: #1a0405; }

/* axis price labels on right edge */
.cm-axis { position: absolute; top: 22px; bottom: 26px; right: 8px; width: 60px; pointer-events: none; }
.cm-axis .px {
  position: absolute; right: 0; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 10.5px; color: var(--faint);
}

/* signal pills on candles */
.cm-sig {
  position: absolute; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em;
  padding: 3px 8px; border-radius: 6px; white-space: nowrap; z-index: 2;
}
.cm-sig.buy { background: var(--up); color: #04140b; box-shadow: 0 4px 14px color-mix(in oklab, var(--up) 40%, transparent); }
.cm-sig.sell { background: var(--down); color: #1a0405; box-shadow: 0 4px 14px color-mix(in oklab, var(--down) 40%, transparent); }
.cm-sig::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); border: 5px solid transparent; }
.cm-sig.buy::after { bottom: -9px; border-top-color: var(--up); }
.cm-sig.sell::after { top: -9px; border-bottom-color: var(--down); }

/* watermark */
.cm-wm {
  position: absolute; left: 20px; bottom: 30px;
  font-family: var(--font-display); font-weight: 700; font-size: 26px;
  color: rgba(255,255,255,0.05); letter-spacing: 0.02em; text-transform: uppercase;
  pointer-events: none; z-index: 0;
}

/* ---- alerts mock (notification stack) ---- */
.alertmock {
  display: flex; flex-direction: column; gap: 12px;
  justify-content: flex-start;
  overflow-y: auto;
  padding: clamp(18px, 3vw, 30px) clamp(20px, 6vw, 90px);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,0.025), transparent 60%),
    var(--bg);
}
.alertmock::-webkit-scrollbar { width: 8px; }
.alertmock::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px; }
.alertmock::-webkit-scrollbar-track { background: transparent; }
.alert-card {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-card);
  box-shadow: 0 18px 40px -28px rgba(0,0,0,0.8);
}
.alert-card .ai {
  width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0;
  display: grid; place-items: center;
}
.alert-card.win .ai { background: color-mix(in oklab, var(--up) 16%, transparent); color: var(--up); border: 1px solid color-mix(in oklab, var(--up) 30%, transparent); }
.alert-card.loss .ai { background: color-mix(in oklab, var(--down) 16%, transparent); color: var(--down); border: 1px solid color-mix(in oklab, var(--down) 30%, transparent); }
.alert-card.buy .ai { background: color-mix(in oklab, var(--up) 16%, transparent); color: var(--up); border: 1px solid color-mix(in oklab, var(--up) 30%, transparent); }
.alert-card.sell .ai { background: color-mix(in oklab, var(--down) 16%, transparent); color: var(--down); border: 1px solid color-mix(in oklab, var(--down) 30%, transparent); }
.alert-card .ai svg { width: 20px; height: 20px; }
.alert-card .ai .emoji { font-size: 20px; line-height: 1; }
.alert-card .at { flex: 1; min-width: 0; }
.alert-card .at .ttl { font-family: var(--font-display); font-weight: 600; font-size: 15.5px; display: flex; align-items: center; gap: 8px; }
.alert-card .at .ttl .badge-sm { font-family: var(--font-mono); font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 5px; letter-spacing: 0.06em; }
.alert-card.win .badge-sm { background: var(--up); color: #04140b; }
.alert-card.loss .badge-sm { background: var(--down); color: #1a0405; }
.alert-card.buy .badge-sm { background: var(--up); color: #04140b; }
.alert-card.sell .badge-sm { background: var(--down); color: #1a0405; }
.alert-card .at .sub { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-top: 3px; }
.alert-card .res { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex-shrink: 0; }
.alert-card .res .amt { font-family: var(--font-mono); font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.alert-card.win .res .amt { color: var(--up); }
.alert-card.loss .res .amt { color: var(--down); }
.alert-card .res .when { font-family: var(--font-mono); font-size: 11px; color: var(--faint); }
.alert-card.is-new { animation: alertIn .45s ease; }
@keyframes alertIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

/* feature callouts under the terminal */
.sc-feats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1080px;
  margin: 22px auto 0;
}
.sc-feat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-card);
}
.sc-feat .ico {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-dim);
  display: grid; place-items: center;
  color: var(--accent);
  flex-shrink: 0;
}
.sc-feat .ico svg { width: 20px; height: 20px; }
.sc-feat strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 15.5px; }
.sc-feat span { font-size: 13px; color: var(--muted); }

/* ============================================================
   STEPS
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}
.step { padding: 34px 28px; border-right: 1px solid var(--line); position: relative; }
.step:last-child { border-right: none; }
.step .n {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 18px;
  letter-spacing: 0.1em;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ============================================================
   PRICING
   ============================================================ */
/* billing period toggle */
.bill-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  margin: 0 auto 40px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-card);
}
.bill-toggle { display: flex; width: fit-content; }
.bill-opt {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--muted);
  background: none;
  border: none;
  padding: 10px 22px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color .2s ease, background .2s ease;
}
.bill-opt:hover { color: var(--text); }
.bill-opt.is-active { background: var(--accent); color: var(--accent-ink); }
.bill-opt .save {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: color-mix(in oklab, var(--accent-ink) 18%, transparent);
  padding: 2px 7px;
  border-radius: 20px;
}
.bill-opt:not(.is-active) .save { background: var(--accent-soft); color: var(--accent); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
.pricing-grid.two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 860px;
  margin: 0 auto;
}
.plan .pnote {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--faint);
  margin: -2px 0 14px;
}

/* indicator picker (single plan) */
.ind-select { margin-bottom: 18px; }
.ind-select label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 8px;
}
.ind-select-field { position: relative; }
.ind-select select {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 11px;
  padding: 13px 42px 13px 15px;
  cursor: pointer;
  transition: border-color .2s ease;
}
.ind-select select:hover { border-color: var(--accent); }
.ind-select select:focus { outline: none; border-color: var(--accent); }
.ind-select select option { background: var(--bg-2); color: var(--text); }
.ind-caret {
  position: absolute;
  right: 15px; top: 50%;
  transform: translateY(-50%);
  width: 17px; height: 17px;
  color: var(--accent);
  pointer-events: none;
}
.btn.is-disabled { opacity: 0.5; pointer-events: none; }
.plan {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
}
.plan.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-soft), var(--bg-card) 40%);
  box-shadow: 0 30px 70px -40px var(--accent-dim);
}
.plan .tier { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.plan.featured .tier { color: var(--accent); }
.plan .badge {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
  font-weight: 700;
  display: inline-flex; align-items: center; gap: 5px;
}
.plan .badge svg { width: 12px; height: 12px; }
.plan .price { margin: 18px 0 6px; display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.plan .price .amt { font-family: var(--font-display); font-size: 46px; font-weight: 600; letter-spacing: -0.03em; }
.plan .price .per { color: var(--muted); font-size: 15px; }
.plan .price .price-was {
  font-family: var(--font-mono); font-size: 19px; color: var(--faint);
  text-decoration: line-through; text-decoration-color: color-mix(in oklab, var(--down) 80%, transparent);
  text-decoration-thickness: 2px; margin-left: 8px; align-self: baseline;
}
.plan .price .off-pill {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--up); background: color-mix(in oklab, var(--up) 14%, transparent);
  border: 1px solid color-mix(in oklab, var(--up) 38%, transparent);
  padding: 3px 9px; border-radius: 20px; align-self: center; margin-left: auto;
}
.plan.featured .price .off-pill { color: var(--up); }
.plan .pdesc { color: var(--muted); font-size: 14.5px; margin-bottom: 24px; }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 13px; margin-bottom: 28px; }
.plan li { display: flex; gap: 11px; font-size: 14.5px; color: var(--text); align-items: flex-start; }
.plan li svg { width: 17px; height: 17px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.plan .btn { width: 100%; justify-content: center; margin-top: auto; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 18px;
  width: max-content;
  padding: 6px 9px;
  animation: marquee 60s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 9px)); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; }
}
.quote {
  flex: 0 0 380px;
  width: 380px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
}
.quote p { flex: 1 0 auto; }
.quote .who { margin-top: auto; }
.quote .stars { color: var(--accent); font-size: 14px; letter-spacing: 2px; margin-bottom: 14px; }
.quote p { font-size: 15.5px; color: var(--text); margin-bottom: 22px; }
.quote .who { display: flex; align-items: center; gap: 12px; }
.quote .av {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent-soft); border: 1px solid var(--accent-dim);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; color: var(--accent);
}
.quote .who .nm { font-weight: 600; font-size: 14.5px; }
.quote .who .hd { font-family: var(--font-mono); font-size: 11px; color: var(--faint); letter-spacing: 0.06em; }

/* real TradingView review screenshots */
.tv-reviews { margin-bottom: 30px; }
.tv-reviews-bar { display: flex; justify-content: center; }
.tv-verified {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em; color: var(--up);
  background: color-mix(in oklab, var(--up) 12%, transparent);
  border: 1px solid color-mix(in oklab, var(--up) 35%, transparent);
  padding: 7px 14px; border-radius: 30px;
}
.tv-verified svg { color: var(--up); }

/* two-column vertically-scrolling wall of real reviews */
.tv-wall {
  display: flex;
  gap: 16px;
  height: 600px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 7%, #000 93%, transparent);
}
.tv-col { flex: 1 1 0; min-width: 0; overflow: hidden; }
.tv-col-track {
  display: flex; flex-direction: column; gap: 16px;
  animation: tvscrollY linear infinite;
  will-change: transform;
}
.tv-col-track.tv-col-rev { animation-direction: reverse; }
.tv-wall:hover .tv-col-track { animation-play-state: paused; }
@keyframes tvscrollY { to { transform: translateY(calc(-50% - 8px)); } }
.tv-card {
  flex: 0 0 auto;
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.tv-card img { display: block; width: 100%; height: auto; }
.tv-card:hover {
  border-color: var(--accent-dim);
  box-shadow: 0 18px 40px -22px rgba(0,0,0,.7);
}
@media (max-width: 700px) {
  .tv-wall { height: 520px; }
}
@media (prefers-reduced-motion: reduce) {
  .tv-col-track { animation: none; }
  .tv-col { overflow-y: auto; }
}


/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  text-align: left;
  padding: 26px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.faq-q .pm { color: var(--accent); font-size: 24px; transition: transform .25s ease; flex-shrink: 0; }
.faq-item.open .faq-q .pm { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { color: var(--muted); font-size: 15.5px; padding-bottom: 26px; max-width: 680px; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: linear-gradient(135deg, var(--bg-2), var(--bg-card));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 64px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 50% 0%, var(--accent-soft), transparent 65%);
  pointer-events: none;
}
.cta-band h2 { font-size: clamp(30px, 4vw, 48px); margin-bottom: 16px; position: relative; }
.cta-band p { color: var(--muted); font-size: 18px; margin-bottom: 32px; position: relative; }
.cta-band .hero-cta { justify-content: center; position: relative; }

/* ============================================================
   FOOTER
   ============================================================ */
footer { border-top: 1px solid var(--line); padding: 64px 0 40px; margin-top: 30px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 40px; margin-bottom: 50px; }
.foot-brand p { color: var(--muted); font-size: 14.5px; max-width: 280px; margin-top: 16px; }
.foot-col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 18px; }
.foot-col a { display: block; color: var(--muted); font-size: 14.5px; margin-bottom: 12px; transition: color .2s ease; }
.foot-col a:hover { color: var(--accent); }
.foot-bottom {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.foot-bottom .disc { color: var(--faint); font-size: 12.5px; max-width: 620px; line-height: 1.6; }
.foot-bottom .cp { font-family: var(--font-mono); font-size: 12px; color: var(--faint); }

/* ============================================================
   POLICY / LEGAL PAGES
   ============================================================ */
.policy-sec { padding-bottom: 100px; }
.policy-layout {
  display: grid;
  grid-template-columns: 248px 1fr;
  gap: 56px;
  align-items: start;
}
.policy-index {
  position: sticky;
  top: 100px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-card);
  padding: 20px;
}
.pi-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 0 8px 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.pi-nav { display: flex; flex-direction: column; }
.pi-nav a {
  font-size: 14px;
  color: var(--muted);
  padding: 9px 10px;
  border-radius: 8px;
  transition: color .18s ease, background .18s ease;
}
.pi-nav a:hover { color: var(--text); background: var(--glass); }
.pi-nav a.on {
  color: var(--accent);
  background: color-mix(in oklab, var(--accent) 10%, transparent);
  font-weight: 600;
}

.policy-doc { max-width: 760px; }
.policy-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 22px;
  transition: color .18s ease;
}
.policy-back:hover { color: var(--accent); }
.policy-back svg { width: 15px; height: 15px; }
.policy-doc h1 {
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.06;
  margin-bottom: 12px;
}
.policy-updated {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--faint);
  margin-bottom: 26px;
}
.policy-intro {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  padding: 18px 22px;
  border-left: 3px solid var(--accent);
  background: color-mix(in oklab, var(--accent) 6%, transparent);
  border-radius: 0 12px 12px 0;
  margin-bottom: 38px;
}
.policy-body h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 36px 0 12px;
  color: var(--text);
}
.policy-body h2:first-child { margin-top: 0; }
.policy-body p {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 14px;
}
.policy-body ul {
  list-style: none;
  margin: 6px 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.policy-body li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}
.policy-body li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.policy-body a, .policy-intro a, .policy-foot a { color: var(--accent); text-decoration: none; border-bottom: 1px solid color-mix(in oklab, var(--accent) 40%, transparent); }
.policy-body a:hover, .policy-intro a:hover, .policy-foot a:hover { border-bottom-color: var(--accent); }
.policy-foot {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.policy-foot p { font-size: 14px; color: var(--faint); }

/* policy index grid */
.policy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 12px;
}
.policy-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-card);
  padding: 24px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}
.policy-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -22px rgba(0,0,0,.6);
}
.policy-card h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.policy-card p { font-size: 13.5px; line-height: 1.6; color: var(--muted); flex: 1; }
.pc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-top: 4px;
}
.pc-link svg { width: 15px; height: 15px; }

@media (max-width: 900px) {
  .policy-layout { grid-template-columns: 1fr; gap: 28px; }
  .policy-index { position: static; }
  .pi-nav { flex-flow: row wrap; }
  .pi-nav a { flex: 0 0 auto; }
  .policy-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .policy-grid { grid-template-columns: 1fr; }
}

/* reveal animation ----------------------------------------- */
/* Only hide when JS has armed reveal — guarantees content shows if JS/IO fails */
.reveal-on .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal-on .reveal.in { opacity: 1; transform: none; }

/* ============================================================
   WHY — trust pillars + guarantee
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.why-pillar {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
}
.why-pillar .ico {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-dim);
  display: grid; place-items: center;
  color: var(--accent);
  margin-bottom: 20px;
}
.why-pillar .ico svg { width: 22px; height: 22px; }
.why-pillar h3 { font-size: 19px; margin-bottom: 9px; }
.why-pillar p { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.why-link {
  margin-top: 16px;
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; font-size: 13.5px; color: var(--accent);
}
.why-link svg { width: 15px; height: 15px; transition: transform .2s ease; }
.why-link:hover svg { transform: translateX(3px); }

.guarantee {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px 34px;
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius);
  background: linear-gradient(120deg, var(--accent-soft), var(--bg-card) 55%);
}
.guarantee .guar-ico {
  width: 56px; height: 56px; flex-shrink: 0;
  border-radius: 14px;
  display: grid; place-items: center;
  color: var(--accent);
  background: color-mix(in oklab, var(--accent) 14%, transparent);
  border: 1px solid var(--accent-dim);
}
.guarantee .guar-ico svg { width: 28px; height: 28px; }
.guarantee .guar-body { flex: 1; }
.guarantee h3 { font-size: 21px; margin-bottom: 6px; }
.guarantee p { color: var(--muted); font-size: 15px; line-height: 1.55; max-width: 720px; }
.guarantee .btn { flex-shrink: 0; }

/* ============================================================
   COMPARISON — most indicators vs tradewsamet
   ============================================================ */
.compare {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-card);
  max-width: 980px;
  margin: 0 auto 40px;
}
.compare-head,
.compare-row {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  align-items: stretch;
}
.compare-head {
  border-bottom: 1px solid var(--line);
}
.compare-head .compare-col {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.compare-head .compare-them {
  border-left: 1px solid var(--line);
}
.compare-head .compare-us {
  border-left: 1px solid var(--accent-dim);
  background: linear-gradient(180deg, var(--accent-soft), transparent);
}
.ct-tag, .cu-tag {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.ct-tag { color: var(--muted); }
.cu-tag { color: var(--accent); }
.compare-row + .compare-row { border-top: 1px solid var(--line); }
.compare-row-label {
  padding: 17px 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
}
.compare-cell {
  padding: 17px 20px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 11px;
  border-left: 1px solid var(--line);
}
.compare-cell.us {
  color: var(--text);
  border-left: 1px solid var(--accent-dim);
  background: color-mix(in oklab, var(--accent) 4%, transparent);
}
.ci {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  position: relative;
  margin-top: 1px;
}
.ci.x { background: color-mix(in oklab, var(--down) 16%, transparent); }
.ci.ok { background: color-mix(in oklab, var(--up) 18%, transparent); }
.ci.x::before, .ci.x::after,
.ci.ok::before {
  content: "";
  position: absolute;
  background: currentColor;
}
.ci.x { color: var(--down); }
.ci.ok { color: var(--up); }
.ci.x::before, .ci.x::after {
  width: 9px; height: 1.8px;
  left: 50%; top: 50%;
  border-radius: 2px;
}
.ci.x::before { transform: translate(-50%, -50%) rotate(45deg); }
.ci.x::after { transform: translate(-50%, -50%) rotate(-45deg); }
.ci.ok::before {
  width: 8px; height: 4px;
  border-left: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  background: transparent;
  left: 50%; top: 46%;
  transform: translate(-50%, -50%) rotate(-45deg);
}
.compare-cta { text-align: center; margin-top: 30px; }

@media (max-width: 760px) {
  .compare-row-label { display: none; }
  .compare-head { grid-template-columns: 1fr 1fr; }
  .compare-head .compare-row-label { display: none; }
  .compare-row {
    grid-template-columns: 1fr;
    position: relative;
  }
  .compare-cell {
    border-left: none;
    padding: 13px 18px;
  }
  .compare-cell.them { border-bottom: 1px solid var(--line); }
  .compare-cell.us { border-left: none; }
  .compare-cell::before {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--faint);
    margin-right: auto;
    align-self: center;
  }
  .compare-head .compare-them, .compare-head .compare-us { border-left: none; }
  .compare-head .compare-them { border-right: 1px solid var(--line); }
}

.price-note {
  text-align: center;
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--faint);
}

/* ============================================================
   INDICATORS — list + detail pages
   ============================================================ */
.pagehead { padding-top: 64px; }

/* list grid */
.ind-filter { display: flex; justify-content: center; margin-bottom: 4px; }
.ind-filter .bill-toggle { margin: 0 auto 8px; }
.ind-group { margin-top: 56px; }
.ind-group:first-child { margin-top: 8px; }
.ind-group.solo { margin-top: 8px; }
.ind-group-head {
  display: flex; flex-direction: column; gap: 8px;
  padding-bottom: 20px; margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.ind-group-title { display: flex; align-items: center; gap: 14px; }
.ind-group-title h3 {
  font-size: clamp(22px, 2.6vw, 30px); font-weight: 800;
  letter-spacing: -0.02em; margin: 0; color: var(--ink);
}
.ind-group-tag {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 20px;
}
.ind-group-tag.free { background: var(--up); color: #04140b; }
.ind-group-tag.pro { background: var(--accent); color: var(--accent-ink); }
.ind-group-count {
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
  color: var(--muted); background: var(--card-2);
  border: 1px solid var(--line); border-radius: 20px;
  min-width: 28px; height: 28px; padding: 0 9px;
  display: inline-flex; align-items: center; justify-content: center;
}
.ind-group-head > p { color: var(--muted); font-size: 15px; max-width: 60ch; margin: 0; }
.ind-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.ind-preview-cta { display: flex; justify-content: center; margin-top: 36px; }
.ind-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.ind-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 30px 70px -50px var(--accent-dim); }
.ind-card-vis {
  position: relative;
  height: 200px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,0.03), transparent 60%),
    var(--bg);
  overflow: hidden;
}
.ind-tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--accent); color: var(--accent-ink);
  padding: 4px 10px; border-radius: 20px;
}
.ind-tag.free { background: var(--up); color: #04140b; }
.ind-tag.pro { background: var(--accent); color: var(--accent-ink); }

/* tier badge on detail eyebrow */
.detail-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.tier-badge {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 20px;
}
.tier-badge.free { background: var(--up); color: #04140b; }
.tier-badge.pro { background: var(--accent); color: var(--accent-ink); }
.card-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.ind-card-vis.has-shot { background: var(--bg); }
.mini-plot { position: absolute; inset: 22px 18px 18px; display: flex; align-items: flex-end; gap: 3px; }
.mini-plot .mc { position: relative; flex: 1; height: 100%; }
.mini-plot .mc .w { position: absolute; left: 50%; transform: translateX(-50%); width: 1.5px; background: currentColor; opacity: .5; }
.mini-plot .mc .b { position: absolute; left: 20%; width: 60%; border-radius: 1px; background: currentColor; }
.mini-plot .mc.up { color: var(--up); }
.mini-plot .mc.down { color: var(--down); }
.ind-card-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.ind-card-body h3 { font-size: 22px; margin-bottom: 7px; }
.ind-card-body p { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.chip {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em;
  color: var(--muted); border: 1px solid var(--line-2);
  padding: 4px 10px; border-radius: 7px;
}
.chips.big .chip { font-size: 12px; padding: 5px 12px; }
.ind-link {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 14.5px; color: var(--accent);
}
.ind-link svg { width: 16px; height: 16px; transition: transform .2s ease; }
.ind-card:hover .ind-link svg { transform: translateX(4px); }

/* detail page */
.detail-hero { padding-top: 40px; }
.crumb {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 13px; color: var(--muted);
  margin-bottom: 30px; transition: color .2s ease;
}
.crumb:hover { color: var(--accent); }
.crumb svg { width: 16px; height: 16px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.detail-copy h1 { font-size: clamp(34px, 4.6vw, 56px); margin: 16px 0 18px; }
.detail-copy .lead { font-size: 18px; color: var(--muted); margin-bottom: 22px; }
.detail-copy .chips { margin-bottom: 28px; }
.detail-slot { height: clamp(300px, 38vw, 440px); }
.detail-shot { display: block; width: 100%; height: auto; }

/* ---- "Watch it work" animated replay ---- */
.replay-host {
  position: relative;
  width: 100%;
  height: clamp(360px, 42vw, 500px);
  background: var(--bg);
}
.replay-canvas { display: block; width: 100%; height: 100%; }
.replay-tag {
  position: absolute; top: 10px; right: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; color: var(--down);
  background: color-mix(in oklab, var(--down) 14%, transparent);
  border: 1px solid color-mix(in oklab, var(--down) 38%, transparent);
  padding: 4px 9px; border-radius: 20px;
  pointer-events: none;
}
.replay-tag i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--down);
  animation: replayPulse 1.4s ease-in-out infinite;
}
@keyframes replayPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }
.replay-note {
  margin: 12px 2px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  color: var(--faint);
}
@media (prefers-reduced-motion: reduce) { .replay-tag i { animation: none; } }
.meta-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin-top: 48px;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--line);
}
.meta { background: var(--bg-card); padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.meta .ml { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.meta .mv { font-family: var(--font-display); font-weight: 500; font-size: 16px; }

/* persuasive pitch block */
.reassure {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--faint);
  letter-spacing: 0.02em;
}
.pitch-hook {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  max-width: 900px;
  margin: 0 auto 44px;
  text-align: center;
  text-wrap: balance;
}
.pitch-hook::before, .pitch-hook::after { content: "\201C"; color: var(--accent); }
.pitch-hook::after { content: "\201D"; }
.pitch-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: start;
}
.pitch-body p {
  font-size: 17.5px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 18px;
  text-wrap: pretty;
}
.pitch-body p:last-child { margin-bottom: 0; }
.pitch-body p strong, .pitch-body em { color: var(--text); font-style: normal; }

/* ---- promo video section ---- */
.promo-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 56px;
  align-items: center;
}
.promo-player {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: #07090b;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,0.02) inset;
  justify-self: center;
}
.promo-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.promo-poster {
  position: absolute;
  inset: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  background:
    radial-gradient(120% 80% at 50% 18%, color-mix(in oklab, var(--accent) 16%, transparent), transparent 60%),
    linear-gradient(180deg, #0a0e14 0%, #07090b 70%);
  transition: opacity .35s ease;
}
.promo-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(120% 90% at 50% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}
.promo-poster.hide { opacity: 0; }
.pp-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pp-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in oklab, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in oklab, var(--accent) 38%, transparent);
  padding: 5px 9px;
  border-radius: 20px;
}
.pp-len {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  background: rgba(0,0,0,0.4);
  padding: 4px 8px;
  border-radius: 16px;
}
.pp-play {
  position: absolute;
  z-index: 3;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 74px; height: 74px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 12px 34px -8px color-mix(in oklab, var(--accent) 70%, transparent);
  transition: transform .2s ease, box-shadow .2s ease;
}
.pp-play::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid color-mix(in oklab, var(--accent) 50%, transparent);
  animation: ppPulse 2.2s ease-out infinite;
}
@keyframes ppPulse {
  0% { transform: scale(0.85); opacity: 0.8; }
  100% { transform: scale(1.35); opacity: 0; }
}
.pp-play svg { width: 30px; height: 30px; margin-left: 4px; }
.promo-poster:hover .pp-play { transform: translate(-50%, -50%) scale(1.06); }
.pp-bottom {
  position: relative;
  z-index: 2;
  text-align: center;
}
.pp-cap {
  display: block;
  font-family: var(--font-display, 'Space Grotesk'), sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.pp-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-top: 5px;
}
.promo-copy .eyebrow { margin-bottom: 14px; }
.promo-copy h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
  text-wrap: balance;
}
.promo-lead {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 22px;
  max-width: 52ch;
}
.promo-points {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.promo-points li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}
.promo-points svg {
  width: 17px; height: 17px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

@media (max-width: 860px) {
  .promo-grid { grid-template-columns: 1fr; gap: 32px; justify-items: center; }
  .promo-copy { text-align: center; max-width: 540px; }
  .promo-lead { margin-left: auto; margin-right: auto; }
  .promo-points { text-align: left; display: inline-flex; }
}
.pitch-side {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--accent-soft), var(--bg-card) 42%);
  padding: 28px 26px;
  position: sticky;
  top: 96px;
}
.pitch-side h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.outcomes { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.outcomes li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--text); line-height: 1.45; }
.outcomes li svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
/* detail howto reuses .steps but cards have no h3 */
.detail-hero + .section .steps .step p,
.steps .step p:only-child { color: var(--text); font-size: 15px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* large screens — scale type & spacing so it fills the viewport */
@media (min-width: 1440px) {
  .section { padding: 130px 0; }
  .section-head { max-width: 760px; }
  .section-head p { font-size: 20px; }
  .hero p.lead { font-size: 21px; max-width: 580px; }
  .hero-stats .stat .num { font-size: 36px; }
  .chart-plot { height: 340px; }
  .feature { padding: 38px 34px; }
  .feature h3 { font-size: 22px; }
  .feature p { font-size: 16.5px; }
  .step { padding: 42px 34px; }
  .step h3 { font-size: 21px; }
  .step p { font-size: 16px; }
  .plan { padding: 40px 36px; }
  .plan .price .amt { font-size: 54px; }
  .plan li { font-size: 16px; }
  .quote p { font-size: 17px; }
  .faq-q { font-size: 21px; }
  .faq-a p { font-size: 17px; }
  .nav { height: 84px; }
  .nav-links { font-size: 16px; }
}
@media (min-width: 1800px) {
  .section { padding: 150px 0; }
  .chart-plot { height: 380px; }
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .nav-links { display: none; }
  .features-grid, .pricing-grid, .quotes-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: 1fr; gap: 32px; }
  .meta-row { grid-template-columns: 1fr 1fr; }
  .pitch-grid { grid-template-columns: 1fr; gap: 28px; }
  .pitch-side { position: static; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) { border-right: none; }
  .step:nth-child(1), .step:nth-child(2) { border-bottom: 1px solid var(--line); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 20px; }
  .section { padding: 72px 0; }
  .nav-links { display: none; }
  .features-grid, .pricing-grid, .quotes-grid { grid-template-columns: 1fr; }
  .sc-feats { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .guarantee { flex-direction: column; align-items: flex-start; text-align: left; gap: 18px; }
  .ind-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: none; }
  .hero-stats { gap: 26px; flex-wrap: wrap; }
  .hero-cta { gap: 10px; }
  .hero-cta .btn { flex: 1; justify-content: center; }
  .cta-band { padding: 48px 26px; }
  .chart-plot { height: 240px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .foot-brand { grid-column: 1 / -1; }
  .nav-cta .btn-ghost { display: none; }
}
@media (max-width: 420px) {
  .features-grid, .pricing-grid, .quotes-grid, .foot-grid { grid-template-columns: 1fr; }
  .meta-row { grid-template-columns: 1fr; }
  .quote { flex-basis: 300px; width: 300px; }
  .hero-stats { gap: 20px; }
  .hero-stats .stat .num { font-size: 26px; }
}

/* ============================================================
   SCARCITY STRIP (pricing)
   ============================================================ */
.scarcity {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
  max-width: 880px; margin: 0 auto 28px;
  padding: 16px 22px;
  border: 1px solid var(--accent-dim);
  border-radius: 14px;
  background: linear-gradient(120deg, var(--accent-soft), var(--bg-card) 62%);
}
.sc-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.sc-flame {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px;
  background: var(--accent-soft); border: 1px solid var(--accent-dim);
  display: grid; place-items: center; color: var(--accent);
}
.sc-flame svg { width: 20px; height: 20px; animation: scFlicker 2.4s ease-in-out infinite; }
@keyframes scFlicker { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .72; transform: scale(.93); } }
.sc-txt { display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.sc-txt strong { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--ink); }
.sc-txt span { font-size: 12.5px; color: var(--muted); }
.sc-right { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.sc-count { display: flex; align-items: center; gap: 6px; }
.sc-unit { display: flex; flex-direction: column; align-items: center; min-width: 40px; }
.sc-unit b {
  font-family: var(--font-mono); font-size: 22px; font-weight: 700; color: var(--accent);
  font-variant-numeric: tabular-nums; line-height: 1;
}
.sc-unit i { font-style: normal; font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-top: 4px; }
.sc-colon { font-family: var(--font-mono); font-size: 20px; color: var(--faint); transform: translateY(-6px); }
.sc-spots { display: flex; flex-direction: column; gap: 6px; min-width: 168px; }
.sc-bar { height: 7px; border-radius: 20px; background: var(--scrim); overflow: hidden; }
.sc-bar span { display: block; height: 100%; width: 17%; border-radius: 20px; background: linear-gradient(90deg, var(--accent), color-mix(in oklab, var(--accent) 55%, #fff)); transition: width .6s ease; }
.sc-spots-txt { font-size: 12px; color: var(--muted); }
.sc-spots-txt b { color: var(--ink); font-weight: 700; }

/* ============================================================
   EXIT-INTENT MODAL
   ============================================================ */
.exit-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: none; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(4,6,9,0.72); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .25s ease;
}
.exit-overlay.is-open { display: flex; opacity: 1; }
.exit-card {
  position: relative;
  max-width: 480px; width: 100%;
  background: linear-gradient(180deg, var(--bg-2), var(--bg-card));
  border: 1px solid var(--line-2);
  border-radius: 20px;
  padding: 38px 34px 30px;
  box-shadow: 0 60px 140px -40px rgba(0,0,0,0.9), inset 0 1px 0 rgba(255,255,255,0.05);
  transform: translateY(14px) scale(0.98); transition: transform .28s cubic-bezier(.2,.8,.2,1);
}
.exit-overlay.is-open .exit-card { transform: none; }
.exit-card::before {
  content: ""; position: absolute; inset: 0; border-radius: 20px; pointer-events: none;
  background: radial-gradient(420px 200px at 50% 0%, var(--accent-soft), transparent 65%);
}
.exit-close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--bg-card); border: 1px solid var(--line);
  color: var(--muted); cursor: pointer;
  display: grid; place-items: center; transition: color .2s ease, border-color .2s ease;
}
.exit-close:hover { color: var(--ink); border-color: var(--line-2); }
.exit-close svg { width: 18px; height: 18px; }
.exit-eyebrow {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); position: relative;
}
.exit-card h3 {
  font-family: var(--font-display); font-size: clamp(22px, 3.4vw, 27px); font-weight: 700;
  letter-spacing: -0.02em; margin: 12px 0 10px; line-height: 1.18; color: var(--ink); position: relative;
}
.exit-card > p { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0 0 22px; position: relative; }
.exit-cta { display: flex; gap: 12px; flex-wrap: wrap; position: relative; }
.exit-cta .btn { flex: 1 1 auto; justify-content: center; }
.exit-note { font-size: 12.5px; color: var(--faint); margin: 18px 0 0; text-align: center; position: relative; }
@media (max-width: 560px) {
  .exit-cta { flex-direction: column; }
  .scarcity { justify-content: center; text-align: left; }
  .sc-right { justify-content: center; }
}

/* ============================================================
   PAGE TRANSITIONS
   ============================================================ */
/* base: hide content before the enter animation (class set inline in <head>) */
html.pagefx-ready body { opacity: 0; }
html.pagefx-ready main { opacity: 0; transform: translateY(14px); }

/* enter: fade body, fade + rise main */
html.pagefx-in body {
  opacity: 1;
  transition: opacity .5s ease;
}
html.pagefx-in main {
  opacity: 1; transform: none;
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1);
}

/* exit: fade everything out (declared last so it wins at equal specificity) */
html.pagefx-out body {
  opacity: 0;
  transition: opacity .34s ease;
}

/* veil + accent glow that rises during exit */
.pagefx-veil {
  position: fixed; inset: 0; z-index: 9997; pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(900px 500px at 50% 28%, var(--accent-soft), transparent 62%),
    var(--bg-1);
  transition: opacity .36s ease;
}
html.pagefx-out .pagefx-veil { opacity: 0.55; }

/* thin top progress bar */
.pagefx-bar {
  position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 10001;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent), 0 0 4px var(--accent);
  transition: width .4s cubic-bezier(.4, 0, .2, 1);
}

@media (prefers-reduced-motion: reduce) {
  html.pagefx-ready body,
  html.pagefx-ready main { opacity: 1; transform: none; }
  .pagefx-veil, .pagefx-bar { display: none; }
}

/* ============================================================
   BOOKS — list + detail
   ============================================================ */
.bk-premium-banner {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  max-width: 920px; margin: 0 auto 44px; padding: 20px 24px;
  border: 1px solid var(--accent-dim); border-radius: 16px;
  background: linear-gradient(120deg, var(--accent-soft), var(--bg-card) 60%);
}
.bk-premium-banner .bpb-ico {
  width: 50px; height: 50px; flex-shrink: 0; border-radius: 13px;
  display: grid; place-items: center; color: var(--accent);
  background: var(--accent-soft); border: 1px solid var(--accent-dim);
}
.bk-premium-banner .bpb-ico svg { width: 26px; height: 26px; }
.bk-premium-banner .bpb-body { flex: 1; min-width: 240px; }
.bk-premium-banner h3 { font-size: 19px; margin-bottom: 4px; }
.bk-premium-banner p { color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.bk-premium-banner .btn { flex-shrink: 0; }

.bk-group { margin-top: 52px; }
.bk-group:first-child { margin-top: 8px; }
.bk-group-head {
  display: flex; flex-direction: column; gap: 8px;
  padding-bottom: 18px; margin-bottom: 26px; border-bottom: 1px solid var(--line);
}
.bk-group-title { display: flex; align-items: center; gap: 14px; }
.bk-group-title h3 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.bk-group-tag {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 11px; border-radius: 20px;
}
.bk-group-tag.paid { background: var(--accent); color: var(--accent-ink); }
.bk-group-tag.free { background: var(--up); color: #04140b; }
.bk-group-count {
  font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--muted);
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 20px;
  min-width: 28px; height: 28px; padding: 0 9px; display: inline-flex; align-items: center; justify-content: center;
}
.bk-group-head > p { color: var(--muted); font-size: 15px; max-width: 62ch; margin: 0; }

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

.bk-card {
  display: flex; flex-direction: column;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.bk-card:hover { border-color: var(--accent-dim); transform: translateY(-4px); box-shadow: 0 22px 50px -28px rgba(0,0,0,.75); }

.bk-cover {
  position: relative; aspect-ratio: 3 / 2; overflow: hidden;
  background: var(--bg-2); border-bottom: 1px solid var(--line);
  display: grid; place-items: center;
}
.bk-cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bk-cover-ph {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; gap: 10px; justify-content: center;
  padding: 26px; text-align: left;
  background:
    radial-gradient(120% 90% at 0% 0%, color-mix(in oklab, var(--bk) 38%, transparent), transparent 60%),
    linear-gradient(135deg, #14181f, #0c0f14);
  position: relative;
}
.bk-cover-ph::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--bk);
}
.bk-ph-brand { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bk); }
.bk-ph-title { font-family: var(--font-display); font-size: clamp(18px, 2.4vw, 24px); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; color: #fff; max-width: 16ch; }
.bk-ph-rule { width: 38px; height: 3px; border-radius: 3px; background: var(--bk); }
.bk-ph-foot { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--muted); margin-top: auto; }

.bk-tag {
  position: absolute; top: 12px; right: 12px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.06em; padding: 4px 10px; border-radius: 20px;
}
.bk-tag.paid { background: var(--accent); color: var(--accent-ink); }
.bk-tag.free { background: var(--up); color: #04140b; }

.bk-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.bk-meta-line { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; color: var(--faint); margin-bottom: 9px; }
.bk-body h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 7px; }
.bk-body > p { color: var(--muted); font-size: 14px; line-height: 1.5; margin-bottom: 16px; }
.bk-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.bk-price { display: inline-flex; align-items: baseline; gap: 7px; }
.bk-amt { font-family: var(--font-mono); font-size: 18px; font-weight: 700; color: var(--text); }
.bk-was { font-family: var(--font-mono); font-size: 12px; color: var(--faint); text-decoration: line-through; }
.bk-once { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.05em; color: var(--faint); text-transform: uppercase; }
.bk-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--accent); }
.bk-link svg { width: 15px; height: 15px; transition: transform .2s ease; }
.bk-card:hover .bk-link svg { transform: translateX(3px); }

/* detail page */
.bk-detail-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: start; margin-top: 22px; }
.bk-cover.lg { aspect-ratio: 3 / 4; border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 30px 70px -34px rgba(0,0,0,.85); }
.bk-cover.lg .bk-cover-ph { padding: 34px; gap: 14px; }
.bk-detail-info h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.08; margin: 8px 0 16px; }
.bk-lead { font-size: 17px; line-height: 1.6; color: var(--muted); margin-bottom: 26px; }

.bk-buy { border: 1px solid var(--line); border-radius: 16px; padding: 22px; background: var(--bg-card); }
.bk-buy-price { display: flex; align-items: baseline; gap: 9px; margin-bottom: 16px; }
.bk-buy-price .bk-amt { font-size: 30px; }
.bk-buy-price .bk-was { font-size: 16px; }
.btn-lg { width: 100%; justify-content: center; font-size: 16px; padding: 14px 22px; }
.bk-incl { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; padding: 13px 15px; border-radius: 11px; background: var(--accent-soft); border: 1px solid var(--accent-dim); }
.bk-incl svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; margin-top: 1px; }
.bk-incl span { font-size: 13.5px; line-height: 1.5; color: var(--text); }
.bk-incl-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13.5px; font-weight: 600; color: var(--accent); text-decoration: none; }
.bk-incl-link svg { width: 15px; height: 15px; }
.bk-buy-note { font-family: var(--font-mono); font-size: 11px; color: var(--faint); margin-top: 14px; text-align: center; }

.bk-read { display: grid; grid-template-columns: 1.4fr 0.85fr; gap: 48px; align-items: start; }
.bk-read-main h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 16px; }
.bk-read-main p { color: var(--muted); font-size: 15.5px; line-height: 1.7; margin-bottom: 16px; }
.bk-side-card { border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; background: var(--bg-card); margin-bottom: 18px; }
.bk-side-card h4 { font-size: 14px; font-weight: 700; margin-bottom: 12px; letter-spacing: 0.01em; }
.bk-inside { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.bk-inside li { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.bk-inside svg { width: 16px; height: 16px; color: var(--up); flex-shrink: 0; margin-top: 1px; }
.bk-banner { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 70px -38px rgba(0,0,0,.85); }
.bk-banner img { display: block; width: 100%; height: auto; }

@media (max-width: 900px) {
  .bk-grid { grid-template-columns: repeat(2, 1fr); }
  .bk-detail-grid { grid-template-columns: 1fr; gap: 28px; max-width: 460px; }
  .bk-cover.lg { aspect-ratio: 3 / 2; }
  .bk-read { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 560px) {
  .bk-grid { grid-template-columns: 1fr; }
  .bk-premium-banner { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   USER GUIDE — inline card + fullscreen reader
   ============================================================ */
.guide-card {
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-items: center;
  border: 1px solid var(--line); border-radius: 18px;
  background: linear-gradient(140deg, var(--bg-card), var(--bg-2) 70%);
  padding: 34px;
}
.guide-visual {
  position: relative; min-height: 240px;
  display: grid; place-items: center;
}
.guide-stack { position: relative; width: 340px; height: 232px; max-width: 100%; }
.guide-stack-pg {
  position: absolute; top: 0; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--line-2); box-shadow: 0 18px 40px -20px rgba(0,0,0,.8);
  background: var(--bg-2);
}
.guide-stack-pg img { display: block; width: 100%; height: auto; }
.guide-stack-pg.s0 { left: 44px; top: 0; width: 296px; z-index: 3; }
.guide-stack-pg.s1 { left: 22px; top: 18px; width: 296px; z-index: 2; transform: rotate(-4deg); transform-origin: bottom left; opacity: .9; }
.guide-stack-pg.s2 { left: 0; top: 34px; width: 296px; z-index: 1; transform: rotate(-8deg); transform-origin: bottom left; opacity: .75; }
.guide-lock-mini {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(8,10,14,.55); backdrop-filter: blur(3px); color: #fff;
}
.guide-lock-mini svg { width: 26px; height: 26px; }
.guide-count {
  position: absolute; bottom: 6px; right: 0; z-index: 5;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  color: var(--text); background: rgba(8,10,14,.85);
  border: 1px solid var(--line); border-radius: 20px; padding: 4px 10px;
}
.guide-visual.locked .guide-stack-pg.s0 img { filter: blur(1px) brightness(.7); }
.guide-lock-overlay {
  position: absolute; z-index: 6; right: -6px; top: -6px;
  display: flex; align-items: center; gap: 6px;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  padding: 5px 11px; border-radius: 20px;
}
.guide-lock-overlay .gl-ic svg { width: 14px; height: 14px; display: block; }

.guide-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em; padding: 6px 13px; border-radius: 20px; margin-bottom: 16px;
}
.guide-badge svg { width: 16px; height: 16px; }
.guide-badge.free { color: var(--up); background: color-mix(in oklab, var(--up) 12%, transparent); border: 1px solid color-mix(in oklab, var(--up) 35%, transparent); }
.guide-badge.pro { color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-dim); }
.guide-info h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.guide-info > p { color: var(--muted); font-size: 15.5px; line-height: 1.6; margin-bottom: 18px; }
.guide-points { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.guide-points li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--text); }
.guide-points svg { width: 17px; height: 17px; color: var(--up); flex-shrink: 0; margin-top: 2px; }
.guide-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* fullscreen reader */
.guide-reader {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(6,8,11,.94); backdrop-filter: blur(6px);
  display: flex; flex-direction: column;
}
.guide-reader[hidden] { display: none; }
.gr-bar {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 22px; border-bottom: 1px solid var(--line);
}
.gr-title { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--text); }
.gr-counter { font-family: var(--font-mono); font-size: 13px; color: var(--muted); margin-left: auto; }
.gr-close {
  width: 38px; height: 38px; border-radius: 10px; cursor: pointer;
  background: var(--bg-card); border: 1px solid var(--line); color: var(--text);
  font-size: 24px; line-height: 1; display: grid; place-items: center;
  transition: border-color .2s, color .2s;
}
.gr-close:hover { border-color: var(--accent-dim); color: var(--accent); }
.gr-stage {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 18px;
  padding: 24px; min-height: 0;
}
.gr-nav {
  width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%; cursor: pointer;
  background: var(--bg-card); border: 1px solid var(--line); color: var(--text);
  font-size: 26px; line-height: 1; display: grid; place-items: center;
  transition: border-color .2s, color .2s, background .2s;
}
.gr-nav:hover { border-color: var(--accent-dim); color: var(--accent); }
.gr-page {
  height: 100%; display: flex; align-items: center; justify-content: center;
  max-width: min(1320px, calc(100vw - 200px));
}
.gr-img, .gr-locked img {
  max-height: 100%; max-width: 100%; width: auto; height: auto;
  border-radius: 8px; border: 1px solid var(--line); box-shadow: 0 30px 70px -34px rgba(0,0,0,.9);
}
.gr-locked { position: relative; display: flex; }
.gr-locked img { filter: blur(9px) brightness(.5); }
.gr-lock-veil {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 24px;
}
.gr-lock-veil .gr-lock-ic { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-dim); }
.gr-lock-veil .gr-lock-ic svg { width: 28px; height: 28px; }
.gr-lock-veil h3 { font-size: 22px; font-weight: 800; }
.gr-lock-veil p { color: var(--muted); font-size: 14.5px; max-width: 32ch; }
.gr-lock-veil .btn { margin-top: 6px; }

@media (max-width: 760px) {
  .guide-card { grid-template-columns: 1fr; gap: 28px; padding: 26px; }
  .guide-visual { min-height: 280px; }
  .gr-nav { width: 44px; height: 44px; font-size: 22px; }
  .gr-page { max-width: 90vw; }
}
