/* ==========================================================================
   CarrierLinkTel — Design System
   Modern CSS: custom properties, fluid type, grid, container-aware layout,
   full light/dark theming via [data-theme] + prefers-color-scheme.
   ========================================================================== */

/* ---------- 1. Tokens -------------------------------------------------- */
:root {
  color-scheme: light;

  /* Brand */
  --brand:        #2F6BFF;
  --brand-ink:    #1E4FD8;
  --brand-deep:   #14329A;
  --brand-soft:   #EAF0FF;
  --accent:       #0FBFB4;
  --accent-soft:  #E2FAF7;
  --warn:         #F0A02A;

  /* Logo tile gradient */
  --logo-tile-1:  #2F6BFF;
  --logo-tile-2:  #1E4FD8;
  --logo-tile-3:  #0FBFB4;

  /* Surfaces */
  --bg:           #FFFFFF;
  --bg-subtle:    #F5F8FD;
  --bg-inset:     #EBF1FA;
  --surface:      #FFFFFF;
  --surface-2:    #FAFBFE;
  --border:       #E1E8F4;
  --border-strong:#CBD6E8;

  /* Text */
  --ink:          #0A1329;
  --ink-2:        #415270;
  --ink-3:        #6C7D99;
  --ink-inverse:  #FFFFFF;

  /* Dark-panel tokens (sections that are always dark, in either theme) */
  --panel:        #080F22;
  --panel-2:      #101B36;
  --panel-border: #22314F;
  --panel-ink:    #F2F6FF;
  --panel-ink-2:  #9FB0CE;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgb(10 19 41 / .06), 0 1px 3px rgb(10 19 41 / .04);
  --shadow-md: 0 4px 12px rgb(10 19 41 / .07), 0 2px 4px rgb(10 19 41 / .04);
  --shadow-lg: 0 18px 40px -12px rgb(10 19 41 / .16), 0 6px 14px -6px rgb(10 19 41 / .08);
  --shadow-xl: 0 32px 64px -20px rgb(10 19 41 / .22);
  --ring: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent);

  /* Geometry */
  --r-xs: 7px;  --r-sm: 11px; --r-md: 15px;
  --r-lg: 22px; --r-xl: 30px; --r-pill: 999px;
  --container: 1220px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 8vw, 7.5rem);

  /* Type */
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Plus Jakarta Sans", var(--font-body);
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --step--1: clamp(.82rem, .79rem + .14vw, .89rem);
  --step-0:  clamp(1rem, .97rem + .16vw, 1.075rem);
  --step-1:  clamp(1.15rem, 1.08rem + .34vw, 1.35rem);
  --step-2:  clamp(1.4rem, 1.26rem + .64vw, 1.8rem);
  --step-3:  clamp(1.72rem, 1.48rem + 1.12vw, 2.45rem);
  --step-4:  clamp(2.05rem, 1.63rem + 1.95vw, 3.3rem);
  --step-5:  clamp(2.45rem, 1.79rem + 3.05vw, 4.35rem);

  --ease: cubic-bezier(.22, .78, .3, 1);
}

:root[data-theme="dark"],
html:not([data-theme="light"]) { }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { color-scheme: dark; }
}
:root[data-theme="dark"] { color-scheme: dark; }

