/* ==========================================
   LeadRoot — Theme CSS
   ========================================== */

/* --- Variables --- */
:root {
  --bg: #FAFAF8;
  --bg-alt: #F0EDE6;
  --bg-dark: #1B4332;
  --bg-dark-2: #143328;
  --fg: #1A1A1A;
  --fg-muted: #5C5C5C;
  --fg-light: #F5F4F0;
  --accent: #D97706;
  --accent-dark: #B45309;
  --accent-warm: #FEF3C7;
  --green-deep: #1B4332;
  --green-mid: #2D6A4F;
  --red-bad: #DC2626;
  --green-good: #16A34A;
  --border: #E5E0D8;
  --radius: 8px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

/* --- Typography --- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.2rem; font-family: var(--font-body); font-weight: 600; }

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-headline {
  color: var(--fg);
  margin-bottom: 1rem;
}

.section-sub {
  color: var(--fg-muted);
  font-size: 1.05rem;
  max-width: 52ch;
  margin-bottom: 2.5rem;
}

.section-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Hero --- */
.hero {
  background: var(--bg);
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 6rem 2rem 4rem;
  max-width: 1160px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.35;
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-block;
  background: var(--green-deep);
  color: var(--fg-light);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero-headline {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 900;
  color: var(--fg);
  margin-bottom: 1.2rem;
  line-height: 1.1;
}

.hero-lede {
  font-size: 1.1rem;
  color: var(--fg-muted);
  max-width: 46ch;
  margin-bottom: 2.5rem;
  line-height: 1.65;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.stat { display: flex; flex-direction: column; }
.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Phone mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.phone-mock {
  filter: drop-shadow(0 32px 64px rgba(27,67,50,0.25));
}

.phone-frame {
  background: #111;
  border-radius: 40px;
  padding: 16px;
  width: 280px;
  border: 2px solid #333;
}

.phone-screen {
  background: #1B4332;
  border-radius: 28px;
  padding: 1.5rem;
  color: var(--fg-light);
  font-family: var(--font-body);
  font-size: 0.8rem;
}

.call-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: #4ADE80;
}
.call-icon { font-size: 1rem; }
.call-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }

.caller-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}
.caller-location { color: #86EFAC; font-size: 0.75rem; margin-bottom: 1rem; }
.call-status {
  background: rgba(255,255,255,0.1);
  border-radius: 100px;
  padding: 0.3rem 0.8rem;
  font-size: 0.7rem;
  display: inline-block;
  color: #FDE68A;
  margin-bottom: 1rem;
}

.qualification-steps { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.step {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.6);
  padding-left: 0.5rem;
}
.step.done { color: #86EFAC; }
.step.done::before { content: '✓ '; }

.booked-badge {
  background: #16A34A;
  color: white;
  border-radius: 8px;
  padding: 0.5rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.75rem;
}

/* --- How It Works --- */
.how-it-works {
  background: var(--bg-alt);
  padding: 6rem 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 0;
}

.step-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
}

.step-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--green-deep);
  opacity: 0.12;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  line-height: 1;
}

.step-card h3 {
  color: var(--fg);
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
}

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

/* --- Problem --- */
.problem {
  background: var(--bg);
  padding: 6rem 0;
}

.problem-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.problem-body {
  color: var(--fg-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.problem-quote {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--green-deep);
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
  margin-top: 1.5rem;
}

.quote-source {
  display: block;
  font-size: 0.75rem;
  font-style: normal;
  color: var(--fg-muted);
  margin-top: 0.4rem;
}

.comparison-table {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.comp-header {
  background: var(--green-deep);
  color: white;
  padding: 1rem 1.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}

.comp-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 0;
  padding: 0.8rem 1.25rem;
  font-size: 0.82rem;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

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

.comp-row.header-row {
  background: var(--bg-alt);
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bad { color: var(--red-bad); font-weight: 600; }
.good { color: var(--green-good); font-weight: 600; }

/* --- Lead Types --- */
.lead-types {
  background: var(--bg-alt);
  padding: 6rem 0;
}

.trades-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.trade-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.trade-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.trade-icon { font-size: 2rem; margin-bottom: 0.75rem; }

.trade-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.25rem;
}

.trade-detail {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.trade-desc {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.trade-stat {
  background: var(--bg-alt);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green-deep);
}

/* --- Manifesto --- */
.manifesto {
  background: var(--green-deep);
  padding: 7rem 0;
  color: var(--fg-light);
}

.manifesto-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.manifesto-quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.3;
  color: #fff;
  margin-bottom: 2rem;
  max-width: 60ch;
}

.manifesto-body {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 60ch;
  margin-bottom: 1.25rem;
}

.manifesto-goal {
  margin-top: 2rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
}

.goal-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  flex-shrink: 0;
}

.goal-text {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
}

/* --- Closing --- */
.closing {
  background: var(--bg);
  padding: 7rem 0;
  text-align: center;
}

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

.closing-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.25rem;
}

.closing-body {
  color: var(--fg-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 0.85rem;
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

.closing-offer {
  margin-top: 2.5rem;
  padding: 2rem;
  background: linear-gradient(135deg, #F0EDE6, #E8E3D9);
  border-radius: 16px;
  border: 1px solid var(--border);
}

.offer-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 0.4rem;
}

.offer-sub {
  color: var(--fg-muted);
  font-size: 0.9rem;
}

/* --- Footer --- */
.footer {
  background: #111;
  color: rgba(255,255,255,0.5);
  padding: 3rem 0 2rem;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: start;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: white;
  margin-bottom: 0.5rem;
}

.footer-tagline { font-size: 0.85rem; }

.footer-links {
  display: flex;
  gap: 3rem;
}

.footer-link-group { display: flex; flex-direction: column; gap: 0.6rem; }

.footer-link-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.2rem;
}

.footer-link-group a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-link-group a:hover { color: white; }

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.78rem;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 4rem 1.5rem 3rem;
    min-height: auto;
  }

  .hero-visual { display: none; }

  .problem-layout { grid-template-columns: 1fr; }

  .steps-grid { grid-template-columns: 1fr; }

  .trades-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }

  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (max-width: 600px) {
  .trades-grid { grid-template-columns: 1fr; }

  .hero-stats { gap: 1rem; }

  .comp-row { font-size: 0.75rem; }

  .section-inner { padding: 0 1.25rem; }
}