/* =========================================================================
   DME healthcare website — design system
   1. Tokens          5. Header / navigation    9. Forms
   2. Reset & base    6. Hero                  10. Footer
   3. Layout          7. Sections & components 11. Motion
   4. Buttons         8. Prose                 12. Print
   ========================================================================= */

/* ------------------------------------------------------------ 1. Tokens -- */
:root {
  /* Brand — deep navy primary, one teal accent, charcoal type */
  --navy-950: #061527;
  --navy-900: #0a1f3a;
  --navy-800: #102b4e;
  --navy-700: #173d6d;
  --blue-700: #0e4a92;
  --blue-600: #1256a8;
  --blue-500: #1b6fd0;
  --blue-200: #b9d3f4;
  --blue-100: #dce9fa;
  --blue-50:  #eef4fd;
  --teal-600: #0a7d73;
  --teal-500: #0fa396;
  --teal-100: #cdeeea;
  --teal-50:  #e8f7f5;

  /* Neutrals */
  --ink-900: #141b26;
  --ink-800: #1f2937;
  --ink-700: #33415a;
  --ink-500: #5b6879;
  --ink-400: #626e80;
  --line:        #e3e9f2;
  --line-strong: #cdd8e8;
  --surface: #ffffff;
  --tint:    #f5f8fc;
  --tint-2:  #eaf1fa;

  /* Type */
  --font-display: "Instrument Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --text-xs:   0.8125rem;
  --text-sm:   0.9063rem;
  --text-base: 1.0313rem;
  --text-lg:   clamp(1.0938rem, 1.03rem + 0.28vw, 1.1875rem);
  --text-xl:   clamp(1.1875rem, 1.09rem + 0.42vw, 1.375rem);
  --h4:        clamp(1.0625rem, 1.01rem + 0.25vw, 1.1875rem);
  --h3:        clamp(1.25rem, 1.15rem + 0.44vw, 1.5rem);
  --h2:        clamp(1.875rem, 1.42rem + 1.95vw, 2.9375rem);
  --h1:        clamp(2.375rem, 1.55rem + 3.5vw, 4.0625rem);

  /* Space */
  --gutter: clamp(1.25rem, 0.9rem + 1.6vw, 2.5rem);
  --section-y: clamp(4rem, 2.6rem + 5.6vw, 7.5rem);
  --container: 1200px;
  --container-wide: 1340px;

  /* Surface treatment */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --shadow-xs: 0 1px 2px rgba(16, 43, 78, 0.06);
  --shadow-sm: 0 2px 8px rgba(16, 43, 78, 0.06), 0 1px 2px rgba(16, 43, 78, 0.04);
  --shadow-md: 0 12px 28px -12px rgba(16, 43, 78, 0.18), 0 4px 10px -4px rgba(16, 43, 78, 0.08);
  --shadow-lg: 0 28px 60px -28px rgba(10, 31, 58, 0.32), 0 10px 24px -12px rgba(16, 43, 78, 0.12);
  --ring: 0 0 0 3px rgba(27, 111, 208, 0.32);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-back: cubic-bezier(0.34, 1.42, 0.62, 1);
  --ease-3d: cubic-bezier(0.16, 1, 0.3, 1);
  --perspective-hero: 1200px;
  --perspective-card: 1000px;
  --perspective-stage: 1100px;
  --header-h: 76px;

  /* The bar compresses as --sp ramps 0 -> 1 (written by site.js). Anything
     that must line up with the bar's *live* height reads --header-cur;
     --header-h stays the resting height, used for scroll padding. */
  --header-shrink: 14px;
  --header-cur: calc(var(--header-h) - var(--sp, 0) * var(--header-shrink));
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

/* Lenis smooth scrolling integration */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-scrolling iframe {
  pointer-events: none;
}


body {
  margin: 0;
  background: var(--surface);
  color: var(--ink-700);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  font-feature-settings: "kern", "liga", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink-900);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.022em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: var(--h1); letter-spacing: -0.032em; }
h2 { font-size: var(--h2); letter-spacing: -0.028em; }
h3 { font-size: var(--h3); line-height: 1.25; }
h4 { font-size: var(--h4); line-height: 1.35; letter-spacing: -0.014em; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-700); }

img, svg, video { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 1.15em; padding-left: 1.25em; }
li { margin-bottom: 0.4em; }
strong { font-weight: 600; color: var(--ink-900); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

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

::selection { background: var(--blue-100); color: var(--navy-900); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--navy-900);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; color: #fff; }

.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;
  opacity: 0;
  pointer-events: none;
}

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

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(2.75rem, 2rem + 3vw, 4.5rem); }
.section--tint { background: var(--tint); }
.section--tint-2 { background: linear-gradient(180deg, var(--tint) 0%, var(--tint-2) 100%); }
.section--dark { background: var(--navy-900); color: rgba(255, 255, 255, 0.78); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark a:not(.btn) { color: var(--teal-100); }

.section-head { max-width: 44rem; margin-bottom: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { font-size: var(--text-lg); color: var(--ink-500); margin-bottom: 0; }
.section--dark .section-head p { color: rgba(255, 255, 255, 0.72); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--teal-500);
}
.section-head--center .eyebrow { justify-content: center; }
.section--dark .eyebrow { color: var(--teal-100); }

.lead { font-size: var(--text-lg); color: var(--ink-500); }

.grid { display: grid; gap: clamp(1rem, 0.7rem + 1.2vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ----------------------------------------------------------- 4. Buttons -- */
.btn {
  --btn-bg: var(--blue-600);
  --btn-fg: #fff;
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.6rem;
  min-height: 52px;
  border: 1px solid var(--btn-border);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
              background-color 0.18s var(--ease), color 0.18s var(--ease),
              border-color 0.18s var(--ease);
}
.btn:hover { transform: translateY(-1px); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.2s var(--ease); }
.btn.is-magnetic { transition: transform 0.15s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.2s var(--ease); }
.btn.is-magnetic svg { transition: transform 0.15s cubic-bezier(0.2, 0, 0.2, 1); }

.btn--primary { box-shadow: 0 8px 20px -8px rgba(18, 86, 168, 0.65); }
.btn--primary:hover { --btn-bg: var(--blue-700); box-shadow: 0 12px 26px -8px rgba(18, 86, 168, 0.7); }

.btn--secondary {
  --btn-bg: #fff;
  --btn-fg: var(--navy-800);
  --btn-border: var(--line-strong);
  box-shadow: var(--shadow-xs);
}
.btn--secondary:hover { --btn-border: var(--blue-500); --btn-fg: var(--blue-700); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--navy-800);
  --btn-border: transparent;
  padding-inline: 0.9rem;
}
.btn--ghost:hover { --btn-bg: var(--blue-50); --btn-fg: var(--blue-700); }

.btn--light {
  --btn-bg: #fff;
  --btn-fg: var(--navy-900);
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.5);
}
.btn--light:hover { --btn-bg: var(--blue-50); }

.btn--outline-light {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-border: rgba(255, 255, 255, 0.4);
}
.btn--outline-light:hover { --btn-bg: rgba(255, 255, 255, 0.1); --btn-border: rgba(255, 255, 255, 0.75); }

.btn--sm { min-height: 44px; padding: 0.6rem 1.2rem; font-size: var(--text-xs); }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
  color: var(--blue-600);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ------------------------------------------------- 5. Header/navigation -- */
/* Glass bar. --sp (0 -> 1 over the first stretch of scroll, set by site.js)
   drives the frost, the blue tint and the depth, so the bar thickens into
   frosted glass as the page moves under it instead of snapping at a threshold.
   NOTE: backdrop-filter here makes the header a containing block for any
   fixed-position descendant — that is why the mobile nav panel lives outside
   <header>. Do not move it back in. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, calc(0.72 + var(--sp, 0) * 0.24)),
      rgba(244, 249, 255, calc(0.66 + var(--sp, 0) * 0.28)));
  backdrop-filter: saturate(calc(150% + var(--sp, 0) * 60%)) blur(calc(10px + var(--sp, 0) * 10px));
  -webkit-backdrop-filter: saturate(calc(150% + var(--sp, 0) * 60%)) blur(calc(10px + var(--sp, 0) * 10px));
  border-bottom: 1px solid transparent;
  box-shadow: 0 calc(var(--sp, 0) * 18px) calc(var(--sp, 0) * 40px) -28px rgba(10, 31, 58, 0.55);
  transition: border-color 0.25s var(--ease), transform 0.45s var(--ease);
}

/* Reading progress: a hairline filling across the bottom of the bar as the
   page is consumed. --pp (0 -> 1) is written by site.js in the same rAF pass
   as --sp, so it costs one extra custom-property write per frame. */
.site-header::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  z-index: 1;
  transform: scaleX(var(--pp, 0));
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--blue-500), var(--teal-500));
  opacity: calc(var(--sp, 0) * 0.9);
  pointer-events: none;
}

