/* ============================================================
   Landing — Bloomberg-terminal aesthetic.
   Tokens mirror /ai/intermarket so the marketing surface and the
   product surface read as one app. Scoped under .landing-root so
   nothing leaks into the global stylesheet pile.
   ============================================================ */

.landing-root {
  /* Surfaces */
  --bg-0: #000000;
  --bg-1: #0a0a0a;
  --bg-2: #1a1a1a;
  --bd:   #2a2a3a;
  --bd-strong: #3a3a4a;

  /* Foreground */
  --fg-0: #ffffff;
  --fg-1: #b3b3b3;
  --fg-2: #6b6b7a;

  /* Accents */
  --orange: #fa8c16;
  --amber:  #ffcc00;
  --lila:   #a78bfa;
  --up:     #00e676;
  --down:   #ff3d3d;
  --link:   #4dabf7;

  /* Type */
  --mono: 'JetBrains Mono','IBM Plex Mono','Roboto Mono','SFMono-Regular',Menlo,Consolas,monospace;
  --display: 'Inter','SF Pro Display',-apple-system,BlinkMacSystemFont,Helvetica,Arial,sans-serif;

  display: block;
  position: relative;
  width: 100vw;
  max-width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 0;
  background: var(--bg-0);
  color: var(--fg-1);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

body:has(.landing-root) {
  overflow-x: hidden;
  background: var(--bg-0, #000);
}

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

.landing-root h1,
.landing-root h2,
.landing-root h3,
.landing-root p,
.landing-root ul,
.landing-root ol {
  margin: 0;
  padding: 0;
}

.landing-root a {
  color: inherit;
  text-decoration: none;
}

.landing-root button {
  font: inherit;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: inherit;
}

/* Utility ── chips, kickers, mono labels ─────────────────── */
.landing-root .l-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lila);
  background: rgba(167, 139, 250, 0.10);
  border: 1px solid rgba(167, 139, 250, 0.35);
  border-radius: 2px;
  line-height: 1;
}
.landing-root .l-chip--orange {
  color: var(--lila);
  background: rgba(167, 139, 250, 0.10);
  border-color: rgba(167, 139, 250, 0.45);
}
.landing-root .l-kicker {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lila);
}
.landing-root .l-mono-label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-2);
}

/* ── 1. Top status bar ──────────────────────────────────── */
.landing-root .l-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 28px;
  padding: 0 24px;
  background: var(--bg-1);
  border-bottom: 1px solid var(--bd);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-2);
}
.landing-root .l-statusbar-left,
.landing-root .l-statusbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
.landing-root .l-statusbar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.landing-root .l-led {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 6px var(--up);
  animation: l-led-pulse 2s ease-in-out infinite;
}
@keyframes l-led-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}
@media (prefers-reduced-motion: reduce) {
  .landing-root .l-led { animation: none; }
}

/* ── 2. Hero ───────────────────────────────────────────── */
.landing-root .l-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: clamp(56px, 8vw, 96px) clamp(24px, 4vw, 48px);
  border-bottom: 1px solid var(--bd);
}
.landing-root .l-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 560px;
}
.landing-root .l-hero-h1 {
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--fg-0);
}
.landing-root .l-hero-h1 .l-accent {
  color: var(--lila);
}
.landing-root .l-hero-sub {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.65;
  color: var(--fg-1);
  max-width: 52ch;
}
.landing-root .l-hero-ctas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.landing-root .l-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--bd);
  background: transparent;
  color: var(--fg-0);
  cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.landing-root .l-btn:hover {
  background: var(--bg-1);
  border-color: var(--lila);
  color: var(--lila);
}
.landing-root .l-btn--primary {
  background: var(--lila);
  border-color: var(--lila);
  color: var(--bg-0);
}
.landing-root .l-btn--primary:hover {
  background: #c4b5fd;
  border-color: #c4b5fd;
  color: var(--bg-0);
}
.landing-root .l-btn--lg {
  padding: 16px 32px;
  font-size: 13px;
}

