/* Site-specific styles layered on top of design system tokens */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--aa-surface);
  color: var(--aa-charcoal);
  font-family: var(--aa-font-sans);
}

img { max-width: 100%; display: block; }
button { font-family: var(--aa-font-sans); }

/* ---------- Accessibility: skip link + global keyboard focus ---------- */
.skip-link {
  position: absolute;
  left: 8px;
  top: -56px;
  z-index: 2000;
  background: var(--aa-charcoal);
  color: #fff;
  padding: 10px 18px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: top 140ms ease-out;
}
.skip-link:focus {
  top: 8px;
  outline: 2px solid var(--aa-cyan-200);
  outline-offset: 2px;
}
/* Visible focus ring for keyboard users on every interactive element that
   doesn't already define its own :focus-visible style. */
a:focus-visible,
button:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--aa-cyan-700);
  outline-offset: 2px;
  border-radius: 2px;
}
main:focus { outline: none; }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--aa-font-sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  padding: 14px 22px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 150ms ease-out, color 150ms ease-out, border-color 150ms ease-out;
  border-radius: 0;
}
.btn--primary { background: var(--aa-cyan-700); color: #fff; }
.btn--primary:hover { background: var(--aa-cyan-800); }
.btn--primary:active { background: var(--aa-cyan-800); }

.btn--ghost {
  background: transparent;
  color: var(--aa-charcoal);
  border: 1px solid var(--aa-charcoal);
}
.btn--ghost:hover { background: rgba(26,26,46,0.04); }

.btn--ghost-light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
}
.btn--ghost-light:hover { background: rgba(255,255,255,0.08); border-color: #fff; }

.btn--sm { padding: 10px 16px; font-size: 13px; }

/* ---------- Section structure ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; width: 100%; }
.container--wide { max-width: 1360px; }

.section { padding: 96px 0; border-bottom: 1px solid var(--aa-rule); }
.section--tight { padding: 64px 0; }
.section--off { background: var(--aa-surface-off); }
.section--dark { background: var(--aa-charcoal); color: #fff; border-bottom: 0; }
.section--dark .aa-eyebrow { color: var(--aa-cyan-200); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }

/* ---------- Eyebrow + section title patterns ---------- */
.section-head { margin-bottom: 56px; }
.section-head__eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--aa-cyan-700);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-head__eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--aa-cyan);
}
.section-head h2 {
  font-family: var(--aa-font-display);
  font-weight: 700;
  font-size: clamp(36px, 4.6vw, 56px);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
  color: var(--aa-charcoal);
  margin: 0;
  text-wrap: balance;
}

/* ---------- Top nav ---------- */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--aa-rule);
  height: 72px;
}
.topnav__inner {
  display: flex; align-items: center; gap: 32px;
  height: 100%;
}
.topnav__logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.topnav__logo img { height: 52px; width: auto; }
/* Logo load animation: classic A mark -> A inside the football.
   The wordmark pixels are identical in both images, so only the mark region morphs. */
.logo-anim { position: relative; display: block; }
.logo-anim__wordmark,
.logo-anim__classic { position: absolute; top: 0; left: 0; }
.logo-anim__wordmark { -webkit-clip-path: inset(77% 0 0 0); clip-path: inset(77% 0 0 0); }
.logo-anim__ball { animation: logo-ball-in 1.8s ease-out 0.7s backwards; }
.logo-anim__classic {
  -webkit-clip-path: inset(0 0 23% 0);
  clip-path: inset(0 0 23% 0);
  transform-origin: 50% 37%;
  animation: logo-classic-out 2.2s ease-in-out 0.7s forwards;
}
@keyframes logo-ball-in { from { opacity: 0; } }
@keyframes logo-classic-out { to { opacity: 0; transform: scale(0.78); } }
@keyframes logo-classic-fade { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  /* tokens.css kills all animation under reduced motion with `* { animation:
     none !important }`. Opacity-only fades carry no vestibular motion, so the
     logo keeps a gentle crossfade: !important on a class selector outranks the
     universal kill. The scale is dropped (logo-classic-fade animates opacity
     only), so nothing moves. */
  .logo-anim__ball { animation: logo-ball-in 1.8s ease-out 0.7s backwards !important; }
  .logo-anim__classic { animation: logo-classic-fade 2.2s ease-in-out 0.7s forwards !important; }
}
.topnav__list { display: flex; gap: 18px; flex: 1; align-items: center; }
.topnav__link {
  font-size: 14px; font-weight: 500;
  color: var(--aa-steel-700);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 150ms ease-out, border-color 150ms ease-out;
  cursor: pointer;
  background: transparent; border-top:0; border-left:0; border-right:0;
  font-family: var(--aa-font-sans);
}
.topnav__link:hover { color: var(--aa-charcoal); }
.topnav__link.is-active { color: var(--aa-charcoal); border-bottom-color: var(--aa-cyan); }

