/* ==========================================================================
   Kingsley Accounting Group: Design System
   Tokens, reset, typography, buttons, cards, header/mega menu, footer, forms
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --midnight:   #0B1437;
  --midnight-2: #131E4D;
  --sapphire:   #2340B8;
  --azure:      #4C6FFF;
  --violet:     #6B4CE6;
  --rose:       #F0568F;
  --rose-2:     #FF6FA5;
  --blush:      #FFD9E7;
  --porcelain:  #FBF9F7;
  --paper:      #FFFFFF;

  /* Ink scale */
  --ink:     #0B1437;
  --ink-80:  rgba(11, 20, 55, .80);
  --ink-64:  rgba(11, 20, 55, .64);
  /* --ink-48 is the small-meta text color. It is only ever used as a
     foreground, so it is held at .60 alpha: .48 measured 3.2:1 on white and
     failed WCAG 1.4.3 AA (4.5:1) at the 11–13px sizes it is used at. */
  --ink-48:  rgba(11, 20, 55, .60);
  --ink-28:  rgba(11, 20, 55, .28);
  --ink-14:  rgba(11, 20, 55, .14);
  --ink-08:  rgba(11, 20, 55, .08);
  --ink-04:  rgba(11, 20, 55, .04);

  /* Signature gradients */
  --grad:        linear-gradient(120deg, #2340B8 0%, #6B4CE6 45%, #F0568F 100%);
  --grad-soft:   linear-gradient(120deg, #4C6FFF 0%, #8B6CF0 45%, #FF6FA5 100%);
  --grad-rev:    linear-gradient(300deg, #2340B8 0%, #6B4CE6 45%, #F0568F 100%);
  --grad-deep:   linear-gradient(150deg, #0B1437 0%, #1B2A66 40%, #2340B8 100%);
  --grad-line:   linear-gradient(90deg, #2340B8, #6B4CE6 45%, #F0568F);

  /* Aurora mesh, sits behind light sections so nothing is flat white */
  --aurora:
    radial-gradient(58% 48% at 12% 8%,  rgba(76, 111, 255, .14) 0%, transparent 68%),
    radial-gradient(52% 44% at 92% 22%, rgba(240, 86, 143, .13) 0%, transparent 70%),
    radial-gradient(46% 40% at 70% 96%, rgba(107, 76, 230, .10) 0%, transparent 72%);

  /* Type */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-accent:  'Space Grotesk', 'Segoe UI', sans-serif;

  --fs-eyebrow: clamp(.66rem, .62rem + .12vw, .74rem);
  --fs-sm:      clamp(.83rem, .8rem + .12vw, .89rem);
  --fs-base:    clamp(1rem, .97rem + .16vw, 1.075rem);
  --fs-lg:      clamp(1.09rem, 1.03rem + .3vw, 1.24rem);
  --fs-h6:      clamp(1.02rem, .98rem + .2vw, 1.13rem);
  --fs-h5:      clamp(1.15rem, 1.08rem + .34vw, 1.36rem);
  --fs-h4:      clamp(1.34rem, 1.2rem + .6vw, 1.74rem);
  --fs-h3:      clamp(1.6rem, 1.36rem + 1.05vw, 2.3rem);
  --fs-h2:      clamp(2rem, 1.56rem + 1.95vw, 3.35rem);
  --fs-h1:      clamp(2.5rem, 1.82rem + 3vw, 4.5rem);
  --fs-hero:    clamp(2.7rem, 1.8rem + 3.9vw, 5.15rem);

  /* Space */
  --sp-section:  clamp(5.5rem, 3.4rem + 8.2vw, 9.5rem);
  --sp-section-s:clamp(3.6rem, 2.4rem + 5vw, 6rem);
  --gutter:      clamp(1.15rem, .6rem + 2.4vw, 2.5rem);
  --container:   1240px;
  --container-w: 1400px;
  --container-n: 900px;

  /* Radii */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --r-pill: 999px;

  /* Elevation */
  --sh-xs: 0 1px 2px rgba(11,20,55,.05), 0 2px 6px rgba(11,20,55,.04);
  --sh-sm: 0 2px 6px rgba(11,20,55,.05), 0 8px 20px rgba(11,20,55,.06);
  --sh-md: 0 4px 12px rgba(11,20,55,.06), 0 18px 44px rgba(11,20,55,.09);
  --sh-lg: 0 8px 24px rgba(11,20,55,.08), 0 34px 74px rgba(11,20,55,.13);
  --sh-glow-b: 0 16px 40px rgba(35,64,184,.28);
  --sh-glow-p: 0 16px 40px rgba(240,86,143,.26);

  --ease: cubic-bezier(.22, .68, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: .42s;

  --header-h: 82px;
  --util-h: 40px;
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  /* `clip` (not `hidden`) contains the off-canvas drawer without turning the
     root into a scroll container, so position: sticky keeps working. */
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.68;
  font-weight: 400;
  color: var(--ink-80);
  background: var(--porcelain);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video, canvas { display: block; max-width: 100%; }
img, video { height: auto; }

input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

ul, ol { list-style: none; padding: 0; }

a { color: var(--sapphire); text-decoration: none; transition: color .22s var(--ease); }
a:hover { color: var(--rose); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.022em;
  color: var(--ink);
  font-optical-sizing: auto;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
h5 { font-size: var(--fs-h5); line-height: 1.28; }
h6 { font-size: var(--fs-h6); line-height: 1.32; }

p { text-wrap: pretty; }

:focus-visible {
  outline: 3px solid var(--azure);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--blush); color: var(--midnight); }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container   { width: 100%; max-width: var(--container);   margin-inline: auto; padding-inline: var(--gutter); }
.container--wide   { max-width: var(--container-w); }
.container--narrow { max-width: var(--container-n); }

.section     { padding-block: var(--sp-section); position: relative; }
.section--sm { padding-block: var(--sp-section-s); }
.section--flush-top { padding-top: 0; }

.section--tint    { background: var(--paper); }
.section--aurora  { background-image: var(--aurora); }
.section--dark    { background: var(--midnight); color: rgba(255,255,255,.76); }
.section--dark h1, .section--dark h2, .section--dark h3,
.section--dark h4, .section--dark h5, .section--dark h6 { color: #fff; }

.grid { display: grid; gap: clamp(1.15rem, .7rem + 1.7vw, 2rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 2000;
  background: var(--midnight); color: #fff; padding: 12px 20px;
  border-radius: var(--r-xs); font: 600 .9rem var(--font-body);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }

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

/* --------------------------------------------------------------------------
   4. Typographic components
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-accent);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--sapphire);
  margin-bottom: 1.15rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: var(--grad-line); flex: none;
}
.eyebrow--center { justify-content: center; }
.eyebrow--plain::before { display: none; }
.section--dark .eyebrow, .on-dark .eyebrow { color: var(--blush); }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  /* keeps descenders from clipping in the italic display face */
  padding-bottom: .06em;
}
.on-dark .grad-text, .section--dark .grad-text { background: var(--grad-soft); -webkit-background-clip: text; background-clip: text; }

.display-em { font-style: italic; font-weight: 500; }

.lede {
  font-size: var(--fs-lg);
  line-height: 1.62;
  color: var(--ink-64);
  max-width: 62ch;
}
.section--dark .lede, .on-dark .lede { color: rgba(255,255,255,.72); }

.section-head { max-width: 68ch; margin-bottom: clamp(2.4rem, 1.4rem + 3vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lede { margin-inline: auto; }
.section-head p { margin-top: 1.15rem; }

.rule-grad { height: 3px; border: 0; border-radius: 3px; background: var(--grad-line); width: 64px; }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--grad);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 1rem 1.75rem;
  font-family: var(--font-body);
  font-size: .955rem; font-weight: 700; letter-spacing: -.005em;
  border-radius: var(--r-pill);
  color: #fff;
  background: var(--btn-bg);
  box-shadow: var(--sh-glow-b);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), color .22s, background-color .22s, border-color .22s;
  will-change: transform;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--grad-rev);
  opacity: 0; transition: opacity .38s var(--ease);
}
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 20px 46px rgba(107,76,230,.34); }
.btn:hover::after { opacity: 1; }
.btn:active { transform: translateY(0); }

.btn svg { flex: none; width: 17px; height: 17px; transition: transform .32s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }

.btn--ghost {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--ink-14); box-shadow: none;
}
.btn--ghost::after { display: none; }
.btn--ghost:hover { color: var(--sapphire); border-color: var(--sapphire); background: rgba(35,64,184,.05); box-shadow: var(--sh-sm); }

.btn--light {
  background: #fff; color: var(--midnight); box-shadow: var(--sh-sm);
}
.btn--light::after { display: none; }
.btn--light:hover { color: var(--sapphire); box-shadow: var(--sh-md); }

.btn--outline-light {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,.32); box-shadow: none;
}
.btn--outline-light::after { display: none; }
.btn--outline-light:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); color: #fff; }

.btn--sm { padding: .72rem 1.3rem; font-size: .875rem; }
.btn--lg { padding: 1.16rem 2.15rem; font-size: 1.02rem; }
.btn--block { display: flex; width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; align-items: center; }

/* Text link with animated arrow */
.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 700; font-size: .935rem;
  color: var(--sapphire);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .32s var(--ease-out); }
