/* ============================================================================
   GUARDSTACK — Design System
   "One platform. Every guard. Zero gaps."
   ============================================================================ */

:root {
  /* Brand palette */
  --bg-base: #0a0f1c;
  --bg-elev-1: #0f1626;
  --bg-elev-2: #111827;
  --bg-elev-3: #18223a;
  --border: #1f2937;
  --border-strong: #2a3651;
  --accent: #00d4ff;
  --accent-soft: rgba(0, 212, 255, 0.12);
  --accent-glow: rgba(0, 212, 255, 0.45);
  --success: #10b981;
  --success-soft: rgba(16, 185, 129, 0.14);
  --warn: #f59e0b;
  --warn-soft: rgba(245, 158, 11, 0.16);
  --danger: #ef4444;
  --danger-soft: rgba(239, 68, 68, 0.16);
  --text: #f9fafb;
  --text-dim: #9ca3af;
  --text-faint: #5f6c84;

  /* Typography */
  --font-display: "Sora", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-ui: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;

  /* Layout */
  --sidebar-w: 240px;
  --topbar-h: 56px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 0 1px var(--accent), 0 0 24px var(--accent-glow);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html, body {
  height: 100%;
  width: 100%;
  background: var(--bg-base);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
.app, .main { min-width: 0; }
.main > * { min-width: 0; }

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; background: none; border: none; outline: none; }
a { color: var(--accent); text-decoration: none; }
img { display: block; max-width: 100%; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #3a4768; }

/* ====== Background grid (login + ambient) ====== */
.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(0, 212, 255, 0.08), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.06), transparent 40%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ============================================================================
   TYPOGRAPHY
   ============================================================================ */
.display { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; }
.mono    { font-family: var(--font-mono); font-feature-settings: "tnum"; }
.dim     { color: var(--text-dim); }
.faint   { color: var(--text-faint); }
.cyan    { color: var(--accent); }
.green   { color: var(--success); }
.amber   { color: var(--warn); }
.red     { color: var(--danger); }

h1 { font-family: var(--font-display); font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
h3 { font-family: var(--font-display); font-size: 16px; font-weight: 600; }
.eyebrow { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); font-weight: 600; }

/* ============================================================================
   APP SHELL
   ============================================================================ */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  grid-template-rows: var(--topbar-h) 1fr;
  height: 100vh;
  overflow: hidden;
}

.sidebar {
  grid-row: 1 / span 2;
  background: var(--bg-elev-1);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 30;
}

.brand {
  height: var(--topbar-h);
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}
.brand img { height: 26px; width: auto; }
.brand .name { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.02em; font-size: 16px; }
.brand .name span { color: var(--accent); }

.nav { padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.nav .section { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); padding: 14px 10px 6px; }
.nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-weight: 500;
  font-size: 13.5px;
  transition: background 160ms var(--ease), color 160ms var(--ease);
  position: relative;
}
.nav a:hover { background: var(--bg-elev-2); color: var(--text); }
.nav a.active {
  color: var(--text);
  background: linear-gradient(90deg, var(--accent-soft) 0%, transparent 100%);
}
.nav a.active::before {
  content: "";
  position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 12px var(--accent-glow);
}
.nav a svg { width: 16px; height: 16px; flex-shrink: 0; }

.sidebar-foot {
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.sidebar-foot .avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--success));
  display: grid; place-items: center;
  color: var(--bg-base); font-weight: 700;
}

.topbar {
  background: var(--bg-base);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  z-index: 20;
}
.topbar .crumbs { display: flex; align-items: center; gap: 10px; color: var(--text-dim); font-size: 13px; }
.topbar .crumbs strong { color: var(--text); font-weight: 600; }
.topbar .right { display: flex; align-items: center; gap: 14px; }

.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse 1.8s var(--ease) infinite;
  display: inline-block;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.alert-bell { position: relative; padding: 8px; border-radius: var(--radius-sm); color: var(--text-dim); }
.alert-bell:hover { background: var(--bg-elev-2); color: var(--text); }
.alert-bell .badge {
  position: absolute; top: 4px; right: 4px;
  background: var(--danger); color: white;
  font-size: 9px; font-weight: 700;
  padding: 2px 5px; border-radius: 8px;
  min-width: 16px; text-align: center;
}

/* ============================================================================
   MAIN CONTENT
   ============================================================================ */
.main {
  overflow-y: auto;
  padding: 28px 32px 48px;
  position: relative;
}
.page-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 22px; gap: 16px; flex-wrap: wrap;
}
.page-header .sub { color: var(--text-dim); margin-top: 4px; }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 22px; }
.tabs button {
  padding: 10px 16px;
  color: var(--text-dim);
  font-weight: 500;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 160ms, border-color 160ms;
}
.tabs button:hover { color: var(--text); }
.tabs button.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ============================================================================
   CARDS / KPI
   ============================================================================ */
.card {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.card h3 { margin-bottom: 4px; }
.card .body { margin-top: 12px; }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.kpi {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  position: relative;
  overflow: hidden;
  transition: border-color 200ms, transform 200ms;
}
.kpi:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.kpi .label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); font-weight: 600; }
.kpi .value { font-family: var(--font-mono); font-size: 30px; font-weight: 700; margin-top: 6px; letter-spacing: -0.02em; }
.kpi .delta { font-size: 12px; margin-top: 4px; color: var(--text-dim); }
.kpi.alert .value { color: var(--danger); }
.kpi.warn  .value { color: var(--warn); }
.kpi.good  .value { color: var(--success); }
.kpi.cyan  .value { color: var(--accent); }
.kpi::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.35;
}
.kpi.alert::after { background: linear-gradient(90deg, transparent, var(--danger), transparent); }
.kpi.warn::after  { background: linear-gradient(90deg, transparent, var(--warn), transparent); }
.kpi.good::after  { background: linear-gradient(90deg, transparent, var(--success), transparent); }

/* ============================================================================
   BADGES / CHIPS
   ============================================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--bg-elev-3);
  color: var(--text-dim);
  letter-spacing: 0.04em;
}
.badge.cyan { background: var(--accent-soft); color: var(--accent); }
.badge.green { background: var(--success-soft); color: var(--success); }
.badge.amber { background: var(--warn-soft); color: var(--warn); }
.badge.red { background: var(--danger-soft); color: var(--danger); }
.badge.dot::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}

/* ============================================================================
   BUTTONS
   ============================================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-elev-2);
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  border: 1px solid var(--border);
  transition: all 180ms var(--ease);
}
.btn:hover { background: var(--bg-elev-3); border-color: var(--border-strong); }
.btn.primary {
  background: linear-gradient(135deg, var(--accent), #00aacc);
  color: var(--bg-base);
  border-color: transparent;
  box-shadow: 0 0 0 1px var(--accent), 0 0 24px var(--accent-glow);
}
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; }
.btn.green { background: var(--success); color: var(--bg-base); border-color: transparent; box-shadow: 0 0 24px rgba(16, 185, 129, 0.35); }
.btn.green:hover { filter: brightness(1.08); }
.btn.danger { color: var(--danger); border-color: var(--danger-soft); }
.btn svg { width: 14px; height: 14px; }

/* ============================================================================
   TABLES
   ============================================================================ */
.table-wrap {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
table { width: 100%; border-collapse: collapse; }
thead th {
  text-align: left;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-faint); font-weight: 600;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev-2);
}
tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  vertical-align: middle;
}
tbody tr { transition: background 160ms; cursor: pointer; }
tbody tr:hover { background: var(--bg-elev-2); }
tbody tr.flag-row { background: rgba(245, 158, 11, 0.06); }
tbody tr.flag-row:hover { background: rgba(245, 158, 11, 0.12); }
tbody tr.danger-row { background: rgba(239, 68, 68, 0.06); }
tbody tr:last-child td { border-bottom: none; }

/* ============================================================================
   LIVE FEED + MAP
   ============================================================================ */
.feed {
  max-height: 540px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 2px;
  padding: 4px;
}
.feed-item {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  transition: background 160ms;
  align-items: center;
}
.feed-item:hover { background: var(--bg-elev-2); }
.feed-item .ico {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px;
  background: var(--bg-elev-3);
}
.feed-item .ico.cyan { background: var(--accent-soft); color: var(--accent); }
.feed-item .ico.green { background: var(--success-soft); color: var(--success); }
.feed-item .ico.amber { background: var(--warn-soft); color: var(--warn); }
.feed-item .ico.red { background: var(--danger-soft); color: var(--danger); }
.feed-item .meta { font-size: 11px; color: var(--text-faint); font-family: var(--font-mono); white-space: nowrap; }
.feed-item .text { color: var(--text); }
.feed-item .text strong { font-weight: 600; }
.feed-item.new { animation: feed-in 600ms var(--ease); }
@keyframes feed-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.map-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse at 30% 40%, rgba(0, 212, 255, 0.06), transparent 50%),
    radial-gradient(ellipse at 70% 70%, rgba(16, 185, 129, 0.05), transparent 50%),
    linear-gradient(180deg, #0b1220, #0a0f1c);
  height: 480px;
}
.map-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
}
.map-marker {
  position: absolute;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-mono);
  background: var(--accent-soft);
  color: var(--accent);
  border: 1.5px solid var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: breathe 3.4s ease-in-out infinite;
  cursor: pointer;
  transform: translate(-50%, -50%);
}
.map-marker.amber { background: var(--warn-soft); color: var(--warn); border-color: var(--warn); }
.map-marker.red { background: var(--danger-soft); color: var(--danger); border-color: var(--danger); }
@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); transform: translate(-50%, -50%) scale(1); }
  50%      { box-shadow: 0 0 0 8px transparent; transform: translate(-50%, -50%) scale(1.05); }
}
.map-marker .tip {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  background: var(--bg-elev-3);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-family: var(--font-ui); font-weight: 500;
  font-size: 11px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity 160ms;
}
.map-marker:hover .tip { opacity: 1; }

.map-legend {
  position: absolute; bottom: 14px; left: 14px;
  background: rgba(10, 15, 28, 0.88);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  gap: 14px;
  font-size: 11px;
  color: var(--text-dim);
  backdrop-filter: blur(6px);
}
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.map-legend .sw { width: 10px; height: 10px; border-radius: 50%; }

/* ============================================================================
   GRID LAYOUTS
   ============================================================================ */
.split-3-2 { display: grid; grid-template-columns: 3fr 2fr; gap: 18px; }
.split-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; }
.split-1-1 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ============================================================================
   FORMS
   ============================================================================ */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); font-weight: 600; }
.input, .select, .textarea {
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  transition: border-color 160ms;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); }
.textarea { resize: vertical; min-height: 80px; }

/* ============================================================================
   DETAIL PANEL (right slide-in)
   ============================================================================ */
.detail-panel {
  position: fixed; top: var(--topbar-h); right: 0; bottom: 0;
  width: 460px; max-width: 100vw;
  background: var(--bg-elev-1);
  border-left: 1px solid var(--border);
  z-index: 25;
  transform: translateX(100%);
  transition: transform 360ms var(--ease);
  overflow-y: auto;
  box-shadow: -16px 0 40px rgba(0, 0, 0, 0.4);
}
.detail-panel.open { transform: translateX(0); }
.detail-panel .panel-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-faint);
  cursor: pointer;
  z-index: 5;
  transition: all 160ms var(--ease);
}
.detail-panel .panel-close:hover {
  background: rgba(255, 90, 90, 0.12);
  border-color: rgba(255, 90, 90, 0.4);
  color: #ff8a8a;
  transform: rotate(90deg);
}
.detail-panel .panel-close svg { width: 16px; height: 16px; }
.detail-panel header {
  position: sticky; top: 0;
  background: var(--bg-elev-1);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  display: flex; justify-content: space-between; align-items: center;
  z-index: 1;
}
.detail-panel .body { padding: 20px; }
.detail-section { margin-bottom: 22px; }
.detail-section h4 { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 10px; font-weight: 600; }

/* ============================================================================
   AI COMMAND CENTER
   ============================================================================ */
.ai-shell { display: grid; grid-template-rows: auto 1fr auto; height: calc(100vh - var(--topbar-h) - 56px); gap: 18px; }
.ai-header {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 22px;
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative; overflow: hidden;
}
.ai-header::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at right, rgba(0, 212, 255, 0.1), transparent 60%);
  pointer-events: none;
}
.ai-header .glyph {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), #0099bb);
  color: var(--bg-base);
  font-weight: 700;
  box-shadow: 0 0 24px var(--accent-glow);
  animation: pulse-glyph 3s ease-in-out infinite;
}
@keyframes pulse-glyph {
  0%, 100% { box-shadow: 0 0 24px var(--accent-glow); }
  50%      { box-shadow: 0 0 36px var(--accent-glow); }
}

.ai-suggestions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.ai-suggestion {
  text-align: left;
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-dim);
  transition: all 160ms;
}
.ai-suggestion:hover {
  border-color: var(--accent);
  color: var(--text);
  background: var(--bg-elev-2);
  box-shadow: inset 0 0 0 1px var(--accent-soft);
}

.ai-stream {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.65;
}
.ai-msg { margin-bottom: 18px; }
.ai-msg.user .who { color: var(--accent); }
.ai-msg.bot .who { color: var(--success); }
.ai-msg .who { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; margin-bottom: 6px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ai-msg .who svg { width: 14px; height: 14px; flex-shrink: 0; }
.ai-msg .content { color: var(--text); }
.ai-msg .content strong { color: var(--accent); font-weight: 600; }
.ai-msg .content ul { padding-left: 20px; margin: 6px 0; }
.ai-msg .content code { font-family: var(--font-mono); font-size: 13px; background: var(--bg-elev-3); padding: 1px 6px; border-radius: 4px; }
.ai-typing { display: inline-flex; gap: 4px; }
.ai-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: typing 1.2s infinite; }
.ai-typing span:nth-child(2) { animation-delay: 0.15s; }
.ai-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

.ai-input-row {
  display: flex; gap: 10px;
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
}
.ai-input-row input { flex: 1; padding: 10px 12px; background: transparent; }
.ai-input-row input:focus { outline: none; }

/* ============================================================================
   LOGIN PAGE
   ============================================================================ */
