/* AskQA Viral — enterprise design system (Vercel / Linear tier) */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;450;500;600&family=Plus+Jakarta+Sans:wght@500;600;700&display=swap');

:root {
  --bg: #f4f7fb;
  --bg-elevated: #ffffff;
  --bg-subtle: #eef2f7;
  --bg-card: #ffffff;
  --bg-card-solid: #ffffff;
  --bg-soft: #f8fafc;
  --border: rgba(15, 23, 42, 0.08);
  --border-hover: rgba(15, 23, 42, 0.14);
  --border-strong: rgba(15, 23, 42, 0.18);
  --text: #0f172a;
  --text-secondary: #475569;
  --muted: #64748b;
  --muted-dim: #94a3b8;
  --accent: #3b82f6;
  --accent-dim: #2563eb;
  --surface-hover: rgba(15, 23, 42, 0.04);
  --blue: #3b82f6;
  --violet: #8b5cf6;
  --success: #059669;
  --error: #ee0000;
  --hot: #f5a623;
  --warm: #facc15;
  --cold: #79b8ff;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --nav-h: 68px;
  --nav-pad-x: 24px;
  --sidebar-w: 240px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Plus Jakarta Sans', var(--font);
  --font-mono: ui-monospace, 'SF Mono', 'Cascadia Code', monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --landing-max: 1180px;
  --gradient-brand: linear-gradient(135deg, #2563eb 0%, #6366f1 52%, #7c3aed 100%);
}
.is-landing {
  --ai-blue: #2563eb;
  --ai-indigo: #6366f1;
  --ai-violet: #7c3aed;
  --ai-purple: #6d28d9;
  --ai-cyan: #38bdf8;
  --ai-ink: #0f172a;
  --ai-mid: #312e81;
  --ai-blue-rgb: 37, 99, 235;
  --ai-indigo-rgb: 99, 102, 241;
  --ai-violet-rgb: 124, 58, 237;
  --ai-cyan-rgb: 56, 189, 248;
  --gradient-ai: linear-gradient(135deg, var(--ai-blue) 0%, var(--ai-indigo) 50%, var(--ai-violet) 100%);
  --gradient-cta: linear-gradient(135deg, #2563eb 0%, #6366f1 45%, #7c3aed 100%);
  --gradient-mix: linear-gradient(135deg, #ffffff 0%, #dbeafe 28%, #e9d5ff 62%, #c4b5fd 100%);
}

body.is-landing {
  background: #fafbff;
}

.is-landing .page {
  background: #fafbff;
}

.landing-hero__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at 88% 10%, rgba(var(--ai-blue-rgb), 0.14), transparent 58%),
    radial-gradient(ellipse 55% 50% at 10% 88%, rgba(var(--ai-violet-rgb), 0.12), transparent 55%),
    radial-gradient(ellipse 45% 40% at 50% 45%, rgba(255, 255, 255, 0.85), transparent 65%);
  pointer-events: none;
}

.landing-platform__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 58% 52% at 14% 28%, rgba(var(--ai-violet-rgb), 0.16), transparent 58%),
    radial-gradient(ellipse 55% 50% at 86% 72%, rgba(var(--ai-blue-rgb), 0.15), transparent 55%),
    radial-gradient(ellipse 50% 42% at 52% 50%, rgba(255, 255, 255, 0.55), transparent 62%);
  pointer-events: none;
}

.landing-platform__glow::after {
  display: none;
}

body.is-landing::before,
body.is-landing::after {
  display: none;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font);
  background: linear-gradient(165deg, #ffffff 0%, var(--bg) 40%, #e8eef6 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  font-size: 14px;
  letter-spacing: -0.011em;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% -25%, rgba(37, 99, 235, 0.08), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 20%, rgba(14, 165, 233, 0.06), transparent 50%),
    radial-gradient(ellipse 45% 35% at 0% 80%, rgba(99, 102, 241, 0.05), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 20%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

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

.page { position: relative; z-index: 1; }

a { color: var(--text); text-decoration: none; transition: color 0.15s var(--ease); }
a:hover { color: var(--accent-dim); }

/* ── Nav: logo left, login/logout right ── */
.nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  width: 100%;
  height: var(--nav-h);
  padding: 0 var(--nav-pad-x);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px) saturate(180%);
  position: sticky;
  top: 0;
  z-index: 200;
}

.is-landing .nav {
  justify-content: flex-start;
  padding: 0 var(--nav-pad-x);
}

.nav-shell {
  width: 100%;
  max-width: var(--landing-max);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
}

.logo:hover { color: var(--text); }

.logo-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--gradient-brand);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
}

.logo-mark svg { display: block; }

.nav-links,
.nav-end {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-link {
  color: var(--muted);
  font-size: 13px;
  font-weight: 450;
  padding: 8px 12px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.nav-link:hover { color: var(--text); background: var(--surface-hover); text-decoration: none; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 14px;
  height: 36px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 500;
  font-size: 13px;
  border: none;
  cursor: pointer;
  transition: background 0.15s var(--ease), border-color 0.15s, opacity 0.15s;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.btn:hover { text-decoration: none; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-primary {
  background: var(--gradient-ai);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(var(--ai-blue-rgb), 0.32);
}

.btn-primary:hover {
  filter: brightness(1.05);
  color: #ffffff;
  box-shadow: 0 6px 22px rgba(var(--ai-violet-rgb), 0.35);
}

.btn-primary:active {
  transform: scale(0.98);
  filter: brightness(0.92);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.22);
}

.btn-ghost {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--text-secondary);
  background: var(--bg-soft);
  color: var(--text);
}

.btn-lg { height: 44px; padding: 0 20px; font-size: 14px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12px; }
.btn-block { width: 100%; }

.auth-card .btn-block {
  min-height: 48px;
  height: 48px;
  font-size: 15px;
  font-weight: 600;
  margin-top: 4px;
}

.auth-card input[type="email"],
.auth-card input[type="text"],
.auth-card input[type="password"] {
  min-height: 48px;
  font-size: 16px;
}

.auth-footer a {
  display: inline-block;
  padding: 10px 6px;
  min-height: 44px;
  line-height: 24px;
}

.auth-card .text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 6px 0;
}

/* ── Landing: layout in web/css/landing.css ── */
html.is-landing {
  scroll-behavior: smooth;
}

html.is-landing,
body.is-landing {
  overflow-x: hidden;
}

.is-landing .nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
}

.landing-inner {
  width: 100%;
  max-width: var(--landing-max);
  margin: 0 auto;
}

.panel-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(147, 197, 253, 0.95);
  margin-bottom: 20px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(147, 197, 253, 0.25);
  background: rgba(147, 197, 253, 0.08);
}

.panel-tag--brand {
  color: #5b8def;
  border-color: rgba(var(--ai-blue-rgb), 0.2);
  background: rgba(var(--ai-blue-rgb), 0.07);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 8px 16px;
}

.landing-workflow .panel-tag--brand,
.landing-cta .panel-tag--brand {
  color: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
}

.text-gradient {
  background: var(--gradient-ai);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-gradient-light {
  background: linear-gradient(135deg, #ffffff 0%, #bfdbfe 55%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-dim);
  animation: scroll-bob 2.5s ease-in-out infinite;
}

.scroll-hint:hover { color: var(--blue); text-decoration: none; }

@keyframes scroll-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

.nav-link.is-active {
  color: var(--text);
  background: var(--surface-hover);
}

/* §1 Hero content */
.landing-hero .trust-num {
  background: var(--gradient-ai);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.landing-hero .badge-dot {
  background: var(--ai-cyan);
  box-shadow: 0 0 10px rgba(var(--ai-cyan-rgb), 0.55);
}

.landing-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-content {
  text-align: left;
  max-width: 540px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(var(--ai-blue-rgb), 0.16);
  color: #64748b;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 28px;
  box-shadow: 0 4px 20px -12px rgba(var(--ai-blue-rgb), 0.2);
  backdrop-filter: blur(8px);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7dd3fc;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(var(--ai-cyan-rgb), 0.35);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.2vw, 58px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.045em;
  margin-bottom: 22px;
  color: var(--text);
}

.hero-lead {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 460px;
  margin-bottom: 36px;
  line-height: 1.65;
  font-weight: 400;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 520px;
}

.trust-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(59, 130, 246, 0.14);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.6) inset,
    0 10px 32px -18px rgba(59, 130, 246, 0.28);
  backdrop-filter: blur(10px);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.trust-card:hover {
  border-color: rgba(139, 92, 246, 0.28);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.7) inset,
    0 12px 36px -16px rgba(139, 92, 246, 0.25);
}

.trust-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.04em;
  background: var(--gradient-ai);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}

