/*
 * Rectiva Portico — public site.
 *
 * Palette and type scale are taken from
 * docs/source-briefs/brand-identity-guidelines.md so the site and the
 * product read as one thing rather than two systems sharing a name.
 *
 * NO WEBFONTS, deliberately. The guidelines name Inter and Source Serif 4,
 * both of which are normally loaded from Google's CDN — and a company
 * selling data-protection compliance should not make every visitor's
 * browser announce itself to a third party before the page has rendered.
 * German courts have found exactly that transfer to be a GDPR problem. The
 * privacy notice can therefore say "no third-party requests, no cookies, no
 * analytics" and have it be literally true, which is worth more here than
 * matching the product's typeface to the pixel. Self-hosting the two faces
 * would restore the exact type and keep the claim — that is the upgrade
 * path, not a CDN link.
 */

:root {
  --primary: #1b4b54;
  --primary-deep: #143a41;
  --cta: #d6a428;
  --surface: #f7f6f2;
  --card: #fdfcfa;
  --ink: #1c1c1a;
  --ink-2: #5f5e5a;
  --ok: #4c7a5e;
  --rule: #b4b2a9;
  --rule-soft: #e3e1da;

  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --measure: 34rem;
  --page: 68rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #6fb3ad;
    --primary-deep: #0f1f22;
    --cta: #e0b54a;
    --surface: #121211;
    --card: #1c1b19;
    --ink: #f2f0ea;
    --ink-2: #a8a6a0;
    --ok: #7fb08f;
    --rule: #3a3935;
    --rule-soft: #2a2926;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.prose {
  max-width: var(--measure);
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.2;
  text-wrap: balance;
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  letter-spacing: -0.015em;
}

h2 {
  font-size: clamp(1.4rem, 1.2rem + 0.9vw, 1.9rem);
}

h3 {
  font-size: 1.0625rem;
  font-family: var(--sans);
  font-weight: 600;
}

p {
  margin: 0;
}

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

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.lede {
  font-size: 1.125rem;
  color: var(--ink-2);
}

.small {
  font-size: 0.875rem;
  color: var(--ink-2);
}

/* ── Header ─────────────────────────────────────────────────────────── */

.site-head {
  border-bottom: 1px solid var(--rule-soft);
  background: var(--card);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.25rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: inherit;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.375rem;
  line-height: 1.1;
  white-space: nowrap;
}

.wordmark .r {
  color: var(--primary);
  font-weight: 600;
}

.wordmark .p {
  color: var(--ink-2);
  font-weight: 400;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-sub {
  font-size: 0.6875rem;
  color: var(--ink-2);
  letter-spacing: 0.03em;
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/*
 * :not(.btn) matters. `.site-nav a` has higher specificity than `.btn-primary`
 * (one class + one type beats one class), so without it the nav rule wins and
 * the "Sign in" button renders in muted grey on gold — around 2:1 against the
 * CTA colour. Caught in a screenshot, not by reading the file: the button
 * still looked like a button, just a washed-out one.
 */
.site-nav a:not(.btn) {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.9375rem;
}

.site-nav a:not(.btn):hover {
  color: var(--ink);
}

/* ── Buttons ────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
}

/* Gold is reserved platform-wide for the single primary action. */
.btn-primary {
  background: var(--cta);
  color: #1c1c1a;
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-ghost {
  border-color: var(--rule);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-band-ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: #f4f2ec;
  background: rgba(255, 255, 255, 0.07);
}

.btn-band-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.65);
}

/* ── Sections ───────────────────────────────────────────────────────── */

section {
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem);
}

.hero {
  padding-block: clamp(3.5rem, 2rem + 7vw, 7rem);
}

.hero-inner {
  display: grid;
  gap: 1.75rem;
  max-width: 46rem;
}

.hero .tagline {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--primary);
}

.cta-row {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
  align-items: center;
}

.band {
  background: var(--primary-deep);
  color: #f4f2ec;
}

.band h2,
.band h3 {
  color: #ffffff;
}

.band .lede,
.band .small,
.band p {
  color: #cfd8d7;
}

