/* Life Radar — Sales-Web (Original Dark-First Cyber Intelligence Palette + New Split-Radar UX Layout) */

:root {
  --bg: #06080f;
  --bg-elev: #0b1120;
  --bg-subtle: #0e1629;
  --surface: rgba(15, 23, 42, 0.78);
  --surface-solid: #0f172a;
  --line: rgba(148, 163, 184, 0.16);
  --line-strong: rgba(148, 163, 184, 0.3);
  --text: #f8fafc;
  --text-soft: #cbd5e1;
  --muted: #94a3b8;

  --cyan: #22d3ee;
  --violet: #a855f7;
  --rose: #fb7185;
  --emerald: #34d399;
  --amber: #fbbf24;

  /* Semantic aliases for layout */
  --ink: var(--text);
  --ink-soft: var(--text-soft);
  --rule: var(--line);
  --rule-strong: var(--line-strong);
  --accent: var(--cyan);
  --baltic: var(--cyan);
  --brass: var(--amber);
  --forest: var(--emerald);
  --crimson: var(--rose);

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 18px;
  --max-w: 1220px;
  --header-h: 68px;
  --shadow-glow: 0 24px 64px rgba(0, 0, 0, 0.45), 0 0 36px rgba(34, 211, 238, 0.12);
}

html[data-theme="light"] {
  --bg: #f8fafc;
  --bg-elev: #ffffff;
  --bg-subtle: #f1f5f9;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-solid: #ffffff;
  --line: rgba(15, 23, 42, 0.12);
  --line-strong: rgba(15, 23, 42, 0.24);
  --text: #0f172a;
  --text-soft: #334155;
  --muted: #64748b;

  --cyan: #0891b2;
  --violet: #7c3aed;
  --rose: #e11d48;
  --emerald: #059669;
  --amber: #d97706;

  --ink: var(--text);
  --ink-soft: var(--text-soft);
  --rule: var(--line);
  --rule-strong: var(--line-strong);
  --accent: var(--cyan);
  --baltic: var(--cyan);
  --brass: var(--amber);
  --forest: var(--emerald);
  --crimson: var(--rose);

  --shadow-glow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

html.i18n-loading body {
  visibility: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Slow-drifting aurora layer beneath the radar canvas (GPU transform-only animation) */
body::before {
  content: "";
  position: fixed;
  inset: -12vmax;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(48vmax 30vmax at 18% 8%, rgba(34, 211, 238, 0.12), transparent 70%),
    radial-gradient(44vmax 32vmax at 84% 14%, rgba(251, 113, 133, 0.1), transparent 68%),
    radial-gradient(40vmax 28vmax at 62% 88%, rgba(168, 85, 247, 0.08), transparent 70%);
  animation: auroraDrift 38s ease-in-out infinite alternate;
  will-change: transform;
}

html[data-theme="light"] body::before {
  background-image:
    radial-gradient(48vmax 30vmax at 18% 8%, rgba(8, 145, 178, 0.07), transparent 70%),
    radial-gradient(44vmax 32vmax at 84% 14%, rgba(225, 29, 72, 0.05), transparent 68%),
    radial-gradient(40vmax 28vmax at 62% 88%, rgba(124, 58, 237, 0.05), transparent 70%);
}

@keyframes auroraDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
  }
  50% {
    transform: translate3d(3vmax, 2vmax, 0) scale(1.06) rotate(2deg);
  }
  100% {
    transform: translate3d(-2.5vmax, 3.5vmax, 0) scale(1.03) rotate(-1.5deg);
  }
}

/* Echo Atlas: WebGL2 sonar wave field over a Mercator map of Europe (sonar-field.js) + 2D hub HUD */
#sonar-field {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 2s ease;
  contain: strict;
}

#sonar-field.is-live {
  opacity: 1;
}

html[data-theme="light"] #sonar-field.is-live {
  opacity: 0.9;
}

#sonar-field canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Fallback when WebGL2 float targets are unavailable: Live Radar Constellation & Sweeping Beam Canvas */
#radar-bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.6s ease;
}

#radar-bg-canvas.is-live {
  opacity: 0.92;
}

html[data-theme="light"] #radar-bg-canvas.is-live {
  opacity: 0.85;
}

@media (prefers-reduced-motion: reduce) {
  body::before {
    animation: none;
  }

  #radar-bg-canvas,
  #sonar-field {
    transition: none;
  }
}

.telemetry-bar,
.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

a {
  color: var(--cyan);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.85em;
  padding: 0.12em 0.36em;
  border-radius: 5px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
}