/* "Tax" dropdown — opens on hover and on keyboard focus */
.topnav__item { position: relative; display: flex; align-items: center; }
.topnav__link--menu {
  background: transparent; cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px;
  font-family: inherit; line-height: 1.4;
  padding: 0 0 4px;
  border: 0; border-bottom: 2px solid transparent;
}
.topnav__link--menu svg { transition: transform 150ms ease-out; }
.topnav__item:hover .topnav__link--menu svg,
.topnav__item.is-open .topnav__link--menu svg,
.topnav__item:focus-within .topnav__link--menu svg { transform: rotate(180deg); }
.topnav__dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  min-width: 200px; padding: 6px 0;
  background: #fff; border: 1px solid var(--aa-rule);
  box-shadow: 0 14px 40px rgba(10, 12, 20, 0.14);
  opacity: 0; visibility: hidden; translate: 0 6px;
  transition: opacity 140ms ease-out, translate 140ms ease-out, visibility 140ms;
  z-index: 80;
}
.topnav__item:hover .topnav__dropdown,
.topnav__item.is-open .topnav__dropdown,
.topnav__item:focus-within .topnav__dropdown { opacity: 1; visibility: visible; translate: 0 0; }
.topnav__dropdown-link {
  display: block; padding: 10px 18px;
  font-size: 14px; font-weight: 500; color: var(--aa-steel-700);
  text-decoration: none; white-space: nowrap;
}
.topnav__dropdown-link:hover { color: var(--aa-charcoal); background: var(--aa-surface-off); }
.topnav__dropdown-link.is-active { color: var(--aa-charcoal); box-shadow: inset 3px 0 0 var(--aa-cyan); }
.topnav__right { display: flex; gap: 10px; align-items: center; }
.topnav__search {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 0; background: transparent;
  color: var(--aa-steel-700); cursor: pointer; border-radius: 6px;
  transition: color 150ms ease-out, background 150ms ease-out;
}
.topnav__search:hover { color: var(--aa-charcoal); background: var(--aa-surface-off); }
.topnav__drawer-search {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 13px 16px; margin-bottom: 10px;
  border: 1px solid var(--aa-rule); background: var(--aa-surface-off);
  color: var(--aa-steel-700); font-size: 15px; font-family: var(--aa-font-sans);
  cursor: pointer; text-align: left;
}
.topnav__drawer-search:hover { color: var(--aa-charcoal); }
.topnav__client {
  font-size: 13px; color: var(--aa-steel-700); text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.topnav__client:hover { color: var(--aa-charcoal); }

/* Sub-bar (registers / regulator strip) */
.subbar {
  background: var(--aa-charcoal);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}
.subbar__inner {
  display: flex; justify-content: space-between; align-items: center;
  height: 36px;
  gap: 32px;
}
.subbar__left, .subbar__right { display: flex; gap: 24px; align-items: center; }
.subbar__left .dot { width: 6px; height: 6px; background: var(--aa-cyan); display: inline-block; border-radius: 999px; margin-right: 10px; }
.subbar__right span { color: rgba(255,255,255,0.65); }

/* ---------- Eyebrow utilities ---------- */
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--aa-cyan-700);
}
.eyebrow--steel { color: var(--aa-steel); }
.eyebrow--charcoal { color: var(--aa-charcoal); }
.eyebrow--cyan-light { color: var(--aa-cyan-200); }

/* ---------- Misc ---------- */
.divider-thick { border-top: 2px solid var(--aa-charcoal); padding-top: 20px; }
.kicker-rule { border-top: 2px solid var(--aa-cyan); padding-top: 20px; }

