:root {
  --bg: #0D0F14;
  --surface: #161922;
  --surface2: #1E2230;
  --fg: #F0EDE8;
  --fg-muted: #8A8794;
  --accent: #7C3AED;
  --accent-light: #9D6AFF;
  --accent-glow: rgba(124, 58, 237, 0.18);
  --green: #34D399;
  --border: rgba(240, 237, 232, 0.08);
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 48px;
  border-bottom: 1px solid var(--border);
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { color: var(--accent); font-size: 20px; font-weight: 700; }
.logo-text { font-family: 'Fraunces', serif; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.nav-tagline { font-size: 13px; color: var(--fg-muted); letter-spacing: 0.04em; text-transform: uppercase; }

/* ── MANIFESTO ── */
.manifesto {
  padding: 120px 48px 100px;
  position: relative;
}
.manifesto::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124,58,237,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.manifesto-inner { max-width: 780px; position: relative; }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--accent);
}

.manifesto-headline {
  font-family: 'Fraunces', serif;
  font-size: clamp(52px, 7vw, 88px);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  color: var(--fg);
}
.manifesto-headline em {
  font-style: italic;
  color: var(--accent-light);
}

.manifesto-sub {
  font-size: 19px;
  line-height: 1.65;
  color: var(--fg-muted);
  max-width: 560px;
  margin-bottom: 56px;
}

/* ── STAT ROW ── */
.stat-row {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  width: fit-content;
  overflow: hidden;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 40px;
  gap: 6px;
}
.stat-value {
  font-family: 'Fraunces', serif;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  white-space: nowrap;
}
.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

/* ── SECTION COMMON ── */
.section-header {
  margin-bottom: 56px;
}
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 16px;
}
.section-header h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

/* ── HOW IT WORKS ── */
.howitworks {
  padding: 100px 48px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.pipeline-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}
.pipeline-step {
  display: flex;
  gap: 20px;
  padding: 40px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  transition: background 0.2s;
}
.pipeline-step:hover { background: var(--surface2); }
.pipeline-step:nth-child(2n) { border-right: none; }
.pipeline-step:nth-child(3),
.pipeline-step:nth-child(4) { border-bottom: none; }

.step-num {
  font-family: 'Fraunces', serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--accent);
  flex-shrink: 0;
  padding-top: 4px;
}
.step-body h3 {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.step-body p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--fg-muted);
}

/* ── OUTCOMES ── */
.outcomes {
  padding: 100px 48px;
  border-top: 1px solid var(--border);
}
.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.outcome-card {
  background: var(--bg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.2s;
}
.outcome-card:hover { background: var(--surface); }
.outcome-icon {
  font-size: 22px;
  color: var(--accent-light);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.outcome-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.outcome-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--fg-muted);
  flex: 1;
}

/* ── PRINCIPLES ── */
.principles {
  padding: 100px 48px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.principle-body {
  max-width: 660px;
}
.principle-body p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--fg-muted);
  margin-bottom: 20px;
}
.principle-pull {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  color: var(--fg);
  border-left: 3px solid var(--accent);
  padding-left: 28px;
  margin-top: 36px;
  opacity: 0.85;
}

/* ── CLOSING ── */
.closing {
  padding: 120px 48px;
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.closing::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 100%, rgba(124,58,237,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.closing-inner { max-width: 640px; position: relative; }
.closing-inner h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 28px;
}
.closing-inner p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--fg-muted);
  margin-bottom: 16px;
}

/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.footer-logo { display: flex; align-items: center; gap: 8px; }
.footer-tagline { font-size: 13px; color: var(--fg-muted); flex: 1; }
.footer-legal { font-size: 12px; color: var(--fg-muted); opacity: 0.5; }

/* ── DEMO SECTION ── */
.demo-section {
  padding: 100px 48px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
}
.demo-inner { max-width: 860px; }
.demo-header { margin-bottom: 48px; }
.demo-headline {
  font-family: 'Fraunces', serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--fg);
}
.demo-headline em { font-style: italic; color: var(--accent-light); }
.demo-sub { font-size: 17px; line-height: 1.65; color: var(--fg-muted); max-width: 560px; }

.demo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 24px;
}

.demo-field { margin-bottom: 20px; }
.demo-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 8px;
}
.demo-optional { font-weight: 400; text-transform: none; letter-spacing: 0; opacity: 0.6; }
.demo-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--fg);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}
.demo-input:focus { border-color: var(--accent); }
.demo-input::placeholder { color: var(--fg-muted); opacity: 0.5; }