.font-display {
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
}

.font-mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}

.container {
  width: min(100%, var(--max-w));
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 1.75rem);
}

/* Top Telemetry Strip */
.telemetry-bar {
  background: var(--bg-elev);
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.69rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.telemetry-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 30px;
  overflow-x: auto;
  white-space: nowrap;
}

.telemetry-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
  margin-right: 0.45rem;
  vertical-align: middle;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  flex-shrink: 0;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex-shrink: 0;
}

.brand-name {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.brand-accent {
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-sub {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-links a {
  color: var(--text-soft);
  font-size: 0.87rem;
  font-weight: 500;
  padding: 0.4rem 0.72rem;
  border-radius: 9px;
  white-space: nowrap;
  transition: background 140ms ease, color 140ms ease;
}

.nav-links a:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--cyan) 10%, transparent);
  text-decoration: none;
}

.nav-links a[aria-current="page"] {
  color: var(--cyan);
  background: color-mix(in srgb, var(--cyan) 14%, transparent);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.pill-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.pill-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.32rem 0.5rem;
  border-radius: 7px;
  cursor: pointer;
}

.pill-switch button[aria-pressed="true"] {
  background: color-mix(in srgb, var(--cyan) 22%, transparent);
  color: var(--text);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-soft);
  cursor: pointer;
  font-size: 0.9rem;
}

.icon-btn:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.menu-toggle {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.72rem 1.25rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: #06080f;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(34, 211, 238, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 14px 36px rgba(34, 211, 238, 0.38);
  color: #06080f;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line-strong);
}

.btn-secondary:hover {
  border-color: var(--cyan);
  color: var(--text);
}

.btn-sm {
  padding: 0.48rem 0.85rem;
  font-size: 0.8rem;
  border-radius: 10px;
}

/* Eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.78rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--cyan) 38%, var(--line));
  background: color-mix(in srgb, var(--cyan) 10%, var(--surface));
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* =========================================================
   NEW UX: ASYMMETRIC SPLIT HERO + LIVE RADAR INSTRUMENT
   ========================================================= */
.hero-atlas {
  padding: clamp(2.2rem, 4.5vw, 3.8rem) 0 clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(1.8rem, 4vw, 3rem);
  align-items: start;
}

.hero-editorial h1 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(2rem, 3.9vw, 3.3rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0.95rem 0 1.05rem;
}

.hero-lead {
  color: var(--text-soft);
  font-size: clamp(0.98rem, 1.35vw, 1.12rem);
  max-width: 58ch;
  margin: 0 0 1.55rem;
}

.goal-picker {
  display: grid;
  gap: 0.55rem;
  margin: -0.4rem 0 1.4rem;
  max-width: 62ch;
}

.goal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.goal-chips .chip-btn {
  font-family: "Inter", sans-serif;
  font-size: 0.86rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
}

.goal-pitch {
  margin: 0.2rem 0 0;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.5;
}

.goal-pitch .goal-soon {
  display: inline-block;
  margin-right: 0.4rem;
  vertical-align: 0.1em;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.65rem;
}

.trust-ledger {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 1.15rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}

.trust-ledger span {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}

.trust-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  color: var(--cyan);
  font-weight: 700;
}

/* Interactive Mini-Radar Instrument Panel (Hero Right) */
.instrument-panel {
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--cyan) 38%, var(--line));
  background: var(--surface);
  box-shadow: var(--shadow-glow);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.instrument-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 1.15rem;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--line);
}

.instrument-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cyan);
}

.instrument-body {
  padding: 1.05rem 1.15rem 1.2rem;
}

.mini-controls {
  display: grid;
  gap: 0.6rem;
  padding-bottom: 0.95rem;
  margin-bottom: 0.95rem;
  border-bottom: 1px solid var(--line);
}

.mini-control-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.mini-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  min-width: 56px;
}

.chip-btn {
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--text-soft);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 120ms ease;
}

.chip-btn:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.chip-btn[aria-pressed="true"] {
  border-color: var(--cyan);
  background: color-mix(in srgb, var(--cyan) 18%, transparent);
  color: var(--text);
}

.mini-results-stack {
  display: grid;
  gap: 0.65rem;
}

.mini-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  padding: 0.36rem 0.65rem;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--cyan) 28%, var(--line));
  background: color-mix(in srgb, var(--cyan) 8%, var(--bg-elev));
  font-family: "JetBrains Mono", monospace;
  font-size: 0.69rem;
  font-weight: 600;
  color: var(--cyan);
}