.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}
.login-card {
  width: 100%; max-width: 420px;
  background: rgba(15, 22, 38, 0.85);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 212, 255, 0.05);
  position: relative;
}
.login-card::before {
  content: ""; position: absolute; top: -1px; left: 24px; right: 24px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.login-logo {
  display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 8px;
}
.login-logo img { height: 36px; }
.login-card h1 {
  text-align: center; font-size: 26px; margin-bottom: 4px;
}
.login-card .tag { text-align: center; color: var(--accent); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; margin-bottom: 28px; }

.hero-pains {
  position: relative; z-index: 1;
  max-width: 1100px; margin: 80px auto 60px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.pain-card {
  background: rgba(15, 22, 38, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.pain-card .icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  display: grid; place-items: center;
  margin-bottom: 14px;
}
.pain-card .icon svg { width: 18px; height: 18px; color: var(--accent); }
.pain-card h3 { margin-bottom: 8px; }
.pain-card .versus { font-size: 12px; color: var(--text-faint); margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }

/* ============================================================================
   PHONE FRAME
   ============================================================================ */
.phone-frame {
  width: 290px;
  height: 600px;
  background: #050810;
  border: 8px solid #1a2236;
  border-radius: 38px;
  padding: 18px 14px;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--accent-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}
.phone-frame::before {
  content: "";
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 18px;
  background: #050810;
  border-radius: 0 0 14px 14px;
}
.phone-status { font-family: var(--font-mono); font-size: 9px; color: var(--text-dim); display: flex; justify-content: space-between; padding: 14px 10px 4px; }
.phone-screen { flex: 1; padding: 4px; overflow: hidden; }
.phone-card {
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 8px;
  font-size: 11.5px;
}
.phone-card.alert { border-color: var(--warn); background: var(--warn-soft); }
.phone-btn-big {
  background: linear-gradient(135deg, var(--success), #079c6a);
  color: var(--bg-base);
  font-weight: 700;
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  margin-top: auto;
  font-size: 13px;
  letter-spacing: 0.04em;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

/* ============================================================================
   SCHEDULE GRID
   ============================================================================ */
.schedule-grid {
  display: grid;
  grid-template-columns: 200px repeat(7, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.schedule-grid > div { background: var(--bg-elev-1); padding: 10px 12px; min-height: 48px; }
.schedule-grid .head {
  background: var(--bg-elev-2);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-faint); font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.schedule-grid .site-cell {
  background: var(--bg-elev-2);
  font-size: 12px; font-weight: 600;
  display: flex; align-items: center;
  color: var(--text);
}
.schedule-grid .shift {
  background: var(--bg-elev-1);
  position: relative;
  padding: 6px 8px;
  font-size: 11px;
  cursor: grab;
  border-left: 2px solid var(--accent);
  transition: background 160ms;
}
.schedule-grid .shift.warn { border-left-color: var(--warn); }
.schedule-grid .shift.danger { border-left-color: var(--danger); }
.schedule-grid .shift:hover { background: var(--bg-elev-3); }
.schedule-grid .shift .name { font-weight: 600; }
.schedule-grid .shift .time { color: var(--text-dim); font-family: var(--font-mono); font-size: 10px; }
.schedule-grid .shift.empty { background: transparent; border-left: none; }

/* ============================================================================
   CERT TIMELINE
   ============================================================================ */
.cert-row {
  display: grid;
  grid-template-columns: 200px 1fr 90px;
  gap: 14px;
  padding: 10px 0;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.cert-row:last-child { border-bottom: none; }
.cert-bar { height: 6px; border-radius: 3px; background: var(--bg-elev-3); overflow: hidden; position: relative; }
.cert-bar .fill { height: 100%; background: var(--success); }
.cert-bar.warn .fill { background: var(--warn); }
.cert-bar.danger .fill { background: var(--danger); }

/* ============================================================================
   TOAST / NOTIFICATIONS
   ============================================================================ */
.toast-stack { position: fixed; bottom: 24px; right: 24px; display: flex; flex-direction: column; gap: 10px; z-index: 100; }
.toast {
  background: var(--bg-elev-2);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  min-width: 280px;
  font-size: 13px;
  animation: toast-in 360ms var(--ease);
}
.toast.success { border-left-color: var(--success); }
.toast.warn { border-left-color: var(--warn); }
.toast.danger { border-left-color: var(--danger); }
@keyframes toast-in {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ============================================================================
   ENTRY ANIMATIONS
   ============================================================================ */
.fade-in { animation: fade-in 320ms var(--ease); }
.slide-up { animation: slide-up 360ms var(--ease) both; }
.stagger > * { animation: slide-up 360ms var(--ease) both; }
.stagger > *:nth-child(1) { animation-delay: 0.04s; }
.stagger > *:nth-child(2) { animation-delay: 0.08s; }
.stagger > *:nth-child(3) { animation-delay: 0.12s; }
.stagger > *:nth-child(4) { animation-delay: 0.16s; }
.stagger > *:nth-child(5) { animation-delay: 0.20s; }
.stagger > *:nth-child(6) { animation-delay: 0.24s; }
.stagger > *:nth-child(7) { animation-delay: 0.28s; }
.stagger > *:nth-child(8) { animation-delay: 0.32s; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================================
   UTILITY
   ============================================================================ */
.flex { display: flex; }
.grid { display: grid; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-5 { gap: 20px; } .gap-6 { gap: 24px; }
.between { justify-content: space-between; }
.center { justify-content: center; align-items: center; }
.middle { align-items: center; }
.col { flex-direction: column; }
.wrap { flex-wrap: wrap; }
.full { width: 100%; }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-5 { margin-top: 20px; } .mt-6 { margin-top: 24px; }
.mb-1 { margin-bottom: 4px; } .mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; } .mb-5 { margin-bottom: 20px; } .mb-6 { margin-bottom: 24px; }
.fs-11 { font-size: 11px; } .fs-12 { font-size: 12px; } .fs-13 { font-size: 13px; } .fs-14 { font-size: 14px; } .fs-16 { font-size: 16px; } .fs-18 { font-size: 18px; } .fs-22 { font-size: 22px; }
.text-right { text-align: right; }

/* ============================================================================
   GROWTH ENGINE
   ============================================================================ */
@keyframes shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-6px); }
  40%, 60% { transform: translateX(6px); }
}
.opp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.opp-card {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  cursor: pointer;
  position: relative;
  transition: all 220ms var(--ease);
  display: flex; flex-direction: column;
  min-height: 230px;
}
.opp-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-soft);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--accent-soft);
}
.opp-card.hot {
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.15), 0 0 30px rgba(239, 68, 68, 0.08);
}
.opp-card.hot::before {
  content: "🔥 HOT";
  position: absolute; top: -8px; right: 14px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 800;
  letter-spacing: 0.14em;
  background: linear-gradient(135deg, var(--danger), #b91c1c);
  color: white;
  padding: 3px 10px;
  border-radius: 999px;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.5);
}
.opp-card .opp-head {
  display: flex; justify-content: space-between; gap: 12px; align-items: flex-start;
  margin-bottom: 10px;
}
.opp-card .opp-cat {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10px;
  font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 4px;
  background: var(--bg-elev-3); color: var(--text-dim);
}
.opp-card .opp-cat.firewatch { background: var(--danger-soft); color: var(--danger); }
.opp-card .opp-cat.rfp { background: var(--accent-soft); color: var(--accent); }
.opp-card .opp-cat.renewal { background: var(--warn-soft); color: var(--warn); }
.opp-card .opp-cat.vacant { background: rgba(124, 58, 237, 0.2); color: #a78bfa; }
.opp-card .opp-cat.construction { background: rgba(245, 158, 11, 0.18); color: var(--warn); }
.opp-card .opp-cat.event { background: var(--success-soft); color: var(--success); }
.opp-card .opp-cat.intent { background: rgba(0, 212, 255, 0.18); color: var(--accent); }
.opp-card h3 { font-size: 16px; font-weight: 700; line-height: 1.3; margin: 4px 0 8px; letter-spacing: -0.01em; }
.opp-card .opp-meta { color: var(--text-dim); font-size: 12px; margin-bottom: 10px; }
.opp-card .opp-signal {
  background: var(--bg-elev-2); padding: 10px 12px; border-radius: 8px;
  font-size: 12.5px; line-height: 1.55; color: var(--text-dim);
  border-left: 2px solid var(--accent-soft);
  margin-bottom: 12px;
}
.opp-card .opp-signal strong { color: var(--text); }
.opp-card .opp-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border);
}
.opp-card .opp-value { font-family: var(--font-mono); color: var(--success); font-weight: 700; font-size: 13px; }
.opp-card .opp-score-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-weight: 800; font-size: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg-elev-3);
}
.opp-card .opp-score-pill.s90 { background: rgba(239, 68, 68, 0.2); color: var(--danger); box-shadow: 0 0 12px rgba(239, 68, 68, 0.25); }
.opp-card .opp-score-pill.s75 { background: var(--warn-soft); color: var(--warn); }
.opp-card .opp-score-pill.s60 { background: var(--accent-soft); color: var(--accent); }
.opp-card .opp-score-pill.s40 { background: var(--bg-elev-3); color: var(--text-dim); }

.opp-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 10px; }
.opp-filter {
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px; font-weight: 600;
  color: var(--text-dim);
  transition: all 160ms;
}
.opp-filter:hover { color: var(--text); border-color: var(--border-strong); }
.opp-filter.active { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.opp-filter .count {
  display: inline-block;
  margin-left: 6px;
  font-family: var(--font-mono); font-size: 10px;
  background: var(--bg-elev-3); color: var(--text-faint);
  padding: 1px 6px; border-radius: 4px;
}

/* Outreach drawer styles */
.outreach-block {
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.outreach-block .label-line {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-faint); font-weight: 700;
  margin-bottom: 8px;
}
.outreach-block .body {
  font-size: 13px; line-height: 1.65;
  white-space: pre-wrap;
  font-family: var(--font-mono);
}
.outreach-block .controls { display: flex; gap: 6px; margin-top: 10px; }

.opp-source-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-elev-3);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 160ms;
}
.opp-source-pill:hover { color: var(--accent); }

@media (max-width: 720px) {
  .opp-grid { grid-template-columns: 1fr; }
}

/* ============================================================================
   POLISH — Awe layer
   ============================================================================ */

/* Hero pulse widget on dashboard — cinematic */
.pulse-hero {
  position: relative;
  background:
    radial-gradient(ellipse 700px 280px at 0% 50%, rgba(0, 212, 255, 0.14), transparent 60%),
    radial-gradient(ellipse 500px 280px at 100% 50%, rgba(16, 185, 129, 0.08), transparent 60%),
    linear-gradient(135deg, var(--bg-elev-1), #0d1626);
  border: 1px solid var(--accent-soft);
  border-radius: 16px;
  padding: 32px 40px;
  margin-bottom: 26px;
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 36px;
  align-items: center;
  overflow: hidden;
  animation: hero-in 700ms var(--ease) both;
}
.pulse-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, black, transparent);
  -webkit-mask-image: linear-gradient(180deg, black, transparent);
  pointer-events: none;
}
.pulse-hero .gauge-large { width: 180px; height: 180px; position: relative; z-index: 1; }
.pulse-hero .gauge-large::before {
  content: ""; position: absolute; inset: -16px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 60%);
  opacity: 0.35;
  animation: hero-glow 3.6s ease-in-out infinite;
  z-index: 0;
}
@keyframes hero-glow {
  0%, 100% { opacity: 0.25; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.06); }
}
.pulse-hero .gauge-large .label { font-size: 56px; z-index: 2; }
.pulse-hero .pulse-meta { position: relative; z-index: 1; }
.pulse-hero .greeting {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--success); font-weight: 700;
  margin-bottom: 12px;
}
.pulse-hero .greeting::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse 1.8s ease-in-out infinite;
}
.pulse-hero h2 {
  font-family: var(--font-display); font-size: 32px;
  font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 8px;
}
.pulse-hero h2 .accent { color: var(--accent); }
.pulse-hero .summary { color: var(--text-dim); font-size: 14.5px; line-height: 1.6; max-width: 560px; }
.pulse-hero .actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.pulse-hero .right-stat {
  position: relative; z-index: 1;
  text-align: right;
  padding-left: 28px; border-left: 1px solid var(--border);
}
.pulse-hero .right-stat .label { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); font-weight: 700; margin-bottom: 6px; }
.pulse-hero .right-stat .v { font-family: var(--font-mono); font-size: 28px; font-weight: 800; color: var(--accent); }
.pulse-hero .right-stat .delta { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.pulse-hero .right-stat + .right-stat { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); border-left: none; padding-left: 28px; }
.pulse-hero .stats-stack { display: flex; flex-direction: column; gap: 18px; padding-left: 28px; border-left: 1px solid var(--border); position: relative; z-index: 1; }
.pulse-hero .stats-stack .stat { text-align: right; }
.pulse-hero .stats-stack .stat .label { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); font-weight: 700; }
.pulse-hero .stats-stack .stat .v { font-family: var(--font-mono); font-size: 24px; font-weight: 800; color: var(--accent); margin-top: 4px; }

@keyframes hero-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero scan-line entrance for dashboard */
.scan-line {
  position: fixed; left: var(--sidebar-w, 240px); right: 0; top: var(--topbar-h, 56px);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 24px var(--accent-glow);
  z-index: 200;
  pointer-events: none;
  animation: scan-sweep 1100ms ease-out forwards;
}
@keyframes scan-sweep {
  0% { transform: translateY(0); opacity: 0; }
  20% { opacity: 1; }
  90% { opacity: 0.5; }
  100% { transform: translateY(80vh); opacity: 0; }
}

/* Live clock in topbar */
.live-clock {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 13px;
  color: var(--text-dim);
  padding: 6px 12px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.live-clock .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  animation: pulse-soft 2.4s ease-in-out infinite;
}
.live-clock .num { color: var(--accent); font-weight: 700; }
@keyframes pulse-soft { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* Online dot on sidebar avatar */
.sidebar-foot .avatar {
  position: relative;
}
.sidebar-foot .avatar::after {
  content: "";
  position: absolute;
  bottom: -1px; right: -1px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--success);
  border: 2px solid var(--bg-elev-1);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

/* KPI hover lift + glow */
.kpi {
  cursor: default;
  transition: border-color 220ms var(--ease), transform 220ms var(--ease), box-shadow 220ms var(--ease);
}
.kpi:hover {
  transform: translateY(-2px);
  border-color: var(--accent-soft);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--accent-soft);
}
.kpi.cyan .value { text-shadow: 0 0 20px rgba(0, 212, 255, 0.35); }
.kpi.alert .value { text-shadow: 0 0 20px rgba(239, 68, 68, 0.35); }
.kpi.good .value { text-shadow: 0 0 20px rgba(16, 185, 129, 0.35); }
.kpi.warn .value { text-shadow: 0 0 20px rgba(245, 158, 11, 0.35); }

