:root {
  --bg-main: #fdfaf5;
  --text-main: #1c1c1c;
  --accent-brown: #6b4226;
  --accent-tan: #c8a882;
  --divider: #e8ddd0;
  --card-bg: #ffffff;
  --beige-section: #f5ede0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-main);
  color: var(--text-main);
  font-family: "Inter", sans-serif;
}

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.section {
  padding: 96px 0;
  border-bottom: 1px solid var(--divider);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-section {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
}

.hero-content {
  text-align: center;
  position: relative;
  padding-bottom: 2.5rem;
}

h1,
.section-title,
.pull-quote,
.saved-counter,
.statement-content p {
  font-family: "Playfair Display", serif;
}

h1 {
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 72px);
  font-weight: 700;
  font-style: italic;
  line-height: 1.1;
}

.hero-subtitle {
  margin: 1rem auto 0;
  font-size: 17px;
  line-height: 1.8;
  max-width: 700px;
}

.badge {
  position: absolute;
  left: 0;
  bottom: 0;
  margin: 0;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--accent-tan);
  color: var(--accent-brown);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: float 3s ease-in-out infinite;
}

.last-updated {
  position: absolute;
  right: 0;
  bottom: 0;
  margin: 0;
  font-size: 13px;
  color: #8a7968;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.pull-quote {
  margin: 0;
  font-size: clamp(2rem, 4.6vw, 52px);
  line-height: 1.2;
  font-style: italic;
}

.body-copy p {
  margin: 0 0 1rem;
  font-size: 17px;
  line-height: 1.8;
}

.body-copy p:last-child {
  margin-bottom: 0;
}

.section-title {
  margin: 0 0 1.2rem;
  font-size: clamp(2.1rem, 4vw, 42px);
  font-weight: 700;
  line-height: 1.2;
}

.section-title.center {
  text-align: center;
}

.section-title.italic {
  font-style: italic;
}

.stats-section,
.impact-section {
  background: var(--beige-section);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--divider);
  border-radius: 12px;
  padding: 1.25rem 1rem;
}

.stat-value {
  margin: 0 0 0.55rem;
  color: var(--accent-brown);
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4.2vw, 56px);
  font-weight: 700;
  line-height: 1.05;
}

.stat-label {
  margin: 0;
  color: #8a7968;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  font-weight: 600;
}

.demo-badge {
  display: inline-block;
  margin: 0.6rem 0 0;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--accent-tan);
  background: #fff9f2;
  color: var(--accent-brown);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.align-center {
  align-items: center;
}

.chart-card {
  background: #fff;
  border: 1px solid var(--divider);
  border-radius: 12px;
  padding: 1.2rem;
}

.chart-card h3 {
  margin: 0 0 0.7rem;
  color: #8a7968;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chart-card canvas {
  width: 100% !important;
  height: 340px !important;
}

.italic-callout {
  margin-top: 1.4rem;
  font-style: italic;
  font-weight: 600;
  color: var(--accent-brown);
}

.statement-section {
  background: #3d2314;
  border-bottom: 0;
}

.statement-content {
  text-align: center;
}

.statement-content p {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4.2vw, 56px);
  font-style: italic;
  line-height: 1.2;
}

.statement-content span {
  display: block;
  margin-top: 0.8rem;
  color: var(--accent-tan);
  font-size: 17px;
}

.tps-section .chart-card.wide canvas {
  height: 380px !important;
}

.section-caption {
  margin: 0 0 1.2rem;
  color: #8a7968;
  font-size: 17px;
  line-height: 1.8;
}

.section-caption.center {
  text-align: center;
}

.source-note {
  margin: 0.8rem 0 0;
  text-align: center;
  color: #8a7968;
  font-size: 13px;
}

.saved-counter {
  margin: 0.7rem 0 0.7rem;
  text-align: center;
  color: var(--accent-brown);
  font-size: clamp(3rem, 10vw, 80px);
  font-weight: 700;
  line-height: 1;
}

.facts-row {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.fact-pill {
  margin: 0;
  background: #fff;
  border: 1px solid var(--divider);
  border-radius: 999px;
  padding: 0.9rem 1rem;
  text-align: center;
  font-size: 13px;
  color: #8a7968;
  line-height: 1.6;
}

.site-footer {
  background: #1c1c1c;
  color: #fff;
  padding: 1.3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.8rem;
  text-align: center;
}

.footer-content p {
  margin: 0;
  font-size: 14px;
}

.footer-content p:first-child {
  text-align: left;
}

.footer-content a {
  text-align: right;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

.footer-content a:hover {
  text-decoration: underline;
}

.footer-source {
  margin: 0.8rem auto 0;
  width: min(1180px, 92vw);
  color: #c3c3c3;
  font-size: 11px;
  text-align: center;
}

@media (max-width: 980px) {
  .two-column {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .facts-row {
    grid-template-columns: 1fr;
  }

  .badge,
  .last-updated {
    position: static;
    display: inline-block;
    margin-top: 1rem;
  }

  .last-updated {
    display: block;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 84px 0;
  }

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

  .chart-card canvas,
  .tps-section .chart-card.wide canvas {
    height: 270px !important;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-content p:first-child,
  .footer-content a {
    text-align: center;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}
