:root {
  /* Professional dark theme: deep navy with emerald accents */
  --bg: #0f1419;
  --bg-elevated: #131a25;
  --bg-card: #1a2332;
  --fg: #f0f4f8;
  --fg-muted: #8b95a5;
  --accent: #10b981;
  --accent-dim: rgba(16, 185, 129, 0.08);
  --danger: #ef4444;
  --danger-dim: rgba(239, 68, 68, 0.1);
  --border: rgba(255, 255, 255, 0.07);
  --radius: 14px;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

/* Safety net: no SVG on the landing page should ever exceed 64px.
   Individual classes can override with more specific selectors. */
svg:not(.hero-svg) {
  max-width: 64px;
  max-height: 64px;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
}

/* HERO */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 24px;
  position: relative;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.05) 0%, transparent 45%, rgba(16, 185, 129, 0.02) 100%);
}

.hero-badge {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 32px;
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5rem);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
  font-weight: 700;
  line-height: 1.15;
}

.hero .highlight {
  color: var(--accent);
}

.hero .lede {
  font-size: 1.1rem;
  color: var(--fg-muted);
  max-width: 680px;
  margin-bottom: 56px;
  line-height: 1.7;
  font-weight: 400;
}

.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  justify-content: center;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--fg-muted);
}

/* PROBLEM */
.problem {
  padding: 120px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.problem-text h2 {
  font-size: 2.4rem;
  margin-bottom: 32px;
  line-height: 1.2;
  font-weight: 700;
}

.problem-text p {
  color: var(--fg-muted);
  margin-bottom: 16px;
}

.problem-text strong {
  color: var(--danger);
}

.timeline {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.timeline.nexus {
  border-color: rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.04);
  box-shadow: 0 2px 12px rgba(16, 185, 129, 0.1);
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-item .time {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  min-width: 70px;
  color: var(--fg-muted);
}

.timeline-item .event {
  flex: 1;
  font-size: 0.95rem;
}

.timeline-item .tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--danger-dim);
  color: var(--danger);
}

.timeline-item .tag.success {
  background: var(--accent-dim);
  color: var(--accent);
}

/* SYSTEM */
.system {
  padding: 120px 24px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.system h2 {
  font-size: 2.4rem;
  margin-bottom: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.section-lede {
  color: var(--fg-muted);
  margin-bottom: 56px;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}

.system-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.system-card:hover {
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.12);
}

.card-number {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
}

.system-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.system-card p {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* RESULTS */
.results {
  padding: 120px 24px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.results h2 {
  font-size: 2.4rem;
  margin-bottom: 56px;
  font-weight: 700;
  line-height: 1.2;
}

.niche-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  text-align: left;
}

.niche-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.niche-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.niche-card p {
  font-size: 0.9rem;
  color: var(--fg-muted);
}

/* CLOSING */
.closing {
  padding: 140px 24px;
  text-align: center;
  background: linear-gradient(180deg, transparent 0%, rgba(16, 185, 129, 0.02) 50%, rgba(16, 185, 129, 0.04) 100%);
}

.closing-content {
  max-width: 650px;
  margin: 0 auto;
}

.closing h2 {
  font-size: 2.6rem;
  margin-bottom: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.closing p {
  color: var(--fg-muted);
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.closing-tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem !important;
  color: var(--accent) !important;
  margin-top: 32px !important;
}

/* FOOTER */
.site-footer {
  padding: 40px 24px;
  border-top: 1px solid var(--border);
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.footer-location {
  font-size: 0.85rem;
  color: var(--fg-muted);
}

/* BUTTONS */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #0f1419;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 36px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
  letter-spacing: -0.01em;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.btn-primary:hover {
  opacity: 0.95;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.28);
}

.btn-primary.btn-large {
  font-size: 1.1rem;
  padding: 18px 48px;
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--fg-muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: 8px;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--fg);
}

/* HERO CTA */
.hero-cta {
  margin-bottom: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero-cta-note {
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin: 0;
}

.hero-cta-secondary {
  font-size: 0.85rem;
  color: var(--fg-muted);
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.2);
  text-underline-offset: 3px;
  transition: color 0.15s;
}

.hero-cta-secondary:hover {
  color: var(--fg);
}

/* PRICING GRID — single centered card */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 520px;
  margin: 64px auto 0;
  justify-content: center;
}

/* Dual pricing layout — intro offer + full price side by side */
.pricing-grid--dual {
  grid-template-columns: 1fr 1fr;
  max-width: 860px;
  align-items: start;
}

@media (max-width: 640px) {
  .pricing-grid--dual {
    grid-template-columns: 1fr;
  }
}

/* PRICING CARD — base */
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px 40px;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Core plan — glowing accent border + elevated background */
.pricing-card--core {
  background: linear-gradient(160deg, #1a2332 0%, #131a25 100%);
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 0 32px rgba(16, 185, 129, 0.1), 0 4px 24px rgba(0, 0, 0, 0.3);
}

/* "Most Popular" ribbon on Premium — removed, single plan only */

.pricing-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
  margin-top: 8px;
}

/* Core badge — slightly different tint */
.pricing-badge--core {
  background: rgba(74, 222, 128, 0.15);
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 28px;
}

.pricing-dollar {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--fg-muted);
}