.trust-lbl {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
  line-height: 1.35;
}

/* Product preview */
.hero-visual {
  position: relative;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -20% -10%;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(37, 99, 235, 0.14), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-card {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: calc(var(--radius-xl) + 4px);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.65) inset,
    0 0 40px -12px rgba(59, 130, 246, 0.25),
    0 32px 80px -24px rgba(15, 23, 42, 0.14);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  transform: perspective(1200px) rotateY(-2deg) rotateX(1deg);
}

.hero-visual:hover .hero-card {
  transform: perspective(1200px) rotateY(0deg) rotateX(0deg);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.75) inset,
    0 0 56px -8px rgba(139, 92, 246, 0.3),
    0 40px 96px -28px rgba(59, 130, 246, 0.22);
}

.hero-card:not(.is-preview) {
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow:
    0 0 0 1px rgba(37, 99, 235, 0.12),
    0 28px 64px rgba(37, 99, 235, 0.12);
}

.preview-ribbon {
  display: block;
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--muted);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.03), rgba(15, 23, 42, 0.06), rgba(15, 23, 42, 0.03));
  border-bottom: 1px solid var(--border);
}

.hero-card:not(.is-preview) .preview-ribbon { display: none; }

.preview-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}

.preview-dots { display: flex; gap: 6px; }
.preview-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.06);
}

.preview-title {
  font-size: 11px;
  font-weight: 450;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0;
}

.status-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--success);
  font-weight: 500;
  font-family: var(--font-mono);
}

.status-idle,
.status-done {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  font-family: var(--font-mono);
  color: var(--muted);
}

.status-done { color: var(--blue); }

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}

.status-live .status-dot {
  background: var(--success);
  opacity: 1;
  box-shadow: 0 0 8px rgba(5, 150, 105, 0.45);
}

.hero-card-header {
  display: none;
}

.agent-pipeline { padding: 4px 0; }

.agent-row {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.agent-row--idle .agent-icon {
  background: var(--bg-subtle);
  color: var(--muted-dim);
}

.hero-card-footer {
  padding: 12px 16px 14px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}

.agent-row:last-child { border-bottom: none; }
.agent-row:hover { background: var(--surface-hover); }

.agent-row.active {
  background: rgba(37, 99, 235, 0.06);
  animation: agent-pulse 2.4s ease-in-out infinite;
}

@keyframes agent-pulse {
  0%, 100% { background: rgba(37, 99, 235, 0.05); }
  50% { background: rgba(37, 99, 235, 0.1); }
}

.agent-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: var(--bg-subtle);
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
}

.agent-row.active .agent-icon {
  background: var(--blue);
  color: #fff;
}

.agent-info { min-width: 0; }
.agent-name { font-size: 13px; font-weight: 500; letter-spacing: -0.01em; }
.agent-task { font-size: 12px; color: var(--muted); margin-top: 1px; }

.agent-status {
  font-size: 10px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.agent-status.done { background: rgba(80, 227, 194, 0.1); color: var(--success); }
.agent-status.run { background: rgba(37, 99, 235, 0.1); color: var(--blue); }
.agent-status.wait { background: transparent; color: var(--muted-dim); border: 1px solid var(--border); }

/* §2 Platform — same light theme as hero */
.landing-platform .platform-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.2vw, 52px);
  font-weight: 700;
  margin-bottom: 22px;
  line-height: 1.06;
  letter-spacing: -0.04em;
  color: var(--text);
}

.landing-platform .platform-intro > p {
  font-size: clamp(16px, 1.6vw, 18px);
  margin-bottom: 32px;
  line-height: 1.7;
  max-width: none;
  color: #64748b;
}

.landing-platform .platform-highlights li {
  font-size: 15px;
  color: #475569;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(var(--ai-blue-rgb), 0.12);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px -16px rgba(var(--ai-blue-rgb), 0.15);
}

.platform-highlight__icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: #5b8def;
  background: rgba(var(--ai-blue-rgb), 0.1);
  border: 1px solid rgba(var(--ai-blue-rgb), 0.16);
}

.landing-platform .platform-highlights li {
  gap: 14px;
}

.landing-platform .bento-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #94a3b8;
}

.landing-platform .bento-chips span {
  font-size: 12px;
  padding: 6px 12px;
  background: rgba(var(--ai-blue-rgb), 0.06);
  color: #64748b;
  border-color: rgba(var(--ai-blue-rgb), 0.1);
}

.landing-platform .bento-card {
  padding: 18px 20px;
  border-radius: 16px;
  overflow: visible;
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(var(--ai-blue-rgb), 0.12);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.6) inset,
    0 12px 36px -18px rgba(var(--ai-blue-rgb), 0.18);
}

.platform-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}

.landing-platform .platform-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.landing-platform .platform-highlights {
  gap: 12px;
}

.landing-platform .platform-highlights li::before {
  display: none;
}

.landing-platform .platform-bento {
  gap: 14px;
  grid-template-rows: auto auto auto;
  max-width: 520px;
  margin-left: auto;
  width: 100%;
}

.landing-platform .bento-wide {
  padding: 20px 22px 22px;
}

.landing-platform .bento-wide .bento-bar {
  margin-top: 2px;
}

.landing-platform .bento-inbox-card .bento-head {
  margin-bottom: 14px;
}

.landing-platform .bento-inbox-card .bento-inbox {
  flex-direction: row;
  gap: 12px;
}

.landing-platform .bento-inbox-card .bento-inbox li {
  flex: 1;
  min-width: 0;
  padding: 11px 12px;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.landing-platform .bento-title {
  font-size: 17px;
  margin-bottom: 14px;
}

.landing-platform .bento-head {
  margin-bottom: 16px;
}

.landing-platform .bento-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 16px;
}

.landing-platform .bento-label {
  font-size: 12px;
}

.landing-platform .bento-chips {
  gap: 8px;
  margin-bottom: 18px;
}

.landing-platform .bento-chips span {
  font-size: 12px;
  padding: 6px 12px;
}

.landing-platform .bento-bar {
  height: 6px;
}

.landing-platform .bento-scores {
  gap: 22px;
}

.landing-platform .bento-scores div {
  font-size: 13px;
}

.landing-platform .bento-scores em {
  font-size: 26px;
  margin-bottom: 2px;
}

.landing-platform .bento-stat {
  font-size: 28px;
}

.landing-platform .bento-spark {
  height: 44px;
  margin-top: 12px;
}

.landing-platform .bento-spark span {
  border-radius: 4px 4px 0 0;
}

.landing-platform .bento-inbox li {
  font-size: 14px;
  padding: 12px 14px;
}

.landing-platform .bento-inbox {
  gap: 10px;
}

@container platform-panel (max-height: 760px) {
  .landing-platform .platform-intro h2 {
    font-size: clamp(32px, 3.8vw, 44px);
    margin-bottom: 16px;
  }

  .landing-platform .platform-intro > p {
    font-size: 16px;
    margin-bottom: 24px;
  }

  .landing-platform .platform-highlights li {
    padding: 12px 16px;
    font-size: 14px;
  }

  .landing-platform .platform-bento {
    gap: 12px;
    max-width: 480px;
  }

  .landing-platform .bento-card {
    padding: 16px 18px;
  }

  .landing-platform .bento-wide {
    padding: 18px 20px 20px;
  }

  .landing-platform .bento-scores em {
    font-size: 24px;
  }

  .landing-platform .bento-spark {
    height: 40px;
    margin-top: 10px;
  }

  .landing-platform .bento-stat {
    font-size: 26px;
  }
}

@container platform-panel (max-height: 640px) {
  .landing-platform .platform-layout {
    gap: clamp(24px, 3vw, 36px);
  }

  .landing-platform .platform-intro h2 {
    font-size: clamp(28px, 3.2vw, 38px);
  }

  .landing-platform .platform-bento {
    gap: 10px;
    max-width: 440px;
  }

  .landing-platform .bento-card {
    padding: 14px 16px;
  }

  .landing-platform .bento-wide {
    padding: 16px 18px 18px;
  }

  .landing-platform .bento-icon {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }

  .landing-platform .bento-inbox-card .bento-inbox li {
    padding: 9px 10px;
    font-size: 12px;
  }
}

