:root {
  --surface-1: #fafafa;
  --page-plane: #ffffff;
  --text-primary: #000000;
  --text-secondary: #333333;
  --text-muted: #8e8e8e;
  --grid-line: #ececec;
  --baseline: #e0e0e0;
  --border: #e0e0e0;
  --good: #1a7a1a;
  --bad: #b45309;
  --accent: #d50000;
  --accent-dark: #c20505;
  --accent-bright: #ff3b30;
  --accent-glow: rgba(213, 0, 0, 0.16);
  --footer-bg: #f2f2f2;
  --font-heading: "Bitter", "Helvetica", "Arial", serif;
  --font-body: "Inter", "Helvetica", "Arial", sans-serif;
  --shadow-sm: 0 1px 2px rgba(20, 10, 10, 0.05);
  --shadow-md: 0 8px 20px -8px rgba(20, 10, 10, 0.14), 0 1px 2px rgba(20, 10, 10, 0.05);
  --shadow-lg: 0 20px 40px -16px rgba(213, 0, 0, 0.22), 0 4px 12px rgba(20, 10, 10, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page-plane);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-heading);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */

.site-header {
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  height: 34px;
  display: block;
}

.site-nav {
  display: flex;
  gap: 8px;
}

.site-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
}

.site-nav a:hover {
  color: var(--text-primary);
  background: var(--surface-1);
}

/* Hero */

.hero {
  position: relative;
  padding: 76px 24px 32px;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -160px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, transparent 0 118px, rgba(213, 0, 0, 0.09) 119px 121px, transparent 122px 168px,
      rgba(213, 0, 0, 0.07) 169px 171px, transparent 172px 218px,
      rgba(213, 0, 0, 0.05) 219px 221px, transparent 222px 268px,
      rgba(213, 0, 0, 0.035) 269px 271px, transparent 272px);
  z-index: -1;
  animation: signal-pulse 7s ease-in-out infinite;
}

@keyframes signal-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.035); opacity: 0.85; }
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 0 14px;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: live-ping 2.2s ease-out infinite;
  flex: none;
}

@keyframes live-ping {
  0% { box-shadow: 0 0 0 0 rgba(213, 0, 0, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(213, 0, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(213, 0, 0, 0); }
}

.hero h1 {
  font-size: 42px;
  font-weight: 700;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
  line-height: 1.12;
  max-width: 15ch;
}

.hero__lede {
  max-width: 560px;
  color: var(--text-secondary);
  font-size: 17px;
  margin: 0 0 36px;
}

/* Stat tiles */

.stat-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 24px 0 32px;
}

.stat-tiles--hero {
  margin-top: 0;
}

.stat-tile {
  position: relative;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 18px 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.stat-tile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-bright), var(--accent) 60%, var(--accent-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.stat-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.stat-tile:hover::before {
  transform: scaleX(1);
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.stat-value {
  font-size: 29px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-variant-numeric: proportional-nums;
}

.stat-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Reach meters */

.meters {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.meter__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.meter__label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.meter__value {
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: proportional-nums;
}

.meter__track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(213, 0, 0, 0.08);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.meter__fill {
  position: relative;
  height: 100%;
  border-radius: 999px;
  width: 0;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.meter__fill::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 55%);
}

.meter__note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

.section-intro {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0 0 20px;
  max-width: 640px;
}

.population-note {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0 0 32px;
}

.subheading {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0 0 12px;
}

/* Ad format cards */

.format-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.format-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.format-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.format-card__title {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 14px;
  font-family: var(--font-body);
}

.format-card__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
}

.format-card__row + .format-card__row {
  border-top: 1px solid var(--border);
}

.format-card__row-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.format-card__row-value {
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: proportional-nums;
}

.format-card__row-value--accent {
  color: var(--accent);
}

/* Channel sections */

.channel {
  padding: 40px 24px;
  border-top: 1px solid var(--border);
}

.channel__header h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  margin: 0 0 4px;
}

.channel__dot {
  position: relative;
  display: inline-block;
  width: 5px;
  height: 15px;
  border-radius: 2px;
  background: var(--accent);
  margin: 0 6px;
}

.channel__dot::before,
.channel__dot::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 5px;
  border-radius: 2px;
  background: var(--accent);
}

