/* ============================================================================
   xTriel — landing.css
   Section-specific styling for the marketing landing page (BRIEF §4) plus all
   demo-* classes consumed by scripts/demo.js. Consumes tokens.css exclusively.
   Breakpoints: 1024 / 768 / 560 / 400.
   ========================================================================== */

/* ════════════════════════════════════════════════════════════════════════
   GLOBAL PAGE AURA — faint lit-chamber wash behind everything
   ════════════════════════════════════════════════════════════════════════ */
.page-aura {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: var(--aura);
}

/* ════════════════════════════════════════════════════════════════════════
   1. NAV
   ════════════════════════════════════════════════════════════════════════ */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: height var(--dur) var(--ease-out), background var(--dur) var(--ease-out),
    backdrop-filter var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
  background: rgba(10, 10, 10, 0.35);
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
  height: 58px;
  background: rgba(10, 10, 10, 0.72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
  width: 100%;
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  flex: none;
}
.nav-brand svg { height: 30px; width: auto; }
.nav-brand:hover { opacity: 0.92; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-inline: auto;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  color: var(--text-soft);
  font-size: var(--fs-sm);
  font-weight: 500;
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--s3);
  flex: none;
}

/* Hamburger — three bars morphing to an X. */
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-soft);
  background: var(--glass);
  align-items: center;
  justify-content: center;
  flex: none;
}
.nav-toggle .bars { position: relative; width: 18px; height: 12px; }
.nav-toggle .bars span {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform var(--dur) var(--ease-out), opacity var(--dur-fast) var(--ease-out), top var(--dur) var(--ease-out);
}
.nav-toggle .bars span:nth-child(1) { top: 0; }
.nav-toggle .bars span:nth-child(2) { top: 5px; }
.nav-toggle .bars span:nth-child(3) { top: 10px; }
.nav-toggle.is-active .bars span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.nav-toggle.is-active .bars span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active .bars span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

/* Mobile drawer */
.nav-menu { display: contents; }

@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    z-index: 99;
    padding: calc(var(--nav-h) + var(--s6)) var(--s6) var(--s6);
    gap: var(--s6);
    background: rgba(8, 8, 9, 0.92);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--dur-slow) var(--ease-out), opacity var(--dur) var(--ease-out), visibility var(--dur);
  }
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: var(--s2);
    margin: 0;
  }
  .nav-links a {
    padding: 14px var(--s4);
    font-size: var(--fs-lead);
    border-radius: var(--r-md);
    border: 1px solid var(--border-soft);
    background: var(--glass);
  }
  .nav-links a.active::after { display: none; }
  .nav-actions {
    flex-direction: column;
    align-items: stretch;
    gap: var(--s3);
  }
  .nav-actions .btn { width: 100%; }
}

/* ════════════════════════════════════════════════════════════════════════
   2. HERO
   ════════════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + var(--s9));
  padding-bottom: var(--s10);
  overflow: hidden;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}
/* Faint dot-grid that parallaxes; anim.js may translate it, CSS provides look. */
.hero::after {
  content: "";
  position: absolute;
  inset: -10% -10% 0 -10%;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 0%, transparent 75%);
  opacity: 0.6;
}

.hero-grid {
  display: grid;
  grid-template-columns: 46fr 54fr;
  align-items: center;
  gap: var(--s8);
}

.hero-copy { max-width: 600px; }
.hero-badge {
  margin-bottom: var(--s5);
}
.hero-title {
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--s5);
}
.hero-title .word { display: inline-block; }
.hero-sub {
  max-width: 540px;
  margin-bottom: var(--s6);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin-bottom: var(--s5);
}
.hero-trust {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.hero-trust .sep { color: var(--text-faint); margin: 0 6px; }

/* On-load center-out choreography for headline words + CTAs. */
@media (prefers-reduced-motion: no-preference) {
  .hero-anim .hero-title .word,
  .hero-anim .hero-badge,
  .hero-anim .hero-sub,
  .hero-anim .hero-cta,
  .hero-anim .hero-trust {
    opacity: 0;
    transform: translateY(14px);
    animation: hero-rise 0.7s var(--ease-out) forwards;
  }
  .hero-anim .hero-badge       { animation-delay: 0.05s; }
  .hero-anim .hero-title .w1   { animation-delay: 0.12s; }
  .hero-anim .hero-title .w2   { animation-delay: 0.18s; }
  .hero-anim .hero-title .w3   { animation-delay: 0.24s; }
  .hero-anim .hero-sub         { animation-delay: 0.34s; }
  .hero-anim .hero-cta         { animation-delay: 0.42s; }
  .hero-anim .hero-trust       { animation-delay: 0.5s; }
  .hero-anim .hero-mock-wrap {
    opacity: 0;
    transform: scale(0.96);
    animation: hero-mock-in 0.9s var(--ease-out) 0.5s forwards;
  }
}
@keyframes hero-rise { to { opacity: 1; transform: none; } }
@keyframes hero-mock-in { to { opacity: 1; transform: none; } }

/* ── Floating product mock ── */
.hero-mock-wrap {
  perspective: 1400px;
  position: relative;
}
.hero-mock {
  position: relative;
  padding: var(--s5);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-glow-lg), var(--sh-lg);
  transform-style: preserve-3d;
  transition: transform var(--dur-slow) var(--ease-spring);
  will-change: transform;
}
.hero-mock-head {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-bottom: var(--s4);
}
.hero-mock-dots { display: flex; gap: 6px; }
.hero-mock-dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.hero-mock-addr {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.hero-mock-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: var(--tracking-wide);
  color: var(--green);
  font-weight: 700;
}