.muted { color: var(--aa-steel-700); }
.mono { font-family: var(--aa-font-mono); font-variant-numeric: tabular-nums; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--aa-cyan-050);
  color: var(--aa-cyan-700);
  border: 1px solid var(--aa-cyan-100);
}
.pill--charcoal { background: rgba(26,26,46,0.06); color: var(--aa-charcoal); border-color: rgba(26,26,46,0.1); }
.pill--positive { background: rgba(31,122,90,0.08); color: var(--aa-positive); border-color: rgba(31,122,90,0.18); }
.pill--caution  { background: rgba(138,109,31,0.08); color: var(--aa-caution); border-color: rgba(138,109,31,0.18); }
.pill--negative { background: rgba(161,51,27,0.08); color: var(--aa-negative); border-color: rgba(161,51,27,0.18); }

/* ---------- Form ---------- */
.field { display: block; }
.field__label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--aa-steel);
  font-weight: 600;
  margin-bottom: 6px;
}
.field__input, .field__textarea, .field__select {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--aa-font-sans);
  font-size: 14px;
  border: 1px solid var(--aa-steel-200);
  border-radius: 2px;
  background: #fff;
  color: var(--aa-charcoal);
  transition: border-color 150ms ease-out, box-shadow 150ms ease-out;
}
.field__input:focus, .field__textarea:focus, .field__select:focus {
  outline: none;
  border-color: var(--aa-cyan-700);
  box-shadow: 0 0 0 3px var(--aa-cyan-100);
}
.field__textarea { resize: vertical; min-height: 100px; }

/* ---------- Animations ---------- */
@keyframes aa-fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes aa-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes aa-slide-down {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: none; }
}
@keyframes aa-pulse-cyan {
  0%, 100% { box-shadow: 0 6px 20px rgba(41,171,226,0.35), 0 0 0 0 rgba(41,171,226,0.5); }
  50%      { box-shadow: 0 6px 24px rgba(41,171,226,0.45), 0 0 0 10px rgba(41,171,226,0); }
}
@keyframes aa-reveal-failsafe {
  to { opacity: 1; transform: none; }
}
.fade-in { animation: aa-fade-up 250ms ease-out both; }

/* Scroll-reveal — applied to elements once they enter viewport */
.reveal {
  opacity: 0;
  /* Pure-CSS failsafe: even if the reveal script never runs (stale cache,
     JS error, blocked observer), every section forces itself visible after
     1.6s. Content can NEVER be left permanently hidden. */
  animation: aa-reveal-failsafe 0.6s ease-out 1.6s forwards;
  transform: translateY(16px);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
  will-change: auto; /* release the compositor promotion once revealed */
}

/* Smooth scroll for in-page nav */
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in:not(.aa-hero__slide), .reveal { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
  .aa-wa-fab { animation: none !important; }
  /* Hero slides keep an opacity-ONLY dissolve (no translation, no scale —
     nothing moves, content simply fades) — the same vestibular-safe
     exception the animated logo uses: class-level !important outranks the
     universal animation kill in tokens.css. */
  .aa-hero__bg { animation: aa-fade-in 900ms ease-in-out both !important; }
  .aa-hero__slide { animation: aa-fade-in 600ms ease-out both !important; transform: none !important; }
}

/* ---------- About: engagement growth strip ---------- */
/* One series, bottom-anchored columns on a shared baseline; the flex columns
   in the bars row and the labels row match, so labels sit under their bars. */
.aa-growth { margin: 4px 0 48px; }
.aa-growth__bars {
  display: flex; align-items: flex-end; gap: 8px;
  border-bottom: 1px solid var(--aa-rule-strong);
}
.aa-growth__col { flex: 1; display: flex; justify-content: center; }
.aa-growth__bar {
  width: 22px;
  background: var(--aa-cyan-700);
  border-radius: 3px 3px 0 0;
}
.aa-growth__labels { display: flex; gap: 8px; margin-top: 8px; }
.aa-growth__lab { flex: 1; text-align: center; }
@media (max-width: 560px) {
  .aa-growth__bar { width: 12px; }
  .aa-growth__val { display: none; } /* values stay in the milestone cards */
}
.aa-traj-grid { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 24px; row-gap: 40px; }
@media (max-width: 900px) { .aa-traj-grid { grid-template-columns: repeat(2, 1fr); } }
.topnav__burger {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  color: var(--aa-charcoal);
}
.topnav__burger svg { display: block; }