.link-arrow:hover { color: var(--rose); }
.link-arrow:hover svg { transform: translateX(4px); }
.on-dark .link-arrow { color: var(--blush); }
.on-dark .link-arrow:hover { color: #fff; }

/* --------------------------------------------------------------------------
   6. Chips, pills, badges
   -------------------------------------------------------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .42rem .85rem;
  border-radius: var(--r-pill);
  font-family: var(--font-accent);
  font-size: .715rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  background: rgba(35,64,184,.08); color: var(--sapphire);
  border: 1px solid rgba(35,64,184,.14);
}
/* #C9376C measured 4.41:1 on the pill's own tinted background: just under AA. */
.pill--rose { background: rgba(240,86,143,.1); color: #BC2E62; border-color: rgba(240,86,143,.2); }
.pill--light { background: rgba(255,255,255,.13); color: #fff; border-color: rgba(255,255,255,.22); backdrop-filter: blur(8px); }

.badge-glass {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .5rem 1rem .5rem .6rem;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  color: #fff; font-size: .84rem; font-weight: 600;
  white-space: nowrap;
}
.badge-glass .dot { width: 7px; height: 7px; border-radius: 50%; background: #5FE3A1; box-shadow: 0 0 0 4px rgba(95,227,161,.22); flex: none; margin-left: .3rem; }

/* --------------------------------------------------------------------------
   7. Cards
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--ink-08);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 1rem + 1.6vw, 2.25rem);
  transition: transform .42s var(--ease-out), box-shadow .42s var(--ease-out), border-color .42s;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px;
  background: var(--grad-line);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }

.card h2, .card h3, .card h4 { margin-bottom: .7rem; }
.card p { color: var(--ink-64); font-size: .975rem; }

.card--flat:hover { transform: none; }
.card--link { display: flex; flex-direction: column; }
.card--link .link-arrow { margin-top: auto; padding-top: 1.35rem; }

/* Icon tile */
.icon-tile {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 15px;
  background: var(--grad);
  color: #fff;
  margin-bottom: 1.35rem;
  box-shadow: 0 8px 20px rgba(35,64,184,.24);
  flex: none;
}
.icon-tile svg { width: 24px; height: 24px; }
.icon-tile--sm { width: 40px; height: 40px; border-radius: 12px; margin-bottom: 0; }
.icon-tile--sm svg { width: 19px; height: 19px; }
.icon-tile--soft {
  background: rgba(35,64,184,.09); color: var(--sapphire); box-shadow: none;
  border: 1px solid rgba(35,64,184,.13);
}
.icon-tile--rose { background: var(--grad-rev); box-shadow: 0 8px 20px rgba(240,86,143,.24); }

/* Gradient-border card */
.card-grad {
  position: relative;
  border-radius: var(--r-lg);
  padding: 1.5px;
  background: linear-gradient(140deg, rgba(35,64,184,.4), rgba(107,76,230,.22) 45%, rgba(240,86,143,.4));
  transition: transform .42s var(--ease-out), box-shadow .42s var(--ease-out);
}
.card-grad > * {
  background: var(--paper);
  border-radius: calc(var(--r-lg) - 1px);
  padding: clamp(1.5rem, 1rem + 1.6vw, 2.25rem);
  height: 100%;
}
.card-grad:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }

/* Dark glass card */
.card-glass {
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 1rem + 1.6vw, 2.25rem);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: transform .42s var(--ease-out), background .42s, border-color .42s;
}
.card-glass:hover { transform: translateY(-6px); background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.24); }
.card-glass p { color: rgba(255,255,255,.7); }

/* --------------------------------------------------------------------------
   8. Header + utility bar
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(251,249,247,.82);
  backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border-bottom: 1px solid var(--ink-08);
  transition: box-shadow .3s var(--ease), background .3s var(--ease),
              transform .34s var(--ease);
}
/* Scrolling down retracts the bar so it stops covering the content being read.
   Scrolling up, reaching the top, or tabbing into it brings it straight back,
   so the nav is always one gesture away and focus is never left underneath it. */
.site-header.is-hidden { transform: translateY(-100%); }
@media (prefers-reduced-motion: reduce) {
  .site-header { transition: box-shadow .3s var(--ease), background .3s var(--ease); }
}
.site-header.is-scrolled { box-shadow: 0 6px 28px rgba(11,20,55,.09); background: rgba(251,249,247,.94); }
.site-header.is-scrolled .utility-bar { height: 0; opacity: 0; overflow: hidden; border-color: transparent; }

.utility-bar {
  height: var(--util-h);
  background: var(--midnight);
  color: rgba(255,255,255,.72);
  font-size: .795rem;
  display: flex; align-items: center;
  transition: height .34s var(--ease), opacity .24s var(--ease);
  overflow: hidden;
}
.utility-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; width: 100%; }
.utility-bar__group { display: flex; align-items: center; gap: 1.5rem; }
/* min-height lifts these from a 21px to a 24px target (WCAG 2.5.8). The bar is
   taller than 24px, so this costs no layout. */
