/* Distill App — Shared Styles */

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

:root {
  --shell-dark: #13111c;
  --shell-mid: #1a1730;
  --violet: #7c3aed;
  --violet-dark: #6d28d9;
  --violet-light: #a78bfa;
  --violet-tint: #ede9fe;
  --app-bg: #f5f4ff;
  --card-bg: #ffffff;
  --heading: #1e1b4b;
  --body: #4b5563;
  --muted: #9ca3af;
  --border: #e5e7eb;
  --border-violet: #c4b5fd;
}

/* ── Navigation ──────────────────────────────────────────────── */
.nav {
  background: var(--shell-dark);
  border-bottom: 1px solid #1e1c2e;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-logo {
  color: #f0eeff;
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-link {
  color: var(--border-violet);
  font-size: 14px;
  text-decoration: none;
  opacity: 0.85;
}
.nav-link:hover { opacity: 1; }
.nav-email {
  color: var(--muted);
  font-size: 13px;
}
/* Profile URL pill in app nav */
.nav-profile-pill {
  background: #1e1c2e;
  border: 1px solid #2e2b45;
  color: var(--border-violet);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  text-decoration: none;
}
/* Step progress dots in wizard nav */
.nav-steps {
  display: flex;
  align-items: center;
  gap: 8px;
}
.step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2e2b45; /* pending */
  transition: background 0.2s, box-shadow 0.2s;
}
.step-dot.active {
  background: var(--violet-light);
  box-shadow: 0 0 0 3px rgba(167,139,250,.3);
}
.step-dot.done { background: var(--violet); }
.step-label {
  color: var(--border-violet);
  font-size: 13px;
  margin-left: 4px;
}

/* ── Page layout wrapper ─────────────────────────────────────── */
.page { min-height: 100vh; display: flex; flex-direction: column; }
.main { flex: 1; max-width: 900px; margin: 0 auto; padding: 40px 24px; width: 100%; }
.card-wide { max-width: 760px; margin: 0 auto; }

/* ── Chat interface (interview page) ─────────────────────────── */
.chat-page {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 56px); /* subtract nav height */
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-footer {
  border-top: 1px solid var(--border);
  padding: 12px 0 16px;
  background: var(--app-bg);
  flex-shrink: 0;
}
.chat-input-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.chat-input {
  flex: 1;
  resize: none;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  min-height: 44px;
  max-height: 120px;
  overflow-y: auto;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: white;
}
.chat-input:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(124,58,237,.12);
}
.message {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: 85%;
}
.message.user { align-self: flex-end; flex-direction: row-reverse; }
.message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--violet-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.message-bubble {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--heading);
  white-space: pre-wrap;
  word-break: break-word;
}
.message.user .message-bubble {
  background: var(--violet);
  color: white;
  border-color: var(--violet);
}
.typing-indicator {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 12px 14px;
}
.typing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  animation: typing-bounce 1.2s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

/* ── Page background ─────────────────────────────────────────── */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--app-bg);
  color: var(--body);
  margin: 0;
  line-height: 1.65;
}
h1, h2, h3, h4, h5, h6 {
  color: var(--heading);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--violet-tint);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(109,40,217,.06);
  padding: 28px;
}
.card-featured {
  border: 2px solid var(--violet);
  box-shadow: 0 0 0 2px var(--violet);
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s, box-shadow 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--violet);
  color: white;
  border-radius: 8px;
  padding: 11px 20px;
}
.btn-primary:hover { background: var(--violet-dark); }
.btn-pill { border-radius: 24px !important; }
.btn-secondary {
  background: white;
  color: #374151;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 18px;
}
.btn-secondary:hover { border-color: var(--border-violet); }
.btn-ghost {
  background: transparent;
  color: var(--violet);
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
}
.btn-ghost:hover { background: var(--violet-tint); }
.btn:disabled, .btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}
.btn-full { width: 100%; }