.platform-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.8vw, 44px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 18px;
  color: var(--text);
}

.platform-intro > p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  max-width: 380px;
  margin-bottom: 28px;
}

.platform-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.platform-highlights li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}

.platform-highlights li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.35);
  flex-shrink: 0;
}

.platform-bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto auto;
  gap: 14px;
}

.bento-card {
  padding: 20px 22px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(37, 99, 235, 0.12);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.5) inset,
    0 16px 40px -24px rgba(37, 99, 235, 0.16);
  backdrop-filter: blur(12px);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s;
}

.bento-card:hover {
  border-color: rgba(37, 99, 235, 0.28);
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.65) inset,
    0 28px 56px -24px rgba(37, 99, 235, 0.24);
}

.bento-wide { grid-column: 1 / -1; }
.bento-tall { grid-row: span 1; }

.bento-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.bento-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 14px;
  flex-shrink: 0;
}

.bento-icon--blue { background: rgba(37, 99, 235, 0.1); color: var(--blue); }
.bento-icon--green { background: rgba(5, 150, 105, 0.1); color: var(--success); }
.bento-icon--violet { background: rgba(124, 58, 237, 0.1); color: #7c3aed; }
.bento-icon--cyan { background: rgba(6, 182, 212, 0.1); color: #0891b2; }

.bento-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.bento-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 12px;
}

.bento-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.bento-chips span {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.bento-bar {
  height: 4px;
  border-radius: 4px;
  background: var(--bg-subtle);
  overflow: hidden;
}

.bento-bar span {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
}

.bento-scores {
  display: flex;
  gap: 16px;
}

.bento-scores div {
  font-size: 12px;
  color: var(--muted);
}

.bento-scores em {
  display: block;
  font-style: normal;
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.03em;
}

.bento-stat {
  font-size: 28px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.03em;
}

.bento-stat small {
  font-size: 12px;
  font-weight: 450;
  color: var(--muted);
  margin-left: 4px;
}

.bento-spark {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 36px;
  margin-top: 12px;
}

.bento-spark span {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #3b82f6, rgba(59, 130, 246, 0.25));
}

.bento-spark span:nth-child(1) { height: 40%; }
.bento-spark span:nth-child(2) { height: 65%; }
.bento-spark span:nth-child(3) { height: 50%; }
.bento-spark span:nth-child(4) { height: 85%; }
.bento-spark span:nth-child(5) { height: 60%; }

.bento-inbox {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bento-inbox li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-secondary);
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.bento-inbox .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted-dim);
  flex-shrink: 0;
}

.bento-inbox .dot--new {
  background: var(--success);
  box-shadow: 0 0 6px rgba(5, 150, 105, 0.4);
}

/* §3 Workflow — transparent (shared gradient) */
.landing-workflow {
  color: #ffffff;
}

.landing-workflow__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at 15% 40%, rgba(var(--ai-blue-rgb), 0.2), transparent 55%),
    radial-gradient(ellipse 55% 50% at 85% 60%, rgba(var(--ai-violet-rgb), 0.2), transparent 55%);
  pointer-events: none;
}

.landing-workflow__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.landing-workflow .workflow-head h2 {
  color: #ffffff;
}

.landing-workflow .workflow-head p {
  color: rgba(255, 255, 255, 0.78);
}

.landing-workflow .workflow-metrics {
  background: rgba(0, 0, 0, 0.22);
  border-color: rgba(255, 255, 255, 0.2);
}

.landing-workflow .workflow-metric__val {
  background: var(--gradient-ai);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.landing-workflow .workflow-metric__lbl {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.landing-workflow .flow-step {
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  font-size: 12px;
  padding: 5px 12px;
}

.landing-workflow .flow-card p {
  color: rgba(255, 255, 255, 0.68);
}

.landing-workflow .flow-card {
  background: rgba(0, 0, 0, 0.28);
  border-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.landing-workflow .flow-card h3 {
  color: rgba(255, 255, 255, 0.95);
}

.landing-workflow .flow-card:hover {
  border-color: rgba(var(--ai-cyan-rgb), 0.45);
  background: rgba(0, 0, 0, 0.38);
}

.landing-workflow .workflow-connector {
  background: rgba(255, 255, 255, 0.12);
}

.landing-workflow .workflow-connector span {
  background: var(--gradient-ai);
}

.workflow-layout {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vh, 48px);
  width: 100%;
}

.workflow-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-shrink: 0;
  text-align: center;
  width: 100%;
}

.workflow-head {
  text-align: left;
  max-width: 560px;
  margin: 0;
}

.workflow-head--center {
  text-align: center;
  margin: 0 auto;
}

.workflow-head--center .panel-tag {
  margin-left: auto;
  margin-right: auto;
}

.workflow-head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
  line-height: 1.08;
}

.workflow-head p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
}

.workflow-head--center p {
  margin-left: auto;
  margin-right: auto;
}

.workflow-metrics {
  display: flex;
  gap: 20px;
  padding: 14px 20px;
  flex-shrink: 0;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(139, 92, 246, 0.2);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.7) inset,
    0 16px 48px -20px rgba(59, 130, 246, 0.22),
    0 16px 48px -20px rgba(139, 92, 246, 0.18);
  backdrop-filter: blur(10px);
}

.workflow-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
  min-width: 72px;
}

.workflow-metric__val {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  background: var(--gradient-ai);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.workflow-metric__lbl {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.workflow-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  position: relative;
  flex: 1;
  min-height: 0;
  align-items: stretch;
}

.workflow-connector {
  position: absolute;
  top: 52px;
  left: 8%;
  right: 8%;
  height: 2px;
  z-index: 0;
  overflow: hidden;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
}

.workflow-connector span {
  display: block;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, transparent, var(--ai-blue), var(--ai-violet), var(--ai-cyan), transparent);
  animation: flow-beam 3.5s ease-in-out infinite;
}

@keyframes flow-beam {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

.flow-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: clamp(14px, 1.8vh, 20px) clamp(12px, 1.5vw, 18px);
  min-height: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(139, 92, 246, 0.16);
  box-shadow:
    0 4px 24px -8px rgba(59, 130, 246, 0.12),
    0 4px 24px -8px rgba(139, 92, 246, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.flow-card:hover {
  transform: translateY(-6px);
  border-color: rgba(59, 130, 246, 0.32);
  box-shadow:
    0 0 32px -12px rgba(59, 130, 246, 0.28),
    0 0 32px -12px rgba(139, 92, 246, 0.22),
    0 24px 56px -20px rgba(15, 23, 42, 0.1);
}

.flow-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.flow-step {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--blue);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.12);
}

.flow-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 15px;
}

.flow-icon--blue { background: rgba(37, 99, 235, 0.1); color: var(--blue); }
.flow-icon--violet { background: rgba(124, 58, 237, 0.1); color: #7c3aed; }
.flow-icon--green { background: rgba(5, 150, 105, 0.1); color: var(--success); }
.flow-icon--cyan { background: rgba(6, 182, 212, 0.1); color: #0891b2; }

.flow-card h3 {
  font-family: var(--font-display);
  font-size: clamp(14px, 1.4vw, 16px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.flow-card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
  flex: 1;
  margin-bottom: 12px;
}

.flow-visual {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.flow-visual span {
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.flow-visual--agents {
  justify-content: center;
  gap: 8px;
  border-top: none;
  padding-top: 8px;
}

.agent-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.2);
  border: 1px solid rgba(37, 99, 235, 0.25);
}

.agent-dot--pulse {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
  animation: agent-dot-pulse 2s ease-in-out infinite;
}

@keyframes agent-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15); }
  50% { box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.08); }
}

.flow-visual--scores { gap: 8px; }

.score {
  font-size: 11px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
}