.utility-bar a { color: rgba(255,255,255,.78); display: inline-flex; align-items: center; min-height: 24px; gap: .45rem; font-weight: 500; }
.utility-bar a:hover { color: #fff; }
.utility-bar svg { width: 14px; height: 14px; flex: none; opacity: .8; }
.utility-bar__loc { display: inline-flex; align-items: center; gap: .45rem; }

.nav-bar {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}

/* Brand lockup */
.brand { display: inline-flex; align-items: center; gap: .72rem; flex: none; }
.brand:hover { color: inherit; }
.brand__mark { width: 43px; height: 43px; flex: none; transition: transform .5s var(--ease-out); }
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.05); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display); font-weight: 600; font-size: 1.44rem;
  letter-spacing: -.022em; color: var(--ink);
}
.brand__sub {
  font-family: var(--font-accent); font-weight: 600; font-size: .535rem;
  letter-spacing: .29em; color: var(--sapphire); margin-top: 5px; white-space: nowrap;
}
.brand--light .brand__name { color: #fff; }
.brand--light .brand__sub { color: var(--blush); }

/* Primary nav */
.nav { display: flex; align-items: center; gap: .15rem; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .6rem .82rem;
  font-size: .935rem; font-weight: 600; color: var(--ink-80);
  border-radius: var(--r-xs);
  white-space: nowrap;
  transition: color .22s var(--ease), background .22s var(--ease);
}
.nav__link:hover, .nav__item.is-open > .nav__link { color: var(--sapphire); background: rgba(35,64,184,.06); }
.nav__link[aria-current="page"], .nav__link.is-active { color: var(--sapphire); }
.nav__link[aria-current="page"]::after, .nav__link.is-active::after {
  content: ""; position: absolute; bottom: .1rem; left: .82rem; right: .82rem;
  height: 2px; border-radius: 2px; background: var(--grad-line);
}
.nav__caret { width: 11px; height: 11px; transition: transform .3s var(--ease); opacity: .6; }
.nav__item.is-open .nav__caret { transform: rotate(180deg); }

.nav-actions { display: flex; align-items: center; gap: .7rem; flex: none; }

/* --------------------------------------------------------------------------
   9. Mega menu + dropdowns
   -------------------------------------------------------------------------- */
.mega {
  position: absolute; top: calc(100% + 10px); left: 50%;
  width: min(1180px, calc(100vw - 3rem));
  transform: translate(-50%, 12px);
  background: var(--paper);
  border: 1px solid var(--ink-08);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: 2rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .3s var(--ease), transform .38s var(--ease-out), visibility .3s;
  z-index: 1200;
}
.nav__item.is-open > .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }

.mega__grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)) 1fr; gap: 1.15rem 1.9rem; }

.mega__col-title {
  display: flex; align-items: center; gap: .55rem;
  font-family: var(--font-accent);
  font-size: .68rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase;
  color: var(--ink-48);
  padding-bottom: .7rem; margin-bottom: .5rem;
  border-bottom: 1px solid var(--ink-08);
}
.mega__col-title::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--grad-line); flex: none; }

.mega__link {
  display: flex; align-items: flex-start; gap: .78rem;
  padding: .62rem .7rem;
  border-radius: var(--r-sm);
  transition: background .24s var(--ease), transform .24s var(--ease);
}
.mega__link:hover { background: rgba(35,64,184,.05); transform: translateX(3px); }
.mega__link:hover .mega__link-title { color: var(--sapphire); }
.mega__link .icon-tile--sm { transition: transform .32s var(--ease-out); }
.mega__link:hover .icon-tile--sm { transform: scale(1.08) rotate(-5deg); }
.mega__link-title { display: block; font-size: .905rem; font-weight: 700; color: var(--ink); line-height: 1.32; transition: color .2s; }
.mega__link-desc { display: block; font-size: .785rem; color: var(--ink-48); line-height: 1.45; margin-top: .18rem; }

.mega__feature {
  position: relative; overflow: hidden;
  border-radius: var(--r-md);
  padding: 1.6rem;
  background: var(--grad);
  color: #fff;
  display: flex; flex-direction: column;
}
.mega__feature::after {
  content: ""; position: absolute; width: 240px; height: 240px; right: -90px; bottom: -110px;
  background: radial-gradient(circle, rgba(255,255,255,.24), transparent 66%);
  border-radius: 50%;
}
/* Was an <h4>. It sits inside the header nav, ahead of the page's own <h1>,
   so it was injecting a stray level-4 entry at the top of every page outline.
   It is a promo label, not a section heading: now a <p>. */