/* Ranked list — gold/silver/bronze for margins page */
.rank-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  font-family: var(--font-mono); font-weight: 800; font-size: 12px;
  background: var(--bg-elev-3);
  color: var(--text-dim);
  flex-shrink: 0;
}
.rank-badge.r1 {
  background: linear-gradient(135deg, #ffd75c, #c89400);
  color: #1a0e00; font-weight: 800;
  box-shadow: 0 0 16px rgba(255, 215, 92, 0.4);
}
.rank-badge.r2 {
  background: linear-gradient(135deg, #d8e0e8, #8b95a0);
  color: #1a1f24;
}
.rank-badge.r3 {
  background: linear-gradient(135deg, #d4854a, #8a4f1f);
  color: white;
}

.margin-card { transition: all 200ms var(--ease); }
.margin-card.top-rank {
  border-color: rgba(255, 215, 92, 0.4);
  box-shadow: 0 0 0 1px rgba(255, 215, 92, 0.2), 0 0 30px rgba(255, 215, 92, 0.08);
}
.margin-card.top-rank::before {
  content: "★ TOP MARGIN";
  position: absolute; top: -8px; right: 14px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 800;
  letter-spacing: 0.12em;
  background: linear-gradient(135deg, #ffd75c, #c89400);
  color: #1a0e00;
  padding: 3px 10px;
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(255, 215, 92, 0.4);
}
.margin-card { position: relative; }

/* Dispatch ETA pulse */
.dispatch-card .eta { position: relative; }
.dispatch-card .eta::after {
  content: ""; position: absolute; inset: -4px -8px;
  border-radius: 6px;
  border: 1px solid var(--accent);
  opacity: 0;
  animation: eta-pulse 2.4s ease-in-out infinite;
}
.dispatch-card .candidate-row:first-of-type .eta::after { animation-delay: 0s; opacity: 1; }
@keyframes eta-pulse {
  0% { opacity: 0; transform: scale(0.9); }
  50% { opacity: 0.5; transform: scale(1.05); }
  100% { opacity: 0; transform: scale(1.15); }
}
.dispatch-card .head h4 { display: flex; align-items: center; gap: 10px; }
.dispatch-card .live-indicator {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10px;
  font-weight: 800; letter-spacing: 0.14em;
  padding: 3px 8px; border-radius: 999px;
  background: var(--danger-soft); color: var(--danger);
}
.dispatch-card .live-indicator::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 8px var(--danger);
  animation: pulse-soft 1.4s ease-in-out infinite;
}

/* Trend bars on Pulse page — gradient glow + today highlight */
.pulse-trend {
  display: flex; align-items: flex-end; height: 130px; gap: 8px; margin: 14px 0;
}
.pulse-trend .bar {
  flex: 1; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.pulse-trend .bar .col {
  width: 100%;
  background: linear-gradient(180deg, var(--accent), rgba(0, 212, 255, 0.15));
  border-radius: 4px 4px 0 0;
  transition: all 600ms var(--ease);
  position: relative;
  margin-top: auto;
}
.pulse-trend .bar.today .col {
  background: linear-gradient(180deg, #ffffff, var(--accent));
  box-shadow: 0 0 16px var(--accent-glow), inset 0 0 0 1px var(--accent);
}
.pulse-trend .bar.today .col::after {
  content: "";
  position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  animation: pulse-soft 1.6s ease-in-out infinite;
}
.pulse-trend .bar .day { font-size: 11px; color: var(--text-faint); margin-top: 8px; font-weight: 600; }
.pulse-trend .bar .num { font-family: var(--font-mono); font-size: 12px; color: var(--accent); margin-top: 2px; font-weight: 700; }
.pulse-trend .bar.today .num { color: white; text-shadow: 0 0 12px var(--accent-glow); }

/* Welcome toast on first dashboard view */
.welcome-toast {
  position: fixed; top: 76px; right: 28px; z-index: 90;
  background: linear-gradient(135deg, var(--bg-elev-1), rgba(0, 212, 255, 0.06));
  border: 1px solid var(--accent-soft);
  border-radius: 14px;
  padding: 18px 22px;
  min-width: 320px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 212, 255, 0.12);
  display: flex; align-items: center; gap: 14px;
  animation: welcome-in 600ms var(--ease) both, welcome-out 600ms var(--ease) 5500ms forwards;
}
.welcome-toast .av {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--success));
  display: grid; place-items: center;
  color: var(--bg-base); font-weight: 800;
  flex-shrink: 0;
}
.welcome-toast .av::after {
  content: ""; position: absolute; bottom: 0; right: 0;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--success);
  border: 2px solid var(--bg-elev-1);
}
.welcome-toast .av { position: relative; }
.welcome-toast .greeting-line {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-faint); font-weight: 700;
}
.welcome-toast strong { color: var(--accent); display: block; font-size: 16px; margin-top: 2px; }
.welcome-toast .sub { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
@keyframes welcome-in {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes welcome-out {
  to { opacity: 0; transform: translateX(40px); }
}

/* Brand logo subtle hover glow */
.brand img { transition: filter 220ms; }
.brand:hover img { filter: drop-shadow(0 0 12px var(--accent-glow)); }

/* Activity feed live indicator pulse */
.feed-item.new {
  border-left: 2px solid var(--accent);
  padding-left: 10px !important;
  background: linear-gradient(90deg, var(--accent-soft), transparent 60%);
}

/* Map markers — bigger glow, more "alive" */
.map-marker {
  box-shadow: 0 0 0 0 var(--accent-glow), 0 0 24px var(--accent-glow);
}
.map-marker::before {
  content: ""; position: absolute; inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0.4;
  animation: marker-ring 2.8s ease-out infinite;
}
.map-marker.amber::before { border-color: var(--warn); }
@keyframes marker-ring {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Score eyebrow in pulse-meta */
.section-eyebrow.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px rgba(16, 185, 129, 0.6); animation: pulse-soft 1.6s infinite; }

/* Vitals row hover */
.vitals-row { transition: background 160ms; cursor: pointer; }
.vitals-row:not(.head):hover { background: var(--bg-elev-2); }
.vitals-heat .cell { transition: transform 200ms; }
.vitals-heat .cell:hover { transform: scaleY(1.4); }

/* Risk pill hover */
.risk-pill-shift { transition: transform 160ms; }
.risk-pill-shift:hover { transform: scale(1.06); }

/* Smooth route transitions */
.main { transition: opacity 220ms ease-out; }
.main.fading-out { opacity: 0; }

@media (max-width: 980px) {
  .pulse-hero { grid-template-columns: 1fr; gap: 20px; }
  .pulse-hero .stats-stack { padding-left: 0; border-left: none; flex-direction: row; gap: 14px; }
  .pulse-hero h2 { font-size: 24px; }
}

/* ============================================================================
   PLATFORM-PLUS COMPONENTS
   ============================================================================ */
/* Universal SVG safety: ALL inline icon SVGs get 14px; .gauge + .spark keep their sizes */
.main svg:not(.spark) { width: 14px; height: 14px; vertical-align: middle; display: inline-block; flex-shrink: 0; }
.cmd-modal svg { width: 14px; height: 14px; vertical-align: middle; display: inline-block; flex-shrink: 0; }
.detail-panel svg { width: 14px; height: 14px; vertical-align: middle; display: inline-block; flex-shrink: 0; }
.gateway svg, .cine-overlay svg, .pain-card svg, .feat-card svg { width: 14px; height: 14px; vertical-align: middle; display: inline-block; flex-shrink: 0; }
.gauge { width: 92px; height: 92px; }
.gauge.gauge-large { width: 180px; height: 180px; }
.gauge svg { width: 100% !important; height: 100% !important; }
.spark { width: 90px !important; height: 28px !important; }
.btn svg { width: 14px !important; height: 14px !important; }
.icon-wrap svg { width: 22px !important; height: 22px !important; }
.pain-card .icon svg { width: 18px !important; height: 18px !important; }
.feat-card .icon-wrap svg { width: 22px !important; height: 22px !important; }
.alert-bell svg, .nav a svg { width: 16px !important; height: 16px !important; }
.gateway .pulse-ring img { height: 48px; }
.dispatch-card .ai-name .ic { display: inline-flex; align-items: center; vertical-align: middle; }

/* Risk gauge / circular progress */
.gauge-wrap { display: flex; align-items: center; gap: 18px; }
.gauge {
  position: relative;
  width: 92px; height: 92px;
  flex-shrink: 0;
}
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge .ring-bg { fill: none; stroke: var(--bg-elev-3); stroke-width: 8; }
.gauge .ring-fill { fill: none; stroke: var(--accent); stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset 1s var(--ease); }
.gauge .ring-fill.green { stroke: var(--success); }
.gauge .ring-fill.amber { stroke: var(--warn); }
.gauge .ring-fill.red { stroke: var(--danger); }
.gauge .label {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 800;
  font-size: 22px; letter-spacing: -0.02em;
}

.gauge-large { width: 180px; height: 180px; }
.gauge-large .label { font-size: 44px; }

/* Sparkline */
.spark {
  display: inline-block;
  width: 90px; height: 28px;
  vertical-align: middle;
}
.spark path { fill: none; stroke-width: 1.6; }
.spark .area { fill: var(--accent); opacity: 0.12; }
.spark .line { stroke: var(--accent); }
.spark.green .line { stroke: var(--success); }
.spark.green .area { fill: var(--success); }
.spark.red .line { stroke: var(--danger); }
.spark.red .area { fill: var(--danger); }
.spark .dot { fill: currentColor; }

/* Pulse ring (compliance score, etc) */
.pulse-score {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  padding: 28px;
  background: linear-gradient(135deg, var(--bg-elev-1), rgba(0, 212, 255, 0.04));
  border: 1px solid var(--accent-soft);
  border-radius: var(--radius-lg);
  position: relative; overflow: hidden;
}
.pulse-score::after {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.15), transparent 70%);
  pointer-events: none;
}
.pulse-score .pulse-meta { position: relative; z-index: 1; }
.pulse-score h2 { font-size: 22px; margin-bottom: 4px; }
.pulse-score .breakdown {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px; margin-top: 14px;
}
.pulse-score .b-cell {
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
}
.pulse-score .b-cell .b-label { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); font-weight: 700; }
.pulse-score .b-cell .b-val { font-family: var(--font-mono); font-size: 18px; font-weight: 800; margin-top: 4px; }

/* Margin row card */
.margin-card {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 100px 1fr;
  gap: 18px;
  align-items: center;
  transition: border-color 200ms;
}
.margin-card:hover { border-color: var(--border-strong); }
.margin-card .name { font-weight: 600; }
.margin-card .name .sub { font-size: 11px; color: var(--text-faint); margin-top: 2px; }
.margin-card .num { font-family: var(--font-mono); font-weight: 700; }
.margin-card .num.cyan { color: var(--accent); }
.margin-card .num.green { color: var(--success); }
.margin-card .num.red { color: var(--danger); }

/* Dispatch incident card */
.dispatch-card {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-left: 3px solid var(--danger);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 14px;
}
.dispatch-card.severity-3 { border-left-color: var(--danger); }
.dispatch-card.severity-2 { border-left-color: var(--warn); }
.dispatch-card.severity-1 { border-left-color: var(--accent); }
.dispatch-card .head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.dispatch-card .meta { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); letter-spacing: 0.1em; font-weight: 700; }
.dispatch-card h4 { font-size: 16px; margin-top: 4px; }
.dispatch-card .ai-rec {
  margin-top: 12px;
  padding: 14px;
  background: var(--accent-soft);
  border-radius: 8px;
  border: 1px solid rgba(0, 212, 255, 0.2);
}
.dispatch-card .ai-rec .ai-name { font-weight: 700; color: var(--accent); margin-bottom: 6px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.dispatch-card .candidate-row {
  display: grid; grid-template-columns: 32px 1fr auto auto;
  gap: 12px; align-items: center;
  padding: 10px 0; border-bottom: 1px dashed var(--border);
}
.dispatch-card .candidate-row:last-child { border-bottom: none; }
.dispatch-card .candidate-row .av {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--success));
  color: var(--bg-base); font-weight: 700;
  display: grid; place-items: center; font-size: 12px;
}
.dispatch-card .eta {
  font-family: var(--font-mono); font-weight: 700;
  color: var(--accent); font-size: 13px;
}

/* Vitals heatmap */
.vitals-row {
  display: grid;
  grid-template-columns: 200px 1fr 90px 90px 90px;
  gap: 14px;
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.vitals-row.head {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-faint); font-weight: 700;
  background: var(--bg-elev-2);
}
.vitals-heat {
  display: grid; grid-template-columns: repeat(14, 1fr);
  gap: 2px; height: 24px;
}
.vitals-heat .cell {
  border-radius: 3px;
  background: var(--bg-elev-3);
}
.vitals-heat .cell.l1 { background: rgba(16, 185, 129, 0.3); }
.vitals-heat .cell.l2 { background: rgba(16, 185, 129, 0.6); }
.vitals-heat .cell.l3 { background: var(--success); }
.vitals-heat .cell.l4 { background: var(--warn); }
.vitals-heat .cell.l5 { background: var(--danger); box-shadow: 0 0 8px var(--danger); }

.vitals-score {
  font-family: var(--font-mono); font-size: 18px; font-weight: 800;
  text-align: center;
}
.vitals-score.green { color: var(--success); }
.vitals-score.amber { color: var(--warn); }
.vitals-score.red { color: var(--danger); }

/* Risk score pill */
.risk-pill-shift {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-weight: 700;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--bg-elev-3);
}
.risk-pill-shift::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
}
.risk-pill-shift.low { color: var(--success); background: var(--success-soft); }
.risk-pill-shift.low::before { background: var(--success); }
.risk-pill-shift.med { color: var(--warn); background: var(--warn-soft); }
.risk-pill-shift.med::before { background: var(--warn); }
.risk-pill-shift.high { color: var(--danger); background: var(--danger-soft); }
.risk-pill-shift.high::before { background: var(--danger); box-shadow: 0 0 6px var(--danger); }

/* Client portal preview */
.cp-preview {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--bg-elev-1), #0d1424);
  border: 1px solid var(--border-strong);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}
.cp-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: var(--bg-elev-2);
  border-bottom: 1px solid var(--border);
}
.cp-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--bg-elev-3); }
.cp-bar .url { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); margin-left: 10px; flex: 1; padding: 4px 12px; background: var(--bg-elev-3); border-radius: 4px; }
.cp-content { padding: 28px; }

.magic-link-row {
  display: grid; grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 12px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 10px;
}
.magic-link-row code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  background: transparent;
  padding: 8px;
  word-break: break-all;
}

/* Command Palette */
.cmd-overlay {
  position: fixed; inset: 0;
  background: rgba(5, 8, 16, 0.7);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 14vh;
  animation: cmd-fade 220ms ease-out;
}
@keyframes cmd-fade { from { opacity: 0; } to { opacity: 1; } }
.cmd-modal {
  width: 100%; max-width: 680px;
  background: var(--bg-elev-1);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 212, 255, 0.1);
  overflow: hidden;
  animation: cmd-pop 280ms var(--ease);
}
@keyframes cmd-pop {
  from { transform: translateY(-12px) scale(0.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.cmd-input-row {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.cmd-input-row .icon {
  width: 22px; height: 22px;
  color: var(--accent);
}
.cmd-input-row input {
  flex: 1;
  font-size: 17px; font-family: var(--font-ui);
  color: var(--text);
  background: transparent;
  border: none; outline: none;
}
.cmd-input-row .mic-btn {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--bg-elev-2);
  display: grid; place-items: center;
  cursor: pointer;
  transition: all 160ms;
  color: var(--text-dim);
}
.cmd-input-row .mic-btn:hover { background: var(--accent-soft); color: var(--accent); }
.cmd-input-row .mic-btn.recording {
  background: var(--danger-soft); color: var(--danger);
  animation: pulse 1.6s ease-in-out infinite;
}
.cmd-input-row .kbd {
  font-family: var(--font-mono); font-size: 11px;
  padding: 3px 8px;
  background: var(--bg-elev-3);
  border-radius: 4px;
  color: var(--text-faint);
}
.cmd-suggestions {
  max-height: 380px; overflow-y: auto;
  padding: 8px;
}
.cmd-section-label {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-faint); font-weight: 700;
  padding: 10px 12px 6px;
}
.cmd-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: background 120ms;
}
.cmd-item:hover, .cmd-item.active { background: var(--accent-soft); }
.cmd-item .ico {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  color: var(--text-dim);
}
.cmd-item:hover .ico, .cmd-item.active .ico { color: var(--accent); }
.cmd-item .label { flex: 1; }
.cmd-item .hint { font-size: 11px; color: var(--text-faint); font-family: var(--font-mono); }
.cmd-result {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.6;
  background: var(--bg-elev-2);
  max-height: 320px;
  overflow-y: auto;
}
.cmd-result strong { color: var(--accent); font-weight: 600; }
.cmd-result code { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }

/* SLA scorecard */
.sla-doc {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  max-width: 760px;
  margin: 24px auto;
  position: relative;
}
.sla-doc .doc-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  border-bottom: 1px solid var(--border);
  padding-bottom: 22px; margin-bottom: 22px;
}
.sla-doc .seal {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 800; font-size: 18px;
}
.sla-doc .seal img { height: 26px; }
.sla-doc h2 { margin-bottom: 6px; font-size: 26px; }
.sla-doc .doc-meta { font-size: 12px; color: var(--text-dim); font-family: var(--font-mono); }
.sla-doc .sla-grade {
  display: flex; align-items: center; gap: 16px;
  padding: 24px;
  background: linear-gradient(135deg, var(--bg-elev-2), rgba(16, 185, 129, 0.05));
  border: 1px solid var(--success-soft);
  border-radius: 12px;
  margin: 16px 0 24px;
}
.sla-doc .sla-grade .gauge { width: 80px; height: 80px; }
.sla-doc .sla-grade .gauge .label { font-size: 22px; }

/* Tour engine (NFC checkpoints on Sites detail) */
.tour-stops {
  display: grid; gap: 8px;
  margin-top: 12px;
}
.tour-stop {
  display: grid; grid-template-columns: auto 1fr auto auto;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  align-items: center;
}
.tour-stop .stop-num {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 800; font-size: 11px;
}
.tour-stop .stop-name { font-size: 13px; font-weight: 600; }
.tour-stop .stop-meta { font-size: 11px; color: var(--text-faint); font-family: var(--font-mono); }
.tour-stop .scan-status {
  font-family: var(--font-mono); font-size: 10px;
  padding: 2px 7px; border-radius: 4px; font-weight: 700;
}
.tour-stop .scan-status.scanned { background: var(--success-soft); color: var(--success); }
.tour-stop .scan-status.pending { background: var(--warn-soft); color: var(--warn); }
.tour-stop .scan-status.missed { background: var(--danger-soft); color: var(--danger); }