.city-rank-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.55rem;
  padding: 0.12rem 0.36rem;
  border-radius: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.66rem;
  font-weight: 800;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--bg-subtle);
}

.mini-cohort-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.14rem 0.44rem;
  border-radius: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-soft);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--violet) 10%, transparent);
}

@keyframes miniScoreFlash {
  0% {
    color: var(--cyan);
    transform: scale(1.07);
  }
  100% {
    color: var(--text);
    transform: scale(1);
  }
}

.city-score.is-updated {
  animation: miniScoreFlash 340ms ease-out;
}

@keyframes miniCardSwap {
  0% {
    border-color: color-mix(in srgb, var(--cyan) 65%, var(--line));
    transform: translateY(-2px);
  }
  100% {
    border-color: var(--line);
    transform: translateY(0);
  }
}

.city-row-card.is-swapped {
  animation: miniCardSwap 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

.city-row-card {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  padding: 0.78rem 0.92rem;
  display: grid;
  gap: 0.38rem;
}

.city-row-card--locked {
  border-color: color-mix(in srgb, var(--amber) 55%, var(--line));
  background: linear-gradient(135deg, color-mix(in srgb, var(--amber) 12%, var(--bg-elev)), var(--bg-elev));
}

.city-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.city-row-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.city-score {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
}

.score-bar-track {
  height: 4px;
  width: 100%;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  width: var(--bar-w, 75%);
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  border-radius: 999px;
  transition: width 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.city-row-card--locked .score-bar-fill {
  background: linear-gradient(90deg, var(--amber), var(--rose));
}

.city-row-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.76rem;
  color: var(--text-soft);
}

.city-badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  padding: 0.16rem 0.48rem;
  border-radius: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid var(--line);
  color: var(--cyan);
  background: color-mix(in srgb, var(--cyan) 10%, transparent);
}

.city-badge--amber {
  border-color: color-mix(in srgb, var(--amber) 50%, transparent);
  color: var(--amber);
  background: color-mix(in srgb, var(--amber) 12%, transparent);
}

.city-badge--rose {
  border-color: color-mix(in srgb, var(--rose) 50%, transparent);
  color: var(--rose);
  background: color-mix(in srgb, var(--rose) 12%, transparent);
}

.blur-decoy {
  filter: blur(5px);
  user-select: none;
  opacity: 0.7;
}

/* =========================================================
   HORIZONTAL TELEMETRY LEDGER STRIP
   ========================================================= */
.ledger-strip {
  background: var(--bg-elev);
  border-bottom: 1px solid var(--line);
}

.ledger-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ledger-cell {
  padding: 1.35rem 1.25rem;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ledger-cell:last-child {
  border-right: 0;
}

.ledger-num {
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(1.85rem, 3vw, 2.45rem);
  font-weight: 800;
  line-height: 1.05;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ledger-label {
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.35;
}

/* =========================================================
   SECTIONS & HEADERS
   ========================================================= */
.section {
  padding: clamp(2.8rem, 5vw, 4.5rem) 0;
  border-bottom: 1px solid var(--line);
}

.section-head-split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.section-header {
  max-width: 70ch;
  margin-bottom: 2rem;
}

.section-header h2,
.section-head-split h2 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0.55rem 0 0.6rem;
}

.section-header p,
.section-head-split p {
  color: var(--text-soft);
  margin: 0;
}

/* =========================================================
   INTERACTIVE PRODUCT ATLAS DECK (Tabbed Switcher)
   ========================================================= */
.deck-shell {
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--cyan) 35%, var(--line));
  background: var(--surface);
  box-shadow: var(--shadow-glow);
  overflow: hidden;
}

.deck-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev);
}

.deck-tab {
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  padding: 1rem 1.25rem;
  text-align: left;
  cursor: pointer;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  transition: background 140ms ease, color 140ms ease;
}

.deck-tab:last-child {
  border-right: 0;
}

.deck-tab[aria-selected="true"] {
  background: color-mix(in srgb, var(--cyan) 10%, var(--surface));
  color: var(--text);
  box-shadow: inset 0 2px 0 var(--cyan);
}

.deck-tab-kicker {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cyan);
  font-weight: 700;
}

.deck-tab-title {
  font-weight: 600;
  font-size: 0.9rem;
}

.deck-stage {
  position: relative;
  background: #06080f;
  cursor: zoom-in;
}

.deck-stage img {
  width: 100%;
  max-height: 540px;
  object-fit: cover;
  object-position: top center;
}

.deck-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 1.25rem;
  border-top: 1px solid var(--line);
  background: var(--bg-elev);
  font-size: 0.78rem;
  color: var(--text-soft);
}