/* Dark palette — declared once, applied by both selectors. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand:        #6E9BFF;
    --brand-ink:    #8FB2FF;
    --brand-deep:   #A9C4FF;
    --brand-soft:   #17255096;
    --accent:       #2FD9C9;
    --accent-soft:  #0C3A3899;

    --logo-tile-1:  #4C82FF;
    --logo-tile-2:  #2B58E0;
    --logo-tile-3:  #16C9BC;

    --bg:           #060B18;
    --bg-subtle:    #0A1122;
    --bg-inset:     #101A31;
    --surface:      #0D1526;
    --surface-2:    #111B30;
    --border:       #1D2A45;
    --border-strong:#2C3D5E;

    --ink:          #EDF2FC;
    --ink-2:        #A7B6D2;
    --ink-3:        #7B8CAC;

    --panel:        #050A16;
    --panel-2:      #0D1729;
    --panel-border: #1C2A46;

    --shadow-sm: 0 1px 2px rgb(0 0 0 / .4);
    --shadow-md: 0 4px 14px rgb(0 0 0 / .45);
    --shadow-lg: 0 20px 44px -14px rgb(0 0 0 / .65);
    --shadow-xl: 0 34px 70px -22px rgb(0 0 0 / .75);
  }
}
:root[data-theme="dark"] {
  --brand: #6E9BFF; --brand-ink: #8FB2FF; --brand-deep: #A9C4FF;
  --brand-soft: #17255096; --accent: #2FD9C9; --accent-soft: #0C3A3899;
  --logo-tile-1: #4C82FF; --logo-tile-2: #2B58E0; --logo-tile-3: #16C9BC;
  --bg: #060B18; --bg-subtle: #0A1122; --bg-inset: #101A31;
  --surface: #0D1526; --surface-2: #111B30;
  --border: #1D2A45; --border-strong: #2C3D5E;
  --ink: #EDF2FC; --ink-2: #A7B6D2; --ink-3: #7B8CAC;
  --panel: #050A16; --panel-2: #0D1729; --panel-border: #1C2A46;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .4);
  --shadow-md: 0 4px 14px rgb(0 0 0 / .45);
  --shadow-lg: 0 20px 44px -14px rgb(0 0 0 / .65);
  --shadow-xl: 0 34px 70px -22px rgb(0 0 0 / .75);
}

/* ---------- 2. Base ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.is-locked { overflow: hidden; }

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

/* Inline icons default to text size. Declared early so the component rules
   below (.card__ico svg, .btn svg, ...) win on source order. The logo mark
   keeps its own width/height attributes. */
svg:not(.logo__mark) { width: 1.1em; height: 1.1em; flex: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.022em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p  { text-wrap: pretty; }

a { color: var(--brand-ink); text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
    text-underline-offset: 3px; transition: color .18s var(--ease); }
a:hover { color: var(--brand); }

ul, ol { padding-left: 1.15rem; }
strong { font-weight: 650; color: var(--ink); }

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

::selection { background: color-mix(in srgb, var(--brand) 25%, transparent); }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 999;
  background: var(--brand); color: #fff; padding: .7rem 1.1rem;
  border-radius: var(--r-sm); font-weight: 600;
}
.skip-link:focus { top: 1rem; color: #fff; }

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

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(2.75rem, 5vw, 4.5rem); }
.section--subtle { background: var(--bg-subtle); }
.section--inset  { background: var(--bg-inset); }

.section--panel {
  background: var(--panel);
  color: var(--panel-ink);
  --ink: var(--panel-ink);
  --ink-2: var(--panel-ink-2);
  --ink-3: #8195B5;
  --border: var(--panel-border);
  --surface: var(--panel-2);
  --surface-2: #0F1A30;
}
.section--panel h1, .section--panel h2, .section--panel h3, .section--panel h4 { color: var(--panel-ink); }

.grid { display: grid; gap: clamp(1.1rem, 2.2vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18.5rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14.5rem), 1fr)); }

.stack > * + * { margin-top: var(--stack-gap, 1rem); }
.center { text-align: center; margin-inline: auto; }
.lead { font-size: var(--step-1); color: var(--ink-2); line-height: 1.6; }
.muted { color: var(--ink-2); }
.small { font-size: var(--step--1); }

/* ---------- 4. Section headers ----------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head);
  font-size: .755rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--brand-ink);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 1.6rem; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}
.section-head { max-width: 46rem; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.section-head.center { text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { margin-top: 1.05rem; font-size: var(--step-1); color: var(--ink-2); }

/* ---------- 5. Buttons -------------------------------------------------- */
.btn {
  --btn-bg: var(--brand); --btn-fg: #fff; --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-head); font-size: .955rem; font-weight: 650; line-height: 1;
  padding: .92rem 1.6rem; border-radius: var(--r-pill);
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .22s var(--ease), background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }

.btn--primary { --btn-bg: linear-gradient(135deg, var(--brand) 0%, var(--brand-ink) 65%, var(--brand-deep) 100%); --btn-fg: #fff; }
:root[data-theme="dark"] .btn--primary,
html:not([data-theme="light"]) .btn--primary { --btn-fg: #05122E; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .btn--primary { --btn-fg: #fff; } }

.btn--secondary { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--border-strong); box-shadow: none; }
.btn--secondary:hover { --btn-bd: var(--brand); --btn-fg: var(--brand-ink); background: color-mix(in srgb, var(--brand) 7%, transparent); }

.btn--accent { --btn-bg: linear-gradient(135deg, var(--accent), #0A9E96); --btn-fg: #04231F; }

.btn--light { --btn-bg: #fff; --btn-fg: #0A1329; }
.btn--outline-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgb(255 255 255 / .34); box-shadow: none; }
.btn--outline-light:hover { --btn-bd: #fff; background: rgb(255 255 255 / .1); }

.btn--lg { padding: 1.08rem 2rem; font-size: 1.02rem; }
.btn--sm { padding: .68rem 1.2rem; font-size: .875rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }
.btn-row.center { justify-content: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-head); font-weight: 650; font-size: .94rem;
  color: var(--brand-ink); text-decoration: none;
}
.link-arrow svg { width: .95em; height: .95em; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- 6. Header / navigation -------------------------------------- */
.topbar {
  background: var(--panel); color: var(--panel-ink-2);
  font-size: .8rem; border-bottom: 1px solid var(--panel-border);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 42px; }
.topbar a { color: var(--panel-ink-2); text-decoration: none; display: inline-flex; align-items: center; gap: .42rem; white-space: nowrap; }
.topbar a:hover { color: #fff; }
.topbar__links { display: flex; align-items: center; gap: 1.4rem; }
.topbar__note { display: inline-flex; align-items: center; gap: .45rem; }
.topbar__note .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
@media (max-width: 860px) { .topbar__note { display: none; } .topbar__inner { justify-content: center; } }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); background: color-mix(in srgb, var(--bg) 93%, transparent); }
.nav { display: flex; align-items: center; gap: 1.25rem; min-height: 76px; }

.logo { display: inline-flex; align-items: center; gap: .62rem; text-decoration: none; color: var(--ink); }
.logo__word {
  font-family: var(--font-head); font-weight: 800; font-size: 1.285rem;
  letter-spacing: -.035em; line-height: 1; white-space: nowrap;
}
.logo__word-mid { color: var(--brand-ink); }
.logo__word-tel { color: var(--accent); }
a.logo:hover { color: var(--ink); }

.nav__menu { display: flex; align-items: center; gap: .15rem; margin-left: 1rem; list-style: none; padding: 0; }
.nav__link {
  display: inline-flex; align-items: center; gap: .3rem;
  font-family: var(--font-head); font-weight: 600; font-size: .935rem;
  color: var(--ink-2); text-decoration: none;
  padding: .6rem .82rem; border-radius: var(--r-sm);
  transition: color .16s var(--ease), background .16s var(--ease);
  background: none; border: 0; cursor: pointer;
}
.nav__link:hover, .nav__item:hover > .nav__link { color: var(--ink); background: var(--bg-subtle); }
.nav__link[aria-current="page"] { color: var(--brand-ink); }
.nav__link .chev { width: .7rem; height: .7rem; transition: transform .2s var(--ease); opacity: .65; }
.nav__item:hover .chev, .nav__item:focus-within .chev { transform: rotate(180deg); }

.nav__spacer { margin-left: auto; }
.nav__actions { display: flex; align-items: center; gap: .6rem; }

.nav__item { position: relative; }
.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; translate: -50% 0;
  width: min(74rem, calc(100vw - 3rem));
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-xl);
  padding: 1.35rem; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.nav__item:hover > .mega, .nav__item:focus-within > .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .35rem; }
.mega__link {
  display: flex; gap: .85rem; padding: .85rem; border-radius: var(--r-md);
  text-decoration: none; color: var(--ink); transition: background .16s var(--ease);
}
.mega__link:hover { background: var(--bg-subtle); color: var(--ink); }
.mega__ico {
  flex: none; width: 2.5rem; height: 2.5rem; border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, color-mix(in srgb, var(--brand) 14%, transparent), color-mix(in srgb, var(--accent) 14%, transparent));
  color: var(--brand-ink);
}
.mega__ico svg { width: 1.25rem; height: 1.25rem; }
.mega__t { font-family: var(--font-head); font-weight: 650; font-size: .93rem; display: block; }
.mega__d { font-size: .815rem; color: var(--ink-3); line-height: 1.45; display: block; margin-top: .18rem; }
.mega__foot {
  margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.mega__foot p { font-size: .865rem; color: var(--ink-2); margin: 0; }

.theme-toggle {
  width: 40px; height: 40px; border-radius: var(--r-pill);
  border: 1px solid var(--border); background: var(--surface); color: var(--ink-2);
  display: grid; place-items: center; cursor: pointer;
  transition: color .16s var(--ease), border-color .16s var(--ease), transform .16s var(--ease);
}
.theme-toggle:hover { color: var(--brand-ink); border-color: var(--brand); transform: rotate(-12deg); }
.theme-toggle svg { width: 1.05rem; height: 1.05rem; }
.theme-toggle .ico-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .ico-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .ico-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .ico-moon { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .ico-sun { display: none; }
}

.nav__burger {
  display: none; width: 42px; height: 42px; border-radius: var(--r-sm);
  border: 1px solid var(--border); background: var(--surface); cursor: pointer;
  place-items: center; color: var(--ink);
}
.nav__burger span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: .22s var(--ease); }
.nav__burger span::before, .nav__burger span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: .22s var(--ease);
}
.nav__burger span::before { top: -6px; } .nav__burger span::after { top: 6px; }
.nav__burger[aria-expanded="true"] span { background: transparent; }
.nav__burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0 0 0 auto; width: min(24rem, 100%); z-index: 120;
  background: var(--bg); border-left: 1px solid var(--border);
  transform: translateX(100%); transition: transform .32s var(--ease);
  display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
}
.drawer { visibility: hidden; }
.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(--border); }
.drawer__close { width: 40px; height: 40px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface); color: var(--ink); cursor: pointer; display: grid; place-items: center; font-size: 1.3rem; line-height: 1; }
.drawer__body { padding: 1rem var(--gutter) 2rem; }
.drawer__body ul { list-style: none; padding: 0; margin: 0; }
.drawer__a {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  width: 100%; padding: .9rem 0; border-bottom: 1px solid var(--border);
  font-family: var(--font-head); font-weight: 650; font-size: 1.02rem; color: var(--ink);
  text-decoration: none; background: none; border-left: 0; border-right: 0; border-top: 0; cursor: pointer; text-align: left;
}
.drawer__a .chev { width: .8rem; height: .8rem; transition: transform .2s var(--ease); opacity: .6; }
.drawer__a[aria-expanded="true"] .chev { transform: rotate(180deg); }
.drawer__sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s var(--ease); }
.drawer__sub.is-open { grid-template-rows: 1fr; }
.drawer__sub > div { overflow: hidden; }
.drawer__sub a { display: block; padding: .62rem 0 .62rem .9rem; font-size: .92rem; color: var(--ink-2); text-decoration: none; border-left: 2px solid var(--border); }
.drawer__sub a:hover { color: var(--brand-ink); border-left-color: var(--brand); }
.drawer__cta { margin-top: 1.5rem; display: grid; gap: .65rem; }
.drawer__meta { margin-top: 1.75rem; font-size: .875rem; color: var(--ink-2); display: grid; gap: .5rem; }
.drawer__meta a { color: var(--ink-2); text-decoration: none; display: flex; gap: .5rem; align-items: center; }