.topnav__drawer {
  position: fixed;
  inset: 0;
  background: rgba(26,26,46,0.55);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  /* visibility (not just opacity) removes the closed drawer from the keyboard
     tab order and the accessibility tree — it holds 16 focusable elements that
     must not be reachable on every page. Delay keeps the close fade visible. */
  visibility: hidden;
  transition: opacity 200ms ease-out, visibility 0s linear 200ms;
}
.topnav__drawer.is-open { opacity: 1; pointer-events: auto; visibility: visible; transition: opacity 200ms ease-out; }

.topnav__drawer-panel {
  position: absolute;
  top: 0; right: 0;
  height: 100%;
  width: min(86vw, 360px);
  background: #fff;
  padding: 80px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateX(100%);
  transition: transform 260ms cubic-bezier(0.22, 0.61, 0.36, 1);
  box-shadow: -12px 0 32px rgba(0,0,0,0.12);
  overflow-y: auto;
}
.topnav__drawer.is-open .topnav__drawer-panel { transform: translateX(0); }

.topnav__drawer-link {
  font-family: var(--aa-font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--aa-charcoal);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--aa-rule);
  text-align: left;
  padding: 18px 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 150ms ease-out, padding-left 200ms ease-out;
}
.topnav__drawer-link:hover { color: var(--aa-cyan); padding-left: 8px; }
.topnav__drawer-link.is-active { color: var(--aa-cyan); }
.topnav__drawer-link .mono {
  font-family: var(--aa-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--aa-steel);
}

.topnav__drawer-close {
  position: absolute;
  top: 20px; right: 20px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
  color: var(--aa-charcoal);
}

.topnav__drawer-cta {
  margin-top: 24px;
  display: flex; flex-direction: column; gap: 12px;
}

.topnav__drawer-meta {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--aa-rule);
  font-size: 12px;
  color: var(--aa-steel-700);
  display: flex; flex-direction: column; gap: 6px;
}

/* Lock body scroll when drawer is open */
body.no-scroll { overflow: hidden; }

/* ---------- Floating WhatsApp FAB ---------- */
.aa-wa-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 70;
  box-shadow: 0 6px 20px rgba(37,211,102,0.35);
  animation: aa-pulse-cyan 2.6s ease-in-out infinite;
  transition: transform 200ms ease-out, box-shadow 200ms ease-out;
}
.aa-wa-fab:hover { transform: translateY(-2px) scale(1.04); }
.aa-wa-fab:focus-visible { outline: 3px solid var(--aa-cyan); outline-offset: 3px; }
.aa-wa-fab svg { width: 28px; height: 28px; }
.aa-wa-fab__label {
  position: absolute;
  right: 68px;
  background: var(--aa-charcoal);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.05em;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
  transition: opacity 200ms ease-out, transform 200ms ease-out;
}
.aa-wa-fab:hover .aa-wa-fab__label { opacity: 1; transform: translateX(0); }

/* Recolor pulse to match WA green */
@keyframes aa-wa-pulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(37,211,102,0.35), 0 0 0 0 rgba(37,211,102,0.5); }
  50%      { box-shadow: 0 6px 24px rgba(37,211,102,0.45), 0 0 0 12px rgba(37,211,102,0); }
}
.aa-wa-fab { animation-name: aa-wa-pulse; }

/* ---------- Responsive breakpoints ---------- */

/* Progressive nav degradation — the menu LINKS are the last thing to go.
   Zoomed browsers on scaled displays can drop the effective viewport far below
   the nominal screen width (e.g. full-HD @ 150% scaling + 150% zoom ≈ 853px),
   so each tier sheds chrome instead of hiding the navigation:
   ≤1120px tighten · ≤880px drop the CTA button · ≤760px burger. */