/* =========================================================
   CONTRAST BAND — THE TWO TRAPS WITH DATA DIAGRAMS
   ========================================================= */
.contrast-band {
  background: var(--bg-elev);
  padding: clamp(2.8rem, 5vw, 4.5rem) 0;
  border-bottom: 1px solid var(--line);
}

.contrast-band h2 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0.55rem 0 0;
}

.trap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
  margin-top: 1.85rem;
}

.trap-card {
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  padding: 1.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.trap-card h3 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 1.15rem;
  margin: 0;
}

.trap-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-soft);
}

.diagram-box {
  margin-top: auto;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--line);
  display: grid;
  gap: 0.55rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
}

.diag-row {
  display: grid;
  grid-template-columns: 96px 1fr 56px;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-soft);
}

.diag-bar-track {
  height: 7px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.diag-bar {
  height: 100%;
  border-radius: 999px;
}

/* =========================================================
   GRIDS & CARDS
   ========================================================= */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1.35rem;
}

.card h3 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 1.12rem;
  margin: 0 0 0.45rem;
}

.card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.pillar-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 180ms ease;
}

.pillar-card:hover {
  border-color: color-mix(in srgb, var(--cyan) 45%, var(--line));
}

.pillar-index {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
}

/* Pricing */
.pricing-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.pricing-card--featured {
  border-color: color-mix(in srgb, var(--amber) 60%, var(--line));
  box-shadow: 0 18px 46px rgba(251, 191, 36, 0.1);
}

.price-figure {
  font-family: "JetBrains Mono", monospace;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
}

.price-unit {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
  margin-left: 0.2rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.48rem;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.feature-list li::before {
  content: "✓ ";
  color: var(--emerald);
  font-weight: 700;
}

/* Subpage Header */
.page-hero {
  padding: clamp(2.4rem, 4.5vw, 3.6rem) 0 clamp(2rem, 3.5vw, 2.8rem);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 26ch;
  margin: 0.85rem 0 0.9rem;
}

.page-hero .hero-lead {
  margin-bottom: 0;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: 0.86rem;
}

table.data-table th,
table.data-table td {
  padding: 0.85rem 0.95rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

table.data-table th {
  background: var(--bg-elev);
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 700;
  color: var(--text);
}

table.data-table tr:last-child td {
  border-bottom: 0;
}

.state-yes {
  color: var(--emerald);
  font-weight: 700;
}

.state-no {
  color: var(--rose);
  font-weight: 700;
}

.state-part {
  color: var(--amber);
  font-weight: 700;
}

/* FAQ Accordion */
.faq-list {
  display: grid;
  gap: 0.75rem;
}

details.faq-item {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1rem 1.2rem;
}

details.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary::after {
  content: "+";
  font-family: "JetBrains Mono", monospace;
  color: var(--cyan);
  font-size: 1.15rem;
}

details.faq-item[open] summary::after {
  content: "−";
}

details.faq-item p {
  margin: 0.75rem 0 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

/* Waitlist Form */
.waitlist-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.waitlist-form input {
  flex: 1 1 240px;
  padding: 0.72rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--bg-elev);
  color: var(--text);
  font-size: 0.9rem;
}

.form-status {
  margin-top: 0.65rem;
  font-size: 0.84rem;
  color: var(--emerald);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(6, 8, 15, 0.9);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-height: 88vh;
  max-width: 94vw;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
}

/* Structured 2-Column LingoSide-Style Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-elev);
  padding: 2.75rem 0 2.25rem;
}

.footer-lingoside {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.85fr);
  gap: 2.5rem;
  align-items: start;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.footer-rows {
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1.35rem;
  font-size: 0.86rem;
  font-weight: 500;
}

.footer-row a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-row a:hover {
  color: var(--cyan);
  text-decoration: underline;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 0.65rem;
}

.footer-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--cyan) 42%, var(--line));
  background: color-mix(in srgb, var(--cyan) 8%, var(--surface));
  color: var(--cyan);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-founder-mail {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 0.25rem;
}

.footer-founder-mail:hover {
  color: var(--cyan);
}

.footer-analytics-btn {
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--text-soft);
  font: inherit;
  font-size: 0.84rem;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

.footer-analytics-btn:hover {
  color: var(--cyan);
}

.footer-company {
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--text-soft);
  margin-top: 0.2rem;
}

.footer-company strong {
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.footer-copyright {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

/* GDPR Consent Banner (Floating Glass Card) & Analytics Preferences Modal */
.consent-banner[hidden],
.analytics-modal[hidden] {
  display: none;
}

.consent-banner {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 115;
  width: min(440px, calc(100vw - 2rem));
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--cyan) 32%, var(--line-strong));
  background: color-mix(in srgb, var(--bg-elev) 92%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  color: var(--text);
  padding: 1.15rem 1.2rem 1.1rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.52), 0 0 0 1px rgba(34, 211, 238, 0.08);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.consent-banner::before {
  content: "";
  position: absolute;
  inset: 0 1.25rem auto 1.25rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--violet), transparent);
  opacity: 0.75;
  pointer-events: none;
}