.scrim { position: fixed; inset: 0; background: rgb(4 9 20 / .55); backdrop-filter: blur(3px); z-index: 110; opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s; }
.scrim.is-open { opacity: 1; visibility: visible; }

@media (max-width: 1080px) {
  .nav__menu, .nav__actions .btn { display: none; }
  .nav__burger { display: grid; }
  .nav { min-height: 68px; }
}

/* ---------- 7. Hero ----------------------------------------------------- */
.hero {
  position: relative; overflow: clip;
  background: var(--panel); color: var(--panel-ink);
  padding-block: clamp(3.5rem, 7vw, 6.5rem) clamp(4rem, 8vw, 7rem);
}
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 130%;
  background:
    radial-gradient(52rem 32rem at 18% 8%,  rgb(47 107 255 / .38), transparent 62%),
    radial-gradient(40rem 28rem at 88% 22%, rgb(15 191 180 / .26), transparent 60%),
    radial-gradient(30rem 22rem at 60% 95%, rgb(20 50 154 / .35), transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgb(255 255 255 / .035) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / .035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 100%);
}
.hero > * { position: relative; z-index: 1; }
.hero h1, .hero h2 { color: #fff; }
.hero__grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: clamp(2rem, 5vw, 4.25rem); align-items: center; }
@media (max-width: 960px) { .hero__grid { grid-template-columns: 1fr; } }

