/* Boxxpro — site-wide base styles. Section styling lives inline in the design
   components (src/design); this file holds fonts, base, focus, the mobile
   menu and the cookie banner. */

/* ---------- self-hosted fonts (variable, latin + latin-ext) ---------- */
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('/assets/fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('/assets/fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/assets/fonts/inter-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/assets/fonts/inter-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/assets/fonts/geist-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/assets/fonts/geist-mono-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: #FFFFFF; color: #0B1736;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { max-width: 100%; }
img { height: auto; }
a { color: #1F4FE0; }
a:hover { color: #163BB0; }
:focus-visible { outline: 3px solid #1F4FE0; outline-offset: 3px; border-radius: 6px; }
button { font-family: inherit; }
.bx-skip { position: absolute; left: 16px; top: -80px; z-index: 300; padding: 12px 18px; border-radius: 12px; background: #0B1736; color: #FFFFFF; font-weight: 700; text-decoration: none; }
.bx-skip:focus { top: 12px; color: #FFFFFF; }
.bx-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  /* Same approach as the design components: no motion, every element in its resting state. */
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Typography: no lone words on the last line, balanced headings. */
p, li, blockquote, figcaption { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }

/* ---------- header / navigation ---------- */
.nv-header { position: sticky; top: 0; z-index: 100; }
.nv-burger, .nv-drawer { display: none; }
.nv-dd.is-open .nv-panel { display: block; }
.nv-dd.is-open .nv-chev { transform: rotate(180deg); }
@media (max-width: 1080px) {
  .nv-links, .nv-login { display: none !important; }
  .nv-burger { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 999px; background: #F4F6FB; color: #0B1736; cursor: pointer; }
  .nv-burger[aria-expanded="true"] { background: #0B1736; color: #FFFFFF; }
  .nv-burger .nv-x { display: none; }
  .nv-burger[aria-expanded="true"] .nv-x { display: block; }
  .nv-burger[aria-expanded="true"] .nv-bars { display: none; }
  /* The header has backdrop-filter, which makes it the containing block for
     positioned children, so the drawer hangs below it with an explicit height. */
  .nv-drawer { position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - 69px); height: calc(100dvh - 69px); z-index: 99; overflow-y: auto; overscroll-behavior: contain; background: #FFFFFF; padding: 16px 24px 32px; border-top: 1px solid #EEF1F7; }
  .nv-drawer.is-open { display: flex; flex-direction: column; gap: 4px; }
  body.nv-locked { overflow: hidden; }
}
@media (max-width: 420px) { .nv-start { display: none !important; } }
.nv-acc-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 4px; border: 0; background: none; font-size: 18px; font-weight: 700; color: #0B1736; cursor: pointer; }
.nv-acc-btn svg { transition: transform .2s ease; }
.nv-acc-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.nv-acc-group { padding: 6px 0 10px; }
.nv-acc-title { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #5A6585; padding: 10px 4px 6px; }
.nv-acc-link { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 4px; border-radius: 14px; color: #0B1736; text-decoration: none; font-weight: 600; font-size: 16px; }
.nv-acc-link:hover { background: #F4F6FB; color: #0B1736; }
.nv-acc-ic { width: 34px; height: 34px; flex: none; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; }
.nv-drawer-link { display: flex; align-items: center; min-height: 52px; padding: 0 4px; font-size: 18px; font-weight: 700; color: #0B1736; text-decoration: none; border-top: 1px solid #EEF1F7; }
.nv-drawer-link[aria-current="page"] { color: #1F4FE0; }
.nv-drawer-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.nv-drawer-cta a { display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; }

/* ---------- sections far outside the viewport pause their looping animations (site.js) ---------- */
.bx-off, .bx-off * { animation-play-state: paused !important; }

/* ---------- accordions (FAQ) ---------- */
[data-acc-panel][hidden] { display: none !important; }

/* ---------- cookie banner (markup from /js/analytics.js) ---------- */
.cc-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200; max-width: 560px; margin-left: auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; padding: 18px 20px;
  background: #0B1736; color: #FFFFFF; border-radius: 22px; box-shadow: 0 24px 60px -20px rgba(11,23,54,.55);
  font: 500 15px/1.5 'Plus Jakarta Sans', system-ui, sans-serif;
}
.cc-txt { margin: 0; flex: 1 1 260px; color: #DCE4F8; }
.cc-txt a { color: #FFD45C; font-weight: 700; }
.cc-btns { display: flex; gap: 8px; }
.cc-btn { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 0; background: #FFD45C; color: #0B1736; font: inherit; font-weight: 700; cursor: pointer; }
.cc-btn--ghost { background: transparent; color: #FFFFFF; box-shadow: inset 0 0 0 1px #3A4A70; }
.cc-btn:focus-visible { outline-color: #FFD45C; }

/* ---------- small-screen safety net for the design components ---------- */
@media (max-width: 560px) {
  .bx-hide-sm { display: none !important; }
}