/* SOS button mockup */
.sos-button {
  background: linear-gradient(135deg, var(--danger), #b91c1c);
  color: white;
  font-weight: 800;
  letter-spacing: 0.14em;
  padding: 18px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.5), 0 8px 20px rgba(0, 0, 0, 0.3);
  width: 100%;
}

/* Section heading w/ decorator */
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 6px;
  display: inline-flex; align-items: center; gap: 8px;
}
.section-eyebrow::before {
  content: ""; width: 24px; height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

/* ============================================================================
   CINEMATIC LAUNCH SEQUENCE
   ============================================================================ */
.cine-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: #050810;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.cine-overlay::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 1000px 700px at 50% 50%, rgba(0, 212, 255, 0.08), transparent 60%),
    radial-gradient(ellipse 600px 400px at 20% 80%, rgba(16, 185, 129, 0.05), transparent 60%);
}
.cine-overlay::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 1100px 800px at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 1100px 800px at 50% 50%, black, transparent);
}
.cine-stage {
  position: relative; z-index: 2;
  width: 100%; max-width: 1100px;
  text-align: center; padding: 0 32px;
}
.cine-skip {
  position: fixed; top: 24px; right: 28px; z-index: 3;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-faint); font-weight: 600;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 200ms;
}
.cine-skip:hover { color: var(--text); border-color: var(--border-strong); }

.cine-prelude {
  display: flex; flex-direction: column; align-items: center;
  animation: cine-fade 600ms ease-out both;
}
.cine-eyebrow {
  font-family: var(--font-mono); font-size: 13px;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--accent); font-weight: 700;
  margin-bottom: 26px;
  display: flex; align-items: center; gap: 12px;
}
.cine-eyebrow .line { width: 40px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }

.cine-quote {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text);
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}
.cine-quote .em { color: var(--accent); }

.cine-attribution {
  margin-top: 36px;
  color: var(--text-dim); font-size: 14px;
  letter-spacing: 0.04em;
}

.cine-checkbox {
  display: inline-flex; align-items: center; gap: 16px;
  margin-top: 36px;
  padding: 14px 26px;
  background: var(--success-soft);
  border: 1px solid var(--success);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 14px; letter-spacing: 0.08em; font-weight: 700; text-transform: uppercase;
  color: var(--success);
  opacity: 0;
  animation: cine-check 600ms ease-out 1500ms both;
}
.cine-checkbox .ck {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--success); color: var(--bg-base);
  display: grid; place-items: center;
  font-size: 14px; font-weight: 800;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.5);
  animation: cine-pop 400ms ease-out 1700ms both;
}
@keyframes cine-pop {
  0% { transform: scale(0); }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
@keyframes cine-check {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes cine-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes cine-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Integrations cascade scene */
.cine-int-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: 36px;
}
.cine-int {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 14px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--text);
  opacity: 0;
  animation: cine-int-in 500ms ease-out both;
}
.cine-int.green { border-color: var(--success); background: var(--success-soft); }
.cine-int .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 12px var(--success); }
@keyframes cine-int-in {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

/* Competitor takedown scene */
.cine-comp-stack {
  display: flex; flex-direction: column; gap: 12px;
  margin-top: 36px; max-width: 520px;
  margin-left: auto; margin-right: auto;
}
.cine-comp-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 22px;
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  position: relative;
  opacity: 0;
  animation: cine-fade-up 380ms ease-out both;
}
.cine-comp-row.struck {
  color: var(--text-faint);
  border-color: var(--danger-soft);
  background: rgba(239, 68, 68, 0.04);
}
.cine-comp-row.struck::after {
  content: "";
  position: absolute; left: 12px; right: 12px; top: 50%;
  height: 2px;
  background: var(--danger);
  box-shadow: 0 0 8px var(--danger);
  transform: scaleX(0); transform-origin: left;
  animation: strike 360ms ease-out forwards;
}
.cine-comp-row .x-mark {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--danger-soft); color: var(--danger);
  display: grid; place-items: center;
  font-weight: 800;
  opacity: 0;
  animation: cine-fade 200ms ease-out 360ms forwards;
}
@keyframes strike {
  to { transform: scaleX(1); }
}

/* Final reveal */
.cine-reveal {
  display: flex; flex-direction: column; align-items: center;
  animation: cine-fade 500ms ease-out both;
}
.cine-reveal .logo-mark {
  width: 110px; height: 110px;
  margin-bottom: 28px;
  filter: drop-shadow(0 0 30px var(--accent-glow));
  animation: cine-pop 700ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.cine-reveal h1 {
  font-family: var(--font-display);
  font-size: 84px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}
.cine-reveal h1 span { color: var(--accent); }
.cine-reveal .tag {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  animation: cine-fade-up 600ms ease-out 600ms both;
}

/* GATEWAY — first dark page */
.gateway {
  min-height: calc(100vh - 68px);
  display: flex; align-items: center; justify-content: center;
  padding: 60px 32px 80px;
  position: relative;
  overflow: hidden;
}
.gateway::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 900px 600px at 50% 30%, rgba(0, 212, 255, 0.16), transparent 60%),
    radial-gradient(ellipse 700px 400px at 70% 80%, rgba(16, 185, 129, 0.06), transparent 60%);
}
.gateway::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, transparent, black 25%, black 75%, transparent);
}
.gateway-inner {
  position: relative; z-index: 2;
  text-align: center; max-width: 920px;
}
.gateway .pulse-ring {
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.28), transparent 70%);
  display: grid; place-items: center;
  margin: 0 auto 36px;
  position: relative;
}
.gateway .pulse-ring::before,
.gateway .pulse-ring::after {
  content: ""; position: absolute;
  width: 280px; height: 280px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  animation: gw-ring 3s ease-out infinite;
}
.gateway .pulse-ring::after { animation-delay: 1.5s; }
@keyframes gw-ring {
  0% { transform: scale(0.75); opacity: 1; }
  100% { transform: scale(1.55); opacity: 0; }
}
.gateway .pulse-ring img {
  height: 200px;
  position: relative;
  z-index: 1;
  animation: beacon-pulse-hero 1.8s ease-in-out infinite;
}
@keyframes beacon-pulse-hero {
  0%   { filter: drop-shadow(0 0 12px rgba(0, 212, 255, 0.4)) drop-shadow(0 0 24px rgba(0, 212, 255, 0.25)); }
  18%  { filter: drop-shadow(0 0 50px rgba(0, 212, 255, 1)) drop-shadow(0 0 100px rgba(0, 212, 255, 0.85)) drop-shadow(0 0 160px rgba(0, 212, 255, 0.5)); }
  35%  { filter: drop-shadow(0 0 18px rgba(0, 212, 255, 0.5)) drop-shadow(0 0 36px rgba(0, 212, 255, 0.3)); }
  52%  { filter: drop-shadow(0 0 60px rgba(0, 212, 255, 1)) drop-shadow(0 0 120px rgba(0, 212, 255, 0.9)) drop-shadow(0 0 180px rgba(0, 212, 255, 0.55)); }
  70%  { filter: drop-shadow(0 0 16px rgba(0, 212, 255, 0.5)) drop-shadow(0 0 28px rgba(0, 212, 255, 0.3)); }
  100% { filter: drop-shadow(0 0 12px rgba(0, 212, 255, 0.4)) drop-shadow(0 0 24px rgba(0, 212, 255, 0.25)); }
}
.gateway .powered-by {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 24px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
  animation: cine-fade-up 700ms ease-out 800ms both;
}
.gateway .powered-by .twinflame {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.16em;
}
.gateway .powered-by .sep { color: var(--text-faint); margin: 0 4px; }
.gateway .powered-by .builder {
  color: var(--success);
  font-weight: 800;
  letter-spacing: 0.16em;
}
.gateway .powered-by::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}
.gateway h1 {
  font-family: var(--font-display);
  font-size: 72px; font-weight: 800;
  letter-spacing: -0.035em; line-height: 1.02;
  animation: cine-fade-up 700ms ease-out 200ms both;
}
.gateway h1 span { color: var(--accent); }
.gateway .lede {
  margin-top: 22px;
  font-size: 19px; line-height: 1.6;
  color: var(--text-dim);
  max-width: 600px; margin-left: auto; margin-right: auto;
  animation: cine-fade-up 700ms ease-out 400ms both;
}
.gateway .cta-row {
  display: flex; justify-content: center; gap: 14px;
  margin-top: 40px; flex-wrap: wrap;
  animation: cine-fade-up 700ms ease-out 600ms both;
}
.gateway .btn-launch {
  background: linear-gradient(135deg, var(--accent), #0099bb);
  color: var(--bg-base);
  padding: 18px 36px;
  border-radius: 12px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 16px; letter-spacing: 0.02em;
  border: none; cursor: pointer;
  box-shadow: 0 0 0 1px var(--accent), 0 0 40px var(--accent-glow), 0 18px 40px rgba(0, 0, 0, 0.4);
  display: inline-flex; align-items: center; gap: 10px;
  transition: all 300ms var(--ease);
  position: relative;
}
.gateway .btn-launch:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 0 1px var(--accent), 0 0 60px var(--accent-glow), 0 24px 50px rgba(0, 0, 0, 0.5);
}
.gateway .btn-launch::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  border-radius: 12px;
  opacity: 0;
  transition: opacity 300ms;
}
.gateway .btn-launch:hover::before { opacity: 1; }
.gateway .btn-secondary {
  padding: 18px 28px;
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: 12px;
  font-weight: 600; font-size: 14.5px;
  cursor: pointer;
  transition: all 200ms;
}
.gateway .btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.gateway .scroll-hint {
  margin-top: 64px;
  color: var(--text-faint); font-size: 12px;
  letter-spacing: 0.16em; text-transform: uppercase;
  animation: cine-fade 700ms ease-out 1100ms both, scroll-bob 2.4s ease-in-out infinite 1500ms;
}
@keyframes scroll-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ============================================================================
   MARKETING SITE
   ============================================================================ */
body.marketing-mode { overflow-x: hidden; }
.mkt-shell { min-height: 100vh; position: relative; z-index: 1; }

.mkt-nav {
  position: fixed; top: 0; left: 0; right: 0; height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  background: rgba(10, 15, 28, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}
.mkt-nav .brand { display: flex; align-items: center; gap: 14px; height: auto; padding: 0; border: none; }
.mkt-nav .brand img {
  height: 34px;
  width: auto;
  animation: beacon-pulse 1.6s ease-in-out infinite;
  filter: drop-shadow(0 0 0 var(--accent));
}
.mkt-nav .brand .name { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: 0.01em; }
.mkt-nav .brand .name span { color: var(--accent); }

/* Police beacon pulse — sharp on/off cyan glow */
@keyframes beacon-pulse {
  0%   { filter: drop-shadow(0 0 0px rgba(0, 212, 255, 0.0)) drop-shadow(0 0 0px rgba(0, 212, 255, 0.0)); }
  15%  { filter: drop-shadow(0 0 14px rgba(0, 212, 255, 0.95)) drop-shadow(0 0 28px rgba(0, 212, 255, 0.7)); }
  30%  { filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.45)) drop-shadow(0 0 12px rgba(0, 212, 255, 0.3)); }
  45%  { filter: drop-shadow(0 0 16px rgba(0, 212, 255, 1)) drop-shadow(0 0 36px rgba(0, 212, 255, 0.8)); }
  60%  { filter: drop-shadow(0 0 4px rgba(0, 212, 255, 0.25)) drop-shadow(0 0 8px rgba(0, 212, 255, 0.15)); }
  100% { filter: drop-shadow(0 0 0px rgba(0, 212, 255, 0.0)) drop-shadow(0 0 0px rgba(0, 212, 255, 0.0)); }
}
.mkt-nav-links { display: flex; gap: 4px; align-items: center; }
.mkt-nav-links a {
  color: var(--text-dim); font-weight: 500; font-size: 14.5px;
  padding: 6px 16px; border-radius: 6px;
  transition: color 160ms, background 160ms, text-decoration-color 160ms;
}
.mkt-nav-links a:hover { color: var(--text); background: transparent; text-decoration: underline; text-decoration-color: rgba(0,212,255,0.4); text-underline-offset: 3px; }
.mkt-nav-links a.active { color: var(--accent); }
.mkt-nav-cta { display: flex; gap: 10px; align-items: center; }

.mkt-shell { padding-top: 68px !important; }
.mkt-section { padding: 100px 32px; max-width: 1280px; margin: 0 auto; }
.mkt-section.tight { padding: 70px 32px; }
.mkt-section h1 { font-family: var(--font-display); font-size: 56px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; }
.mkt-section h2 { font-family: var(--font-display); font-size: 38px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.mkt-section h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: -0.005em; }
.mkt-section .lede { font-size: 19px; color: var(--text-dim); line-height: 1.6; max-width: 680px; }
.mkt-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700;
  margin-bottom: 18px;
}
.mkt-eyebrow.green { background: var(--success-soft); color: var(--success); }

/* HERO */
.mkt-hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 100px 32px 60px;
  overflow: hidden;
}
.mkt-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 800px 600px at 20% 30%, rgba(0, 212, 255, 0.12), transparent 60%),
    radial-gradient(ellipse 700px 500px at 80% 70%, rgba(16, 185, 129, 0.07), transparent 60%);
  pointer-events: none;
}
.mkt-hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: linear-gradient(180deg, transparent, black 30%, black 70%, transparent);
}
.mkt-hero-inner {
  max-width: 1280px; width: 100%; margin: 0 auto;
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.mkt-hero h1 {
  font-size: 64px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.04;
  font-family: var(--font-display);
}
.mkt-hero h1 .underline { color: var(--accent); position: relative; }
.mkt-hero .lede { font-size: 21px; color: var(--text-dim); line-height: 1.55; margin-top: 22px; max-width: 560px; }
.mkt-hero .ctas { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.mkt-hero .btn { padding: 14px 24px; font-size: 14.5px; }
.mkt-hero .social-proof {
  margin-top: 56px; padding-top: 28px;
  border-top: 1px solid var(--border);
}
.mkt-hero .social-proof .label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); font-weight: 600; }
.mkt-hero .logos {
  display: flex; gap: 26px; flex-wrap: wrap; margin-top: 14px; align-items: center;
}
.mkt-hero .logos .logo {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-dim); font-weight: 600; font-size: 13px;
  opacity: 0.65;
}
.mkt-hero .logos .logo svg { width: 22px; height: 22px; }
.mkt-hero .logos .logo:hover { opacity: 1; }

.mkt-dash-preview {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--bg-elev-1);
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 212, 255, 0.08), 0 0 60px rgba(0, 212, 255, 0.18);
  overflow: hidden;
}
.mkt-dash-preview .chrome {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: var(--bg-elev-2);
  border-bottom: 1px solid var(--border);
}
.mkt-dash-preview .chrome .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--bg-elev-3); }
.mkt-dash-preview .chrome .url {
  margin-left: 12px; font-family: var(--font-mono); font-size: 11px;
  color: var(--text-faint);
  background: var(--bg-elev-3);
  padding: 4px 10px; border-radius: 4px; flex: 1; max-width: 360px;
}
.mkt-dash-preview .preview-body { padding: 22px; }
.mkt-dash-mini-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.mkt-dash-mini-kpi {
  background: var(--bg-elev-2); border: 1px solid var(--border);
  padding: 10px 12px; border-radius: 8px;
}
.mkt-dash-mini-kpi .label { font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); font-weight: 700; }
.mkt-dash-mini-kpi .value { font-family: var(--font-mono); font-size: 22px; font-weight: 700; margin-top: 4px; }
.mkt-dash-mini-kpi.cyan .value { color: var(--accent); }
.mkt-dash-mini-kpi.alert .value { color: var(--danger); }
.mkt-dash-mini-kpi.warn .value { color: var(--warn); }
.mkt-dash-mini-kpi.green .value { color: var(--success); }