@media (prefers-color-scheme: dark) {
  .band {
    border-block: 1px solid var(--rule);
  }
}

.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--rule-soft);
  border-radius: 12px;
  padding: 1.5rem;
  display: grid;
  gap: 0.5rem;
  align-content: start;
}

.band .card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
}

.section-head {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2.25rem;
  max-width: var(--measure);
}

/* ── Figures ────────────────────────────────────────────────────────── */

.figures {
  display: grid;
  gap: 1.5rem 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}

.figure .n {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 1.8rem + 1.8vw, 3rem);
  line-height: 1;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.band .figure .n {
  color: var(--cta);
}

.figure .l {
  font-size: 0.9375rem;
  margin-top: 0.4rem;
}

/* ── Lists ──────────────────────────────────────────────────────────── */

ul.ticks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

ul.ticks li {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 0.5rem;
  align-items: start;
}

ul.ticks li::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--ok);
  margin-top: 0.55rem;
}

ul.plain {
  padding-left: 1.1rem;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

/* ── Prose pages ────────────────────────────────────────────────────── */

.doc {
  display: grid;
  gap: 1.5rem;
  max-width: var(--measure);
}

.doc h2 {
  margin-top: 1.5rem;
}

.doc h3 {
  margin-top: 0.75rem;
}

.doc p,
.doc li {
  color: var(--ink-2);
}

.doc strong {
  color: var(--ink);
  font-weight: 600;
}

.note {
  border-left: 3px solid var(--cta);
  padding: 0.875rem 1.125rem;
  background: var(--card);
  border-radius: 0 8px 8px 0;
}

/* ── Footer ─────────────────────────────────────────────────────────── */

.site-foot {
  border-top: 1px solid var(--rule-soft);
  background: var(--card);
  padding-block: 2.5rem;
}

.foot-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.foot-grid h3 {
  font-size: 0.75rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.foot-grid a {
  color: var(--ink-2);
  text-decoration: none;
  display: block;
  font-size: 0.9375rem;
}

.foot-grid a:hover {
  color: var(--primary);
}

.legal {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule-soft);
  font-size: 0.8125rem;
  color: var(--ink-2);
  display: grid;
  gap: 0.35rem;
}

/* ── Registered office labels ───────────────────────────────────────── */

.reg-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
}

.reg-label-gap {
  margin-top: 1.75rem;
}

/* Wide content must scroll in its own container, never the page body. */
.scroll-x {
  overflow-x: auto;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--cta);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Pricing ────────────────────────────────────────────────────────── */
/*
 * Pure CSS billing-cadence toggle: three radio inputs + :has(), no
 * <script> anywhere -- this site's CSP is script-src 'none', a
 * deliberate infrastructure-level guarantee (see marketing/vercel.json),
 * not just the footer's "no third-party" claim. :has() reaches from the
 * checked radio, up past .billing-toggle, back down into .pricing-grid --
 * a plain sibling combinator can't skip a level like that, which is the
 * one thing here that isn't achievable with :checked ~ alone.
 */

.billing-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.billing-toggle {
  position: relative;
  display: inline-flex;
  width: min(26rem, 100%);
  background: var(--rule-soft);
  border-radius: 999px;
  padding: 0.35rem;
  margin-bottom: 2.5rem;
}

.billing-opt {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 0.65rem 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-2);
  text-align: center;
  cursor: pointer;
  border-radius: 999px;
  transition: color 0.25s ease;
}

#billing-monthly:focus-visible ~ label[for="billing-monthly"],
#billing-quarterly:focus-visible ~ label[for="billing-quarterly"],
#billing-annual:focus-visible ~ label[for="billing-annual"] {
  outline: 2px solid var(--cta);
  outline-offset: 3px;
}

#billing-monthly:checked ~ label[for="billing-monthly"],
#billing-quarterly:checked ~ label[for="billing-quarterly"],
#billing-annual:checked ~ label[for="billing-annual"] {
  color: var(--ink);
}