.consent-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
}

html[data-theme="light"] .consent-banner {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 52px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(8, 145, 178, 0.12);
}

.consent-banner-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.consent-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--cyan);
}

.consent-region-pill {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.66rem;
  font-weight: 700;
  padding: 0.14rem 0.5rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--emerald) 45%, var(--line));
  background: color-mix(in srgb, var(--emerald) 12%, transparent);
  color: var(--emerald);
}

.consent-title {
  margin: 0 0 0.35rem;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
}

.consent-copy {
  margin: 0 0 0.9rem;
  font-size: 0.81rem;
  line-height: 1.5;
  color: var(--text-soft);
}

.consent-privacy-link {
  display: inline-block;
  margin-left: 0.3rem;
  font-weight: 600;
  color: var(--cyan);
  white-space: nowrap;
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.consent-btn {
  flex: 1 1 auto;
  justify-content: center;
}

.consent-link-btn {
  background: transparent;
  border: 0;
  padding: 0.42rem 0.45rem;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent-link-btn:hover {
  color: var(--cyan);
}

.analytics-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(6, 8, 15, 0.76);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.analytics-dialog {
  width: min(520px, 100%);
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--cyan) 28%, var(--line-strong));
  background: var(--bg-elev);
  color: var(--text);
  padding: 1.45rem;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.55);
}

.analytics-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.analytics-dialog h3 {
  margin: 0.25rem 0 0;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 1.12rem;
}

.analytics-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-soft);
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.analytics-close-btn:hover {
  border-color: var(--cyan);
  color: var(--text);
}

.analytics-subtitle {
  margin: 0 0 1rem;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text-soft);
}

.analytics-category-list {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}

.analytics-category-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.analytics-category-copy {
  min-width: 0;
}

.analytics-cat-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.25rem;
}

.analytics-cat-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

.analytics-cat-desc {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
}

.analytics-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}

.analytics-switch--locked {
  cursor: not-allowed;
  opacity: 0.72;
}

.analytics-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.analytics-switch-track {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg-subtle);
  transition: background-color 160ms ease, border-color 160ms ease;
}

.analytics-switch-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--text-soft);
  transition: transform 160ms ease, background-color 160ms ease;
}

.analytics-switch input:checked + .analytics-switch-track {
  background: color-mix(in srgb, var(--cyan) 28%, var(--bg-subtle));
  border-color: var(--cyan);
}

.analytics-switch input:checked + .analytics-switch-track::after {
  transform: translateX(20px);
  background: var(--cyan);
}

.analytics-switch input:focus-visible + .analytics-switch-track {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.analytics-status-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.58rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-subtle);
  font-size: 0.75rem;
  color: var(--text-soft);
  margin-bottom: 1rem;
}

.analytics-status-bar a {
  font-weight: 600;
  color: var(--cyan);
}

.analytics-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

@media (max-width: 640px) {
  .consent-banner {
    right: 0.75rem;
    left: 0.75rem;
    bottom: 0.75rem;
    width: auto;
    padding: 1rem;
  }
  .consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .consent-link-btn {
    grid-column: 1 / -1;
    text-align: center;
  }
  .analytics-actions {
    flex-direction: column;
  }
  .analytics-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .consent-banner {
    transition: none;
    transform: none;
  }
  .analytics-switch-track,
  .analytics-switch-track::after {
    transition: none;
  }
}

@media (max-width: 900px) {
  .footer-lingoside {
    grid-template-columns: 1fr;
    gap: 1.85rem;
  }
  .footer-right {
    align-items: flex-start;
    text-align: left;
  }
}

.footer-meta {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 1.5rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

/* Responsive */
@media (max-width: 1020px) {
  .hero-split {
    grid-template-columns: 1fr;
  }
  .ledger-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ledger-cell:nth-child(2) {
    border-right: 0;
  }
  .ledger-cell:nth-child(1),
  .ledger-cell:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 0.85rem 1.25rem 1.15rem;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--line);
    gap: 0.25rem;
  }
  .site-header[data-menu-open="true"] .nav-links {
    display: flex;
  }
}

