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

:root {
  --green-dark: #2a5c0f;
  --green-mid: #3d8a18;
  --green-light: #5cb82a;
  --green-pale: #eaf5e1;
  --green-glow: rgba(93, 184, 42, 0.12);
  --off-white: #f7f6f2;
  --warm-white: #fdfcf9;
  --ink: #1a1a18;
  --ink-muted: #4a4a45;
  --ink-faint: #8a8a82;
  --border: rgba(0,0,0,0.09);
  --border-strong: rgba(0,0,0,0.16);
  --card-bg: #ffffff;
  --radius: 14px;
  --radius-sm: 8px;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--off-white);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.page-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
}

.header {
  margin-bottom: 2rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-mid);
  background: var(--green-pale);
  border: 1px solid rgba(61,138,24,0.2);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--green-light);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(26px, 5vw, 38px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

h1 span {
  color: var(--green-mid);
}

.subhead {
  font-size: 15px;
  color: var(--ink-muted);
  line-height: 1.6;
  max-width: 480px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
}

.slider-section {
  margin-bottom: 2rem;
}

.slider-row {
  margin-bottom: 1.5rem;
}

.slider-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

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

.slider-value {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--green-dark);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--green-light) 0%, var(--green-light) var(--pct, 25%), #ddd var(--pct, 25%), #ddd 100%);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  background: var(--card-bg);
  border: 2px solid var(--green-mid);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(61,138,24,0.25);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 3px 12px rgba(61,138,24,0.35);
}

input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: var(--card-bg);
  border: 2px solid var(--green-mid);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(61,138,24,0.25);
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 0 1.75rem;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 1.75rem;
}

.metric {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.metric.featured {
  background: var(--green-pale);
  border-color: rgba(61,138,24,0.25);
}

.metric-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-faint);
  margin-bottom: 6px;
}

.metric.featured .metric-label {
  color: var(--green-mid);
}

.metric-val {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}

.metric.featured .metric-val {
  color: var(--green-dark);
  font-size: 24px;
}

.chart-wrap {
  position: relative;
  width: 100%;
  height: 180px;
  margin-bottom: 1.75rem;
}

.cta-block {
  background: var(--ink);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-copy {
  flex: 1;
  min-width: 200px;
}

.cta-copy p {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}

.cta-copy p strong {
  color: #fff;
  font-weight: 500;
  display: block;
  margin-bottom: 2px;
  font-size: 14px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-light);
  color: var(--ink);
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.1s ease;
}

.cta-btn:hover {
  background: #6fcf35;
  transform: translateY(-1px);
}

.cta-btn svg {
  width: 14px;
  height: 14px;
}

.footer-note {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 12px;
  color: var(--ink-faint);
}

@media (max-width: 480px) {
  .card { padding: 1.5rem; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metrics .metric:last-child { grid-column: span 2; }
  .cta-block { flex-direction: column; align-items: flex-start; }
}