.hero-mock-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
  margin-bottom: var(--s4);
}
.hero-mock-kpi {
  padding: var(--s3);
  border-radius: var(--r-md);
  background: var(--card-2);
  border: 1px solid var(--border-soft);
}
.hero-mock-kpi .k-label { font-size: 10px; text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--text-muted); }
.hero-mock-kpi .k-val { font-size: var(--fs-h3); margin-top: 4px; font-weight: 600; }

.hero-mock-chart {
  height: 156px;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-md);
  background: var(--card-2);
  border: 1px solid var(--border-soft);
  padding: var(--s3);
  margin-bottom: var(--s4);
  position: relative;
  overflow: hidden;
}
.hero-mock-chart .c-head {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
/* Canvas flexes to fill the remaining box height; a canvas sizes to its own
   box so the equity chart can never overflow onto the account rows below. */
.hero-mock-canvas { flex: 1 1 auto; width: 100%; min-height: 0; display: block; }

.hero-mock-rows { display: grid; gap: var(--s2); }
.hero-mock-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s3);
  padding: 10px var(--s3);
  border-radius: var(--r-sm);
  background: var(--card-2);
  border: 1px solid var(--border-soft);
}
.hero-mock-row .r-alias { font-size: var(--fs-sm); font-weight: 600; }
.hero-mock-row .r-broker { font-size: 11px; color: var(--text-muted); }
.hero-mock-row .r-val { font-size: var(--fs-sm); font-weight: 600; }

/* Telegram-style alert chip floating at the bottom edge. */
.hero-alert {
  position: absolute;
  left: var(--s5);
  right: var(--s5);
  bottom: -14px;
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: 12px var(--s4);
  border-radius: var(--r-md);
  background: rgba(20, 20, 22, 0.92);
  border: 1px solid rgba(255, 59, 48, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 59, 48, 0.12);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-alert { animation: hero-alert-cycle 8s var(--ease-spring) 1.6s infinite; }
}
@keyframes hero-alert-cycle {
  0%   { transform: translateY(130%); opacity: 0; }
  6%   { transform: translateY(0); opacity: 1; }
  10%  { box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 3px rgba(255,59,48,0.28); }
  20%  { box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,59,48,0.12); }
  78%  { transform: translateY(0); opacity: 1; }
  88%  { transform: translateY(130%); opacity: 0; }
  100% { transform: translateY(130%); opacity: 0; }
}
.hero-alert .a-icon {
  width: 34px; height: 34px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 59, 48, 0.14);
  color: var(--red);
}
.hero-alert .a-icon svg { width: 18px; height: 18px; }
.hero-alert .a-title { font-size: var(--fs-sm); font-weight: 700; }
.hero-alert .a-msg { font-size: 12px; color: var(--text-soft); }

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s8); }
  .hero-copy { max-width: 640px; }
  .hero-mock-wrap { max-width: 560px; margin-inline: auto; width: 100%; }
}
@media (max-width: 768px) {
  .hero { padding-top: calc(var(--nav-h) + var(--s7)); padding-bottom: var(--s9); }
  .hero-mock-kpis { gap: var(--s2); }
}
@media (max-width: 400px) {
  .hero-mock { padding: var(--s4); }
  .hero-mock-kpi .k-val { font-size: var(--fs-lead); }
}

/* ════════════════════════════════════════════════════════════════════════
   3. MARQUEE / TRUST STRIP
   ════════════════════════════════════════════════════════════════════════ */
.marquee {
  background: var(--bg-elev);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding-block: var(--s6);
  overflow: hidden;
}
.marquee-lead {
  text-align: center;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--text-muted);
  margin-bottom: var(--s5);
}
.marquee-track-wrap {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: var(--s7);
  align-items: center;
}
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee-scroll 32s linear infinite; }
  .marquee-track-wrap:hover .marquee-track { animation-play-state: paused; }
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color var(--dur) var(--ease-out);
}
.marquee-item:hover { color: var(--text); }
.marquee-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border); flex: none; }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { flex-wrap: wrap; justify-content: center; row-gap: var(--s3); }
}

/* ════════════════════════════════════════════════════════════════════════
   4. PROBLEM → SOLUTION
   ════════════════════════════════════════════════════════════════════════ */