@media (max-width: 640px) {
  .trap-grid,
  .grid-2,
  .grid-4,
  .deck-tabs,
  .trust-ledger,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .deck-tab {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .deck-tab:last-child {
    border-bottom: 0;
  }
  .brand-sub,
  .header-cta-desktop {
    display: none;
  }
}

/* Animated Dynamic UI + ClickHouse Architecture Strip */
@keyframes sonarPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.45); }
  50% { transform: scale(1.06); opacity: 1; box-shadow: 0 0 18px 4px rgba(34, 211, 238, 0.28); }
}

@keyframes arrowSlide {
  0%, 100% { transform: translateX(0); opacity: 0.55; }
  50% { transform: translateX(5px); opacity: 1; }
}

.dyn-pipeline {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
  padding: 1.25rem;
  border-radius: 18px;
  border: 1px solid rgba(34, 211, 238, 0.32);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(168, 85, 247, 0.08), rgba(10, 14, 26, 0.92));
}

.dyn-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.45rem;
  padding: 0.9rem 0.75rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(11, 16, 32, 0.85);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.dyn-node:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 10px 28px rgba(34, 211, 238, 0.16);
}

.dyn-node-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  font-size: 1.25rem;
  background: rgba(34, 211, 238, 0.14);
  border: 1px solid rgba(34, 211, 238, 0.38);
  animation: sonarPulse 3.2s ease-in-out infinite;
}

.dyn-node-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink);
}

.dyn-node-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--cyan);
}

.dyn-arrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--cyan);
  animation: arrowSlide 1.8s ease-in-out infinite;
}

.dyn-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  font-size: 1.15rem;
  margin-right: 0.55rem;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.3);
  vertical-align: middle;
}

@media (max-width: 900px) {
  .dyn-pipeline {
    grid-template-columns: 1fr;
  }
  .dyn-arrow {
    transform: rotate(90deg);
    text-align: center;
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dyn-node-icon,
  .dyn-arrow {
    animation: none;
  }
}

/* ==========================================================================
   Staging Authorization Login Gate (Zero-Flash Lock & Cyber Intelligence Modal)
   ========================================================================== */

html[data-auth-locked="true"] {
  overflow: hidden;
}

html[data-auth-locked="true"] .telemetry-bar,
html[data-auth-locked="true"] .site-header,
html[data-auth-locked="true"] main,
html[data-auth-locked="true"] .site-footer,
html[data-auth-locked="true"] .lightbox {
  visibility: hidden !important;
  pointer-events: none !important;
  user-select: none !important;
  opacity: 0 !important;
}

.sales-auth-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(6, 8, 15, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

html[data-theme="light"] .sales-auth-gate {
  background: rgba(241, 245, 249, 0.82);
}

.sales-auth-gate[hidden] {
  display: none !important;
}

.sales-auth-card {
  width: 100%;
  max-width: 430px;
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  background: var(--surface-solid);
  box-shadow: var(--shadow-glow);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
}

.sales-auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--rose));
}

.sales-auth-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.sales-auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
}

.sales-auth-brand img {
  width: 28px;
  height: 28px;
}

.sales-auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.32);
  margin-bottom: 0.75rem;
}

.sales-auth-title {
  margin: 0 0 0.4rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.45rem;
  line-height: 1.25;
  color: var(--text);
}

.sales-auth-subtitle {
  margin: 0 0 1.25rem;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.sales-auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.sales-auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sales-auth-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-soft);
  letter-spacing: 0.02em;
}

.sales-auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.sales-auth-input {
  width: 100%;
  padding: 0.72rem 0.9rem;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: var(--bg-elev);
  color: var(--text);
  font-family: "Inter", sans-serif;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.sales-auth-input--pass {
  padding-right: 4.5rem;
}

.sales-auth-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.18);
}

.sales-auth-pass-toggle {
  position: absolute;
  right: 0.45rem;
  padding: 0.3rem 0.55rem;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--bg-subtle);
  color: var(--text-soft);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}

.sales-auth-pass-toggle:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

.sales-auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-soft);
  cursor: pointer;
  user-select: none;
}