/* Scrolling down past the opening screen clears the bar out of the way; any
   upward scroll brings it straight back. site.js never sets this while the
   mobile panel is open, while focus sits inside the header, or under
   reduced motion. */
.site-header.is-away { transform: translateY(-100%); }

/* Blue light gathering along the bottom edge as the bar becomes glass. */
.site-header::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(27, 111, 208, 0) 0%,
    rgba(27, 111, 208, 0.55) 22%,
    rgba(15, 163, 150, 0.5) 55%,
    rgba(27, 111, 208, 0) 100%);
  opacity: var(--sp, 0);
  pointer-events: none;
}

.site-header.is-stuck { border-bottom-color: rgba(205, 216, 232, 0.7); }

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2.5vw, 1.5rem);
  min-height: var(--header-cur);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--navy-900);
  flex: 0 1 auto;
  min-width: 0;
  margin-right: auto;
}
.brand__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
}
/* The wrapper is reserved for the entrance animation; the scroll compression
   rides on the image, so the two never fight over `transform`. */
.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(calc(1 - var(--sp, 0) * 0.12));
}
.brand__text { display: grid; min-width: 0; line-height: 1.05; overflow: hidden; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand__sub {
  font-size: 0.6875rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-400);
  font-weight: 500;
  /* Folds away as the bar compresses, leaving the name on its own. */
  max-height: calc(1.5em * (1 - var(--sp, 0)));
  opacity: calc(1 - var(--sp, 0) * 1.6);
}

.primary-nav > ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  position: relative;
  display: block;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-700);
  text-decoration: none;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.primary-nav a:hover { color: var(--navy-900); background: var(--blue-50); }
.primary-nav a[aria-current="page"] { color: var(--blue-700); font-weight: 600; }
.primary-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.15rem;
  height: 2px;
  border-radius: 2px;
  background: var(--teal-500);
}

.header-actions { display: flex; align-items: center; gap: 0.6rem; flex: none; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle__bars { display: grid; gap: 5px; width: 20px; }
.nav-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--navy-800);
  transition: transform 0.28s var(--ease), opacity 0.2s var(--ease), width 0.28s var(--ease);
}
.nav-toggle__bars span:nth-child(2) { width: 14px; justify-self: start; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; width: 20px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: var(--header-cur) 0 0;
  z-index: 99;
  display: none;
  flex-direction: column;
  padding: 1.5rem var(--gutter) 2.5rem;
  background: #fff;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-nav[data-open="true"] { display: flex; animation: nav-in 0.28s var(--ease); }
@keyframes nav-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.mobile-nav ul { list-style: none; margin: 0 0 1.75rem; padding: 0; }
.mobile-nav li { margin: 0; border-bottom: 1px solid var(--line); }
.mobile-nav li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.05rem 0.25rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy-900);
  text-decoration: none;
}
.mobile-nav li a[aria-current="page"] { color: var(--blue-700); }
.mobile-nav li a svg { width: 18px; height: 18px; color: var(--ink-400); }
.mobile-nav .btn-row { flex-direction: column; }
.mobile-nav__contact {
  margin-top: auto;
  padding-top: 1.75rem;
  font-size: var(--text-sm);
  color: var(--ink-500);
}
.mobile-nav__contact a { font-weight: 600; }

/* --------------------------------------------------------------- 6. Hero -- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 5.5rem) clamp(3.5rem, 2.4rem + 4.5vw, 6.5rem);
  background:
    radial-gradient(1100px 520px at 78% -8%, var(--blue-100) 0%, rgba(220, 233, 250, 0) 62%),
    radial-gradient(760px 480px at 4% 6%, var(--teal-50) 0%, rgba(232, 247, 245, 0) 58%),
    linear-gradient(180deg, #fbfdff 0%, var(--surface) 68%);
}
/* Keep the copy and media above the glass layer. */
.hero > .container { position: relative; z-index: 1; }

/* --- Hero glass ------------------------------------------------------------
   Blue/teal light drifting behind frosted white panes. Everything moves off
   --hp (0 -> 1 across the hero's exit), set by site.js; only transform and
   opacity animate, so the whole layer stays on the compositor. */