.ps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5);
}
.ps-card {
  position: relative;
  padding: var(--s6);
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--border-soft);
  overflow: hidden;
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.ps-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--amber);
  opacity: 0.5;
  transition: background var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
}
.ps-card:hover {
  transform: translateY(-3px);
  border-color: rgba(123, 168, 255, 0.28);
  box-shadow: var(--sh-md);
}
.ps-pain {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-bottom: var(--s4);
  color: var(--text-muted);
}
.ps-pain .px {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 59, 48, 0.12);
  color: var(--red);
  flex: none;
  font-size: 16px;
  line-height: 1;
}
.ps-pain-title { font-size: var(--fs-sm); font-weight: 600; text-decoration: line-through; text-decoration-color: var(--text-faint); }
.ps-pain-body { color: var(--text-muted); font-size: var(--fs-sm); margin-bottom: var(--s5); }
.ps-divider {
  height: 1px;
  background: var(--border-soft);
  margin-bottom: var(--s5);
}
.ps-solve {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-bottom: var(--s3);
}
.ps-solve .sx {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(0, 224, 150, 0.12);
  color: var(--green);
  flex: none;
}
.ps-solve .sx svg { width: 16px; height: 16px; }
.ps-solve-title { font-size: var(--fs-h3); font-weight: 700; }
.ps-solve-body { color: var(--text-soft); font-size: var(--fs-body); }
.ps-card:hover::before { background: var(--green); opacity: 1; }

@media (max-width: 920px) { .ps-grid { grid-template-columns: 1fr; gap: var(--s4); } }

/* ════════════════════════════════════════════════════════════════════════
   5. FEATURE SHOWCASE (alternating rows)
   ════════════════════════════════════════════════════════════════════════ */
.feature-rows { display: grid; gap: var(--s10); }
@media (max-width: 768px) { .feature-rows { gap: var(--s9); } }

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--s9);
}
.feature-row.reverse .feature-text { order: 2; }
.feature-row.reverse .feature-visual { order: 1; }

.feature-text { max-width: 520px; }
.feature-text .h2 { margin-bottom: var(--s4); }
.feature-text .lead { margin-bottom: var(--s5); }

.feature-visual {
  position: relative;
}
.feature-panel {
  position: relative;
  padding: var(--s5);
  border-radius: var(--r-xl);
  background: var(--card-2);
  border: 1px solid var(--border-soft);
  box-shadow: var(--sh-md);
  overflow: hidden;
}
.feature-panel::after {
  content: "";
  position: absolute;
  inset: -40% auto auto -20%;
  width: 60%; height: 60%;
  background: var(--grad-brand-soft);
  filter: blur(50px);
  z-index: 0;
  pointer-events: none;
}
.feature-panel > * { position: relative; z-index: 1; }

/* Mini dashboard rows visual */
.fv-rows { display: grid; gap: var(--s2); }
.fv-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: var(--s3);
  padding: 12px var(--s3);
  border-radius: var(--r-sm);
  background: var(--card);
  border: 1px solid var(--border-soft);
}
.fv-row .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.fv-row .dot.live { background: var(--green); }
.fv-row .dot.stale { background: var(--amber); }
.fv-row .dot.off { background: var(--text-faint); }
.fv-row .a { font-size: var(--fs-sm); font-weight: 600; }
.fv-row .b { font-size: 11px; color: var(--text-muted); }
.fv-row .eq { font-size: var(--fs-sm); }
.fv-row .pnl { font-size: var(--fs-sm); font-weight: 600; }
.fv-status { font-size: 9px; letter-spacing: var(--tracking-wide); color: var(--text-muted); }

/* Telegram chip stack visual */
.fv-chips { display: grid; gap: var(--s3); }
.fv-chip {
  display: flex;
  gap: var(--s3);
  padding: var(--s3) var(--s4);
  border-radius: var(--r-md);
  background: var(--card);
  border: 1px solid var(--border-soft);
  align-items: flex-start;
}
.fv-chip .ci {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  flex: none;
}
.fv-chip.risk .ci { background: rgba(255,59,48,0.14); color: var(--red); }
.fv-chip.profit .ci { background: rgba(0,224,150,0.14); color: var(--green); }
.fv-chip.trade .ci { background: rgba(47,107,255,0.14); color: var(--primary-ink); }
.fv-chip .ci svg { width: 17px; height: 17px; }
.fv-chip .ct { font-size: var(--fs-sm); font-weight: 700; }
.fv-chip .cm { font-size: 12px; color: var(--text-soft); }
.fv-chip .ctime { margin-left: auto; font-size: 10px; color: var(--text-muted); }