@media (max-width: 1120px) {
  .topnav__inner { gap: 20px; }
  .topnav__list { gap: 13px; }
  .topnav__link { font-size: 13px; }
  .topnav__right .btn--sm { padding: 9px 12px; font-size: 12px; }
}
@media (max-width: 940px) {
  /* 881-940px: the CTA is still visible, so squeeze gaps — the 9-link row's
     min-content otherwise overflows the container by a few px around 900px. */
  .topnav__inner { gap: 14px; }
  .topnav__list { gap: 9px; }
}
@media (max-width: 880px) {
  .topnav__right .btn { display: none; } /* CTA lives in the hero, drawer & FAB */
  .topnav__list { gap: 11px; }
  .topnav__link { font-size: 12.5px; }
}
/* Below 800px the bar WRAPS (rules live after the tablet block, which sets a
   fixed height that must be overridden) — links are never hidden on desktop. */

/* Tablet down */
@media (max-width: 960px) {
  .container { padding: 0 24px; }
  .section { padding: 72px 0; }

  .topnav { height: 64px; }
  .topnav__logo img { height: 44px; }

  .subbar { display: none; }

  .section-head { margin-bottom: 36px; }
  .section-head h2 { font-size: clamp(28px, 5vw, 40px); }

  .statline__inner { grid-template-columns: 1fr 1fr !important; }

  .aa-wa-fab { right: 16px; bottom: 16px; }
  .aa-wa-fab__label { display: none; }
}

/* Wrap zone (601–800px — e.g. 175–200% browser zoom on scaled displays):
   the nav links WRAP onto their own centred line under the logo instead of
   hiding. Navigation stays visible at EVERY desktop zoom level. */
@media (max-width: 800px) {
  .topnav { height: auto; }
  .topnav__inner { flex-wrap: wrap; row-gap: 2px; padding-top: 10px; padding-bottom: 10px; }
  .topnav__list { order: 3; flex-basis: 100%; flex-wrap: wrap; justify-content: center; gap: 4px 14px; }
  .topnav__link { font-size: 12.5px; }
  .topnav__dropdown { left: 0; transform: none; } /* keep the Tax menu on-screen when wrapped */
}

/* True phones: burger + drawer (every page listed individually) */
@media (max-width: 600px) {
  .topnav { height: 64px; }
  .topnav__inner { flex-wrap: nowrap; padding-top: 0; padding-bottom: 0; }
  .topnav__list { display: none; }
  .topnav__burger { display: inline-flex; }
}

/* Phone */
@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .section { padding: 56px 0; }

  .btn { padding: 12px 18px; font-size: 13px; }
  .btn--sm { padding: 9px 14px; font-size: 12px; }

  .statline__inner { grid-template-columns: 1fr !important; }
  .statline__cell { padding: 22px 20px; }
  .statline__num { font-size: 36px; }

  .section-head h2 { font-size: clamp(24px, 6vw, 36px); }
}

