/* ListenBrief — Base styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #1a1a2e;
  --navy-light: #16213e;
  --gold: #e8c547;
  --text: #222;
  --text-muted: #666;
  --bg: #fafaf8;
  --bg-gray: #f4f4f0;
  --border: #e0e0d8;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

/* ── Layout ───────────────────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ── Nav ──────────────────────────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-brand { font-size: 20px; font-weight: 700; color: var(--navy); text-decoration: none; letter-spacing: -0.5px; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 15px; }
.nav-links a:hover { color: var(--text); }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-block; padding: 10px 20px; border-radius: var(--radius);
  font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: all 0.15s;
}
.btn-primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-light); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-lg { padding: 14px 32px; font-size: 17px; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-full { width: 100%; text-align: center; }
.btn-link { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 15px; }
button:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero { padding: 100px 0 80px; text-align: center; background: linear-gradient(135deg, var(--navy) 0%, #2a2a4e 100%); color: #fff; }
.hero-eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: 2px; color: var(--gold); margin-bottom: 16px; }
.hero-headline { font-size: clamp(38px, 6vw, 72px); font-weight: 800; letter-spacing: -2px; line-height: 1.1; margin-bottom: 20px; }
.hero-sub { font-size: clamp(16px, 2.5vw, 20px); color: rgba(255,255,255,0.75); margin-bottom: 36px; line-height: 1.5; }
.hero-caption { font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 12px; }

/* ── Sections ────────────────────────────────────────────────────────── */
.section { padding: 80px 0; }
.section-gray { background: var(--bg-gray); }
.section-title { font-size: clamp(26px, 4vw, 40px); font-weight: 800; letter-spacing: -1px; text-align: center; margin-bottom: 12px; }
.section-sub { text-align: center; color: var(--text-muted); margin-bottom: 48px; font-size: 17px; }
.cta-section { background: var(--navy); color: #fff; text-align: center; padding: 80px 0; }
.cta-section h2 { font-size: 36px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.cta-section p { color: rgba(255,255,255,0.7); margin-bottom: 32px; font-size: 17px; }

/* ── Steps ───────────────────────────────────────────────────────────── */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; margin-top: 48px; }
.step { text-align: center; padding: 32px; }
.step-num { width: 52px; height: 52px; background: var(--navy); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; margin: 0 auto 20px; }
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { color: var(--text-muted); }

/* ── Examples ────────────────────────────────────────────────────────── */
.examples-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.example-card { background: #fff; padding: 28px; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
.example-card h3 { font-size: 17px; margin-bottom: 8px; }
.example-card p { color: var(--text-muted); font-size: 14px; margin-bottom: 16px; line-height: 1.5; }

/* ── Pricing ─────────────────────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-top: 48px; }
.pricing-card { background: #fff; border: 2px solid var(--border); border-radius: 12px; padding: 32px; position: relative; }
.pricing-card.featured { border-color: var(--navy); box-shadow: var(--shadow); }
.plan-badge { background: var(--navy); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.pricing-card h3 { font-size: 18px; margin-bottom: 8px; }
.price { font-size: 40px; font-weight: 800; color: var(--navy); margin: 12px 0; }
.price span { font-size: 16px; font-weight: 400; color: var(--text-muted); }
.pricing-card ul { list-style: none; margin: 16px 0 24px; }
.pricing-card ul li { padding: 5px 0; font-size: 14px; color: var(--text-muted); }
.pricing-card ul li::before { content: '✓ '; color: #22c55e; font-weight: 700; }

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.faq-list { max-width: 700px; margin: 48px auto 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { padding: 18px 0; font-weight: 600; cursor: pointer; font-size: 17px; list-style: none; display: flex; justify-content: space-between; }
.faq-item summary::after { content: '+'; font-size: 20px; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding-bottom: 18px; color: var(--text-muted); line-height: 1.7; }

/* ── Forms ───────────────────────────────────────────────────────────── */
.form, form { width: 100%; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
input[type=email], input[type=text], input[type=password], select, textarea {
  width: 100%; padding: 10px 14px; border: 2px solid var(--border); border-radius: var(--radius);
  font-size: 15px; font-family: inherit; background: #fff; transition: border-color 0.15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); }

/* ── Alerts ──────────────────────────────────────────────────────────── */
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 14px; }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; }
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #16a34a; }
.alert-info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8; display: flex; align-items: center; gap: 12px; }

/* ── Onboarding ──────────────────────────────────────────────────────── */
.onboarding-container { max-width: 640px; margin: 60px auto; padding: 0 24px; }
.onboarding-container h1 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.step-subtitle { color: var(--text-muted); margin-bottom: 32px; }
.step-progress { display: flex; align-items: center; justify-content: center; margin-bottom: 40px; gap: 4px; }
.step-dot { width: 36px; height: 36px; border-radius: 50%; background: var(--border); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: var(--text-muted); }
.step-dot.active { background: var(--navy); color: #fff; }
.step-dot.done { background: #22c55e; color: #fff; }
.step-line { flex: 1; height: 2px; background: var(--border); max-width: 40px; }
.interest-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.interest-chip { padding: 8px 16px; border: 2px solid var(--border); border-radius: 24px; cursor: pointer; font-size: 14px; font-weight: 500; transition: all 0.15s; }
.interest-chip input { display: none; }
.interest-chip.selected, .interest-chip:has(input:checked) { border-color: var(--navy); background: var(--navy); color: #fff; }
.radio-cards { display: flex; flex-direction: column; gap: 12px; }
.radio-card { padding: 16px 20px; border: 2px solid var(--border); border-radius: var(--radius); cursor: pointer; display: flex; gap: 12px; align-items: center; transition: border-color 0.15s; }
.radio-card input { display: none; }
.radio-card:has(input:checked), .radio-card.selected { border-color: var(--navy); background: #f8f9ff; }
.radio-card strong { font-size: 16px; display: block; }
.radio-card span { font-size: 13px; color: var(--text-muted); }
.delivery-options { display: flex; flex-direction: column; gap: 12px; }
.checkbox-card { padding: 16px 20px; border: 2px solid var(--border); border-radius: var(--radius); cursor: pointer; display: flex; gap: 12px; }
.checkbox-card.selected { border-color: var(--navy); background: #f8f9ff; }
.checkbox-card.disabled { opacity: 0.5; cursor: not-allowed; }
.checkbox-card strong { display: block; margin-bottom: 2px; }
.checkbox-card span { font-size: 13px; color: var(--text-muted); }

/* ── Voice selection ─────────────────────────────────────────────────── */
.voice-list { display: flex; flex-direction: column; gap: 10px; }
.voice-card { padding: 14px 18px; border: 2px solid var(--border); border-radius: var(--radius); display: flex; align-items: center; gap: 12px; }
.voice-card:has(input:checked) { border-color: var(--navy); }
.voice-card input { margin: 0; }
.voice-card label { display: flex; align-items: center; justify-content: space-between; flex: 1; gap: 12px; cursor: pointer; }
.preview-btn { font-size: 12px; padding: 4px 10px; border: 1px solid var(--border); border-radius: 4px; background: #fff; cursor: pointer; }

/* ── Dashboard ───────────────────────────────────────────────────────── */
.dashboard-header { padding: 40px 0 24px; border-bottom: 1px solid var(--border); margin-bottom: 32px; }
.podcast-list { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.podcast-card { background: #fff; padding: 20px; border-radius: var(--radius); border: 1px solid var(--border); }
.podcast-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.podcast-summary { margin-bottom: 12px; }
.job-status { padding: 10px 16px; border-radius: var(--radius); margin: 16px 0; font-size: 14px; background: #f9fafb; border: 1px solid var(--border); }
.job-error { color: #dc2626; margin-left: 8px; font-size: 13px; }
.empty-state { color: var(--text-muted); padding: 32px 0; text-align: center; }

/* ── Admin ───────────────────────────────────────────────────────────── */
.stats-grid { display: flex; gap: 20px; margin: 24px 0; flex-wrap: wrap; }
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; min-width: 140px; }
.stat-value { font-size: 40px; font-weight: 800; color: var(--navy); }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.admin-table { width: 100%; border-collapse: collapse; margin: 16px 0 32px; font-size: 14px; }
.admin-table th { text-align: left; padding: 10px 12px; border-bottom: 2px solid var(--border); color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.admin-table tr:hover td { background: var(--bg-gray); }

/* ── Footer ──────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); padding: 32px 0; text-align: center; color: var(--text-muted); font-size: 14px; }
.footer a { color: var(--text-muted); }

/* ── Lang picker ─────────────────────────────────────────────────────── */
.lang-picker { display: flex; align-items: center; }
.lang-picker select {
  background: none; border: 1px solid var(--border); border-radius: 6px;
  padding: 4px 8px; font-size: 13px; cursor: pointer; color: var(--text-muted);
  font-family: inherit;
}
.lang-picker select:hover { border-color: var(--navy); color: var(--text); }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .nav-links a:not(.btn) { display: none; }
  .pricing-grid { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 48px; }
}
