/* =========================================================================
   <Stats /> — "By the numbers" proof band, §between Advisors and Final CTA
   of /about. Deep Navy band. Centered header + a horizontal 4-up row of
   elevated navy stat cards (big gold numerals on top, uppercase label below),
   one gold-lit featured card, then a quiet reassurance line + ghost CTA.
   Mirrors the home page .vh-bigstat treatment, laid out horizontally. Reuses
   ab-counters.js (count-up) and ab-reveal.js (stagger). Tokens only.
   ========================================================================= */

.ab-stats {
  position: relative;
  /* a deep-navy band, a touch darker than the page bg so it reads as its own
     surface between the two navy sections it sits between */
  background: linear-gradient(180deg, #0B1B40 0%, #0A1A3F 100%);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
/* faint gold radial glows in the corners — same vocabulary as the stats glow
   on the home page, kept subtle so the cards stay the focal point */
.ab-stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(820px 460px at 12% -8%, rgba(232, 180, 0, 0.07), transparent 64%),
    radial-gradient(720px 420px at 100% 108%, rgba(232, 180, 0, 0.05), transparent 66%);
  pointer-events: none;
  z-index: 0;
}
/* gold gradient hairline along the top edge — separates this band from the
   navy Advisors section directly above it */
.ab-stats::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(232, 180, 0, 0.06) 12%,
    rgba(232, 180, 0, 0.42) 50%,
    rgba(232, 180, 0, 0.06) 88%,
    transparent 100%);
  z-index: 2;
  pointer-events: none;
}

.ab-stats__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: clamp(96px, 12vw, 140px) var(--container-pad);
}

/* ---- header ------------------------------------------------------------- */
.ab-stats__head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(48px, 6vw, 64px);
}
.ab-stats__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.ab-stats__eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--color-accent);
}
/* eyebrow hairline draws in on reveal (matches the other ab- eyebrows) */
.ab-reveal-armed .ab-stats__eyebrow::before {
  width: 0;
  transition: width 520ms var(--ease-out-soft) 220ms;
}
.ab-reveal-armed .ab-stats__eyebrow.is-visible::before { width: 28px; }

.ab-stats__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: #fff;
}
.ab-stats__sub {
  margin: 18px auto 0;
  max-width: 58ch;
  font-size: clamp(15px, 1.1vw, 16px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.66);
}

/* ---- the horizontal stat row -------------------------------------------- */
.ab-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 1.6vw, 22px);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* each metric — an elevated navy bento card lifting off the band, mirroring
   the site's signature .vh-bigstat treatment but stacked vertically. */
.ab-stat {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
  min-height: 200px;
  padding: clamp(26px, 2.6vw, 34px);
  background:
    radial-gradient(120% 150% at 0% -30%, rgba(232, 180, 0, 0.07), transparent 60%),
    linear-gradient(180deg, #163069, #0E2350);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.22);
  transition: transform 320ms var(--ease-out-soft),
              box-shadow 320ms var(--ease-out-soft),
              border-color 320ms var(--ease-out-soft);
}
/* gold hairline sweep along the top edge — brightens on hover */
.ab-stat::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 180, 0, 0.6), transparent);
  opacity: 0.45;
  transition: opacity 320ms var(--ease-out-soft);
}
.ab-stat:hover {
  transform: translateY(-6px);
  border-color: var(--color-accent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 20px 46px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(232, 180, 0, 0.18);
}
.ab-stat:hover::before { opacity: 1; }
.ab-stat:active { transform: translateY(-6px) scale(0.99); }

/* value — the dominant element: big, gold, Anybody, tabular figures so the
   count-up never reflows the card */
.ab-stat__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--color-accent);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  text-wrap: balance;
}
/* label — small uppercase caption centered under the value, divided from it by
   a short, centered gold hairline */
.ab-stat__label {
  position: relative;
  margin: 0;
  padding-top: 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(12px, 1vw, 13px);
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255, 255, 255, 0.74);
}
.ab-stat__label::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 1px;
  background: rgba(232, 180, 0, 0.4);
}

/* featured metric — the single gold-lit emphasis card (8 Weeks) */
.ab-stat--featured {
  border-color: var(--color-accent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px var(--color-accent),
    0 0 40px rgba(232, 180, 0, 0.18);
}
.ab-stat--featured::before { opacity: 1; }
.ab-stat--featured:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px var(--color-accent),
    0 0 52px rgba(232, 180, 0, 0.26),
    0 20px 46px rgba(0, 0, 0, 0.34);
}
/* no inner tile — the value reads as plain gold numerals like the others, with
   a soft glow so it still draws the eye on the gold-lit featured card */
.ab-stat--featured .ab-stat__num {
  text-shadow: 0 0 26px rgba(232, 180, 0, 0.22);
}
/* divider + label warm to gold to match the emphasis */
.ab-stat--featured .ab-stat__label {
  color: rgba(232, 180, 0, 0.92);
}
.ab-stat--featured .ab-stat__label::before {
  background: rgba(232, 180, 0, 0.6);
}

/* ---- foot: reassurance line + subordinate ghost CTA --------------------- */
.ab-stats__foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: clamp(40px, 5vw, 56px);
  text-align: center;
}
.ab-stats__note {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.6);
}
/* a tasteful ghost button — visually subordinate to the gold final-CTA button
   in the section directly below, while still giving the band its own path */
.ab-stats__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 26px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--color-accent);
  text-decoration: none;
  background: rgba(232, 180, 0, 0.04);
  border: 1px solid var(--color-accent);
  border-radius: 999px;
  cursor: pointer;
  transition: background 220ms var(--ease-out-soft),
              color 220ms var(--ease-out-soft),
              transform 220ms var(--ease-out-soft),
              box-shadow 220ms var(--ease-out-soft);
}
.ab-stats__cta:hover {
  color: var(--color-primary);
  background: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -10px rgba(232, 180, 0, 0.5);
}
.ab-stats__cta:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}
.ab-stats__cta-arrow {
  transition: transform 220ms var(--ease-out-soft);
}
.ab-stats__cta:hover .ab-stats__cta-arrow { transform: translateX(4px); }

/* ---- responsive --------------------------------------------------------- */
@media (max-width: 900px) {
  .ab-stats__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .ab-stats__inner { padding: 88px var(--container-pad); }
  .ab-stats__title { font-size: clamp(26px, 7vw, 40px); }
  .ab-stats__grid { grid-template-columns: 1fr; }
  .ab-stat { min-height: 0; }
  .ab-stats__cta { width: 100%; justify-content: center; }
}

/* ---- reduced motion: no lift, no transitions, instant + readable -------- */
@media (prefers-reduced-motion: reduce) {
  .ab-stat,
  .ab-stat::before,
  .ab-stats__cta,
  .ab-stats__cta-arrow,
  .ab-reveal-armed .ab-stats__eyebrow::before {
    transition: none;
  }
  .ab-stat:hover,
  .ab-stat:active { transform: none; }
  .ab-stats__cta:hover { transform: none; }
}
