/* Animated counter.
   Tabular figures keep every digit the same width; script.js reserves the
   width of the final number, so nothing around it moves while it counts. */

.counter {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  text-align: end;
  white-space: nowrap;
}

/* the animated digits are for the eyes; screen readers get the final value */
.counter__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Reduced motion (prefers-reduced-motion): script.js shows the final number
   straight away, without counting. */

/* demo layout */
.ct-stage { min-height: 100svh; display: grid; align-content: center; gap: 40px; max-width: 1180px; margin: 0 auto; padding: 96px 28px; }
.ct-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin: 0; }
.ct-stat { padding: 28px; border: 1px solid #2d2924; border-radius: 20px; background: #171512; }
.ct-stat dt { color: var(--muted, #9c9488); font-size: 15px; }
.ct-stat dd { margin: 14px 0 0; font: 700 clamp(48px, 6vw, 80px)/1 var(--font-display, system-ui, sans-serif); letter-spacing: -0.03em; }
.ct-replay { border: 0; background: none; color: var(--accent, #ff6a3d); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 0; }