.demo-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px 28px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  margin-top: 4px;
}
.demo-btn:hover:not(:disabled) { background: var(--accent-light); }
.demo-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.demo-btn-icon { font-size: 16px; }

/* Output */
.demo-status { font-size: 14px; color: var(--fg-muted); margin-bottom: 24px; }

.demo-research {
  background: rgba(124,58,237,0.07);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 24px;
}
.demo-research-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 12px;
}
.demo-bullets { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.demo-bullets li {
  font-size: 14px;
  color: var(--fg-muted);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}
.demo-bullets li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-light);
  font-size: 12px;
}

.demo-email {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}
.demo-email-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
}
.demo-email-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent-glow);
  color: var(--accent-light);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 6px;
  padding: 3px 8px;
}
.demo-email-subject { font-size: 14px; font-weight: 600; color: var(--fg); }
.demo-email-body {
  padding: 24px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--fg-muted);
  white-space: pre-wrap;
}

.demo-reset {
  background: none;
  border: none;
  color: var(--fg-muted);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.demo-reset:hover { opacity: 1; }

/* CTA waitlist */
.demo-cta {
  background: var(--surface);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 16px;
  padding: 28px 32px;
}
.demo-cta-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.demo-cta-text { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 4px; }
.demo-cta-text strong { font-size: 15px; color: var(--fg); }
.demo-cta-text span { font-size: 13px; color: var(--fg-muted); }
.demo-cta-form { display: flex; gap: 10px; flex-wrap: wrap; }
.demo-input--sm { width: 220px; }
.demo-btn--sm { padding: 12px 20px; font-size: 14px; }
.demo-cta-success { font-size: 14px; color: var(--green); font-weight: 600; }

/* Sample URL shortcut buttons */
.demo-samples {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.demo-samples-label {
  font-size: 12px;
  color: var(--fg-muted);
  font-weight: 500;
}
.demo-sample-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 6px 14px;
  font-size: 13px;
  font-family: inherit;
  color: var(--fg-muted);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.demo-sample-btn:hover {
  border-color: var(--accent);
  color: var(--fg);
}

/* 3-touch cadence display */
.demo-cadence {
  margin-bottom: 24px;
}
.demo-cadence-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 16px;
}
.demo-touches {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.demo-touch {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.demo-touch-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}
.demo-touch-day {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-light);
}
.demo-copy-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-muted);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, color 0.15s;
}
.demo-copy-btn:hover {
  border-color: var(--accent);
  color: var(--fg);
}
/* Agent rationale */
.demo-touch-rationale {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(124,58,237,0.06);
  border-bottom: 1px solid rgba(124,58,237,0.12);
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.5;
}
.demo-rationale-icon { font-size: 14px; flex-shrink: 0; margin-top: 1px; }
/* Email preview inside a touch */
.demo-touch-email { padding: 16px; }
.demo-touch-subject {
  font-size: 13px;
  margin-bottom: 10px;
  color: var(--fg);
}
.demo-subject-label {
  font-weight: 600;
  color: var(--fg-muted);
  font-size: 12px;
}
.demo-touch-body {
  font-size: 13px;
  line-height: 1.75;
  color: var(--fg-muted);
  white-space: pre-wrap;
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  .nav { padding: 20px 24px; }
  .nav-tagline { display: none; }
  .manifesto { padding: 72px 24px 64px; }
  .manifesto-headline { font-size: 44px; }
  .manifesto-sub { font-size: 16px; }
  .stat-row { flex-direction: column; width: 100%; }
  .stat { flex-direction: row; align-items: center; gap: 16px; padding: 20px 24px; width: 100%; }
  .stat-divider { width: 100%; height: 1px; }
  .howitworks, .outcomes, .principles, .closing { padding: 64px 24px; }
  .pipeline-steps { grid-template-columns: 1fr; }
  .pipeline-step { border-right: none; }
  .pipeline-step:nth-child(3) { border-bottom: 1px solid var(--border); }
  .pipeline-step:nth-child(4) { border-bottom: none; }
  .outcomes-grid { grid-template-columns: 1fr; }
  .footer { padding: 32px 24px; flex-wrap: wrap; }
  .demo-section { padding: 64px 24px; }
  .demo-card { padding: 24px; }
  .demo-cta { padding: 20px; }
  .demo-cta-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .demo-input--sm { width: 100%; }
  .demo-cta-form { width: 100%; flex-direction: column; }
  .demo-btn--sm { width: 100%; justify-content: center; }
}
/* ── APP: Campaign Dashboard ── */
.app-page { padding: 60px 48px; max-width: 1100px; margin: 0 auto; }
.app-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 48px; }
.app-title { font-family: 'Fraunces', serif; font-size: 36px; font-weight: 600; letter-spacing: -0.02em; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; border: none; transition: all 0.15s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-light); }
.btn-secondary { background: var(--surface); color: var(--fg); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--surface2); }
.btn-green { background: var(--green); color: #0D0F14; font-weight: 700; }
.btn-green:hover { opacity: 0.9; }
.btn-danger { background: #EF4444; color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-sm.btn-green { background: var(--green); color: #0D0F14; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 28px; margin-bottom: 20px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.stats-row { display: flex; gap: 24px; margin-bottom: 8px; }
.stat { font-size: 28px; font-weight: 700; font-family: 'Fraunces', serif; }
.stat-label { font-size: 13px; color: var(--fg-muted); margin-top: 2px; }
.stat-accent { color: var(--accent-light); }
.stat-green { color: var(--green); }
table.campaigns-table { width: 100%; border-collapse: collapse; }
table.campaigns-table th { text-align: left; padding: 12px 16px; font-size: 12px; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.08em; border-bottom: 1px solid var(--border); }
table.campaigns-table td { padding: 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.campaigns-table tr:hover { background: var(--surface); }
table.campaigns-table .status-badge { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.status-active { background: rgba(52,211,153,0.15); color: var(--green); }
.status-paused { background: rgba(138,135,148,0.15); color: var(--fg-muted); }
.status-draft { background: rgba(124,58,237,0.15); color: var(--accent-light); }
.status-completed { background: rgba(240,237,232,0.05); color: var(--fg-muted); }
.status-emailed { background: rgba(124,58,237,0.15); color: var(--accent-light); }
.status-replied { background: rgba(52,211,153,0.15); color: var(--green); }
.status-pending { background: rgba(138,135,148,0.1); color: var(--fg-muted); }
.status-email_found { background: rgba(245,158,11,0.15); color: #F59E0B; }
.status-email_verified { background: rgba(52,211,153,0.15); color: var(--green); }
.campaign-name { font-weight: 600; font-size: 16px; }
.campaign-meta { font-size: 13px; color: var(--fg-muted); margin-top: 4px; }

/* ── New Campaign Form ── */
.form-group { margin-bottom: 24px; }
.form-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--fg); }
.form-input, .form-textarea, .form-select { width: 100%; padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; color: var(--fg); font-size: 15px; font-family: 'Plus Jakarta Sans', sans-serif; outline: none; transition: border-color 0.15s; }
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--accent); }
.form-textarea { min-height: 100px; resize: vertical; }
.form-hint { font-size: 12px; color: var(--fg-muted); margin-top: 6px; }

/* ── Prospect List ── */
.prospect-card { display: flex; align-items: flex-start; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.prospect-card:last-child { border-bottom: none; }
.prospect-info { flex: 1; }
.prospect-company { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.prospect-contact { font-size: 13px; color: var(--fg-muted); }
.prospect-email { font-size: 13px; color: var(--accent-light); margin-top: 4px; }
.prospect-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.prospect-status { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px; display: inline-block; }
.email-preview { background: var(--surface2); border-radius: 8px; padding: 20px; margin-top: 20px; }
.email-preview-subject { font-size: 12px; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.email-preview-body { font-size: 14px; line-height: 1.7; white-space: pre-wrap; }
.trigger-bar { display: flex; align-items: center; gap: 12px; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 32px; }
.trigger-bar-text { flex: 1; font-size: 14px; }
.empty-state { text-align: center; padding: 80px 40px; color: var(--fg-muted); }
.empty-state-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.5; }
.empty-state h3 { font-size: 20px; font-weight: 600; color: var(--fg); margin-bottom: 8px; }
.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; }
.alert-success { background: rgba(52,211,153,0.12); border: 1px solid rgba(52,211,153,0.3); color: var(--green); }
.alert-error { background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.3); color: #F87171; }
.alert-info { background: rgba(124,58,237,0.12); border: 1px solid rgba(124,58,237,0.3); color: var(--accent-light); }
.loading-dots::after { content: '...'; animation: dots 1.5s infinite; }
@keyframes dots { 0%{content:'.'} 33%{content:'..'} 66%{content:'...'} }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-muted); text-decoration: none; font-size: 14px; margin-bottom: 32px; }
.back-link:hover { color: var(--fg); }