.billing-pill {
  position: absolute;
  z-index: 0;
  top: 0.35rem;
  bottom: 0.35rem;
  left: 0.35rem;
  width: calc((100% - 0.7rem) / 3);
  background: var(--cta);
  border-radius: 999px;
  transform: translateX(0%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.billing-toggle:has(#billing-quarterly:checked) .billing-pill {
  transform: translateX(100%);
}

.billing-toggle:has(#billing-annual:checked) .billing-pill {
  transform: translateX(200%);
}

/* Five-way plan tab strip. No sliding pill here (unlike .billing-toggle):
   five segments need to stay usable if they wrap to a second row on a
   narrow screen, and a percentage-based translateX pill assumes a fixed
   single-row segment count. A direct background flip on the checked
   label via the sibling combinator reflows correctly either way. */
.plan-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.plan-opt {
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--rule);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-2);
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

#plan-essentials:focus-visible ~ label[for="plan-essentials"],
#plan-growth:focus-visible ~ label[for="plan-growth"],
#plan-scale:focus-visible ~ label[for="plan-scale"],
#plan-enterprise:focus-visible ~ label[for="plan-enterprise"],
#plan-enterprise-plus:focus-visible ~ label[for="plan-enterprise-plus"] {
  outline: 2px solid var(--cta);
  outline-offset: 2px;
}

#plan-essentials:checked ~ label[for="plan-essentials"],
#plan-growth:checked ~ label[for="plan-growth"],
#plan-scale:checked ~ label[for="plan-scale"],
#plan-enterprise:checked ~ label[for="plan-enterprise"],
#plan-enterprise-plus:checked ~ label[for="plan-enterprise-plus"] {
  background: var(--cta);
  border-color: var(--cta);
  color: #1c1c1a;
}

/* Single-panel reveal: five plan cards are all written out, only the one
   matching the checked #plan-* radio is shown. Essentials is the default
   (shown with no :has() needed), matching the billing-cadence pattern. */
.plan-detail {
  display: flex;
  justify-content: center;
}

/* Two/three-class selectors here, not one -- .price-card's own `display:
   flex` rule is single-class at the same specificity as a single-class
   .plan-card hide rule would be, and comes later in the file, so it
   would win the tie regardless of source-order intent (the same trap
   as the cadence-figure rules above). */
.price-card.plan-card {
  display: none;
  width: 100%;
  max-width: 22rem;
}

.price-card.plan-card.plan-card-essentials {
  display: flex;
}

#pricing:has(#plan-growth:checked) .plan-card-essentials,
#pricing:has(#plan-scale:checked) .plan-card-essentials,
#pricing:has(#plan-enterprise:checked) .plan-card-essentials,
#pricing:has(#plan-enterprise-plus:checked) .plan-card-essentials {
  display: none;
}
#pricing:has(#plan-growth:checked) .plan-card-growth {
  display: flex;
}
#pricing:has(#plan-scale:checked) .plan-card-scale {
  display: flex;
}
#pricing:has(#plan-enterprise:checked) .plan-card-enterprise {
  display: flex;
}
#pricing:has(#plan-enterprise-plus:checked) .plan-card-enterprise-plus {
  display: flex;
}

.addons-head {
  margin-top: 3rem;
}

.addon-grid {
  align-items: stretch;
}

/* Add-on tier-aware pricing: each add-on card writes out nine price
   figures (3 cadences x standard/Enterprise/Enterprise+) and nine save
   badges. Two-class hide selectors throughout, for the same reason as
   the cadence-only rules above -- .price-figure/.price-save's own
   `display` rules are single-class at the same specificity, and a
   single-class hide rule here would be a coin flip against them. */
.price-figure.price-for-monthly-ent,
.price-figure.price-for-quarterly-ent,
.price-figure.price-for-annual-ent,
.price-figure.price-for-monthly-entplus,
.price-figure.price-for-quarterly-entplus,
.price-figure.price-for-annual-entplus,
.price-save.price-for-monthly-ent,
.price-save.price-for-quarterly-ent,
.price-save.price-for-annual-ent,
.price-save.price-for-monthly-entplus,
.price-save.price-for-quarterly-entplus,
.price-save.price-for-annual-entplus {
  display: none;
}