.hero__glass {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(46px);
  opacity: 0.75;
  will-change: transform;
}
.hero__orb--a {
  width: 42vw;
  height: 42vw;
  max-width: 620px;
  max-height: 620px;
  top: -14%;
  right: -6%;
  background: radial-gradient(circle at 34% 34%, rgba(27, 111, 208, 0.42), rgba(27, 111, 208, 0) 68%);
  transform: translate3d(0, calc(var(--hp, 0) * 12%), 0) scale(calc(1 + var(--hp, 0) * 0.14));
}
.hero__orb--b {
  width: 34vw;
  height: 34vw;
  max-width: 480px;
  max-height: 480px;
  bottom: -18%;
  left: -8%;
  background: radial-gradient(circle at 60% 40%, rgba(15, 163, 150, 0.34), rgba(15, 163, 150, 0) 70%);
  transform: translate3d(0, calc(var(--hp, 0) * -18%), 0) scale(calc(1.06 - var(--hp, 0) * 0.1));
}
.hero__orb--c {
  width: 26vw;
  height: 26vw;
  max-width: 360px;
  max-height: 360px;
  top: 34%;
  left: 42%;
  background: radial-gradient(circle at 50% 50%, rgba(185, 211, 244, 0.6), rgba(185, 211, 244, 0) 72%);
  transform: translate3d(calc(var(--hp, 0) * -6%), calc(var(--hp, 0) * 22%), 0);
}

/* Frosted panes that refract the drifting light behind them. */
.hero__pane {
  position: absolute;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.16));
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 20px 50px -30px rgba(16, 43, 78, 0.45);
  will-change: transform;
}
.hero__pane--a {
  width: min(30vw, 340px);
  height: min(22vw, 240px);
  top: 10%;
  right: 12%;
  opacity: 0.45;
  transform:
    translate3d(0, calc(var(--hp, 0) * -30%), 0)
    rotate(calc(-6deg + var(--hp, 0) * 3deg));
}
.hero__pane--b {
  width: min(22vw, 240px);
  height: min(16vw, 170px);
  bottom: 8%;
  right: 26%;
  transform:
    translate3d(0, calc(var(--hp, 0) * 26%), 0)
    rotate(calc(6deg - var(--hp, 0) * 4deg));
}

/* The hero stacks below 1024px and the panes would sit over the copy, so they
   step back and then drop out. The orbs stay — they are the cheap part and
   carry the blue/white wash on their own. */
@media (max-width: 1024px) {
  .hero__pane--a { top: 6%; right: 2%; width: min(38vw, 260px); height: min(26vw, 180px); }
  .hero__pane--b { display: none; }
}

@media (max-width: 680px) {
  /* Layered backdrop-filter is expensive on phones for a decorative flourish. */
  .hero__pane { display: none; }
  .hero__orb { filter: blur(38px); opacity: 0.6; }
}

.hero::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.55rem;
  padding: 0.4rem 0.9rem 0.4rem 0.45rem;
  border: 1px solid var(--blue-100);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-xs);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--ink-700);
  margin-bottom: 1.35rem;
}
.hero__badge b {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--teal-50);
  color: var(--teal-600);
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero h1 { margin-bottom: 0.55em; }
.hero h1 em { font-style: normal; color: var(--blue-600); }
.hero__lead {
  font-size: var(--text-xl);
  line-height: 1.6;
  color: var(--ink-500);
  max-width: 34rem;
  margin-bottom: 2rem;
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 0.7rem 2rem;
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
}
.trust-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-700);
}
.trust-list svg {
  width: 20px;
  height: 20px;
  flex: none;
  padding: 3px;
  border-radius: 999px;
  background: var(--teal-50);
  color: var(--teal-600);
}

.hero__ambient-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}

.hero__media {
  position: relative;
  perspective: var(--perspective-hero);
  will-change: transform;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: -1.5rem -1rem -1.5rem -3rem;
  z-index: -1;
  pointer-events: auto;
}
.hero__media::before {
  content: "";
  position: absolute;
  inset: 4% -3% -4% 4%;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at 60% 50%, rgba(27, 111, 208, 0.22) 0%, rgba(15, 163, 150, 0.16) 60%, transparent 80%);
  opacity: 0.8;
  filter: blur(28px);
  z-index: 0;
  pointer-events: none;
}
.hero__frame {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-xl);
  box-shadow: 0 28px 60px -28px rgba(10, 31, 58, 0.32), 0 10px 24px -12px rgba(16, 43, 78, 0.12);
  background: var(--tint);
  will-change: transform;
  transition: box-shadow 0.35s var(--ease);
}
.hero__frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-xl);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.hero__glare {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(circle at var(--glare-x, 50%) var(--glare-y, 50%), rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0) 65%);
  opacity: var(--glare-opacity, 0);
  mix-blend-mode: overlay;
  transition: opacity 0.3s var(--ease);
}

.hero__chip {
  position: absolute;
  z-index: 10;
  left: clamp(-1.5rem, -2vw, -0.5rem);
  bottom: clamp(1rem, 3vw, 2.25rem);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  max-width: 17rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 16px 36px -12px rgba(10, 31, 58, 0.22), 0 4px 12px -2px rgba(16, 43, 78, 0.08);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: box-shadow 0.28s var(--ease), transform 0.28s var(--ease-3d);
}
.hero__chip:hover {
  box-shadow: 0 20px 42px -10px rgba(10, 31, 58, 0.28), 0 6px 16px -2px rgba(16, 43, 78, 0.12);
}
.hero__chip svg { width: 20px; height: 20px; color: var(--teal-600); flex: none; }
.hero__chip-text { display: grid; line-height: 1.35; }
.hero__chip-text strong { font-family: var(--font-display); font-size: var(--text-sm); }
.hero__chip-text span { font-size: var(--text-xs); color: var(--ink-500); }

/* ------------------------------------------- 7. Sections and components -- */

/* Trust / credibility bar */
.trust-bar { border-bottom: 1px solid var(--line); background: var(--tint); }
.trust-bar__head { text-align: center; margin-bottom: 2.5rem; }
.trust-bar__head h2 { font-size: var(--h3); letter-spacing: -0.02em; margin-bottom: 0.35em; }
.trust-bar__head p { color: var(--ink-500); font-size: var(--text-sm); margin: 0; }

.badge-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  perspective: var(--perspective-card);
}
.badge-card {
  position: relative;
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-xs);
  transform-style: preserve-3d;
  will-change: transform;
  transition: box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}
.badge-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--blue-200);
}
.badge-card h3 { font-size: var(--h4); margin-bottom: 0.4em; }
.badge-card p { font-size: var(--text-sm); color: var(--ink-500); margin: 0; }

.icon-badge {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1.1rem;
  border-radius: 13px;
  background: var(--blue-50);
  color: var(--blue-600);
  transform: translateZ(20px);
  transform-style: preserve-3d;
  transition: transform 0.28s var(--ease-3d);
}
.badge-card:hover .icon-badge { transform: translateZ(28px) scale(1.04); }
.icon-badge svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-badge--accent { background: var(--teal-50); color: var(--teal-600); }
.icon-badge--dark { background: rgba(255, 255, 255, 0.08); color: var(--teal-100); }