.score--hot { background: rgba(245, 166, 35, 0.12); color: #b45309; border: 1px solid rgba(245, 166, 35, 0.2); }
.score--warm { background: rgba(250, 204, 21, 0.12); color: #a16207; border: 1px solid rgba(250, 204, 21, 0.2); }
.score--cold { background: rgba(121, 184, 255, 0.12); color: #1d4ed8; border: 1px solid rgba(121, 184, 255, 0.2); }

.flow-visual--channels span {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(124, 58, 237, 0.06));
  border-color: rgba(37, 99, 235, 0.12);
}

/* §4 CTA — transparent (shared gradient, strongest at bottom) */
.landing-cta {
  color: #ffffff;
  justify-content: flex-end;
  padding-bottom: 0;
}

.landing-cta__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 45% at 20% 50%, rgba(var(--ai-blue-rgb), 0.15), transparent 55%),
    radial-gradient(ellipse 50% 45% at 80% 50%, rgba(var(--ai-violet-rgb), 0.12), transparent 55%);
  pointer-events: none;
}

.landing-cta .cta-main h2 {
  color: #ffffff;
}

.landing-cta .cta-main > p {
  color: rgba(255, 255, 255, 0.82);
}

.landing-cta .cta-checklist li {
  color: rgba(255, 255, 255, 0.88);
}

.landing-cta .cta-checklist strong {
  color: #ffffff;
}

.landing-cta .cta-aside {
  background: rgba(0, 0, 0, 0.22);
  border-color: rgba(255, 255, 255, 0.2);
}

.landing-cta .cta-aside h3 {
  color: #ffffff;
}

.landing-cta .cta-steps li {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.landing-cta .cta-steps li strong {
  color: #ffffff;
}

.landing-cta .cta-steps li span {
  color: rgba(255, 255, 255, 0.72);
}

.landing-cta .cta-steps__num {
  color: #ffffff;
  background: rgba(var(--ai-blue-rgb), 0.35);
}

.landing-cta .cta-links {
  border-top-color: rgba(255, 255, 255, 0.16);
}

.landing-cta .cta-links a {
  color: #ffffff;
}

.landing-cta .footer--landing {
  background: rgba(0, 0, 0, 0.28);
  border-top-color: rgba(255, 255, 255, 0.12);
}

.landing-cta .footer--landing .footer-logo,
.landing-cta .footer--landing .footer-contact,
.landing-cta .footer--landing .footer-legal-links a {
  color: rgba(255, 255, 255, 0.85);
}

.landing-cta .btn-ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
}

.cta-layout {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  width: 100%;
}

.cta-main {
  text-align: left;
}

.cta-main h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.8vw, 46px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.08;
  margin-bottom: 16px;
  max-width: 540px;
}

.cta-main > p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 480px;
}

.cta-checklist {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 20px;
  margin-bottom: 28px;
  max-width: 480px;
}

.cta-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.cta-checklist li::before {
  content: "✓";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--ai-cyan);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.35);
  box-shadow: 0 0 12px -2px rgba(34, 211, 238, 0.4);
}

.cta-checklist strong {
  color: var(--text);
  font-weight: 500;
}

.landing-cta__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-aside {
  padding: 32px 32px 28px;
  border-radius: calc(var(--radius-xl) + 4px);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(59, 130, 246, 0.2);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.75) inset,
    0 0 48px -12px rgba(59, 130, 246, 0.3),
    0 0 48px -12px rgba(139, 92, 246, 0.25),
    0 0 48px -12px rgba(34, 211, 238, 0.2);
  backdrop-filter: blur(14px);
}

.cta-aside h3 {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.cta-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
}

.cta-steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.cta-steps__num {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  background: rgba(37, 99, 235, 0.08);
}

.cta-steps li strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
}

.cta-steps li span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.cta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.cta-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--blue);
}