/* Needs to out-specify `.mega__feature p` now that it is a <p>. */
.mega__feature p.mega__feature-title {
  font-family: var(--font-display); font-weight: 600; line-height: 1.2;
  color: #fff; font-size: 1.22rem; margin-bottom: .55rem; position: relative;
}
.mega__feature p { color: rgba(255,255,255,.82); font-size: .85rem; line-height: 1.55; position: relative; }
.mega__feature .btn { margin-top: 1.15rem; position: relative; }
.mega__feature-stat {
  margin-top: auto; padding-top: 1.3rem; position: relative;
  display: flex; align-items: baseline; gap: .5rem;
}
.mega__feature-stat b { font-family: var(--font-accent); font-size: 1.65rem; font-weight: 700; color: #fff; line-height: 1; }
.mega__feature-stat span { font-size: .78rem; color: rgba(255,255,255,.78); }

.mega__footer {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: 1.6rem; padding-top: 1.3rem; border-top: 1px solid var(--ink-08);
  font-size: .855rem; color: var(--ink-48);
}

/* Simple dropdown */
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 268px;
  background: var(--paper);
  border: 1px solid var(--ink-08);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  padding: .6rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(12px);
  transition: opacity .28s var(--ease), transform .34s var(--ease-out), visibility .28s;
  z-index: 1200;
}
.nav__item.is-open > .dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.dropdown__link {
  display: block; padding: .66rem .85rem; border-radius: var(--r-xs);
  font-size: .9rem; font-weight: 600; color: var(--ink-80);
  transition: background .22s, color .22s, transform .22s;
}
.dropdown__link span { display: block; font-size: .765rem; font-weight: 500; color: var(--ink-48); margin-top: .12rem; }
.dropdown__link:hover { background: rgba(35,64,184,.06); color: var(--sapphire); transform: translateX(3px); }

/* --------------------------------------------------------------------------
   10. Mobile drawer
   -------------------------------------------------------------------------- */
.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border-radius: var(--r-sm);
  border: 1px solid var(--ink-14);
  place-items: center;
  flex: none;
  transition: background .22s, border-color .22s;
}
.nav-toggle:hover { background: var(--ink-04); }
.nav-toggle span { display: block; width: 19px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .34s var(--ease-out), opacity .22s; }
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0 0 0 auto;
  width: min(430px, 100%);
  background: var(--paper);
  z-index: 1500;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .46s var(--ease-out), visibility .46s;
  display: flex; flex-direction: column;
  box-shadow: -20px 0 60px rgba(11,20,55,.18);
}
.drawer.is-open { transform: translateX(0); visibility: visible; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem var(--gutter); border-bottom: 1px solid var(--ink-08); flex: none; }
.drawer__close { width: 42px; height: 42px; border-radius: var(--r-sm); border: 1px solid var(--ink-14); display: grid; place-items: center; }
.drawer__close svg { width: 18px; height: 18px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 1rem var(--gutter) 2rem; overscroll-behavior: contain; }
.drawer__foot { flex: none; padding: 1.15rem var(--gutter) calc(1.15rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--ink-08); background: var(--porcelain); }