.mkt-dash-mini-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 10px; border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.mkt-dash-mini-row:last-child { border-bottom: none; }

/* PAIN section */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 50px; }
.pain-card {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: border-color 200ms, transform 200ms;
}
.pain-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.pain-card .icon-wrap {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--danger-soft);
  display: grid; place-items: center;
  color: var(--danger);
  margin-bottom: 18px;
}
.pain-card .icon-wrap svg { width: 20px; height: 20px; }
.pain-card .pain-name {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--danger); font-weight: 700; margin-bottom: 8px;
}
.pain-card h3 { margin-bottom: 12px; font-size: 19px; }
.pain-card p { color: var(--text-dim); line-height: 1.6; font-size: 14.5px; }

.pain-callout {
  margin-top: 50px;
  background: linear-gradient(135deg, var(--bg-elev-1), rgba(0, 212, 255, 0.05));
  border: 1px solid var(--accent-soft);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  display: flex; align-items: center; gap: 22px;
  position: relative; overflow: hidden;
}
.pain-callout::after {
  content: ""; position: absolute; right: -100px; top: -100px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.15), transparent 70%);
  pointer-events: none;
}
.pain-callout .number {
  font-family: var(--font-mono); font-size: 64px; font-weight: 800;
  color: var(--accent); line-height: 1; letter-spacing: -0.04em;
  position: relative; z-index: 1;
}
.pain-callout .text { font-size: 18px; line-height: 1.5; max-width: 620px; position: relative; z-index: 1; }

/* FEATURE GRID */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 50px; }
.feat-card {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: all 200ms var(--ease);
  position: relative; overflow: hidden;
}
.feat-card:hover {
  border-color: var(--accent-soft);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--accent-soft);
}
.feat-card .icon-wrap {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #0099bb);
  color: var(--bg-base);
  display: grid; place-items: center;
  margin-bottom: 18px;
  box-shadow: 0 0 24px var(--accent-glow);
}
.feat-card .icon-wrap svg { width: 22px; height: 22px; }
.feat-card .num { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); letter-spacing: 0.14em; font-weight: 700; }
.feat-card h3 { margin: 8px 0 12px; font-size: 19px; line-height: 1.25; }
.feat-card p { color: var(--text-dim); line-height: 1.6; font-size: 14px; }

/* HOW IT WORKS */
.steps {
  display: grid; grid-template-columns: 1fr; gap: 0;
  position: relative; max-width: 880px; margin: 60px auto 0;
}
.step {
  display: grid; grid-template-columns: 56px 1fr; gap: 28px;
  padding: 24px 0; align-items: flex-start;
  position: relative;
}
.step::before {
  content: ""; position: absolute; left: 27px; top: 60px; bottom: -8px; width: 2px;
  background: linear-gradient(180deg, var(--accent), transparent);
  opacity: 0.4;
}
.step:last-child::before { display: none; }
.step .num-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bg-elev-1);
  border: 2px solid var(--accent);
  color: var(--accent);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 20px; font-weight: 700;
  box-shadow: 0 0 24px var(--accent-glow);
}
.step .step-body h3 { margin-bottom: 6px; font-size: 18px; }
.step .step-body p { color: var(--text-dim); line-height: 1.6; font-size: 14.5px; }

/* TESTIMONIALS */
.test-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 50px; }
.test-card {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  position: relative;
}
.test-card::before {
  content: "“";
  position: absolute; top: 16px; left: 24px;
  font-family: Georgia, serif;
  font-size: 64px;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
}
.test-card .quote { font-size: 15px; line-height: 1.6; color: var(--text); margin: 18px 0 22px; padding-left: 14px; }
.test-card .author { font-size: 12.5px; color: var(--text-dim); padding-top: 16px; border-top: 1px solid var(--border); }
.test-card .author strong { color: var(--text); }

/* BIG CTA */
.big-cta {
  margin: 80px auto 0;
  max-width: 1200px;
  padding: 80px 60px;
  background: linear-gradient(135deg, var(--bg-elev-1), rgba(0, 212, 255, 0.06));
  border: 1px solid var(--accent-soft);
  border-radius: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.big-cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 600px 200px at 50% 0%, rgba(0, 212, 255, 0.18), transparent 70%);
  pointer-events: none;
}
.big-cta h2 { font-size: 44px; margin-bottom: 18px; position: relative; }
.big-cta .lede { font-size: 18px; max-width: 560px; margin: 0 auto 28px; position: relative; }
.big-cta .btn { padding: 16px 32px; font-size: 16px; position: relative; z-index: 1; }
.big-cta .footnote { margin-top: 18px; color: var(--text-faint); font-size: 13px; position: relative; }

/* FOOTER */
.mkt-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elev-1);
  padding: 50px 32px 30px;
  margin-top: 100px;
}
.mkt-footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 40px;
}
.mkt-footer h4 { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 14px; font-weight: 700; }
.mkt-footer ul { list-style: none; padding: 0; margin: 0; }
.mkt-footer li { margin-bottom: 8px; }
.mkt-footer a { color: var(--text-dim); font-size: 13px; }
.mkt-footer a:hover { color: var(--text); }
.mkt-footer .col-brand { max-width: 320px; }
.mkt-footer .col-brand p { color: var(--text-dim); margin: 14px 0; font-size: 13px; line-height: 1.6; }
.mkt-footer .legal {
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  color: var(--text-faint); font-size: 12px;
}

/* PRICING */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 50px; align-items: stretch; }
.tier {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  position: relative;
  display: flex; flex-direction: column;
}
.tier.popular {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 0 60px rgba(0, 212, 255, 0.18);
  transform: translateY(-8px);
}
/* ============================================================
   HERO LOGO BEACON — official ReimburseOS lockup floating clean
   on the dark hero. Pure transparent PNG (no halo baked in, no
   white pill, no rectangle). The beam comes from CSS only:
     • Two ellipse rings expand outward, mirroring the previous
       pulse-ring icon's beam pulse
     • A radial cyan aura breathes behind the lockup
     • The lockup itself strobes with a drop-shadow chain that
       follows the EXACT silhouette of the transparent PNG
   ============================================================ */
.gateway--lockup .logo-beacon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto clamp(32px, 4vw, 56px);
  padding: 0;
  /* Match the lockup's natural 3.52:1 aspect ratio so there's no
     rectangular halo region around it. */
  width: clamp(300px, 52vw, 560px);
  aspect-ratio: 1375 / 391;
  background: transparent;
  border: 0;
  box-shadow: none;
}
/* Removed expanding rings — they read as a hard rectangular halo around
   a wide horizontal lockup. The breathing radial aura below carries the
   "beaming" energy without competing with the wordmark. */
/* Radial breathing aura behind the lockup — soft and wide, fades fully to
   transparent at all edges so there's no visible rectangle. Centered on
   the icon side (left ~22%) of the lockup since that's where the "beacon"
   visual weight lives. */
.gateway--lockup .logo-beacon-aura {
  position: absolute;
  inset: -80% -10%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse 55% 65% at 22% 50%,
    rgba(0, 212, 255, 0.42) 0%,
    rgba(0, 212, 255, 0.18) 22%,
    rgba(0, 212, 255, 0.06) 45%,
    transparent 70%
  );
  filter: blur(12px);
  pointer-events: none;
  z-index: 1;
  animation: lockup-aura-breathe 3.4s ease-in-out infinite;
}
.gateway--lockup .logo-beacon-aura--alt {
  inset: -120% -20%;
  background: radial-gradient(
    ellipse 60% 60% at 50% 50%,
    rgba(0, 212, 255, 0.20) 0%,
    rgba(0, 212, 255, 0.08) 28%,
    rgba(0, 212, 255, 0.02) 50%,
    transparent 65%
  );
  filter: blur(36px);
  animation-delay: 1.1s;
  animation-duration: 4.8s;
}
@keyframes lockup-aura-breathe {
  0%, 100% { opacity: 0.55; transform: scale(0.92); }
  50%      { opacity: 1;    transform: scale(1.10); }
}
.gateway--lockup .logo-beacon-mark {
  position: relative;
  z-index: 3;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
  filter:
    drop-shadow(0 0 14px rgba(0, 212, 255, 0.45))
    drop-shadow(0 0 32px rgba(0, 212, 255, 0.28))
    drop-shadow(0 0 64px rgba(0, 212, 255, 0.16))
    drop-shadow(0 4px 18px rgba(0, 0, 0, 0.35));
  animation: lockup-beacon 3.2s ease-in-out infinite;
}
@keyframes lockup-beacon {
  0%   { filter: drop-shadow(0 0 12px rgba(0, 212, 255, 0.34)) drop-shadow(0 0 28px rgba(0, 212, 255, 0.16)) drop-shadow(0 4px 24px rgba(0, 0, 0, 0.4)); }
  18%  { filter: drop-shadow(0 0 26px rgba(0, 212, 255, 0.78)) drop-shadow(0 0 70px rgba(0, 212, 255, 0.48)) drop-shadow(0 0 130px rgba(0, 212, 255, 0.28)) drop-shadow(0 4px 24px rgba(0, 0, 0, 0.4)); }
  36%  { filter: drop-shadow(0 0 14px rgba(0, 212, 255, 0.40)) drop-shadow(0 0 32px rgba(0, 212, 255, 0.20)) drop-shadow(0 4px 24px rgba(0, 0, 0, 0.4)); }
  54%  { filter: drop-shadow(0 0 32px rgba(0, 212, 255, 0.95)) drop-shadow(0 0 88px rgba(0, 212, 255, 0.55)) drop-shadow(0 0 150px rgba(0, 212, 255, 0.32)) drop-shadow(0 4px 24px rgba(0, 0, 0, 0.4)); }
  72%  { filter: drop-shadow(0 0 14px rgba(0, 212, 255, 0.36)) drop-shadow(0 0 28px rgba(0, 212, 255, 0.18)) drop-shadow(0 4px 24px rgba(0, 0, 0, 0.4)); }
  100% { filter: drop-shadow(0 0 12px rgba(0, 212, 255, 0.34)) drop-shadow(0 0 28px rgba(0, 212, 255, 0.16)) drop-shadow(0 4px 24px rgba(0, 0, 0, 0.4)); }
}

/* ============================================================
   BRAND LOCKUP — universal sizing rules
   The white-text PNG is used on every dark surface (topbar, hero,
   footer, mobile drawer). It contains the full lockup (icon +
   wordmark), so we hide any duplicate text wordmark beside it.
   ============================================================ */
.mkt-nav .brand,
.topbar__brand,
.mkt-footer .brand,
.col-brand .brand {
  display: inline-flex !important;
  align-items: center !important;
  text-decoration: none !important;
  gap: 0 !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}
/* Default brand size = topbar */
.mkt-nav .brand img,
.topbar__brand img,
.brand img {
  height: 38px !important;
  width: auto !important;
  max-width: 220px !important;
  border-radius: 0 !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  display: block !important;
  filter: none !important;
  object-fit: contain !important;
}
/* Footer slightly smaller for visual hierarchy */
.mkt-footer .brand img,
.col-brand .brand img {
  height: 32px !important;
  max-width: 200px !important;
}
/* Mobile: scale down topbar lockup (it stays legible) */
@media (max-width: 720px) {
  .mkt-nav .brand img,
  .topbar__brand img,
  .brand img {
    height: 30px !important;
    max-width: 170px !important;
  }
}
/* Defense-in-depth: hide any duplicate text wordmark next to the lockup */
.mkt-nav .brand .name,
.mkt-footer .brand .name,
.col-brand .brand .name,
.mkt-footer .brand strong,
.col-brand .brand strong {
  display: none !important;
}

/* Soft ellipse aura — large, slow, breathing behind the lockup */
.gateway--lockup .logo-beacon-aura {
  position: absolute;
  inset: -40% -20%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 50%,
      rgba(0, 212, 255, 0.55) 0%,
      rgba(0, 212, 255, 0.20) 28%,
      rgba(0, 212, 255, 0.06) 55%,
      transparent 75%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 1;
  animation: lockup-aura 3.2s ease-in-out infinite;
  transform-origin: center;
}
.gateway--lockup .logo-beacon-aura--alt {
  inset: -65% -32%;
  background:
    radial-gradient(ellipse at 50% 50%,
      rgba(0, 212, 255, 0.30) 0%,
      rgba(0, 212, 255, 0.10) 30%,
      transparent 60%);
  filter: blur(20px);
  animation-delay: 0.8s;
  animation-duration: 4.4s;
}
@keyframes lockup-aura {
  0%   { opacity: 0.55; transform: scale(0.92); }
  50%  { opacity: 1;    transform: scale(1.06); }
  100% { opacity: 0.55; transform: scale(0.92); }
}

/* Diagonal sweep — REMOVED. A moving glare strip across a wordmark looks
   harsh and obscures the brand text. The radial aura + drop-shadow strobe
   carry the "beaming" energy more elegantly. */
.gateway--lockup .logo-beacon-sweep { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .gateway--lockup .logo-beacon-mark,
  .gateway--lockup .logo-beacon-aura,
  .gateway--lockup .logo-beacon-sweep::before { animation: none; }
}

/* If the lockup gateway is rendered, hide the legacy pulse-ring rings
   that GuardStack's CSS draws (they assume a circular icon). */
.gateway--lockup .pulse-ring,
.gateway--lockup .pulse-ring::before,
.gateway--lockup .pulse-ring::after { display: none !important; }

/* Monthly / Annual billing toggle */
.bill-toggle{
  display:inline-flex;align-items:center;gap:0;
  margin:0 auto 36px;padding:4px;
  background:var(--bg-elev-2);border:1px solid var(--border-strong);
  border-radius:999px;
  position:relative;left:50%;transform:translateX(-50%);
}
.bill-toggle-opt{
  appearance:none;border:0;background:transparent;
  padding:9px 18px;border-radius:999px;
  font-family:var(--font-ui);font-size:13px;font-weight:600;letter-spacing:0.005em;
  color:var(--text-dim);cursor:pointer;
  display:inline-flex;align-items:center;gap:8px;white-space:nowrap;
  transition:background 200ms var(--ease),color 200ms var(--ease),box-shadow 200ms var(--ease);
}
.bill-toggle-opt:hover{ color:var(--text); }
.bill-toggle-opt.is-active{
  background:var(--accent);color:var(--bg-base);
  box-shadow:0 0 0 1px var(--accent),0 0 18px var(--accent-glow);
}
.bill-toggle-save{
  font-family:var(--font-mono);font-size:10px;font-weight:700;letter-spacing:0.1em;text-transform:uppercase;
  padding:2px 7px;border-radius:4px;
  background:rgba(0,212,255,0.18);color:var(--accent);
}
.bill-toggle-opt.is-active .bill-toggle-save{
  background:rgba(10,15,28,0.22);color:var(--bg-base);
}

/* Cycle visibility — driven by [data-cycle] on the pricing section */
.pricing-grid .cycle-monthly{ display:none; }
.pricing-grid .cycle-annual{ display:inline; }
[data-cycle="monthly"] .pricing-grid .cycle-monthly,
.pricing-grid[data-cycle="monthly"] .cycle-monthly,
.tier.is-monthly .cycle-monthly{ display:inline; }
[data-cycle="monthly"] .pricing-grid .cycle-annual,
.pricing-grid[data-cycle="monthly"] .cycle-annual,
.tier.is-monthly .cycle-annual{ display:none; }

/* Strike-through pre-price chip */
.tier .strike-pre{
  font-size:22px;font-weight:500;color:var(--text-faint);
  text-decoration:line-through;text-decoration-color:rgba(0,212,255,0.45);
  text-decoration-thickness:1.5px;
  margin-right:8px;
}