/* Hero chart panel */
.landing-root .l-hero-panel {
  display: flex;
  flex-direction: column;
  background: var(--bg-0);
  border: 1px solid var(--bd);
  overflow: hidden;
}

/* Right-hand laptop mockup that replaced the old SPY/QQQ/IWM chart
   panel. It sits in the same grid cell .l-hero-panel used to occupy
   (the 2nd column of `.l-hero`'s 1fr 1fr grid). The image already
   has a transparent background — no card framing, no border. */
.landing-root .l-hero-mockup {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  /* Sit slightly off the right edge so the laptop looks like it's
     entering the frame — adds depth, also forgives the photo's
     fixed perspective which already tilts off to the right. */
  margin-right: clamp(-48px, -4vw, -16px);
}

.landing-root .l-hero-mockup img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 720px;
  /* The laptop's natural body colour is mid-grey (rgb ~78). Against
     the near-black hero video that mid-grey reads as a lighter rim
     around the silhouette. brightness(0.92) + slight contrast push
     pulls the body closer to the surrounding scene so the laptop
     looks embedded, not floating.

     Two-stage drop-shadow:
       · short contact shadow tight beneath the laptop's actual base
       · single soft ground shadow further out
     Drops the previous 3-layer stack, which (a) widened the
     perceived bright halo on dark backgrounds because each shadow
     extended outward beyond the dark body, and (b) cost extra
     compositing passes. drop-shadow still follows the PNG alpha,
     so the shape is honest. */
  filter:
    brightness(0.92) contrast(1.04)
    drop-shadow(0 3px 4px rgba(0, 0, 0, 0.55))
    drop-shadow(0 28px 48px rgba(0, 0, 0, 0.55));
  transform: translateY(-4px);
  transform-origin: center 70%;
  will-change: transform, filter;
  transition:
    transform 420ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover: laptop comes forward, brightens slightly back toward its
   true colour (so the user gets a subtle "wake up" cue), shadow
   grows wider and softer like an object lifting off a surface. */
.landing-root .l-hero-mockup:hover img {
  transform: translateY(-16px) scale(1.022);
  filter:
    brightness(1.0) contrast(1.04)
    drop-shadow(0 5px 6px rgba(0, 0, 0, 0.55))
    drop-shadow(0 44px 80px rgba(0, 0, 0, 0.6));
}

/* Reduced-motion users: keep the resting filter, drop the lift. */
@media (prefers-reduced-motion: reduce) {
  .landing-root .l-hero-mockup img {
    transition: none;
  }
  .landing-root .l-hero-mockup:hover img {
    transform: translateY(-4px);
  }
}

.landing-root .l-hero-panel-head {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-1);
  border-bottom: 1px solid var(--bd);
}
.landing-root .l-hero-tab {
  padding: 10px 16px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-2);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--bd);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.12s ease, border-color 0.12s ease, background-color 0.12s ease;
}
.landing-root .l-hero-tab:hover {
  color: var(--fg-1);
  background: var(--bg-2);
}
.landing-root .l-hero-tab.is-active {
  color: var(--fg-0);
  border-bottom-color: var(--lila);
  background: var(--bg-0);
}
.landing-root .l-hero-tab-meta {
  margin-left: auto;
  padding: 0 16px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-2);
  letter-spacing: 0.05em;
}
.landing-root .l-hero-chart-host {
  position: relative;
  height: 320px;
  background: var(--bg-0);
}
.landing-root .l-hero-chart-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-2);
  pointer-events: none;
}
.landing-root .l-hero-panel-foot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--bd);
}
.landing-root .l-hero-stat {
  padding: 10px 14px;
  border-right: 1px solid var(--bd);
}
.landing-root .l-hero-stat:last-child { border-right: 0; }
.landing-root .l-hero-stat-k {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-2);
  margin-bottom: 4px;
}
.landing-root .l-hero-stat-v {
  display: block;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--fg-0);
  font-variant-numeric: tabular-nums;
}
.landing-root .l-hero-stat-v.is-up   { color: var(--up); }
.landing-root .l-hero-stat-v.is-down { color: var(--down); }