.cta-links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-inner--landing {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
  max-width: var(--landing-max);
  width: 100%;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.footer-inner--landing .footer-logo {
  flex-shrink: 0;
}

.footer-contact {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.footer-contact:hover {
  color: var(--blue);
  text-decoration: none;
}

.footer-inner--landing .footer-legal-links {
  flex: 0 1 auto;
  justify-content: flex-end;
  margin-left: auto;
}

.footer-inner--legal {
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
}

.footer-legal-links a {
  font-size: 13px;
  color: var(--muted);
}

.footer-legal-links a:hover {
  color: var(--blue);
  text-decoration: none;
}

.footer-legal-links a[aria-current="page"] {
  color: var(--blue);
  font-weight: 500;
}

/* Site footer — identical to homepage §5 (landing-cta) */
.site-footer-shell {
  flex-shrink: 0;
  width: 100%;
  background: #fff;
  padding-bottom: 12px;
  box-sizing: border-box;
}

.site-footer-shell .footer.footer--landing.footer--site,
.landing-cta > .footer.footer--landing.footer--site {
  margin: 0;
  padding: 6px var(--nav-pad-x, 24px) !important;
  border-top: 1px solid var(--ink, #0a0a0a);
  background: transparent !important;
  width: 100%;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  height: auto;
  min-height: 0;
  max-height: none;
}

.site-footer-shell .footer-inner.footer-inner--landing,
.site-footer-shell .footer-inner.footer-inner--site,
.landing-cta .footer-inner.footer-inner--landing,
.landing-cta .footer-inner.footer-inner--site,
.footer.footer--landing .footer-inner.footer-inner--landing,
.footer.footer--landing .footer-inner.footer-inner--site {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.site-footer-shell .footer-left,
.landing-cta .footer-left,
.footer.footer--landing .footer-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
  min-width: 0;
}

.site-footer-shell a.logo.footer-logo,
.landing-cta a.logo.footer-logo,
.footer.footer--landing a.logo.footer-logo {
  display: inline-flex;
  align-items: center;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  gap: 8px !important;
  color: var(--ink, #0a0a0a);
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.site-footer-shell a.logo.footer-logo .logo-mark,
.landing-cta a.logo.footer-logo .logo-mark,
.footer.footer--landing a.logo.footer-logo .logo-mark {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  flex-shrink: 0;
  border-radius: 4px;
  background: var(--ink, #0a0a0a);
  box-shadow: none;
  display: grid;
  place-items: center;
}

.site-footer-shell a.logo.footer-logo .logo-mark svg,
.landing-cta a.logo.footer-logo .logo-mark svg,
.footer.footer--landing a.logo.footer-logo .logo-mark svg {
  display: block;
  width: 8px;
  height: 8px;
}

.site-footer-shell .footer-contact,
.site-footer-shell .footer-legal-links a,
.landing-cta .footer-contact,
.landing-cta .footer-legal-links a,
.footer.footer--landing .footer-contact,
.footer.footer--landing .footer-legal-links a {
  font-size: 13px;
  color: var(--muted, #6b6b6b);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1 !important;
}

.site-footer-shell .footer-contact:hover,
.site-footer-shell .footer-legal-links a:hover,
.landing-cta .footer-contact:hover,
.landing-cta .footer-legal-links a:hover,
.footer.footer--landing .footer-contact:hover,
.footer.footer--landing .footer-legal-links a:hover {
  color: var(--ink, #0a0a0a);
  text-decoration: none;
}

.site-footer-shell .footer-legal-links a[aria-current="page"],
.landing-cta .footer-legal-links a[aria-current="page"],
.footer.footer--landing .footer-legal-links a[aria-current="page"] {
  color: var(--ink, #0a0a0a);
  font-weight: 600;
}

.site-footer-shell .footer-legal-links,
.landing-cta .footer-legal-links,
.footer.footer--landing .footer-legal-links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px 16px;
  justify-content: flex-end;
  margin-left: auto;
}

.footer-copy {
  font-size: 12px;
  color: var(--muted-dim);
}

/* Legal document pages */
.legal-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.legal-main {
  flex: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 64px;
  width: 100%;
}

.legal-header h1 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.legal-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 32px;
}

.legal-body h2 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 32px 0 12px;
}

.legal-body h3 {
  font-size: 15px;
  font-weight: 500;
  margin: 20px 0 8px;
}

.legal-body p,
.legal-body li {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.legal-body p { margin-bottom: 14px; }

.legal-body ul {
  margin: 0 0 16px 20px;
}

.legal-body li { margin-bottom: 6px; }

.legal-body a { color: var(--blue); }

.legal-body code {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-soft);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 13px;
}

.legal-table th,
.legal-table td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: var(--bg-soft);
  font-weight: 500;
  color: var(--text);
}

.footer--legal {
  border-top: 1px solid var(--border);
  padding: 14px 24px;
}

.auth-legal {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 16px;
  line-height: 1.5;
}

.auth-footer--legal {
  margin-top: 12px;
  font-size: 12px;
}

.auth-footer--legal a {
  color: var(--muted);
}

.sidebar-legal {
  margin-top: auto;
  padding: 16px 10px 8px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-legal a {
  font-size: 11px;
  color: var(--muted-dim);
}

.sidebar-legal a:hover {
  color: var(--blue);
  text-decoration: none;
}

/* Legacy section helpers (dashboard etc.) */
.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 80px 24px;
  border-top: 1px solid var(--border);
}

.section-header {
  max-width: 560px;
  margin-bottom: 48px;
}

.section-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  line-height: 1.15;
}

.section-header p { color: var(--muted); font-size: 15px; line-height: 1.6; }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.feature-card {
  background: var(--bg);
  padding: 32px 28px;
  transition: background 0.2s;
}

.feature-card:hover { background: var(--bg-elevated); }

.feature-icon {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}

.feature-card h3 {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.feature-card p { color: var(--muted); font-size: 13px; line-height: 1.65; }

.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.how-step {
  padding: 24px 0 0;
  border-top: 1px solid var(--border);
}

.how-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted-dim);
  margin-bottom: 16px;
}

.how-step h4 { font-size: 14px; font-weight: 500; margin-bottom: 6px; letter-spacing: -0.01em; }
.how-step p { font-size: 13px; color: var(--muted); line-height: 1.55; }

.footer:not(.footer--site):not(.footer--landing) {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  color: var(--muted-dim);
  font-size: 13px;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ── Auth ── */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

.auth-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px;
  border-right: 1px solid var(--border);
  background: var(--bg-elevated);
  min-width: 0;
}

.auth-brand h1 {
  font-size: 32px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  max-width: 360px;
}

.auth-brand p { color: var(--muted); font-size: 15px; max-width: 360px; line-height: 1.6; }

/* Auth — bold visual panel (login, signup, forgot, reset) */
.auth-brand--visual {
  position: relative;
  overflow: hidden;
  border-right: 1px solid rgba(148, 163, 184, 0.12);
  background: linear-gradient(145deg, #0b1120 0%, #1e1b4b 42%, #0f172a 100%);
  color: #f8fafc;
  padding: 48px 40px 56px;
  min-height: 100vh;
  min-width: 0;
  max-width: 100%;
  z-index: 1;
}

.auth-brand__mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
  pointer-events: none;
}

.auth-brand__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.auth-brand__glow--1 {
  width: 420px;
  height: 420px;
  top: -80px;
  right: -60px;
  background: rgba(37, 99, 235, 0.45);
  animation: auth-glow-drift 12s ease-in-out infinite;
}

.auth-brand__glow--2 {
  width: 320px;
  height: 320px;
  bottom: 10%;
  left: -80px;
  background: rgba(124, 58, 237, 0.35);
  animation: auth-glow-drift 14s ease-in-out infinite reverse;
}

@keyframes auth-glow-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(24px, -16px) scale(1.08); }
}

.auth-brand__logo {
  position: relative;
  z-index: 2;
  color: #f8fafc !important;
  margin-bottom: 32px;
}

.auth-brand__logo:hover { color: #e2e8f0 !important; }

.auth-visual {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  max-height: 420px;
  margin: 8px 0 24px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.auth-visual__orbit {
  position: relative;
  width: min(100%, 320px);
  max-width: 100%;
  aspect-ratio: 1;
  margin: 0 auto;
}

.auth-visual__ring {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px solid rgba(96, 165, 250, 0.25);
  animation: auth-ring-spin 48s linear infinite;
}

.auth-visual__ring--inner {
  inset: 22%;
  border-color: rgba(167, 139, 250, 0.2);
  animation-direction: reverse;
  animation-duration: 32s;
}

@keyframes auth-ring-spin {
  to { transform: rotate(360deg); }
}

.auth-visual__core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 112px;
  height: 112px;
  border-radius: 28px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 20px 50px rgba(37, 99, 235, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.15;
}

.auth-visual__core-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
  margin-bottom: 4px;
}

.auth-visual__core strong {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.auth-visual__node {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  margin: -16px 0 0 -34px;
  transform-origin: 34px 140px;
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  color: #e2e8f0;
}

.auth-visual__node span {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.25);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.auth-visual__node--1 { transform: rotate(0deg) translateY(-124px); }
.auth-visual__node--2 { transform: rotate(60deg) translateY(-124px); }
.auth-visual__node--3 { transform: rotate(120deg) translateY(-124px); }
.auth-visual__node--4 { transform: rotate(180deg) translateY(-124px); }
.auth-visual__node--5 { transform: rotate(240deg) translateY(-124px); }
.auth-visual__node--6 { transform: rotate(300deg) translateY(-124px); }

.auth-visual__node--1 span { transform: rotate(0deg); }
.auth-visual__node--2 span { transform: rotate(-60deg); }
.auth-visual__node--3 span { transform: rotate(-120deg); }
.auth-visual__node--4 span { transform: rotate(-180deg); }
.auth-visual__node--5 span { transform: rotate(-240deg); }
.auth-visual__node--6 span { transform: rotate(-300deg); }

.auth-visual__chip {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  animation: auth-chip-float 6s ease-in-out infinite;
}

.auth-visual__chip-num {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1;
}

.auth-visual__chip-lbl {
  font-size: 11px;
  color: rgba(226, 232, 240, 0.75);
  white-space: nowrap;
}

.auth-visual__chip--1 { top: 8%; right: 4%; animation-delay: 0s; }
.auth-visual__chip--2 { bottom: 22%; left: 4%; animation-delay: 1.2s; }
.auth-visual__chip--3 { bottom: 10%; right: 6%; animation-delay: 2.4s; }

@keyframes auth-chip-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.auth-brand__copy {
  position: relative;
  z-index: 2;
  margin-top: auto;
}

.auth-brand--visual h1 {
  color: #f8fafc;
  font-size: clamp(28px, 3vw, 36px);
  max-width: 420px;
  margin-bottom: 12px;
}

.auth-brand--visual p {
  color: rgba(226, 232, 240, 0.72);
  max-width: 400px;
  font-size: 16px;
}

.auth-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  position: relative;
  z-index: 2;
  min-width: 0;
  width: 100%;
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(37, 99, 235, 0.06), transparent 55%),
    var(--bg);
}

.auth-card { width: 100%; max-width: 380px; position: relative; z-index: 2; }

.auth-card h1 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.auth-card .sub { color: var(--muted); margin-bottom: 32px; font-size: 14px; }

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.label-row label { margin-bottom: 0; }

.text-link {
  font-size: 13px;
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
}

.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.password-field { position: relative; }

.password-field input { padding-right: 44px; }

.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 6px;
  line-height: 0;
  border-radius: var(--radius);
}

.password-toggle:hover { color: var(--text); }

.password-toggle svg { display: block; }

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted-dim); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-group textarea { min-height: 100px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.field-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}

.option-grid-wide {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

@media (min-width: 900px) {
  .option-grid-wide {
    grid-template-columns: repeat(4, 1fr);
  }
}

.option-grid-compact {
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
}

.option-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg);
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.option-check:hover { border-color: var(--blue); }

.option-check input {
  width: auto;
  margin-top: 2px;
  accent-color: var(--blue);
}

.option-check:has(input:checked) {
  border-color: var(--blue);
  background: rgba(37, 99, 235, 0.06);
  color: var(--text);
}

.form-group label .q {
  color: var(--text);
  font-weight: 500;
}

.auth-footer { text-align: center; margin-top: 28px; color: var(--muted); font-size: 13px; }
.auth-footer a { text-decoration: underline; text-underline-offset: 3px; }

/* ── Alerts ── */
.alert {
  padding: 12px 14px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.5;
  border: 1px solid var(--border);
}

.alert-error { background: rgba(238, 0, 0, 0.08); border-color: rgba(238, 0, 0, 0.2); color: #ff6b6b; }
.alert-success { background: rgba(80, 227, 194, 0.08); border-color: rgba(80, 227, 194, 0.2); color: var(--success); }
.alert-info { background: rgba(37, 99, 235, 0.06); color: var(--text-secondary); border-color: rgba(37, 99, 235, 0.15); }

/* ── Dashboard — full screen app shell ── */
.is-dash {
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
}

.is-dash .page {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.is-dash .nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  justify-content: flex-start;
  padding: 0 var(--nav-pad-x);
}

.logo {
  flex-shrink: 0;
}

.dash-shell { min-height: 100vh; display: flex; flex-direction: column; }

.is-dash .dash-shell {
  min-height: 0;
  flex: 1;
  height: 100%;
}

.dash-layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  flex: 1;
  min-height: calc(100vh - var(--nav-h));
}

