/* ============================================================
   APEX HUB — Main stylesheet (clean rebuild, ex-Webflow)
   Dark B2B theme · fluid em-based scaling · self-hosted
   ------------------------------------------------------------
   1. Design tokens          5. Layout / sections
   2. Reset & base           6. Components
   3. Fluid type system      7. Page sections
   4. Typography             8. Responsive
   ============================================================ */

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
  /* ----- Colors ----- */
  --blue: #04b8f4;
  --blue-soft: #52c6ec;
  --bg: #020710;
  --ink: #080e17;
  --white: #ffffff;
  --light: #fbfbfb;
  --green: #22c55e;
  --red: #ef4444;

  --text: #ffffff;
  --text-fade: #ffffffba;        /* 73% */
  --text-dim: #ffffff80;         /* 50% */
  --border: #ffffff1f;           /* 12% */
  --border-soft: #ffffff14;      /* 8%  */

  --surface: #0a111c;
  --surface-2: #0c1521;
  --surface-3: #111c2b;
  --blue-4: #04b8f40a;
  --blue-25: #04b8f440;

  /* ----- Gradients ----- */
  --gr-blue: linear-gradient(93deg, #82d5f1 -5%, #52c6ec 49%, #04b8f4 103%);
  --gr-btn: linear-gradient(93deg, #52c6ec -5%, #04b8f4 103%);
  --gr-section: linear-gradient(180deg, rgba(4,184,244,.02), rgba(255,255,255,.02)), var(--ink);

  /* ----- Typography ----- */
  --font-head: "Instrument Sans", sans-serif;
  --font-body: "Geist", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;

  /* ----- Radius & shadow ----- */
  --r-sm: .5rem;
  --r-md: .875rem;
  --r-lg: 1.25rem;
  --r-xl: 1.75rem;
  --r-pill: 999px;
  --shadow: 0 1.5rem 3rem -1rem rgba(0,0,0,.55);
  --shadow-blue: 0 .5rem 2rem -0.5rem rgba(4,184,244,.45);

  /* ----- Motion ----- */
  --smooth: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: .2s var(--smooth);
  --t: .45s var(--smooth);

  /* ----- Fluid scaling system (replicates Webflow design intent) -----
     root font-size is derived from viewport width so all em sizes scale */
  --size-unit: 16;
  --ideal: 1440;
  --c-min: 1080px;
  --c-max: 1440px;
  --container: clamp(var(--c-min), 100vw, var(--c-max));

  /* ----- Responsive font sizes (em, relative to fluid root) ----- */
  --fs-h1: 5.5em;
  --fs-h2: 4.5em;
  --fs-h3: 2em;
  --fs-h4: 1.5em;
  --fs-h5: 1.2em;
  --fs-h6: 1em;
  --fs-xl: 1.25em;
  --fs-l: 1.125em;
  --fs-m: 1em;
  --fs-s: .875em;
  --fs-xs: .75em;

  /* ----- Spacing scale (em) ----- */
  --sp-2: .125em;  --sp-4: .25em;  --sp-8: .5em;   --sp-12: .75em;
  --sp-16: 1em;    --sp-20: 1.25em; --sp-24: 1.5em; --sp-32: 2em;
  --sp-40: 2.5em;  --sp-48: 3em;   --sp-64: 4em;   --sp-80: 5em;  --sp-96: 6em;

  /* ----- Layout ----- */
  --max-width: 75em;             /* content max */
  --pad-x: 2.5em;                /* horizontal page padding */
  --section-y: 5em;              /* default section vertical padding */
}

html { font-size: calc(var(--container) / (var(--ideal) / var(--size-unit))); }

@media (max-width: 991px) {
  :root { --ideal: 834; --c-min: 768px; --c-max: 991px; }
}
@media (max-width: 767px) {
  :root {
    --ideal: 550; --c-min: 480px; --c-max: 767px;
    --fs-h1: 2.75em; --fs-h2: 2em; --fs-h3: 1.5em;
    --pad-x: 1.25em; --section-y: 3.75em;
  }
}
@media (max-width: 479px) {
  :root { --ideal: 390; --c-min: 320px; --c-max: 479px; }
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-m);
  line-height: 1.4;
  letter-spacing: -.01em;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--blue); color: #fff; }

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

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
  font-family: var(--font-head);
  line-height: 1.1;
  letter-spacing: -.035em;
  font-weight: 600;
  text-wrap: balance;
}
h1, .h1 { font-size: var(--fs-h1); }
h2, .h2 { font-size: var(--fs-h2); }
h3, .h3 { font-size: var(--fs-h3); font-weight: 500; }
h4, .h4 { font-size: var(--fs-h4); font-weight: 500; }
h5, .h5 { font-size: var(--fs-h5); font-weight: 500; letter-spacing: -.02em; }
h6, .h6 { font-size: var(--fs-h6); font-weight: 500; letter-spacing: -.02em; }