/* Card Glare & 3D Specular Sheen */
.card-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 10;
  background: radial-gradient(circle at var(--glare-x, 50%) var(--glare-y, 50%), rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0) 65%);
  opacity: var(--glare-opacity, 0);
  mix-blend-mode: overlay;
  transition: opacity 0.3s var(--ease);
}
.provider-card .card-glare {
  background: radial-gradient(circle at var(--glare-x, 50%) var(--glare-y, 50%), rgba(205, 238, 234, 0.25) 0%, rgba(255, 255, 255, 0) 65%);
}

/* Product category cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 0.6rem + 1.4vw, 1.75rem);
  perspective: var(--perspective-card);
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transform-style: preserve-3d;
  will-change: transform;
  transition: box-shadow 0.32s var(--ease), border-color 0.32s var(--ease);
}
.product-card:hover, .product-card:focus-within {
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-200);
}
.product-card__media { position: relative; overflow: hidden; background: var(--tint-2); transform-style: preserve-3d; }
.product-card__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.product-card:hover .product-card__media img { transform: scale(1.05); }
.product-card__icon {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--blue-600);
  box-shadow: var(--shadow-sm);
  transform: translateZ(26px);
  transform-style: preserve-3d;
  transition: transform 0.3s var(--ease-3d);
}
.product-card:hover .product-card__icon { transform: translateZ(34px) scale(1.06); }
.product-card__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.product-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem 1.5rem 1.65rem; transform-style: preserve-3d; }
.product-card__body h3 { margin-bottom: 0.45em; transform: translateZ(12px); }
.product-card__body p { font-size: var(--text-sm); color: var(--ink-500); margin-bottom: 1.35rem; transform: translateZ(8px); }
.product-card__body .link-arrow { margin-top: auto; transform: translateZ(14px); }
.product-card__link::after { content: ""; position: absolute; inset: 0; }

.product-card__ribbon {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--navy-900);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  z-index: 3;
  transform: translateZ(28px);
  box-shadow: 0 4px 12px rgba(10, 31, 58, 0.25);
}
.product-card--soon .product-card__media img { filter: grayscale(35%); opacity: 0.82; }
.product-card--soon .product-card__body h3 { color: var(--ink-500); }

/* Process timeline */
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.step { position: relative; }
/* Connector drawn per step so it starts and ends at a marker, never in mid-air. */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 26px;
  left: 66px;
  right: -1.5rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue-200), var(--teal-100));
}
.step__marker {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 1.4rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  color: var(--blue-600);
}
.step__marker svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.step__number {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--teal-600);
  margin-bottom: 0.5rem;
}
.step h3 { font-size: var(--h4); margin-bottom: 0.4em; }
.step p { font-size: var(--text-sm); color: var(--ink-500); margin: 0; }

/* Split feature */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split__media {
  position: relative;
  perspective: 1000px;
  transform-style: preserve-3d;
}
.split__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: translateZ(10px);
  transition: transform 0.4s var(--ease-3d);
}
.split__media::after {
  content: "";
  position: absolute;
  width: 44%;
  height: 44%;
  right: -1.25rem;
  bottom: -1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--teal-100);
  background: linear-gradient(140deg, rgba(15, 163, 150, 0.08), rgba(27, 111, 208, 0.06));
  z-index: -1;
  transform: translateZ(-20px);
  transition: transform 0.4s var(--ease-3d);
}

.check-list { list-style: none; margin: 1.75rem 0 2rem; padding: 0; display: grid; gap: 0.9rem; }
.check-list li { display: flex; gap: 0.8rem; margin: 0; font-size: var(--text-sm); color: var(--ink-500); }
.check-list li strong { display: block; color: var(--ink-900); font-family: var(--font-display); margin-bottom: 0.1rem; }
.check-list svg {
  width: 22px; height: 22px; flex: none; padding: 3px;
  border-radius: 999px; background: var(--teal-50); color: var(--teal-600);
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.section--dark .check-list li { color: rgba(255, 255, 255, 0.72); }
.section--dark .check-list li strong { color: #fff; }
.section--dark .check-list svg { background: rgba(255, 255, 255, 0.1); color: var(--teal-100); }

/* Provider cards on the dark band */
.provider-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  perspective: var(--perspective-card);
}
.provider-card {
  position: relative;
  padding: 1.5rem 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  transform-style: preserve-3d;
  will-change: transform;
  transition: background-color 0.28s var(--ease), border-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.provider-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(205, 238, 234, 0.4);
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.4);
}
.provider-card h3 { font-size: var(--h4); margin-bottom: 0.4em; transform: translateZ(10px); }
.provider-card p { font-size: var(--text-sm); color: rgba(255, 255, 255, 0.68); margin: 0; transform: translateZ(6px); }

/* Notice / disclaimer */
.notice {
  display: flex;
  gap: 0.9rem;
  padding: 1.15rem 1.35rem;
  border: 1px solid var(--blue-100);
  border-left: 3px solid var(--blue-500);
  border-radius: var(--radius-sm);
  background: var(--blue-50);
  font-size: var(--text-sm);
  color: var(--ink-700);
}
.notice svg { width: 20px; height: 20px; flex: none; color: var(--blue-600); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.notice p { margin: 0; }
.notice--accent { border-color: var(--teal-100); border-left-color: var(--teal-500); background: var(--teal-50); }
.notice--accent svg { color: var(--teal-600); }

/* Benefits */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 0.8rem + 1.6vw, 2.25rem) clamp(1.5rem, 1rem + 2vw, 3rem);
  perspective: var(--perspective-card);
}
.benefit {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 1.1rem;
  align-items: start;
  transform-style: preserve-3d;
  transition: transform 0.28s var(--ease-3d);
}
.benefit:hover { transform: translateX(4px) translateZ(8px); }
.benefit .icon-badge { margin-bottom: 0; }
.benefit h3 { font-size: var(--h4); margin-bottom: 0.3em; }
.benefit p { font-size: var(--text-sm); color: var(--ink-500); margin: 0; }

/* Testimonials */
.sample-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.8rem;
  border: 1px dashed var(--line-strong);
  border-radius: 999px;
  background: #fff;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--ink-400);
}
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 0.6rem + 1.4vw, 1.75rem);
  perspective: var(--perspective-card);
}
.quote-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-xs);
  transform-style: preserve-3d;
  will-change: transform;
  transition: box-shadow 0.28s var(--ease);
}
.quote-card:hover {
  box-shadow: var(--shadow-md);
}
.quote-card__mark {
  font-family: var(--font-display);
  font-size: 2.75rem;
  line-height: 1;
  color: var(--blue-200);
  margin-bottom: 0.5rem;
  transform: translateZ(18px);
}
.quote-card blockquote {
  margin: 0 0 1.5rem;
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--ink-800);
  transform: translateZ(10px);
}
.quote-card figcaption {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: var(--text-sm);
  transform: translateZ(12px);
}
.quote-card figcaption strong { display: block; font-family: var(--font-display); color: var(--ink-900); }
.quote-card figcaption span { color: var(--ink-400); font-size: var(--text-xs); }

