:root {
  --bg: #faf9f7;
  --bg-alt: #f2ede8;
  --fg: #0d1b2a;
  --fg-muted: #5a6475;
  --accent: #d97706;
  --accent-dark: #b45309;
  --navy: #0d1b2a;
  --amber: #f59e0b;
  --surface: #ffffff;
  --border: #e5e0d8;
  --radius: 8px;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

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

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,249,247,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--navy);
}
.nav-tagline {
  font-size: 13px;
  color: var(--fg-muted);
  font-weight: 400;
}

/* HERO */
.hero {
  padding: 80px 40px 100px;
  background: var(--bg);
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.hero-headline {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.08;
  color: var(--navy);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.hero-lede {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 40px;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 28px 32px;
  background: var(--navy);
  border-radius: var(--radius);
  width: fit-content;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-number {
  font-family: var(--serif);
  font-size: 36px;
  color: var(--amber);
  line-height: 1;
}
.stat-label { font-size: 12px; color: rgba(255,255,255,0.6); max-width: 120px; line-height: 1.4; }
.stat-divider { width: 1px; height: 48px; background: rgba(255,255,255,0.15); }

/* Call Card */
.call-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(13,27,42,0.12), 0 4px 16px rgba(13,27,42,0.08);
}
.call-card-header {
  background: var(--navy);
  color: white;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
}
.call-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.call-icon::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
}
.call-status {
  margin-left: auto;
  background: var(--accent);
  color: var(--navy);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}
.call-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.transcript-line {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.caller {
  font-size: 11px;
  font-weight: 700;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ai-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.transcript-line span:last-child {
  font-size: 14px;
  color: var(--fg);
  line-height: 1.5;
  background: var(--bg);
  padding: 10px 14px;
  border-radius: 8px;
  width: fit-content;
}
.ai-response span:last-child {
  background: #fef3c7;
  border: 1px solid #fde68a;
}
.booking-confirmed {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-dark);
  background: #fef3c7;
  border: 1px solid #fde68a;
  padding: 10px 14px;
  border-radius: 8px;
  margin-top: 4px;
}
.check-icon {
  width: 18px;
  height: 18px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

/* SECTIONS */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 44px);
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* HOW */
.how {
  padding: 100px 40px;
  background: var(--bg-alt);
}
.steps {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.step {
  flex: 1;
  padding: 0 32px;
}
.step:first-child { padding-left: 0; }
.step-number {
  font-family: var(--serif);
  font-size: 64px;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 16px;
}
.step h3 {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 12px;
}
.step p {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.7;
}
.step-arrow {
  width: 48px;
  flex-shrink: 0;
  align-self: center;
  padding-top: 32px;
  position: relative;
}
.step-arrow::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--border);
  position: absolute;
  top: 44px;
  left: 0;
}
.step-arrow::before {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 8px solid var(--border);
  position: absolute;
  top: 38px;
  right: -8px;
}

/* FEATURES */
.features {
  padding: 100px 40px;
  background: var(--bg);
}
.features-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.feature {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(13,27,42,0.08);
}
.feature-icon {
  width: 44px;
  height: 44px;
  background: #fef3c7;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
}
.feature h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}
.feature p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* PRICING */
.pricing {
  padding: 100px 40px;
  background: var(--navy);
}
.pricing .section-label { color: var(--amber); }
.pricing .section-title { color: white; }
.pricing-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
.pricing-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 36px 28px;
  position: relative;
}
.pricing-card.featured {
  background: rgba(245,158,11,0.1);
  border-color: rgba(245,158,11,0.4);
}
.pricing-tier {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}
.pricing-amount {
  font-family: var(--serif);
  font-size: 42px;
  color: white;
  margin-bottom: 8px;
  line-height: 1;
}
.pricing-period {
  font-family: var(--sans);
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
}
.pricing-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 24px;
  line-height: 1.6;
}
.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pricing-features li {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  padding-left: 20px;
  position: relative;
}
.pricing-features li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--amber);
}
.pricing-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}
.pricing-note {
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* NICHES */
.niches {
  padding: 100px 40px;
  background: var(--bg-alt);
}
.niches-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.niche {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.niche-icon {
  width: 40px;
  height: 40px;
  background: var(--navy);
  border-radius: 10px;
  margin-bottom: 16px;
}
.niche h3 {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 10px;
}
.niche p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* CLOSING */
.closing {
  padding: 100px 40px;
  background: var(--navy);
  text-align: center;
}
.closing-inner {
  max-width: 700px;
  margin: 0 auto;
}
.closing-badge {
  display: inline-block;
  background: rgba(245,158,11,0.15);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: 30px;
  padding: 8px 20px;
  margin-bottom: 32px;
}
.badge-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--amber);
  letter-spacing: 0.04em;
}
.closing-headline {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 64px);
  color: white;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.closing-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  margin-bottom: 48px;
}
.cta-block {
  display: inline-block;
  padding: 20px 36px;
  background: var(--accent);
  border-radius: 10px;
}
.cta-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(0,0,0,0.5);
  margin-bottom: 4px;
}
.cta-value {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--navy);
}

