/* Base: reset, type, layout primitives. Mobile-first. */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; } /* component display rules must never override hidden */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: var(--fs-md); line-height: 1.6; color: var(--text); background: var(--bg); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { color: var(--navy); font-weight: 800; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: var(--fs-3xl); letter-spacing: -1.2px; }
h2 { font-size: var(--fs-2xl); letter-spacing: -.8px; }
h3 { font-size: var(--fs-xl); letter-spacing: -.5px; }
h4 { font-size: var(--fs-lg); letter-spacing: -.2px; }
p { margin: 0 0 1em; max-width: 68ch; }
a { color: var(--purple); text-underline-offset: 3px; }
a:hover { color: var(--purple-strong); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -48px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); z-index: 100; }
.skip-link:focus { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 720px; }
.stack > * + * { margin-top: var(--stack, 16px); }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.lead { font-size: var(--fs-lg); color: var(--muted); }
.answer { font-size: var(--fs-lg); color: var(--text); max-width: 62ch; } /* AEO: 40–60-word direct answer at the top of public pages */
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon--lg { width: 28px; height: 28px; }

/* Site header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.94); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand img { height: 30px; width: auto; }
.nav { display: none; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: var(--fs-sm); padding: 10px 12px; border-radius: var(--r-pill); }
.nav a:hover, .nav a[aria-current="page"] { background: var(--purple-pale); color: var(--purple-strong); }
.nav a.nav__cta { min-height: 42px; padding: 8px 18px; margin-left: 8px; color: #fff; background: var(--purple); }
.nav a.nav__cta:hover { background: var(--purple-strong); color: #fff; }
.menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: var(--tap); height: var(--tap); border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--navy); }
.mobile-nav { display: none; border-top: 1px solid var(--line); padding: 8px var(--gutter) 16px; background: #fff; }
.mobile-nav[data-open="true"] { display: block; }
.mobile-nav a { display: flex; min-height: var(--tap); align-items: center; color: var(--text); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
@media (min-width: 960px) {
  .nav { display: flex; gap: 4px; align-items: center; }
  .menu-toggle, .mobile-nav { display: none !important; }
}

/* Footer */
.site-footer { background: var(--navy); color: #C9C3DC; padding: 48px 0 32px; margin-top: 72px; font-size: var(--fs-sm); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
.footer-grid h2 { color: #fff; font-size: var(--fs-md); letter-spacing: 0; margin-bottom: 10px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand img { height: 28px; width: auto; margin-bottom: 12px; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } .footer-brand { grid-column: auto; } }