/* Tracker visual */
.fv-tracker-head { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s4); }
.fv-tracker-av { width: 40px; height: 40px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--grad-brand); color: #fff; font-weight: 700; font-size: var(--fs-sm); flex: none; }
.fv-tracker-name { font-weight: 700; font-size: var(--fs-body); }
.fv-tracker-acct { font-size: 11px; color: var(--text-muted); }
.fv-tracker-pub { margin-left: auto; }
.badge--pub { background: rgba(0,224,150,0.14); color: var(--green); }
.fv-tracker-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.fv-tracker-stat { padding: var(--s3); border-radius: var(--r-sm); background: var(--card); border: 1px solid var(--border-soft); text-align: center; }
.fv-tracker-stat .s-l { font-size: 10px; text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--text-muted); }
.fv-tracker-stat .s-v { font-size: var(--fs-h3); font-weight: 700; margin-top: 4px; }
.fv-tracker-toggles { display: flex; gap: var(--s3); margin-top: var(--s4); flex-wrap: wrap; }
.fv-toggle-pill { display: inline-flex; align-items: center; gap: var(--s2); font-size: 12px; color: var(--text-soft); padding: 6px 12px; border-radius: var(--r-pill); background: var(--card); border: 1px solid var(--border-soft); }
.fv-toggle-pill .tk { width: 26px; height: 15px; border-radius: var(--r-pill); background: var(--primary); position: relative; flex: none; }
.fv-toggle-pill .tk::after { content: ""; position: absolute; top: 2px; right: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; }

/* Almanac scatter visual */
.fv-almanac { display: grid; gap: var(--s4); }
.fv-scatter { height: 150px; border-radius: var(--r-sm); background: var(--card); border: 1px solid var(--border-soft); padding: var(--s3); }
.fv-legend { display: flex; gap: var(--s5); font-size: 11px; color: var(--text-muted); }
.fv-legend .lg { display: inline-flex; align-items: center; gap: 6px; }
.fv-legend .lg i { width: 9px; height: 9px; border-radius: 50%; }

@media (max-width: 920px) {
  .feature-row { grid-template-columns: 1fr; gap: var(--s6); }
  .feature-row.reverse .feature-text { order: 1; }
  .feature-row.reverse .feature-visual { order: 2; }
  .feature-text { max-width: none; }
}

/* ════════════════════════════════════════════════════════════════════════
   6. INTERACTIVE DEMO SHELL + demo-* classes (from scripts/demo.js)
   ════════════════════════════════════════════════════════════════════════ */
.demo-section { position: relative; }
.demo-mount {
  position: relative;
  border-radius: var(--r-2xl);
  box-shadow: var(--sh-glow-lg), var(--sh-lg);
}
/* Breathing aura behind the console so it reads as "the actual product". */
.demo-mount::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(47,107,255,0.5), rgba(0,198,255,0.2), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.demo-root {
  position: relative;
  background: var(--card-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-2xl);
  overflow: hidden;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

/* Chrome bar */
.demo-chrome {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) var(--s5);
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-elev);
}
.demo-chrome-dots { display: flex; gap: 6px; }
.demo-chrome-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.demo-chrome-addr {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: var(--card);
  border: 1px solid var(--border-soft);
}
.demo-chrome-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  color: var(--green);
}

/* Tabs */
.demo-tabs {
  display: flex;
  gap: 2px;
  padding: var(--s3) var(--s5) 0;
  border-bottom: 1px solid var(--border-soft);
  overflow-x: auto;
  scrollbar-width: none;
}
.demo-tabs::-webkit-scrollbar { display: none; }
.demo-tab {
  position: relative;
  padding: 10px var(--s4) 14px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color var(--dur) var(--ease-out);
}
.demo-tab:hover { color: var(--text-soft); }
.demo-tab[aria-selected="true"] { color: var(--text); }
.demo-tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: var(--s2); right: var(--s2); bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
}

.demo-panels { padding: var(--s5); }
.demo-panel { min-height: 360px; }
.demo-panel:focus-visible { outline-offset: -2px; }

/* KPI summary row — 4 cards with a 3px colored left-accent bar (app motif). */
.demo-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: var(--s4);
}
.demo-kpi {
  position: relative;
  overflow: hidden;
  padding: 13px 15px;
  min-height: 70px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--border);
}
.demo-kpi::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--primary);
}
.demo-kpi-a0::before { background: var(--primary); }
.demo-kpi-a1::before { background: var(--green); }
.demo-kpi-a2::before { background: #FFD700; }
.demo-kpi-a3::before { background: var(--red); }
.demo-kpi-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.demo-kpi-value {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

/* Cards */
.demo-card {
  padding: var(--s4);
  border-radius: var(--r-md);
  background: var(--card);
  border: 1px solid var(--border);
}
.demo-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s3); gap: var(--s3); }
.demo-card-title { font-size: var(--fs-body); font-weight: 700; letter-spacing: -0.01em; }
.demo-card-sub { font-size: var(--fs-xs); color: var(--text-muted); }

.demo-chart-card { margin-bottom: var(--s4); border-radius: 18px; }
.demo-chart-canvas { height: 220px; }
.demo-chart-canvas canvas { width: 100%; height: 100%; display: block; }