.pricing-number {
  font-family: var(--font-display);
  font-size: 4.2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--fg);
}

.pricing-period {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--fg-muted);
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
}

.pricing-features li {
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--fg-muted);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.pricing-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* "Everything in Basic, plus:" divider item */
.pricing-features li.feature-everything {
  color: var(--fg);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(74, 222, 128, 0.2);
  padding-bottom: 12px;
  margin-bottom: 2px;
}

.pricing-features li.feature-everything::before {
  content: '';
  display: none;
}

.pricing-features li:last-child {
  border-bottom: none;
}

/* Basic CTA — removed, single plan uses primary button */

.pricing-note {
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--fg-muted);
}

/* Intro offer badge */
.pricing-badge--intro {
  background: rgba(74, 222, 128, 0.2);
  color: var(--accent);
}

/* "then $X/mo" subtext under intro price */
.pricing-then {
  font-size: 0.82rem;
  color: var(--fg-muted);
  margin: -16px 0 24px;
  text-align: center;
}

/* Secondary (full-price) card — quieter visual weight */
.pricing-card--secondary {
  background: var(--bg-card);
  border-color: var(--border);
  opacity: 0.85;
}

.pricing-card--secondary .pricing-badge {
  background: rgba(255,255,255,0.06);
  color: var(--fg-muted);
}

.pricing-number--muted {
  font-size: 3rem;
  color: var(--fg-muted);
}

.pricing-secondary-label {
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-bottom: 28px;
  line-height: 1.5;
}

.coming-soon-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  color: var(--fg-muted);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2px 8px;
  border-radius: 100px;
  vertical-align: middle;
  margin-right: 6px;
}

.pricing-urgency {
  margin: 16px 0 4px;
  font-size: 0.82rem;
  color: var(--accent);
  line-height: 1.5;
  font-weight: 500;
}

/* SUCCESS PLAN BADGE */
.success-plan-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.success-plan-badge--premium {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.success-plan-badge--basic {
  background: rgba(255, 255, 255, 0.05);
  color: var(--fg-muted);
  border: 1px solid var(--border);
}

/* PAYMENT SUCCESS PAGE */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: radial-gradient(ellipse at 50% 0%, rgba(74, 222, 128, 0.05) 0%, transparent 60%);
}

