/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg-1); color: var(--text-1); line-height: 1.6; -webkit-font-smoothing: antialiased; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; font-size: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* ── Theme: Dark (default) ──────────────────────────────────────────────────── */
:root {
  --bg-0: #06091a;
  --bg-1: #0b0f1e;
  --bg-2: #111628;
  --bg-3: #182035;
  --bg-4: #1f2a43;
  --bg-5: #283652;
  --border: rgba(130,160,255,0.10);
  --border-md: rgba(130,160,255,0.16);
  --border-strong: rgba(130,160,255,0.26);
  --text-1: #f0f2ff;
  --text-2: #8b97c0;
  --text-3: #4d5a7c;
  --accent: #818cf8;
  --accent-hover: #6366f1;
  --accent-soft: rgba(129,140,248,0.16);
  --accent-soft-hover: rgba(129,140,248,0.26);
  --green: #34d399;
  --green-soft: rgba(52,211,153,0.15);
  --amber: #fbbf24;
  --amber-soft: rgba(251,191,36,0.15);
  --red: #f87171;
  --red-soft: rgba(248,113,113,0.15);
  --blue: #60a5fa;
  --blue-soft: rgba(96,165,250,0.15);
  --purple: #c084fc;
  --r-sm: 7px;
  --r-md: 11px;
  --r-lg: 16px;
  --r-xl: 24px;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.6), 0 0 0 1px rgba(130,160,255,0.07);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.65), 0 0 0 1px rgba(130,160,255,0.09);
  --shadow-lg: 0 12px 44px rgba(0,0,0,0.75);
  --shadow-xl: 0 24px 80px rgba(0,0,0,0.85);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
  --sidebar-w: 260px;
  --right-panel-w: 320px;
  --header-h: 54px;
  --nav-accent: linear-gradient(135deg, #818cf8 0%, #c084fc 100%);
  --nav-bg: linear-gradient(180deg, #111628 0%, #0d1020 100%);
  --topbar-bg: linear-gradient(90deg, #111628 0%, #131b2e 100%);
  --section-header-bg: linear-gradient(90deg, rgba(129,140,248,0.09) 0%, var(--bg-3) 100%);
}

/* ── Theme: Light ───────────────────────────────────────────────────────────── */
[data-theme="light"] {
  --bg-0: #eef0f8;
  --bg-1: #f5f6fc;
  --bg-2: #ffffff;
  --bg-3: #f0f1f9;
  --bg-4: #e4e6f4;
  --bg-5: #d6d9ee;
  --border: rgba(99,102,241,0.10);
  --border-md: rgba(99,102,241,0.15);
  --border-strong: rgba(99,102,241,0.25);
  --text-1: #0e1023;
  --text-2: #4a5080;
  --text-3: #8b93bc;
  --accent: #5b5fef;
  --accent-hover: #4547d4;
  --accent-soft: rgba(91,95,239,0.10);
  --accent-soft-hover: rgba(91,95,239,0.18);
  --green: #059669;
  --green-soft: rgba(5,150,105,0.12);
  --amber: #d97706;
  --amber-soft: rgba(217,119,6,0.12);
  --red: #dc2626;
  --red-soft: rgba(220,38,38,0.10);
  --blue: #2563eb;
  --blue-soft: rgba(37,99,235,0.12);
  --purple: #7c3aed;
  --shadow-sm: 0 1px 4px rgba(60,70,150,0.10);
  --shadow-md: 0 4px 20px rgba(60,70,150,0.12);
  --shadow-lg: 0 12px 40px rgba(60,70,150,0.16);
  --shadow-xl: 0 24px 80px rgba(60,70,150,0.20);
  --nav-accent: linear-gradient(135deg, #5b5fef 0%, #7c3aed 100%);
  --nav-bg: linear-gradient(180deg, #ffffff 0%, #f8f9ff 100%);
  --topbar-bg: linear-gradient(90deg, #ffffff 0%, #f8f9ff 100%);
  --section-header-bg: linear-gradient(90deg, rgba(91,95,239,0.07) 0%, var(--bg-3) 100%);
}

/* ── Animations ─────────────────────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes skeleton-shimmer {
  from { background-position: -600px 0; }
  to   { background-position: 600px 0; }
}
.animate-in { animation: fadeInUp 0.45s cubic-bezier(0.22,1,0.36,1) both; }
.animate-in-d1 { animation-delay: 0.07s; }
.animate-in-d2 { animation-delay: 0.14s; }
.animate-in-d3 { animation-delay: 0.21s; }
.animate-in-d4 { animation-delay: 0.28s; }
.animate-in-d5 { animation-delay: 0.35s; }

/* ── Scrollbar ──────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ── Utility ────────────────────────────────────────────────────────────────── */
.hidden { display: none !important; }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.text-muted { color: var(--text-2); }
.text-dim { color: var(--text-3); }
.text-accent { color: var(--accent); }
.text-green { color: var(--green); }
.text-amber { color: var(--amber); }
.text-red { color: var(--red); }
.text-sm { font-size: 12px; }
.text-xs { font-size: 11px; }
.fw-600 { font-weight: 600; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mono { font-family: var(--font-mono); }

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--r-sm); font-size: 13px; font-weight: 500;
  transition: all 0.15s ease; white-space: nowrap; line-height: 1;
}
.btn-primary {
  background: linear-gradient(135deg, #818cf8 0%, #6366f1 100%);
  color: #fff; box-shadow: 0 2px 8px rgba(99,102,241,0.35);
}
.btn-primary:hover { background: linear-gradient(135deg, #9199fb 0%, #7476f3 100%); box-shadow: 0 4px 16px rgba(99,102,241,0.45), 0 0 0 3px var(--accent-soft); }
.btn-outline {
  border: 1px solid var(--border-md); color: var(--text-1); background: transparent;
}
.btn-outline:hover { background: var(--bg-4); border-color: var(--border-strong); }
.btn-ghost { color: var(--text-2); padding: 7px 10px; border-radius: var(--r-sm); }
.btn-ghost:hover { background: var(--bg-4); color: var(--text-1); }
.btn-sm { padding: 5px 10px; font-size: 12px; border-radius: var(--r-sm); font-weight: 500; }
.btn-sm.btn-primary { background: var(--accent); color: #fff; }
.btn-sm.btn-primary:hover { background: var(--accent-hover); }
.btn-sm.btn-outline { border: 1px solid var(--border-md); color: var(--text-1); }
.btn-sm.btn-outline:hover { background: var(--bg-4); }
.btn-icon {
  width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm); color: var(--text-2); font-size: 13px;
}
.btn-icon:hover { background: var(--bg-4); color: var(--text-1); }
.btn-danger { background: var(--red-soft); color: var(--red); border: 1px solid rgba(239,68,68,0.2); }
.btn-danger:hover { background: var(--red); color: #fff; }

/* ── Inputs ─────────────────────────────────────────────────────────────────── */
.input {
  background: var(--bg-3); border: 1px solid var(--border-md); border-radius: var(--r-sm);
  color: var(--text-1); padding: 8px 12px; font-size: 13px; width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input::placeholder { color: var(--text-3); }
.input-sm { padding: 5px 9px; font-size: 12px; }
textarea.input { resize: vertical; min-height: 80px; line-height: 1.5; }

/* ── Badge / Chip ───────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 7px; border-radius: 99px; font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
}
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-amber { background: var(--amber-soft); color: var(--amber); }
.badge-red { background: var(--red-soft); color: var(--red); }
.badge-blue { background: var(--blue-soft); color: var(--blue); }
.badge-default { background: var(--bg-4); color: var(--text-2); }
.badge-accent { background: var(--accent-soft); color: var(--accent); }
.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.dot-green { background: var(--green); }
.dot-amber { background: var(--amber); }
.dot-red { background: var(--red); }
.dot-blue { background: var(--blue); }
.dot-dim { background: var(--border-strong); }

/* ── Card ───────────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 20px;
}
.card-sm { padding: 14px; border-radius: var(--r-md); }

/* ── Divider ────────────────────────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 12px 0; }

/* ── Spinner ────────────────────────────────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  width: 14px; height: 14px; border: 2px solid var(--border-md); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 0.7s linear infinite; display: inline-block; flex-shrink: 0;
}
.spinner-lg { width: 24px; height: 24px; border-width: 3px; }

/* ── Toast ──────────────────────────────────────────────────────────────────── */
#toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-3); border: 1px solid var(--border-md); border-radius: var(--r-md);
  padding: 11px 16px; font-size: 13px; box-shadow: var(--shadow-lg);
  pointer-events: all; animation: toast-in 0.22s ease;
  max-width: 340px;
}
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.toast-icon { font-size: 15px; flex-shrink: 0; }
.toast.toast-success { border-color: rgba(34,197,94,0.3); }
.toast.toast-error { border-color: rgba(239,68,68,0.3); }
.toast.toast-warn { border-color: rgba(245,158,11,0.3); }

/* ── Modal ──────────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
  z-index: 8000; display: flex; align-items: center; justify-content: center;
  animation: fade-in 0.15s ease;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--bg-2); border: 1px solid var(--border-md); border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl); width: 100%; max-width: 440px;
  animation: modal-in 0.2s ease;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(-12px) scale(0.97); } to { opacity: 1; transform: none; } }
.modal-header {
  padding: 24px 24px 0; display: flex; align-items: flex-start; justify-content: space-between;
}
.modal-body { padding: 20px 24px 24px; }
.modal-title { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.modal-sub { font-size: 13px; color: var(--text-2); margin-top: 4px; }

/* ── Auth Modal ─────────────────────────────────────────────────────────────── */
.auth-modal { width: 440px; position: relative; padding: 0; }
.auth-close-btn {
  position: absolute; top: 16px; right: 16px; font-size: 20px; line-height: 1;
  z-index: 1; color: var(--text-3); padding: 4px 7px;
}
.auth-close-btn:hover { color: var(--text-1); }
.auth-brand { display: flex; align-items: center; gap: 8px; justify-content: center; padding: 28px 28px 0; }
.auth-brand-mark { font-size: 18px; color: var(--accent); }
.auth-brand-name { font-size: 15px; font-weight: 800; letter-spacing: -0.02em; color: var(--text-1); }
.auth-headline { text-align: center; padding: 14px 28px 0; }
.auth-headline-title { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 4px; }
.auth-headline-sub { font-size: 13px; color: var(--text-2); }
.auth-tabs { display: flex; border-bottom: 1px solid var(--border); margin: 20px 28px 0; }
.auth-tab {
  padding: 9px 0; margin-right: 22px; font-size: 13px; font-weight: 500; color: var(--text-2);
  border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  background: none; border-top: none; border-left: none; border-right: none; font-family: inherit;
}
.auth-tab.active { color: var(--text-1); border-bottom-color: var(--accent); }
.auth-body { padding: 20px 28px 28px; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.form-label { font-size: 12px; font-weight: 600; color: var(--text-2); margin-bottom: 4px; display: block; }
.form-group { display: flex; flex-direction: column; }
.auth-divider { display: flex; align-items: center; gap: 10px; color: var(--text-3); font-size: 12px; margin: 16px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-note { font-size: 11px; color: var(--text-3); text-align: center; line-height: 1.5; margin-top: -2px; }
.auth-error { background: var(--red-soft); border: 1px solid rgba(239,68,68,0.3); border-radius: var(--r-sm); padding: 8px 12px; font-size: 12px; color: var(--red); }
.auth-inline-error {
  background: var(--red-soft); border: 1px solid rgba(248,113,113,0.3);
  border-radius: var(--r-sm); padding: 8px 12px; font-size: 12px; color: var(--red); margin-bottom: 2px;
}
.pw-field-wrap { position: relative; }
.pw-field-wrap .input { padding-right: 54px; }
.pw-toggle {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  font-size: 12px; font-weight: 500; color: var(--text-3);
  background: none; border: none; cursor: pointer; padding: 2px 4px; transition: color 0.12s;
}
.pw-toggle:hover { color: var(--text-1); }
.auth-link-btn {
  background: none; border: none; cursor: pointer; font-size: 12px; color: var(--text-3);
  width: 100%; text-align: center; padding: 8px 0 0; display: block; font-family: inherit;
  transition: color 0.12s;
}
.auth-link-btn:hover { color: var(--accent); }
/* Account created success screen */
.account-created-check {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--green-soft); border: 2px solid var(--green);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; font-size: 28px; color: var(--green); font-weight: 700;
  animation: check-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes check-pop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   LANDING PAGE
═══════════════════════════════════════════════════════════════════════════ */
.landing-page { background: var(--bg-1); min-height: 100vh; }

/* Nav */
.landing-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 60px;
  background: rgba(12,13,15,0.85); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
[data-theme="light"] .landing-nav { background: rgba(245,246,252,0.92); border-color: rgba(99,102,241,0.12); }
.nav-logo { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; letter-spacing: -0.02em; }
.nav-logo-icon {
  width: 28px; height: 28px; background: var(--accent); border-radius: 7px;
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; color: #fff;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link { padding: 6px 12px; border-radius: var(--r-sm); font-size: 13px; color: var(--text-2); transition: color 0.15s, background 0.15s; }
.nav-link:hover { color: var(--text-1); background: var(--bg-4); }
.nav-actions { display: flex; align-items: center; gap: 8px; }

/* Hero */
.hero {
  padding: 140px 40px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 1000px; height: 600px;
  background: radial-gradient(ellipse at 50% 0%, rgba(129,140,248,0.22) 0%, rgba(192,132,252,0.08) 40%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-soft); border: 1px solid rgba(129,140,248,0.3); color: var(--accent);
  padding: 5px 14px; border-radius: 99px; font-size: 12px; font-weight: 600;
  margin-bottom: 24px; letter-spacing: 0.04em;
  box-shadow: 0 0 20px rgba(129,140,248,0.15);
}
.hero h1 {
  font-size: clamp(36px, 5.5vw, 68px);
  font-weight: 800; letter-spacing: -0.04em; line-height: 1.1;
  color: var(--text-1); max-width: 820px; margin: 0 auto 20px;
}
.hero h1 span {
  background: var(--nav-accent); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub {
  font-size: clamp(16px, 2vw, 20px); color: var(--text-2); max-width: 520px;
  margin: 0 auto 36px; line-height: 1.6;
}
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.hero-actions .btn { font-size: 14px; padding: 11px 22px; }
.hero-actions .btn-primary { box-shadow: 0 4px 20px rgba(99,102,241,0.35); }
.hero-note { font-size: 12px; color: var(--text-3); }

/* Hero visual — browser mockup */
.hero-visual-wrap {
  margin-top: 56px; position: relative; max-width: 1040px; margin-left: auto; margin-right: auto;
}
.hero-visual-wrap::before {
  content: ''; position: absolute; inset: -40px;
  background: radial-gradient(ellipse at 50% 100%, rgba(99,102,241,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.demo-browser {
  background: var(--bg-2); border: 1px solid var(--border-md);
  border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-xl);
  position: relative;
}
.demo-chrome {
  background: var(--bg-3); padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--border);
}
.demo-dots { display: flex; gap: 6px; }
.demo-dots span { width: 11px; height: 11px; border-radius: 50%; }
.demo-dots span:nth-child(1) { background: #ff5f57; }
.demo-dots span:nth-child(2) { background: #febc2e; }
.demo-dots span:nth-child(3) { background: #28c840; }
.demo-url-bar {
  flex: 1; background: var(--bg-4); border-radius: 5px;
  padding: 5px 12px; font-size: 11.5px; color: var(--text-3); font-family: var(--font-mono);
  border: 1px solid var(--border);
}
.demo-content {
  display: grid; grid-template-columns: 200px 1fr 180px;
  height: 480px; overflow: hidden;
}
/* Demo source sidebar */
.demo-src {
  background: var(--bg-2); border-right: 1px solid var(--border);
  padding: 12px; display: flex; flex-direction: column; gap: 8px; overflow: hidden;
}
.demo-src-header { font-size: 10px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; padding: 4px 0; }
.demo-feed { margin-top: 4px; }
.demo-feed-row {
  display: flex; align-items: center; gap: 6px; padding: 5px 6px; border-radius: 5px;
  font-size: 11px; font-weight: 600; color: var(--text-2);
}
.demo-feed-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.demo-feed-count { margin-left: auto; background: var(--bg-4); border-radius: 99px; padding: 1px 5px; font-size: 10px; }
.demo-acard {
  background: var(--bg-3); border: 1px solid var(--border); border-radius: 6px;
  padding: 8px; margin-top: 4px; cursor: grab; transition: border-color 0.15s;
}
.demo-acard.active { border-color: var(--accent); background: var(--accent-soft); }
.demo-acard-title { font-size: 10.5px; font-weight: 600; color: var(--text-1); line-height: 1.3; margin-bottom: 4px; }
.demo-acard-meta { font-size: 9.5px; color: var(--text-3); }
/* Demo editor */
.demo-editor {
  background: var(--bg-1); padding: 16px; overflow: hidden; display: flex; flex-direction: column; gap: 10px;
}
.demo-section-tag {
  font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-3); border-bottom: 1px solid var(--border); padding-bottom: 6px;
}
.demo-story-card {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px; padding: 12px;
}
.demo-story-title { font-size: 12px; font-weight: 700; color: var(--text-1); margin-bottom: 8px; line-height: 1.3; }
.demo-story-label { font-size: 10px; font-weight: 700; color: var(--accent); margin-top: 6px; margin-bottom: 2px; }
.demo-story-text { font-size: 10px; color: var(--text-2); line-height: 1.5; }
.demo-action-strip { display: flex; gap: 5px; margin-top: 8px; }
.demo-chip {
  font-size: 9.5px; padding: 3px 8px; border-radius: 4px;
  background: var(--bg-4); color: var(--text-2); border: 1px solid var(--border);
}
.demo-chip.primary { background: var(--accent-soft); color: var(--accent); border-color: rgba(99,102,241,0.25); }
/* Demo AI panel */
.demo-ai {
  background: var(--bg-2); border-left: 1px solid var(--border);
  padding: 12px; display: flex; flex-direction: column; gap: 8px; overflow: hidden;
}
.demo-ai-header { font-size: 10px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; }
.demo-tone-chip {
  padding: 4px 8px; border-radius: 4px; font-size: 9.5px; font-weight: 600;
  border: 1px solid var(--border); color: var(--text-2); margin-bottom: 3px;
}
.demo-tone-chip.active { background: var(--accent-soft); color: var(--accent); border-color: rgba(99,102,241,0.3); }
.demo-ai-btn {
  padding: 6px 8px; border-radius: 5px; background: var(--bg-3); border: 1px solid var(--border);
  font-size: 9.5px; color: var(--text-2); margin-top: 3px;
}
.demo-ai-btn.generating {
  color: var(--accent); border-color: rgba(99,102,241,0.3); background: var(--accent-soft);
  display: flex; align-items: center; gap: 5px;
}
.demo-mini-spinner {
  width: 8px; height: 8px; border: 1.5px solid var(--accent-soft); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 0.6s linear infinite;
}

/* Social proof strip */
.social-strip {
  display: flex; align-items: center; justify-content: center; gap: 32px;
  padding: 24px 40px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin-top: 56px; flex-wrap: wrap;
}
.social-item { font-size: 12px; color: var(--text-3); font-weight: 500; white-space: nowrap; }
.social-item strong { color: var(--text-1); }

/* Features section */
.features-section { padding: 96px 40px; max-width: 1100px; margin: 0 auto; }
.section-eyebrow { font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.section-title { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 14px; }
.section-sub { font-size: 16px; color: var(--text-2); max-width: 520px; line-height: 1.6; margin-bottom: 56px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 24px; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: var(--shadow-md), 0 0 0 1px var(--border-strong); }
.feature-icon {
  width: 40px; height: 40px; border-radius: var(--r-md); background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 14px;
}
.feature-title { font-size: 14px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.01em; }
.feature-desc { font-size: 13px; color: var(--text-2); line-height: 1.6; }

/* Testimonials */
.testimonials-section { padding: 96px 40px; max-width: 1100px; margin: 0 auto; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.testimonial-card {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 28px; display: flex; flex-direction: column; gap: 0;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.testimonial-card:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.testimonial-stars { color: var(--amber); font-size: 12px; letter-spacing: 2px; margin-bottom: 16px; }
.testimonial-quote { font-size: 14px; color: var(--text-1); line-height: 1.75; flex: 1; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; padding-top: 20px; border-top: 1px solid var(--border); }
.testimonial-avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; color: var(--accent); flex-shrink: 0;
  border: 1.5px solid rgba(129,140,248,0.25);
}
.testimonial-name { font-size: 13px; font-weight: 700; color: var(--text-1); line-height: 1.3; }
.testimonial-role { font-size: 11px; color: var(--text-3); margin-top: 2px; }
@media (max-width: 820px) { .testimonials-grid { grid-template-columns: 1fr; } }

/* How it works */
.how-section { padding: 80px 40px; background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.how-inner { max-width: 900px; margin: 0 auto; }
.how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 56px; position: relative; }
.how-steps::before {
  content: ''; position: absolute; top: 20px; left: calc(16.6% + 20px); right: calc(16.6% + 20px);
  height: 1px; background: linear-gradient(90deg, var(--accent), var(--purple));
  opacity: 0.4;
}
.how-step { text-align: center; }
.how-number {
  width: 40px; height: 40px; background: var(--accent); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800;
  margin: 0 auto 16px; position: relative; z-index: 1;
}
.how-step h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.how-step p { font-size: 13px; color: var(--text-2); line-height: 1.6; }

/* Integrations */
.integrations-section { padding: 80px 40px; max-width: 900px; margin: 0 auto; text-align: center; }
.integrations-grid { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 40px; }
.integration-chip {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 10px 16px; font-size: 13px; font-weight: 600; color: var(--text-1);
  transition: border-color 0.15s, background 0.15s;
}
.integration-chip:hover { border-color: var(--border-strong); background: var(--bg-3); }
.integration-icon { font-size: 18px; }

/* Pricing */
.pricing-section { padding: 96px 40px; max-width: 1000px; margin: 0 auto; text-align: center; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; text-align: left; }
.pricing-card {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 28px; display: flex; flex-direction: column; gap: 20px;
  transition: border-color 0.2s;
}
.pricing-card.featured {
  border-color: var(--accent); background: var(--bg-3);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-md);
  position: relative;
}
.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
  padding: 3px 12px; border-radius: 99px; letter-spacing: 0.04em;
}
.pricing-tier { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); }
.pricing-price { display: flex; align-items: baseline; gap: 4px; }
.pricing-price .amount { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; }
.pricing-price .period { font-size: 14px; color: var(--text-2); }
.pricing-desc { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.pricing-features { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pricing-feature { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; }
.pricing-feature::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.pricing-feature.dim { color: var(--text-3); }
.pricing-feature.dim::before { color: var(--text-3); content: '–'; }
.pricing-value-bar { max-width: 620px; margin: 0 auto 52px; padding: 14px 22px; background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--r-md); font-size: 13.5px; color: var(--text-2); line-height: 1.6; text-align: center; }
.pricing-value-bar strong { color: var(--text-1); }
.pricing-trial-badge { display: inline-block; margin: 8px 0 12px; padding: 4px 12px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; border-radius: 99px; letter-spacing: 0.04em; }
.pricing-faq { margin-top: 80px; text-align: left; }
.pricing-faq-title { font-size: 22px; font-weight: 700; text-align: center; margin-bottom: 36px; }
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.faq-item { padding: 20px; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-md); }
.faq-q { font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--text-1); }
.faq-a { font-size: 13px; color: var(--text-2); line-height: 1.65; }
@media (max-width: 700px) { .faq-grid { grid-template-columns: 1fr; } }

/* CTA section */
.cta-section {
  padding: 96px 40px; text-align: center;
  background: linear-gradient(180deg, transparent, rgba(99,102,241,0.06));
  border-top: 1px solid var(--border);
}
.cta-section h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 14px; }
.cta-section p { font-size: 16px; color: var(--text-2); margin-bottom: 36px; }

/* Footer */
.landing-footer {
  border-top: 1px solid var(--border); padding: 32px 40px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--text-3); flex-wrap: wrap; gap: 12px;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: var(--text-1); }

/* ═══════════════════════════════════════════════════════════════════════════
   APP SHELL (Dashboard + Builder shared)
═══════════════════════════════════════════════════════════════════════════ */
.app-shell { display: flex; height: 100vh; overflow: hidden; }

/* App sidebar (left nav) */
.app-nav {
  width: var(--sidebar-w); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; flex-shrink: 0; overflow: hidden;
  background: var(--nav-bg);
}
.app-nav-header {
  padding: 16px 16px 14px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.app-nav-logo { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 800; letter-spacing: -0.02em; color: var(--text-1); }
.app-nav-logo-icon {
  width: 26px; height: 26px;
  background: var(--nav-accent);
  border-radius: 7px; box-shadow: 0 2px 8px rgba(129,140,248,0.4);
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 900; color: #fff;
}
.nav-items { padding: 10px 8px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r-md);
  font-size: 13px; color: var(--text-2); font-weight: 500; cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.nav-item:hover { color: var(--text-1); background: var(--bg-4); }
.nav-item.active {
  color: var(--accent); background: var(--accent-soft); font-weight: 600;
  box-shadow: inset 3px 0 0 var(--accent);
}
.nav-item .icon { font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; }
.nav-bottom { padding: 12px 8px; border-top: 1px solid var(--border); }
.user-row {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: var(--r-md);
}
.user-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--nav-accent);
  box-shadow: 0 2px 6px rgba(129,140,248,0.35);
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: #fff;
  flex-shrink: 0;
}
.user-info { flex: 1; min-width: 0; }
.user-email { font-size: 12px; color: var(--text-1); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-plan { font-size: 10px; color: var(--text-3); }
.logout-btn {
  width: 100%; margin-top: 4px; padding: 7px 12px;
  font-size: 12px; font-weight: 500; color: var(--text-3);
  background: transparent; border: 1px solid var(--border);
  border-radius: var(--r-sm); text-align: center;
  cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.logout-btn:hover { background: var(--red-soft); color: var(--red); border-color: rgba(239,68,68,0.25); }

/* Theme toggle row */
.theme-toggle-row {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: var(--r-md);
  cursor: pointer; transition: background 0.15s; margin-bottom: 4px; user-select: none;
}
.theme-toggle-row:hover { background: var(--bg-4); }
.theme-toggle-icon { font-size: 14px; width: 20px; text-align: center; }
.theme-toggle-label { font-size: 13px; color: var(--text-2); font-weight: 500; flex: 1; }
.theme-toggle-pill {
  width: 30px; height: 17px; background: var(--bg-5); border-radius: 99px;
  position: relative; transition: background 0.2s; border: 1px solid var(--border-md);
}
.theme-toggle-knob {
  width: 11px; height: 11px; background: var(--text-3); border-radius: 50%;
  position: absolute; top: 2px; left: 2px; transition: left 0.2s, background 0.2s;
}
.theme-toggle-knob.on {
  left: 15px; background: var(--accent);
}
.theme-toggle-row:hover .theme-toggle-pill { border-color: var(--accent); }

/* App main content */
.app-main { flex: 1; overflow: auto; display: flex; flex-direction: column; min-width: 0; }
.app-topbar {
  height: var(--header-h);
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; flex-shrink: 0; position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
}
.page-title { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.page-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.page-body { padding: 28px; flex: 1; overflow: auto; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-3); }
.empty-state-title { font-size: 15px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.empty-state-sub { font-size: 13px; }

/* Trial ending banner */
.trial-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 20px; font-size: 13px; font-weight: 500;
  background: var(--amber-soft); border-bottom: 1px solid currentColor;
  flex-wrap: wrap;
}
.trial-banner strong { font-weight: 700; }

/* Onboarding banner (new users) */
.onboard-banner {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
  padding: 24px 28px; border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--accent-soft) 0%, rgba(192,132,252,0.08) 100%);
  border: 1px solid var(--accent); flex-wrap: wrap;
}
.onboard-banner-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.onboard-banner-sub { font-size: 13px; color: var(--text-2); margin-bottom: 16px; }
.onboard-steps { display: flex; flex-direction: column; gap: 10px; }
.onboard-step { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text-2); line-height: 1.5; }
.onboard-step strong { color: var(--text-1); }
.onboard-num {
  width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px;
}
.settings-section { margin-bottom: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.settings-section:last-child { border-bottom: none; }
.settings-section-title { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.settings-section-sub { font-size: 12px; color: var(--text-3); }
.settings-api-row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; padding: 8px 12px; background: var(--bg-2); border-radius: var(--r-sm); }

/* ── Settings Tabs ───────────────────────────────────────────────────────────── */
.settings-tabs { display: flex; gap: 4px; margin-bottom: 28px; padding: 4px; background: var(--bg-2); border-radius: var(--r-md); border: 1px solid var(--border); }
.settings-tab { flex: 1; padding: 8px 14px; font-size: 13px; font-weight: 500; color: var(--text-2); border-radius: calc(var(--r-md) - 2px); cursor: pointer; text-align: center; transition: background 0.15s, color 0.15s; border: none; background: none; }
.settings-tab:hover { color: var(--text-1); background: var(--bg-3); }
.settings-tab.active { background: var(--accent); color: #fff; font-weight: 600; box-shadow: 0 2px 8px rgba(99,102,241,0.35); }
[data-theme="light"] .settings-tab.active { box-shadow: 0 2px 8px rgba(91,95,239,0.25); }

/* ═══════════════════════════════════════════════════════════════════════════
   DASHBOARD
═══════════════════════════════════════════════════════════════════════════ */
.dashboard-content { padding: 28px; flex: 1; display: flex; flex-direction: column; gap: 28px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 20px 22px; transition: border-color 0.2s, box-shadow 0.2s;
  position: relative; overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--nav-accent); opacity: 0.6;
}
.stat-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.stat-label { font-size: 11px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.stat-value { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin-bottom: 6px; color: var(--text-1); }
.stat-change { font-size: 12px; color: var(--text-3); }
.stat-change.up { color: var(--green); }
.stat-change.down { color: var(--red); }

.dash-section-title { font-size: 13px; font-weight: 700; color: var(--text-1); margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }

.newsletter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.newsletter-card {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 18px; cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  display: flex; flex-direction: column; gap: 12px;
}
.newsletter-card:hover { border-color: var(--accent); box-shadow: 0 4px 20px rgba(129,140,248,0.12), var(--shadow-sm); transform: translateY(-2px); }
.newsletter-card-title { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.newsletter-card-subject { font-size: 12px; color: var(--text-2); line-height: 1.4; margin-top: 2px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.newsletter-card-meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.newsletter-card-stats { display: flex; gap: 12px; }
.newsletter-stat { font-size: 11px; color: var(--text-3); }
.newsletter-stat strong { color: var(--text-1); font-weight: 600; }
.newsletter-card-date { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.newsletter-card-actions { display: flex; gap: 4px; opacity: 0; transition: opacity 0.15s; }
.newsletter-card:hover .newsletter-card-actions { opacity: 1; }
.nl-action-btn { font-size: 10px; padding: 2px 6px; border-radius: 3px; background: var(--bg-4); color: var(--text-2); border: 1px solid var(--border); font-weight: 500; transition: all 0.12s; }
.nl-action-btn:hover { background: var(--accent-soft); color: var(--accent); border-color: rgba(99,102,241,0.3); }
.nl-action-btn.danger:hover { background: var(--red-soft); color: var(--red); border-color: rgba(239,68,68,0.3); }
.new-newsletter-card {
  background: transparent; border: 1px dashed var(--border-strong); border-radius: var(--r-lg);
  padding: 18px; cursor: pointer; transition: border-color 0.15s, background 0.15s;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; min-height: 140px; color: var(--text-3);
}
.new-newsletter-card:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.new-newsletter-icon { font-size: 24px; }
.new-newsletter-label { font-size: 13px; font-weight: 600; }

.feed-health-list { display: flex; flex-direction: column; gap: 8px; }
.feed-health-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: 10px 14px;
}
.feed-health-name { font-size: 13px; font-weight: 500; flex: 1; }
.feed-health-count { font-size: 12px; color: var(--text-3); }

/* ═══════════════════════════════════════════════════════════════════════════
   BUILDER
═══════════════════════════════════════════════════════════════════════════ */
.builder-shell { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
.builder-topbar {
  height: var(--header-h);
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px; padding: 0 16px; flex-shrink: 0;
  position: relative; z-index: 60;
  box-shadow: 0 1px 0 var(--border);
}
.builder-topbar-left { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.builder-topbar-center { display: flex; align-items: center; gap: 8px; }
.builder-topbar-right { display: flex; align-items: center; gap: 8px; flex: 1; justify-content: flex-end; }
.newsletter-title-input {
  font-size: 14px; font-weight: 700; background: transparent; border: none;
  color: var(--text-1); outline: none; min-width: 0; max-width: 300px;
  border-radius: var(--r-sm); padding: 4px 6px;
}
.newsletter-title-input:hover { background: var(--bg-3); }
.newsletter-title-input:focus { background: var(--bg-3); box-shadow: 0 0 0 2px var(--accent-soft); }
.save-pill { font-size: 11px; color: var(--text-3); background: var(--bg-3); padding: 3px 9px; border-radius: 99px; font-weight: 500; }

/* Builder body */
.builder-body {
  display: flex; flex: 1; overflow: hidden;
}

/* Source sidebar */
.source-sidebar {
  width: var(--sidebar-w); background: var(--bg-2); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; flex-shrink: 0; overflow: hidden;
}
.source-sidebar-header {
  padding: 12px 14px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.source-sidebar-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); }
.source-add-form { padding: 10px 12px; border-bottom: 1px solid var(--border); display: flex; gap: 6px; }
.source-add-form .input { font-size: 12px; }
.sources-list { flex: 1; overflow-y: auto; padding: 8px 0; }

/* Source manager pills */
.source-manager { display: flex; flex-direction: column; gap: 3px; padding: 8px 8px 4px; }
.source-pill {
  display: flex; align-items: center; gap: 6px; padding: 4px 6px;
  border-radius: var(--r-sm); background: var(--bg-2);
}
.source-pill-name { font-size: 11px; font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.source-pill-count { font-size: 10px; color: var(--text-3); background: var(--bg-4); padding: 1px 5px; border-radius: 99px; }
.feed-remove-btn { opacity: 0; font-size: 13px; line-height: 1; color: var(--text-3); transition: opacity 0.15s; padding: 1px 3px; border-radius: 3px; }
.source-pill:hover .feed-remove-btn { opacity: 1; }
.feed-remove-btn:hover { color: var(--red); }
.source-divider { height: 1px; background: var(--border); margin: 6px 0; }

/* Article cards in source sidebar */
.article-card {
  background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 9px 10px; cursor: grab; transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  position: relative; user-select: none;
}
.article-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.article-card:active { cursor: grabbing; }
.article-card.dragging { opacity: 0.5; border-color: var(--accent); }
.article-card.in-section { opacity: 0.5; }
.article-card-title { font-size: 12px; font-weight: 600; line-height: 1.35; color: var(--text-1); margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-card-meta { display: flex; align-items: center; justify-content: space-between; }
.article-card-source { font-size: 10.5px; color: var(--text-3); }
.article-card-time { font-size: 10.5px; color: var(--text-3); }
.article-card-actions {
  position: absolute; bottom: 6px; right: 8px;
  display: flex; gap: 4px; opacity: 0; transition: opacity 0.15s;
}
.article-card:hover .article-card-actions { opacity: 1; }
.article-card-btn {
  font-size: 10px; padding: 2px 6px; border-radius: 3px; background: var(--bg-4);
  color: var(--text-2); border: 1px solid var(--border); font-weight: 500;
}
.article-card-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.article-card-btn.remove-btn:hover { background: var(--red); color: #fff; border-color: var(--red); }
.source-empty {
  padding: 32px 16px; text-align: center; color: var(--text-3); font-size: 12px; line-height: 1.6;
}
.source-empty-icon { font-size: 28px; margin-bottom: 10px; opacity: 0.5; }

/* Editor main */
.editor-main {
  flex: 1; overflow-y: auto; background: var(--bg-1);
  padding: 20px 24px; display: flex; flex-direction: column; gap: 12px; min-width: 0;
}
.newsletter-meta { display: flex; flex-direction: column; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.meta-input {
  background: transparent; border: none; outline: none; width: 100%; color: var(--text-1);
  padding: 4px 0; border-bottom: 1px solid transparent; transition: border-color 0.15s;
}
.meta-input:focus { border-bottom-color: var(--accent); }
.meta-subject { font-size: 15px; font-weight: 600; }
.meta-subject::placeholder { color: var(--text-3); font-weight: 400; }
.meta-preview { font-size: 13px; color: var(--text-2); }
.meta-preview::placeholder { color: var(--text-3); }

/* Editor sections */
.editor-section {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden; transition: opacity 0.15s, box-shadow 0.15s;
  box-shadow: var(--shadow-sm);
}
.editor-section.section-dragging { opacity: 0.4; box-shadow: none; }
.editor-section.section-drag-over-top { box-shadow: 0 -3px 0 0 var(--accent); }
.editor-section.section-drag-over-bottom { box-shadow: 0 3px 0 0 var(--accent); }
.section-drag-handle {
  font-size: 14px; color: var(--text-3); cursor: grab; padding: 0 2px 0 0;
  line-height: 1; user-select: none; flex-shrink: 0;
}
.section-drag-handle:active { cursor: grabbing; }
.section-header:hover .section-drag-handle { color: var(--text-2); }
.section-header {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--section-header-bg);
  flex-wrap: wrap;
}
.section-label {
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-3); white-space: nowrap; min-width: 80px;
}
.section-prompt-wrap { flex: 1; display: flex; align-items: center; gap: 6px; min-width: 0; }
.section-prompt {
  flex: 1; font-size: 11.5px; background: var(--bg-4); border: 1px solid var(--border);
  color: var(--text-2); border-radius: var(--r-sm); padding: 5px 9px; outline: none;
  transition: border-color 0.15s;
}
.section-prompt:focus { border-color: var(--accent); color: var(--text-1); }
.section-prompt-toggle { font-size: 12px; padding: 3px 7px; opacity: 0.5; transition: opacity 0.15s, color 0.15s, background 0.15s; }
.section-prompt-toggle:hover { opacity: 1; }
.section-prompt-toggle.active { opacity: 1; color: var(--accent); background: var(--accent-soft); }
.section-prompt-toggle.has-value { opacity: 0.85; color: var(--accent); }
.section-drop-zone { min-height: 80px; transition: background 0.15s; }
.section-drop-zone.drag-over { background: var(--accent-soft); }
.section-content { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.drop-placeholder {
  border: 1.5px dashed var(--border-strong); border-radius: var(--r-md);
  padding: 28px 20px; text-align: center; color: var(--text-3);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.section-drop-zone.drag-over .drop-placeholder {
  border-color: var(--accent); color: var(--accent); background: var(--accent-soft);
}
.drop-placeholder-icon { font-size: 26px; margin-bottom: 10px; opacity: 0.55; }
.drop-placeholder p { font-size: 13px; font-weight: 600; margin-bottom: 4px; color: var(--text-2); }
.drop-placeholder small { font-size: 11px; opacity: 0.7; line-height: 1.6; }
.drop-placeholder-steps { margin-top: 14px; display: flex; flex-direction: column; gap: 5px; text-align: left; max-width: 240px; margin-left: auto; margin-right: auto; }
.drop-step { font-size: 11px; color: var(--text-3); display: flex; align-items: flex-start; gap: 7px; line-height: 1.5; }
.drop-step-num { width: 16px; height: 16px; border-radius: 50%; background: var(--bg-4); color: var(--text-2); font-size: 9px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }

/* Quick Hits section grid */
.quick-hits-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }

/* Story blocks (articles added to sections) */
.story-block {
  background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--r-md);
  overflow: hidden; transition: border-color 0.15s;
}
.story-block:hover { border-color: var(--border-strong); }
.story-block.loading { opacity: 0.7; }
.story-block.editing { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 15%, transparent); }
.story-action-btn.primary { color: var(--accent); font-weight: 600; }
.story-block-header {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  border-bottom: 1px solid var(--border); background: var(--bg-3);
}
.story-source { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); }
.story-drag-handle { font-size: 14px; color: var(--text-3); cursor: grab; padding: 0 2px; line-height: 1; user-select: none; }
.top-stories-preview { font-size: 13px; line-height: 2; }
.briefing-bullet { padding: 1px 0; color: var(--text-1); }
.briefing-sources { font-size: 11px; color: var(--text-3); margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--border); }
.story-drag-handle:active { cursor: grabbing; }
.story-block[draggable="true"]:hover .story-drag-handle { color: var(--text-2); }
.story-block-loading { display: flex; align-items: center; gap: 8px; padding: 16px 12px; color: var(--text-3); font-size: 12px; }

/* Skeleton loading inside story blocks */
.story-skeleton { padding: 14px 12px; display: flex; flex-direction: column; gap: 9px; }
.skeleton-line {
  border-radius: 99px;
  background: linear-gradient(90deg, var(--bg-3) 20%, var(--bg-4) 50%, var(--bg-3) 80%);
  background-size: 600px 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
}
.skeleton-line.h-10 { height: 10px; }
.skeleton-line.h-8  { height: 8px; }
.skeleton-line.w-full  { width: 100%; }
.skeleton-line.w-80    { width: 80%; }
.skeleton-line.w-65    { width: 65%; }
.skeleton-line.w-45    { width: 45%; }
.skeleton-label { height: 7px; width: 28%; border-radius: 99px; background: var(--accent-soft); margin-top: 6px; }
.story-content {
  padding: 12px; font-size: 13px; color: var(--text-1); line-height: 1.7; white-space: pre-wrap;
  word-break: break-word;
}
.story-content strong, .story-content b { color: var(--text-1); }
.story-content a { color: var(--accent); text-decoration: underline; }
.story-actions {
  display: flex; align-items: center; gap: 6px; padding: 8px 12px;
  border-top: 1px solid var(--border); background: var(--bg-3); flex-wrap: wrap;
}
.story-action-btn {
  font-size: 11px; padding: 4px 9px; border-radius: var(--r-sm);
  background: var(--bg-4); color: var(--text-2); border: 1px solid var(--border);
  font-weight: 500; transition: all 0.15s; display: flex; align-items: center; gap: 4px;
}
.story-action-btn:hover { background: var(--accent-soft); color: var(--accent); border-color: rgba(99,102,241,0.3); }
.story-action-btn.danger:hover { background: var(--red-soft); color: var(--red); border-color: rgba(239,68,68,0.3); }
.story-action-btn .spinner { width: 10px; height: 10px; border-width: 1.5px; }

/* ═══════════════════════════════════════════════════════════════════════════
   RIGHT PANEL
═══════════════════════════════════════════════════════════════════════════ */
.right-panel {
  width: var(--right-panel-w); background: var(--bg-2); border-left: 1px solid var(--border);
  display: flex; flex-direction: column; flex-shrink: 0; overflow: hidden;
}
.panel-tabs {
  display: flex; border-bottom: 1px solid var(--border); padding: 0 4px; flex-shrink: 0;
}
.panel-tab {
  flex: 1; padding: 11px 8px; font-size: 12px; font-weight: 600; color: var(--text-2);
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color 0.15s, border-color 0.15s;
  text-align: center;
}
.panel-tab:hover { color: var(--text-1); }
.panel-tab.active { color: var(--text-1); border-bottom-color: var(--accent); }
.panel-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 16px; }

/* Panel sections */
.panel-section { display: flex; flex-direction: column; gap: 8px; }
.panel-section-title {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-3); padding-bottom: 6px; border-bottom: 1px solid var(--border);
}
.tone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tone-chip {
  padding: 7px 10px; border-radius: var(--r-sm); font-size: 11.5px; font-weight: 600;
  border: 1px solid var(--border); color: var(--text-2); text-align: center; cursor: pointer;
  transition: all 0.15s; line-height: 1.3;
}
.tone-chip:hover { border-color: var(--border-strong); color: var(--text-1); background: var(--bg-3); }
.tone-chip.active { background: var(--accent-soft); color: var(--accent); border-color: rgba(99,102,241,0.35); }
.ai-action-btn {
  display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: var(--r-sm);
  border: 1px solid var(--border); background: var(--bg-3); color: var(--text-1);
  font-size: 12.5px; font-weight: 500; width: 100%; cursor: pointer; transition: all 0.15s;
  text-align: left;
}
.ai-action-btn:hover { border-color: var(--border-strong); background: var(--bg-4); }
.ai-action-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.ai-action-icon { font-size: 14px; width: 18px; text-align: center; flex-shrink: 0; }
.ai-result-box {
  background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 10px; font-size: 12px; color: var(--text-1); line-height: 1.6; white-space: pre-wrap;
  word-break: break-word; max-height: 200px; overflow-y: auto;
}
.ai-history-item {
  background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 8px 10px;
}
.ai-history-action { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-3); margin-bottom: 4px; }
.ai-history-text { font-size: 11.5px; color: var(--text-2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mock-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--amber-soft); color: var(--amber); border: 1px solid rgba(245,158,11,0.25);
  font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 99px; letter-spacing: 0.04em;
}

/* Design panel */
.design-control { display: flex; flex-direction: column; gap: 6px; }
.design-label { font-size: 12px; font-weight: 600; color: var(--text-2); display: flex; justify-content: space-between; }
.design-label span { color: var(--text-3); font-weight: 400; }
input[type="range"] {
  width: 100%; appearance: none; -webkit-appearance: none; height: 4px;
  background: var(--bg-4); border-radius: 2px; outline: none; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px;
  background: var(--accent); border-radius: 50%; cursor: pointer; box-shadow: var(--shadow-sm);
}
input[type="color"] {
  width: 32px; height: 32px; border: none; border-radius: var(--r-sm); cursor: pointer;
  padding: 2px; background: var(--bg-3); border: 1px solid var(--border);
}
.toggle-row { display: flex; align-items: center; justify-content: space-between; }
.toggle-switch { position: relative; width: 36px; height: 20px; cursor: pointer; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-track {
  position: absolute; inset: 0; border-radius: 99px; background: var(--bg-4);
  transition: background 0.2s; border: 1px solid var(--border);
}
.toggle-switch input:checked + .toggle-track { background: var(--accent); border-color: var(--accent); }
.toggle-thumb {
  position: absolute; top: 3px; left: 3px; width: 14px; height: 14px;
  background: #fff; border-radius: 50%; transition: transform 0.2s;
  box-shadow: var(--shadow-sm);
}
.toggle-switch input:checked ~ .toggle-thumb { transform: translateX(16px); }
.preview-device-row { display: flex; gap: 6px; }
.device-btn {
  flex: 1; padding: 7px; border-radius: var(--r-sm); font-size: 12px; font-weight: 600;
  border: 1px solid var(--border); color: var(--text-2); text-align: center; cursor: pointer;
  transition: all 0.15s;
}
.device-btn.active { background: var(--accent-soft); color: var(--accent); border-color: rgba(99,102,241,0.3); }
.integration-btn {
  display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: var(--r-sm);
  border: 1px solid var(--border); background: var(--bg-3); font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all 0.15s; width: 100%; color: var(--text-1);
}
.integration-btn:hover { border-color: var(--border-strong); background: var(--bg-4); }

/* Team panel */
.approval-card {
  background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 12px; display: flex; flex-direction: column; gap: 10px;
}
.approval-status { display: flex; align-items: center; gap: 8px; }
.approval-label { font-size: 12px; font-weight: 600; }
.team-actions { display: flex; gap: 6px; }
.comment-item { background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 9px; }
.comment-author { font-size: 11px; font-weight: 700; color: var(--text-1); margin-bottom: 3px; }
.comment-time { font-size: 10px; color: var(--text-3); }
.comment-text { font-size: 12px; color: var(--text-2); line-height: 1.5; margin-top: 4px; }
.comment-form { display: flex; flex-direction: column; gap: 6px; }
.version-item { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.version-num { font-size: 11px; font-weight: 700; color: var(--accent); min-width: 28px; }
.version-desc { font-size: 12px; color: var(--text-2); flex: 1; }
.version-time { font-size: 10px; color: var(--text-3); }

/* ═══════════════════════════════════════════════════════════════════════════
   PREVIEW MODAL
═══════════════════════════════════════════════════════════════════════════ */
.preview-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(6px);
  z-index: 9000; display: flex; flex-direction: column; align-items: center; padding: 20px;
  overflow-y: auto;
}
.preview-modal-toolbar {
  display: flex; align-items: center; gap: 12px; width: 100%; max-width: 660px;
  margin-bottom: 20px; flex-shrink: 0;
}
.preview-modal-title { font-size: 14px; font-weight: 700; color: var(--text-1); flex: 1; }
.email-preview-frame {
  background: #fff; color: #1a1a1a; width: 100%; max-width: 600px; border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl); overflow: hidden; font-family: Georgia, 'Times New Roman', serif;
}
.email-header { background: #f7f7f7; padding: 28px 32px; border-bottom: 2px solid #e5e5e5; text-align: center; }
.email-brand-name { font-size: 20px; font-weight: 800; font-family: var(--font); letter-spacing: -0.02em; color: #0d1117; }
.email-date { font-size: 12px; color: #888; margin-top: 4px; font-family: var(--font); }
.email-body { padding: 28px 32px; }
.email-section-label {
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em;
  color: #888; border-bottom: 2px solid #e5e5e5; padding-bottom: 6px; margin-bottom: 16px;
  font-family: var(--font);
}
.email-lead-story { margin-bottom: 32px; }
.email-story-content { font-size: 15px; line-height: 1.8; color: #1a1a1a; white-space: pre-wrap; word-break: break-word; }
.email-quick-hit { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid #eee; font-size: 14px; line-height: 1.6; color: #1a1a1a; white-space: pre-wrap; word-break: break-word; }
.email-quick-hit:last-child { border-bottom: none; }
.email-cta-block {
  background: #f0f0ff; border: 1px solid #d0d0f0; border-radius: 8px;
  padding: 20px 24px; margin: 24px 0; font-size: 14px; line-height: 1.7; color: #2a2a4a;
  white-space: pre-wrap; word-break: break-word;
}
.email-footer { background: #f7f7f7; padding: 20px 32px; text-align: center; border-top: 1px solid #e5e5e5; font-size: 11px; color: #aaa; font-family: var(--font); line-height: 1.6; }

/* Active publication chip in nav */
.nav-pub-chip {
  font-size: 11px; font-weight: 600; color: var(--accent);
  padding: 3px 10px 3px 8px; margin: 6px 8px 0;
  background: var(--accent-soft); border: 1px solid rgba(129,140,248,0.25);
  border-radius: 99px; cursor: pointer; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
  transition: background 0.15s;
}
.nav-pub-chip:hover { background: var(--accent-soft-hover); }

/* ── Publications page ───────────────────────────────────────────────────────── */
.pub-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.pub-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px; background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r-lg); transition: border-color 0.15s, box-shadow 0.15s;
}
.pub-card-active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.pub-card-add { cursor: pointer; border-style: dashed; }
.pub-card-add:hover { border-color: var(--accent); background: var(--accent-soft); }
.pub-card-left { display: flex; align-items: center; gap: 14px; }
.pub-avatar {
  width: 42px; height: 42px; border-radius: var(--r-md); background: var(--nav-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800; color: #fff; flex-shrink: 0;
}
.pub-avatar-add { background: var(--bg-4); color: var(--text-3); font-size: 22px; font-weight: 400; }
.pub-name { font-size: 14px; font-weight: 700; color: var(--text-1); margin-bottom: 3px; }
.pub-meta { font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.pub-enterprise-card {
  display: flex; gap: 20px; padding: 28px; background: var(--bg-2);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.pub-enterprise-card-highlight {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.pub-ent-icon { font-size: 28px; flex-shrink: 0; margin-top: 2px; }
.pub-ent-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.pub-ent-sub { font-size: 13px; color: var(--text-2); line-height: 1.7; margin-bottom: 16px; }
.pub-ent-features {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 24px; margin-bottom: 4px;
}
.pub-ent-feature { font-size: 13px; color: var(--text-2); }
.pub-ent-feature { color: var(--green); font-weight: 500; }

/* Publication upgrade card ($99/mo plan) */
.pub-upgrade-card {
  background: var(--bg-2); border: 1px solid var(--border-md);
  border-radius: var(--r-lg); padding: 28px; margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
}
.pub-upgrade-header { margin-bottom: 20px; }
.pub-upgrade-title { font-size: 18px; font-weight: 800; color: var(--text-1); margin-bottom: 6px; }
.pub-upgrade-price { font-size: 36px; font-weight: 900; color: var(--accent); line-height: 1.1; margin-bottom: 10px; }
.pub-upgrade-sub { font-size: 13px; color: var(--text-2); line-height: 1.65; }
.pub-upgrade-features {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px; margin-bottom: 22px;
}
.pub-upgrade-feature { font-size: 13px; color: var(--green); font-weight: 500; }

/* Subject line history */
.subject-history { display: flex; flex-direction: column; gap: 5px; margin-top: 8px; }
.subject-history-item {
  display: flex; align-items: flex-start; gap: 6px; padding: 8px 10px;
  background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--r-sm);
  transition: border-color 0.15s;
}
.subject-history-item:hover { border-color: var(--border-strong); }
.subject-history-item.active { border-color: var(--accent); background: var(--accent-soft); }
.subject-history-text { font-size: 12px; color: var(--text-1); line-height: 1.45; flex: 1; }
.subject-use-btn {
  font-size: 10px; padding: 2px 7px; border-radius: 3px; flex-shrink: 0; margin-top: 1px;
  background: var(--bg-4); color: var(--text-2); border: 1px solid var(--border);
  font-weight: 600; transition: all 0.12s; white-space: nowrap;
}
.subject-use-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.subject-history-item.active .subject-use-btn { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Brand voice */
.voice-textarea { min-height: 100px; font-size: 12px; }
.voice-profile-box { background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 10px; font-size: 12px; color: var(--text-2); line-height: 1.6; }

/* Loading state for full page */
.loading-screen {
  display: flex; align-items: center; justify-content: center;
  height: 100vh; background: var(--bg-1); flex-direction: column; gap: 12px; color: var(--text-2);
}

/* Pulse animation for demo */
@keyframes pulse-slow { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
.demo-mini-spinner { animation: spin 0.8s linear infinite; }

/* Responsive (basic) */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: 1fr; }
  .how-steps::before { display: none; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .landing-nav { padding: 0 20px; }
  .hero { padding: 120px 20px 60px; }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