/* ── 3. Trust strip ────────────────────────────────────── */
.landing-root .l-trust {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  flex-wrap: wrap;
  padding: 22px clamp(24px, 4vw, 48px);
  background: var(--bg-1);
  border-bottom: 1px solid var(--bd);
}
.landing-root .l-trust-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--fg-2);
  white-space: nowrap;
}
.landing-root .l-trust-tickers {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--fg-1);
  letter-spacing: 0.05em;
}
.landing-root .l-trust-tickers span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.landing-root .l-trust-tickers span::before {
  content: '·';
  color: var(--fg-2);
  margin-right: 16px;
}
.landing-root .l-trust-tickers span:first-child::before { content: none; }

/* ── 4. Features sections ──────────────────────────────── */
.landing-root .l-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  padding: clamp(64px, 8vw, 96px) clamp(24px, 4vw, 48px);
  border-bottom: 1px solid var(--bd);
}
.landing-root .l-feature--reverse .l-feature-visual { order: 2; }
.landing-root .l-feature--reverse .l-feature-copy { order: 1; }

.landing-root .l-feature-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 540px;
}
.landing-root .l-feature-h2 {
  font-family: var(--display);
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--fg-0);
}
.landing-root .l-feature-body {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.65;
  color: var(--fg-1);
  max-width: 52ch;
}
.landing-root .l-feature-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lila);
  border-bottom: 1px solid transparent;
  transition: border-color 0.12s ease;
  align-self: flex-start;
}
.landing-root .l-feature-link:hover {
  border-bottom-color: var(--lila);
}

/* Feature visual — mini terminal panel mocks */
.landing-root .l-feature-visual {
  position: relative;
}
.landing-root .l-mock {
  background: var(--bg-0);
  border: 1px solid var(--bd);
  overflow: hidden;
  font-family: var(--mono);
}
.landing-root .l-mock-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--bg-1);
  border-bottom: 1px solid var(--bd);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-2);
}
.landing-root .l-mock-head-title {
  color: var(--lila);
  font-weight: 700;
}
.landing-root .l-mock-head-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--up);
}

/* Screener table mock */
.landing-root .l-mock-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  color: var(--fg-1);
}
.landing-root .l-mock-table thead th {
  padding: 8px 12px;
  background: var(--bg-1);
  border-bottom: 1px solid var(--bd);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-2);
  text-align: left;
}
.landing-root .l-mock-table thead th.num { text-align: right; }
.landing-root .l-mock-table tbody td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--bd);
  font-variant-numeric: tabular-nums;
}
.landing-root .l-mock-table tbody td.num { text-align: right; }
.landing-root .l-mock-table tbody tr:last-child td { border-bottom: 0; }
.landing-root .l-mock-table .t { color: var(--fg-0); font-weight: 700; }
.landing-root .l-mock-table .up   { color: var(--up); }
.landing-root .l-mock-table .down { color: var(--down); }

/* Intermarket regime mock */
.landing-root .l-mock-regime {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--bd);
  padding: 1px;
}
.landing-root .l-mock-tile {
  padding: 12px 14px;
  background: var(--bg-0);
}
.landing-root .l-mock-tile-k {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-2);
  margin-bottom: 4px;
}
.landing-root .l-mock-tile-v {
  font-size: 18px;
  font-weight: 700;
  color: var(--fg-0);
  font-variant-numeric: tabular-nums;
}
.landing-root .l-mock-tile-v.is-up   { color: var(--up); }
.landing-root .l-mock-tile-v.is-down { color: var(--down); }
.landing-root .l-mock-bars {
  padding: 12px 14px;
}
.landing-root .l-mock-bar {
  display: grid;
  grid-template-columns: 60px 1fr 50px;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  font-size: 10px;
}
.landing-root .l-mock-bar-k { color: var(--fg-2); text-transform: uppercase; letter-spacing: 0.06em; }
.landing-root .l-mock-bar-track {
  height: 4px;
  background: var(--bg-2);
  position: relative;
}
.landing-root .l-mock-bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--lila);
}
.landing-root .l-mock-bar-v { color: var(--fg-0); text-align: right; font-variant-numeric: tabular-nums; }