.tier .badge-pop {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--bg-base);
  padding: 6px 16px; border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  line-height: 1.2;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 212, 255, 0.35), 0 0 0 1px rgba(0, 212, 255, 0.4);
  max-width: calc(100% - 24px);
}
.tier .tier-name { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.tier .tier-price { font-family: var(--font-display); font-size: 56px; font-weight: 800; line-height: 1; margin: 14px 0 6px; letter-spacing: -0.02em; }
.tier .tier-price .per { font-size: 16px; color: var(--text-dim); font-weight: 500; }
.tier .tier-best { color: var(--text-dim); font-size: 13px; margin-bottom: 22px; }
.tier ul { list-style: none; padding: 0; margin: 0 0 24px; }
.tier li { padding: 7px 0; font-size: 14px; display: flex; align-items: flex-start; gap: 10px; color: var(--text); }
.tier li::before {
  content: ""; width: 16px; height: 16px;
  background: var(--success-soft);
  border-radius: 50%;
  flex-shrink: 0; margin-top: 2px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 11px;
  background-position: center;
  background-repeat: no-repeat;
}

/* COMPARE TABLES */
.compare-table {
  margin-top: 60px;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border);
}
.compare-table table { background: var(--bg-elev-1); }
.compare-table thead th { font-size: 12px; padding: 16px; }
.compare-table tbody td { padding: 14px 16px; }
.compare-table .check { color: var(--success); font-size: 18px; }
.compare-table .x { color: var(--danger); font-size: 18px; }
.compare-table .partial { color: var(--warn); font-size: 18px; }
.compare-table .gs-col { background: rgba(0, 212, 255, 0.04); border-left: 1px solid var(--accent-soft); border-right: 1px solid var(--accent-soft); }
.compare-table thead .gs-col { background: var(--accent-soft); color: var(--accent); }

/* MARKET STATS */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 50px; }
.stat-card {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  position: relative; overflow: hidden;
}
.stat-card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.stat-card .big {
  font-family: var(--font-display); font-size: 44px; font-weight: 800;
  letter-spacing: -0.02em; color: var(--accent); line-height: 1;
}
.stat-card .label { font-size: 13px; color: var(--text-dim); margin-top: 12px; line-height: 1.5; }

/* RISK MATRIX */
.risk-matrix {
  position: relative;
  display: grid;
  grid-template-columns: 60px repeat(3, 1fr);
  grid-template-rows: 40px repeat(3, 200px);
  gap: 4px;
  margin-top: 40px;
}
.risk-matrix .axis-y, .risk-matrix .axis-x {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-faint); font-weight: 700;
  display: grid; place-items: center;
}
.risk-cell {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  position: relative;
  display: flex; flex-direction: column; gap: 6px;
}
.risk-cell.hi-hi { background: rgba(239, 68, 68, 0.06); border-color: var(--danger-soft); }
.risk-cell.hi-md { background: rgba(245, 158, 11, 0.06); border-color: var(--warn-soft); }
.risk-cell.md-md { background: rgba(245, 158, 11, 0.04); border-color: var(--warn-soft); }
.risk-cell.lo-hi { background: rgba(245, 158, 11, 0.04); border-color: var(--warn-soft); }
.risk-pill {
  background: var(--bg-elev-3);
  padding: 6px 10px; border-radius: 6px;
  font-size: 12px; font-weight: 600;
  cursor: pointer;
  transition: all 160ms;
}
.risk-pill:hover {
  background: var(--accent-soft);
  color: var(--accent);
  transform: translateX(2px);
}

/* BENCHMARK */
.bench-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.bench-row:last-child { border-bottom: none; }
.bench-label { font-weight: 600; }
.bench-bar {
  height: 8px; border-radius: 4px;
  background: var(--bg-elev-3);
  overflow: hidden; position: relative;
}
.bench-bar .fill { height: 100%; }
.bench-bar.industry .fill { background: var(--danger); }
.bench-bar.guardstack .fill { background: var(--success); }
.bench-bar .num {
  position: absolute; right: 8px; top: -22px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
}
.bench-bar.industry .num { color: var(--danger); }
.bench-bar.guardstack .num { color: var(--success); }

/* COMPETITOR CARDS */
.comp-card {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  align-items: flex-start;
}
.comp-logo {
  background: var(--bg-elev-2);
  border-radius: 12px;
  padding: 20px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800;
  font-size: 22px;
  min-height: 80px;
  text-align: center;
}
.comp-card h3 { margin-bottom: 6px; font-size: 22px; }
.comp-card .strength { color: var(--success); font-size: 13px; margin-bottom: 16px; }
.comp-gaps { display: grid; gap: 10px; }
.comp-gap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  padding: 12px; background: var(--bg-elev-2); border-radius: 8px;
  align-items: flex-start;
}
.comp-gap .gap { color: var(--danger); font-size: 13.5px; }
.comp-gap .ans { color: var(--success); font-size: 13.5px; }
.comp-gap .gap::before { content: "✕ "; font-weight: 700; }
.comp-gap .ans::before { content: "✓ GuardStack: "; font-weight: 700; }

/* ROI CALCULATOR */
.roi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-top: 40px; }
.roi-inputs {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.roi-input { margin-bottom: 22px; }
.roi-input label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 13px; }
.roi-input label .val { font-family: var(--font-mono); color: var(--accent); font-weight: 700; }
.roi-input input[type=range] {
  width: 100%; -webkit-appearance: none; appearance: none;
  height: 6px; border-radius: 3px;
  background: var(--bg-elev-3);
  outline: none;
}
.roi-input input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 0 12px var(--accent-glow);
}
.roi-result {
  background: linear-gradient(135deg, var(--bg-elev-1), rgba(0, 212, 255, 0.06));
  border: 1px solid var(--accent-soft);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: sticky; top: 92px;
}
.roi-headline {
  font-family: var(--font-display); font-size: 56px; font-weight: 800;
  color: var(--accent); letter-spacing: -0.02em; line-height: 1;
}
.roi-row {
  display: flex; justify-content: space-between; padding: 12px 0;
  border-bottom: 1px solid var(--border); font-size: 13.5px;
}
.roi-row:last-child { border-bottom: none; font-weight: 700; font-size: 16px; padding-top: 18px; }
.roi-row .v { font-family: var(--font-mono); }
.roi-row .v.green { color: var(--success); }
.roi-row .v.cyan { color: var(--accent); }
.roi-row .v.red { color: var(--danger); }

/* TOUR */
.tour-stage {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  margin-top: 30px;
  position: relative;
  min-height: 480px;
}
.tour-progress {
  position: relative;
  height: 4px; background: var(--bg-elev-3); border-radius: 2px;
  overflow: hidden;
}
.tour-progress .fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--success)); transition: width 400ms ease; }
.tour-controls { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }

/* DEMO BOOKING */
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 50px; }
.cal-frame {
  background: var(--bg-elev-1); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  min-height: 460px;
}
.cal-month { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-day {
  aspect-ratio: 1; border-radius: 8px;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 13px;
  background: var(--bg-elev-2);
  cursor: pointer;
  transition: all 160ms;
}
.cal-day.head { background: transparent; cursor: default; color: var(--text-faint); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; }
.cal-day.empty { background: transparent; cursor: default; }
.cal-day:not(.head):not(.empty):not(.disabled):hover { background: var(--accent-soft); color: var(--accent); }
.cal-day.disabled { opacity: 0.3; cursor: not-allowed; }
.cal-day.selected { background: var(--accent); color: var(--bg-base); font-weight: 700; }
.cal-times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.cal-time {
  padding: 10px; background: var(--bg-elev-2); border: 1px solid var(--border);
  border-radius: 6px; cursor: pointer; text-align: center;
  font-family: var(--font-mono); font-size: 12px;
  transition: all 160ms;
}
.cal-time:hover { border-color: var(--accent); color: var(--accent); }
.cal-time.selected { background: var(--accent); color: var(--bg-base); border-color: var(--accent); }

/* INTELLIGENCE PAGE */
.intel-card {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 22px 26px;
  margin-bottom: 14px;
}
.intel-card .pred-num {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); font-weight: 700;
}
.intel-card h3 { font-size: 17px; margin: 8px 0 10px; }
.intel-card p { color: var(--text-dim); line-height: 1.6; font-size: 14px; }

.newsletter-card {
  background: linear-gradient(135deg, var(--bg-elev-1), rgba(0, 212, 255, 0.05));
  border: 1px solid var(--accent-soft);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-top: 50px;
}
.newsletter-card form { display: flex; gap: 10px; margin-top: 18px; max-width: 520px; }
.newsletter-card input {
  flex: 1; padding: 12px 16px;
  background: var(--bg-elev-2); border: 1px solid var(--border);
  border-radius: 8px; font-size: 14px; color: var(--text);
}
.newsletter-card input:focus { border-color: var(--accent); outline: none; }
.sample-issues { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }
.sample-issues .issue { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-size: 13.5px; color: var(--text-dim); }
.sample-issues .issue::before { content: "→"; color: var(--accent); font-weight: 700; }

/* FAQ */
.faq { max-width: 760px; margin: 60px auto 0; }
.faq-item {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-q {
  padding: 18px 22px;
  font-weight: 600; font-size: 15px;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  transition: background 160ms;
}
.faq-q:hover { background: var(--bg-elev-2); }
.faq-q::after { content: "+"; font-size: 22px; color: var(--accent); font-weight: 300; }
.faq-item.open .faq-q::after { content: "−"; }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 320ms var(--ease), padding 320ms var(--ease);
  padding: 0 22px;
  color: var(--text-dim); line-height: 1.6; font-size: 14px;
}
.faq-item.open .faq-a { max-height: 400px; padding: 0 22px 20px; }

/* MARKET MAP */
.market-map {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-top: 40px; max-width: 1080px;
  position: relative;
}
.market-map .quad {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  min-height: 200px;
  position: relative;
}
.market-map .quad h4 { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 10px; }
.market-map .quad .items { display: flex; flex-direction: column; gap: 6px; align-items: center; color: var(--text-dim); font-size: 13.5px; }
.market-map .center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 200px; height: 200px;
  background: radial-gradient(circle, var(--accent), #006688);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--bg-base);
  font-family: var(--font-display); font-weight: 800;
  font-size: 22px;
  box-shadow: 0 0 80px var(--accent-glow), 0 0 0 4px rgba(10, 15, 28, 1), 0 0 0 5px var(--accent-soft);
  z-index: 5;
}