/* FAQ accordion */
.faq { max-width: 56rem; margin-inline: auto; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 1.35rem 0.25rem;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink-900);
  transition: color 0.18s var(--ease);
}
.faq__trigger:hover { color: var(--blue-700); }
.faq__icon {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: background-color 0.22s var(--ease), border-color 0.22s var(--ease), transform 0.32s var(--ease);
}
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 13px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy-800);
  transform: translate(-50%, -50%);
  transition: transform 0.32s var(--ease), background-color 0.22s var(--ease);
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__trigger[aria-expanded="true"] .faq__icon { background: var(--blue-600); border-color: var(--blue-600); transform: rotate(180deg); }
.faq__trigger[aria-expanded="true"] .faq__icon::before,
.faq__trigger[aria-expanded="true"] .faq__icon::after { background: #fff; }
.faq__trigger[aria-expanded="true"] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.faq__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.36s var(--ease); }
.faq__panel[data-open="true"] { grid-template-rows: 1fr; }
.faq__panel > div { overflow: hidden; }
.faq__panel p { padding: 0 4rem 1.5rem 0.25rem; margin: 0; color: var(--ink-500); }

/* Closing CTA */
.cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
}
.cta-band__bg { position: absolute; inset: 0; z-index: -2; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 460px at 50% 0%, rgba(27, 111, 208, 0.42), transparent 68%),
    linear-gradient(180deg, rgba(6, 21, 39, 0.86), rgba(6, 21, 39, 0.94));
}
.cta-band h2 { color: #fff; max-width: 20ch; margin-inline: auto; }
.cta-band p { font-size: var(--text-lg); max-width: 42rem; margin-inline: auto; margin-bottom: 2rem; color: rgba(255, 255, 255, 0.76); }
.cta-band .btn-row { justify-content: center; }
.cta-band__note { margin-top: 2rem; font-size: var(--text-xs); color: rgba(255, 255, 255, 0.68); }

/* Inner page hero */
.page-hero {
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) clamp(2.5rem, 1.8rem + 3vw, 4rem);
  background:
    radial-gradient(820px 400px at 82% -20%, var(--blue-100) 0%, rgba(220, 233, 250, 0) 62%),
    linear-gradient(180deg, #fbfdff, var(--surface));
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { max-width: 20ch; }
.page-hero p { font-size: var(--text-xl); color: var(--ink-500); max-width: 46rem; margin-bottom: 0; }
.page-hero .btn-row { margin-top: 2rem; }

.breadcrumbs { margin-bottom: 1.5rem; font-size: var(--text-xs); color: var(--ink-400); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.45rem; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li { margin: 0; display: flex; align-items: center; gap: 0.45rem; }
.breadcrumbs li + li::before { content: "/"; color: var(--line-strong); }
.breadcrumbs a { color: var(--ink-500); text-decoration: none; }
.breadcrumbs a:hover { color: var(--blue-600); text-decoration: underline; }

/* Detailed product block on the products page */
.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 1.8rem + 3vw, 4rem);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 2rem);
}
.product-detail:last-child { border-bottom: 0; }
.product-detail:nth-child(even) .product-detail__media { order: 2; }
.product-detail__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.product-detail ul { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.6rem; }
.product-detail li { display: flex; gap: 0.7rem; margin: 0; font-size: var(--text-sm); color: var(--ink-500); }
.product-detail li::before {
  content: "";
  flex: none;
  width: 6px; height: 6px;
  margin-top: 0.62em;
  border-radius: 999px;
  background: var(--teal-500);
}

/* Stat / placeholder tiles */
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.stat {
  padding: 1.5rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
}
.stat dt { font-family: var(--font-display); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-400); margin-bottom: 0.5rem; }
.stat dd { margin: 0; font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--navy-800); }

/* --------------------------------------------------------------- 9. Forms -- */
.form-card {
  padding: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-md);
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; }
.field { display: grid; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field > label {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-900);
}
.field__label-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.field__label-row > label {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-900);
}
.field__hint { font-size: var(--text-xs); color: var(--ink-400); }
.req { color: var(--blue-600); }

.info-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--blue-600);
  cursor: pointer;
  flex: none;
}
.info-tip svg {
  width: 1.05rem;
  height: 1.05rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.info-tip:hover,
.info-tip:focus-visible,
.info-tip[aria-expanded="true"] {
  color: var(--blue-700);
  background: var(--blue-50);
}
.info-tip:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 2px; }
.info-tip__panel {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.55rem);
  z-index: 20;
  width: min(18.5rem, calc(100vw - 2.5rem));
  padding: 0.85rem 1rem;
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: var(--shadow-md);
  color: var(--ink-500);
  font-family: var(--font-body, inherit);
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(4px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
}
.info-tip__panel strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--ink-900);
  font-size: var(--text-sm);
}
.info-tip__panel::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 0.55rem;
  height: 0.55rem;
  margin-left: -0.275rem;
  margin-top: -0.3rem;
  border-right: 1px solid var(--blue-100);
  border-bottom: 1px solid var(--blue-100);
  background: #fff;
  transform: rotate(45deg);
}
.info-tip__panel--end {
  left: auto;
  right: 0;
  transform: translateX(0) translateY(4px);
}
.info-tip__panel--end::after {
  left: auto;
  right: 0.55rem;
  margin-left: 0;
}
.info-tip:hover .info-tip__panel,
.info-tip:focus-visible .info-tip__panel,
.info-tip[aria-expanded="true"] .info-tip__panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.info-tip:hover .info-tip__panel--end,
.info-tip:focus-visible .info-tip__panel--end,
.info-tip[aria-expanded="true"] .info-tip__panel--end {
  transform: translateX(0) translateY(0);
}

.fancy-select {
  position: relative;
}
.fancy-select__trigger {
  width: 100%;
  min-height: 50px;
  padding: 0.75rem 2.5rem 0.75rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235b6879' stroke-width='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 0.9rem center;
  color: var(--ink-900);
  font-family: inherit;
  font-size: var(--text-base);
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.fancy-select__trigger:focus {
  outline: none;
  border-color: var(--blue-500);
}
.fancy-select__trigger.is-placeholder {
  color: var(--ink-400);
}
.fancy-select__menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  z-index: 30;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: var(--shadow-md);
}
.fancy-select__menu[hidden] { display: none; }
.fancy-select__menu [role="option"] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.7rem 0.85rem;
  border-radius: calc(var(--radius-sm) - 2px);
  color: var(--ink-900);
  font-size: var(--text-sm);
  cursor: pointer;
}
.fancy-select__menu [role="option"]:hover,
.fancy-select__menu [role="option"]:focus {
  outline: none;
  background: var(--blue-50);
  color: var(--blue-700);
}
.fancy-select__menu [role="option"][aria-selected="true"] {
  background: var(--blue-50);
  color: var(--blue-700);
  font-weight: 600;
}
.fancy-select__option-text { min-width: 0; }
.fancy-select__option--with-tip .info-tip {
  position: relative;
  z-index: 2;
}