/* Generic responsive util: any explicit 2+ column grid stacks on phone */
@media (max-width: 720px) {
  .aa-stack-sm { grid-template-columns: 1fr !important; gap: 24px !important; }
  .aa-hide-sm { display: none !important; }

  /* Auto-stack EVERY inline-styled grid into a single column on phones.
     React renders style props as the HTML style attribute, so this substring
     selector catches every grid — equal columns (1fr 1fr, repeat(3, 1fr)) AND
     asymmetric/custom ones (1fr auto, 80px 1.2fr 2fr 1fr, 48px 1.1fr 2fr 24px)
     that previously stayed multi-column and overlapped. */
  main [style*="grid-template-columns"],
  [role="dialog"] [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  /* When grids stack, children inherit min-width:auto which can push past parent.
     Force min-width:0 on children of any stacked grid so they shrink to fit. */
  main [style*="grid-template-columns"] > *,
  [role="dialog"] [style*="grid-template-columns"] > * { min-width: 0; }
  /* The statline strip uses 1px hairline gaps over a rule-grey background —
     the generic 24px stacking gap turns those hairlines into thick grey bands. */
  main .statline__inner { gap: 1px !important; }
  /* Prevent any horizontal page scroll on mobile */
  html, body { overflow-x: hidden; }

  /* Wide data tables: scroll horizontally instead of being clipped off-screen.
     (The page has overflow-x:hidden, so without this the right-hand columns are
     silently cut off on phones.) */
  main table.aa-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Comfortable touch targets: grow small inline buttons (insights filters,
     contact-wizard options, etc.) to a ~42px tap height — but NOT the hero
     carousel dots, which are deliberate 4px hairline indicators. */
  main button:not(.aa-hero__dot),
  [role="dialog"] button { min-height: 42px; }
}

/* Tablet: 4-cols become 2-cols; 5-col process strips become 3-cols
   (at 721-960px five columns squeeze to ~86px of unreadable text). */
@media (min-width: 721px) and (max-width: 960px) {
  main [style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  main [style*="grid-template-columns: repeat(5, 1fr)"] {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* ---------- Density modifier ---------- */
body[data-density="compact"] .section { padding: 64px 0; }
body[data-density="compact"] .section-head { margin-bottom: 36px; }

/* ---------- Generic image hero (About, etc.) ---------- */
.aa-hero-image { background: var(--aa-charcoal); color: #fff; }
.aa-hero-image__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.aa-hero-image__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,26,46,0.62) 0%, rgba(26,26,46,0.82) 100%);
}

/* ---------- Home hero ---------- */
.aa-hero__container { padding: 120px 32px 0; position: relative; z-index: 2; }
.aa-hero__title { font-size: clamp(52px, 7.6vw, 104px); }

/* Slider — keep slide content area a steady min-height so auto-advance
   doesn't cause page-jump as slides switch. */
.aa-hero__slide { min-height: 420px; display: flex; flex-direction: column; justify-content: center; }
.aa-hero__slide:focus-visible { box-shadow: 0 0 0 2px var(--aa-cyan); border-radius: 2px; }

/* Full-bleed slide background image with a charcoal overlay so the
   centered text stays readable. Two layers: .aa-hero__bg-under holds the
   outgoing image static while the keyed .aa-hero__bg fades in over it —
   a true image-to-image crossfade with no flash of the section behind. */
.aa-hero__bg,
.aa-hero__bg-under {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.aa-hero__bg { animation: aa-fade-in 900ms ease-in-out both; }
.aa-hero__bg::after,
.aa-hero__bg-under::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,26,46,0.72) 0%, rgba(26,26,46,0.82) 100%);
}

/* When hero has a background image, the dots and chevron arrows need
   contrast against the dark overlay. */
.aa-hero--bg .aa-hero__dot { background: rgba(255,255,255,0.28); }
.aa-hero--bg .aa-hero__dot:hover { background: rgba(255,255,255,0.5); }
.aa-hero--bg .aa-hero__dot.is-active { background: var(--aa-cyan); }
.aa-hero--bg .aa-hero__arrow {
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.18);
}
.aa-hero--bg .aa-hero__arrow:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.6);
  background: rgba(0,0,0,0.35);
}

/* Prev / Next arrows */
.aa-hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--aa-rule);
  border-radius: 0;
  color: var(--aa-steel);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: color 150ms ease-out, border-color 150ms ease-out, background 150ms ease-out;
}
.aa-hero__arrow:hover { color: var(--aa-charcoal); border-color: var(--aa-charcoal); background: var(--aa-surface-off); }
.aa-hero__arrow:focus-visible { outline: 2px solid var(--aa-cyan); outline-offset: 2px; }
.aa-hero__arrow--prev { left: 24px; }
.aa-hero__arrow--next { right: 24px; }

/* Dot indicators */
.aa-hero__dots {
  margin-top: 36px;
  display: flex; gap: 10px; justify-content: center; align-items: center;
}
.aa-hero__dot {
  width: 28px; height: 4px;
  background: var(--aa-rule);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background 150ms ease-out, width 200ms ease-out;
}
.aa-hero__dot:hover { background: var(--aa-steel-300); }
.aa-hero__dot.is-active { background: var(--aa-cyan); width: 48px; }
.aa-hero__dot:focus-visible { outline: 2px solid var(--aa-cyan); outline-offset: 3px; }

