/* ===== FONTS ===== */
:root {
  --bg: #F5F0E8;
  --surface: #EEE9E0;
  --fg: #1A2332;
  --fg-muted: #5A6478;
  --accent: #B84A1A;
  --accent-warm: #D4620A;
  --dark-band: #1A2332;
  --dark-band-text: #F5F0E8;
  --border: #D8D2C6;
  --font-display: 'Syne', sans-serif;
  --font-body: 'Figtree', sans-serif;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== HERO ===== */
.hero {
  padding: 80px 64px 0;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 32px;
}
.eyebrow-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--fg);
  margin-bottom: 24px;
  padding-bottom: 16px; /* prevent descender clipping on g/y/p */
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 460px;
  margin-bottom: 40px;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}
.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-top: 4px;
}
.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

/* ===== ROOF DIAGRAM ===== */
.roof-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.diagram-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.diagram-shingle {
  width: 100%;
  max-width: 320px;
  height: 60px;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}
.shingle-body {
  width: 100%;
  height: 100%;
  background: #8B7D6B;
  position: relative;
}
.before .shingle-body {
  background: linear-gradient(135deg, #8B7D6B 0%, #7A6D5C 100%);
}
.granule-attrition {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0px,
    transparent 8px,
    rgba(200, 190, 175, 0.4) 8px,
    rgba(200, 190, 175, 0.4) 12px
  );
  background-size: 20px 60px;
}
.before .granule-attrition::after {
  content: '';
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 20px;
  background: radial-gradient(circle, #C8BEAD 30%, transparent 70%);
  border-radius: 50%;
  animation: falling 1.5s ease-in infinite;
}
.after .shingle-body {
  background: linear-gradient(135deg, #6E5E4E 0%, #5A4D3F 100%);
}
.shield-layer {
  position: absolute;
  inset: 0;
  background: rgba(184, 74, 26, 0.25);
  border: 2px solid var(--accent);
  border-radius: 6px;
}
.shield-layer::after {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px dashed rgba(184, 74, 26, 0.4);
  border-radius: 4px;
}
@keyframes falling {
  0% { transform: translateY(-50%) translateX(0); opacity: 1; }
  100% { transform: translateY(-50%) translateX(20px) translateY(15px); opacity: 0; }
}

/* ===== HERO BAND ===== */
.hero-band {
  margin: 56px -64px 0;
  background: var(--dark-band);
  padding: 28px 64px;
}
.hero-band p {
  font-size: 0.9rem;
  color: var(--dark-band-text);
  max-width: 680px;
  line-height: 1.5;
}

/* ===== SECTION TAGS ===== */
.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(184, 74, 26, 0.3);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 20px;
}

/* ===== PROBLEM ===== */
.problem {
  padding: 96px 64px;
  background: var(--surface);
}
.problem-inner { max-width: 1200px; margin: 0 auto; }
.problem-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 56px;
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.problem-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
}
.problem-icon {
  width: 40px; height: 40px;
  color: var(--accent);
  margin-bottom: 20px;
}
.problem-icon svg { width: 100%; height: 100%; }
.problem-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--fg);
}
.problem-card p {
  font-size: 0.92rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ===== PROCESS ===== */
.process { padding: 96px 64px; }
.process-inner { max-width: 1200px; margin: 0 auto; }
.process h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 64px;
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}
.step-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(184, 74, 26, 0.15);
  line-height: 1;
  margin-bottom: 16px;
}
.step-content h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.step-content p {
  font-size: 0.92rem;
  color: var(--fg-muted);
  line-height: 1.6;
}
.process-note {
  background: var(--dark-band);
  border-radius: 8px;
  padding: 24px 32px;
}
.process-note p {
  color: var(--dark-band-text);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== MARKETS ===== */
.markets { padding: 96px 64px; background: var(--surface); }
.markets-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.markets-left h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}
.markets-left p {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}
.markets-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.market-tag {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 14px;
  background: var(--fg);
  color: var(--bg);
  border-radius: 100px;
}
.cost-comparison {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.cost-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 28px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.cost-row:last-child { border-bottom: none; }
.cost-label { color: var(--fg-muted); }
.cost-value { font-weight: 600; }
.cost-value.highlight {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
}
.cost-value.accent { color: var(--accent); font-weight: 700; }

/* ===== CLOSING ===== */
.closing {
  padding: 96px 64px;
  text-align: center;
}
.closing-inner { max-width: 700px; margin: 0 auto; }
.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 28px;
  padding-bottom: 12px;
  color: var(--fg);
}
.closing p {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}
.closing-tagline {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent) !important;
  margin-top: 32px;
}

/* ===== FOOTER ===== */
footer { background: var(--fg); }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 64px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--bg);
  margin-bottom: 8px;
}
.footer-brand p { font-size: 0.85rem; color: rgba(245, 240, 232, 0.5); margin-top: 6px; }
.footer-note p { font-size: 0.82rem; color: rgba(245, 240, 232, 0.45); line-height: 1.6; }

/* ===== CTA BUTTON ===== */
.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.1s;
  margin: 24px 0 8px;
}
.cta-btn:hover {
  background: var(--accent-warm);
  transform: translateY(-1px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero { padding: 48px 28px 0; }
  .hero-layout { grid-template-columns: 1fr; gap: 40px; }
  .hero-band { margin: 40px -28px 0; padding: 20px 28px; }
  .problem, .process, .markets, .closing { padding: 64px 28px; }
  .problem-grid, .process-steps { grid-template-columns: 1fr; }
  .markets-inner { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; padding: 40px 28px; }
}