:root {
  --bg: #0A1628;
  --surface: #111e33;
  --surface-2: #162440;
  --fg: #f0f4ff;
  --fg-muted: #8898b0;
  --accent: #F59E0B;
  --accent-dim: rgba(245, 158, 11, 0.12);
  --border: rgba(240, 244, 255, 0.08);
}

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

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

h1, h2, h3, h4 {
  font-family: 'Sora', sans-serif;
  line-height: 1.15;
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 64px 64px;
  max-width: 960px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.eyebrow-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-headline {
  font-size: clamp(42px, 6vw, 80px);
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 28px;
  letter-spacing: -0.03em;
}

.hero-lede {
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--fg-muted);
  max-width: 580px;
  margin-bottom: 56px;
  line-height: 1.7;
}

.hero-stat-row {
  display: flex;
  align-items: center;
  gap: 0;
}

.stat {
  display: flex;
  flex-direction: column;
  padding: 0 40px 0 0;
}

.stat-number {
  font-family: 'Sora', sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 13px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-divider {
  width: 1px;
  height: 56px;
  background: var(--border);
  margin: 0 40px 0 0;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 32px;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #000;
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 4px;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.1s;
}

.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-ghost {
  display: inline-block;
  color: var(--fg-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color 0.15s;
}

.btn-ghost:hover { color: var(--fg); }

.hero-proof-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--fg-muted);
}

.hero-proof-badge strong { color: var(--fg); }

/* PHILOSOPHY */
.philosophy {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.philosophy-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 80px 64px;
  max-width: 1200px;
}

.philosophy-text {
  font-size: 17px;
  line-height: 1.8;
  color: var(--fg-muted);
}

.philosophy-quote {
  padding-left: 40px;
  border-left: 2px solid var(--accent);
  position: relative;
}

.quote-mark {
  font-family: 'Sora', sans-serif;
  font-size: 80px;
  color: var(--accent);
  line-height: 1;
  display: block;
  margin-bottom: -16px;
  opacity: 0.4;
}

.philosophy-quote blockquote {
  font-size: 18px;
  font-style: italic;
  color: var(--fg);
  line-height: 1.7;
  margin-bottom: 20px;
}

.philosophy-quote cite {
  font-size: 13px;
  color: var(--fg-muted);
  font-style: normal;
}

