:root {
  --bg: #FAFAF8;
  --fg: #1A1A1A;
  --fg-muted: #6B6B6B;
  --accent: #22c55e;
  --accent-dark: #16a34a;
  --accent-light: #f0fdf4;
  --surface: #FFFFFF;
  --border: #E8E8E0;
  --nav-height: 64px;
  --radius: 12px;
}

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

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

/* Navbar */
.navbar {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
.navbar-brand { display: flex; align-items: center; gap: 10px; }
.brand-name {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  color: var(--fg);
  letter-spacing: -0.02em;
}
.navbar-tagline { font-size: 13px; color: var(--fg-muted); letter-spacing: 0.04em; text-transform: uppercase; }

/* Hero */
.hero {
  padding: 80px 48px 72px;
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero-headline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 24px;
}
.hero-lede {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 40px;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}
.stat { display: flex; flex-direction: column; }
.stat-number { font-family: 'DM Serif Display', serif; font-size: 28px; color: var(--fg); }
.stat-label { font-size: 12px; color: var(--fg-muted); margin-top: 2px; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* Hero visual - price cards */
.hero-visual { display: flex; flex-direction: column; gap: 16px; }
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  position: relative;
}
.price-card--secondary { opacity: 0.75; }
.price-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.price-card-brand { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted); }
.price-card-badge {
  font-size: 10px;
  font-weight: 600;
  background: #f0fdf4;
  color: #166534;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.04em;
}
.price-card-name { font-size: 14px; color: var(--fg); margin-bottom: 8px; }
.price-card-price { font-family: 'DM Serif Display', serif; font-size: 28px; color: var(--fg); }
.price-per { font-size: 14px; color: var(--fg-muted); font-family: 'DM Sans', sans-serif; }
.price-card-meta { font-size: 12px; color: var(--fg-muted); margin-top: 4px; }
.price-card-savings { font-size: 12px; color: #2D7A3A; font-weight: 500; margin-top: 4px; }

/* Section labels */
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 40px;
  max-width: 600px;
}

/* Categories */
.categories { padding: 80px 48px; border-bottom: 1px solid var(--border); }
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
}
.category-card {
  background: var(--bg);
  padding: 36px;
  transition: background 0.2s;
}
.category-card:hover { background: var(--surface); }
.category-icon { margin-bottom: 20px; }
.category-name {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: var(--fg);
  margin-bottom: 10px;
}
.category-desc { font-size: 14px; color: var(--fg-muted); line-height: 1.6; margin-bottom: 16px; }
.category-price { font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: 0.02em; }

/* Pricing model */
.pricing-model { padding: 80px 48px; border-bottom: 1px solid var(--border); }
.pricing-model-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.pricing-model-body { font-size: 16px; color: var(--fg-muted); line-height: 1.7; max-width: 420px; }
.steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }
.step-number { font-family: 'DM Serif Display', serif; font-size: 36px; color: var(--accent); min-width: 48px; line-height: 1; padding-top: 4px; }
.step h4 { font-size: 16px; font-weight: 600; color: var(--fg); margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--fg-muted); line-height: 1.6; }

/* Manifesto */
.manifesto { padding: 80px 48px; border-bottom: 1px solid var(--border); background: var(--fg); }
.manifesto-inner { max-width: 900px; margin: 0 auto; }
.manifesto-quote {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.3;
  color: var(--bg);
  margin-bottom: 48px;
  font-style: italic;
}
.manifesto-body p { font-size: 16px; color: rgba(250,250,248,0.7); line-height: 1.75; margin-bottom: 20px; max-width: 680px; }
.manifesto-body p:last-child { margin-bottom: 0; }
.manifesto-body strong { color: var(--bg); }

/* Closing */
.closing { padding: 80px 48px; border-bottom: 1px solid var(--border); }
.closing-inner { max-width: 800px; margin: 0 auto; text-align: center; }
.closing-headline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--fg);
  margin-bottom: 20px;
}
.closing-sub { font-size: 16px; color: var(--fg-muted); line-height: 1.7; max-width: 540px; margin: 0 auto; }

/* Footer */
.footer { padding: 40px 48px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-family: 'DM Serif Display', serif; font-size: 18px; color: var(--fg); margin-bottom: 12px; }
.footer-note { font-size: 13px; color: var(--fg-muted); margin-bottom: 8px; }
.footer-legal { font-size: 12px; color: var(--fg-muted); }

/* ── Form / CTA shared ───────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
  font-family: inherit;
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: white;
  color: var(--fg);
  border: 1.5px solid var(--border);
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: border-color 0.15s;
}
.btn-secondary:hover { border-color: var(--fg-muted); }

/* ── Request form ────────────────────────────────────────────────── */
.page-header {
  padding: 48px 48px 0;
  max-width: 800px;
  margin: 0 auto;
}
.page-header h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(28px,3vw,40px);
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 8px;
}
.page-header p { color: var(--fg-muted); font-size: 16px; }

.form-wrapper { max-width: 640px; margin: 40px auto; padding: 0 24px 80px; }

/* Step indicators */
.step-indicators {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 40px;
}
.step-dot {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.step-dot-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  transition: all 0.2s;
}
.step-dot-label { font-size: 13px; color: var(--fg-muted); font-weight: 500; }
.step-connector { flex: 1; height: 2px; background: var(--border); margin: 0 8px; }
.step-dot.active .step-dot-number { background: var(--accent); color: white; }
.step-dot.active .step-dot-label { color: var(--accent); }
.step-dot.done .step-dot-number { background: var(--fg); color: white; }