input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select, textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink-900);
  font-family: inherit;
  font-size: var(--text-base);
  line-height: 1.5;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
textarea { min-height: 140px; resize: vertical; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235b6879' stroke-width='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 0.9rem center;
  padding-right: 2.5rem;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue-500);
}
input::placeholder, textarea::placeholder { color: var(--ink-400); }

.field--invalid > input[type="text"],
.field--invalid > input[type="email"],
.field--invalid > input[type="tel"],
.field--invalid > input[type="date"],
.field--invalid > select,
.field--invalid > textarea {
  border-color: #d92d20;
  box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.14);
}
.field--invalid .consent {
  padding: 0.75rem;
  border: 1px solid #d92d20;
  border-radius: var(--radius-sm);
  background: #fef2f2;
}
.field--invalid .consent input { accent-color: #d92d20; }

.choice-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.choice {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.05rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease), color 0.18s var(--ease);
}
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice:hover { border-color: var(--blue-500); }
.choice:has(input:checked) { border-color: var(--blue-600); background: var(--blue-50); color: var(--blue-700); font-weight: 600; }
.choice:has(input:focus-visible) { box-shadow: var(--ring); }

.consent {
  display: flex;
  gap: 0.7rem;
  align-items: start;
  justify-content: space-between;
  font-size: var(--text-sm);
  color: var(--ink-500);
}
.consent input { margin-top: 0.35rem; width: 18px; height: 18px; accent-color: var(--blue-600); flex: none; }
.consent__label {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  flex: 1 1 auto;
  cursor: pointer;
}
.consent--stacked { margin-bottom: 0.2rem; }
.consent-stack { display: grid; gap: 0.38rem; }

.form-status {
  margin-top: 1.25rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  color: var(--teal-600);
  font-size: var(--text-sm);
  font-weight: 500;
}
.form-status[hidden] { display: none; }
.form-status--error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b42318;
}

/* ------------------------------------------------------------- 10. Footer -- */
.site-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.62);
  font-size: var(--text-sm);
}
.site-footer a { color: rgba(255, 255, 255, 0.72); text-decoration: none; transition: color 0.18s var(--ease); }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr));
  gap: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  padding-block: clamp(3rem, 2.2rem + 3vw, 4.5rem);
}
.footer-brand .brand { color: #fff; margin-bottom: 1.25rem; }
.footer-brand .brand__sub { color: rgba(255, 255, 255, 0.6); }
.footer-brand p { max-width: 32ch; margin-bottom: 1.5rem; }
.footer-contact { display: grid; gap: 0.5rem; }
.footer-contact div { display: flex; gap: 0.6rem; align-items: start; }
.footer-contact svg { width: 17px; height: 17px; margin-top: 0.28rem; flex: none; color: var(--teal-500); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.footer-col h2 {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer-col li { margin: 0; }

.footer-legal {
  padding-block: 1.5rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.6);
}
.footer-legal p { margin-bottom: 0.75rem; }
.footer-legal p:last-child { margin-bottom: 0; }
.footer-legal__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; }
.footer-legal__links { display: flex; flex-wrap: wrap; gap: 1.25rem; }

/* --------------------------------------------------------------- 8. Prose -- */
.prose { max-width: 46rem; }
.prose h2 { font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem); margin-top: 2.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--h4); margin-top: 1.75rem; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li { color: var(--ink-500); }
.prose__updated { font-size: var(--text-xs); color: var(--ink-400); margin-bottom: 2.5rem; }

.toc {
  padding: 1.35rem 1.5rem;
  margin-bottom: 2.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--tint);
}
.toc h2 { font-size: var(--text-xs); letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-400); margin: 0 0 0.85rem; }
.toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.toc li { margin: 0; font-size: var(--text-sm); }

/* ------------------------------------------- 10b. Cinematic scroll opener --
   The third opening experience. `--p` (0→1 scroll progress) and `--b0..--b2`
   (per-beat presence) are written onto .cinema__stage by site.js; everything
   below derives its transform from those, so only transform/opacity animate.
   Blur and gradients are static — animating them would force a repaint per
   frame on a full-bleed image. */
.cinema {
  position: relative;
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.78);
}

/* Supplies the scroll distance the stage sticks through. */
.cinema__track { position: relative; height: 320vh; }

.cinema__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 33rem;
  display: grid;
  align-items: center;
  overflow: clip;
  isolation: isolate;
  perspective: var(--perspective-stage);
  transform-style: preserve-3d;
}

.cinema__bg {
  position: absolute;
  inset: -10% -6%;
  z-index: 0;
  /* No blur. The frame sequence is the whole point of this section — blurring
     it hides the one thing the viewer is meant to notice. */
  filter: saturate(1.06) contrast(1.04);
  transform:
    translate3d(0, calc(var(--p, 0) * -8%), 0)
    scale(calc(1.16 - var(--p, 0) * 0.14));
}
.cinema__bg img,
.cinema__bg canvas { width: 100%; height: 100%; object-fit: cover; display: block; }

/* The canvas sits over the poster and only takes over once a frame is painted,
   so JS-off, reduced-motion and the pre-decode moment all show the poster. */
.cinema__canvas {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.cinema.is-painted .cinema__canvas { opacity: 1; }

/* Directional, not blanket. Heavy on the left where the copy sits, close to
   clear on the right so the footage actually reads. A flat scrim over the whole
   frame is what made the sequence look like a static navy panel. */
.cinema__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(95deg,
      rgba(6, 21, 39, 0.95) 0%,
      rgba(6, 21, 39, 0.88) 24%,
      rgba(6, 21, 39, 0.55) 46%,
      rgba(6, 21, 39, 0.16) 64%,
      rgba(6, 21, 39, 0.30) 100%),
    linear-gradient(180deg, rgba(6, 21, 39, 0.5) 0%, rgba(6, 21, 39, 0) 20%, rgba(6, 21, 39, 0) 68%, rgba(6, 21, 39, 0.6) 100%);
}

/* Single column: the frame sequence occupies the right of the frame, so the
   copy is held to the left half where the scrim is heaviest. */
