/* ============================================================
   Sellution — homepage stylesheet
   Brand tokens taken verbatim from the live site (index.astro).
   ============================================================ */
:root {
  /* surfaces */
  --bg: #ffffff;
  --bg-2: #f5f8fc;
  --bg-tint: #eef3fb;
  --card: #ffffff;

  /* ink + text */
  --ink: #0f1d33;
  --body: #4a5a70;
  --muted: #5b6b80;
  --muted-2: #93a0b2;

  /* lines */
  --line: #e6ebf3;
  --line-2: #d4dde9;

  --panel: rgba(15, 29, 51, 0.015);
  --panel-2: rgba(15, 29, 51, 0.03);

  /* brand */
  --primary: #3953a5;
  --primary-2: #2c4185;
  --primary-soft: rgba(57, 83, 165, 0.08);
  --accent: #fba919;
  --accent-2: #ffc24d;
  --accent-soft: rgba(251, 169, 25, 0.14);
  --gold: #d4920a;
  --ok: #0a8f5b;
  --ok-soft: rgba(16, 185, 129, 0.12);

  --font-display: 'Hanken Grotesk', system-ui, sans-serif;
  --font-body: 'Hanken Grotesk', system-ui, sans-serif;
  --font-mono: 'DM Mono', ui-monospace, monospace;

  --maxw: 1200px;
  --shadow-sm: 0 1px 2px rgba(15, 29, 51, 0.06), 0 1px 3px rgba(15, 29, 51, 0.04);
  --shadow-md: 0 12px 28px -12px rgba(15, 29, 51, 0.16);
  --shadow-lg: 0 30px 60px -28px rgba(15, 29, 51, 0.28);
  --shadow-xl: 0 44px 90px -40px rgba(15, 29, 51, 0.34);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
main { position: relative; z-index: 1; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent-soft); color: var(--ink); }

/* fixed atmospheric wash, exactly like the live site */
.atmosphere {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(46rem 30rem at 88% -6%, rgba(251, 169, 25, 0.10), transparent 60%),
    radial-gradient(42rem 30rem at 4% 2%, rgba(57, 83, 165, 0.08), transparent 60%);
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { position: relative; }
.section-pad { padding: clamp(64px, 8vw, 116px) 0; }
.rule-top { border-top: 1px solid var(--line); }
.bg-2 { background: var(--bg-2); }

/* ---------- type ---------- */
.font-display { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.06; }
.mono { font-family: var(--font-mono); }

.eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--primary);
  display: inline-flex; align-items: center; gap: 10px; font-weight: 500;
}
.eyebrow::before { content: ''; width: 20px; height: 2px; border-radius: 2px; background: var(--accent); }

.accent-word { color: var(--primary); }

.beta-pill { display: inline-flex; align-items: center; font-family: var(--font-mono); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--gold); background: var(--accent-soft); border: 1px solid rgba(251,169,25,0.3); border-radius: 999px; padding: 3px 8px; line-height: 1; transition: background .15s, transform .15s; white-space: nowrap; }
.beta-pill:hover { background: rgba(251,169,25,0.22); transform: translateY(-1px); }
.brand-stack { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 5px; }

.sec-head { max-width: 780px; }
.sec-head.center { margin: 0 auto; text-align: center; }
.sec-title {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.025em;
  font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.07; color: var(--ink); margin: 16px 0 0;
}
.sec-sub { color: var(--body); margin-top: 16px; font-size: 1.08rem; max-width: 640px; }
.sec-head.center .sec-sub { margin-left: auto; margin-right: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 24px; border-radius: 11px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.97rem;
  cursor: pointer; white-space: nowrap; border: 1px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
}
.btn svg { transition: transform 0.2s var(--ease); }
.btn-gold {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: #3a2600;
  box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset, 0 10px 22px -10px rgba(251, 169, 25, 0.6);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 16px 30px -10px rgba(251, 169, 25, 0.75); }
.btn-gold:hover svg { transform: translateX(3px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--primary); background: var(--primary-soft); }

.panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d='1'] { transition-delay: 0.07s; }
.reveal[data-d='2'] { transition-delay: 0.14s; }
.reveal[data-d='3'] { transition-delay: 0.21s; }
.reveal[data-d='4'] { transition-delay: 0.28s; }
.reveal[data-d='5'] { transition-delay: 0.35s; }
.reveal[data-d='6'] { transition-delay: 0.42s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.82); backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s, box-shadow 0.3s;
}
.nav.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -20px rgba(15,29,51,0.5); }
.nav-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 800; font-size: 1.28rem; letter-spacing: -0.02em; color: var(--ink); }
.brand-mark { width: 30px; height: 30px; display: block; }
.brand-logo { height: 30px; width: auto; display: block; }
.footer-brand .brand-logo { height: 34px; }
.brand b { color: var(--accent); font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: 19px; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--muted); transition: color 0.18s; white-space: nowrap; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-login { font-size: 0.95rem; font-weight: 600; color: var(--ink); }
.nav-login:hover { color: var(--primary); }
@media (max-width: 1180px) { .nav-links { gap: 14px; } }
@media (max-width: 1040px) { .nav-links { gap: 11px; } .nav-links a { font-size: .85rem; } }
@media (max-width: 940px) { .nav-links { display: none; } }
@media (max-width: 560px) { .nav-login { display: none; } }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 104px); }
.hero-grid { display: grid; grid-template-columns: 1.04fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 44px; } }