p { text-wrap: pretty; }

.text-fade { color: var(--text-fade); }
.text-dim  { color: var(--text-dim); }
.text-blue { color: var(--blue); }
.text-grad {
  background: var(--gr-blue);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* Eyebrow / kicker label (mono, uppercase) */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.eyebrow::before {
  content: ""; width: .45em; height: .45em; border-radius: 50%;
  background: var(--blue); box-shadow: 0 0 .6em var(--blue);
}
.eyebrow.is-center { justify-content: center; }

.lead { font-size: var(--fs-l); color: var(--text-fade); line-height: 1.5; }

/* ============================================================
   4. LAYOUT / SECTIONS
   ============================================================ */
.container {
  width: 100%;
  max-width: calc(var(--max-width) + (var(--pad-x) * 2));
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section { position: relative; padding-block: var(--section-y); }
.section--tight { padding-block: var(--sp-48); }
.section--alt { background: var(--gr-section); }

.section-head { max-width: 40em; }
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: var(--sp-16); }
.section-head h2 { margin-bottom: var(--sp-16); }

.u-relative { position: relative; z-index: 1; }
.u-center { text-align: center; }
.grid { display: grid; gap: var(--sp-24); }

/* Decorative top glow */
.bg-glow {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
}
.bg-glow img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }

/* ============================================================
   5. COMPONENTS — Buttons
   ============================================================ */
.btn {
  --btn-bg: var(--gr-btn);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .8em 1.4em;
  font-family: var(--font-head);
  font-size: var(--fs-s);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: #02131c;
  white-space: nowrap;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-blue); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .btn-arrow {
  display: inline-flex; width: 1.5em; height: 1.5em; border-radius: 50%;
  align-items: center; justify-content: center;
  background: rgba(2,19,28,.18);
}
.btn .btn-arrow svg { width: .8em; height: .8em; }

.btn--ghost {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover { background: var(--surface-3); box-shadow: none; }
.btn--ghost .btn-arrow { background: rgba(255,255,255,.08); }

.btn--lg { padding: 1em 1.7em; font-size: var(--fs-m); }
.btn--block { display: flex; width: 100%; }

/* ============================================================
   6. COMPONENTS — Navigation
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-24);
  padding: var(--sp-16) var(--pad-x);
  transition: background var(--t), backdrop-filter var(--t), border-color var(--t);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(4,9,18,.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border-soft);
}
.nav__logo { display: flex; align-items: center; }
.logo {
  font-family: var(--font-mono); font-weight: 600; line-height: .92;
  font-size: 1.05em; letter-spacing: -.02em; color: #fff; text-transform: uppercase;
}
.logo b { color: var(--blue); font-weight: 600; }
.logo span { display: block; }

.nav__menu { display: flex; align-items: center; gap: var(--sp-24); }
.nav__menu a {
  font-size: var(--fs-s); color: var(--text-fade);
  transition: color var(--t-fast);
}
.nav__menu a:hover { color: #fff; }

.nav__actions { display: flex; align-items: center; gap: var(--sp-12); }
.nav__toggle { display: none; }

/* Mobile nav */
@media (max-width: 991px) {
  .nav__menu, .nav__actions .btn--ghost { display: none; }
  .nav__toggle {
    display: inline-flex; flex-direction: column; gap: 5px;
    width: 2.6em; height: 2.6em; align-items: center; justify-content: center;
    border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface-2);
  }
  .nav__toggle span { width: 1.1em; height: 2px; background: #fff; border-radius: 2px; transition: var(--t-fast); }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav__menu {
    position: fixed; inset: 4.5em 1em auto 1em;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
    padding: var(--sp-8); box-shadow: var(--shadow);
    opacity: 0; transform: translateY(-10px); pointer-events: none;
    transition: opacity var(--t), transform var(--t);
  }
  .nav.is-open .nav__menu { display: flex; opacity: 1; transform: none; pointer-events: auto; }
  .nav__menu a { padding: .9em 1em; font-size: 1em; border-radius: var(--r-sm); }
  .nav__menu a:hover { background: var(--surface-2); }
}