.drawer-nav > li { border-bottom: 1px solid var(--ink-08); }
.drawer-nav a, .drawer-nav .acc-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%;
  padding: 1rem .2rem;
  font-size: 1.06rem; font-weight: 700; color: var(--ink);
  text-align: left;
}
.drawer-nav .acc-trigger svg { width: 18px; height: 18px; flex: none; transition: transform .32s var(--ease); color: var(--ink-48); }
.drawer-nav .acc-trigger[aria-expanded="true"] svg { transform: rotate(180deg); color: var(--sapphire); }
.drawer-nav .acc-trigger[aria-expanded="true"] { color: var(--sapphire); }

.drawer-sub { overflow: hidden; }
.drawer-sub > div { padding-bottom: .85rem; }
.drawer-sub__group { font-family: var(--font-accent); font-size: .655rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; color: var(--ink-48); padding: .95rem .2rem .35rem; }
.drawer-sub a {
  padding: .58rem .2rem .58rem .95rem;
  font-size: .935rem; font-weight: 600; color: var(--ink-64);
  border-left: 2px solid var(--ink-08);
}
.drawer-sub a:hover { color: var(--sapphire); border-left-color: var(--sapphire); }

.scrim {
  position: fixed; inset: 0; z-index: 1400;
  background: rgba(11,20,55,.42);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden;
  transition: opacity .38s var(--ease), visibility .38s;
}
.scrim.is-open { opacity: 1; visibility: visible; }

body.is-locked { overflow: hidden; }

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--midnight);
  color: rgba(255,255,255,.62);
  position: relative;
  overflow: hidden;
  padding-top: clamp(3.6rem, 2.4rem + 4.4vw, 5.5rem);
}
.site-footer::before {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px; background: var(--grad-line);
}
.site-footer::after {
  content: ""; position: absolute; width: 720px; height: 720px; right: -260px; top: -320px;
  background: radial-gradient(circle, rgba(107,76,230,.2), transparent 66%);
  border-radius: 50%; pointer-events: none;
}
.site-footer .container { position: relative; z-index: 1; }

.footer-grid {
  display: grid; grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: clamp(1.9rem, 1rem + 3vw, 3.4rem);
  padding-bottom: clamp(2.6rem, 1.8rem + 3vw, 4rem);
}
.footer-brand p { font-size: .93rem; line-height: 1.68; margin: 1.35rem 0 1.5rem; max-width: 36ch; color: rgba(255,255,255,.6); }

.footer-col h2 {
  font-family: var(--font-accent); font-size: .69rem; font-weight: 700;
  letter-spacing: .17em; text-transform: uppercase; color: #fff;
  margin-bottom: 1.15rem;
}
.footer-col li + li { margin-top: .5rem; }
/* padding-block brings these from a 20px to a 24px target (WCAG 2.5.8). */
.footer-col a { color: rgba(255,255,255,.62); font-size: .915rem; display: inline-block; padding-block: .13rem; }
.footer-col a:hover { color: #fff; }

.footer-contact li { display: flex; gap: .7rem; align-items: flex-start; font-size: .915rem; line-height: 1.55; }
.footer-contact svg { width: 16px; height: 16px; flex: none; margin-top: .34rem; color: var(--rose-2); }
.footer-contact a { color: rgba(255,255,255,.62); display: inline-block; padding-block: .06rem; }

.socials { display: flex; gap: .55rem; }
.socials a {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.11);
  color: rgba(255,255,255,.76);
  transition: background .26s var(--ease), transform .26s var(--ease-out), color .26s, border-color .26s;
}
.socials a:hover { background: var(--grad); border-color: transparent; color: #fff; transform: translateY(-3px); }
.socials svg { width: 17px; height: 17px; }

.footer-bar {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-block: 1.6rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.8rem; flex-wrap: wrap;
  font-size: .84rem;
}
.footer-bar__links { display: flex; gap: .4rem 1.4rem; flex-wrap: wrap; }
.footer-bar__links a { display: inline-block; padding-block: .1rem; }
.footer-bar a { color: rgba(255,255,255,.58); }
.footer-bar a:hover { color: #fff; }

.footer-disclaimer {
  /* .4 measured 3.8:1 on the footer navy: below 4.5:1 for 12px text. */
  font-size: .77rem; line-height: 1.62; color: rgba(255,255,255,.58);
  padding-bottom: 2rem; max-width: 92ch;
}

/* --------------------------------------------------------------------------
   12. Forms
   -------------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1.15rem; }
.field label { font-size: .855rem; font-weight: 700; color: var(--ink); }
.field label .req { color: var(--rose); }
.field .hint { font-size: .78rem; color: var(--ink-48); }

.input, .textarea, .select {
  width: 100%;
  padding: .92rem 1.05rem;
  font-size: .96rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--ink-14);
  border-radius: var(--r-sm);
  transition: border-color .24s var(--ease), box-shadow .24s var(--ease), background .24s;
}
/* Not --ink-28: placeholder text is still text, and .28 measured 1.9:1 on white. */
.input::placeholder, .textarea::placeholder { color: rgba(11, 20, 55, .58); }
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--sapphire);
  box-shadow: 0 0 0 4px rgba(35,64,184,.12);
}
.textarea { min-height: 148px; resize: vertical; line-height: 1.6; }
.select {
  appearance: none; cursor: pointer; padding-right: 2.7rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1437' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 17px;
}