.channel__dot::before {
  left: -9px;
  height: 9px;
  opacity: 0.55;
}

.channel__dot::after {
  left: 9px;
  height: 21px;
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.chart-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px 8px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease;
}

.chart-card:hover {
  box-shadow: var(--shadow-md);
}

.chart-card--wide {
  max-width: 460px;
}

.chart-card h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0 0 8px;
}

.chart-frame {
  position: relative;
}

.chart-frame svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

/* Chart internals */

.grid-line {
  stroke: var(--grid-line);
  stroke-width: 1;
}

.axis-label {
  fill: var(--text-muted);
  font-size: 10px;
}

.axis-label--x {
  text-anchor: middle;
}

.end-label {
  fill: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
}

.bar-label, .bar-value {
  fill: var(--text-secondary);
  font-size: 12px;
}

.bar-value {
  fill: var(--text-primary);
  font-weight: 600;
}

.bar-mark {
  transition: opacity 0.1s ease;
}

.bar-mark:hover {
  opacity: 0.85;
  cursor: pointer;
}

.crosshair {
  stroke: var(--baseline);
  stroke-width: 1;
  pointer-events: none;
}

.chart-tooltip {
  position: absolute;
  transform: translate(-50%, -120%);
  background: var(--text-primary);
  color: var(--surface-1);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.4;
  pointer-events: none;
  white-space: nowrap;
  z-index: 5;
}

.chart-tooltip span {
  opacity: 0.75;
}

/* CTA */

.cta {
  position: relative;
  padding: 64px 24px;
  text-align: center;
  border-top: 1px solid var(--border);
  isolation: isolate;
}

.cta::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -220px;
  width: 520px;
  height: 520px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(213, 0, 0, 0.07), transparent 70%);
  z-index: -1;
}

.cta h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.cta p {
  color: var(--text-secondary);
  margin: 0 0 24px;
}

.cta__button {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-dark));
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 13px 30px;
  border-radius: 999px;
  font-size: 14px;
  box-shadow: 0 10px 24px -8px rgba(213, 0, 0, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -8px rgba(213, 0, 0, 0.55);
}

/* Footer */

.site-footer {
  background: var(--footer-bg);
  padding: 40px 24px;
  color: var(--text-secondary);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer img {
  height: 28px;
  display: block;
}

.site-footer p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* Print */

@media print {
  @page {
    size: A4;
    margin: 1.5cm;
  }

  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body {
    font-size: 11pt;
  }

  /* No sticky chrome, no clickable-affordance styling on paper */
  .site-header {
    position: static;
    border-bottom: 2px solid var(--accent);
    background: var(--surface-1);
    backdrop-filter: none;
  }

  .site-nav {
    display: none;
  }

  /* Decorative signal rings/glows waste ink and don't render reliably on paper */
  .hero::before,
  .cta::before,
  .eyebrow::before {
    display: none;
  }

  .stat-tile,
  .chart-card,
  .format-card {
    box-shadow: none;
  }

  .wrap {
    max-width: none;
    padding: 0;
  }

  .hero {
    padding: 24px 0 12px;
  }

  .channel {
    padding: 20px 0;
  }

  /* Keep related content from splitting across a page break */
  .stat-tile,
  .chart-card,
  .format-card,
  .meter,
  .channel__header {
    break-inside: avoid;
  }

  .channel {
    break-before: page;
  }

  .channel:first-of-type {
    break-before: avoid;
  }

  .chart-card,
  .stat-tile,
  .format-card {
    background: #fff;
    border: 1px solid #ccc;
  }

  .meter__track {
    background: #f2f2f2;
    border: 1px solid #ddd;
  }

  /* A flat red block wastes ink and isn't clickable on paper */
  .cta {
    border-top: 1px solid var(--border);
  }

  .cta__button {
    background: none;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 8px 20px;
  }

  .site-footer {
    background: none;
    border-top: 1px solid var(--border);
  }

  .chart-tooltip {
    display: none !important;
  }

  a {
    text-decoration: none;
    color: inherit;
  }
}