.sales-auth-remember input {
  accent-color: var(--cyan);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.sales-auth-error {
  padding: 0.62rem 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(251, 113, 133, 0.45);
  background: rgba(251, 113, 133, 0.12);
  color: var(--rose);
  font-size: 0.82rem;
  font-weight: 600;
}

.sales-auth-submit {
  width: 100%;
  justify-content: center;
  padding: 0.8rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.sales-auth-footer {
  margin-top: 1.1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  color: var(--muted);
  text-align: center;
}

.sales-auth-lock-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  padding: 0 0.6rem;
  width: auto;
}

@keyframes authShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-7px); }
  40%, 80% { transform: translateX(7px); }
}

.sales-auth-card--shake {
  animation: authShake 0.38s ease-in-out;
}

.sales-auth-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: var(--bg-subtle);
  color: var(--text-soft);
  font-size: 0.95rem;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.sales-auth-close:hover {
  color: var(--text);
  border-color: var(--cyan);
}

.btn-disabled-soon,
.btn-disabled-soon:hover {
  opacity: 0.45 !important;
  filter: grayscale(0.65);
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
  pointer-events: none;
}

.pricing-card--soon {
  opacity: 0.72;
}

/* ==========================================================================
   BLOG HUB & DEEP RESEARCH LONG-FORM ARTICLE + EMBEDDED DELUSION LAB
   ========================================================================== */

.blog-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.blog-featured-card {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.95fr);
  gap: 1.75rem;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--cyan) 42%, var(--line));
  background: linear-gradient(135deg, color-mix(in srgb, var(--cyan) 9%, var(--surface)), color-mix(in srgb, var(--violet) 8%, var(--surface)));
  box-shadow: var(--shadow-glow);
  margin-bottom: 2rem;
}

.blog-featured-card h2 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(1.45rem, 2.6vw, 2.1rem);
  line-height: 1.15;
  margin: 0.7rem 0 0.8rem;
}

.blog-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  color: var(--muted);
  margin: 0.85rem 0 1.25rem;
}

.blog-kpis-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  align-content: center;
}

.blog-kpi-mini {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  padding: 0.95rem 1rem;
}

.blog-kpi-mini strong {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
}

.blog-kpi-mini span {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.76rem;
  color: var(--text-soft);
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.blog-card[hidden] {
  display: none !important;
}

.article-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 2.25rem;
  align-items: start;
}

.article-toc {
  position: sticky;
  top: calc(var(--header-h) + 1.25rem);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1.15rem;
}

.article-toc-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan);
  margin-bottom: 0.75rem;
}

.article-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.48rem;
  font-size: 0.81rem;
}

.article-toc a {
  color: var(--text-soft);
  display: block;
  line-height: 1.35;
}

.article-toc a:hover {
  color: var(--cyan);
}

/* Backing panel: the fixed sonar field animates under the whole page, so long-form text gets a calm scrim */
.article-prose {
  --article-pad: clamp(0.9rem, 2.6vw, 1.75rem);
  max-width: calc(78ch + 2 * var(--article-pad));
  display: grid;
  gap: 2.25rem;
  padding: var(--article-pad);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  min-width: 0;
}

/* Long CTA labels must wrap on phones, or their nowrap width pushes the panel past the viewport */
.article-prose .btn {
  white-space: normal;
  text-align: center;
}

.article-prose > div {
  display: grid;
  gap: 2.25rem;
}

.article-figure {
  margin: 0.25rem 0 0;
}

.article-figure img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.article-figure figcaption {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

.article-act {
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
  display: grid;
  gap: 0.95rem;
}

.article-act h2 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(1.38rem, 2.5vw, 1.95rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0;
}

.article-act h3 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 1.12rem;
  margin: 0.35rem 0 0;
}

.article-act p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.72;
}

.article-act ul,
.article-act ol {
  margin: 0.2rem 0;
  padding-left: 1.25rem;
  color: var(--text-soft);
  display: grid;
  gap: 0.5rem;
  font-size: 0.96rem;
  line-height: 1.65;
}

.blog-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.blog-stat-card {
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  padding: 1rem 1.05rem;
  border-top: 3px solid var(--cyan);
}

.blog-stat-card--rose { border-top-color: var(--rose); }
.blog-stat-card--amber { border-top-color: var(--amber); }
.blog-stat-card--emerald { border-top-color: var(--emerald); }

.blog-stat-num {
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(1.45rem, 2.3vw, 1.9rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
}

.blog-stat-label {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--text-soft);
  line-height: 1.38;
}

.blog-pullquote {
  margin: 0.4rem 0;
  padding: 1.2rem 1.35rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--rose);
  background: linear-gradient(90deg, color-mix(in srgb, var(--rose) 10%, var(--surface)), var(--surface));
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(1.08rem, 1.7vw, 1.28rem);
  line-height: 1.42;
  color: var(--text);
  font-weight: 600;
}