/* ============================================================
   6b. COMPONENTS — Cards & misc
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  padding: var(--sp-24);
  transition: border-color var(--t), transform var(--t), background var(--t);
}
.card:hover { border-color: var(--border); }
.card__media {
  border-radius: var(--r-md); overflow: hidden; margin-bottom: var(--sp-20);
  background: var(--surface-3); aspect-ratio: 16 / 10;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card h3 { margin-bottom: var(--sp-12); }
.card p { color: var(--text-fade); font-size: var(--fs-s); line-height: 1.55; }

/* Stat */
.stat__num {
  font-family: var(--font-head); font-weight: 600;
  font-size: var(--fs-h4); letter-spacing: -.03em; line-height: 1;
}
.stat__label { font-size: var(--fs-xs); color: var(--text-dim); margin-top: .35em; }
.stats { display: flex; gap: var(--sp-40); flex-wrap: wrap; }

/* Pill badge */
.badge {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .4em .8em; border-radius: var(--r-pill);
  background: var(--surface-2); border: 1px solid var(--border-soft);
  font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-fade);
}

/* Divider line */
.hr { height: 1px; background: var(--border-soft); border: 0; }

/* ============================================================
   7. PAGE SECTIONS
   ============================================================ */

/* ---------- Hero ---------- */
.hero { padding-top: 9em; padding-bottom: var(--sp-80); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__bg .hero-light {
  position: absolute; top: -10%; left: 50%; transform: translateX(-50%);
  width: 120%; max-width: none; opacity: .8;
}
.hero__bg .hero-map {
  position: absolute; top: 2em; left: 50%; transform: translateX(-50%);
  width: 70%; opacity: .14; mix-blend-mode: screen;
}
.hero__inner { position: relative; z-index: 2; }
.hero__top { min-height: 24em; }
.hero h1 { margin: var(--sp-16) 0 var(--sp-24); }
.hero h1 .globe {
  display: inline-block; width: .9em; height: .9em; vertical-align: -.06em;
  margin: 0 .12em; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 1.5em rgba(4,184,244,.5);
}
.hero h1 .globe img { width: 100%; height: 100%; object-fit: cover; }
.hero__grid {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--sp-48);
  align-items: end; margin-top: var(--sp-32);
}
.hero__copy p { max-width: 26em; color: var(--text-fade); font-size: var(--fs-l); }
.hero__actions { display: flex; gap: var(--sp-12); margin-top: var(--sp-24); flex-wrap: wrap; }
.hero__stats { justify-content: flex-end; }

/* ---------- Services slider ---------- */
.slider { position: relative; }
.slider__track {
  display: flex; gap: var(--sp-24);
  overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding-bottom: var(--sp-8);
  scrollbar-width: none;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__track > * { scroll-snap-align: start; flex: 0 0 clamp(16em, 24vw, 21em); }
.slider__nav { display: flex; gap: var(--sp-8); }
.slider__btn {
  width: 2.8em; height: 2.8em; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface-2);
  display: inline-flex; align-items: center; justify-content: center;
  transition: var(--t-fast);
}
.slider__btn:hover { background: var(--surface-3); border-color: var(--blue-25); }
.slider__btn:disabled { opacity: .35; cursor: default; }
.slider__btn svg { width: 1.1em; height: 1.1em; }