/* Account grid — app-style terminal cards */
.demo-acct-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s3);
}
.demo-acct {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: 18px;
  border-color: var(--border);
  transition: border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.demo-acct:hover { transform: translateY(-2px); border-color: #333; }
/* 3px top gradient accent bar; turns red->amber when stale. */
.demo-acct-bar {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(47,107,255,0.9), rgba(0,224,150,0.65));
}
.demo-acct[data-status="stale"] { border-color: rgba(255, 184, 0, 0.45); }
.demo-acct[data-status="stale"] .demo-acct-bar {
  background: linear-gradient(90deg, var(--red), var(--amber));
}
@media (prefers-reduced-motion: no-preference) {
  .demo-acct[data-status="stale"] { animation: demo-stale-pulse 2s var(--ease-in-out) infinite; }
}
@keyframes demo-stale-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,184,0,0); }
  50% { box-shadow: 0 0 0 1px rgba(255,184,0,0.4); }
}

.demo-acct-head { display: flex; align-items: flex-start; gap: var(--s3); margin-bottom: 14px; }
.demo-acct-id { display: flex; flex-direction: column; min-width: 0; }
.demo-acct-alias { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.demo-acct-broker {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.demo-acct-sep { opacity: 0.5; }
.demo-acct-meta { margin-left: auto; display: flex; align-items: center; gap: 6px; flex: none; }

/* Connection pill (LIVE / STALE) */
.demo-conn-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  background: rgba(0,224,150,0.1);
  border: 1px solid rgba(0,224,150,0.25);
  color: var(--green);
}
.demo-acct[data-status="stale"] .demo-conn-pill {
  background: rgba(255,184,0,0.1);
  border-color: rgba(255,184,0,0.3);
  color: var(--amber);
}

/* REAL / DEMO badge */
.demo-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  padding: 3px 7px;
  border-radius: 5px;
}
.demo-badge-real { background: linear-gradient(135deg, #FFD700, #FDB931); color: #000; }
.demo-badge-demo { background: rgba(255,255,255,0.1); color: var(--text); border: 1px solid var(--border-soft); }

/* Balance row + floating P&L stack */
.demo-acct-balrow {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: var(--s3);
  margin-bottom: 12px;
}
.demo-acct-ballabel {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.demo-acct-balval { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.demo-acct-pnlstack { text-align: right; }
.demo-acct-pnlval { font-size: 16px; font-weight: 700; line-height: 1.1; }
.demo-acct-opensub { display: block; font-size: 10px; color: var(--text-muted); margin-top: 3px; }

/* Per-account equity sparkline strip — fixed height, clipped. */
.demo-acct-spark {
  height: 36px;
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: 6px;
}
.demo-acct-spark svg { display: block; width: 100%; height: 100%; }

/* 2x2 metric tiles */
.demo-acct-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.demo-mtile {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--glass);
}
.demo-mtile-val { font-size: 15px; font-weight: 600; }
.demo-mtile-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Status / live dots inside demo */
.demo-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
.demo-dot-live { background: var(--green); box-shadow: 0 0 8px rgba(0,224,150,0.7); }
.demo-dot-stale { background: var(--amber); }
@media (prefers-reduced-motion: no-preference) {
  .demo-dot-live { animation: demo-dot-breathe 2s var(--ease-in-out) infinite; }
  .demo-dot-stale { animation: demo-dot-breathe 2s var(--ease-in-out) infinite; }
}
@keyframes demo-dot-breathe { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }

/* Semantic value classes used by demo.js */
.demo-pos { color: var(--green); }
.demo-neg { color: var(--red); }
.demo-warn { color: var(--amber); }
.demo-redacted { color: var(--text-faint); letter-spacing: 2px; }

/* Value-flash */
@media (prefers-reduced-motion: no-preference) {
  .demo-flash-up { animation: demo-flash-up 0.4s var(--ease-out); }
  .demo-flash-down { animation: demo-flash-down 0.4s var(--ease-out); }
}
@keyframes demo-flash-up { 0% { color: var(--green); } 100% { color: inherit; } }
@keyframes demo-flash-down { 0% { color: var(--red); } 100% { color: inherit; } }

/* Alerts panel */
.demo-alerts-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s4); gap: var(--s3); }
.demo-chips { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s4); }
.demo-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--card);
  border: 1px solid var(--border-soft);
  font-size: 11px;
  color: var(--text-soft);
  font-family: var(--font-mono);
}
.demo-chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.demo-feed { display: grid; gap: var(--s3); }
.demo-alert {
  display: flex;
  gap: var(--s3);
  padding: var(--s3) var(--s4);
  border-radius: var(--r-md);
  background: var(--card);
  border: 1px solid var(--border-soft);
  align-items: flex-start;
}
.demo-alert-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  flex: none;
  font-size: 14px;
  font-family: var(--font-mono);
}
.demo-alert-risk  { border-color: rgba(255,59,48,0.3); }
.demo-alert-risk .demo-alert-icon { background: rgba(255,59,48,0.14); color: var(--red); }
.demo-alert-profit .demo-alert-icon { background: rgba(0,224,150,0.14); color: var(--green); }
.demo-alert-stale { border-color: rgba(255,184,0,0.3); }
.demo-alert-stale .demo-alert-icon { background: rgba(255,184,0,0.14); color: var(--amber); }
.demo-alert-trade .demo-alert-icon { background: rgba(47,107,255,0.14); color: var(--primary-ink); }
.demo-alert-body { flex: 1; min-width: 0; }
.demo-alert-top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); }
.demo-alert-title { font-size: var(--fs-sm); font-weight: 700; }
.demo-alert-time { font-size: 10px; color: var(--text-muted); }
.demo-alert-msg { font-size: 12px; color: var(--text-soft); margin-top: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .demo-slide-in { animation: demo-slide-in 0.6s var(--ease-spring); }
}
@keyframes demo-slide-in {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

/* xTracker panel — dense public performance card */
.demo-tracker { max-width: 540px; margin-inline: auto; border-radius: var(--r-lg); padding: var(--s5); }
.demo-tracker-head { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s5); }
.demo-tracker-ident { display: flex; align-items: center; gap: var(--s3); }
.demo-tracker-avatar { width: 44px; height: 44px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--grad-brand); color: #fff; font-weight: 700; flex: none; box-shadow: 0 10px 20px -5px var(--primary-glow); }
.demo-tracker-name { font-weight: 700; font-size: var(--fs-h3); letter-spacing: -0.01em; }
.demo-tracker-acct { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.demo-pill { padding: 4px 10px; border-radius: var(--r-pill); font-size: 9px; font-weight: 700; letter-spacing: var(--tracking-wide); margin-left: auto; }
.demo-pill-pub { background: rgba(0,224,150,0.12); color: var(--green); border: 1px solid rgba(0,224,150,0.25); }
.demo-tracker-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s5); flex-wrap: wrap; }
.demo-tracker-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.demo-tracker-balance { font-size: var(--fs-h2); font-weight: 700; letter-spacing: -0.03em; margin-top: 4px; line-height: 1; }
.demo-tracker-gain { font-size: var(--fs-sm); font-weight: 700; margin-top: 6px; }
.demo-tracker-spark { width: 180px; height: 56px; flex: none; overflow: hidden; border-radius: 6px; }
.demo-tracker-spark svg { display: block; width: 100%; height: 100%; }
.demo-tracker-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: var(--s5); }
.demo-tracker-stat { padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,0.02); border: 1px solid var(--border); }
.demo-tracker-stat-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.demo-tracker-stat-val { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; margin-top: 6px; }
.demo-toggles { display: flex; gap: var(--s5); flex-wrap: wrap; }
.demo-toggle { display: inline-flex; align-items: center; gap: var(--s2); cursor: pointer; font-size: 12px; color: var(--text-soft); }
.demo-toggle-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.demo-toggle-track { width: 38px; height: 22px; border-radius: var(--r-pill); background: var(--border); position: relative; transition: background var(--dur) var(--ease-out); flex: none; }
.demo-toggle-thumb { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform var(--dur) var(--ease-spring); }
.demo-toggle-input:checked + .demo-toggle-track { background: var(--primary); }
.demo-toggle-input:checked + .demo-toggle-track .demo-toggle-thumb { transform: translateX(16px); }
.demo-toggle-input:focus-visible + .demo-toggle-track { outline: 2px solid var(--primary-2); outline-offset: 2px; }