.hero h1 {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.035em;
  font-size: clamp(2.7rem, 5.6vw, 4.3rem); line-height: 1.02; color: var(--ink); margin: 22px 0 0;
}
.hero h1 .swap { color: var(--primary); position: relative; display: inline-block; }
.hero-lede { font-size: clamp(1.08rem, 1.5vw, 1.22rem); color: var(--body); margin: 22px 0 0; max-width: 520px; }
.hero-actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { margin-top: 30px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; font-size: 0.92rem; color: var(--muted); }
.hero-meta b { color: var(--ink); font-weight: 700; }
.hero-meta .sep { width: 1px; height: 26px; background: var(--line-2); }

/* rotating vertical word */
.vert-rotator { display: inline-grid; vertical-align: top; text-align: left; }
.vert-rotator > span { grid-area: 1 / 1; opacity: 0; transform: translateY(0.5em); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); white-space: nowrap; color: var(--primary); }
.vert-rotator > span.on { opacity: 1; transform: none; }
.vert-rotator > span.out { opacity: 0; transform: translateY(-0.5em); }

/* ---- live AI panel (hero right) ---- */
.console {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow-lg); padding: 16px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.console::before {
  content: ''; position: absolute; inset: 0; border-radius: 18px; pointer-events: none;
  box-shadow: 0 0 0 1px rgba(57,83,165,0.04) inset;
}
.console-tag {
  position: absolute; top: -14px; left: 18px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 13px; font-size: 0.78rem; font-weight: 700; color: var(--ink); box-shadow: var(--shadow-sm);
}
.console-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.console-bar {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between;
  padding: 4px 6px 10px; border-bottom: 1px solid var(--line); margin-bottom: 2px;
}
.console-dots { display: flex; gap: 6px; }
.console-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); display: block; }
.console-call { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.04em; color: var(--ok); display: inline-flex; align-items: center; gap: 7px; font-weight: 500; }
.console-call .live { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.cc { border: 1px solid var(--line); border-radius: 13px; padding: 14px; background: #fff; }
.cc-label { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); }
.cc-name { font-weight: 800; font-size: 1.12rem; color: var(--ink); margin-top: 7px; letter-spacing: -0.01em; }
.cc-sub { font-size: 0.82rem; color: var(--muted); margin-top: 3px; }
.cc-chips { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.chip { font-size: 0.72rem; font-weight: 600; color: var(--muted); background: var(--bg-2); border: 1px solid var(--line); border-radius: 7px; padding: 4px 9px; }
.chip.hot { color: var(--gold); background: var(--accent-soft); border-color: transparent; }

.cc.metal { background: linear-gradient(180deg, #fffdf6, #fff8ea); border-color: rgba(251,169,25,0.3); position: relative; overflow: hidden; }
.metal-top { display: flex; align-items: center; justify-content: space-between; }
.metal-live { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.08em; color: var(--ok); display: inline-flex; gap: 6px; align-items: center; }
.metal-live .live { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); animation: pulse 1.6s infinite; }
.metal-price { font-family: var(--font-mono); font-weight: 500; font-size: 1.5rem; color: var(--ink); margin-top: 8px; letter-spacing: -0.01em; }
.metal-delta { font-size: 0.76rem; color: var(--ok); font-weight: 600; margin-top: 2px; }
.metal-spark { margin-top: 8px; width: 100%; height: 34px; display: block; }

.cc.script .script-q { font-size: 0.85rem; color: var(--ink); line-height: 1.5; margin-top: 8px; min-height: 3.6em; }
.cc.script .caret { display: inline-block; width: 2px; height: 1em; background: var(--primary); vertical-align: -0.15em; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.cc.pay .pay-amt { font-family: var(--font-mono); font-weight: 500; font-size: 1.45rem; color: var(--ink); margin-top: 8px; }
.cc.pay .pay-card { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }
.pay-btn { margin-top: 12px; width: 100%; border: 0; border-radius: 9px; padding: 11px; font-family: var(--font-body); font-weight: 700; font-size: 0.9rem; color: #3a2600; background: linear-gradient(180deg, var(--accent-2), var(--accent)); cursor: pointer; box-shadow: 0 8px 18px -10px rgba(251,169,25,0.7); transition: transform 0.18s var(--ease); }
.pay-btn:hover { transform: translateY(-1px); }

.console-foot {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 9px; margin-top: 2px;
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--ok); font-weight: 500;
}
.console-foot .live { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: pulse 1.6s infinite; }

.fca-badge {
  position: absolute; right: -14px; bottom: 64px; z-index: 4;
  display: inline-flex; align-items: center; gap: 7px; background: #fff;
  border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px;
  font-size: 0.78rem; font-weight: 700; color: var(--primary); box-shadow: var(--shadow-md);
}
.fca-badge svg { width: 15px; height: 15px; }
@media (max-width: 460px) { .fca-badge { display: none; } }

/* ---- hero carousel ---- */
.hero-console { min-width: 0; }
.hero-carousel { position: relative; min-width: 0; }
.hero-viewport { overflow: hidden; min-width: 0; }
.hero-track { display: flex; align-items: stretch; min-width: 0; transition: transform 0.55s cubic-bezier(0.22, 0.8, 0.26, 1); }
.hero-slide { flex: 0 0 100%; max-width: 100%; min-width: 0; display: flex; box-sizing: border-box; padding: 16px 16px 8px; }
.hero-slide .console { width: 100%; align-content: start; }
@media (prefers-reduced-motion: reduce) { .hero-track { transition: none; } }

/* per-slide accent on the tag dot + highlight box */
.console-tag .dot { background: var(--tagc, var(--accent)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tagc, var(--accent)) 18%, transparent); }

/* highlight box (tinted by slide colour) */
.cc.hl { background: color-mix(in srgb, var(--tagc, var(--accent)) 7%, #fff); border-color: color-mix(in srgb, var(--tagc, var(--accent)) 28%, transparent); }
.cc-stat { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; letter-spacing: -0.02em; color: var(--ink); margin-top: 8px; line-height: 1; }
.cc-stat-sub { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }
.cc-bars { display: flex; flex-direction: column; gap: 7px; margin-top: 10px; }
.cc-bar { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; font-size: 0.74rem; color: var(--body); }
.cc-bar .t { height: 6px; border-radius: 4px; background: var(--bg-2); overflow: hidden; grid-column: 1 / -1; }
.cc-bar .t i { display: block; height: 100%; border-radius: 4px; background: var(--tagc, var(--accent)); }
.cc-bar .lab { grid-column: 1; }
.cc-bar .val { grid-column: 2; font-family: var(--font-mono); color: var(--ink); }
.cc-prog { height: 8px; border-radius: 5px; background: var(--bg-2); overflow: hidden; margin-top: 10px; }
.cc-prog i { display: block; height: 100%; border-radius: 5px; background: var(--tagc, var(--accent)); }
.cc-act-btn { margin-top: 12px; width: 100%; border: 0; border-radius: 9px; padding: 10px; font-family: var(--font-body); font-weight: 700; font-size: 0.86rem; color: #fff; background: var(--tagc, var(--primary)); cursor: pointer; transition: transform 0.15s, filter 0.15s; }
.cc-act-btn:hover { transform: translateY(-1px); filter: brightness(1.06); }

/* dots + arrows */
.hero-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; }
.hero-dots { display: flex; align-items: center; gap: 8px; }
.hero-dot { width: 8px; height: 8px; border-radius: 50%; border: 0; background: var(--line-2); cursor: pointer; padding: 0; transition: width 0.25s, background 0.25s; }
.hero-dot.active { width: 26px; border-radius: 5px; background: var(--accent); }
.hero-arrow { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; box-shadow: var(--shadow-sm); transition: border-color 0.15s, transform 0.15s; }
.hero-arrow:hover { border-color: var(--primary); transform: translateY(-1px); }
.hero-arrow svg { width: 16px; height: 16px; }
.hero-slide-label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--muted); min-width: 132px; text-align: center; }

/* ============================================================
   STATS BANNER
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }
.stat { background: #fff; padding: 30px 26px; }
.stat-num { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; font-size: clamp(2.2rem, 4vw, 3rem); color: var(--ink); line-height: 1; }
.stat-num .suffix { color: var(--accent); }
.stat-label { margin-top: 10px; font-size: 0.92rem; color: var(--muted); line-height: 1.4; }

.price-compare { margin-top: 26px; display: flex; align-items: stretch; gap: 14px; flex-wrap: wrap; }
.pc-card { flex: 1 1 220px; border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; background: #fff; }
.pc-card.them { background: var(--bg-2); }
.pc-card.us { border-color: rgba(251,169,25,0.4); background: linear-gradient(180deg, #fffdf6, #fff); }
.pc-name { font-size: 0.82rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-family: var(--font-mono); }
.pc-price { font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: var(--ink); margin-top: 8px; letter-spacing: -0.02em; }
.pc-price s { color: var(--muted-2); font-weight: 600; font-size: 1.4rem; text-decoration-thickness: 2px; }
.pc-price .per { font-size: 0.92rem; font-weight: 600; color: var(--muted); }
.pc-bar { height: 8px; border-radius: 6px; background: var(--line); margin-top: 14px; overflow: hidden; }
.pc-bar i { display: block; height: 100%; border-radius: 6px; width: 0; transition: width 1.1s var(--ease); }
.pc-card.them .pc-bar i { background: var(--muted-2); }
.pc-card.us .pc-bar i { background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.pc-note { margin-top: 10px; font-size: 0.82rem; color: var(--muted); }

/* ============================================================
   THE SYSTEM — 5 LAYER STACK
   ============================================================ */
.stack-layout { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 5vw, 72px); align-items: center; margin-top: 54px; }
@media (max-width: 940px) { .stack-layout { grid-template-columns: 1fr; gap: 40px; } }

.stack-scene { perspective: 1400px; position: relative; min-height: 420px; display: flex; align-items: center; justify-content: center; }
.stack { position: relative; width: min(420px, 86%); transform-style: preserve-3d; transform: rotateX(52deg) rotateZ(-42deg); }
.layer {
  position: relative; height: 92px; margin-bottom: -34px; border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.6); display: flex; align-items: center; gap: 16px; padding: 0 22px;
  box-shadow: 0 30px 40px -28px rgba(15,29,51,0.5);
  transform: translateZ(var(--z, 0)); transition: transform 0.55s var(--ease), box-shadow 0.4s, filter 0.3s;
  cursor: pointer; color: #fff; opacity: 0; will-change: transform;
}
.stack.in .layer { opacity: 1; }
.layer:nth-child(1) { background: linear-gradient(135deg, #4a64bb, #3953a5); --z: 0; transition-delay: 0.05s; }
.layer:nth-child(2) { background: linear-gradient(135deg, #3f5bb4, #314a93); --z: 26px; transition-delay: 0.12s; }
.layer:nth-child(3) { background: linear-gradient(135deg, #ffc24d, #fba919); color: #3a2600; --z: 52px; transition-delay: 0.19s; }
.layer:nth-child(4) { background: linear-gradient(135deg, #34507f, #25304f); --z: 78px; transition-delay: 0.26s; }
.layer:nth-child(5) { background: linear-gradient(135deg, #2fbd86, #0a8f5b); --z: 104px; transition-delay: 0.33s; }
.stack.in .layer.active { transform: translateZ(calc(var(--z, 0) + 46px)) scale(1.015); box-shadow: 0 50px 60px -30px rgba(15,29,51,0.6); }
.stack.in .layer.dim { filter: saturate(0.6) brightness(0.96); opacity: 0.7; }
.layer-ic { width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,0.2); display: grid; place-items: center; flex-shrink: 0; }
.layer:nth-child(3) .layer-ic { background: rgba(58,38,0,0.14); }
.layer-ic svg { width: 21px; height: 21px; }
.layer-n { font-family: var(--font-mono); font-size: 0.66rem; opacity: 0.8; letter-spacing: 0.1em; }
.layer-t { font-weight: 800; font-size: 1.02rem; letter-spacing: -0.01em; }

.stack-readout { display: flex; flex-direction: column; gap: 10px; }
.lr-item { border: 1px solid var(--line); border-radius: 13px; padding: 16px 18px; background: #fff; cursor: pointer; transition: border-color 0.22s, box-shadow 0.22s, background 0.22s, transform 0.22s var(--ease); display: flex; gap: 14px; align-items: flex-start; }
.lr-item:hover { transform: translateX(3px); }
.lr-item.active { border-color: var(--primary); box-shadow: var(--shadow-md); background: #fff; }
.lr-item.active.amber { border-color: var(--accent); }
.lr-item.active.green { border-color: var(--ok); }
.lr-badge { font-family: var(--font-mono); font-weight: 600; font-size: 0.78rem; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; background: var(--primary-soft); color: var(--primary); }
.lr-item.amber .lr-badge { background: var(--accent-soft); color: var(--gold); }
.lr-item.green .lr-badge { background: var(--ok-soft); color: var(--ok); }
.lr-t { font-weight: 700; color: var(--ink); font-size: 1rem; }
.lr-d { font-size: 0.9rem; color: var(--muted); margin-top: 3px; line-height: 1.45; }

/* ============================================================
   DEMO SHELL (shared by playable sections)
   ============================================================ */
.demo-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.demo-tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ok); font-weight: 600; background: var(--ok-soft); border-radius: 999px; padding: 6px 13px; }
.demo-tag .d { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.demo-frame { margin-top: 34px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow-lg); overflow: hidden; }
.demo-frame-bar { display: flex; align-items: center; gap: 8px; padding: 13px 18px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.demo-frame-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); display: block; }
.demo-frame-bar .ttl { margin-left: 10px; font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); }
.demo-frame-bar .right { margin-left: auto; font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted-2); }

/* ---- AI console demo ---- */
.ai-demo { display: grid; grid-template-columns: 1.25fr 1fr; min-height: 480px; }
@media (max-width: 860px) { .ai-demo { grid-template-columns: 1fr; } }
.ai-thread { padding: 22px; display: flex; flex-direction: column; gap: 14px; border-right: 1px solid var(--line); overflow: hidden; }
@media (max-width: 860px) { .ai-thread { border-right: 0; border-bottom: 1px solid var(--line); } }
.ai-msg { display: flex; gap: 12px; align-items: flex-start; opacity: 0; transform: translateY(10px); animation: msgIn 0.5s var(--ease) forwards; }
@keyframes msgIn { to { opacity: 1; transform: none; } }
.ai-av { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; font-weight: 800; font-size: 0.82rem; }
.ai-av.bot { background: transparent; }
.ai-av.bot .ai-fav { width: 30px; height: auto; display: block; }
.ai-av.you { background: var(--bg-2); color: var(--muted); border: 1px solid var(--line); }
.ai-bubble { border-radius: 13px; padding: 12px 15px; font-size: 0.92rem; line-height: 1.5; max-width: 100%; }
.ai-msg.bot .ai-bubble { background: var(--bg-2); color: var(--ink); border: 1px solid var(--line); }
.ai-msg.you { flex-direction: row-reverse; }
.ai-msg.you .ai-bubble { background: var(--primary); color: #fff; }
.ai-bubble .who { font-size: 0.7rem; font-family: var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.7; margin-bottom: 4px; }

/* action card requiring confirmation */
.ai-action { border: 1px solid var(--accent); border-radius: 13px; overflow: hidden; background: #fffdf6; box-shadow: var(--shadow-md); }
.ai-action-h { display: flex; align-items: center; gap: 9px; padding: 11px 15px; background: var(--accent-soft); font-weight: 700; font-size: 0.84rem; color: var(--gold); }
.ai-action-b { padding: 13px 15px; }
.ai-action-row { display: flex; justify-content: space-between; font-size: 0.88rem; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.ai-action-row:last-child { border-bottom: 0; }
.ai-action-row .k { color: var(--muted); }
.ai-action-row .v { color: var(--ink); font-weight: 600; }
.ai-action-foot { display: flex; gap: 9px; padding: 0 15px 14px; }
.ai-confirm, .ai-edit { flex: 1; border: 0; border-radius: 9px; padding: 10px; font-family: var(--font-body); font-weight: 700; font-size: 0.85rem; cursor: pointer; transition: transform 0.16s var(--ease), filter 0.16s; }
.ai-confirm { background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: #3a2600; }
.ai-confirm:hover { transform: translateY(-1px); }
.ai-edit { background: #fff; border: 1px solid var(--line-2); color: var(--ink); flex: 0 0 auto; padding: 10px 16px; }
.ai-edit:hover { border-color: var(--primary); color: var(--primary); }
.ai-done { display: inline-flex; align-items: center; gap: 7px; font-size: 0.82rem; color: var(--ok); font-weight: 700; }

/* right rail — what the AI is doing */
.ai-rail { padding: 20px; background: var(--bg-2); display: flex; flex-direction: column; gap: 14px; }
.ai-rail h4 { margin: 0; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.ai-prompt { display: flex; flex-direction: column; gap: 9px; }
.prompt-btn { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 11px; padding: 12px 14px; font-family: var(--font-body); font-size: 0.88rem; font-weight: 600; color: var(--ink); cursor: pointer; transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s var(--ease); display: flex; align-items: center; gap: 10px; }
.prompt-btn:hover:not(:disabled) { border-color: var(--primary); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.prompt-btn:disabled { opacity: 0.5; cursor: default; }
.prompt-btn .pi { width: 26px; height: 26px; border-radius: 7px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; }
.prompt-btn .pi svg { width: 15px; height: 15px; }
.ai-steps { margin-top: 4px; display: flex; flex-direction: column; gap: 8px; }
.ai-step { display: flex; align-items: center; gap: 10px; font-size: 0.84rem; color: var(--muted); opacity: 0.45; transition: opacity 0.3s, color 0.3s; }
.ai-step.done { opacity: 1; color: var(--ink); }
.ai-step .sd { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); flex-shrink: 0; display: grid; place-items: center; transition: border-color 0.3s, background 0.3s; }
.ai-step.done .sd { border-color: var(--ok); background: var(--ok); }
.ai-step .sd svg { width: 10px; height: 10px; color: #fff; opacity: 0; transition: opacity 0.3s; }
.ai-step.done .sd svg { opacity: 1; }
.ai-reset { margin-top: auto; align-self: flex-start; background: none; border: 0; font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); cursor: pointer; padding: 6px 0; }
.ai-reset:hover { color: var(--ink); }

/* ---- Modular dialer demo ---- */
.dialer { padding: 22px; background:
  radial-gradient(120% 120% at 0% 0%, rgba(57,83,165,0.03), transparent 60%); }
.dialer-hint { font-size: 0.9rem; color: var(--muted); margin: 0 0 16px; display: flex; align-items: center; gap: 9px; }
.dialer-hint svg { width: 16px; height: 16px; color: var(--primary); }
.dialer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 760px) { .dialer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .dialer-grid { grid-template-columns: 1fr; } }
.widget {
  border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 15px;
  box-shadow: var(--shadow-sm); cursor: grab; position: relative;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.widget:hover { box-shadow: var(--shadow-md); border-color: var(--line-2); }
.widget.dragging { opacity: 0.4; cursor: grabbing; }
.widget.drop-target { border-color: var(--primary); border-style: dashed; }
.widget.added { animation: widgetPop 0.4s var(--ease); }
@keyframes widgetPop { from { transform: scale(0.9); opacity: 0; } to { transform: none; opacity: 1; } }
.w-head { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.w-ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; }
.w-ic svg { width: 15px; height: 15px; }
.w-title { font-weight: 700; font-size: 0.86rem; color: var(--ink); white-space: nowrap; }
.w-grip { margin-left: auto; color: var(--muted-2); cursor: grab; display: flex; }
.w-grip svg { width: 16px; height: 16px; }
.w-body { font-size: 0.82rem; color: var(--muted); line-height: 1.45; }

.w-stat { font-family: var(--font-mono); font-size: 1.3rem; font-weight: 500; color: var(--ink); }
.w-mini-bars { display: flex; align-items: flex-end; gap: 4px; height: 36px; margin-top: 6px; }
.w-mini-bars i { flex: 1; background: var(--primary-soft); border-radius: 3px 3px 0 0; display: block; }
.w-mini-bars i.hi { background: var(--accent); }
.w-keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 4px; }
.w-keypad b { background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; text-align: center; padding: 6px 0; font-family: var(--font-mono); font-size: 0.82rem; color: var(--ink); font-weight: 500; }
.w-script-line { padding: 6px 9px; border-radius: 7px; background: var(--bg-2); font-size: 0.8rem; color: var(--ink); margin-top: 6px; border-left: 2px solid var(--accent); }
.w-tasks { display: flex; flex-direction: column; gap: 6px; }
.w-task { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--ink); }
.w-task .box { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--line-2); flex-shrink: 0; }
.w-task.ok .box { background: var(--ok); border-color: var(--ok); }
.w-task.ok span { color: var(--muted); text-decoration: line-through; }

.tray-label { margin: 22px 0 12px; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.tray { display: flex; gap: 10px; flex-wrap: wrap; }
.tray-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px dashed var(--line-2); background: var(--bg-2); border-radius: 10px; padding: 9px 13px; font-size: 0.84rem; font-weight: 600; color: var(--ink); cursor: pointer; transition: border-color 0.18s, background 0.18s, transform 0.18s var(--ease); }
.tray-chip:hover { border-color: var(--primary); border-style: solid; background: #fff; transform: translateY(-2px); }
.tray-chip .pi { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; }
.tray-chip .pi svg { width: 13px; height: 13px; }
.tray-chip.used { opacity: 0.4; pointer-events: none; }
.dialer-reset { margin-top: 18px; }

/* ---- Goals demo ---- */
.goals { display: grid; grid-template-columns: 1fr 1.15fr; }
@media (max-width: 860px) { .goals { grid-template-columns: 1fr; } }
.goals-control { padding: 26px; border-right: 1px solid var(--line); }
@media (max-width: 860px) { .goals-control { border-right: 0; border-bottom: 1px solid var(--line); } }
.goals-control h3 { margin: 0; font-size: 1.15rem; color: var(--ink); font-weight: 800; letter-spacing: -0.01em; }
.goals-control p { font-size: 0.9rem; color: var(--muted); margin: 6px 0 0; }
.target-display { margin-top: 24px; font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.2rem); color: var(--ink); letter-spacing: -0.03em; }
.target-display .cur { color: var(--primary); }
.slider-wrap { margin-top: 18px; }
.slider-wrap input[type=range] { width: 100%; -webkit-appearance: none; appearance: none; height: 8px; border-radius: 6px; background: var(--line); outline: none; }
.slider-wrap input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); cursor: grab; box-shadow: var(--shadow-md); transition: transform 0.15s; }
.slider-wrap input[type=range]::-webkit-slider-thumb:active { transform: scale(1.12); cursor: grabbing; }
.slider-wrap input[type=range]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); cursor: grab; box-shadow: var(--shadow-md); }
.slider-ticks { display: flex; justify-content: space-between; margin-top: 9px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted-2); }
.seg { margin-top: 22px; display: flex; gap: 7px; }
.seg button { flex: 1; border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 9px; font-family: var(--font-body); font-weight: 600; font-size: 0.84rem; color: var(--muted); cursor: pointer; transition: all 0.18s; }
.seg button.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.goals-readout { padding: 26px; display: flex; flex-direction: column; gap: 20px; }
.forecast-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.forecast-label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.forecast-status { font-size: 0.82rem; font-weight: 700; padding: 4px 11px; border-radius: 999px; }
.forecast-status.ok { color: var(--ok); background: var(--ok-soft); }
.forecast-status.warn { color: var(--gold); background: var(--accent-soft); }
.forecast-status.over { color: var(--primary); background: var(--primary-soft); }
.gauge-track { height: 14px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; position: relative; }
.gauge-fill { height: 100%; border-radius: 8px; width: 0; background: linear-gradient(90deg, var(--primary), #4a64bb); transition: width 0.7s var(--ease), background 0.4s; }
.gauge-fill.over { background: linear-gradient(90deg, var(--accent), var(--gold)); }
.gauge-scale { display: flex; justify-content: space-between; margin-top: 7px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted-2); }
.fc-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.fc-stat { border: 1px solid var(--line); border-radius: 11px; padding: 13px; background: #fff; }
.fc-stat .k { font-size: 0.74rem; color: var(--muted); }
.fc-stat .v { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--ink); margin-top: 4px; letter-spacing: -0.02em; }
.contributors { display: flex; flex-direction: column; gap: 11px; }
.contributors h4 { margin: 0; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.contrib { display: grid; grid-template-columns: 26px 1fr auto; gap: 11px; align-items: center; }
.contrib .av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 0.72rem; font-weight: 800; color: #fff; }
.contrib .bar { height: 8px; border-radius: 5px; background: var(--bg-2); overflow: hidden; }
.contrib .bar i { display: block; height: 100%; border-radius: 5px; background: var(--primary); width: 0; transition: width 0.7s var(--ease); }
.contrib .amt { font-family: var(--font-mono); font-size: 0.82rem; color: var(--ink); font-weight: 500; }

/* ============================================================
   FLYWHEEL
   ============================================================ */
.flywheel-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 64px); align-items: center; margin-top: 50px; }
@media (max-width: 940px) { .flywheel-layout { grid-template-columns: 1fr; } }
.wheel-scene { position: relative; aspect-ratio: 1; max-width: 440px; margin: 0 auto; width: 100%; }
.wheel-svg { width: 100%; height: 100%; overflow: visible; }
.wheel-ring { fill: none; stroke: var(--line); stroke-width: 1.5; }
.wheel-arc { fill: none; stroke: var(--primary); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 0 999; transition: stroke-dasharray 0.6s var(--ease); }
.wheel-node { cursor: pointer; }
.wheel-node circle { transition: r 0.3s var(--ease), fill 0.3s, stroke 0.3s; }
.wheel-node .ring { fill: #fff; stroke: var(--line-2); stroke-width: 1.5; }
.wheel-node.active .ring { stroke: var(--primary); stroke-width: 2.5; }
.wheel-node .ic { color: var(--muted); transition: color 0.3s; }
.wheel-node.active .ic { color: var(--primary); }
.wheel-center { text-anchor: middle; }
.wheel-center .wc-num { font-family: var(--font-display); font-weight: 800; font-size: 30px; fill: var(--ink); }
.wheel-center .wc-lab { font-family: var(--font-mono); font-size: 9px; fill: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; }

.wheel-steps { display: flex; flex-direction: column; gap: 10px; }
.ws { display: flex; gap: 15px; align-items: flex-start; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: #fff; cursor: pointer; transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease); }
.ws:hover { transform: translateX(3px); }
.ws.active { border-color: var(--primary); box-shadow: var(--shadow-md); }
.ws-n { font-family: var(--font-mono); font-weight: 600; width: 30px; height: 30px; border-radius: 9px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; font-size: 0.82rem; transition: background 0.25s, color 0.25s; }
.ws.active .ws-n { background: var(--primary); color: #fff; }
.ws-t { font-weight: 700; color: var(--ink); font-size: 1rem; }
.ws-d { font-size: 0.9rem; color: var(--muted); margin-top: 3px; line-height: 1.45; }

/* ============================================================
   AUDIENCES
   ============================================================ */
.aud-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 880px) { .aud-grid { grid-template-columns: 1fr; } }
.aud { border: 1px solid var(--line); border-radius: 18px; padding: 26px; background: #fff; transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s; }
.aud:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.aud-ic { width: 48px; height: 48px; border-radius: 13px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; }
.aud-ic svg { width: 24px; height: 24px; }
.aud h3 { margin: 18px 0 0; font-size: 1.2rem; color: var(--ink); font-weight: 800; letter-spacing: -0.01em; }
.aud .sub { font-size: 0.85rem; color: var(--primary); font-weight: 600; margin-top: 3px; }
.aud ul { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.aud li { display: flex; gap: 9px; align-items: flex-start; font-size: 0.92rem; color: var(--body); }
.aud li svg { width: 17px; height: 17px; color: var(--ok); flex-shrink: 0; margin-top: 2px; }

/* ============================================================
   COMPLIANCE STRIP
   ============================================================ */
.compliance { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.comp-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; align-items: center; }
@media (max-width: 860px) { .comp-grid { grid-template-columns: 1fr 1fr; gap: 22px; } }
.comp { display: flex; flex-direction: column; gap: 9px; }
.comp-ic { width: 40px; height: 40px; border-radius: 11px; background: #fff; border: 1px solid var(--line); color: var(--primary); display: grid; place-items: center; }
.comp-ic svg { width: 20px; height: 20px; }
.comp-t { font-weight: 700; color: var(--ink); font-size: 0.95rem; }
.comp-d { font-size: 0.82rem; color: var(--muted); line-height: 1.4; }

/* ============================================================
   PRICING TEASER + CTA
   ============================================================ */
.cta-band {
  position: relative; overflow: hidden; border-radius: 26px;
  background: linear-gradient(135deg, #2c4185, #1e2f5f 60%, #16233f);
  color: #fff; padding: clamp(40px, 6vw, 72px); text-align: center;
}
.cta-band::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(40rem 24rem at 84% -20%, rgba(251,169,25,0.22), transparent 60%),
              radial-gradient(34rem 24rem at 10% 120%, rgba(99,130,220,0.3), transparent 60%); }
.cta-band > * { position: relative; }
.cta-band h2 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; font-size: clamp(2rem, 4.4vw, 3.1rem); margin: 0; line-height: 1.05; }
.cta-band p { color: rgba(255,255,255,0.82); font-size: 1.1rem; max-width: 560px; margin: 18px auto 0; }
.cta-actions { margin-top: 32px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-white { background: #fff; color: var(--primary-2); box-shadow: 0 14px 30px -14px rgba(0,0,0,0.5); }
.btn-white:hover { transform: translateY(-2px); }
.btn-outline-w { background: rgba(255,255,255,0.06); color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-outline-w:hover { background: rgba(255,255,255,0.14); transform: translateY(-2px); }
.cta-foot { margin-top: 24px; font-family: var(--font-mono); font-size: 0.82rem; color: rgba(255,255,255,0.6); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { padding: 56px 0 40px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer-grid.cols5 { grid-template-columns: 1.5fr repeat(4, 1fr); gap: 26px; }
@media (max-width: 980px) { .footer-grid.cols5 { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; } .footer-grid.cols5 { grid-template-columns: 1fr 1fr; } }
.footer-brand p { font-size: 0.92rem; color: var(--muted); max-width: 280px; margin: 14px 0 0; }
.footer h5 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 14px; font-weight: 500; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { font-size: 0.92rem; color: var(--body); transition: color 0.18s; }
.footer ul a:hover { color: var(--primary); }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.85rem; color: var(--muted-2); }

@media (prefers-reduced-motion: reduce) {
  .stack .layer, .gauge-fill, .contrib .bar i, .pc-bar i { transition: none !important; }
  .console-call .live, .metal-live .live, .console-foot .live { animation: none !important; }
}

/* ============================================================
   MOBILE NAV (hamburger) + FOOTER TAP TARGETS
   Phones/tablets only — the desktop bar/footer are unchanged.
   Button + panel markup is injected by loader.js.
   Added 2026-06-28 (mobile-friendliness Phase 1 & 2).
   ============================================================ */
.nav-burger { display: none; }
.nav-mobile-panel { display: none; }

@media (max-width: 1024px) {
  .nav-burger {
    display: inline-flex; flex-direction: column; justify-content: center;
    gap: 5px; width: 44px; height: 44px; padding: 0 11px;
    background: transparent; border: 0; border-radius: 10px;
    color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .nav-burger span {
    display: block; width: 22px; height: 2px; border-radius: 2px;
    background: currentColor; transition: transform .25s ease, opacity .2s ease;
  }
  .nav-inner > .nav-cta { margin-left: auto; }   /* brand stays left; cta + burger group right */
  .nav.nav-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
  .nav.nav-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-mobile-panel {
    display: flex; flex-direction: column;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-top: 1px solid var(--line);
    box-shadow: 0 22px 44px -18px rgba(15,29,51,0.45);
    padding: 6px 20px 16px;
    max-height: 0; overflow: hidden; opacity: 0; pointer-events: none;
    transition: max-height .32s ease, opacity .22s ease;
  }
  .nav.nav-open .nav-mobile-panel {
    max-height: min(78vh, 620px); overflow-y: auto;
    opacity: 1; pointer-events: auto;
  }
  .nav-mobile-link {
    display: flex; align-items: center; gap: 9px; min-height: 48px;
    padding: 11px 2px; font-size: 1.04rem; font-weight: 500;
    color: var(--ink); border-bottom: 1px solid var(--line);
    white-space: normal;
  }
  .nav-mobile-link:last-child { border-bottom: 0; }
  .nav-mobile-link svg { width: 18px; height: 18px; flex: none; }
  .nav-mobile-link:active { color: var(--primary); }
}

/* NOTE: no background scroll-lock — setting overflow:hidden on body breaks the
   sticky nav (it would jump off-screen when the menu is opened while scrolled),
   leaving the menu invisible. The dropdown scrolls internally instead. */

/* Chat ("Chat with us") widget removed per owner request. */
.agentw { display: none !important; }

/* On narrow phones, keep BOTH the Marketplace and Sign up buttons in the header
   but shrink them (and tighten the bar) so they fit alongside the brand + menu. */
@media (max-width: 600px) {
  .nav .nav-inner { padding: 0 12px !important; }
  /* high specificity (.nav .nav-cta …) to beat modules10's later `.nav-market-btn` / `.btn.btn-sm` !important rules */
  .nav .nav-cta .nav-market-btn { display: inline-flex !important; padding: 7px 10px !important; font-size: .72rem !important; }
  .nav .nav-cta .btn-sm { padding: 7px 10px !important; font-size: .72rem !important; }
  .nav .nav-cta { gap: 7px !important; }
  .nav .nav-burger { width: 38px !important; padding: 0 7px !important; }
}

/* ---- Footer: comfortable tap targets on phones (layout only) ---- */
@media (max-width: 600px) {
  .footer ul { gap: 2px; }
  .footer ul a {
    display: flex; align-items: center; min-height: 44px;
    padding: 6px 0; font-size: 0.98rem;
  }
  .footer-grid { gap: 22px 26px; }
}