@media (max-width: 960px) {
  .aa-hero__container { padding: 72px 24px 0; }
  .aa-hero__title { font-size: clamp(40px, 8vw, 72px); }
  .aa-hero__slide { min-height: 360px; }
}
@media (max-width: 600px) {
  .aa-hero__container { padding: 48px 20px 0; }
  .aa-hero__title { font-size: clamp(34px, 11vw, 56px); }
  .aa-hero__slide { min-height: 380px; }
  .aa-hero__dots { margin-top: 28px; }
  .aa-hero__dot { width: 22px; }
  .aa-hero__dot.is-active { width: 36px; }
}

/* ---------- Hero stat cell ---------- */
.aa-hero-stat {
  padding: 32px 24px;
  text-align: left;
  border-right: 1px solid var(--aa-rule);
}
.aa-hero-stat.is-last { border-right: none; }
@media (max-width: 720px) {
  .aa-hero-stat { border-right: none; border-bottom: 1px solid var(--aa-rule); padding: 22px 0; text-align: center; }
  .aa-hero-stat.is-last { border-bottom: none; }
}

/* ---------- Print-style numerical grid (Stat strip) ---------- */
.statline { display: grid; gap: 1px; background: var(--aa-rule); border: 1px solid var(--aa-rule); }
.statline__inner { display: grid; gap: 1px; grid-template-columns: repeat(4, 1fr); }
.statline__cell { background: #fff; padding: 28px 24px; }
.statline__num {
  font-family: var(--aa-font-display);
  font-weight: 700;
  font-size: 44px;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--aa-charcoal);
}
.statline__num small { color: var(--aa-cyan-700); margin-left: 2px; } /* AA on white */
.statline__lbl {
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--aa-steel);
}

/* ---------- E-invoicing deadline ticker (fixed top marquee) ---------- */
.aa-marquee {
  position: fixed; left: 0; right: 0; top: 0; z-index: 45;
  height: 46px; display: flex; align-items: center; overflow: hidden;
  background: var(--aa-charcoal); color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  cursor: pointer;
}
.aa-marquee:focus-visible { outline: 2px solid var(--aa-cyan); outline-offset: -2px; }
/* !important overrides the site-wide "* { animation: none }" reduced-motion reset
   in tokens.css — the ticker is an intentional exception (dismiss × = WCAG hide). */
.aa-marquee__track { display: flex; flex-wrap: nowrap; will-change: transform; animation: aa-marquee 58s linear infinite !important; }
.aa-marquee:hover .aa-marquee__track,
.aa-marquee:focus-within .aa-marquee__track { animation-play-state: paused !important; }
@keyframes aa-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.aa-marquee__group { display: flex; align-items: center; gap: 36px; padding-right: 36px; padding-left: 36px; white-space: nowrap; }
.aa-marquee__seg { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: 0.02em; color: rgba(255,255,255,0.9); }
.aa-marquee__pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--aa-charcoal); background: var(--aa-cyan); padding: 3px 9px; border-radius: 2px;
}
.aa-marquee__num { color: var(--aa-cyan); font-weight: 700; font-family: var(--aa-font-mono, ui-monospace, monospace); }
.aa-marquee__cta { color: var(--aa-cyan); font-weight: 700; }
.aa-marquee__dot { color: rgba(255,255,255,0.3); }
.aa-marquee__close {
  position: absolute; right: 0; top: 0; bottom: 0; width: 52px; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(90deg, rgba(26,26,46,0), var(--aa-charcoal) 45%);
  border: 0; color: rgba(255,255,255,0.7); font-size: 22px; line-height: 1; cursor: pointer;
}
.aa-marquee__close:hover { color: #fff; }

/* Make room at the top for the fixed bar; the sticky header sits just below it */
/* The strip's space is reserved pre-paint by an inline <head> script that sets
   .aa-has-marquee on <html> (no layout shift when React mounts the marquee);
   the legacy body.has-marquee hooks are kept for the React lifecycle. */
html.aa-has-marquee body, body.has-marquee { padding-top: 46px; }
html.aa-has-marquee .topnav, body.has-marquee .topnav { top: 46px; }

/* The ticker keeps scrolling even under prefers-reduced-motion: the dismiss (×)
   button is the WCAG 2.2.2 "hide" control, and hover/focus pauses it. */
@media (max-width: 720px) {
  .aa-marquee__seg { font-size: 12px; }
  .aa-marquee__group { gap: 28px; padding-right: 28px; padding-left: 28px; }
}