/* xAlmanac panel — preset/backtest library (table + DD/profit scatter) */
.demo-almanac-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--s4); align-items: start; }
.demo-table-wrap { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--border); }
.demo-table {
  width: 100%;
  font-size: 12.5px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.demo-th {
  text-align: left;
  padding: 8px 10px;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: var(--bg-elev);
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
  user-select: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.demo-th-num { text-align: right; }
.demo-th:hover { color: var(--text); }
.demo-th-active { color: var(--text); }
.demo-th-arrow { margin-left: 4px; font-size: 8px; color: var(--primary); }
.demo-td { padding: 6px 10px; border-bottom: 1px solid var(--border); color: var(--text-soft); }
.demo-td-num { text-align: right; }
.demo-tr:last-child .demo-td { border-bottom: none; }
.demo-tr:hover .demo-td { background: var(--card-hover); }
/* EA color swatch in the name cell */
.demo-ea-swatch {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 3px;
  margin-right: 8px;
  vertical-align: middle;
  flex: none;
}
.demo-scatter-card { position: sticky; top: var(--s7); border-radius: var(--r-md); }
.demo-scatter { margin-top: var(--s2); }
.demo-scatter svg { overflow: visible; }

@media (max-width: 768px) {
  .demo-kpis { grid-template-columns: repeat(2, 1fr); }
  .demo-acct-grid { grid-template-columns: 1fr; }
  .demo-almanac-layout { grid-template-columns: 1fr; }
  .demo-scatter-card { position: static; }
}

/* ════════════════════════════════════════════════════════════════════════
   7. HOW IT WORKS
   ════════════════════════════════════════════════════════════════════════ */
.hiw {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s6);
}
/* Animated connecting line behind steps (desktop). */
.hiw-connector {
  position: absolute;
  left: 12%; right: 12%;
  top: 34px;
  height: 2px;
  z-index: 0;
  pointer-events: none;
}
.hiw-connector svg { width: 100%; height: 2px; overflow: visible; }
.hiw-connector .path-bg { stroke: var(--border); stroke-width: 2; }
.hiw-connector .path-fg { stroke: url(#hiw-grad); stroke-width: 2; stroke-dasharray: 1000; stroke-dashoffset: 1000; }
.hiw.is-visible .hiw-connector .path-fg { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s var(--ease-out) 0.3s; }
@media (prefers-reduced-motion: reduce) { .hiw-connector .path-fg { stroke-dashoffset: 0; } }

.hiw-step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 var(--s3);
}
.hiw-num {
  display: inline-grid;
  place-items: center;
  width: 68px; height: 68px;
  margin-bottom: var(--s4);
  border-radius: var(--r-lg);
  background: var(--card-2);
  border: 1px solid var(--border-soft);
  font-family: var(--font-mono);
  font-size: var(--fs-h2);
  font-weight: 700;
  box-shadow: var(--sh-sm);
}
.hiw-num span {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hiw-icon {
  width: 28px; height: 28px;
  margin: 0 auto var(--s3);
  color: var(--primary-ink);
}
.hiw-title { font-size: var(--fs-h3); font-weight: 700; margin-bottom: var(--s3); }
.hiw-body { color: var(--text-soft); font-size: var(--fs-body); max-width: 320px; margin-inline: auto; }

@media (max-width: 920px) {
  .hiw { grid-template-columns: 1fr; gap: var(--s7); }
  .hiw-connector { display: none; }
  .hiw-step { text-align: left; display: grid; grid-template-columns: auto 1fr; gap: var(--s5); align-items: start; padding: 0; }
  .hiw-num { margin-bottom: 0; }
  .hiw-icon { margin: 0 0 var(--s2); }
  .hiw-body { margin-inline: 0; }
  .hiw-step > div:last-child { grid-column: 2; }
}

/* ════════════════════════════════════════════════════════════════════════
   8. STATS BAND
   ════════════════════════════════════════════════════════════════════════ */
.stats {
  background: var(--card-2);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  position: relative;
  overflow: hidden;
}
.stats::before { content: ""; position: absolute; inset: 0; background: var(--aura); pointer-events: none; }
.stats-inner { position: relative; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s6);
  text-align: center;
}
.stat-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: var(--tracking-tight);
}
.stat-value .unit {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label { margin-top: var(--s3); color: var(--text-muted); font-size: var(--fs-sm); }

@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s7); } }
@media (max-width: 400px) { .stats-grid { grid-template-columns: 1fr; } }