.success-card {
  background: var(--bg-card);
  border: 1px solid rgba(74, 222, 128, 0.2);
  border-radius: 16px;
  padding: 56px 48px;
  max-width: 520px;
  width: 100%;
  text-align: center;
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 2px solid var(--accent);
  color: var(--accent);
  font-size: 1.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.success-card h1 {
  font-size: 2.8rem;
  margin-bottom: 16px;
}

.success-lede {
  color: var(--fg-muted);
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.success-email {
  font-size: 0.9rem;
  color: var(--fg-muted);
  margin-bottom: 36px;
}

.success-next-steps {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: left;
  margin-bottom: 36px;
}

.success-next-steps h3 {
  font-size: 0.95rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.next-steps-list {
  padding-left: 20px;
}

.next-steps-list li {
  color: var(--fg-muted);
  font-size: 0.95rem;
  padding: 6px 0;
}

/* ── TRUST SECTION ──────────────────────────────────────────────────── */
.trust-section {
  padding: 100px 24px;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

/* San Diego industries */
.trust-geo {
  text-align: center;
}

.trust-geo-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 24px;
}

.industry-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.industry-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 18px;
  transition: border-color 0.2s, background 0.2s;
  cursor: default;
}

.industry-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  opacity: 0.6;
}

.industry-badge:hover {
  border-color: rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.04);
}

.industry-name {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--fg-muted);
}

/* Trust indicator pills */
.trust-indicators {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.trust-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(74, 222, 128, 0.06);
  border: 1px solid rgba(74, 222, 128, 0.2);
  border-radius: 100px;
  padding: 10px 20px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fg);
}

.trust-icon {
  width: 16px;
  height: 16px;
  max-width: 16px;
  max-height: 16px;
  min-width: 16px;
  min-height: 16px;
  color: var(--accent);
  flex-shrink: 0;
  overflow: hidden;
}

/* Why LeadNexus comparison */
.why-section {
  text-align: center;
}

.why-heading {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.why-subhead {
  color: var(--fg-muted);
  font-size: 1rem;
  margin-bottom: 40px;
}

.compare-table {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
}

.compare-header {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.compare-header > div {
  padding: 14px 20px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.compare-col-bad {
  color: var(--danger);
  border-left: 1px solid var(--border);
  background: var(--danger-dim);
}

.compare-col-good {
  color: var(--accent);
  border-left: 1px solid rgba(74, 222, 128, 0.25);
  background: rgba(74, 222, 128, 0.04);
}

.compare-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.compare-row:last-child {
  border-bottom: none;
}

.compare-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.compare-row > div {
  padding: 16px 20px;
  font-size: 0.92rem;
}

.compare-label {
  color: var(--fg);
  font-weight: 500;
}

.compare-bad {
  color: var(--danger);
  border-left: 1px solid var(--border);
  background: var(--danger-dim);
}

.compare-good {
  color: var(--accent);
  font-weight: 600;
  border-left: 1px solid rgba(74, 222, 128, 0.25);
  background: rgba(74, 222, 128, 0.04);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .problem-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .system-grid {
    grid-template-columns: 1fr;
  }
  .niche-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    gap: 32px;
  }
  .hero h1 {
    font-size: 2.4rem;
  }
  /* Pricing: single card, centered */
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
  .pricing-card {
    padding: 32px 24px;
  }
  /* Trust section mobile */
  .trust-section {
    gap: 48px;
  }
  .compare-header {
    display: none;
  }
  .compare-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 0;
    padding: 0;
    border-bottom: 1px solid var(--border);
  }
  .compare-row:last-child {
    border-bottom: none;
  }
  .compare-label {
    grid-column: 1 / -1;
    padding: 12px 16px 6px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--fg-muted);
    border-left: none;
  }
  .compare-bad {
    padding: 4px 16px 14px;
    border-left: none;
    font-size: 0.85rem;
  }
  .compare-good {
    padding: 4px 16px 14px;
    font-size: 0.85rem;
  }
  /* Mobile column labels via ::before on first row */
  .compare-row:first-of-type .compare-bad::before,
  .compare-row:first-of-type .compare-good::before {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 2px;
  }
  .compare-row:first-of-type .compare-bad::before {
    content: 'Traditional';
    color: var(--danger);
  }
  .compare-row:first-of-type .compare-good::before {
    content: 'LeadNexus';
    color: var(--accent);
  }
  .trust-pill {
    font-size: 0.82rem;
    padding: 8px 14px;
  }
  .why-heading {
    font-size: 1.8rem;
  }
}