/* FOOTER */
.footer {
  background: #070f18;
  padding: 60px 40px 40px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-brand { margin-bottom: 40px; }
.footer-logo {
  font-family: var(--serif);
  font-size: 22px;
  color: white;
  display: block;
  margin-bottom: 12px;
}
.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.35);
  max-width: 300px;
}
.footer-links {
  display: flex;
  gap: 80px;
  margin-bottom: 48px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 4px;
}
.footer-col span:not(.footer-col-title) {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

/* MODAL BASE — mobile-first overflow clamp */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13,27,42,0.6);
  z-index: 200;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
.modal-overlay.active { display: flex; }
.modal-box {
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  padding: 28px 24px 36px;
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow-y: auto;
  box-sizing: border-box;
  position: relative;
}
@media (min-width: 500px) {
  .modal-overlay { align-items: center; padding: 20px; }
  .modal-box { border-radius: 16px; max-height: 90vh; }
}

/* GET STARTED MODAL */
.step-indicators {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  gap: 0;
}
.step-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.dot-inner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--fg-muted);
  background: var(--surface);
  transition: all 0.2s;
}
.step-dot.active .dot-inner {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--navy);
}
.step-dot span {
  font-size: 11px;
  color: var(--fg-muted);
  white-space: nowrap;
}
.step-dot.active span { color: var(--navy); font-weight: 600; }
.step-line {
  width: 40px;
  height: 2px;
  background: var(--border);
  margin: 0 4px;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.modal-step { display: none; }
.modal-step.active { display: block; }
.btn-cta {
  display: inline-block;
  padding: 16px 32px;
  background: var(--accent);
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
  font-family: var(--sans);
}
.btn-cta:hover { opacity: 0.85; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .steps { flex-direction: column; gap: 40px; }
  .step-arrow { display: none; }
  .step { padding: 0; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .niches-grid { grid-template-columns: 1fr 1fr; }
}
/* DASHBOARD */
.dashboard {
  min-height: calc(100vh - 64px);
  padding: 40px;
}
.dashboard-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.dash-title {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--navy);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.stat-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  margin-bottom: 8px;
}
.stat-value {
  font-family: var(--serif);
  font-size: 36px;
  color: var(--navy);
  line-height: 1;
}
.stat-sub {
  font-size: 13px;
  color: var(--fg-muted);
  margin-top: 4px;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--navy);
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
}
.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-title {
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
}
.card-body { padding: 0; }
table {
  width: 100%;
  border-collapse: collapse;
}
thead th {
  text-align: left;
  padding: 12px 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
tbody td {
  padding: 14px 20px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--bg); }
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.badge-draft { background: #e5e0d8; color: var(--fg-muted); }
.badge-running { background: #d1fae5; color: #065f46; }
.badge-sent { background: #dbeafe; color: #1e40af; }
.badge-opened { background: #fef3c7; color: #92400e; }
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: opacity 0.15s;
}
.btn:hover { opacity: 0.85; }
.btn-primary { background: var(--accent); color: var(--navy); }
.btn-secondary { background: var(--navy); color: white; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--sans);
  background: var(--surface);
  color: var(--fg);
}
.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217,119,6,0.1);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.empty-state {
  text-align: center;
  padding: 60px 40px;
  color: var(--fg-muted);
}
.empty-state p { font-size: 14px; }
.progress-bar {
  height: 8px;
  background: var(--bg-alt);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 8px;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 0.4s;
}
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.tab {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-muted);
  cursor: pointer;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.15s;
}
.tab.active { color: var(--navy); border-bottom-color: var(--accent); }
.tab:hover { color: var(--navy); }
.msg {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 16px;
}
.msg-success { background: #d1fae5; color: #065f46; }
.msg-error { background: #fee2e2; color: #991b1b; }
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .hero { padding: 60px 24px 80px; }
  .features-grid { grid-template-columns: 1fr; }
  .niches-grid { grid-template-columns: 1fr; }
  .footer-links { flex-direction: column; gap: 32px; }
  .nav { padding: 0 24px; }
  .nav-tagline { display: none; }
  .how, .features, .pricing, .niches, .closing { padding: 80px 24px; }
  .section-title { font-size: 28px; }
  .hero-headline { font-size: 32px; }
  .dashboard { padding: 20px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}