.cinema__inner {
  position: relative;
  z-index: 2;
  display: grid;
  align-items: center;
  width: 100%;
  padding-block: clamp(2rem, 1rem + 3vw, 3.5rem);
  transform-style: preserve-3d;
}

.cinema__copy { max-width: min(34rem, 46%); transform-style: preserve-3d; }
.cinema .eyebrow { color: var(--teal-100); }

/* All beats share one grid cell, so the block is as tall as the tallest beat
   and nothing reflows as they cross-fade. */
.cinema__beats { display: grid; perspective: var(--perspective-stage); transform-style: preserve-3d; }
.cinema__beat {
  grid-area: 1 / 1;
  pointer-events: none;
  opacity: var(--b, 0);
  transform:
    translate3d(0, calc((1 - var(--b, 0)) * 2.2rem), calc((var(--b, 0) - 1) * 60px))
    rotateX(calc((1 - var(--b, 0)) * 5deg))
    scale(calc(0.97 + var(--b, 0) * 0.03));
  transform-style: preserve-3d;
  will-change: transform, opacity;
}
.cinema__beat:nth-child(1) { --b: var(--b0, 1); }
.cinema__beat:nth-child(2) { --b: var(--b1, 0); }
.cinema__beat:nth-child(3) { --b: var(--b2, 0); }

.cinema__step {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-100);
}
.cinema__step span {
  display: inline-grid;
  place-items: center;
  min-width: 2rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid rgba(205, 238, 234, 0.32);
  border-radius: 999px;
  font-size: 0.6875rem;
  color: #fff;
}

.cinema__beat h3 {
  color: #fff;
  font-size: clamp(1.75rem, 1.25rem + 2.1vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.028em;
  margin-bottom: 0.55em;
  text-wrap: balance;
}
.cinema__beat p {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  max-width: 40ch;
}

.cinema__cta { margin-top: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem); }

.cinema__rail {
  position: absolute;
  z-index: 3;
  left: 50%;
  transform: translateX(-50%);
  bottom: clamp(1.25rem, 3vh, 2.5rem);
  width: min(22rem, calc(100% - 2 * var(--gutter)));
}
.cinema__rail-track {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}
.cinema__rail-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal-500), var(--blue-500));
  transform: scaleX(var(--p, 0));
  transform-origin: left center;
}

/* Promote only while the sequence is actually on screen (set by site.js). */
.cinema.is-live .cinema__bg { will-change: transform; }

@media (max-width: 900px) {
  .cinema__track { height: 280vh; }
  .cinema__copy { max-width: none; }
  .cinema__beat p { max-width: none; }

  /* The copy now spans the full width, so the horizontal scrim can no longer
     carry the contrast on its own — weight it from the bottom instead and let
     the footage stay legible in the upper half. */
  .cinema__scrim {
    background:
      linear-gradient(180deg,
        rgba(6, 21, 39, 0.62) 0%,
        rgba(6, 21, 39, 0.28) 26%,
        rgba(6, 21, 39, 0.72) 58%,
        rgba(6, 21, 39, 0.93) 100%);
  }
}

@media (max-width: 680px) {
  .cinema__track { height: 250vh; }
  .cinema__stage { min-height: 30rem; }
  .cinema__beat p { font-size: var(--text-base); }
}

/* Short viewports (landscape phones): give the copy room over the footage. */
@media (max-height: 560px) and (max-width: 900px) {
  .cinema__stage { min-height: 26rem; }
}

/* --------------------------------------------------------------- 11. Motion -- */
/* First-entry masthead intro. `html.is-intro` is set by the inline script in
   the layout head — once per browsing session, and never under reduced motion
   — so moving between pages doesn't replay it. Every rule below is scoped to
   that class: with it absent the header renders at rest with no animation to
   wait on. */
@keyframes brand-mark-in {
  0%   { opacity: 0; transform: translateY(8px) scale(0.5) rotate(-14deg); }
  60%  { opacity: 1; transform: translateY(0) scale(1.1) rotate(4deg); }
  80%  { transform: scale(0.96) rotate(-1.5deg); }
  100% { opacity: 1; transform: none; }
}

/* Light pushing out from behind the mark as it lands. */
@keyframes brand-halo {
  0%   { opacity: 0; transform: scale(0.35); }
  40%  { opacity: 0.7; }
  100% { opacity: 0; transform: scale(2.4); }
}

@keyframes brand-text-in {
  from { opacity: 0; transform: translateX(-12px); clip-path: inset(0 100% 0 0); }
  to   { opacity: 1; transform: none; clip-path: inset(0 -2px 0 0); }
}

@keyframes header-item-in {
  from { opacity: 0; transform: translateY(-9px); }
  to   { opacity: 1; transform: none; }
}

@keyframes header-drop {
  from { opacity: 0; transform: translateY(-100%); }
  to   { opacity: 1; transform: none; }
}

.is-intro .site-header { animation: header-drop 620ms var(--ease) backwards; }
.is-intro .site-header .brand__mark { animation: brand-mark-in 900ms var(--ease-back) 140ms backwards; }
.is-intro .site-header .brand__name { animation: brand-text-in 720ms var(--ease) 420ms backwards; }
.is-intro .site-header .brand__sub  { animation: brand-text-in 720ms var(--ease) 540ms backwards; }

/* Decorative light, so it only exists while the intro is on the page. */
.is-intro .site-header .brand__mark::after {
  content: "";
  position: absolute;
  inset: -30%;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(27, 111, 208, 0.5),
    rgba(15, 163, 150, 0.28) 45%,
    rgba(27, 111, 208, 0) 70%);
  pointer-events: none;
  opacity: 0;
  z-index: -1;
  animation: brand-halo 1200ms var(--ease) 200ms both;
}

.is-intro .primary-nav li,
.is-intro .header-actions > * { animation: header-item-in 560ms var(--ease) backwards; }
.is-intro .primary-nav li:nth-child(1) { animation-delay: 520ms; }
.is-intro .primary-nav li:nth-child(2) { animation-delay: 580ms; }
.is-intro .primary-nav li:nth-child(3) { animation-delay: 640ms; }
.is-intro .primary-nav li:nth-child(4) { animation-delay: 700ms; }
.is-intro .primary-nav li:nth-child(5) { animation-delay: 760ms; }
.is-intro .primary-nav li:nth-child(6) { animation-delay: 820ms; }
.is-intro .primary-nav li:nth-child(n + 7) { animation-delay: 880ms; }
.is-intro .header-actions > :nth-child(1) { animation-delay: 760ms; }
.is-intro .header-actions > :nth-child(2) { animation-delay: 820ms; }
.is-intro .header-actions > :nth-child(3) { animation-delay: 880ms; }