/* ── DESIGN PARTNER CARD ── */
.dp-card { max-width: 700px; margin: 0 auto; margin-top: 32px; }
.dp-card-inner { background: linear-gradient(135deg, rgba(124,58,237,0.12) 0%, var(--surface) 60%); border: 1px solid rgba(124,58,237,0.35); border-radius: 20px; padding: 36px 40px; }
.dp-card-badge { display: inline-block; background: rgba(124,58,237,0.2); color: var(--accent-light); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; border-radius: 20px; padding: 4px 12px; margin-bottom: 14px; }
.dp-card-title { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 600; line-height: 1.3; margin-bottom: 10px; }
.dp-card-sub { font-size: 14px; color: var(--fg-muted); margin-bottom: 28px; }
.dp-card-sub strong { color: var(--fg); }
.dp-honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.dp-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.dp-field { display: flex; flex-direction: column; gap: 6px; }
.dp-field--full { grid-column: 1 / -1; }
.dp-label { font-size: 12px; font-weight: 600; color: var(--fg-muted); letter-spacing: 0.04em; text-transform: uppercase; }
.dp-optional { font-weight: 400; text-transform: none; letter-spacing: 0; }
.dp-input { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; color: var(--fg); font-size: 14px; font-family: inherit; transition: border-color 0.15s; width: 100%; }
.dp-input:focus { outline: none; border-color: var(--accent); }
.dp-input::placeholder { color: var(--fg-muted); }
.dp-form-footer { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.dp-submit-btn { background: var(--accent); color: #fff; border: none; border-radius: 10px; padding: 12px 22px; font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer; transition: background 0.15s, opacity 0.15s; }
.dp-submit-btn:hover:not(:disabled) { background: var(--accent-light); }
.dp-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.dp-spots { font-size: 12px; color: var(--fg-muted); }
.dp-success { display: flex; align-items: flex-start; gap: 16px; padding: 20px; background: rgba(52,211,153,0.08); border: 1px solid rgba(52,211,153,0.25); border-radius: 12px; }
.dp-success-icon { font-size: 22px; color: var(--green); flex-shrink: 0; }
.dp-success-text { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.dp-success-text strong { color: var(--green); }
.dp-success-text span { color: var(--fg-muted); }
.dp-calendly-link { color: var(--accent-light); text-decoration: none; }
.dp-calendly-link:hover { text-decoration: underline; }
@media (max-width: 600px) { .dp-fields { grid-template-columns: 1fr; } .dp-card-inner { padding: 24px 20px; } }
.log-output { background: var(--surface2); padding: 16px; border-radius: 8px; font-family: monospace; font-size: 13px; line-height: 1.6; white-space: pre-wrap; max-height: 400px; overflow-y: auto; }

/* ── GALLERY SECTION ── */
.gallery-section {
  padding: 100px 48px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.gallery-inner { max-width: 860px; }
.gallery-header { margin-bottom: 48px; }
.gallery-headline {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 14px;
  color: var(--fg);
}
.gallery-sub { font-size: 16px; line-height: 1.65; color: var(--fg-muted); max-width: 520px; }

.gallery-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.gallery-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.gallery-card:hover {
  border-color: var(--accent);
  background: var(--surface2);
  transform: translateY(-2px);
}
.gallery-card--active {
  border-color: var(--accent);
  background: rgba(124,58,237,0.06);
  transform: translateY(-2px);
}
.gallery-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}
.gallery-card-info { display: flex; flex-direction: column; gap: 3px; }
.gallery-company-name {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.gallery-company-url {
  font-size: 12px;
  color: var(--fg-muted);
  opacity: 0.6;
}
.gallery-card-arrow {
  color: var(--accent-light);
  font-size: 18px;
  transition: transform 0.2s;
}
.gallery-card--active .gallery-card-arrow { transform: rotate(90deg); }
.gallery-card-preview {
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.gallery-preview-line {
  font-size: 12px;
  line-height: 1.5;
  color: var(--fg-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Output panel below cards */
.gallery-output {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 36px;
  margin-bottom: 24px;
  animation: gallery-fadein 0.25s ease;
}
@keyframes gallery-fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.gallery-output-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.gallery-output-company {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-light);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.gallery-close-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--fg-muted);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, color 0.15s;
}
.gallery-close-btn:hover { border-color: var(--accent); color: var(--fg); }

/* CTA at bottom of output */
.gallery-run-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.gallery-run-cta-text { font-size: 14px; color: var(--fg-muted); flex: 1; min-width: 180px; }
.gallery-run-cta-btn {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 22px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}
.gallery-run-cta-btn:hover { background: var(--accent-light); }

/* Bottom CTA when no card is selected */
.gallery-bottom-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.gallery-bottom-cta-text { font-size: 14px; color: var(--fg-muted); }

/* Mobile */
@media (max-width: 768px) {
  .gallery-section { padding: 64px 24px; }
  .gallery-cards { grid-template-columns: 1fr; gap: 12px; }
  .gallery-output { padding: 20px; }
  .gallery-run-cta { flex-direction: column; align-items: flex-start; }
  .gallery-run-cta-btn { width: 100%; justify-content: center; }
}

/* ── Prospect Tile Grid ── */
.prospect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.prospect-tile {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.prospect-tile:hover { border-color: var(--accent); background: var(--surface2); transform: translateY(-1px); }
.prospect-tile-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.prospect-tile-company { font-weight: 600; font-size: 14px; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prospect-tile-contact { font-size: 12px; color: var(--fg-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prospect-tile-email { font-size: 12px; color: var(--accent-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prospect-tile-steps { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.sequence-step-pip { width: 20px; height: 6px; border-radius: 99px; flex-shrink: 0; transition: all 0.2s; }
.prospect-tile-step-label { font-size: 11px; color: var(--fg-muted); margin-left: 4px; white-space: nowrap; }
.prospect-tile-link { font-size: 12px; color: var(--fg-muted); text-decoration: none; }
.prospect-tile-link:hover { color: var(--fg); }

/* ── Sequence Modal ── */
.seq-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13, 15, 20, 0.85);
  backdrop-filter: blur(4px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.seq-modal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  animation: seq-slidein 0.2s ease;
}
@keyframes seq-slidein { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.seq-modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 24px 20px; border-bottom: 1px solid var(--border); }
.seq-modal-close { background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; padding: 6px 14px; font-size: 18px; color: var(--fg-muted); cursor: pointer; font-family: inherit; flex-shrink: 0; line-height: 1; }
.seq-modal-close:hover { border-color: var(--accent); color: var(--fg); }
.seq-touch { border-bottom: 1px solid var(--border); }
.seq-touch:last-child { border-bottom: none; }
.seq-touch-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 24px; }
.seq-touch-header:hover { background: var(--surface2); }
.seq-step-num { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 600; color: var(--accent-light); line-height: 1; }
.seq-touch-label { font-size: 14px; font-weight: 600; color: var(--fg); }
.seq-touch-day { font-size: 12px; color: var(--fg-muted); }
.seq-touch-content { padding: 0 24px 20px; }
.seq-reasoning-text { font-size: 13px; color: var(--fg-muted); line-height: 1.6; background: rgba(124,58,237,0.07); border: 1px solid rgba(124,58,237,0.18); border-radius: 8px; padding: 12px 14px; margin-bottom: 14px; font-style: italic; }
.seq-reasoning-icon { color: var(--accent-light); font-style: normal; }
.seq-email { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; }
.seq-email-subject { font-weight: 600; font-size: 14px; color: var(--fg); }
.seq-email-body { font-size: 14px; line-height: 1.7; color: var(--fg-muted); white-space: pre-wrap; }
.seq-step-actions { margin-top: 12px; display: flex; align-items: center; gap: 8px; }

/* ── Nav links ── */
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-link { font-size: 14px; color: var(--fg-muted); text-decoration: none; padding: 6px 12px; border-radius: 6px; transition: color 0.15s, background 0.15s; }
.nav-link:hover { color: var(--fg); background: var(--surface); }
.nav-link-cta { background: var(--accent); color: #fff !important; }
.nav-link-cta:hover { background: var(--accent-light); }

@media (max-width: 768px) {
  .app-page { padding: 40px 24px; }
  .prospect-grid { grid-template-columns: 1fr; }
  .stats-row { flex-wrap: wrap; }
  .seq-modal-content { max-height: 95vh; }
  .form-group[style*="grid-column"] { grid-column: span 1 !important; }
}