.is-dash .dash-layout {
  margin-top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  height: calc(100dvh - var(--nav-h));
  min-height: 0;
}

.sidebar {
  background: var(--bg);
  border-right: 1px solid var(--border);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
}

.is-dash .sidebar {
  height: 100%;
  overflow-y: auto;
  min-height: 0;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 10px;
  border-radius: var(--radius);
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 11px;
  flex-shrink: 0;
  color: var(--text-secondary);
}

.sidebar-user .name { font-weight: 500; font-size: 13px; letter-spacing: -0.01em; }
.sidebar-user .email { font-size: 12px; color: var(--muted); }

.side-nav { list-style: none; flex: 1; }

.side-nav li { margin-bottom: 2px; }

.side-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 450;
  transition: all 0.15s;
  text-decoration: none;
}

.side-nav a:hover {
  background: var(--surface-hover);
  color: var(--text);
  text-decoration: none;
}

.side-nav a.active {
  background: var(--bg-subtle);
  color: var(--text);
}

.nav-icon {
  width: 16px;
  height: 16px;
  opacity: 0.6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
}

.side-nav a.active .nav-icon { opacity: 1; }

.dash-main {
  padding: 32px 40px;
  overflow-x: auto;
  max-width: 1100px;
}

.is-dash .dash-main {
  max-width: none;
  width: 100%;
  padding: 20px 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.is-dash .dash-main > #alert {
  flex-shrink: 0;
  margin-bottom: 12px;
}

.is-dash .dash-main > section {
  display: none;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.is-dash .dash-main > section:not(.hidden) {
  display: flex;
}

/* Tabs that need full-page scroll (not trapped in viewport) */
.is-dash #tab-leads,
.is-dash #tab-send,
.is-dash #tab-settings,
.is-dash #tab-export,
.is-dash #tab-billing {
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 40px;
}

.is-dash .dash-hero {
  flex-shrink: 0;
  padding: 16px 22px;
  margin-bottom: 16px;
}

.is-dash .dash-hero h1 {
  font-size: 20px;
  margin-bottom: 4px;
}

.is-dash .dash-hero p {
  font-size: 13px;
}

.is-dash .stats {
  flex-shrink: 0;
  margin-bottom: 16px;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.is-dash .run-command {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.is-dash .run-pipeline-board {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.is-dash .leads-summary {
  flex-shrink: 0;
  margin-bottom: 16px;
}

.is-dash .leads-empty {
  flex: 1;
  min-height: 0;
  padding: 0;
  align-items: stretch;
}

.is-dash .leads-empty__card {
  max-width: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 32px;
}

.is-dash .leads-guide {
  flex-direction: row;
  gap: 12px;
}

.is-dash .leads-guide li {
  flex: 1;
  flex-direction: column;
  text-align: center;
  align-items: center;
  padding: 16px 14px;
}

.is-dash .leads-content {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Review leads — full scroll, no cramped inner box */
.is-dash #tab-leads {
  overflow-y: auto;
  overflow-x: hidden;
}

.is-dash #tab-leads .leads-content {
  overflow: visible;
  flex: none;
  min-height: auto;
}

.is-dash #tab-leads .leads-grid {
  overflow: visible;
  flex: none;
  min-height: auto;
  padding-bottom: 24px;
}

.is-dash .leads-toolbar {
  flex-shrink: 0;
}

.is-dash .leads-grid {
  padding-right: 4px;
}

.is-dash .leads-savebar {
  flex-shrink: 0;
  position: static;
  margin-top: 16px;
}

/* Send emails — full page scroll */
.is-dash #tab-send .send-flow,
.is-dash #tab-send .send-now-banner,
.is-dash #tab-send .send-help,
.is-dash #tab-send .send-simple,
.is-dash #tab-send .send-flow-rail,
.is-dash #tab-send .send-details,
.is-dash #tab-send .dash-hero {
  flex-shrink: 0;
}

.is-dash .send-steps {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.is-dash .send-note {
  flex-shrink: 0;
}

.is-dash .inbox-layout {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  align-content: start;
}

.is-dash #tab-export:not(.hidden) {
  justify-content: center;
}

.is-dash .export-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-height: 100%;
}

.is-dash #tab-billing .panel {
  flex: 1;
  overflow-y: auto;
}

.billing-panel {
  padding: 28px;
}

.billing-current {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.billing-current__label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 6px;
}

.billing-current strong {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.billing-current__detail {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.plan-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 148px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.plan-card:hover {
  border-color: var(--border-hover);
}

.plan-card--current {
  border-color: rgba(37, 99, 235, 0.35);
  background: linear-gradient(165deg, #fff 0%, #eff6ff 100%);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.12);
}

.plan-card__name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.plan-card__price {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.plan-card__price span {
  font-size: 13px;
  font-weight: 450;
  color: var(--muted);
}

.plan-card__detail {
  font-size: 13px;
  color: var(--muted);
  flex: 1;
}

.plan-card__pitch {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.plan-card__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--blue);
  background: rgba(37, 99, 235, 0.1);
  padding: 3px 8px;
  border-radius: 99px;
  width: fit-content;
}

.plan-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.dash-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding: 24px 28px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
}

.dash-hero h1 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.dash-hero p { color: var(--muted); font-size: 14px; }

.dash-hero--overview {
  background: linear-gradient(135deg, #fff 0%, #f0f6ff 100%);
  border-color: rgba(37, 99, 235, 0.12);
}

.dash-hero--send {
  background: linear-gradient(135deg, #fff 0%, #f5f3ff 100%);
  border-color: rgba(124, 58, 237, 0.12);
}

.dash-hero--inbox {
  background: linear-gradient(135deg, #fff 0%, #ecfeff 100%);
  border-color: rgba(6, 182, 212, 0.12);
}

.dash-hero--leads {
  background: linear-gradient(135deg, #fff 0%, #fff7ed 100%);
  border-color: rgba(245, 166, 35, 0.15);
}

.dash-hero__actions { display: flex; gap: 8px; flex-wrap: wrap; }

.panel--soft {
  background: var(--bg-soft);
  border-style: dashed;
}

.panel--form { margin-bottom: 0; }

/* Run campaign — command center */
.run-command {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(37, 99, 235, 0.14);
  background: linear-gradient(160deg, #f8faff 0%, #eef4ff 50%, #ede9fe 100%);
}

.run-command__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 90% 10%, rgba(37, 99, 235, 0.14), transparent 55%),
    radial-gradient(ellipse 40% 35% at 10% 90%, rgba(124, 58, 237, 0.1), transparent 50%);
  pointer-events: none;
}

.run-command__top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 32px 32px 24px;
  border-bottom: 1px solid rgba(37, 99, 235, 0.1);
}

.run-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.12);
  margin-bottom: 12px;
}

.run-command__intro h1 {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.run-command__intro p {
  color: var(--muted);
  font-size: 14px;
  max-width: 420px;
}

.run-command__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  min-width: 280px;
}

.run-launch-btn {
  min-width: 220px;
  box-shadow: 0 12px 32px -12px rgba(37, 99, 235, 0.45);
}

.run-launch-icon {
  font-size: 11px;
  opacity: 0.9;
}

.run-hint {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}

.run-live-status {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  font-size: 13px;
  line-height: 1.5;
}

.run-live-status--info {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: var(--text-secondary);
}

.run-live-status--success {
  background: rgba(5, 150, 105, 0.08);
  border: 1px solid rgba(5, 150, 105, 0.2);
  color: #047857;
}

.run-live-status--error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #b91c1c;
}

.run-pipeline-board {
  position: relative;
  z-index: 1;
  padding: 28px 32px 32px;
}

.run-pipeline-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.run-pipeline-head h2 {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.run-pipeline-sub {
  font-size: 12px;
  color: var(--muted);
}

.run-pipeline-line {
  position: absolute;
  top: 108px;
  left: 48px;
  right: 48px;
  height: 2px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0.2), rgba(124, 58, 237, 0.2), rgba(37, 99, 235, 0.08));
  z-index: 0;
}