/* PROCESS */
.process {
  padding: 96px 64px;
  max-width: 1200px;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-headline {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 64px;
  max-width: 600px;
  letter-spacing: -0.02em;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.process-step {
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.step-number {
  font-family: 'Sora', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.step-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 14px;
}

.step-desc {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* OUTCOMES */
.outcomes {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 96px 64px;
}

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 960px;
}

.outcomes-grid-3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 100%;
}

.outcome {
  padding: 32px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.outcome-icon {
  margin-bottom: 20px;
}

.outcome-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 10px;
}

.outcome-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* CLOSING */
.closing {
  padding: 80px 64px;
  max-width: 960px;
  border-bottom: 1px solid var(--border);
}

.closing-statement {
  font-size: clamp(18px, 2.2vw, 26px);
  color: var(--fg-muted);
  line-height: 1.8;
  max-width: 700px;
}

/* TESTIMONIALS */
.testimonials {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 96px 64px;
}

.testimonials-inner { max-width: 1200px; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 64px;
}

.testimonial-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.testimonial-rating {
  display: flex;
  gap: 3px;
}

.testimonial-quote {
  font-size: 15px;
  color: var(--fg);
  line-height: 1.7;
  font-style: italic;
  flex: 1;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.testimonial-author strong {
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--fg);
}

.testimonial-author span {
  font-size: 12px;
  color: var(--fg-muted);
}

@media (max-width: 900px) {
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonials { padding: 60px 28px; }
}
.footer {
  padding: 40px 64px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-name {
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
}

.footer-tagline {
  font-size: 13px;
  color: var(--fg-muted);
}

.footer-legal {
  font-size: 12px;
  color: var(--fg-muted);
}

/* MOBILE */
@media (max-width: 768px) {
  .hero { padding: 60px 28px 48px; }
  .philosophy-inner { grid-template-columns: 1fr; gap: 40px; padding: 60px 28px; }
  .philosophy-quote { padding-left: 0; border-left: none; border-top: 2px solid var(--accent); padding-top: 32px; }
  .process { padding: 60px 28px; }
  .process-steps { grid-template-columns: 1fr; }
  .outcomes { padding: 60px 28px; }
  .outcomes-grid { grid-template-columns: 1fr; }
  .closing { padding: 60px 28px; }
  .footer { padding: 32px 28px; flex-direction: column; gap: 16px; align-items: flex-start; }
  .hero-stat-row { flex-direction: column; gap: 24px; align-items: flex-start; }
  .stat-divider { display: none; }
}

/* ── ROOFING QUOTE FORM ───────────────────────────────────────────── */
.quote-form-section {
  padding: 96px 64px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.quote-form-inner { max-width: 640px; }

.form-header { margin-bottom: 48px; }

.form-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  border: 1px solid var(--accent);
  background: var(--accent-dim);
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.form-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.form-subtitle { font-size: 16px; color: var(--fg-muted); line-height: 1.6; }

.roofing-form { display: flex; flex-direction: column; gap: 20px; }

.form-field { display: flex; flex-direction: column; gap: 6px; }

.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.roofing-form label {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.optional { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--fg-muted); }

.roofing-form input,
.roofing-form select,
.roofing-form textarea {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

.roofing-form input::placeholder,
.roofing-form textarea::placeholder { color: var(--fg-muted); opacity: 0.6; }

.roofing-form input:focus,
.roofing-form select:focus,
.roofing-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.roofing-form input.error,
.roofing-form select.error,
.roofing-form textarea.error { border-color: #ef4444; }

.roofing-form select option { background: var(--surface-2); }

.field-error { font-size: 12px; color: #ef4444; min-height: 16px; }

.radio-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 4px; }

.radio-card { cursor: pointer; }

.radio-card input[type="radio"] { display: none; }

.radio-label {
  display: block;
  padding: 10px 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: all 0.15s;
  cursor: pointer;
}

.radio-card input[type="radio"]:checked + .radio-label {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.form-submit {
  background: var(--accent);
  color: #000;
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 4px;
  padding: 16px;
  cursor: pointer;
  width: 100%;
  transition: opacity 0.15s, transform 0.1s;
  margin-top: 8px;
}

.form-submit:hover { opacity: 0.9; transform: translateY(-1px); }
.form-submit:active { transform: translateY(0); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.form-server-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid #ef4444;
  border-radius: 4px;
  padding: 12px;
  font-size: 14px;
  color: #ef4444;
}

/* Quote page layout */
.quote-page-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.quote-page-header { padding: 20px 40px; }
.back-home { font-size: 14px; color: var(--fg-muted); text-decoration: none; }
.back-home:hover { color: var(--fg); }

/* Mobile responsive for form */
@media (max-width: 640px) {
  .quote-form-section { padding: 60px 28px; }
  .form-row-2 { grid-template-columns: 1fr; }
  .radio-group { grid-template-columns: 1fr; }
  .quote-page-header { padding: 16px 28px; }
}

/* ── HERO IMAGE ────────────────────────────────────────────────────── */
.hero-bg-img-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.18;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,22,40,0.97) 0%, rgba(10,22,40,0.7) 60%, rgba(10,22,40,0.5) 100%);
}

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

/* ── PRICING ──────────────────────────────────────────────────────── */
.pricing {
  padding: 96px 64px;
  max-width: 1200px;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.pricing-card-featured {
  border-color: var(--accent);
  background: var(--surface-2);
}

.card-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #000;
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
}

.card-label {
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.card-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-amount {
  font-family: 'Sora', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.03em;
  line-height: 1;
}

.price-period {
  font-size: 18px;
  color: var(--fg-muted);
}

.card-lead-count {
  font-size: 14px;
  color: var(--fg-muted);
  font-weight: 500;
}

.card-lead-rate {
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
}

.card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.card-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--fg-muted);
}

.card-cta {
  display: block;
  text-align: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--fg);
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 12px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  margin-top: 8px;
}

.pricing-card-featured .card-cta {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.card-cta:hover { opacity: 0.9; }

.pricing-note {
  text-align: center;
  font-size: 13px;
  color: var(--fg-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── COMPARISON ──────────────────────────────────────────────────── */
.comparison {
  padding: 96px 64px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.comparison-table-wrap {
  max-width: 860px;
  margin: 64px auto 48px;
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  color: var(--fg-muted);
}

.comparison-table th {
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
  border-bottom: 2px solid var(--border);
}

.comparison-table td:not(:first-child) { text-align: center; }

.comparison-table tr:last-child td { border-bottom: none; }

.comp-brand-leadpilot {
  color: var(--accent);
}

.comp-brand { color: var(--fg); }

.cell-good { color: #22c55e !important; font-weight: 600; }
.cell-bad  { color: #ef4444 !important; }

.comparison-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.comp-stat {
  font-size: 16px;
  color: var(--fg-muted);
  text-align: center;
  max-width: 480px;
}

.comp-stat strong { color: var(--fg); }

/* ── CLOSING CTA ROW ─────────────────────────────────────────────── */
.closing-ctas {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
}

/* ── MOBILE ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .pricing-cards { grid-template-columns: 1fr; gap: 32px; }
  .comparison { padding: 60px 28px; }
  .pricing { padding: 60px 28px; }
}

@media (max-width: 640px) {
  .closing-ctas { flex-direction: column; align-items: flex-start; }
  .comparison-table th,
  .comparison-table td { font-size: 13px; padding: 12px 10px; }
}