.blog-callout {
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--bg-elev);
  padding: 1.15rem 1.25rem;
  border-left: 4px solid var(--cyan);
}

.blog-callout--roast { border-left-color: var(--rose); }
.blog-callout--trojan { border-left-color: var(--amber); }
.blog-callout--science { border-left-color: var(--emerald); }

.blog-callout strong {
  display: block;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 0.98rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.blog-waterfall {
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--bg-elev);
  padding: 1.2rem;
  display: grid;
  gap: 0.65rem;
}

.blog-wf-row {
  display: grid;
  grid-template-columns: minmax(190px, 270px) 1fr 72px 88px;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.82rem;
}

.blog-wf-head {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.45rem;
}

.blog-wf-caption {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.blog-wf-track {
  height: 10px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.blog-wf-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--rose));
}

.delusion-lab {
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--rose) 48%, var(--line));
  background: var(--surface);
  box-shadow: var(--shadow-glow);
  padding: clamp(1.1rem, 2.5vw, 1.65rem);
  display: grid;
  gap: 1.1rem;
}

.delusion-lab-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
}

.delusion-lab-title {
  margin: 0.5rem 0 0 !important;
  font-size: clamp(1.18rem, 2vw, 1.45rem) !important;
}

.delusion-controls {
  display: grid;
  gap: 0.65rem;
  padding: 0.85rem;
  border-radius: 14px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
}

.delusion-control-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
}

.delusion-btn-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.delusion-preset-btn {
  font-family: "Inter", sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.delusion-filter-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.65rem;
}

.delusion-filter-count {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--amber);
  text-transform: uppercase;
}

.delusion-tagline {
  margin: 0 !important;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem !important;
  color: var(--cyan) !important;
}

.delusion-capacity-line {
  margin: 0 !important;
  font-size: 0.82rem !important;
  font-weight: 600;
  color: var(--amber) !important;
}

.delusion-model-note {
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0;
}

.delusion-result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 1rem;
}

.delusion-score-panel,
.delusion-hall-panel {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  padding: 1rem;
  display: grid;
  gap: 0.8rem;
  align-content: start;
}

.delusion-tier-row,
.delusion-hall-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.delusion-big-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.delusion-metric-val {
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(1.05rem, 1.8vw, 1.32rem);
  font-weight: 800;
  color: var(--text);
}

.delusion-metric-lbl {
  font-size: 0.72rem;
  color: var(--muted);
}

.delusion-stage-title {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

.delusion-roast-copy {
  margin: 0 !important;
  font-size: 0.88rem !important;
  color: var(--text-soft) !important;
  line-height: 1.55 !important;
}

.delusion-killer-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.78rem 0.9rem;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--amber) 45%, var(--line));
  background: color-mix(in srgb, var(--amber) 8%, var(--surface));
}

.delusion-dots-grid {
  display: grid;
  grid-template-columns: repeat(25, minmax(0, 1fr));
  gap: 4px;
  padding: 0.7rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
}

.delusion-dot {
  aspect-ratio: 1;
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted) 26%, transparent);
}

.delusion-dot--alive {
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
}

.delusion-dot--rescued {
  background: var(--emerald);
  box-shadow: 0 0 7px var(--emerald);
}

.delusion-escape-box {
  display: grid;
  gap: 0.65rem;
  padding-top: 0.25rem;
}

.delusion-locked-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px dashed color-mix(in srgb, var(--amber) 55%, var(--line));
  background: color-mix(in srgb, var(--amber) 8%, var(--surface));
}

.blog-sources-list {
  display: grid;
  gap: 0.7rem;
  padding: 0 !important;
  list-style: none;
}

.blog-sources-list li {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  color: var(--text-soft);
}

@media (max-width: 1020px) {
  .blog-featured-card,
  .article-layout,
  .delusion-result-grid {
    grid-template-columns: 1fr;
  }
  .article-toc {
    position: static;
  }
  .blog-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .blog-stat-grid,
  .blog-kpis-col,
  .delusion-big-metrics {
    grid-template-columns: 1fr;
  }
  .blog-wf-row {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
  .delusion-dots-grid {
    grid-template-columns: repeat(20, minmax(0, 1fr));
  }
  /* Phones: run the article panel edge to edge so the text keeps its full width (pad mirrors .container) */
  .article-prose {
    --article-pad: clamp(1rem, 3vw, 1.75rem);
    margin-inline: calc(-1 * var(--article-pad));
    border-inline: 0;
    border-radius: 0;
  }
}