.tier-note-ent,
.tier-note-entplus {
  display: none;
}

/* Standard-band figures/badges are the ones already shown by the
   cadence-only rules above; suppress them on add-on cards specifically
   once Enterprise/Enterprise+ is selected, then reveal the matching
   tier-band figure for whichever cadence is checked. The extra
   .addon-card class on every selector here outranks the cadence-only
   rules' specificity, so this always wins regardless of source order. */
#pricing:has(#plan-enterprise:checked) .addon-card .price-for-monthly,
#pricing:has(#plan-enterprise:checked) .addon-card .price-for-quarterly,
#pricing:has(#plan-enterprise:checked) .addon-card .price-for-annual,
#pricing:has(#plan-enterprise-plus:checked) .addon-card .price-for-monthly,
#pricing:has(#plan-enterprise-plus:checked) .addon-card .price-for-quarterly,
#pricing:has(#plan-enterprise-plus:checked) .addon-card .price-for-annual {
  display: none;
}

#pricing:has(#plan-enterprise:checked):has(#billing-monthly:checked) .addon-card .price-for-monthly-ent,
#pricing:has(#plan-enterprise:checked):has(#billing-quarterly:checked) .addon-card .price-for-quarterly-ent,
#pricing:has(#plan-enterprise:checked):has(#billing-annual:checked) .addon-card .price-for-annual-ent {
  display: flex;
}
#pricing:has(#plan-enterprise-plus:checked):has(#billing-monthly:checked) .addon-card .price-for-monthly-entplus,
#pricing:has(#plan-enterprise-plus:checked):has(#billing-quarterly:checked) .addon-card .price-for-quarterly-entplus,
#pricing:has(#plan-enterprise-plus:checked):has(#billing-annual:checked) .addon-card .price-for-annual-entplus {
  display: flex;
}

#pricing:has(#plan-enterprise:checked) .addon-card .tier-note-ent {
  display: block;
}
#pricing:has(#plan-enterprise-plus:checked) .addon-card .tier-note-entplus {
  display: block;
}

.pricing-grid {
  align-items: stretch;
}

/* Every card writes out all three cadences' markup; CSS shows only the
   one matching the checked radio. Monthly is the default (shown with no
   :has() needed), quarterly/annual are hidden until selected.
   Two-class selectors here, not one -- .price-figure's own `display:
   flex` rule (below) is the same specificity as a single-class hide
   rule, and being later in the file would win the tie regardless of
   source order intent. */
.price-figure.price-for-quarterly,
.price-figure.price-for-annual,
.price-save.price-for-quarterly,
.price-save.price-for-annual,
p.price-for-quarterly,
p.price-for-annual {
  display: none;
}

#pricing:has(#billing-quarterly:checked) .price-for-monthly {
  display: none;
}
#pricing:has(#billing-quarterly:checked) .price-for-quarterly {
  display: flex;
}
#pricing:has(#billing-annual:checked) .price-for-monthly {
  display: none;
}
#pricing:has(#billing-annual:checked) .price-for-annual {
  display: flex;
}
/* .price-note is a <p>, not a flex figure -- block, not flex, when shown. */
#pricing:has(#billing-quarterly:checked) p.price-for-quarterly {
  display: block;
}

/* Border-width fixed at 2px at rest (not just on :hover) so the
   hover-triggered colour change never nudges layout by the 1px
   difference a width change would cost. */
.price-card {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  border-width: 2px;
  transition: border-color 0.2s ease;
}

.price-card:hover {
  border-color: var(--primary);
}

/* Full-bleed dark header band. Negative margins matching .card's own
   padding (1.5rem) bring the header flush to the inside of the card's
   border regardless of border-width -- the margin offsets from the
   content box, not the border, so this holds regardless of how thick
   .price-card's border is. */
.price-card-header {
  margin: -1.5rem -1.5rem 0.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--primary);
  border-radius: 10px 10px 0 0;
}

.price-card-header h3 {
  color: #fff;
}