/* BULLSEYE */
.bullseye {
  width: 360px; height: 360px;
  margin: 50px auto;
  position: relative;
  display: grid; place-items: center;
}
.bullseye .ring {
  position: absolute; border-radius: 50%;
  border: 1.5px dashed var(--border-strong);
}
.bullseye .ring.r1 { width: 360px; height: 360px; }
.bullseye .ring.r2 { width: 260px; height: 260px; border-color: var(--text-faint); }
.bullseye .ring.r3 { width: 160px; height: 160px; border-color: var(--text-dim); border-style: solid; }
.bullseye .core {
  width: 80px; height: 80px;
  background: radial-gradient(circle, var(--accent), #006688);
  border-radius: 50%;
  box-shadow: 0 0 40px var(--accent-glow);
  z-index: 2;
  display: grid; place-items: center;
  color: var(--bg-base); font-weight: 700; font-size: 11px;
  letter-spacing: 0.04em; text-align: center;
}
.bullseye .label-1, .bullseye .label-2, .bullseye .label-3 {
  position: absolute;
  background: var(--bg-elev-2); padding: 4px 10px; border-radius: 4px;
  font-size: 11px; color: var(--text-dim); font-weight: 600;
}
.bullseye .label-1 { top: 8px; left: 50%; transform: translateX(-50%); }
.bullseye .label-2 { top: 60px; left: 50%; transform: translateX(-50%); }
.bullseye .label-3 { top: 110px; left: 50%; transform: translateX(-50%); color: var(--accent); border: 1px solid var(--accent-soft); }

/* RESPONSIVE */
@media (max-width: 980px) {
  .mkt-hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .mkt-hero h1 { font-size: 44px; }
  .pain-grid, .feat-grid, .test-grid, .pricing-grid, .stat-grid, .roi-grid, .demo-grid, .market-map { grid-template-columns: 1fr; }
  .market-map .center { display: none; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .feat-grid { grid-template-columns: 1fr; }
  .mkt-footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .mkt-section h2 { font-size: 30px; }
  .pain-callout { flex-direction: column; align-items: flex-start; }
  .pain-callout .number { font-size: 48px; }
  .comp-card { grid-template-columns: 1fr; }
  .tier.popular { transform: none; }
  .compare-table { overflow-x: auto; }
  .compare-table table { min-width: 700px; }
  .risk-matrix { grid-template-columns: 60px 1fr 1fr 1fr; grid-template-rows: 40px repeat(3, 140px); }
  .comp-gap { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 720px) {
  .mkt-nav { padding: 0 16px; height: 76px; }
  .mkt-nav .brand img { height: 44px; }
  .mkt-shell { padding-top: 76px !important; }
  .mkt-nav-links { display: none; }
  .mkt-section { padding: 60px 18px; }
  .mkt-hero { padding: 80px 18px 40px; }
  .mkt-hero h1 { font-size: 34px; }
  .mkt-hero .lede { font-size: 16px; }
  .mkt-section h1 { font-size: 36px; }
  .mkt-section h2 { font-size: 26px; }
  .stat-card .big { font-size: 32px; }
  .tier { padding: 28px 22px; }
  .tier .tier-price { font-size: 42px; }
  .big-cta { padding: 50px 24px; }
  .big-cta h2 { font-size: 28px; }
  .roi-headline { font-size: 38px; }
  .stat-grid { grid-template-columns: 1fr; }
  .mkt-footer { padding: 40px 18px 24px; }
}

/* ============================================================================
   RESPONSIVE — DESKTOP & TABLET
   ============================================================================ */
@media (max-width: 980px) {
  .split-3-2, .split-2-1, .split-1-1 { grid-template-columns: 1fr; }
}

/* ============================================================================
   MOBILE OPTIMIZATION (≤ 720px) — bottom nav, sheet panels, native feel
   ============================================================================ */
@media (max-width: 720px) {
  :root {
    --sidebar-w: 0px;
    --topbar-h: 56px;
    --bottomnav-h: 64px;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
  }

  body { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
  html, body { overscroll-behavior-y: contain; }

  /* Hide desktop sidebar entirely */
  .app { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .sidebar { display: none; }

  .topbar {
    padding: max(8px, var(--safe-top)) 14px 8px;
    height: calc(var(--topbar-h) + var(--safe-top));
    position: sticky; top: 0;
  }
  .topbar .crumbs { font-size: 12px; gap: 6px; flex-wrap: nowrap; min-width: 0; overflow: hidden; }
  .topbar .crumbs strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 50vw; }
  .topbar .crumbs .dim, .topbar .crumbs span:not(.pulse-dot):not(strong) { display: none; }
  .topbar .right { gap: 8px; }
  .topbar .right .dim { display: none; }
  .live-clock { display: none; }
  .alert-bell { padding: 10px; min-width: 44px; min-height: 44px; }

  .main {
    padding: 14px 14px calc(var(--bottomnav-h) + var(--safe-bottom) + 24px) 14px;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  /* === BOTTOM NAV (replaces sidebar on mobile, app routes only) === */
  .mobile-bottom-nav {
    display: flex !important;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: calc(var(--bottomnav-h) + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: rgba(10, 15, 28, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    z-index: 60;
    align-items: stretch;
    justify-content: space-around;
  }
  .mobile-bottom-nav a {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; padding: 8px 4px;
    color: var(--text-faint);
    font-size: 10px; font-weight: 600; letter-spacing: 0.04em;
    text-decoration: none;
    min-height: 44px;
    transition: color 160ms;
    position: relative;
  }
  .mobile-bottom-nav a svg { width: 22px; height: 22px; }
  .mobile-bottom-nav a.active { color: var(--accent); }
  .mobile-bottom-nav a.active::before {
    content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 2px;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
    border-radius: 0 0 2px 2px;
  }
  body:not(.mobile-app) .mobile-bottom-nav { display: none !important; }

  /* === MOBILE DRAWER (More menu) === */
  .mobile-drawer-overlay {
    position: fixed; inset: 0;
    background: rgba(5, 8, 16, 0.7);
    backdrop-filter: blur(8px);
    z-index: 95;
    opacity: 0; pointer-events: none;
    transition: opacity 220ms ease-out;
  }
  .mobile-drawer-overlay.open { opacity: 1; pointer-events: auto; }
  .mobile-drawer {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--bg-elev-1);
    border-top: 1px solid var(--border-strong);
    border-radius: 20px 20px 0 0;
    z-index: 96;
    padding: 12px 16px calc(28px + var(--safe-bottom));
    transform: translateY(100%);
    transition: transform 320ms cubic-bezier(0.32, 0.72, 0, 1);
    max-height: 80vh; overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .mobile-drawer.open { transform: translateY(0); }
  .mobile-drawer .grabber {
    width: 40px; height: 4px; border-radius: 2px;
    background: var(--border-strong);
    margin: 6px auto 16px;
  }
  .mobile-drawer h4 {
    font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--text-faint); font-weight: 700; padding: 16px 8px 6px;
  }
  .mobile-drawer a {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 10px;
    border-radius: 10px;
    color: var(--text);
    font-size: 15px; font-weight: 500;
    text-decoration: none;
    min-height: 48px;
  }
  .mobile-drawer a:active { background: var(--bg-elev-2); }
  .mobile-drawer a svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--text-dim); }
  .mobile-drawer a.active { color: var(--accent); }
  .mobile-drawer a.active svg { color: var(--accent); }

  /* === HEADINGS / TYPE === */
  h1 { font-size: 22px; }
  .display { font-size: 22px !important; line-height: 1.18; }
  .page-header { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
  .page-header h1 { font-size: 24px; }
  .page-header > div:first-child { width: 100%; }
  .page-header > div:last-child { flex-wrap: wrap; }

  /* === KPI grid: 2 cols default, 1 col under 380px === */
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
  .kpi { padding: 12px 14px; }
  .kpi .value { font-size: 22px; }
  .kpi .label { font-size: 10px; }
  .kpi .delta { font-size: 11px; }

  /* === TABS swipeable / scrollable === */
  .tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 12px 14px;
    font-size: 13px;
    min-height: 44px;
  }

  /* === TABLES → CARD MODE === */
  .table-wrap { overflow: visible; border: none; background: transparent; border-radius: 0; }
  .table-wrap table, .table-wrap thead, .table-wrap tbody, .table-wrap tr, .table-wrap th, .table-wrap td { display: block; min-width: 0; }
  .table-wrap thead { display: none; }
  .table-wrap tr {
    background: var(--bg-elev-1);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 10px;
    padding: 14px 16px;
    cursor: pointer;
  }
  .table-wrap tr:active { background: var(--bg-elev-2); }
  .table-wrap td {
    border: none !important;
    padding: 4px 0 !important;
    font-size: 13.5px;
    display: flex; justify-content: space-between; align-items: center;
    gap: 10px;
  }
  .table-wrap td:first-child { padding-top: 0 !important; }
  .table-wrap td:last-child { padding-bottom: 0 !important; }
  .table-wrap td::before {
    content: attr(data-label);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-faint);
    font-weight: 700;
    flex-shrink: 0;
  }
  .table-wrap td .badge { white-space: nowrap; }

  /* For tables that don't have data-label, use first cell as title */
  .table-wrap tbody tr td:first-child {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 6px;
    padding-bottom: 8px !important;
    border-bottom: 1px solid var(--border) !important;
    display: block !important;
  }
  .table-wrap tbody tr td:first-child::before { display: none; }

  .table-wrap tfoot { display: none; }

  /* === BUTTONS — bigger taps === */
  .btn {
    min-height: 44px;
    padding: 11px 16px;
    font-size: 13.5px;
  }
  .btn.fs-12 { padding: 10px 14px; min-height: 40px; }

  /* === DETAIL PANEL → BOTTOM SHEET === */
  .detail-panel {
    top: auto;
    left: 0; right: 0; bottom: 0;
    width: 100% !important; max-width: 100vw;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
    border-left: none;
    border-top: 1px solid var(--border-strong);
    transform: translateY(100%);
    transition: transform 320ms cubic-bezier(0.32, 0.72, 0, 1);
    box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.5);
    -webkit-overflow-scrolling: touch;
  }
  .detail-panel.open { transform: translateY(0); }
  .detail-panel header {
    padding: 14px 18px 14px 22px;
    position: sticky; top: 0;
  }
  .detail-panel header::before {
    content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
    width: 40px; height: 4px; border-radius: 2px;
    background: var(--border-strong);
  }
  .detail-panel .body { padding: 14px 18px calc(28px + var(--safe-bottom)); }

  /* === Map === */
  .map-wrap { height: 320px; }

  /* === AI page === */
  .ai-shell { height: auto; min-height: 60vh; gap: 12px; }
  .ai-suggestions { grid-template-columns: 1fr; }
  .ai-input-row input { font-size: 16px; }
  .ai-input-row { padding: 6px; }
  .ai-input-row .btn { padding: 12px 16px; min-height: 44px; }

  /* === Cmd palette mobile full-screen === */
  .cmd-overlay { padding-top: 8vh; padding-left: 12px; padding-right: 12px; }
  .cmd-modal { max-width: 100%; }
  .cmd-input-row input { font-size: 16px; }

  /* === Login === */
  .login-card { padding: 28px 22px; max-width: calc(100vw - 24px); }
  .login-card h1 { font-size: 22px; }

  /* === Schedule grid → day picker + list === */
  .schedule-grid {
    grid-template-columns: 1fr;
    gap: 1px;
  }
  .schedule-grid .head { display: none; }
  .schedule-grid .site-cell {
    background: var(--bg-elev-2);
    font-size: 13px;
    padding: 12px 14px;
    border-radius: 8px 8px 0 0;
    margin-top: 6px;
  }
  .schedule-grid .shift {
    padding: 10px 14px;
    font-size: 12px;
    border-bottom: 1px solid var(--border);
  }
  .schedule-grid .shift.empty { display: none; }

  /* === Pulse hero === */
  .pulse-hero { grid-template-columns: 1fr; gap: 18px; padding: 22px 20px; }
  .pulse-hero .gauge-large { width: 140px; height: 140px; margin: 0 auto; }
  .pulse-hero .gauge-large .label { font-size: 42px; }
  .pulse-hero h2 { font-size: 22px; }
  .pulse-hero .stats-stack {
    flex-direction: row;
    padding-left: 0; border-left: none;
    border-top: 1px solid var(--border); padding-top: 16px;
    justify-content: space-between;
    overflow-x: auto;
  }
  .pulse-hero .stats-stack .stat { text-align: left; min-width: 90px; }
  .pulse-hero .actions { width: 100%; }
  .pulse-hero .actions .btn { flex: 1; min-width: 0; justify-content: center; font-size: 12px; padding: 10px 8px; }

  /* === Welcome toast === */
  .welcome-toast { top: auto; bottom: calc(var(--bottomnav-h) + var(--safe-bottom) + 16px); right: 12px; left: 12px; min-width: 0; }

  /* === Margin cards === */
  .margin-card { grid-template-columns: 1fr; gap: 10px; padding: 14px; }
  .margin-card .name { order: 1; }
  .margin-card > div { display: flex; justify-content: space-between; }
  .margin-card > div::before { content: attr(data-label); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); font-weight: 700; }

  /* === Vitals === */
  .vitals-row {
    grid-template-columns: 1fr 80px 80px 80px;
    gap: 8px;
    font-size: 12px;
    padding: 12px 8px;
  }
  .vitals-row > :nth-child(2) { grid-column: 1 / -1; order: 2; margin-top: 6px; }
  .vitals-row > :nth-child(1) { grid-column: 1 / -1; }
  .vitals-row > :nth-child(3),
  .vitals-row > :nth-child(4),
  .vitals-row > :nth-child(5) { grid-row: 3; }
  .vitals-row.head { display: none; }
  .vitals-heat { height: 18px; }

  /* === Dispatch === */
  .dispatch-card { padding: 14px 16px; }
  .dispatch-card .candidate-row { grid-template-columns: 30px 1fr; gap: 10px; }
  .dispatch-card .candidate-row .eta { grid-column: 2; }
  .dispatch-card .candidate-row .btn { grid-column: 1 / -1; margin-top: 4px; min-height: 40px; }

  /* === Phone showcase === */
  .phone-frame { width: 260px; height: 540px; }

  /* === Scorecard === */
  .sla-doc { padding: 24px 20px; }
  .sla-doc .doc-head { flex-direction: column; gap: 12px; }
  .sla-doc h2 { font-size: 22px; }

  /* === Growth === */
  .opp-card { padding: 16px 18px; min-height: 0; }
  .opp-grid { grid-template-columns: 1fr; gap: 12px; }
  .opp-filters { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .opp-filters::-webkit-scrollbar { display: none; }
  .opp-filter { white-space: nowrap; flex-shrink: 0; min-height: 36px; }

  /* === Marketing nav: condensed → drawer === */
  .mkt-nav { height: 64px; padding: 0 16px; }
  .mkt-nav .brand img { height: 38px; }
  .mkt-nav .brand .name { font-size: 16px; }
  .mkt-nav-links { display: none; }
  .mkt-nav-cta .btn:not(.primary) { display: none; }
  .mkt-shell { padding-top: 64px !important; }
  .mkt-mobile-toggle {
    display: flex !important;
    width: 44px; height: 44px;
    align-items: center; justify-content: center;
    background: transparent; border: none;
    color: var(--text);
    cursor: pointer;
  }
  .mkt-mobile-toggle svg { width: 22px; height: 22px; }

  /* === Marketing hero === */
  .mkt-hero { padding: 60px 18px 30px; min-height: auto; }
  .mkt-hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .mkt-hero h1 { font-size: 36px; }
  .mkt-hero .lede { font-size: 16px; }
  .mkt-section { padding: 50px 16px; }
  .mkt-section h1 { font-size: 32px; }
  .mkt-section h2 { font-size: 24px; }
  .mkt-section .lede { font-size: 16px; }
  .pain-grid, .feat-grid, .test-grid, .pricing-grid, .stat-grid, .roi-grid, .demo-grid, .market-map { grid-template-columns: 1fr !important; }
  .stat-card .big { font-size: 32px; }
  .pain-callout { flex-direction: column; gap: 12px; padding: 24px 20px; }
  .pain-callout .number { font-size: 42px; }
  .market-map .center { display: none; }
  .tier { padding: 26px 20px; }
  .tier.popular { transform: none; margin-top: 12px; }
  .tier .tier-price { font-size: 38px; }
  .compare-table { overflow-x: auto; }
  .compare-table table { min-width: 640px; }
  .big-cta { padding: 40px 22px; }
  .big-cta h2 { font-size: 24px; }
  .mkt-footer { padding: 36px 18px 24px; }
  .mkt-footer-inner { grid-template-columns: 1fr; gap: 24px; }

  /* === Gateway === */
  .gateway { padding: 80px 20px 40px; min-height: auto; }
  .gateway .pulse-ring { width: 200px; height: 200px; margin-bottom: 24px; }
  .gateway .pulse-ring::before, .gateway .pulse-ring::after { width: 200px; height: 200px; }
  .gateway .pulse-ring img { height: 130px; }
  .gateway h1 { font-size: 36px; }
  .gateway .lede { font-size: 16px; }
  .gateway .btn-launch, .gateway .btn-secondary { width: 100%; justify-content: center; padding: 16px 24px; font-size: 15px; }
  .gateway .cta-row { flex-direction: column; gap: 10px; }
  .gateway .powered-by { font-size: 10px; padding: 7px 14px; }

  /* === Cinematic === */
  .cine-quote { font-size: 28px !important; padding: 0 16px; }
  .cine-reveal h1 { font-size: 52px !important; }
  .cine-int-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px; padding: 0 16px; }
  .cine-comp-stack { padding: 0 16px; }
  .cine-comp-row { font-size: 18px; padding: 12px 16px; }

  /* === Reports filter chips === */
  .badge { white-space: nowrap; }
  .feed { max-height: none; }
  .feed-item { padding: 12px 10px; }

  /* PWA standalone — extra top padding */
  html.pwa-standalone .topbar { padding-top: max(12px, var(--safe-top)); }
  html.pwa-standalone .mkt-nav { padding-top: var(--safe-top); height: calc(64px + var(--safe-top)); }
  html.pwa-standalone .mkt-shell { padding-top: calc(64px + var(--safe-top)) !important; }
}

@media (max-width: 380px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .gateway h1 { font-size: 30px; }
  .mkt-hero h1 { font-size: 30px; }
  .display { font-size: 20px !important; }
  .cine-quote { font-size: 24px !important; }
  .vitals-row { grid-template-columns: 1fr 60px 60px 60px; }
  .pulse-hero .gauge-large { width: 120px; height: 120px; }
  .pulse-hero .gauge-large .label { font-size: 36px; }
}

/* Landscape orientation on phones */
@media (max-width: 920px) and (orientation: landscape) and (max-height: 480px) {
  .gateway { min-height: auto; padding: 30px 20px; }
  .gateway .pulse-ring { width: 120px; height: 120px; margin-bottom: 14px; }
  .gateway .pulse-ring img { height: 80px; }
  .gateway .pulse-ring::before, .gateway .pulse-ring::after { width: 120px; height: 120px; }
  .gateway h1 { font-size: 28px; }
  .mkt-hero { padding: 60px 18px 24px; }
}

/* Hide mobile-only elements on desktop */
@media (min-width: 721px) {
  .mobile-bottom-nav { display: none !important; }
  .mobile-drawer-overlay { display: none !important; }
  .mobile-drawer { display: none !important; }
  .mkt-mobile-toggle { display: none !important; }
}

/* ============================================================================
   404 — UNMANNED POST
   ============================================================================ */
.not-found {
  min-height: 100vh;
  display: grid; place-items: center;
  padding: 40px 20px calc(40px + var(--safe-bottom));
  background:
    radial-gradient(ellipse at top, rgba(0, 209, 255, 0.06), transparent 60%),
    radial-gradient(ellipse at bottom, rgba(70, 90, 200, 0.04), transparent 60%),
    var(--bg-base);
}
.not-found .nf-card {
  width: 100%; max-width: 560px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.2));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 36px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
}
.not-found .nf-logo img {
  height: 80px; opacity: 0.9;
  filter: drop-shadow(0 0 30px rgba(0, 209, 255, 0.45));
  animation: beacon-pulse 3s ease-in-out infinite;
}
.not-found .nf-code {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 14px; letter-spacing: 0.4em;
  color: var(--cyan, #00d1ff);
  margin: 18px 0 6px;
}
.not-found .display { font-size: 32px; margin-bottom: 14px; line-height: 1.1; }
.not-found p { font-size: 15px; max-width: 440px; margin: 0 auto 24px; line-height: 1.55; }
.not-found p code { padding: 2px 8px; border-radius: 6px; background: rgba(0, 209, 255, 0.08); border: 1px solid rgba(0, 209, 255, 0.2); }
.not-found .nf-actions {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin-bottom: 22px;
}
.not-found .nf-actions .btn { min-height: 44px; padding: 0 18px; }
.not-found .nf-foot { margin-top: 16px; }

@media (max-width: 520px) {
  .not-found .nf-card { padding: 32px 22px; }
  .not-found .display { font-size: 26px; }
  .not-found .nf-actions { flex-direction: column; }
  .not-found .nf-actions .btn { width: 100%; }
  .not-found .nf-logo img { height: 64px; }
}

/* ============================================================================
   MOBILE TIGHTEN-UP (2026-05-04) — surgical CSS-only fixes loaded last
   so they win the cascade. Fixes: topbar overflow, hamburger visibility,
   hero lockup overflow, aura overflow, headline clipping, tap targets.
============================================================================ */

@media (max-width: 720px) {
  /* --- TOPBAR: ensure hamburger + lockup + CTA all fit cleanly --- */
  .mkt-nav {
    height: 60px !important;
    padding: 0 12px !important;
    gap: 10px !important;
  }
  .mkt-nav .brand,
  .mkt-nav .topbar__brand {
    flex-shrink: 0;
    min-width: 0;
  }
  .mkt-nav .brand img,
  .mkt-nav .topbar__brand img {
    height: 28px !important;
    max-width: 150px !important;
  }
  .mkt-nav-cta {
    gap: 6px !important;
    flex-shrink: 0;
  }
  /* Compact the CTA button — text shouldn't be truncated, padding cuts down */
  .mkt-nav-cta .btn,
  .mkt-nav-cta .btn.primary {
    padding: 9px 12px !important;
    font-size: 12.5px !important;
    border-radius: 8px !important;
    min-height: 38px !important;
    white-space: nowrap !important;
  }
  /* Force the hamburger toggle to show up next to the CTA */
  .mkt-mobile-toggle {
    display: flex !important;
    width: 40px !important;
    height: 40px !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 8px !important;
    color: var(--text) !important;
    cursor: pointer !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
  }
  .mkt-mobile-toggle svg { width: 20px !important; height: 20px !important; }
  .mkt-mobile-toggle:active { background: var(--bg-elev-2) !important; }

  /* (smaller-phone CTA hide moved to top-level media query below) */

  /* --- HERO: stop the lockup overflow + aura overflow --- */
  .gateway,
  .gateway--lockup {
    padding: 80px 16px 48px !important;
    min-height: auto !important;
    overflow: hidden !important;
  }
  .gateway-inner {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
  }
  .gateway--lockup .logo-beacon {
    width: min(85vw, 360px) !important;
    margin: 0 auto 24px !important;
    aspect-ratio: 1200 / 341 !important;
  }
  /* Contain the cyan aura inside the lockup container so it can't push the page */
  .gateway--lockup .logo-beacon-aura {
    inset: -40% -5% !important;
    filter: blur(14px) !important;
  }
  .gateway--lockup .logo-beacon-aura--alt {
    inset: -60% -10% !important;
    filter: blur(28px) !important;
  }

  /* --- HERO HEADLINE: scale clean, no clipping --- */
  .gateway h1,
  .gateway--lockup h1 {
    font-size: clamp(22px, 6.6vw, 32px) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.018em !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: none !important;
    padding: 0 6px !important;
    max-width: 100% !important;
    text-wrap: balance;
  }
  /* The desktop <br> in the hero would force a too-long line on mobile —
     hide it so the browser wraps naturally between "revenue" and "inside".
     The empty space before the <span> also restores the natural word break. */
  .gateway h1 br,
  .gateway--lockup h1 br { display: none !important; }
  .gateway h1 span,
  .gateway--lockup h1 span { display: inline; }
  .gateway h1 span::before,
  .gateway--lockup h1 span::before { content: ' '; }
  /* Keep the lockup image strictly inside its container — no horizontal overflow */
  .gateway--lockup .logo-beacon { overflow: hidden !important; }
  .gateway--lockup .logo-beacon-mark { width: 100% !important; height: auto !important; max-width: 100% !important; object-fit: contain !important; }
  .gateway .lede,
  .gateway--lockup .lede {
    font-size: 16px !important;
    line-height: 1.55 !important;
    max-width: 100% !important;
    padding: 0 4px !important;
  }
  .gateway .cta-row {
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
  }
  .gateway .cta-row .btn-launch,
  .gateway .cta-row .btn-secondary,
  .gateway .cta-row .btn,
  .gateway .cta-row a {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    min-height: 48px !important;
    padding: 14px 16px !important;
  }
  .gateway .powered-by {
    font-size: 9.5px !important;
    padding: 6px 12px !important;
    margin-top: 18px !important;
  }
  .gateway .scroll-hint { display: none !important; }

  /* --- SECTION HEADINGS: prevent clipping anywhere --- */
  .mkt-section h1 { font-size: clamp(28px, 8vw, 36px) !important; line-height: 1.1 !important; }
  .mkt-section h2 { font-size: clamp(24px, 7vw, 30px) !important; line-height: 1.15 !important; }
  .mkt-section h3 { font-size: 17px !important; line-height: 1.4 !important; }
  .mkt-section .lede { font-size: 15.5px !important; line-height: 1.6 !important; }
  .mkt-section { padding: 56px 16px !important; max-width: 100% !important; overflow: hidden !important; }
  .mkt-section.tight { padding: 40px 16px !important; }
  .mkt-eyebrow { font-size: 10.5px !important; padding: 5px 10px !important; }

  /* --- PAIN / FEATURE / STEP GRIDS: stack cleanly --- */
  .pain-grid,
  .feat-grid,
  .test-grid,
  .pricing-grid,
  .steps {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .pain-card, .feat-card, .test-card, .step {
    padding: 22px 18px !important;
  }
  .pain-callout {
    flex-direction: column !important;
    text-align: center !important;
    padding: 22px 18px !important;
  }
  .pain-callout .number { font-size: 38px !important; }

  /* --- PRICING CARDS --- */
  .tier {
    padding: 28px 22px !important;
    margin-bottom: 0 !important;
  }
  .tier.popular {
    transform: none !important;
    margin-top: 8px !important;
  }
  .tier .badge-pop {
    top: -12px !important;
    font-size: 10px !important;
    letter-spacing: 0.10em !important;
    padding: 5px 12px !important;
  }
  .tier .tier-price {
    font-size: 42px !important;
    line-height: 1 !important;
    flex-wrap: wrap !important;
  }
  .tier .tier-price .strike-pre,
  .tier .strike-pre {
    font-size: 18px !important;
    margin-right: 6px !important;
  }
  .tier .tier-price .per { font-size: 14px !important; }
  .tier .tier-best { font-size: 13px !important; line-height: 1.45 !important; margin-bottom: 18px !important; }
  .tier ul { margin-bottom: 20px !important; }
  .tier li { font-size: 13.5px !important; line-height: 1.5 !important; padding: 6px 0 !important; }
  .tier .btn,
  .tier .btn.full {
    min-height: 48px !important;
    font-size: 14px !important;
    padding: 13px 16px !important;
    white-space: normal !important;
    line-height: 1.25 !important;
  }

  /* Billing toggle */
  .bill-toggle { margin-bottom: 24px !important; }
  .bill-toggle-opt { padding: 8px 14px !important; font-size: 12.5px !important; }
  .bill-toggle-save { font-size: 9px !important; padding: 1px 5px !important; }

  /* --- FAQ --- */
  .faq-item .faq-q,
  .faq__q,
  details.faq-item summary {
    padding: 16px 48px 16px 18px !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
  }
  .faq-item .faq-a,
  .faq__a {
    padding: 0 18px 18px !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
  }
  .faq-item .faq-q::after,
  .faq__q::after { right: 16px !important; }

  /* --- BIG CTA --- */
  .big-cta {
    padding: 56px 16px !important;
    text-align: center !important;
  }
  .big-cta h2 { font-size: clamp(24px, 7vw, 30px) !important; }
  .big-cta .lede { font-size: 15.5px !important; }
  .big-cta .btn,
  .big-cta a.btn {
    width: 100% !important;
    min-height: 50px !important;
    justify-content: center !important;
  }
  .big-cta .btn + .btn,
  .big-cta a.btn + a.btn { margin-left: 0 !important; margin-top: 10px !important; }

  /* --- FOOTER --- */
  .mkt-footer {
    padding: 40px 16px 0 !important;
  }
  .mkt-footer-inner {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    padding: 0 !important;
  }
  .mkt-footer-inner > div { min-width: 0 !important; }
  .mkt-footer h4 { font-size: 11px !important; }
  .mkt-footer ul li a,
  .mkt-footer .col-brand p,
  .mkt-footer p { font-size: 14px !important; }
  .mkt-footer .legal {
    flex-direction: column !important;
    gap: 8px !important;
    align-items: flex-start !important;
    font-size: 11px !important;
    padding: 16px !important;
  }

  /* --- TAP TARGETS --- */
  a, button, .btn, input, select, textarea { -webkit-tap-highlight-color: rgba(0,212,255,0.18); }
  a, button, .btn { min-height: 36px; }

  /* --- INTAKE FORM --- */
  .intake-form { padding: 0 !important; }
  .intake-form .grid2 { grid-template-columns: 1fr !important; }
  .intake-form input,
  .intake-form select,
  .intake-form textarea {
    font-size: 16px !important;     /* prevent iOS zoom-on-focus */
    padding: 14px 14px !important;
    min-height: 48px !important;
  }
  .intake-form button,
  .intake-form .btn {
    width: 100% !important;
    min-height: 50px !important;
    font-size: 15px !important;
  }

  /* --- SAFE-AREA & HORIZONTAL OVERFLOW LOCK --- */
  html, body { max-width: 100vw !important; overflow-x: hidden !important; }
  .container, .mkt-section, section { overflow-x: clip; }
}

/* === Smaller phones (≤ 380px) — extra tightening === */
@media (max-width: 380px) {
  .mkt-nav .brand img,
  .mkt-nav .topbar__brand img { height: 26px !important; max-width: 130px !important; }
  .gateway h1, .gateway--lockup h1 { font-size: 26px !important; }
  .mkt-section h1 { font-size: 26px !important; }
  .mkt-section h2 { font-size: 22px !important; }
  .tier .tier-price { font-size: 36px !important; }
  .tier .badge-pop { font-size: 9px !important; padding: 4px 10px !important; letter-spacing: 0.08em !important; }
}

/* === Mobile-wide CTA collapse (≤ 720px) — keep brand + hamburger only,
       BUT only when the topbar has a hamburger. On pages without one (e.g.,
       /intake.html with just a "← Back" link), keep the back link visible. === */
@media (max-width: 720px) {
  /* Only hide CTAs when a hamburger toggle exists in the same nav */
  .mkt-nav:has(.mkt-mobile-toggle) .mkt-nav-cta .btn.primary,
  .mkt-nav:has(.mkt-mobile-toggle) .mkt-nav-cta a.btn.primary,
  .mkt-nav:has(.mkt-mobile-toggle) .mkt-nav-cta a[class*="btn"].primary,
  .mkt-nav:has(.mkt-mobile-toggle) .mkt-nav-cta .btn,
  .mkt-nav:has(.mkt-mobile-toggle) .mkt-nav-cta a[class*="btn"]:not(.mkt-mobile-toggle) {
    display: none !important;
  }
  /* On pages WITHOUT a hamburger (e.g. intake.html — only a "← Back" link),
     keep the nav-cta button visible at compact size. The :has() rule above
     hides them on pages WITH a hamburger; this rule defends the rest. */
  .mkt-nav:not(:has(.mkt-mobile-toggle)) .mkt-nav-cta .btn,
  .mkt-nav:not(:has(.mkt-mobile-toggle)) .mkt-nav-cta a[class*="btn"] {
    display: inline-flex !important;
    font-size: 12.5px !important;
    padding: 9px 14px !important;
    min-height: 40px !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .mkt-nav-cta { gap: 4px !important; margin-left: auto !important; }
  .mkt-nav { padding: 0 14px !important; gap: 12px !important; }
  .mkt-nav .brand { margin-right: auto !important; }
  /* Hamburger toggle — refined cyan-tinted, max-specificity selector */
  button#mkt-mobile-toggle.mkt-mobile-toggle {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 10 !important;
    width: 42px !important; height: 42px !important;
    min-width: 42px !important; min-height: 42px !important;
    align-items: center !important; justify-content: center !important;
    background: rgba(0, 212, 255, 0.10) !important;
    border: 1px solid rgba(0, 212, 255, 0.40) !important;
    border-radius: 10px !important;
    color: var(--accent) !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
    overflow: visible !important;
    transition: background 180ms ease, transform 120ms ease;
  }
  button#mkt-mobile-toggle.mkt-mobile-toggle svg {
    display: block !important;
    width: 22px !important; height: 22px !important;
    stroke: var(--accent) !important;
    stroke-width: 2.4 !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  button#mkt-mobile-toggle.mkt-mobile-toggle:active {
    background: rgba(0, 212, 255, 0.22) !important;
    transform: scale(0.96);
  }

  /* Re-show inside the drawer the things we hid in the topbar */
  .mobile-drawer .btn,
  .mobile-drawer a[class*="btn"] { display: inline-flex !important; }
}

/* ============================================================================
   FAMILY SUITE — TwinFlame Revenue Cycle OS cross-product surface
   Adds: Suite dropdown (mkt-nav + dashboard topbar), footer family column,
         Internal Demo card (matches Denial OS pattern verbatim).
   Per SYSTEM.md design contract — no changes to canonical palette/typography.
   ============================================================================ */

.suite-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.suite-switch__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--border-strong);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s var(--ease);
  white-space: nowrap;
}
.suite-switch__btn:hover,
.suite-switch__btn[aria-expanded="true"] {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-soft);
}
.suite-switch__btn .chev {
  font-size: 9px;
  transition: transform 0.18s var(--ease);
  opacity: 0.7;
}
.suite-switch__btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.suite-switch__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 320px;
  background: linear-gradient(180deg, var(--bg-elev-1), rgba(10, 15, 28, 0.94));
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  padding: 8px;
  display: none;
  z-index: 1000;
  backdrop-filter: blur(12px);
}
.suite-switch__menu.open { display: block; }
.suite-switch__head {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 10px 12px 6px;
  font-weight: 600;
}
.suite-switch__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.12s var(--ease);
  font-family: var(--font-ui);
}
.suite-switch__item:hover { background: var(--bg-elev-2); }
.suite-switch__item.is-current { background: var(--accent-soft); }
.suite-switch__item.is-current .name { color: var(--accent); }
.suite-switch__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex-shrink: 0;
  box-shadow: 0 0 8px currentColor;
}
.suite-switch__item .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.suite-switch__item .verb {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.suite-switch__item .text-wrap { display: flex; flex-direction: column; min-width: 0; }
.suite-switch__divider {
  height: 1px;
  background: var(--border);
  margin: 6px 8px;
}
.suite-switch__hub {
  display: block;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  padding: 12px;
  border-radius: 10px;
}
.suite-switch__hub:hover { background: var(--bg-elev-2); color: var(--accent); }

@media (max-width: 720px) {
  .suite-switch__menu { right: -8px; min-width: 280px; }
}

/* Internal Demo Card — Denial OS visual pattern, ReimburseOS cyan accent */
.demo-card {
  margin-top: 18px;
  padding: 22px;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(0, 212, 255, 0.45);
  background: linear-gradient(180deg, rgba(0, 212, 255, 0.06) 0%, rgba(0, 212, 255, 0.015) 100%);
  box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.18), 0 12px 36px -12px rgba(0, 212, 255, 0.45);
}
.demo-card::after {
  content: "";
  position: absolute;
  top: -48px;
  right: 0;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.32), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}
.demo-card__inner { position: relative; }
.demo-card__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}
.demo-card__eyebrow .pip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.18);
  color: var(--accent);
  font-size: 11px;
}
.demo-card__h {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--text);
}
.demo-card__p {
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-dim);
  margin: 0 0 16px;
}
.demo-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 22px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #00aacc);
  color: var(--bg-base);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 0 1px var(--accent), 0 0 22px var(--accent-glow);
  transition: all 0.15s var(--ease);
  min-height: 48px;
}
.demo-card__btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.demo-card__sub {
  margin-top: 12px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  line-height: 1.5;
}
.demo-card__advanced {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 212, 255, 0.18);
}
.demo-card__advanced-toggle {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  font-weight: 600;
}
.demo-card__advanced-toggle:hover { color: var(--text-dim); }

/* Footer family column */
.mkt-footer .family-col ul li a:hover { color: var(--accent); }
.mkt-footer .family-col .verb {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-top: 1px;
}