/* Form fields */
.field-group { margin-bottom: 24px; }
.field-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 8px;
}
.field-sub { font-size: 12px; color: var(--fg-muted); margin-top: 4px; }
.field-input, .field-select, .field-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  color: var(--fg);
  background: var(--surface);
  transition: border-color 0.15s;
  box-sizing: border-box;
  -webkit-appearance: none;
}
.field-input:focus, .field-select:focus, .field-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34,197,94,0.12);
}
.field-textarea { resize: vertical; min-height: 80px; }

/* Radio cards */
.radio-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.radio-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  user-select: none;
}
.radio-card:has(input:checked) { border-color: var(--accent); background: var(--accent-light); }
.radio-card input[type="radio"] { display: none; }
.radio-card-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
}
.radio-card:has(input:checked) .radio-card-check { border-color: var(--accent); background: var(--accent); }
.radio-card:has(input:checked) .radio-card-check::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
}
.radio-card-title { font-size: 14px; font-weight: 600; color: var(--fg); }
.radio-card-sub { font-size: 12px; color: var(--fg-muted); }

/* Kw slider */
.slider-wrap { padding: 8px 0; }
.slider-value {
  font-family: 'DM Serif Display', serif;
  font-size: 48px;
  color: var(--accent);
  text-align: center;
  margin-bottom: 16px;
}
.slider-value span { font-size: 20px; font-family: 'DM Sans', sans-serif; color: var(--fg-muted); }
.range-slider {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
  height: 6px;
}
.range-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--fg-muted); margin-top: 8px; }

/* Form actions */
.form-actions { display: flex; gap: 12px; margin-top: 32px; }

/* Error messages */
.field-error { color: #dc2626; font-size: 13px; margin-top: 6px; }

/* ── Confirmation page ───────────────────────────────────────────── */
.confirm-page { max-width: 600px; margin: 80px auto; padding: 0 24px; text-align: center; }
.confirm-icon { font-size: 64px; margin-bottom: 24px; }
.confirm-h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 32px;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 16px;
}
.confirm-body { font-size: 16px; color: var(--fg-muted); line-height: 1.7; margin-bottom: 32px; }
.confirm-steps { text-align: left; max-width: 440px; margin: 0 auto 32px; }
.confirm-step { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.confirm-step-icon { font-size: 20px; flex-shrink: 0; }
.confirm-step-text { font-size: 14px; color: var(--fg); }
.confirm-step-text strong { display: block; }

/* ── Comparison page ─────────────────────────────────────────────── */
.comparison-page { max-width: 900px; margin: 0 auto; padding: 40px 24px 80px; }
.comparison-header { margin-bottom: 40px; }
.comparison-h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(24px,3vw,36px);
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 8px;
}
.comparison-meta { font-size: 14px; color: var(--fg-muted); margin-bottom: 32px; }
.comparison-meta strong { color: var(--fg); }

/* Quote cards grid */
.quotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.quote-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s;
}
.quote-card:hover { border-color: var(--accent); }
.quote-card-header { display: flex; justify-content: space-between; align-items: flex-start; }
.quote-installers { font-size: 14px; font-weight: 600; color: var(--fg); }
.quote-installers-sub { font-size: 12px; color: var(--fg-muted); margin-top: 2px; }
.quote-price {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  color: var(--fg);
}
.quote-price-sub { font-size: 12px; color: var(--fg-muted); }
.quote-detail { display: flex; flex-direction: column; gap: 4px; }
.quote-detail-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-muted); }
.quote-detail-value { font-size: 14px; color: var(--fg); font-weight: 500; }
.quote-divider { height: 1px; background: var(--border); }
.quote-cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}
.quote-cta .btn-primary { width: 100%; text-align: center; }
.quote-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.badge-green { background: #dcfce7; color: #166534; }

/* Rating stars */
.stars { color: var(--accent); font-size: 16px; letter-spacing: 2px; }

/* No quotes state */
.no-quotes {
  background: var(--accent-light);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}
.no-quotes p { color: var(--fg-muted); }

/* ── Installer respond form ──────────────────────────────────────── */
.installer-page { max-width: 640px; margin: 0 auto; padding: 40px 24px 80px; }
.installer-h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 8px;
}
.installer-meta {
  background: var(--accent-light);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 32px;
  font-size: 14px;
}
.installer-meta strong { color: var(--fg); }

/* ── Error pages ─────────────────────────────────────────────────── */
.error-page { max-width: 500px; margin: 100px auto; padding: 0 24px; text-align: center; }
.error-page h1 { font-family: 'DM Serif Display', serif; font-size: 36px; color: var(--fg); margin-bottom: 16px; }
.error-page p { color: var(--fg-muted); }

/* Responsive */
@media (max-width: 768px) {
  .navbar { padding: 0 24px; }
  .hero { padding: 48px 24px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .stat-divider { display: none; }
  .categories, .pricing-model, .manifesto, .closing { padding: 56px 24px; }
  .category-grid { grid-template-columns: 1fr; }
  .pricing-model-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer { padding: 32px 24px; }
  .radio-cards { grid-template-columns: 1fr; }
  .quotes-grid { grid-template-columns: 1fr; }
}