.price-card-header .small {
  color: rgba(255, 255, 255, 0.72);
  margin-top: 0.2rem;
}

.price-cta-gold:hover {
  background: var(--cta);
  border-color: var(--cta);
  color: #1c1c1a;
}

.price-figure {
  display: flex;
  align-items: baseline;
  gap: 0.375rem;
}

.price-amount {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.price-suffix {
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.price-save {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 1.5rem;
}

.price-strike {
  font-size: 0.875rem;
  color: var(--ink-2);
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}

.price-save-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: #8a6a15;
  background: #fbefd3;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

@media (prefers-color-scheme: dark) {
  .price-save-badge {
    color: #1c1c1a;
    background: var(--cta);
  }
}

.price-note {
  font-style: italic;
}

.price-cta {
  margin-top: auto;
}

.pricing-footnote {
  margin-top: 1.75rem;
}

/* ── Small spacing utilities ────────────────────────────────────────── */
/* Both replace one-off inline style="margin-top:..." attributes -- this
   site's CSP (style-src 'self', no unsafe-inline) blocks inline style
   attributes just as it blocks inline scripts. */

.mt-md {
  margin-top: 1.5rem;
}

.mt-lg {
  margin-top: 2rem;
}

/* A plain <a> inside a .band section would otherwise render in
   --primary (teal) against the section's dark teal background --
   near-invisible. .band's own p/.lede/.small rule doesn't cover raw
   links, so this covers the one case (the Contact section's pricing
   link) without another inline style. */
.band a:not(.btn) {
  color: inherit;
  text-decoration: underline;
}

/* ── Rotating stats banner ──────────────────────────────────────────── */

.stats-band {
  padding-block: 2.75rem;
}

.stats-reel {
  position: relative;
  min-height: 15rem;
  overflow: hidden;
}

@media (min-width: 48rem) {
  .stats-reel {
    min-height: 10rem;
  }
}

.stat-item {
  position: absolute;
  inset: 0;
  display: grid;
  gap: 0.5rem;
  align-content: center;
  text-align: center;
  opacity: 0;
  animation: stat-fade 35s linear infinite backwards;
}

.stat-1 { animation-delay: 0s; }
.stat-2 { animation-delay: 7s; }
.stat-3 { animation-delay: 14s; }
.stat-4 { animation-delay: 21s; }
.stat-5 { animation-delay: 28s; }

.stat-n {
  font-family: var(--serif);
  font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem);
  line-height: 1.05;
  color: var(--cta);
  font-variant-numeric: tabular-nums;
}

.stat-d {
  font-size: 1.0625rem;
  color: #f4f2ec;
  max-width: 40rem;
  margin-inline: auto;
  line-height: 1.5;
}

.stat-src {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: rgba(207, 216, 215, 0.5);
  text-decoration: none;
}

.stat-src:hover {
  color: #cfd8d7;
  text-decoration: underline;
}

.stats-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.stats-dots span {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  animation: dot-active 35s linear infinite backwards;
}

.stats-dots span:nth-child(1) { animation-delay: 0s; }
.stats-dots span:nth-child(2) { animation-delay: 7s; }
.stats-dots span:nth-child(3) { animation-delay: 14s; }
.stats-dots span:nth-child(4) { animation-delay: 21s; }
.stats-dots span:nth-child(5) { animation-delay: 28s; }

@keyframes stat-fade {
  0%, 100% { opacity: 0; }
  2.857%   { opacity: 1; }
  17.143%  { opacity: 1; }
  20%      { opacity: 0; }
}

@keyframes dot-active {
  0%, 100% { background: rgba(255, 255, 255, 0.2); transform: scale(1); }
  2.857%   { background: var(--cta); transform: scale(1.5); }
  17.143%  { background: var(--cta); transform: scale(1.5); }
  20%      { background: rgba(255, 255, 255, 0.2); transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .stats-reel {
    position: static;
    min-height: 0;
    display: grid;
    gap: 2rem;
    overflow: visible;
  }

  .stat-item {
    position: static;
    opacity: 1 !important;
    text-align: left;
  }

  .stats-dots {
    display: none;
  }
}
