/* ===== BASE TOKENS ===== */
:root {
  --bg: #FAFAF9;
  --bg-alt: #F4F4F2;
  --surface: #FFFFFF;
  --fg: #111111;
  --fg-muted: #6B7280;
  --fg-subtle: #9CA3AF;
  --accent: #2D6A4F;
  --accent-light: #52B788;
  --accent-dim: #1B4332;
  --blue: #3B82F6;
  --amber: #F59E0B;

  /* Heat map zones */
  --zone-green-dark: #166534;
  --zone-green: #2D6A4F;
  --zone-yellow: #EAB308;
  --zone-red: #DC2626;

  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 4px 24px rgba(0,0,0,0.10), 0 1px 4px rgba(0,0,0,0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Outfit', sans-serif; line-height: 1.15; }
a { color: inherit; text-decoration: none; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,250,249,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700; font-size: 1.1rem;
  color: var(--fg);
}
.nav-links {
  display: flex; gap: 32px;
  font-size: 0.875rem; color: var(--fg-muted);
}
.nav-links a:hover { color: var(--fg); }

/* ===== HERO ===== */
.hero {
  padding: 80px 24px 72px;
  max-width: 1200px; margin: 0 auto;
}
.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-eyebrow {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.hero-text h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 20px;
  line-height: 1.1;
}
.hero-lede {
  font-size: 1.0625rem; color: var(--fg-muted);
  max-width: 480px; line-height: 1.65;
  margin-bottom: 28px;
}
.hero-trust {
  display: flex; gap: 20px; flex-wrap: wrap;
}
.hero-trust span {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.8125rem; font-weight: 500;
  color: var(--accent-dim);
}

/* Map frame */
.map-frame {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
}
.map-header {
  padding: 14px 18px;
  background: #1a1a1a;
  display: flex; align-items: center; justify-content: space-between;
}
.map-title { color: #e5e5e5; font-size: 0.8rem; font-weight: 500; }
.map-badge {
  background: #2D6A4F; color: white;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em;
  padding: 3px 8px; border-radius: 20px;
}
.map-body { padding: 20px 20px 12px; position: relative; }
.map-grid { display: flex; flex-direction: column; gap: 4px; }
.map-row { display: flex; gap: 4px; }
.map-block {
  flex: 1; aspect-ratio: 1;
  border-radius: 4px;
  min-height: 36px;
}
.zone-green-dark { background: var(--zone-green-dark); }
.zone-green { background: var(--zone-green); opacity: 0.85; }
.zone-yellow { background: var(--zone-yellow); opacity: 0.8; }
.zone-red { background: var(--zone-red); opacity: 0.75; }

.map-labels { margin-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.label { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; color: var(--fg-muted); }
.label-dot {
  width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0;
}
.label-best .label-dot { background: var(--zone-green-dark); }
.label-mid .label-dot { background: var(--zone-yellow); }
.label-low .label-dot { background: var(--zone-red); }

.map-legend {
  padding: 12px 20px;
  border-top: 1px solid rgba(0,0,0,0.06);
  display: flex; gap: 16px; flex-wrap: wrap;
}
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 0.7rem; color: var(--fg-muted); }
.legend-dot { width: 10px; height: 10px; border-radius: 3px; }
.legend-dot.green-dark { background: var(--zone-green-dark); }
.legend-dot.green { background: var(--zone-green); }
.legend-dot.yellow { background: var(--zone-yellow); }
.legend-dot.red { background: var(--zone-red); }

/* ===== HOW IT WORKS ===== */
.how-it-works {
  padding: 80px 24px;
  background: var(--surface);
  border-top: 1px solid rgba(0,0,0,0.04);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.section-label {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.how-it-works h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  max-width: 600px;
  margin-bottom: 56px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1200px; margin: 0 auto;
}
.step { position: relative; }
.step-number {
  font-family: 'Outfit', sans-serif;
  font-size: 3.5rem; font-weight: 900;
  color: rgba(45,106,79,0.1);
  line-height: 1;
  margin-bottom: -8px;
}
.step-icon { margin-bottom: 16px; }
.step h3 {
  font-size: 1.0625rem; font-weight: 700;
  margin-bottom: 10px;
}
.step p { font-size: 0.875rem; color: var(--fg-muted); line-height: 1.6; }

/* ===== MAP CANVAS ===== */
.map-canvas {
  padding: 96px 24px;
  background: var(--bg);
}
.map-canvas-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.map-canvas-text h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 16px;
}
.map-canvas-text > p {
  font-size: 1rem; color: var(--fg-muted);
  line-height: 1.65;
  margin-bottom: 32px;
}
.map-features { display: flex; flex-direction: column; gap: 20px; }
.map-feature { display: flex; gap: 14px; align-items: flex-start; }
.mf-icon { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; margin-top: 4px; }
.mf-icon.green { background: var(--zone-green-dark); }
.mf-icon.yellow { background: var(--zone-yellow); }
.mf-icon.red { background: var(--zone-red); }
.mf-icon.blue { background: var(--blue); }
.map-feature strong { font-weight: 600; font-size: 0.9rem; display: block; margin-bottom: 3px; }
.map-feature span { font-size: 0.8125rem; color: var(--fg-muted); line-height: 1.5; }

/* Big map */
.big-map {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
}
.big-map-header {
  padding: 14px 18px;
  background: #1a1a1a;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.8rem; color: #e5e5e5; font-weight: 500;
}
.big-map-controls { display: flex; gap: 4px; }
.ctrl {
  font-size: 0.65rem; padding: 4px 10px;
  border-radius: 4px; cursor: pointer; color: #aaa;
}
.ctrl.active { background: var(--zone-green-dark); color: white; }
.big-map-grid { padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.bmr { display: flex; gap: 4px; }
.bmb {
  flex: 1; aspect-ratio: 1.2;
  border-radius: 4px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2px;
  min-height: 48px;
}
.bmb-label { font-size: 0.6rem; font-weight: 600; color: rgba(255,255,255,0.7); }
.bmb-score { font-size: 1rem; font-weight: 800; color: white; }
.bml-item { display: flex; align-items: center; gap: 6px; font-size: 0.7rem; color: var(--fg-muted); }
.bml-dot { width: 10px; height: 10px; border-radius: 3px; }
.bml-green-dark { background: var(--zone-green-dark); }
.bml-green { background: var(--zone-green); }
.bml-yellow { background: var(--zone-yellow); }
.bml-red { background: var(--zone-red); }
.big-map-legend {
  padding: 12px 16px;
  border-top: 1px solid rgba(0,0,0,0.06);
  display: flex; gap: 14px; flex-wrap: wrap;
}

/* ===== DASHBOARD ===== */
.dashboard-section {
  padding: 96px 24px;
  background: var(--fg);
  color: white;
}
.dashboard-header { max-width: 1200px; margin: 0 auto 48px; }
.dashboard-header .section-label { color: var(--accent-light); }
.dashboard-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800; color: white;
  margin-bottom: 12px;
}
.dashboard-header p { color: #9CA3AF; font-size: 0.9375rem; max-width: 560px; }

.dashboard-metrics {
  max-width: 1200px; margin: 0 auto 40px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.metric {
  background: #1a1a1a;
  padding: 24px 20px;
}
.metric-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem; font-weight: 800;
  color: white; line-height: 1;
  margin-bottom: 6px;
}
.metric-label { font-size: 0.75rem; color: #9CA3AF; margin-bottom: 6px; }
.metric-delta { font-size: 0.7rem; font-weight: 600; padding: 2px 7px; border-radius: 4px; display: inline-block; }
.metric-delta.positive { background: rgba(45,106,79,0.25); color: #6ee7b7; }

.dashboard-grid {
  max-width: 1200px; margin: 0 auto 32px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}
.dash-panel {
  background: #1a1a1a;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
}
.dp-header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8125rem; font-weight: 600; color: #e5e5e5;
}
.dp-period { font-size: 0.7rem; color: #6B7280; font-weight: 400; }

.zip-table { width: 100%; }
.zip-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  padding: 10px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.8rem;
}
.zip-row.zip-head { color: #6B7280; font-size: 0.7rem; }
.zip-code { color: #6ee7b7; font-weight: 600; }
.zip-val { color: #D1D5DB; }
.zip-val.good { color: #6ee7b7; }
.zip-val.mid { color: #FCD34D; }
.zip-val.bad { color: #F87171; }

.lead-list { display: flex; flex-direction: column; }
.lead-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.lead-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; color: #9CA3AF;
  flex-shrink: 0;
}
.lead-info { flex: 1; min-width: 0; }
.lead-name { font-size: 0.8125rem; font-weight: 600; color: #e5e5e5; }
.lead-meta { font-size: 0.7rem; color: #6B7280; }
.lead-status { font-size: 0.7rem; font-weight: 600; padding: 3px 8px; border-radius: 4px; white-space: nowrap; }
.lead-status.booked { background: rgba(45,106,79,0.25); color: #6ee7b7; }
.lead-status.pending { background: rgba(245,158,11,0.15); color: #FCD34D; }
.lead-status.lost { background: rgba(220,38,38,0.15); color: #F87171; }

.ad-channels {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.channel {
  background: #1a1a1a;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 20px;
  display: flex; align-items: center; gap: 16px;
}
.ch-icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ch-info { flex: 1; }
.ch-name { font-size: 0.875rem; font-weight: 600; color: #e5e5e5; margin-bottom: 3px; }
.ch-stat { font-size: 0.7rem; color: #6B7280; }
.ch-badge { font-size: 0.65rem; font-weight: 700; padding: 3px 8px; border-radius: 4px; }
.ch-badge.good { background: rgba(45,106,79,0.25); color: #6ee7b7; }
.ch-badge.ok { background: rgba(255,255,255,0.06); color: #9CA3AF; }

/* ===== TRUST BADGES ===== */
.trust-section { padding: 40px 24px; border-top: 1px solid rgba(0,0,0,0.06); border-bottom: 1px solid rgba(0,0,0,0.06); }
.trust-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: center; align-items: center; gap: 48px; flex-wrap: wrap;
}
.trust-badge {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8125rem; font-weight: 500; color: var(--fg-muted);
}

/* ===== CLOSING ===== */
.closing { padding: 96px 24px; background: var(--bg); }
.closing-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.closing h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900; margin-bottom: 28px;
  color: var(--fg);
}
.closing > .closing-inner > p {
  font-size: 1.0625rem; color: var(--fg-muted); line-height: 1.65; margin-bottom: 20px;
}
.closing-vision { margin-top: 40px; padding-top: 40px; border-top: 1px solid rgba(0,0,0,0.08); }
.closing-vision p { font-size: 0.9375rem; color: var(--fg-muted); line-height: 1.7; }
.closing-vision p:last-child { font-style: italic; color: var(--fg-subtle); }

/* ===== FOOTER ===== */
footer { padding: 48px 24px 32px; background: var(--surface); border-top: 1px solid rgba(0,0,0,0.06); }
.footer-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 8px; font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1rem; margin-bottom: 10px; }
.footer-tagline { font-size: 0.875rem; color: var(--fg-muted); margin-bottom: 4px; }
.footer-copy { font-size: 0.75rem; color: var(--fg-subtle); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-content, .map-canvas-inner { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .dashboard-metrics { grid-template-columns: repeat(3, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .ad-channels { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; }
  .dashboard-metrics { grid-template-columns: repeat(2, 1fr); }
  .trust-inner { gap: 24px; }
  .hero { padding: 48px 20px 56px; }
}