/* Stock detail mock */
.landing-root .l-mock-detail {
  padding: 14px;
}
.landing-root .l-mock-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px solid var(--bd);
  font-size: 11px;
}
.landing-root .l-mock-detail-row:last-child { border-bottom: 0; }
.landing-root .l-mock-detail-k { color: var(--fg-2); text-transform: uppercase; letter-spacing: 0.05em; font-size: 10px; }
.landing-root .l-mock-detail-v { color: var(--fg-0); font-weight: 700; font-variant-numeric: tabular-nums; }
.landing-root .l-mock-detail-v.is-up { color: var(--up); }
.landing-root .l-mock-detail-v.is-down { color: var(--down); }

/* Report mock */
.landing-root .l-mock-report {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.landing-root .l-mock-report-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 11px;
  color: var(--fg-1);
  line-height: 1.45;
}
.landing-root .l-mock-report-line::before {
  content: '›';
  color: var(--lila);
  font-weight: 700;
}
.landing-root .l-mock-report-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--bd);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-2);
}

/* ── 5. Stats strip ────────────────────────────────────── */
.landing-root .l-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: clamp(56px, 6vw, 80px) clamp(24px, 4vw, 48px);
  background: var(--bg-1);
  border-bottom: 1px solid var(--bd);
}
.landing-root .l-stat {
  text-align: left;
  padding: 0 clamp(12px, 2vw, 24px);
  border-right: 1px solid var(--bd);
}
.landing-root .l-stat:last-child { border-right: 0; }
.landing-root .l-stat:first-child { padding-left: 0; }
.landing-root .l-stat-v {
  display: block;
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--lila);
  font-variant-numeric: tabular-nums;
}
.landing-root .l-stat-k {
  display: block;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-2);
}

/* ── 6. Pricing ────────────────────────────────────────── */
.landing-root .l-pricing {
  padding: clamp(72px, 8vw, 104px) clamp(24px, 4vw, 48px);
  border-bottom: 1px solid var(--bd);
}
.landing-root .l-section-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: clamp(40px, 5vw, 56px);
  max-width: 640px;
}
.landing-root .l-section-h2 {
  font-family: var(--display);
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--fg-0);
}
.landing-root .l-section-sub {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--fg-1);
  line-height: 1.6;
}
.landing-root .l-pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 880px;
  margin-inline: auto;
}
.landing-root .l-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px 26px;
  background: var(--bg-0);
  border: 1px solid var(--bd);
}
.landing-root .l-plan--popular {
  border-color: var(--lila);
}
.landing-root .l-plan-popular-badge {
  position: absolute;
  top: -1px;
  right: -1px;
  padding: 5px 10px;
  background: var(--lila);
  color: var(--bg-0);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
}
.landing-root .l-plan-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.landing-root .l-plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.landing-root .l-plan-amount {
  font-family: var(--display);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--fg-0);
}
.landing-root .l-plan-period {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-2);
}
.landing-root .l-plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 16px 0;
  border-top: 1px solid var(--bd);
  border-bottom: 1px solid var(--bd);
}
.landing-root .l-plan-features li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-1);
  line-height: 1.45;
}
.landing-root .l-plan-features li::before {
  content: '✓';
  color: var(--up);
  font-weight: 700;
}
.landing-root .l-plan-features li.is-off {
  color: var(--fg-2);
}
.landing-root .l-plan-features li.is-off::before {
  content: '×';
  color: var(--fg-2);
}
.landing-root .l-plan-cta {
  margin-top: auto;
  justify-content: center;
  width: 100%;
}

/* ── 7. Closing CTA ────────────────────────────────────── */
.landing-root .l-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
  padding: clamp(80px, 9vw, 120px) clamp(24px, 4vw, 48px);
  background: var(--bg-0);
  border-bottom: 1px solid var(--bd);
}
.landing-root .l-cta-h2 {
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--fg-0);
  max-width: 640px;
}
.landing-root .l-cta-h2 .l-accent { color: var(--lila); }
.landing-root .l-cta-sub {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--fg-1);
  max-width: 540px;
  line-height: 1.6;
}