/* ════════════════════════════════════════════════════════════════════════
   9. PRICING
   ════════════════════════════════════════════════════════════════════════ */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--s4);
  margin-top: var(--s5);
}
.billing-toggle .label { font-size: var(--fs-sm); color: var(--text-muted); transition: color var(--dur) var(--ease-out); }
.billing-switch {
  position: relative;
  width: 52px; height: 28px;
  border-radius: var(--r-pill);
  background: var(--card);
  border: 1px solid var(--border-soft);
  flex: none;
}
.billing-switch::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--grad-brand);
  transition: transform var(--dur) var(--ease-spring);
}
.billing-switch:checked::after { transform: translateX(24px); }
.billing-switch:focus-visible { outline: 2px solid var(--primary-2); outline-offset: 2px; }
.billing-annual-note {
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: rgba(0,224,150,0.12);
}
/* Reflect active label state. */
.pricing-head:has(.billing-switch:checked) .label-annual { color: var(--text); }
.pricing-head:not(:has(.billing-switch:checked)) .label-monthly { color: var(--text); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5);
  align-items: stretch;
}
.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--s6);
  border-radius: var(--r-xl);
  background: var(--card);
  border: 1px solid var(--border-soft);
  overflow: hidden;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.tier:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }

/* Pro — elevated, persistent brand-gradient border, scaled up. */
.tier--pro {
  background: var(--card-hover);
  transform: scale(1.03);
  z-index: 1;
}
.tier--pro:hover { transform: scale(1.03) translateY(-4px); }
.tier--pro::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: var(--grad-brand);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.tier-badge {
  position: absolute;
  top: var(--s5); right: var(--s5);
  background: var(--grad-brand);
  color: #fff;
}
/* Max — violet accent. */
.tier--max { border-color: rgba(139, 92, 246, 0.4); }
.tier--max:hover { box-shadow: 0 12px 40px -10px rgba(139,92,246,0.4); border-color: rgba(139,92,246,0.6); }