/* ── Form inputs ─────────────────────────────────────────────── */
.input, input[type="text"], input[type="email"], textarea, select {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 13px;
  font-family: inherit;
  font-size: 15px;
  color: var(--heading);
  background: white;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.input:focus, input[type="text"]:focus, input[type="email"]:focus, textarea:focus, select:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(124,58,237,.12);
}
.input:disabled, input:disabled, textarea:disabled {
  background: #f9fafb;
  color: var(--muted);
  cursor: not-allowed;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 6px;
}
.form-group { margin-bottom: 20px; }
.hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

/* ── Drop zone ───────────────────────────────────────────────── */
.drop-zone {
  border: 2px dashed var(--border-violet);
  background: var(--app-bg);
  border-radius: 10px;
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.drop-zone:hover, .drop-zone.drag-over {
  border-color: var(--violet);
  background: var(--violet-tint);
}
/* ── Progress bar ────────────────────────────────────────────── */
.progress-track {
  background: var(--violet-tint);
  height: 5px;
  border-radius: 99px;
  overflow: hidden;
  margin: 12px 0;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--violet), var(--violet-light));
  border-radius: 99px;
  transition: width 0.4s ease;
}
/* ── Spinner ─────────────────────────────────────────────────── */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--violet-tint);
  border-top-color: var(--violet);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Badges ──────────────────────────────────────────────────── */
