:root {
  --ink: #111719;
  --paper: #f6f5f1;
  --paper-2: #e7eef1;
  --amber: #19aee5;
  --teal: #087ca5;
  --muted: #6b7280;
  --line: #dfe4e7;
  --sans: 'Figtree', system-ui, sans-serif;
  --display: 'Source Serif 4', Georgia, serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.5;
}

a { color: var(--teal); }

.top, main { width: min(1100px, calc(100% - 2rem)); margin-inline: auto; }

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
}

.brand {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.top nav { display: flex; gap: 1rem; }

.top nav a { color: var(--ink); text-decoration: none; font-weight: 600; }

.kicker {
  color: var(--amber);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

h1, h2 { font-family: var(--display); font-weight: 650; line-height: 1.15; }

h1 { font-size: clamp(2rem, 4vw, 3.2rem); margin: 0.3rem 0 0.8rem; }

.lead { font-size: 1.08rem; max-width: 42rem; }

.hero-actions { margin: 1.25rem 0 0; }

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

.stats article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
}

.stats strong {
  display: block;
  font-family: var(--display);
  font-size: 2rem;
}

.stats span { color: var(--muted); }

.charts { display: grid; gap: 1rem; margin: 0 0 1.5rem; max-width: 100%; }

.charts canvas { max-width: 100%; }

.chart-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem 1.2rem;
}

.chart-card h2, .pie-block h2 { margin: 0 0 0.35rem; font-size: 1.6rem; }

.chart-card h3 { margin: 0 0 0.4rem; font-size: 1.05rem; font-family: var(--sans); }

.chart-bar { height: 320px; }

.pie-block h2 { margin-top: 0.4rem; }

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

.chart-pie { height: 240px; }

.split {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1rem 0 0.5rem;
}

.country {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem 1.2rem 0.4rem;
}

.country h2 { font-size: 1.45rem; margin: 0.2rem 0 0.6rem; }

.bars { list-style: none; padding: 0; margin: 0; }

.bars li { margin: 0.85rem 0; }

.bars span { display: inline-block; width: 9rem; }

.bars i {
  display: block;
  height: 8px;
  margin-top: 0.3rem;
  background: var(--teal);
  border-radius: 99px;
}

.facts { margin: 0; padding-left: 1.1rem; }

.facts li { margin: 0.45rem 0; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  background: var(--paper-2);
  border-radius: 14px;
  padding: 1rem;
}

.steps strong { display: block; margin-bottom: 0.35rem; }

.steps span { color: var(--muted); font-size: 0.95rem; }

.close {
  margin: 2rem 0 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.btn {
  display: inline-block;
  margin: 0.3rem 0.4rem 0.3rem 0;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  text-decoration: none;
  font-weight: 700;
}

.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }

.note { color: var(--muted); font-size: 0.9rem; }

@media (max-width: 800px) {
  .stats, .split, .steps, .pies { grid-template-columns: 1fr; }
}
