/* ============================================================
   Privacy Scanner Website — Stats bar styles
   Source: DESIGN_SPEC.md §7.3 + prompt-level overrides

   Loads after hero.css and ai-detection.css.

   No CSS animations here — count-up is JS-driven in hero.js
   (extended in Phase 1.4c to observe .stats-grid).

   The .sr-only utility is provided by hero.css (Phase 1.4a).
   ============================================================ */

.stats-bar {
  background: var(--bg-1);
  padding-block: var(--sp-10);
  border-block-start: 1px solid var(--border-soft);
  border-block-end: 1px solid var(--border-soft);
}

.stats-inner {
  max-width: var(--maxw-content);
  margin-inline: auto;
  padding-inline: var(--gutter-mobile);
}
@media (min-width: 600px)  { .stats-inner { padding-inline: var(--gutter-tablet); } }
@media (min-width: 1024px) { .stats-inner { padding-inline: var(--gutter-desktop); } }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);    /* mobile default */
  gap: var(--sp-5);
}
@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-6);
  }
}


/* ============================================================
   Stat — single entry
   Newspaper-sidebar feel: left-hairline rule, no card frame.
   ============================================================ */
.stat {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-3);
  padding-block: var(--sp-2);
  padding-inline-start: var(--sp-4);
  border-inline-start: 1px solid var(--border-soft);
}

/* Small accent bar above each number — anchors the rhythm */
.stat::before {
  content: "";
  display: block;
  width: var(--sp-6);
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
  margin-block-end: var(--sp-2);
}
.stat--claim::before { background: var(--risk-safe); }


/* ============================================================
   Number
   Mono font (terminal/dashboard cohesion with status-box),
   display-tier size, tabular nums so count-up keeps width.
   ============================================================ */
.stat-number {
  font-family: var(--font-mono);
  font-size: var(--fs-display);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  color: var(--text);
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}
/* Persistent zero — matches CLOUD treatment from §9 */
.stat-number--claim {
  color: var(--risk-safe);
}

@media (max-width: 768px) {
  .stat-number {
    font-size: var(--fs-h1);
  }
}


/* ============================================================
   Label
   ============================================================ */
.stat-label {
  max-width: 20ch;
  font-family: var(--font-sans);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
  line-height: var(--lh-body);
  color: var(--text-soft);
  text-wrap: balance;
}


/* ============================================================
   Reduced motion — intentionally empty.
   The count-up animation is JS-driven (hero.js) and respects
   prefers-reduced-motion at the JS layer (final values render
   immediately on intersect). No CSS-side animations to disable.
   ============================================================ */