.tier-name { font-size: var(--fs-h3); font-weight: 700; }
.tier--max .tier-name { color: var(--violet); }
.tier-tagline { color: var(--text-muted); font-size: var(--fs-sm); margin-top: var(--s2); min-height: 40px; }
.tier-price { margin-top: var(--s5); display: flex; align-items: flex-end; gap: 6px; flex-wrap: wrap; }
.tier-amount { font-family: var(--font-mono); font-size: clamp(34px, 4vw, 48px); font-weight: 700; line-height: 1; letter-spacing: var(--tracking-tight); }
.tier-period { color: var(--text-muted); font-size: var(--fs-sm); padding-bottom: 6px; }
.tier-annual-sub { font-size: var(--fs-xs); color: var(--green); margin-top: var(--s2); min-height: 16px; }
.tier-cta { margin-top: var(--s5); margin-bottom: var(--s5); }
.tier-features { display: grid; gap: var(--s3); margin-top: auto; }
.tier-features li { display: flex; gap: var(--s3); align-items: flex-start; font-size: var(--fs-sm); color: var(--text-soft); line-height: 1.4; }
.tier-features .ico { flex: none; width: 18px; height: 18px; color: var(--green); margin-top: 1px; }
.tier--max .tier-features .ico { color: var(--violet); }
.tier-ad-note {
  margin-top: var(--s4);
  font-size: 11px;
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pricing-fine { text-align: center; color: var(--text-muted); font-size: var(--fs-sm); margin-top: var(--s7); max-width: 640px; margin-inline: auto; }

@media (max-width: 920px) {
  .pricing-grid { grid-template-columns: 1fr; gap: var(--s5); max-width: 460px; margin-inline: auto; }
  .tier--pro { transform: none; }
  .tier--pro:hover { transform: translateY(-4px); }
}

/* ════════════════════════════════════════════════════════════════════════
   10. FAQ ACCORDION
   ════════════════════════════════════════════════════════════════════════ */
.faq-list { max-width: 760px; margin-inline: auto; display: grid; gap: var(--s3); }
.faq-item {
  border-radius: var(--r-md);
  background: var(--card);
  border: 1px solid var(--border-soft);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease-out);
}
.faq-item.open { border-color: rgba(123, 168, 255, 0.3); }
.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding: var(--s5);
  text-align: left;
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--text);
}
.faq-icon {
  flex: none;
  width: 22px; height: 22px;
  position: relative;
  transition: transform var(--dur) var(--ease-out);
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  background: var(--primary-ink);
  border-radius: 2px;
}
.faq-icon::before { top: 10px; left: 2px; right: 2px; height: 2px; }
.faq-icon::after { left: 10px; top: 2px; bottom: 2px; width: 2px; transition: transform var(--dur) var(--ease-out); }
.faq-item.open .faq-icon::after { transform: scaleY(0); }
.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-slow) var(--ease-out);
}
.faq-panel-inner {
  padding: 0 var(--s5) var(--s5);
  color: var(--text-soft);
  font-size: var(--fs-body);
  line-height: 1.6;
}

/* ════════════════════════════════════════════════════════════════════════
   11. FINAL CTA BAND
   ════════════════════════════════════════════════════════════════════════ */
.final-cta {
  position: relative;
  text-align: center;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(47,107,255,0.16), transparent 70%),
    radial-gradient(ellipse 50% 60% at 70% 40%, rgba(0,198,255,0.1), transparent 70%);
}
.final-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  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: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000, transparent 75%);
}
.final-cta-inner { position: relative; z-index: 1; max-width: 720px; margin-inline: auto; }
.final-cta .h1 { margin-block: var(--s4) var(--s5); }
.final-cta .lead { margin-bottom: var(--s7); }
@media (prefers-reduced-motion: no-preference) {
  .final-cta .btn-primary { animation: cta-pulse 3.4s var(--ease-in-out) infinite; }
}
@keyframes cta-pulse {
  0%, 100% { box-shadow: var(--sh-glow); }
  50% { box-shadow: var(--sh-glow-lg); }
}

/* ════════════════════════════════════════════════════════════════════════
   12. FOOTER
   ════════════════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--bg-elev);
  border-top: 1px solid var(--border-soft);
  padding-block: var(--s8) var(--s7);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: var(--s7);
  padding-bottom: var(--s7);
  border-bottom: 1px solid var(--border-soft);
}
.footer-brand .nav-brand svg { height: 28px; }
.footer-tagline { color: var(--text-muted); font-size: var(--fs-sm); margin-top: var(--s4); max-width: 240px; }
.footer-col h4 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--text-muted); margin-bottom: var(--s4); font-weight: 600; }
.footer-col ul { display: grid; gap: var(--s3); }
.footer-col a { color: var(--text-soft); font-size: var(--fs-sm); }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding-top: var(--s5);
  flex-wrap: wrap;
}
.footer-copy { color: var(--text-muted); font-size: var(--fs-sm); }

/* Theme toggle pill */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: var(--glass);
  border: 1px solid var(--border-soft);
  font-size: var(--fs-sm);
  color: var(--text-soft);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.theme-toggle:hover { color: var(--text); border-color: rgba(123,168,255,0.3); }
.theme-toggle .icon-sun, .theme-toggle .icon-moon { width: 16px; height: 16px; transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
.theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

@media (max-width: 920px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: var(--s6); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
}