.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--sp-24); flex-wrap: wrap; }

/* ---------- Shipping (split) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-48); align-items: center; }
.feature-list { display: grid; gap: var(--sp-12); }
.feature-item {
  display: flex; gap: var(--sp-16); align-items: flex-start;
  padding: var(--sp-16); border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--border-soft);
}
.feature-item img { width: 1.6em; height: 1.6em; flex: none; margin-top: .1em; }
.feature-item h3 { font-size: var(--fs-h5); margin-bottom: .25em; }
.feature-item p { font-size: var(--fs-s); color: var(--text-fade); }

/* ---------- Testimonials ---------- */
.testi-track > * { flex: 0 0 clamp(20em, 70vw, 34em); }
.testi {
  display: grid; gap: var(--sp-24);
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--r-lg); padding: var(--sp-32);
  background-image: linear-gradient(180deg, rgba(4,184,244,.05), transparent 40%);
}
.testi__stars { width: 8em; }
.testi__quote { font-size: var(--fs-l); line-height: 1.5; }
.testi__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--sp-24); flex-wrap: wrap; }
.testi__author { display: flex; gap: var(--sp-12); align-items: center; }
.testi__author img { width: 1.4em; height: 1.4em; }
.testi__name { font-weight: 500; }
.testi__role { font-size: var(--fs-xs); color: var(--text-dim); }
.testi__metrics { display: flex; gap: var(--sp-32); text-align: right; }

/* ---------- How it works (timeline) ---------- */
.timeline { display: grid; gap: var(--sp-16); counter-reset: step; }
.timeline__item {
  display: grid; grid-template-columns: auto 1fr; gap: var(--sp-24);
  padding: var(--sp-24); border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border-soft);
}
.timeline__day {
  font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: .08em;
  text-transform: uppercase; color: var(--blue);
  display: flex; flex-direction: column; align-items: flex-start; gap: .4em;
}
.timeline__day b { font-family: var(--font-head); font-size: var(--fs-h4); color: #fff; font-weight: 600; }
.timeline__item h3 { font-size: var(--fs-h5); margin-bottom: var(--sp-8); }
.timeline__item p { color: var(--text-fade); font-size: var(--fs-s); }

/* ---------- Why choose (compare) ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-24); }
.compare__col {
  padding: var(--sp-24); border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border-soft);
}
.compare__col.is-good { background: linear-gradient(180deg, rgba(4,184,244,.06), transparent 60%), var(--surface); border-color: var(--blue-25); }
.compare__col h3 { font-size: var(--fs-h5); margin-bottom: var(--sp-20); }
.compare__list { display: grid; gap: var(--sp-12); }
.compare__list li { display: flex; gap: var(--sp-12); align-items: center; font-size: var(--fs-s); color: var(--text-fade); }
.compare__list img { width: 1.3em; height: 1.3em; flex: none; }

/* Photo marquee */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: var(--sp-16); width: max-content; animation: marquee 48s linear infinite; }
.marquee__track img { height: 13em; width: auto; border-radius: var(--r-md); object-fit: cover; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Partner ---------- */
.partner { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--sp-48); align-items: center; }
.partner__media { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-16); }
.partner__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-lg); }
.partner__media img:first-child { margin-top: var(--sp-32); }
.partner p { color: var(--text-fade); margin-bottom: var(--sp-24); }
.partner p + p { margin-top: var(--sp-16); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: var(--sp-12); max-width: 52em; margin-inline: auto; }
.faq__item { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r-md); overflow: hidden; }
.faq__q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: var(--sp-16);
  padding: var(--sp-20) var(--sp-24); text-align: left;
  font-family: var(--font-head); font-weight: 500; font-size: var(--fs-l); letter-spacing: -.02em;
}
.faq__icon { flex: none; width: 1.4em; height: 1.4em; position: relative; transition: transform var(--t); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; inset: 50% 0 auto 0; height: 2px; background: var(--blue); transform: translateY(-50%); }
.faq__icon::after { transform: translateY(-50%) rotate(90deg); transition: transform var(--t); }
.faq__item.is-open .faq__icon::after { transform: translateY(-50%) rotate(0); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a-inner { overflow: hidden; }
.faq__a p { padding: 0 var(--sp-24) var(--sp-8); color: var(--text-fade); font-size: var(--fs-m); line-height: 1.55; }
.faq__a p:last-child { padding-bottom: var(--sp-24); }

/* ---------- CTA banner ---------- */
.cta {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl); border: 1px solid var(--border);
  background: radial-gradient(120% 140% at 50% -20%, rgba(4,184,244,.18), transparent 55%), var(--ink);
  padding: var(--sp-80) var(--sp-48); text-align: center;
}
.cta h2 .globe { display:inline-block; width:.9em; height:.9em; vertical-align:-.06em; margin:0 .12em; border-radius:50%; overflow:hidden; }
.cta h2 .globe img { width:100%; height:100%; object-fit:cover; }
.cta__stats { justify-content: center; margin: var(--sp-24) 0; }
.cta__actions { display: flex; gap: var(--sp-12); justify-content: center; flex-wrap: wrap; }
.cta p { max-width: 34em; margin: 0 auto var(--sp-24); color: var(--text-fade); }