.field.has-error .input, .field.has-error .textarea, .field.has-error .select { border-color: #DC2B5A; background: rgba(220,43,90,.03); }
.field.has-error .input:focus, .field.has-error .textarea:focus { box-shadow: 0 0 0 4px rgba(220,43,90,.12); }
.error-msg {
  display: none; align-items: center; gap: .4rem;
  font-size: .8rem; font-weight: 600; color: #DC2B5A;
}
.error-msg svg { width: 14px; height: 14px; flex: none; }
.field.has-error .error-msg { display: flex; }

.checkbox { display: flex; gap: .7rem; align-items: flex-start; font-size: .855rem; color: var(--ink-64); cursor: pointer; }
.checkbox input { width: 19px; height: 19px; margin-top: .16rem; accent-color: var(--sapphire); flex: none; cursor: pointer; }

.form-note { font-size: .8rem; color: var(--ink-48); line-height: 1.55; margin-top: 1rem; }

.form-success {
  display: none;
  text-align: center; padding: clamp(2rem, 1.4rem + 2vw, 3rem);
  border-radius: var(--r-lg);
  background: linear-gradient(140deg, rgba(35,64,184,.06), rgba(240,86,143,.07));
  border: 1px solid rgba(35,64,184,.14);
}
.form-success.is-visible { display: block; }
.form-success .icon-tile { margin-inline: auto; }
.form-success h3 { margin-bottom: .7rem; }

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* Inline newsletter */
/* align-items:flex-start keeps the submit button at its own height instead of
   stretching to match the field once an inline error message appears. */
.inline-form { display: flex; align-items: flex-start; gap: .6rem; flex-wrap: wrap; }
.inline-form > .field { flex: 1 1 220px; margin: 0; }
/* The input sits inside .field, which is a *column* flex container: a px
   flex-basis here would be read as a height, not a width. Keep it auto. */
.inline-form .input { flex: 0 0 auto; }

/* --------------------------------------------------------------------------
   13. Accordion
   -------------------------------------------------------------------------- */
.accordion { border-top: 1px solid var(--ink-08); }
.accordion__item { border-bottom: 1px solid var(--ink-08); }
.accordion__trigger {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1.4rem;
  width: 100%; padding: 1.42rem .2rem; text-align: left;
  font-family: var(--font-body); font-size: var(--fs-h6); font-weight: 700; color: var(--ink);
  transition: color .24s var(--ease);
}
.accordion__trigger:hover { color: var(--sapphire); }
.accordion__icon {
  width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: rgba(35,64,184,.08); color: var(--sapphire);
  transition: transform .38s var(--ease-out), background .3s, color .3s;
  margin-top: .1rem;
}
.accordion__icon svg { width: 15px; height: 15px; }
.accordion__trigger[aria-expanded="true"] { color: var(--sapphire); }
.accordion__trigger[aria-expanded="true"] .accordion__icon { transform: rotate(180deg); background: var(--grad); color: #fff; }
.accordion__panel { overflow: hidden; }
.accordion__panel > div { padding: 0 3.4rem 1.6rem .2rem; color: var(--ink-64); }
.accordion__panel p + p { margin-top: .9rem; }

/* --------------------------------------------------------------------------
   14. Tabs
   -------------------------------------------------------------------------- */
.tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.tab {
  padding: .68rem 1.25rem;
  border-radius: var(--r-pill);
  font-size: .89rem; font-weight: 700; color: var(--ink-64);
  border: 1.5px solid var(--ink-14); background: var(--paper);
  transition: all .26s var(--ease);
}
.tab:hover { border-color: var(--sapphire); color: var(--sapphire); }
.tab[aria-selected="true"] { background: var(--grad); border-color: transparent; color: #fff; box-shadow: var(--sh-glow-b); }
.tabpanel[hidden] { display: none; }

/* --------------------------------------------------------------------------
   15. Lists
   -------------------------------------------------------------------------- */
.check-list li {
  position: relative; padding-left: 2.1rem; margin-bottom: .95rem;
  font-size: .975rem; color: var(--ink-64); line-height: 1.6;
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .12rem;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='black'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='black'/%3E%3C/svg%3E") center/contain no-repeat;
}
.check-list li::after {
  content: ""; position: absolute; left: 5.5px; top: 7.5px;
  width: 11px; height: 6px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}
.check-list li strong { color: var(--ink); font-weight: 700; }
.section--dark .check-list li, .on-dark .check-list li { color: rgba(255,255,255,.72); }
.section--dark .check-list li strong, .on-dark .check-list li strong { color: #fff; }

.bullet-list li { position: relative; padding-left: 1.4rem; margin-bottom: .7rem; color: var(--ink-64); }
.bullet-list li::before {
  content: ""; position: absolute; left: 0; top: .68em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--grad-line);
}

/* --------------------------------------------------------------------------
   16. Breadcrumbs
   -------------------------------------------------------------------------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .82rem; }
.crumbs li { display: flex; align-items: center; gap: .4rem; color: var(--ink-48); }
.crumbs a { color: var(--ink-48); font-weight: 600; display: inline-flex; align-items: center; min-height: 24px; }
.crumbs a:hover { color: var(--sapphire); }
.crumbs svg { width: 13px; height: 13px; opacity: .5; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.on-dark .crumbs li, .on-dark .crumbs a { color: rgba(255,255,255,.62); }
.on-dark .crumbs a:hover, .on-dark .crumbs [aria-current] { color: #fff; }

/* --------------------------------------------------------------------------
   17. Scroll reveal + motion
   -------------------------------------------------------------------------- */
/* Scoped to .js so content is never hidden if scripting fails or is disabled */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .78s var(--ease-out), transform .78s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="left"]  { transform: translateX(-30px); }
.js [data-reveal="right"] { transform: translateX(30px); }
.js [data-reveal="zoom"]  { transform: scale(.955); }

.back-to-top {
  position: fixed; right: clamp(1rem, .4rem + 1.4vw, 2rem); bottom: clamp(1rem, .4rem + 1.4vw, 2rem);
  width: 48px; height: 48px; border-radius: 50%; z-index: 900;
  display: grid; place-items: center;
  background: var(--grad); color: #fff;
  box-shadow: var(--sh-glow-b);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .34s var(--ease), transform .34s var(--ease-out), visibility .34s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { transform: translateY(-3px); color: #fff; }
.back-to-top svg { width: 19px; height: 19px; }

/* Decorative floating blobs */
.blob { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; z-index: 0; }
.blob--b { background: rgba(76,111,255,.24); }
.blob--p { background: rgba(240,86,143,.22); }
.blob--v { background: rgba(107,76,230,.2); }
@keyframes drift {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(24px,-28px) scale(1.07); }
  66%      { transform: translate(-20px,18px) scale(.95); }
}
.blob--anim { animation: drift 17s ease-in-out infinite; }

/* --------------------------------------------------------------------------
   18. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .mega { width: min(980px, calc(100vw - 2.5rem)); padding: 1.6rem; }
  .mega__grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .mega__feature { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 1.6rem; }
  .mega__feature > div { flex: 1; }
  .mega__feature .btn { margin-top: 0; flex: none; }
  .mega__feature-stat { margin-top: 0; padding-top: 0; flex: none; flex-direction: column; gap: 0; }
}

@media (max-width: 1024px) {
  :root { --header-h: 74px; }
  .nav, .nav-actions .btn { display: none; }
  .nav-toggle { display: grid; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .utility-bar { font-size: .74rem; }
  .utility-bar__group:first-child .utility-bar__loc { display: none; }
}

@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .brand__mark { width: 38px; height: 38px; }
  .brand__name { font-size: 1.25rem; }
  .brand__sub { font-size: .48rem; letter-spacing: .26em; }
  .footer-grid { grid-template-columns: 1fr; }
  .accordion__panel > div { padding-right: .2rem; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .utility-bar__group--right { display: none; }
}

/* --------------------------------------------------------------------------
   19. Reduced motion + print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .blob--anim { animation: none; }
}

@media print {
  .site-header, .site-footer, .back-to-top, .drawer, .scrim, .hero__video, .cta-band { display: none !important; }
  body { background: #fff; color: #000; }
  a::after { content: " (" attr(href) ")"; font-size: .8em; color: #555; }
}