.run-pipeline-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  position: relative;
  z-index: 1;
}

.run-agent {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 18px 10px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(37, 99, 235, 0.1);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.run-agent.current {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 12px 32px -16px rgba(37, 99, 235, 0.3);
  transform: translateY(-4px);
  background: #fff;
}

.run-agent.done {
  border-color: rgba(5, 150, 105, 0.25);
  background: rgba(255, 255, 255, 0.9);
}

.run-agent__num {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--muted-dim);
  margin-bottom: 10px;
}

.run-agent__dot {
  width: 10px;
  height: 10px;
  margin-bottom: 12px;
}

.run-agent.current .run-agent__dot { background: var(--blue); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15); }
.run-agent.done .run-agent__dot { background: var(--success); }

.run-agent__name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}

.run-agent__task {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

.run-agent.current .run-agent__name { color: var(--blue); }

.run-facts {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(37, 99, 235, 0.1);
  border-top: 1px solid rgba(37, 99, 235, 0.1);
}

.run-fact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 18px 16px;
  background: rgba(255, 255, 255, 0.6);
  text-align: center;
}

.run-fact strong {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--text);
}

.run-fact span {
  font-size: 11px;
  color: var(--muted);
}

/* Send tab — step list */
.send-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.send-step {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.send-step:hover {
  border-color: rgba(124, 58, 237, 0.2);
  box-shadow: 0 12px 32px -20px rgba(124, 58, 237, 0.15);
}

.send-step__num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.15);
}

.send-step h3 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.send-step p {
  font-size: 13px;
  color: var(--muted);
}

.send-note {
  font-size: 13px;
  color: var(--muted);
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px dashed var(--border);
}

.send-now-banner {
  margin-bottom: 20px;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

/* Send tab — one clear next step */
.send-flow-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.send-flow-rail__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
}

.send-flow-rail__item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
  background: var(--border);
  color: var(--muted);
}

.send-flow-rail__item--done {
  color: var(--text);
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.06);
}

.send-flow-rail__item--done span {
  background: rgba(34, 197, 94, 0.2);
  color: #15803d;
}

.send-flow-rail__item--now {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.send-simple {
  padding: 28px 32px;
  max-width: 640px;
}

.send-simple__eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 8px;
}

.send-simple__title {
  font-size: 22px;
  margin: 0 0 12px;
  line-height: 1.3;
}

.send-simple__body {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 24px;
}

.send-simple__cta {
  width: 100%;
  max-width: 420px;
}

.send-simple__status {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.send-inline-inbox {
  margin-bottom: 20px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.send-inline-inbox__hint {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 12px;
}

.send-details {
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted);
}

.send-details__inner {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.send-details__line {
  margin: 0;
}

.send-now-banner strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.send-now-banner p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.send-flow {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.send-flow-step {
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.send-flow-step--highlight {
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.12);
  background: rgba(59, 130, 246, 0.04);
}

.send-flow-step--done {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.04);
}

.send-flow-step--optional {
  opacity: 0.92;
  border-style: dashed;
}

.send-flow-step__badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.send-flow-step__badge--now {
  color: #3b82f6;
}

.send-flow-step__badge--optional {
  color: var(--muted-dim);
}

.send-flow-step h2 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.send-flow-step__lead {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 10px;
  max-width: 640px;
}

.send-flow-step__status {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin: 0 0 14px;
}

.send-inbox-warning {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: rgba(245, 166, 35, 0.1);
  border: 1px solid rgba(245, 166, 35, 0.35);
  font-size: 14px;
  line-height: 1.5;
}

.send-help {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* Inbox tab */
.inbox-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  align-items: start;
}

.inbox-aside {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #ecfeff, #f0fdfa);
  border: 1px solid rgba(6, 182, 212, 0.15);
}

.inbox-aside h3 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 14px;
}

.inbox-aside ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.inbox-aside li {
  font-size: 13px;
  color: var(--text-secondary);
  padding-left: 14px;
  position: relative;
}

.inbox-aside li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #0891b2;
}

/* Export tab */
.export-center {
  text-align: center;
  padding: 64px 32px;
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, #fff 0%, #eef2ff 100%);
  border: 1px solid rgba(37, 99, 235, 0.12);
}

.export-center h1 {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 12px 0 10px;
}

.export-center > p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 28px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.export-note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
}

.page-header { margin-bottom: 32px; }

.page-header h1 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.page-header p { color: var(--muted); font-size: 14px; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg);
  padding: 20px 20px 18px;
}

.stat-card .num {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.stat-card .lbl {
  font-size: 12px;
  color: var(--muted);
  font-weight: 450;
  margin-top: 8px;
}

.panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
}

.panel h2 {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.panel-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.phase-track { display: flex; flex-direction: column; gap: 0; }

.phase-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  transition: color 0.2s;
}

.phase-item:last-child { border-bottom: none; }

.phase-item.current { color: var(--text); }
.phase-item.done { color: var(--text-secondary); }

.phase-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted-dim);
  flex-shrink: 0;
}

.phase-item.current .phase-dot { background: var(--blue); }
.phase-item.done .phase-dot { background: var(--success); }

.progress-bar {
  height: 2px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin: 12px 0 4px;
}

.progress-fill {
  height: 100%;
  background: var(--blue);
  border-radius: 999px;
  transition: width 0.5s var(--ease);
}

.leads-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.leads-toolbar__hint {
  font-size: 13px;
  color: var(--muted);
  max-width: none;
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.leads-summary {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
}

.leads-summary__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 12px;
  background: var(--bg-elevated);
  text-align: center;
}

.leads-summary__item span {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.leads-summary__item label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 450;
}

.leads-summary__item--hot span { color: #b45309; }
.leads-summary__item--warm span { color: #a16207; }
.leads-summary__item--cold span { color: #1d4ed8; }
.leads-summary__item--ok span { color: var(--success); }

.leads-empty {
  display: flex;
  justify-content: center;
  padding: 24px 0 48px;
}

.leads-empty__card {
  width: 100%;
  max-width: 520px;
  padding: 40px 36px;
  text-align: center;
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, #fff 0%, #fffbeb 100%);
  border: 1px solid rgba(245, 166, 35, 0.15);
  box-shadow: 0 20px 48px -28px rgba(245, 166, 35, 0.2);
}

.leads-empty__icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 20px;
  color: #b45309;
  background: rgba(245, 166, 35, 0.12);
  border: 1px solid rgba(245, 166, 35, 0.2);
  margin-bottom: 16px;
}

.leads-empty__card h2 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.leads-empty__lead {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 28px;
}

.leads-guide {
  list-style: none;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.leads-guide li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
}

.leads-guide__num {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  background: rgba(37, 99, 235, 0.08);
}

.leads-guide li strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
}

.leads-guide li span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.leads-guide li em {
  font-style: normal;
  color: var(--text-secondary);
  font-weight: 500;
}

.leads-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  width: 100%;
  max-width: none;
}

.leads-savebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  position: sticky;
  bottom: 16px;
}

.leads-savebar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.leads-next-step {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.25);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.leads-next-step strong { color: var(--text); }

.leads-savebar p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

.lead-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 0;
  background: var(--bg-elevated);
  transition: border-color 0.15s;
  width: 100%;
}

.lead-card:hover { border-color: var(--border-hover); }

.lead-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 12px;
}

.lead-head strong { font-size: 14px; font-weight: 500; letter-spacing: -0.01em; }

.tier {
  font-size: 10px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: var(--font-mono);
}

.tier-hot { background: rgba(245, 166, 35, 0.1); color: var(--hot); }
.tier-warm { background: rgba(250, 204, 21, 0.08); color: var(--warm); }
.tier-cold { background: rgba(121, 184, 255, 0.08); color: var(--cold); }

.reply-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
}

.lead-reply-preview {
  margin-top: 8px;
  padding: 10px 12px;
  border-left: 3px solid #34d399;
  background: rgba(52, 211, 153, 0.06);
}

.replies-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.replies-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.replies-list li:last-child { border-bottom: none; }

.reply-preview {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.lead-section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin: 14px 0 6px;
}

.lead-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--muted);
}

.lead-meta strong {
  color: var(--text-secondary);
  font-weight: 500;
}

.lead-body {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 8px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: none;
}

.lead-body--research {
  padding: 14px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
}