[data-reveal] {
  opacity: 0;
  transform: perspective(1000px) translateY(24px) rotateX(4deg) translateZ(-10px);
  transform-origin: 50% 100%;
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease-3d);
  will-change: opacity, transform;
}
[data-reveal]:not(.is-visible)[data-reveal-delay="1"] { transition-delay: 0.07s; }
[data-reveal]:not(.is-visible)[data-reveal-delay="2"] { transition-delay: 0.14s; }
[data-reveal]:not(.is-visible)[data-reveal-delay="3"] { transition-delay: 0.21s; }
[data-reveal]:not(.is-visible)[data-reveal-delay="4"] { transition-delay: 0.28s; }
[data-reveal]:not(.is-visible)[data-reveal-delay="5"] { transition-delay: 0.35s; }

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
  transition-delay: 0s !important;
}

/* --------------------------------------------------------- 12. Responsive -- */
@media (max-width: 1180px) {
  .badge-grid, .provider-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero__grid { gap: 2.5rem; }
}

@media (max-width: 1024px) {
  :root { --header-h: 72px; }

  .primary-nav, .header-actions .btn--ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-actions { gap: 0.5rem; }

  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 2.75rem; }
  .hero__media { max-width: 44rem; }
  .hero__media::before { inset: 10% -3% -6% 10%; }
  .hero__lead { max-width: 46rem; }

  .card-grid, .quote-grid, .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quote-grid > :last-child:nth-child(odd) { grid-column: span 2; }

  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 1.75rem; }
  .step:not(:last-child)::after { display: none; }

  .product-detail { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .product-detail:nth-child(even) .product-detail__media { order: 0; }

  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .split, .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .split--reverse .split__media, .split__media { order: 0; }
  .split__media::after { display: none; }
  .benefit-grid { grid-template-columns: minmax(0, 1fr); }
  .badge-grid, .provider-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .provider-grid > :last-child:nth-child(odd) { grid-column: span 2; }
  .faq__panel p { padding-right: 1rem; }
}

@media (max-width: 680px) {
  :root { --header-h: 66px; --header-shrink: 8px; --radius-lg: 18px; --radius-xl: 20px; }

  body { font-size: 1rem; }

  .brand__mark { width: 38px; height: 38px; }
  .brand__sub { display: none; }

  /* The badge is a single-line pill on wide screens; stacked it reads as a
     tag block rather than a pill that wrapped by accident. */
  .hero__badge {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    border-radius: 16px;
    padding: 0.6rem 0.9rem;
  }
  .header-actions .btn { padding-inline: 1.05rem; }

  .hero { padding-top: 2rem; }
  .hero__chip { position: static; max-width: none; margin-top: 1rem; }
  .hero__media::before { display: none; }
  .trust-list { grid-template-columns: minmax(0, 1fr); gap: 0.65rem; }

  .card-grid, .quote-grid, .stat-grid, .badge-grid, .provider-grid, .timeline, .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .quote-grid > :last-child:nth-child(odd),
  .provider-grid > :last-child:nth-child(odd) { grid-column: auto; }

  /* Vertical timeline with a connecting rail */
  .timeline { gap: 0; }
  .step { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 0 1.15rem; padding-bottom: 2rem; }
  .step:last-child { padding-bottom: 0; }
  .step::before {
    content: "";
    grid-column: 1;
    grid-row: 2 / span 3;
    justify-self: center;
    width: 2px;
    margin-block: 0.5rem;
    background: linear-gradient(180deg, var(--blue-200), var(--teal-100));
    border-radius: 2px;
  }
  .step:last-child::before { display: none; }
  .step__marker { grid-column: 1; grid-row: 1; margin-bottom: 0; width: 54px; height: 54px; }
  .step__number { grid-column: 2; grid-row: 1; align-self: center; margin-bottom: 0; }
  .step h3 { grid-column: 2; grid-row: 2; margin-top: 0.6rem; }
  .step p { grid-column: 2; grid-row: 3; }

  .btn-row .btn { width: 100%; }
  .footer-top { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
  .footer-legal__bar { flex-direction: column; align-items: flex-start; }
  .faq__trigger { font-size: var(--text-base); padding-block: 1.15rem; }
  .quote-card blockquote { font-size: var(--text-base); }

  /* 3D Mobile Strategy: disable tilt and perspective to preserve 60fps and natural touch feel */
  .badge-grid, .card-grid, .provider-grid, .quote-grid, .benefit-grid, .hero__media, .split__media {
    perspective: none;
  }
  .hero__ambient-canvas { display: none; }
  .card-glare, .hero__glare { display: none; }
  .badge-card, .product-card, .provider-card, .quote-card {
    transform: none !important;
  }
}

@media (max-width: 420px) {
  :root { --gutter: 1.15rem; }
  .brand { gap: 0.55rem; }
  .brand__mark { width: 34px; height: 34px; }
  .brand__name { font-size: 0.875rem; }
  .header-actions { gap: 0.4rem; }
  .header-actions .btn { min-height: 44px; font-size: 0.8125rem; padding-inline: 0.8rem; }
  .nav-toggle { width: 44px; height: 44px; }
  .hero__badge { font-size: 0.75rem; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none !important; }

  /* The hero glass holds a still composition — the panes and light stay put,
     so it still reads as glass without any parallax. site.js never writes --hp
     here, so the layers simply sit at their rest position. */
  .hero__orb,
  .hero__pane,
  .hero__frame,
  .hero__chip,
  .badge-card,
  .product-card,
  .provider-card,
  .quote-card,
  .benefit,
  .split__media img,
  .split__media::after,
  .btn {
    transform: none !important;
    transition: none !important;
    will-change: auto;
  }
  .hero__ambient-canvas { display: none; }
  .card-glare, .hero__glare { display: none; }

  /* The cinematic opener becomes a plain stacked section: no pinning, no
     scroll distance, every beat visible at once. site.js skips its engine
     entirely, so nothing writes --p or --b* here. */
  .cinema__track { height: auto; }
  .cinema__stage {
    position: static;
    height: auto;
    min-height: 0;
    padding-block: var(--section-y);
  }
  /* The stage is no longer positioned, so the bleed insets would escape it and
     push the page sideways. Pin the backdrop to the section instead. */
  .cinema { overflow: clip; }
  .cinema__bg { inset: 0; transform: none; }
  .cinema__beats { gap: clamp(2rem, 1.4rem + 2vw, 3rem); }
  .cinema__beat {
    grid-area: auto;
    opacity: 1;
    transform: none;
  }
  .cinema__rail { display: none; }
}

@media (forced-colors: active) {
  .btn, .badge-card, .product-card, .quote-card, .faq__icon { border: 1px solid ButtonBorder; }
}

@media print {
  .site-header, .mobile-nav, .cta-band, .nav-toggle { display: none !important; }
  body { font-size: 11pt; color: #000; }
  .section { padding-block: 1.5rem; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