.badge-free { background: #f3f4f6; color: #6b7280; border: 1px solid var(--border); padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.badge-pro { background: var(--violet-tint); color: var(--violet); border: 1px solid var(--border-violet); padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; cursor: pointer; }
.badge-studio { background: #f5f3ff; color: #5b21b6; border: 1px solid var(--border-violet); padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
/* ── Knowledge type pills ────────────────────────────────────── */
.kb-pill { background: var(--violet-tint); color: var(--violet-dark); border: 1px solid var(--border-violet); border-radius: 20px; padding: 2px 10px; font-size: 12px; font-weight: 600; cursor: default; }
/* ── Alerts ──────────────────────────────────────────────────── */
.alert { padding: 12px 16px; border-radius: 8px; font-size: 14px; }
.alert-info { background: var(--violet-tint); color: #4c1d95; border: 1px solid var(--border-violet); }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert-error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
/* ── Loading quote card ──────────────────────────────────────── */
.loading-card {
  background: white;
  border: 1px solid var(--violet-tint);
  border-radius: 12px;
  padding: 20px 24px;
  max-width: 480px;
  margin: 24px auto 0;
  text-align: center;
}
.loading-quote { font-size: 15px; font-style: italic; color: var(--heading); margin-bottom: 4px; }
.loading-attribution { font-size: 12px; color: var(--muted); }
.loading-step { font-size: 13px; color: var(--violet); margin-top: 10px; font-weight: 600; }
/* ── Tab bar ─────────────────────────────────────────────────── */
.tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 24px; gap: 4px; }
.tab-btn { background: none; border: none; padding: 10px 18px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: color 0.15s, border-color 0.15s; }
.tab-btn.active { color: var(--violet); border-bottom-color: var(--violet); }
.tab-btn:hover:not(.active) { color: var(--heading); }
/* ── Utility ─────────────────────────────────────────────────── */
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.text-muted { color: var(--muted); } .text-violet { color: var(--violet); }
.text-sm { font-size: 13px; } .text-xs { font-size: 11px; }
.flex { display: flex; } .flex-between { display: flex; justify-content: space-between; align-items: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }

/* ── Landing page — scoped variables and motion wrapper ───────── */
.landing-page {
  --glass-bg: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-hover: rgba(255, 255, 255, 0.22);
  --dark-hero-bg: #0c0118;
  --dark-hero-mid: #130832;
  --dark-hero-end: #0e1530;
  --particle-color: rgba(167, 139, 250, 0.6);
  --lp-violet: #7c3aed;
  --lp-violet-dark: #4c1d95;
}

/* Nav */
.lp-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 60px;
  background: transparent;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}
.lp-nav.scrolled {
  background: rgba(13, 5, 32, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.lp-logo {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.lp-nav-center {
  display: flex;
  gap: 28px;
}
.lp-nav-link {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.15s;
}
.lp-nav-link:hover { color: rgba(255,255,255,0.9); }
.lp-nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.lp-nav-muted {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.15s;
}
.lp-nav-muted:hover { color: rgba(255,255,255,0.7); }
.lp-btn-primary {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: white;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 99px;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.15s, box-shadow 0.15s;
}
.lp-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(124,58,237,0.5); }
.lp-btn-glow {
  font-size: 16px;
  padding: 14px 28px;
  box-shadow: 0 6px 24px rgba(124,58,237,0.4);
}
.lp-btn-pill { border-radius: 99px; }
.lp-btn-ghost {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 14px 28px;
  border-radius: 99px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s, transform 0.15s;
}
.lp-btn-ghost:hover { background: rgba(255,255,255,0.14); transform: translateY(-2px); }
.lp-btn-outline {
  font-size: 15px;
  font-weight: 600;
  color: #7c3aed;
  background: transparent;
  border: 2px solid #7c3aed;
  padding: 12px 24px;
  border-radius: 99px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.lp-btn-outline:hover { background: #7c3aed; color: white; transform: translateY(-2px); }

/* Hero */
.lp-hero {
  min-height: 100vh;
  background: linear-gradient(160deg, #0c0118 0%, #130832 45%, #0e1530 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
}
.lp-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124, 58, 237, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}
.lp-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}
.lp-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(109, 40, 217, 0.35) 0%, transparent 65%);
  top: -200px; left: 50%;
  transform: translateX(-50%);
}
.lp-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(30, 64, 175, 0.25) 0%, transparent 65%);
  bottom: -100px; left: -100px;
}
.lp-orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.15) 0%, transparent 65%);
  bottom: 0; right: -80px;
}
.lp-particle {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--particle-color);
  left: var(--x);
  bottom: -10px;
  will-change: transform, opacity;
}
.lp-hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}
.lp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.25);
  color: #c4b5fd;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 99px;
  margin-bottom: 28px;
}
.lp-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #a78bfa;
  flex-shrink: 0;
}
.lp-h1 {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}
.lp-h1-white {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  color: white;
  line-height: 1.07;
  letter-spacing: -0.03em;
}
.lp-h1-grad {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #a78bfa 0%, #60a5fa 50%, #34d399 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lp-hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  max-width: 540px;
  margin: 0 auto 36px;
}
.lp-glass-cards {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 36px;
}
.lp-glass-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: 14px;
  padding: 16px 18px;
  min-width: 120px;
  cursor: default;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.lp-glass-card:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--glass-border-hover);
  transform: translateY(-3px);
}
.lp-gc-icon { font-size: 22px; margin-bottom: 5px; }
.lp-gc-label { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.85); }
.lp-gc-time  { font-size: 11px; color: rgba(255,255,255,0.4); }
.lp-cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.lp-hero-hint {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* Mobile nav */
@media (max-width: 640px) {
  .lp-nav-center { display: none; }
  .lp-nav-muted { display: none; }
  .lp-nav { padding: 0 20px; }
  /* Wrap glass cards at 375px — 3 × 120px + gaps would overflow */
  .lp-glass-cards { flex-wrap: wrap; justify-content: center; }
  .lp-glass-card { min-width: 100px; flex: 1; }
}

/* All landing animation rules MUST live inside this wrapper */
@media (prefers-reduced-motion: no-preference) {
  /* Orb pulse */
  @keyframes lp-orb-pulse {
    from { opacity: 0.6; transform: translateX(-50%) scale(1); }
    to   { opacity: 1;   transform: translateX(-50%) scale(1.15); }
  }
  .lp-orb-1 {
    animation: lp-orb-pulse 7s ease-in-out infinite alternate;
  }
  @keyframes lp-orb-pulse-basic {
    from { opacity: 0.5; transform: scale(1); }
    to   { opacity: 1;   transform: scale(1.2); }
  }
  .lp-orb-2 { animation: lp-orb-pulse-basic 9s ease-in-out infinite alternate; }
  .lp-orb-3 { animation: lp-orb-pulse-basic 5s ease-in-out infinite alternate; }

  /* Particle float */
  @keyframes lp-particle-float {
    0%   { transform: translateY(0) scale(0); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateY(-100vh) scale(1); opacity: 0; }
  }
  .lp-particle {
    animation: lp-particle-float var(--dur) var(--delay) linear infinite;
  }

  /* Badge dot blink */
  @keyframes lp-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
  }
  .lp-badge-dot {
    animation: lp-blink 2s ease infinite;
  }

  /* Hero content fade-up on load */
  @keyframes lp-fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  /* Staggered fade-up: each H1 line animates independently per spec */
  .lp-badge       { animation: lp-fade-up 0.9s 0ms   ease both; }
  .lp-h1-white    { animation: lp-fade-up 0.9s 100ms  ease both; }
  /* lp-h1-grad gets TWO animations: fade-up stagger + continuous gradient shift.
     Both must be listed together — a second `animation` property would override the first. */
  .lp-h1-grad     { animation: lp-fade-up 0.9s 150ms ease both, lp-grad-shift 4s 1050ms linear infinite; }
  .lp-hero-sub    { animation: lp-fade-up 0.9s 250ms  ease both; }
  .lp-glass-cards { animation: lp-fade-up 0.9s 350ms  ease both; }
  .lp-cta-row     { animation: lp-fade-up 0.9s 450ms  ease both; }
  .lp-hero-hint   { animation: lp-fade-up 0.9s 550ms  ease both; }

  /* Gradient text shift — referenced by lp-h1-grad's combined animation above */
  @keyframes lp-grad-shift {
    to { background-position: 200% center; }
  }
}