/* ============================================================
   6c. FOOTER
   ============================================================ */
.footer { background: var(--ink); border-top: 1px solid var(--border-soft); padding-block: var(--sp-64) var(--sp-40); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--sp-40); }
.footer__brand .logo { margin-bottom: var(--sp-16); }
.footer__brand p { color: var(--text-dim); font-size: var(--fs-s); margin-bottom: var(--sp-8); }
.footer__status { display: inline-flex; align-items: center; gap: .5em; font-size: var(--fs-xs); color: var(--text-fade); }
.footer__status::before { content: ""; width: .5em; height: .5em; border-radius: 50%; background: var(--green); box-shadow: 0 0 .6em var(--green); }
.footer__col h4 { font-family: var(--font-mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); margin-bottom: var(--sp-16); font-weight: 400; }
.footer__col a { display: block; font-size: var(--fs-s); color: var(--text-fade); padding: .3em 0; transition: color var(--t-fast); }
.footer__col a:hover { color: #fff; }
.footer__social { display: flex; gap: var(--sp-8); flex-wrap: wrap; }
.footer__social a {
  width: 2.4em; height: 2.4em; border-radius: var(--r-sm);
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-soft); background: var(--surface-2); padding: 0;
}
.footer__social a:hover { border-color: var(--blue-25); color: var(--blue); }
.footer__social svg { width: 1.1em; height: 1.1em; }
.footer__bottom { display: flex; justify-content: space-between; gap: var(--sp-16); margin-top: var(--sp-48); padding-top: var(--sp-24); border-top: 1px solid var(--border-soft); font-size: var(--fs-xs); color: var(--text-dim); flex-wrap: wrap; }

/* ============================================================
   8. SCROLL REVEAL
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(1.5em); transition: opacity .7s var(--smooth), transform .7s var(--smooth); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   9. RICH TEXT (legal pages)
   ============================================================ */