.lead-triggers {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 0;
  line-height: 1.55;
}

.lead-textarea {
  width: 100%;
  margin: 12px 0;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border-strong);
  min-height: 220px;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.65;
  resize: vertical;
}

.lead-textarea:focus {
  outline: none;
  border-color: var(--blue);
}

.approve-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
  color: var(--text-secondary);
}

.wizard-page { background: var(--bg); }

.wizard-page-inner {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wizard-layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) 1fr;
  flex: 1;
  gap: 0;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px 48px;
  align-items: start;
}

.wizard-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  padding: 32px 32px 32px 0;
  border-right: 1px solid var(--border);
  min-height: calc(100vh - var(--nav-h) - 48px);
}

.wizard-title {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 8px 0;
  line-height: 1.2;
}

.wizard-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 28px;
}

.wizard-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wizard-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--muted);
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.wizard-nav-item:hover:not(.active) {
  background: var(--surface-hover);
  color: var(--text-secondary);
}

.wizard-nav-item:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.wizard-nav-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
  background: var(--border);
  color: var(--muted);
  flex-shrink: 0;
}

.wizard-nav-item.active {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.2);
  color: var(--text);
  font-weight: 500;
}

.wizard-nav-item.active .wizard-nav-num {
  background: var(--blue);
  color: #fff;
}

.wizard-nav-item.done {
  color: var(--text-secondary);
}

.wizard-nav-item.done .wizard-nav-num {
  background: var(--muted);
  color: #fff;
}

.wizard-main {
  padding: 32px 0 32px 40px;
  min-width: 0;
}

.wizard-form.panel {
  padding: 28px 32px;
  margin-bottom: 0;
}

.wizard-step-head {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.wizard-step-head h2 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: var(--text);
}

.wizard-sections {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.wizard-sections-2col {
  grid-template-columns: repeat(2, 1fr);
}

.form-section {
  padding: 18px 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.form-section-wide {
  grid-column: 1 / -1;
}

.form-section label {
  display: block;
  font-size: 13px;
  margin-bottom: 10px;
}

.form-section .field-hint {
  margin-bottom: 10px;
}

.form-section input,
.form-section select,
.form-section textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
}

.form-section textarea { min-height: 100px; resize: vertical; }

.section-other { margin-top: 10px; }

.section-select { margin-bottom: 8px; }

.wizard-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.wizard-review {
  background: var(--bg);
  padding: 20px;
  border-radius: var(--radius);
  overflow: auto;
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  max-height: 60vh;
}

@media (max-width: 960px) {
  .wizard-layout {
    grid-template-columns: 1fr;
    padding: 0 16px 32px;
  }
  .wizard-sidebar {
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 24px 0;
    min-height: auto;
  }
  .wizard-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
  .wizard-nav-item {
    flex: 1 1 auto;
    min-width: 140px;
    padding: 10px 12px;
    font-size: 13px;
  }
  .wizard-main { padding: 24px 0 0; }
  .wizard-sections-2col { grid-template-columns: 1fr; }
  .option-grid-wide { grid-template-columns: repeat(2, 1fr); }
}

/* legacy narrow wizard (unused) */
.wizard-wrap { max-width: 640px; margin: 0 auto; padding: 48px 24px; }

.wizard-steps {
  display: flex;
  gap: 4px;
  margin-bottom: 32px;
}

.wizard-steps .step {
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: var(--border);
  transition: background 0.3s;
}

.wizard-steps .step.done { background: var(--muted); }
.wizard-steps .step.active { background: var(--blue); }

.hidden { display: none !important; }

/* Logo SVG helper */
.icon-stroke { stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 1024px) {
  .landing-hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .platform-layout { grid-template-columns: 1fr; gap: 40px; }
  .landing-platform .platform-bento { max-width: none; margin-left: 0; }
  .workflow-top { flex-direction: column; align-items: flex-start; }
  .workflow-metrics { width: 100%; justify-content: space-around; }
  .workflow-flow { grid-template-columns: repeat(2, 1fr); }
  .workflow-connector { display: none; }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .auth-page { grid-template-columns: 1fr; }
  .auth-brand--visual {
    min-height: auto;
    padding: 32px 24px 40px;
  }
  .auth-visual {
    min-height: 260px;
    margin: 0 0 16px;
  }
  .auth-visual__orbit {
    max-width: 300px;
  }
  .auth-visual__node {
    transform-origin: 38px 130px;
  }
  .auth-visual__node--1 { transform: rotate(0deg) translateY(-118px); }
  .auth-visual__node--2 { transform: rotate(60deg) translateY(-118px); }
  .auth-visual__node--3 { transform: rotate(120deg) translateY(-118px); }
  .auth-visual__node--4 { transform: rotate(180deg) translateY(-118px); }
  .auth-visual__node--5 { transform: rotate(240deg) translateY(-118px); }
  .auth-visual__node--6 { transform: rotate(300deg) translateY(-118px); }
  .auth-brand--visual h1 { font-size: 24px; }
  .auth-brand { display: none; }
  .auth-brand--visual { display: flex; flex-direction: column; }
  .run-command__top { grid-template-columns: 1fr; }
  .run-command__actions { align-items: stretch; min-width: 0; }
  .run-pipeline-grid { grid-template-columns: repeat(3, 1fr); }
  .run-pipeline-line { display: none; }
  .inbox-layout { grid-template-columns: 1fr; }
  .send-step { grid-template-columns: auto 1fr; }
  .send-step .btn { grid-column: 1 / -1; justify-self: start; }
  .cta-layout { grid-template-columns: 1fr; gap: 28px; }
  .cta-checklist { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .is-landing { scroll-snap-type: y proximity; }
  .is-dash { overflow: auto; height: auto; }
  .is-dash .dash-layout { height: auto; margin-top: var(--nav-h); }
  .is-dash .dash-main { overflow: visible; }
  .is-dash .dash-main > section:not(.hidden) { overflow: visible; }
  .is-dash .leads-guide { flex-direction: column; }
  .is-dash .leads-guide li { flex-direction: row; text-align: left; align-items: flex-start; }
  .landing-panel { min-height: 100dvh; padding: calc(var(--nav-h) + 16px) 20px 24px; }
  .hero-card { transform: none; }
  .hero-trust { grid-template-columns: 1fr; max-width: none; }
  .nav-shell { gap: 8px; }
  .scroll-hint { display: none; }
  .workflow-flow { grid-template-columns: 1fr; }
  .flow-card { min-height: auto; }
  .workflow-metrics { flex-wrap: wrap; gap: 16px; padding: 16px 20px; }
  .platform-bento { grid-template-columns: 1fr; }
  .bento-wide { grid-column: auto; }
  .landing-platform .bento-inbox-card .bento-inbox {
    flex-direction: column;
  }
  .landing-platform .bento-inbox-card .bento-inbox li {
    white-space: normal;
  }
  .footer-inner--landing,
  .footer-inner--site {
    flex-wrap: wrap;
    gap: 8px 12px;
    height: auto;
  }
  .site-footer-shell .footer.footer--landing.footer--site,
  .landing-cta > .footer.footer--landing.footer--site {
    padding: 8px var(--nav-pad-x, 24px) !important;
  }
  .footer-inner--landing .footer-legal-links,
  .site-footer-shell .footer-legal-links,
  .footer.footer--landing .footer-legal-links {
    flex-wrap: wrap;
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }
  .dash-layout { grid-template-columns: 1fr; }
  .sidebar { border-right: none; border-bottom: 1px solid var(--border); }
  .side-nav { display: flex; overflow-x: auto; gap: 4px; padding-bottom: 4px; }
  .side-nav li { margin: 0; flex-shrink: 0; }
  .form-row { grid-template-columns: 1fr; }
  .dash-main { padding: 20px 16px; }
  .run-pipeline-grid { grid-template-columns: repeat(2, 1fr); }
  .run-facts { grid-template-columns: 1fr; }
  .dash-hero { flex-direction: column; align-items: flex-start; }
  .leads-summary { grid-template-columns: repeat(2, 1fr); }
  .leads-empty__card { padding: 28px 20px; }
  .how-grid { grid-template-columns: 1fr; }
  .hero-trust { gap: 24px; }
  .hero h1 { font-size: clamp(32px, 8vw, 42px); }
}

/* Landing page theme → see web/css/landing.css (loads after this file) */