/* ── Shared section styles (scoped to landing page) ── */
.landing-page .lp-section { padding: 80px 24px; }
.landing-page .lp-section-white { background: #ffffff; }
.landing-page .lp-section-alt { background: #f9fafb; border-top: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb; }
.landing-page .lp-section-inner { max-width: 900px; margin: 0 auto; }
.landing-page .lp-eyebrow {
  font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: #7c3aed; margin-bottom: 10px;
}
.landing-page .lp-section-title {
  font-size: 32px; font-weight: 800; color: #111827;
  letter-spacing: -0.02em; margin-bottom: 40px; line-height: 1.15;
}

/* Demo section */
.landing-page .lp-demo-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}
.landing-page .lp-demo-sub {
  font-size: 15px; color: #6b7280; line-height: 1.7; margin-bottom: 24px;
}
.landing-page .lp-chips {
  display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px;
}
.landing-page .lp-chip {
  background: white; border: 1px solid #e5e7eb; border-radius: 8px;
  padding: 10px 14px; font-size: 13px; font-weight: 500; color: #374151;
  text-align: left; cursor: pointer; font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
}
.landing-page .lp-chip:hover:not(:disabled) { border-color: #7c3aed; background: #faf5ff; color: #7c3aed; }
.landing-page .lp-chip-disabled {
  color: #d1d5db; border-color: #f3f4f6; background: #fafafa; cursor: not-allowed;
}
.landing-page .lp-demo-note {
  font-size: 12px; color: #9ca3af; line-height: 1.6;
}

/* Placeholder chat */
.landing-page .lp-demo-placeholder {
  background: white; border: 1px solid #e5e7eb; border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06); overflow: hidden;
}
.landing-page .lp-demo-ph-header {
  padding: 14px 18px; border-bottom: 1px solid #f3f4f6;
  display: flex; align-items: center; gap: 12px; background: #fafafa;
}
.landing-page .lp-demo-ph-avatar {
  width: 38px; height: 38px; border-radius: 50%; background: #ede9ff;
  display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0;
}
.landing-page .lp-demo-ph-name { font-size: 14px; font-weight: 600; color: #111827; }
.landing-page .lp-demo-ph-status { font-size: 12px; color: #9ca3af; }
.landing-page .lp-demo-ph-body {
  padding: 20px 18px; min-height: 160px; display: flex; align-items: flex-start;
}
.landing-page .lp-demo-ph-msg {
  background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 14px;
  border-bottom-left-radius: 3px; padding: 12px 16px;
  font-size: 13px; color: #6b7280; line-height: 1.6; max-width: 90%;
}
.landing-page .lp-demo-ph-footer {
  padding: 10px 18px; border-top: 1px solid #f3f4f6;
  font-size: 12px; color: #d1d5db; text-align: center;
  font-style: italic;
}

@media (max-width: 768px) {
  .landing-page .lp-demo-grid { grid-template-columns: 1fr; }
  .landing-page .lp-demo-right { order: -1; }
}

/* ── Profile demo section ── */
.landing-page .lp-section-sub {
  font-size: 16px; color: #6b7280; line-height: 1.6;
  max-width: 560px; margin: 0 auto 48px;
}
.landing-page .lp-profile-demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.landing-page .lp-profile-h3 {
  font-size: 22px; font-weight: 700; color: #111827;
  margin-bottom: 12px; line-height: 1.3;
}
.landing-page .lp-profile-p {
  font-size: 15px; color: #6b7280; line-height: 1.7; margin-bottom: 20px;
}
.landing-page .lp-feature-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.landing-page .lp-feature-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #374151; line-height: 1.5; }
.landing-page .lp-check {
  width: 18px; height: 18px; border-radius: 50%;
  background: #dcfce7; color: #16a34a;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0; margin-top: 1px;
}

/* Animated chat mockup */
.landing-page .lp-chat-mockup {
  background: white; border: 1px solid #e5e7eb; border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08); overflow: hidden;
}
.landing-page .lp-chat-url-bar {
  background: #f9fafb; border-bottom: 1px solid #e5e7eb;
  padding: 9px 16px; font-size: 11px; color: #9ca3af;
  font-family: 'SF Mono', 'Fira Code', monospace;
  display: flex; align-items: center; gap: 6px;
}
.landing-page .lp-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.landing-page .lp-chat-header {
  padding: 14px 18px; border-bottom: 1px solid #f3f4f6;
  display: flex; align-items: center; gap: 12px;
}
.landing-page .lp-chat-avatar {
  width: 38px; height: 38px; border-radius: 50%; background: #ede9ff;
  display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0;
}
.landing-page .lp-chat-name  { font-size: 14px; font-weight: 600; color: #111827; }
.landing-page .lp-chat-status { font-size: 12px; color: #9ca3af; }
.landing-page .lp-chat-body {
  padding: 16px; min-height: 185px;
  display: flex; flex-direction: column; gap: 10px;
}
.landing-page .lp-msg {
  max-width: 85%; padding: 10px 14px; border-radius: 14px;
  font-size: 13px; line-height: 1.5;
  opacity: 0; will-change: opacity, transform;
}
.landing-page .lp-msg-bot {
  background: #f9fafb; border: 1px solid #e5e7eb;
  border-bottom-left-radius: 3px; color: #1f2937; align-self: flex-start;
}
.landing-page .lp-msg-user {
  background: #7c3aed; color: white;
  border-bottom-right-radius: 3px; align-self: flex-end;
}
.landing-page .lp-typing {
  display: flex; gap: 4px; align-items: center;
  padding: 12px 14px; opacity: 0;
  will-change: opacity, transform;
}
.landing-page .lp-chat-input-row {
  padding: 10px 14px; border-top: 1px solid #f3f4f6;
  display: flex; gap: 8px; align-items: center;
}
.landing-page .lp-chat-input-pill {
  flex: 1; height: 36px; border: 1px solid #e5e7eb; border-radius: 99px;
  background: #f9fafb; font-size: 12px; color: #d1d5db;
  display: flex; align-items: center; padding: 0 14px;
}
.landing-page .lp-chat-send {
  width: 32px; height: 32px; border-radius: 50%; background: #7c3aed;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* Typing dots */
.landing-page .lp-typing-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #d1d5db;
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes lp-typing-bounce {
    0%, 60%, 100% { transform: translateY(0); background: #d1d5db; }
    30% { transform: translateY(-6px); background: #7c3aed; }
  }
  .landing-page .lp-typing-dot:nth-child(1) { animation: lp-typing-bounce 1.2s 0s ease-in-out infinite; }
  .landing-page .lp-typing-dot:nth-child(2) { animation: lp-typing-bounce 1.2s 0.2s ease-in-out infinite; }
  .landing-page .lp-typing-dot:nth-child(3) { animation: lp-typing-bounce 1.2s 0.4s ease-in-out infinite; }

  /* Scroll reveal */
  .lp-reveal-card {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .lp-reveal-card.lp-revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 768px) {
  .landing-page .lp-profile-demo { grid-template-columns: 1fr; }
  .landing-page .lp-chat-mockup { order: -1; }
}

/* ── How it Works section ── */
.landing-page .lp-steps-inner { text-align: center; }
.landing-page .lp-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
@media (max-width: 768px) {
  .landing-page .lp-steps-grid { grid-template-columns: 1fr; }
}

/* Step card styles */
.landing-page .step-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: left;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.landing-page .step-number {
  width: 36px; height: 36px; border-radius: 50%;
  background: #ede9fe; color: #7c3aed;
  font-size: 15px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.landing-page .step-h3 {
  font-size: 17px; font-weight: 700; color: #111827;
  margin-bottom: 10px; line-height: 1.3;
}
.landing-page .step-p {
  font-size: 14px; color: #6b7280; line-height: 1.65; margin-bottom: 16px;
}
.landing-page .step-time {
  font-size: 12px; font-weight: 600; color: #7c3aed;
  background: #f5f3ff; border: 1px solid #ede9fe;
  border-radius: 99px; padding: 3px 12px; display: inline-block;
}

/* ── FAQ ── */
.landing-page .faq-list { display: flex; flex-direction: column; gap: 0; }
.landing-page .faq-item { border-bottom: 1px solid #e5e7eb; }
.landing-page .faq-item:first-child { border-top: 1px solid #e5e7eb; }
.landing-page .faq-question {
  width: 100%; text-align: left; background: none; border: none;
  padding: 18px 0; cursor: pointer;
  font-size: 15px; font-weight: 600; color: #111827;
  display: flex; justify-content: space-between; align-items: center;
  font-family: inherit;
}
.landing-page .faq-question:hover { color: #7c3aed; }
.landing-page .faq-chevron { font-size: 20px; color: #9ca3af; flex-shrink: 0; }
.landing-page .faq-answer {
  display: none;
  font-size: 14px; color: #6b7280; line-height: 1.7;
  padding-bottom: 16px;
}

/* ── Bottom CTA ── */
.landing-page .lp-bottom-cta {
  text-align: center;
  padding: 80px 24px;
  background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 100%);
}
.landing-page .lp-bottom-cta h2 {
  font-size: 34px; font-weight: 700; color: white;
  margin-bottom: 12px; letter-spacing: -0.01em;
}
.landing-page .lp-bottom-cta .lp-bottom-sub {
  color: rgba(255,255,255,0.75); font-size: 16px; margin-bottom: 32px;
}
.landing-page .lp-btn-white {
  background: white; color: #7c3aed; font-weight: 700;
  font-size: 16px; padding: 14px 32px; border-radius: 99px;
  text-decoration: none; display: inline-block;
  transition: background 0.15s, transform 0.15s;
}
.landing-page .lp-btn-white:hover { background: #f9fafb; transform: translateY(-2px); }
.landing-page .lp-bottom-hint {
  font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 14px;
}

/* ── Footer ── */
.landing-page .lp-footer {
  background: #111827;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 56px 24px 32px;
  color: #9ca3af;
  font-size: 14px;
}
.landing-page .lp-footer-grid {
  max-width: 1100px;
  margin: 0 auto 48px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
}
.landing-page .lp-footer-logo {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.landing-page .lp-footer-tagline {
  color: #9ca3af;
  font-size: 13px;
  margin: 0 0 12px;
  line-height: 1.5;
}
.landing-page .lp-footer-credit {
  color: #6b7280;
  font-size: 12px;
  margin: 0;
}
.landing-page .lp-footer-credit a { color: #9ca3af; text-decoration: none; }
.landing-page .lp-footer-credit a:hover { color: #e5e7eb; }
.landing-page .lp-footer-heading {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #e5e7eb;
  margin-bottom: 14px;
}
.landing-page .lp-footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.landing-page .lp-footer-col a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s;
}
.landing-page .lp-footer-col a:hover { color: #e5e7eb; }
.landing-page .lp-footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 12px;
  color: #6b7280;
  text-align: center;
}
.landing-page .lp-footer-bottom a { color: #9ca3af; text-decoration: none; }
.landing-page .lp-footer-bottom a:hover { color: #e5e7eb; }
@media (max-width: 768px) {
  .landing-page .lp-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .landing-page .lp-footer-brand-col { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .landing-page .lp-footer-grid { grid-template-columns: 1fr; }
}

/* ── Pricing section ── */
.landing-page .pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  font-size: 14px;
  color: var(--muted);
}
.landing-page .pricing-toggle-label { font-weight: 500; color: var(--muted); }
.landing-page .pricing-toggle-label.active { color: #111827; font-weight: 600; }
.landing-page .toggle-switch {
  position: relative;
  width: 44px; height: 24px; cursor: pointer;
}
.landing-page .toggle-switch input { display: none; }
.landing-page .toggle-track {
  width: 44px; height: 24px;
  background: var(--violet);
  border-radius: 99px; transition: background .15s;
}
.landing-page .toggle-thumb {
  position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px;
  background: white; border-radius: 50%;
  transition: transform .15s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.landing-page .toggle-switch input:checked + .toggle-track + .toggle-thumb {
  transform: translateX(20px);
}
.landing-page .save-badge {
  background: #dcfce7; color: #16a34a;
  font-size: 11px; font-weight: 700;
  padding: 2px 7px; border-radius: 99px;
  border: 1px solid #bbf7d0;
}
.landing-page .pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
.landing-page .pricing-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
}
.landing-page .pricing-card.featured {
  border-color: var(--violet);
  box-shadow: 0 0 0 2px var(--violet), 0 4px 16px rgba(124,58,237,0.15);
  position: relative;
}
.landing-page .pricing-card.featured::before {
  content: 'Most popular';
  position: absolute; top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--violet); color: white;
  font-size: 11px; font-weight: 700;
  padding: 3px 12px; border-radius: 99px;
  letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap;
}
.landing-page .pricing-tier-name {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--muted); margin-bottom: 8px;
}
.landing-page .pricing-price {
  display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px;
}
.landing-page .pricing-amount {
  font-size: 36px; font-weight: 700; color: #111827; letter-spacing: -0.02em;
}
.landing-page .pricing-period { font-size: 14px; color: var(--muted); }
.landing-page .pricing-billing-note {
  font-size: 12px; color: var(--muted); margin-bottom: 20px; min-height: 18px;
}
.landing-page .pricing-divider {
  border: none; border-top: 1px solid var(--border); margin: 20px 0;
}
.landing-page .pricing-features {
  list-style: none; display: flex; flex-direction: column;
  gap: 9px; margin-bottom: 24px; flex: 1;
}
.landing-page .pricing-features li {
  display: flex; gap: 9px; align-items: flex-start;
  font-size: 13px; color: #374151; line-height: 1.4;
}
.landing-page .pricing-features li .pf-icon {
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; flex-shrink: 0; margin-top: 1px;
}
.landing-page .pf-icon.included { background: #dcfce7; color: #16a34a; }
.landing-page .pf-icon.excluded { background: #f3f4f6; color: #9ca3af; }
.landing-page .pricing-card.career {
  border-color: #4338ca;
  box-shadow: 0 0 0 2px #4338ca, 0 4px 16px rgba(67,56,202,0.15);
  position: relative;
}
.landing-page .pricing-card.career::before {
  content: 'For active job seekers';
  position: absolute; top: -12px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #4338ca, #7c3aed);
  color: white;
  font-size: 11px; font-weight: 700;
  padding: 3px 12px; border-radius: 99px;
  letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap;
}
.landing-page .pf-soon {
  display: inline-block;
  font-size: 9px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #fef3c7; color: #d97706;
  padding: 1px 6px; border-radius: 99px;
  margin-left: 4px; vertical-align: middle;
}

/* Landing page button variants for pricing section */
.landing-page .lp-btn-full { width: 100%; text-align: center; display: block; }

@media (max-width: 768px) {
  .landing-page .pricing-grid { grid-template-columns: 1fr; }
}

/* ── Global utility: soon badge (dashboard-safe, not scoped to .landing-page) ── */
/* NOTE: .pf-soon in landing page CSS is scoped to .landing-page and won't work  */
/* in the dashboard. Use .pf-soon-dash for the Job Targets tab button badge.      */
.pf-soon-dash {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #fef3c7;
  color: #92400e;
  border-radius: 4px;
  padding: 2px 6px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ── Welcome page ─────────────────────────────────────────────── */
.welcome-page {
  min-height: 100vh;
  background: var(--bg, #f9fafb);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 64px 24px;
}

.welcome-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border);
  max-width: 560px;
  width: 100%;
  padding: 40px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.welcome-check {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #dcfce7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}

.welcome-steps {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

.welcome-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--body);
  font-size: 15px;
  transition: color 0.15s;
}

.welcome-step:last-child {
  border-bottom: none;
}

.welcome-step:hover {
  color: var(--violet);
}

.welcome-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--violet-tint);
  color: var(--violet);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.welcome-step-arrow {
  margin-left: auto;
  color: var(--muted);
  font-size: 16px;
}

.welcome-callout {
  background: var(--violet-tint, #f0ebff);
  border: 1px solid var(--violet);
  border-radius: 12px;
  padding: 16px 20px;
  margin-top: 20px;
}

.welcome-callout-title {
  font-weight: 700;
  color: var(--violet);
  margin: 0 0 6px;
  font-size: 15px;
}

.welcome-callout-body {
  color: var(--body);
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}

/* Welcome page polling state */
.welcome-polling {
  text-align: center;
  padding: 40px 0;
  color: var(--muted);
  font-size: 14px;
}

.welcome-polling-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--violet);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

/* ── Phase 11a: Purpose selection + intake forms ─────────────────────────── */

/* Purpose grid */
.purpose-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.purpose-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 14px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
}
.purpose-card:hover {
  border-color: #7c3aed;
  background: #faf5ff;
}
.purpose-card.selected {
  border-color: #7c3aed;
  background: #f5f3ff;
}
.purpose-icon { font-size: 24px; margin-bottom: 6px; }
.purpose-label { font-weight: 600; font-size: 14px; color: #1e1b4b; }
.purpose-hint { font-size: 12px; color: #6b7280; margin-top: 2px; }

/* Intake forms */
.intake-group { margin-bottom: 24px; }
.intake-group-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #f3f4f6;
}
.intake-reveal {
  margin-top: 10px;
  padding: 12px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}
.multi-check {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.multi-check label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  cursor: pointer;
}
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.radio-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}