/* ── 8. Footer ─────────────────────────────────────────── */
/* The shared <footer class="footer"> from base.html renders only on
   landing pages (PR #214). We tighten it into terminal voice here. */
.landing-root + .footer,
.footer:has(~ .landing-root) {
  /* fallback if order differs */
}
body:has(.landing-root) .footer {
  background: var(--bg-0, #000);
  color: var(--fg-1, #b3b3b3);
  border-top: 1px solid var(--bd, #2a2a3a);
  padding: 40px 24px;
}
body:has(.landing-root) .footer .footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  font-family: var(--mono, monospace);
}
body:has(.landing-root) .footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
}
body:has(.landing-root) .footer .footer-links a {
  font-family: var(--mono, monospace);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-1, #b3b3b3);
  text-decoration: none;
  transition: color 0.12s ease;
}
body:has(.landing-root) .footer .footer-links a:hover {
  color: var(--lila, #a78bfa);
}
body:has(.landing-root) .footer .footer-social {
  display: flex;
  gap: 14px;
}
body:has(.landing-root) .footer .footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--bd, #2a2a3a);
  color: var(--fg-1, #b3b3b3);
  transition: border-color 0.12s ease, color 0.12s ease;
}
body:has(.landing-root) .footer .footer-social a:hover {
  border-color: var(--lila, #a78bfa);
  color: var(--lila, #a78bfa);
}
body:has(.landing-root) .footer .footer-copy {
  font-family: var(--mono, monospace);
  font-size: 10px;
  color: var(--fg-2, #6b6b7a);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 960px) {
  .landing-root .l-hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: clamp(40px, 7vw, 64px);
    padding-bottom: clamp(40px, 7vw, 64px);
  }
  .landing-root .l-hero-copy { max-width: none; }
  /* When the hero stacks, the laptop centres under the copy and
     loses the desktop negative-margin bleed. */
  .landing-root .l-hero-mockup {
    margin-right: 0;
    justify-content: center;
  }
  .landing-root .l-hero-mockup img {
    max-width: min(560px, 100%);
    transform: none;
  }
  .landing-root .l-feature {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .landing-root .l-feature--reverse .l-feature-visual,
  .landing-root .l-feature--reverse .l-feature-copy {
    order: initial;
  }
  .landing-root .l-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 0;
  }
  .landing-root .l-stat {
    border-right: 0;
    padding: 0 12px;
  }
  .landing-root .l-stat:nth-child(odd) {
    border-right: 1px solid var(--bd);
  }
  .landing-root .l-pricing-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 640px) {
  .landing-root .l-statusbar {
    padding: 0 14px;
  }
  .landing-root .l-statusbar-right .l-statusbar-item:first-child {
    display: none;
  }
  .landing-root .l-trust { gap: 14px; padding: 18px 14px; }
  .landing-root .l-hero,
  .landing-root .l-feature,
  .landing-root .l-stats,
  .landing-root .l-pricing,
  .landing-root .l-cta {
    padding-left: 14px;
    padding-right: 14px;
  }
  .landing-root .l-hero-panel-foot {
    grid-template-columns: 1fr;
  }
  .landing-root .l-hero-stat {
    border-right: 0;
    border-bottom: 1px solid var(--bd);
  }
  .landing-root .l-hero-stat:last-child { border-bottom: 0; }
  .landing-root .l-hero-tab { padding: 9px 12px; font-size: 10px; }
  .landing-root .l-hero-tab-meta { display: none; }
}

@media (max-width: 420px) {
  .landing-root .l-stats { grid-template-columns: 1fr; }
  .landing-root .l-stat,
  .landing-root .l-stat:nth-child(odd) { border-right: 0; border-bottom: 1px solid var(--bd); padding-bottom: 28px; }
  .landing-root .l-stat:last-child { border-bottom: 0; padding-bottom: 0; }
}