.rich-text { max-width: 50em; color: var(--text-fade); }
.rich-text h1 { font-size: var(--fs-h2); margin-bottom: var(--sp-24); color: #fff; }
.rich-text h2 { font-size: var(--fs-h3); margin: var(--sp-40) 0 var(--sp-16); color: #fff; }
.rich-text h3 { font-size: var(--fs-h4); margin: var(--sp-32) 0 var(--sp-12); color: #fff; }
.rich-text p { margin-bottom: var(--sp-16); line-height: 1.65; }
.rich-text ul, .rich-text ol { margin: 0 0 var(--sp-16) 1.2em; display: grid; gap: var(--sp-8); }
.rich-text li { list-style: disc; line-height: 1.6; }
.rich-text ol li { list-style: decimal; }
.rich-text a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.rich-text strong { color: #fff; font-weight: 600; }
.page-hero { padding-top: 9em; padding-bottom: var(--sp-32); }
.page-hero .lead { max-width: 42em; margin-top: var(--sp-16); }

/* ---------- Long-form article (landing pages) ---------- */
.article { max-width: 52em; }
.article.is-wide { max-width: 64em; }
.article > section { margin-bottom: var(--sp-48); }
.article h2 { font-size: var(--fs-h3); margin-bottom: var(--sp-16); }
.article h3 { font-size: var(--fs-h5); color: #fff; margin: var(--sp-24) 0 var(--sp-8); }
.article p { color: var(--text-fade); line-height: 1.65; margin-bottom: var(--sp-16); }
.article ul, .article ol { margin: 0 0 var(--sp-16) 1.2em; display: grid; gap: var(--sp-8); }
.article li { color: var(--text-fade); line-height: 1.6; list-style: disc; }
.article ol li { list-style: decimal; }
.article .eyebrow { margin-bottom: var(--sp-16); }
/* card-style grouping for benefit/process sub-blocks */
.article .sub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-16); margin: 0 0 var(--sp-16); }
.article .sub-grid .sub { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r-md); padding: var(--sp-20); }
.article .sub-grid .sub h3 { margin-top: 0; }
.article .sub-grid .sub p { margin-bottom: 0; font-size: var(--fs-s); }
@media (max-width: 767px) { .article .sub-grid { grid-template-columns: 1fr; } }

/* ============================================================
   11. FORMS (contact)
   ============================================================ */
.form-wrap { max-width: 38em; }
.form-grid { display: grid; gap: var(--sp-16); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-16); }
.field { display: grid; gap: var(--sp-8); }
.field label { font-size: var(--fs-s); color: var(--text-fade); }
.field .req { color: var(--blue); }
.form-input {
  width: 100%;
  padding: .85em 1em;
  font-family: var(--font-body); font-size: var(--fs-m);
  color: #fff; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); outline: 2px solid transparent; outline-offset: 0;
  transition: outline-color var(--t-fast), border-color var(--t-fast);
}
.form-input::placeholder { color: var(--text-dim); }
.form-input:focus { outline-color: var(--blue-25); border-color: var(--blue-25); }
.form-input.has-error { border-color: var(--red); outline-color: var(--red); }
textarea.form-input { min-height: 9em; resize: vertical; }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: var(--fs-xs); color: var(--text-dim); }
.alert { padding: var(--sp-16) var(--sp-20); border-radius: var(--r-md); margin-bottom: var(--sp-24); font-size: var(--fs-s); border: 1px solid; }
.alert--ok  { background: rgba(34,197,94,.08);  border-color: rgba(34,197,94,.35); color: #d6ffe6; }
.alert--err { background: rgba(239,68,68,.08);  border-color: rgba(239,68,68,.35); color: #ffe0e0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-48); align-items: start; }
.contact-side .badge { margin-bottom: var(--sp-16); }
.contact-side ul { display: grid; gap: var(--sp-12); margin-top: var(--sp-24); }
.contact-side li { display: flex; gap: var(--sp-12); align-items: center; color: var(--text-fade); font-size: var(--fs-s); }
.contact-side li img { width: 1.3em; height: 1.3em; }
@media (max-width: 767px) { .form-row, .contact-grid { grid-template-columns: 1fr; } }

/* ============================================================
   10. RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
  .hero__grid, .split, .partner, .compare, .footer__grid { grid-template-columns: 1fr; }
  .hero__stats { justify-content: flex-start; }
  .testi__metrics { text-align: left; }
  .footer__grid { gap: var(--sp-32); }
  .partner__media img:first-child { margin-top: 0; }
}
@media (max-width: 767px) {
  .hero { padding-top: 7em; }
  .head-row { align-items: flex-start; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .cta { padding: var(--sp-48) var(--sp-24); }
  .stats { gap: var(--sp-24); }
}
@media (max-width: 479px) {
  .footer__grid { grid-template-columns: 1fr; }
  .testi__foot { flex-direction: column; align-items: flex-start; }
}