.hero__copy p.lead { color: #B9C7E4; max-width: 34rem; margin-top: 1.35rem; }
.hero__badge {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .45rem .95rem .45rem .5rem; border-radius: var(--r-pill);
  background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .14);
  font-size: .8rem; font-weight: 550; color: #D6E1F6; margin-bottom: 1.4rem;
  backdrop-filter: blur(6px);
}
.hero__badge b { background: linear-gradient(135deg, var(--accent), #35E3D2); color: #04231F;
  padding: .22rem .6rem; border-radius: var(--r-pill); font-size: .715rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.hero .btn-row { margin-top: 2rem; }
.hero__note { margin-top: 1.5rem; font-size: .84rem; color: #8FA2C4; display: flex; align-items: center; gap: .45rem 1.15rem; flex-wrap: wrap; }
.hero__note span { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.hero__note svg { color: var(--accent); }

.hero__media { position: relative; }
.hero__media img { width: 100%; border-radius: var(--r-xl); box-shadow: 0 40px 80px -30px rgb(0 0 0 / .7); border: 1px solid rgb(255 255 255 / .1); aspect-ratio: 4/3; object-fit: cover; }
.hero__float {
  position: absolute; display: flex; align-items: center; gap: .75rem;
  background: rgb(255 255 255 / .96); color: #0A1329;
  border-radius: var(--r-md); padding: .8rem 1rem; box-shadow: var(--shadow-xl);
  font-size: .82rem; line-height: 1.3; backdrop-filter: blur(10px);
  animation: floaty 6s ease-in-out infinite;
}
.hero__float--a { left: -1.25rem; bottom: 2.25rem; }
.hero__float--b { right: -1rem; top: 1.75rem; animation-delay: -3s; }
.hero__float b { display: block; font-family: var(--font-head); font-size: 1.05rem; font-weight: 750; letter-spacing: -.02em; }
.hero__float .fico { width: 2.3rem; height: 2.3rem; border-radius: 9px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); flex: none; }
:root[data-theme="dark"] .hero__float .fico { background: #E7EEFF; color: #1E4FD8; }
.hero__float .fico svg { width: 1.15rem; height: 1.15rem; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (max-width: 620px) { .hero__float { display: none; } }

/* Inner page hero */
.page-hero {
  background: var(--panel); color: var(--panel-ink);
  padding-block: clamp(3rem, 6vw, 5rem) clamp(3.25rem, 6vw, 5rem);
  position: relative; overflow: clip;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(48rem 26rem at 12% 0%, rgb(47 107 255 / .35), transparent 60%),
              radial-gradient(34rem 22rem at 92% 100%, rgb(15 191 180 / .2), transparent 62%);
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; max-width: 22ch; }
.page-hero p { color: #B9C7E4; max-width: 46rem; margin-top: 1.15rem; font-size: var(--step-1); }
.page-hero .eyebrow { color: #7FE8DE; }

.crumbs { display: flex; flex-wrap: wrap; gap: .45rem; font-size: .82rem; color: #8FA2C4; margin-bottom: 1.35rem; list-style: none; padding: 0; }
.crumbs a { color: #B9C7E4; text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs li + li::before { content: "/"; margin-right: .45rem; opacity: .5; }

/* ---------- 8. Cards ---------------------------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: clamp(1.4rem, 2.4vw, 1.85rem);
  position: relative; overflow: hidden;
  transition: transform .26s var(--ease), box-shadow .26s var(--ease), border-color .26s var(--ease);
}
.card--hover:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand) 42%, var(--border)); }
.card h3 { font-size: var(--step-1); margin-bottom: .55rem; }
.card p { color: var(--ink-2); font-size: .945rem; }
.card__ico {
  width: 3.05rem; height: 3.05rem; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(140deg, color-mix(in srgb, var(--brand) 15%, transparent), color-mix(in srgb, var(--accent) 16%, transparent));
  color: var(--brand-ink); margin-bottom: 1.15rem; flex: none;
}
.card__ico svg { width: 1.5rem; height: 1.5rem; }
.card__link { margin-top: 1.15rem; display: inline-flex; }
.card--media { padding: 0; display: flex; flex-direction: column; }
.card--media img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.card--media .card__body { padding: clamp(1.3rem, 2.2vw, 1.7rem); display: flex; flex-direction: column; flex: 1; }
.card--feature::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.card--feature:hover::after { transform: scaleX(1); }
a.card { text-decoration: none; color: inherit; display: block; }

.numbered { counter-reset: step; }
.numbered .card { padding-top: 2.6rem; }
.numbered .card::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 1.25rem; right: 1.4rem;
  font-family: var(--font-head); font-size: 1.9rem; font-weight: 800;
  color: color-mix(in srgb, var(--brand) 18%, transparent); letter-spacing: -.04em;
}

/* ---------- 9. Stats ---------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.stat { background: var(--surface); padding: clamp(1.4rem, 3vw, 2.15rem) clamp(1.1rem, 2vw, 1.6rem); text-align: center; }
.stat__n { font-family: var(--font-head); font-size: clamp(1.9rem, 4vw, 2.85rem); font-weight: 800; letter-spacing: -.035em; line-height: 1;
  background: linear-gradient(135deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__l { margin-top: .6rem; font-size: .855rem; color: var(--ink-2); line-height: 1.4; }

/* ---------- 10. Split / feature rows ------------------------------------ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--flip .split__media { order: -1; } }
.split--flip .split__media { order: 2; }
.split--flip .split__copy { order: 1; }
.split__media img { width: 100%; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); border: 1px solid var(--border); aspect-ratio: 4/3; object-fit: cover; }
.split__media { position: relative; }
.split__media::before {
  content: ""; position: absolute; inset: auto -1.5rem -1.5rem auto; width: 60%; height: 60%;
  border-radius: var(--r-xl); z-index: -1;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 26%, transparent), color-mix(in srgb, var(--accent) 26%, transparent));
  filter: blur(46px);
}
.checklist { list-style: none; padding: 0; margin-top: 1.6rem; display: grid; gap: .9rem; }
.checklist li { display: flex; gap: .75rem; align-items: flex-start; font-size: .96rem; color: var(--ink-2); }
.checklist svg { flex: none; width: 1.3rem; height: 1.3rem; margin-top: .12rem; color: var(--accent); }
.checklist b { color: var(--ink); font-weight: 650; }

/* ---------- 11. Policy / trust band ------------------------------------- */
.policy-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.policy-item { display: flex; gap: .95rem; align-items: flex-start; }
.policy-item .pico { flex: none; width: 2.65rem; height: 2.65rem; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.policy-item .pico svg { width: 1.3rem; height: 1.3rem; }
.policy-item h4 { font-size: 1.005rem; margin-bottom: .25rem; }
.policy-item p { font-size: .885rem; color: var(--ink-2); }

.pill-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.pill {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .5rem 1rem; border-radius: var(--r-pill);
  border: 1px solid var(--border); background: var(--surface);
  font-size: .855rem; font-weight: 550; color: var(--ink-2);
}
.pill svg { width: 1rem; height: 1rem; color: var(--accent); }
.pill--no { border-color: color-mix(in srgb, #E5484D 35%, var(--border)); color: color-mix(in srgb, #E5484D 80%, var(--ink)); }
.pill--no svg { color: #E5484D; }

/* ---------- 12. Logo wall ----------------------------------------------- */
.logowall { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.logowall div { background: var(--surface); padding: 1.5rem 1rem; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: .92rem; letter-spacing: -.01em; color: var(--ink-3); text-align: center; }

/* ---------- 13. Accordion ----------------------------------------------- */
.accordion { border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.acc { border-bottom: 1px solid var(--border); }
.acc:last-child { border-bottom: 0; }
.acc__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem clamp(1.1rem, 2vw, 1.6rem); background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-head); font-weight: 650; font-size: 1.005rem; color: var(--ink);
  transition: background .16s var(--ease);
}
.acc__q:hover { background: var(--bg-subtle); }
.acc__q .sign { flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-inset); color: var(--brand-ink); font-size: 1rem; line-height: 1; transition: transform .25s var(--ease), background .2s; }
.acc__q[aria-expanded="true"] .sign { transform: rotate(45deg); background: var(--brand); color: #fff; }
.acc__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.acc__a.is-open { grid-template-rows: 1fr; }
.acc__a > div { overflow: hidden; }
.acc__a p { padding: 0 clamp(1.1rem, 2vw, 1.6rem) 1.35rem; color: var(--ink-2); font-size: .95rem; max-width: 62rem; }

/* ---------- 14. CTA band ------------------------------------------------ */
.cta-band { position: relative; overflow: clip; border-radius: var(--r-xl);
  background: linear-gradient(135deg, #14329A 0%, #1E4FD8 45%, #0A8F88 130%);
  color: #fff; padding: clamp(2.5rem, 6vw, 4.25rem) clamp(1.5rem, 5vw, 4rem); }
.cta-band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgb(255 255 255 / .06) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .06) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(80% 80% at 80% 20%, #000, transparent);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; max-width: 20ch; }
.cta-band p { color: rgb(255 255 255 / .84); max-width: 42rem; margin-top: 1rem; font-size: var(--step-1); }
.cta-band .btn-row { margin-top: 2rem; }

/* ---------- 15. Footer -------------------------------------------------- */
.site-footer { background: var(--panel); color: var(--panel-ink-2); padding-block: clamp(3rem, 6vw, 4.5rem) 0; border-top: 1px solid var(--panel-border); }
.site-footer h5 { font-family: var(--font-head); font-size: .775rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: #fff; margin-bottom: 1.05rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: clamp(1.75rem, 3vw, 2.75rem); }
@media (max-width: 1000px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand .logo { color: #fff; margin-bottom: 1.1rem; }
.footer__brand .logo__word-mid { color: #8FB2FF; }
.footer__brand p { font-size: .9rem; color: var(--panel-ink-2); max-width: 30rem; }
.footer__contact { margin-top: 1.5rem; display: grid; gap: .7rem; font-size: .89rem; }
.footer__contact a, .footer__contact span { display: flex; gap: .65rem; align-items: center; color: var(--panel-ink-2); text-decoration: none; }
.footer__contact a:hover { color: #fff; }
.footer__contact svg { width: 1rem; height: 1rem; flex: none; color: var(--accent); }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: .62rem; }
.site-footer ul a { color: var(--panel-ink-2); text-decoration: none; font-size: .89rem; }
.site-footer ul a:hover { color: #fff; }
.footer__legal-note { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding: 1.4rem 0; border-top: 1px solid var(--panel-border);
  font-size: .8rem; color: #7E90B1; line-height: 1.7; }
.footer__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 0 1.6rem; border-top: 1px solid var(--panel-border); font-size: .82rem; }
.footer__bar nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer__bar a { color: #7E90B1; text-decoration: none; }
.footer__bar a:hover { color: #fff; }

/* ---------- 16. Forms --------------------------------------------------- */
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: clamp(1.5rem, 3.5vw, 2.5rem); box-shadow: var(--shadow-md); }
.field { display: grid; gap: .45rem; margin-bottom: 1.05rem; }
.field label { font-family: var(--font-head); font-size: .855rem; font-weight: 600; color: var(--ink); }
.field label .req { color: #E5484D; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--ink);
  background: var(--bg); border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  padding: .8rem .95rem; transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--brand); box-shadow: var(--ring); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field--row { grid-template-columns: 1fr; } }
.field-hint { font-size: .8rem; color: var(--ink-3); }
.checkbox { display: flex; gap: .65rem; align-items: flex-start; font-size: .855rem; color: var(--ink-2); }
.checkbox input { width: 1.05rem; height: 1.05rem; margin-top: .18rem; flex: none; accent-color: var(--brand); }
.alert { padding: .95rem 1.15rem; border-radius: var(--r-sm); font-size: .9rem; margin-bottom: 1.25rem; border: 1px solid; }
.alert--ok  { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 45%, transparent); color: color-mix(in srgb, var(--accent) 65%, var(--ink)); }
.alert--err { background: color-mix(in srgb, #E5484D 10%, transparent); border-color: color-mix(in srgb, #E5484D 35%, transparent); color: color-mix(in srgb, #E5484D 75%, var(--ink)); }

/* ---------- 17. Legal pages --------------------------------------------- */
.legal-layout { display: grid; grid-template-columns: 17rem 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 940px) { .legal-layout { grid-template-columns: 1fr; } .legal-toc { position: static !important; } }
.legal-toc { position: sticky; top: 6.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.35rem; }
.legal-toc h5 { font-family: var(--font-head); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .9rem; }
.legal-toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: .1rem; counter-reset: toc; max-height: 60vh; overflow-y: auto; }
.legal-toc a { display: block; padding: .42rem .55rem; border-radius: var(--r-xs); font-size: .855rem; color: var(--ink-2); text-decoration: none; line-height: 1.4; }
.legal-toc a:hover { background: var(--bg-subtle); color: var(--brand-ink); }
.legal-toc a.is-active { background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }

.prose { max-width: 48rem; }
.prose h2 { font-size: var(--step-2); margin-top: 3rem; padding-top: .5rem; scroll-margin-top: 6.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--step-1); margin-top: 1.9rem; }
.prose p, .prose li { color: var(--ink-2); font-size: .975rem; line-height: 1.72; }
.prose p { margin-top: 1rem; }
.prose ul, .prose ol { margin-top: 1rem; display: grid; gap: .55rem; padding-left: 1.3rem; }
.prose li::marker { color: var(--brand); }
.prose table { width: 100%; border-collapse: collapse; margin-top: 1.25rem; font-size: .9rem; }
.prose th, .prose td { text-align: left; padding: .8rem 1rem; border: 1px solid var(--border); vertical-align: top; }
.prose th { background: var(--bg-subtle); font-family: var(--font-head); font-weight: 650; color: var(--ink); }
.prose td { color: var(--ink-2); }
.table-wrap { overflow-x: auto; }
.callout { margin-top: 1.5rem; padding: 1.15rem 1.35rem; border-radius: var(--r-md); border: 1px solid var(--border);
  border-left: 3px solid var(--brand); background: var(--bg-subtle); }
.callout p { margin-top: 0; font-size: .93rem; }
.callout--warn { border-left-color: var(--warn); }
.doc-meta { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; font-size: .84rem; color: var(--ink-3); padding-bottom: 1.5rem; margin-bottom: 2rem; border-bottom: 1px solid var(--border); }

/* ---------- 18. Reveal animation ---------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- 19. Utilities ----------------------------------------------- */
.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; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .75rem; } .mt-2 { margin-top: 1.5rem; } .mt-3 { margin-top: 2.25rem; } .mt-4 { margin-top: 3rem; }
.text-accent { color: var(--accent); }
.grad-text { background: linear-gradient(120deg, var(--brand) 10%, var(--accent) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .grad-text { background: linear-gradient(120deg, #8FB2FF 5%, #35E3D2 85%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- 20. Small-screen overflow guards -------------------------------
   Elements that legitimately use nowrap or inline-flex on desktop can force
   the page wider than a phone viewport. These rules let them reflow. */
.hero__badge { flex-wrap: wrap; max-width: 100%; }

@media (max-width: 720px) {
  .topbar__links { gap: 1rem; font-size: .78rem; }
  .topbar__links a[href^="mailto"] { display: none; }
  .hero__badge { font-size: .74rem; padding: .4rem .8rem .4rem .45rem; }
  .hero__badge b { font-size: .66rem; }
}

@media (max-width: 520px) {
  .btn { white-space: normal; text-align: center; }
  .btn-row > .btn { flex: 1 1 100%; }
  .stats { grid-template-columns: 1fr 1fr; }
  .crumbs { font-size: .76rem; }
  .doc-meta { gap: .4rem; }
}

@media (max-width: 400px) {
  .stats { grid-template-columns: 1fr; }
}

/* Nothing may push the document wider than the viewport. */
/* The off-canvas drawer is position:fixed, so body overflow cannot clip it.
   Clipping on the root element stops it creating horizontal scroll. */
html { overflow-x: clip; }
html, body { max-width: 100%; }
.container, .section, .hero, .page-hero { min-width: 0; }
.grid > *, .split > *, .stats > * { min-width: 0; }
.table-wrap { max-width: 100%; }
