/* ============================================================
   Max Potential Learning — Premium SAT Prep
   Shared design system — Brand Guide v2
   ============================================================ */

/* ----- Design tokens ----- */
:root {
  /* ---- Primary brand blues ---- */
  --blue:   #22a0e7;   /* primary CTA / key accents */
  --blue2:  #1c8fce;   /* hover / darker accent */
  --inner-bg: #e6f2ff; /* signature inner-panel fill */

  /* ---- Core text ---- */
  --text:   #111827;
  --text-2: #1f2937;
  --muted:  rgba(17,24,39,.7);

  /* ---- Borders ---- */
  --border:        rgba(17,24,39,.10);
  --border-strong: rgba(17,24,39,.15);

  /* ---- Card background ---- */
  --card-bg: #ffffff;

  /* ---- Dark sections (nav / footer / CTA band / contact bar) ---- */
  --navy-900: #081427;
  --navy-800: #0b1d3f;
  --navy-700: #102a55;
  --navy-600: #173a72;

  /* ---- Gold accent — retained for score cards / gain badges ---- */
  --gold:     #c79a36;
  --gold-300: #e7c66d;
  --gold-200: #efd79a;

  /* ---- Shadows ---- */
  --shadow-xs: 0 2px 6px rgba(0,0,0,.04);
  --shadow-sm: 0 4px 12px rgba(0,0,0,.05);
  --shadow-md: 0 12px 28px rgba(0,0,0,.06);   /* card shadow */
  --shadow-lg: 0 18px 55px rgba(0,0,0,.10);   /* container / section shadow */
  --shadow-blue: 0 10px 22px rgba(34,160,231,.35); /* primary button */
  --hi:      inset 0 1px 0 rgba(255,255,255,.75);
  --hi-dark: inset 0 1px 0 rgba(255,255,255,.12);

  /* ---- Radius scale ---- */
  --radius-sm: 12px;
  --radius:    18px;    /* cards */
  --radius-lg: 22px;    /* large containers / hero modals */
  --radius-xl: 30px;    /* founder photo */

  /* ---- Easing ---- */
  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  /* ---- Layout ---- */
  --nav-h:     74px;
  --container: 1120px;

  /* ---- Typography ---- */
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
               Helvetica, Arial, sans-serif;
  /* Display = same stack, heavier weight; no decorative serif */
  --font-display: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
                  Helvetica, Arial, sans-serif;

  /* ---- Backward-compat aliases (used in component rules below) ---- */
  --brand:      var(--blue);
  --brand-600:  var(--blue2);
  --brand-700:  var(--blue2);
  --sky:        var(--blue);
  --sky-100:    var(--inner-bg);
  --sky-50:     #f0f8ff;
  --ink:        var(--text);
  --ink-soft:   var(--muted);
  --line:       var(--border);
  --line-strong:var(--border-strong);
  --paper:      var(--card-bg);
  --cloud:      var(--inner-bg);
  --cloud-2:    var(--inner-bg);
}

/* ----- Reset / base ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: #ffffff;
  line-height: 1.55;
  font-size: 0.9375rem; /* 15px */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

::selection { background: rgba(34,160,231,.18); }

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

/* ----- Layout helpers ----- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.section {
  padding-block: clamp(4rem, 7vw, 5rem); /* 64–80px */
  position: relative;
}
.section--tight { padding-block: clamp(3rem, 5vw, 4rem); }

/* Light-section inner-panel pattern:
   Outer (body) = white; section = the #e6f2ff inner panel, floating on white. */
.section--cloud,
.section--gradient {
  background: var(--inner-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin-inline: clamp(1rem, 3vw, 2.5rem);
  overflow: hidden;
}

/* ----- Typography ----- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow--center { justify-content: center; }
.eyebrow--gold { color: var(--gold); }

/* Headings: system-ui, heavy weight, tight tracking — brand spec */
h1, h2, h3 {
  font-family: var(--font-sans);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text);
}
.h-display {
  font-size: clamp(2.5rem, 5.6vw, 4.5rem);
  line-height: 1.04;
}
/* H2 section titles: brand spec clamp(28px, 3vw, 44px) */
h2.h-section, .h-section {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }

.lead {
  font-size: clamp(0.94rem, 1.4vw, 1.08rem); /* 15px-ish */
  color: var(--muted);
  line-height: 1.6;
  font-weight: 400;
}
.text-muted { color: var(--muted); }
.accent { color: var(--blue); }

/* Gradient accent on display headings — blue→lighter blue */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .h-display .accent, .h-section .accent {
    background: linear-gradient(108deg, var(--blue) 8%, #60c4f5 94%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}
.accent-gold { color: var(--gold); }

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head .lead { margin-top: 1rem; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .92rem 1.6rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--blue);
  color: #fff;
  transition: transform .18s var(--ease-out), box-shadow .2s var(--ease-out),
              background-color .2s ease, border-color .2s ease, color .2s ease;
  will-change: transform;
  white-space: nowrap;
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn:active { transform: scale(.97); }

/* Primary — brand blue */
.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover {
    background: var(--blue2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34,160,231,.3), 0 20px 40px -10px rgba(34,160,231,.45);
  }
}

/* Gold → Navy */
.btn--gold {
  background: #0b1d3f;
  color: #fff;
  box-shadow:
    0 1px 2px rgba(8,20,39,.35),
    0 8px 22px -8px rgba(8,20,39,.45),
    var(--hi);
}
@media (hover: hover) and (pointer: fine) {
  .btn--gold:hover {
    transform: translateY(-2px);
    background: #081427;
    box-shadow:
      0 2px 4px rgba(8,20,39,.35),
      0 16px 34px -8px rgba(8,20,39,.5),
      var(--hi);
  }
}

/* Ghost — white background, light border, pill shape */
.btn--ghost {
  background: #ffffff;
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
@media (hover: hover) and (pointer: fine) {
  .btn--ghost:hover {
    transform: translateY(-2px);
    border-color: var(--blue);
    box-shadow: var(--shadow-md);
  }
}

/* Ghost on dark backgrounds */
.on-dark .btn--ghost,
.btn--ghost-dark {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-color: rgba(255,255,255,.28);
  box-shadow: none;
  backdrop-filter: blur(6px);
}
@media (hover: hover) and (pointer: fine) {
  .btn--ghost-dark:hover {
    background: rgba(255,255,255,.16);
    border-color: rgba(255,255,255,.5);
    transform: translateY(-2px);
  }
}

/* Ghost button inside subhero (blue bg) — translucent white */
.subhero .btn--ghost-dark {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.32);
  box-shadow: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
@media (hover: hover) and (pointer: fine) {
  .subhero .btn--ghost-dark:hover {
    background: rgba(255,255,255,.2);
    border-color: rgba(255,255,255,.55);
    transform: translateY(-2px);
  }
}

.btn--lg { padding: 1.05rem 2rem; font-size: 1.06rem; }
.btn--block { width: 100%; }

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

.btn-arrow { transition: transform .2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover .btn-arrow { transform: translateX(3px); }
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  color: var(--blue);
  transition: gap .2s var(--ease-out), color .2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .text-link:hover { gap: .65rem; color: var(--blue2); }
}

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(8,20,39,.78), rgba(8,20,39,.62));
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  box-shadow: var(--hi-dark);
  transition: background-color .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.nav.is-scrolled {
  background: linear-gradient(180deg, rgba(8,20,39,.94), rgba(8,20,39,.88));
  border-bottom-color: rgba(255,255,255,.1);
  box-shadow: 0 14px 36px -20px rgba(0,0,0,.85), var(--hi-dark);
}
.nav__inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: #fff;
}
.brand__badge {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: transparent;
  flex-shrink: 0;
  transition: transform .25s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .brand:hover .brand__badge { transform: rotate(-3deg) scale(1.04); }
}
.brand__badge img { width: 40px; height: 40px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: -0.01em;
  color: #fff;
}
.brand__tag {
  font-size: .66rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #93c5fd;
  font-weight: 600;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: .35rem;
}
.nav__link {
  position: relative;
  padding: .55rem .9rem;
  font-size: .95rem;
  font-weight: 500;
  color: rgba(255,255,255,.82);
  border-radius: 8px;
  transition: color .2s ease, background-color .2s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: .9rem; right: .9rem; bottom: .35rem;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nav__link:hover { color: #fff; }
  .nav__link:hover::after { transform: scaleX(1); }
}
.nav__link.is-active { color: #fff; }
.nav__link.is-active::after { transform: scaleX(1); }

.nav__cta { margin-left: .5rem; }
.nav__actions { display: flex; align-items: center; gap: .75rem; }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.06);
  border-radius: 12px;
  color: #fff;
  align-items: center;
  justify-content: center;
}
.nav__toggle svg { width: 22px; height: 22px; }
.nav__toggle .icon-close { display: none; }
.nav.is-open .nav__toggle .icon-open { display: none; }
.nav.is-open .nav__toggle .icon-close { display: block; }

/* Mobile menu */
.nav__mobile {
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  background: rgba(8,20,39,.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.1);
  padding: 1rem clamp(1.25rem, 4vw, 2.5rem) 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .26s var(--ease-out), transform .26s var(--ease-out), visibility .26s;
  z-index: 99;
}
.nav.is-open .nav__mobile { opacity: 1; transform: translateY(0); visibility: visible; }
.nav__mobile a {
  color: rgba(255,255,255,.88);
  font-size: 1.1rem;
  font-weight: 500;
  padding: .85rem .5rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.nav__mobile .btn { margin-top: 1rem; }

/* ============================================================
   Hero — static navy (home)
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  background: #0b1d3f;
}
.hero__viewport {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}
/* Grid overlay */
.hero__scrim::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  padding-bottom: clamp(9.5rem, 26vh, 14rem);
}
.hero__content { position: relative; z-index: 2; max-width: 620px; }
.hero__content .eyebrow { margin-bottom: 1.1rem; }
.hero h1 { margin-bottom: 1.25rem; color: #fff; }
.hero .eyebrow { color: rgba(255,255,255,.88); }
.hero__sub {
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  color: rgba(255,255,255,.82);
  max-width: 520px;
  margin-bottom: 1.9rem;
  line-height: 1.6;
}
/* Accent gradient readable on the navy hero — light blue */
.hero .h-display .accent {
  background: linear-gradient(108deg, #5cc2f5 8%, #a3daff 94%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
/* Ghost button on blue hero — translucent white */
.hero .btn--ghost {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.32);
  box-shadow: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
@media (hover: hover) and (pointer: fine) {
  .hero .btn--ghost:hover {
    background: rgba(255,255,255,.2);
    border-color: rgba(255,255,255,.55);
    transform: translateY(-2px);
  }
}

/* Credibility bar */
.credbar {
  position: absolute;
  left: 0; right: 0;
  bottom: clamp(1.25rem, 4vh, 2.5rem);
}
.credbar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(.5rem, 1.5vw, 1rem);
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-radius: var(--radius);
  padding: clamp(1rem, 2.4vw, 1.5rem) clamp(1rem, 2vw, 1.75rem);
}
.cred { text-align: center; position: relative; }
.cred + .cred::before {
  content: "";
  position: absolute;
  left: calc(clamp(.5rem, 1.5vw, 1rem) / -2);
  top: 12%;
  height: 76%;
  width: 1px;
  background: var(--border);
}
.cred__num {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.cred__label {
  margin-top: .45rem;
  font-size: clamp(.72rem, 1.1vw, .85rem);
  color: var(--muted);
  font-weight: 500;
  line-height: 1.3;
}

/* Scroll cue */
.scrollcue {
  position: absolute;
  left: 50%;
  bottom: clamp(7rem, 16vh, 9rem);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  color: rgba(255,255,255,.72);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  transition: opacity .4s ease;
}
.scrollcue__mouse {
  width: 24px; height: 38px;
  border: 2px solid rgba(255,255,255,.45);
  border-radius: 14px;
  position: relative;
  opacity: .75;
}
.scrollcue__mouse::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 7px;
  width: 4px; height: 7px;
  border-radius: 3px;
  background: rgba(255,255,255,.6);
  transform: translateX(-50%);
  animation: wheel 1.6s var(--ease-in-out) infinite;
}
@keyframes wheel {
  0%       { opacity: 0; transform: translate(-50%, 0); }
  35%      { opacity: 1; }
  70%, 100%{ opacity: 0; transform: translate(-50%, 12px); }
}
.hero.is-scrolled .scrollcue { opacity: 0; }

/* ============================================================
   Inner-page hero (#1589eb — matches canvas hero)
   ============================================================ */
.subhero {
  position: relative;
  color: #fff;
  padding-top: calc(var(--nav-h) + clamp(3.5rem, 8vw, 6rem));
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
  background: #1589eb;
  overflow: hidden;
}
/* Grid overlay — white lines on blue */
.subhero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.22) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
/* Subtle dark vignette for depth — matches hero scrim style */
.subhero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg,
      rgba(4,16,36,.28) 0%,
      rgba(4,16,36,.08) 50%,
      rgba(4,16,36,0) 100%);
  pointer-events: none;
}
.subhero .container { position: relative; z-index: 1; }
.subhero h1 { color: #fff; }
.subhero .h-display { max-width: 16ch; }
/* Accent on blue — gold gradient, same as canvas hero */
.subhero .h-display .accent {
  background: linear-gradient(108deg, var(--gold) 8%, var(--gold-300, #e4c069) 94%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.subhero__sub {
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  color: rgba(255,255,255,.82);
  max-width: 60ch;
  margin: 1.25rem 0 2rem;
  line-height: 1.6;
}
.subhero .eyebrow { margin-bottom: 1.1rem; color: rgba(255,255,255,.88); }

/* trust pills row under subhero heading */
.pill-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .95rem;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: .88rem;
  font-weight: 500;
  color: #fff;
}
.pill svg { width: 1rem; height: 1rem; color: rgba(255,255,255,.9); }

/* ============================================================
   Marquee (infinite testimonial scroll)
   ============================================================ */
.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 46s linear infinite;
}
.marquee--reverse .marquee__track { animation-direction: reverse; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (hover: hover) and (pointer: fine) {
  .marquee:hover .marquee__track { animation-play-state: paused; }
}

/* Testimonial card — white, 18px radius, card shadow */
.tcard {
  flex: 0 0 auto;
  width: min(88vw, 380px);
  margin-right: 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.7rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.tcard__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.tcard__score {
  display: inline-flex;
  align-items: baseline;
  gap: .45rem;
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.tcard__score .from { color: var(--muted); font-size: 1rem; font-weight: 500; }
.tcard__score .arrow { color: var(--blue); font-size: 1rem; }
.tcard__score .to { font-size: 1.5rem; }
.tcard__gain {
  font-size: .8rem;
  font-weight: 700;
  color: #15803d;
  background: #e7f6ec;
  border: 1px solid #c7ebd2;
  padding: .3rem .6rem;
  border-radius: 999px;
  white-space: nowrap;
}
.tcard__stars { color: var(--gold); letter-spacing: 2px; font-size: .9rem; }
.tcard__quote {
  font-size: 0.97rem;
  color: var(--muted);
  line-height: 1.6;
}
.tcard__quote::before { content: "\201C"; color: var(--blue); font-weight: 700; }
.tcard__quote::after  { content: "\201D"; color: var(--blue); font-weight: 700; }
.tcard__person {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding-top: .85rem;
  border-top: 1px solid var(--border);
}
.tcard__avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  background: linear-gradient(150deg, var(--blue), var(--blue2));
  flex-shrink: 0;
}
.tcard__name { font-weight: 700; color: var(--text); font-size: .98rem; line-height: 1.2; }
.tcard__loc  { font-size: .85rem; color: var(--muted); }

/* ============================================================
   Card grids (feature / trust / reveal)
   ============================================================ */
.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ----- Result cards (premium score grid) ----- */
.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
.result {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 2.6vw, 2.1rem);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), border-color .25s ease;
}
.result::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .7s var(--ease-out) .1s;
}
.result.is-in::before { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .result:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 50px rgba(0,0,0,.11);
    border-color: rgba(34,160,231,.4);
  }
}
.result__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.3rem;
}
.result__person { display: flex; align-items: center; gap: .8rem; }
.result__avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-weight: 700;
  background: linear-gradient(150deg, var(--blue), var(--blue2));
}
.result__name { font-weight: 700; color: var(--text); line-height: 1.2; }
.result__loc  { font-size: .85rem; color: var(--muted); }
.result__gain {
  font-size: .82rem; font-weight: 700; color: #15803d;
  background: #e7f6ec; border: 1px solid #c7ebd2;
  padding: .35rem .65rem; border-radius: 999px; white-space: nowrap;
}
.result__scores {
  display: flex; align-items: baseline; gap: .6rem;
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  margin-bottom: 1rem;
}
.result__from  { font-size: 1.5rem; color: var(--muted); font-weight: 500; }
.result__arrow { color: var(--blue); }
.result__to    { font-size: 2.4rem; font-weight: 900; color: var(--text); letter-spacing: -0.02em; }
.result__to-lab{ font-size: .8rem; font-family: var(--font-sans); color: var(--muted); margin-left: .15rem; }
.meter { position: relative; height: 9px; border-radius: 999px; background: var(--inner-bg); overflow: hidden; }
.meter__fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0;
  background: #c9e5f8;
  border-right: 2px solid var(--blue);
  transition: width 1s var(--ease-out) .15s;
}
.result.is-in .meter__fill { width: var(--after-w, 90%); }
.meter__gain {
  position: absolute; top: 0; bottom: 0;
  left: var(--gain-left, 70%);
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--blue));
  transition: width 1s var(--ease-out) .35s;
}
.result.is-in .meter__gain { width: var(--gain-w, 20%); }
.meter-scale {
  display: flex; justify-content: space-between;
  font-size: .72rem; color: var(--muted);
  margin-top: .5rem;
}
.result__quote {
  margin-top: 1.25rem; padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--muted); font-size: 0.97rem; line-height: 1.6;
}
.result__quote .stars { display: block; color: var(--gold); letter-spacing: 2px; margin-bottom: .6rem; font-size: .9rem; }

/* Feature/trust card — white, 18px, card shadow, hover lift */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2.4vw, 2rem);
  box-shadow: var(--shadow-md);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), border-color .25s ease;
}
@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 50px rgba(0,0,0,.10);
    border-color: rgba(34,160,231,.35);
  }
}
.card__icon {
  width: 54px; height: 54px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  margin-bottom: 1.15rem;
  background: var(--inner-bg);
  border: 1px solid rgba(34,160,231,.2);
  color: var(--blue);
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .card:hover .card__icon {
    transform: scale(1.06) rotate(-2deg);
    box-shadow: 0 10px 20px -8px rgba(34,160,231,.4);
  }
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .5rem; }
.card p  { color: var(--muted); font-size: 0.94rem; line-height: 1.55; }

.card--num .card__icon {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--blue);
}

/* ============================================================
   "Who they are" / split content
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.prose p { color: var(--muted); font-size: 1.02rem; line-height: 1.6; }
.prose p + p { margin-top: 1.1rem; }

.statframe {
  position: relative;
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background:
    radial-gradient(500px 280px at 80% 0%, rgba(34,160,231,.2), transparent 60%),
    linear-gradient(160deg, var(--navy-800), var(--navy-900));
  color: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.statframe::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(80% 80% at 80% 0%, #000, transparent 70%);
}
.statframe__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,.12);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
}
.statframe__cell {
  background: rgba(255,255,255,.03);
  padding: 1.5rem 1.4rem;
}
.statframe__num {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.statframe__num .accent-gold { color: var(--gold-200); }
.statframe__lab { margin-top: .5rem; color: rgba(255,255,255,.72); font-size: .9rem; }
.statframe__cap {
  position: relative;
  margin-top: 1.5rem;
  color: rgba(255,255,255,.8);
  font-size: .95rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.statframe__cap svg { width: 1.1rem; height: 1.1rem; color: #93c5fd; flex-shrink: 0; }

/* ============================================================
   Guarantee cards
   ============================================================ */
.guarantee-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
.gcard {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.gcard::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--gold), var(--blue));
}
@media (hover: hover) and (pointer: fine) {
  .gcard:hover { transform: translateY(-2px); box-shadow: 0 20px 50px rgba(0,0,0,.11); }
}
.gcard__badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}
.gcard__num {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.02em;
}
.gcard p { margin-top: .75rem; color: var(--muted); line-height: 1.55; }
.disclaimer {
  margin-top: 1.75rem;
  font-size: .9rem;
  color: var(--muted);
  max-width: 70ch;
  display: flex;
  gap: .6rem;
  line-height: 1.55;
}
.disclaimer svg { width: 1.1rem; height: 1.1rem; flex-shrink: 0; color: var(--muted); margin-top: .15rem; }

/* ============================================================
   Founder section
   ============================================================ */
.founder {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.founder__media { position: relative; }
.founder__photo {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1;
  border-radius: var(--radius-xl);
  object-fit: cover;
  background: var(--inner-bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  image-rendering: auto;
}
.founder__media::before {
  content: "";
  position: absolute;
  inset: -14px -14px 18px 18px;
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, rgba(34,160,231,.28), rgba(205,161,58,.22));
  z-index: 0;
  filter: blur(2px);
}
.founder__chip {
  position: absolute;
  z-index: 2;
  right: -14px;
  bottom: 22px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  border-radius: 14px;
  padding: .7rem .95rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
}
.founder__chip svg { width: 1.4rem; height: 1.4rem; color: var(--blue); }
.checklist { margin: 1.5rem 0; display: grid; gap: .8rem; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}
.checklist svg {
  width: 1.4rem; height: 1.4rem;
  flex-shrink: 0;
  color: var(--blue);
  margin-top: .1rem;
}

/* ============================================================
   Steps (diagnostic — how it works)
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  counter-reset: step;
  position: relative;
}
.step {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-md);
}
.step__num {
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 1.25rem;
  box-shadow: var(--shadow-blue);
  margin-bottom: 1.1rem;
}
.step h3 { margin-bottom: .5rem; }
.step p  { color: var(--muted); font-size: 0.94rem; line-height: 1.55; }
.step__connector { display: none; }

/* ============================================================
   CTA band (navy)
   ============================================================ */
.ctaband {
  position: relative;
  overflow: hidden;
  color: #fff;
  text-align: center;
  background: #74B3E8;
}
.ctaband::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(60% 80% at 50% 0%, #000, transparent 75%);
}
.ctaband .container { position: relative; z-index: 1; }
.ctaband h2 { color: #fff; max-width: 18ch; margin-inline: auto; }
.ctaband p {
  color: rgba(255,255,255,.82);
  max-width: 56ch;
  margin: 1.1rem auto 2rem;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.6;
}

/* ============================================================
   Contact / social bar
   ============================================================ */
.contactbar {
  background: #74B3E8;
  color: #fff;
  position: relative;
}
.contactbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.contactbar__lead { max-width: 30ch; }
.contactbar__lead .eyebrow { color: rgba(255,255,255,.9); }
.contactbar__lead h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-top: .7rem; }
.contactbar__links {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}
.social {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .7rem 1.1rem;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
  font-weight: 500;
  font-size: .95rem;
  transition: transform .2s var(--ease-out), background-color .2s ease, border-color .2s ease;
}
.social svg { width: 1.25rem; height: 1.25rem; }
@media (hover: hover) and (pointer: fine) {
  .social:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,.14);
    border-color: rgba(34,160,231,.6);
  }
}
.social--icon { padding: .7rem; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: #74B3E8;
  color: rgba(255,255,255,.82);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  border-top: 1px solid rgba(255,255,255,.15);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.footer .brand__name, .footer .brand { color: #fff; }
.footer .brand__badge { border: none; }
.footer__about { margin-top: 1.1rem; max-width: 34ch; font-size: .95rem; line-height: 1.6; }
.footer__col h4 {
  position: relative;
  color: #fff;
  font-family: var(--font-sans);
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 1.1rem;
  padding-bottom: .65rem;
}
.footer__col h4::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 26px; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,.9), var(--gold));
}
.footer__col a {
  display: block;
  padding: .4rem 0;
  color: rgba(255,255,255,.8);
  font-size: .96rem;
  transition: color .2s ease, padding-left .2s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .footer__col a:hover { color: #fff; padding-left: 4px; }
}
.footer__contact { margin-top: 1.4rem; display: grid; gap: .6rem; }
.footer__contact a {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: rgba(255,255,255,.9);
  font-size: .95rem;
}
.footer__contact svg { width: 1.05rem; height: 1.05rem; color: rgba(255,255,255,.9); }
@media (hover: hover) and (pointer: fine) {
  .footer__contact a:hover { color: #fff; }
}
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.75rem;
  font-size: .88rem;
  color: rgba(255,255,255,.6);
}
.footer__social { display: flex; gap: .6rem; }
.footer__social a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.9);
  box-shadow: var(--hi-dark);
  transition: transform .2s var(--ease-out), background-color .2s ease, color .2s, box-shadow .2s ease;
}
.footer__social svg { width: 1.1rem; height: 1.1rem; }
@media (hover: hover) and (pointer: fine) {
  .footer__social a:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,.28);
    color: #fff;
  }
}

/* legal pages */
.legal { padding-top: calc(var(--nav-h) + 3rem); }
.legal__body { max-width: 760px; }
.legal__body h2 { font-size: 1.4rem; margin: 2.25rem 0 .75rem; }
.legal__body p, .legal__body li { color: var(--muted); font-size: 1.02rem; line-height: 1.6; }
.legal__body p + p { margin-top: 1rem; }
.legal__body ul { margin: .75rem 0 .75rem 1.25rem; list-style: disc; display: grid; gap: .5rem; }
.legal__meta { color: var(--muted); font-size: .95rem; margin-top: .5rem; }

/* ============================================================
   Reveal-on-scroll
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; }
  .scrollcue__mouse::after { animation: none; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .footer__top { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer__col--last { grid-column: span 3; }
}

@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__cta--desktop { display: none; }

  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: -1; }
  .founder { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .founder__photo { max-width: 280px; }
  .founder__media { max-width: 280px; }
  .checklist li { text-align: left; }
  .checklist { max-width: 460px; }
  .steps { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .contactbar__inner { flex-direction: column; align-items: flex-start; }

  /* Inner-panel sections: remove side margin on tablet — let them breathe inline */
  .section--cloud,
  .section--gradient {
    margin-inline: clamp(.5rem, 2vw, 1.5rem);
    border-radius: var(--radius);
  }
}

@media (max-width: 720px) {
  .hero__inner {
    align-items: flex-start;
    padding-top: calc(var(--nav-h) + .9rem);
    padding-bottom: 0;
  }
  .hero__content { max-width: 100%; }
  .hero__content .eyebrow { margin-bottom: .6rem; }
  .hero h1 { font-size: clamp(1.8rem, 7.6vw, 2.3rem); margin-bottom: .7rem; }
  .hero__sub {
    font-size: 1rem;
    max-width: 100%;
    margin-bottom: 1rem;
  }
  .hero .btn-row { gap: .6rem; width: 100%; }
  .hero .btn--lg { padding: .85rem 1.35rem; font-size: .98rem; }
  .credbar { bottom: clamp(.9rem, 3vh, 1.4rem); }
  .credbar__grid { padding: .7rem .8rem; }
  .cred { padding: .55rem .4rem; }
  .cred__num { font-size: 1.45rem; }
  .cred__label { margin-top: .3rem; font-size: .68rem; }
  .hero__scrim { background: none; }
  .credbar__grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .cred { padding: .85rem .5rem; }
  .cred + .cred::before { display: none; }
  .cred:nth-child(3)::after, .cred:nth-child(4)::after { content: none; }
  .credbar__grid .cred:nth-child(1),
  .credbar__grid .cred:nth-child(2) { border-bottom: 1px solid var(--border); }
  .scrollcue { display: none; }

  .grid--2, .grid--3, .grid--4,
  .guarantee-grid, .results-grid { grid-template-columns: 1fr; }
  .statframe__grid { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__col--brand { grid-column: span 2; }
  .footer__col--last  { grid-column: span 2; }
  .btn-row .btn { flex: 1 1 auto; }

  /* Inner-panel sections flush on mobile — no margin, no radius */
  .section--cloud,
  .section--gradient {
    margin-inline: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    box-shadow: var(--shadow-sm);
  }
}

@media (max-width: 460px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__col--brand, .footer__col--last { grid-column: span 1; }
  .tcard { width: 84vw; }
}

/* ============================================================
   Toast notifications — graceful error feedback for dead links
   ============================================================ */
.toast-region {
  position: fixed;
  left: 50%;
  bottom: clamp(1rem, 4vh, 2rem);
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column-reverse;
  gap: .6rem;
  width: max-content;
  max-width: min(92vw, 440px);
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1.1rem;
  border-radius: 14px;
  background: rgba(8,20,39,.97);
  color: #fff;
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.4;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px) scale(.97);
  transition: opacity .24s var(--ease-out), transform .24s var(--ease-out);
}
.toast--in { opacity: 1; transform: translateY(0) scale(1); }
.toast__icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-weight: 700;
  font-size: .85rem;
}
.toast--error { border-left: 3px solid #e5615f; }
.toast--error .toast__icon { background: #e5615f; color: #fff; }
.toast__msg { flex: 1; }

@media (prefers-reduced-motion: reduce) {
  .toast { transition: opacity .2s ease; transform: none; }
  .toast--in { transform: none; }
}

/* ============================================================
   Craft polish
   ============================================================ */
body { -webkit-tap-highlight-color: transparent; }
a, button { -webkit-tap-highlight-color: transparent; }

h1, h2, h3, .h-display, .h-section { text-wrap: balance; }
.lead, .hero__sub, .subhero__sub, .prose p, .card p, .step p { text-wrap: pretty; }

.social, .footer__social a, .nav__link, .btn {
  -webkit-user-select: none;
  user-select: none;
}
.social:active, .footer__social a:active { transform: scale(.95); }
.nav__cta:active { transform: scale(.97); }
.text-link { transition: gap .2s var(--ease-out), color .2s ease, transform .15s var(--ease-out); }
.text-link:active { transform: scale(.98); }
.nav__link { transition: color .2s ease, background-color .2s ease, transform .15s var(--ease-out); }
.nav__link:active { transform: scale(.96); }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.nav :focus-visible,
.ctaband :focus-visible,
.contactbar :focus-visible,
.footer :focus-visible,
.statframe :focus-visible,
.hero__content :focus-visible,
.subhero :focus-visible,
.on-dark :focus-visible { outline-color: rgba(255,255,255,.9); outline-offset: 3px; }

.marquee__track { will-change: transform; }

/* Hero entrance — staggered first-impression */
@media (prefers-reduced-motion: no-preference) {
  .hero__content > *,
  .credbar { animation: heroRise .85s var(--ease-out) backwards; }
  .hero__content > *:nth-child(1) { animation-delay: .05s; }
  .hero__content > *:nth-child(2) { animation-delay: .13s; }
  .hero__content > *:nth-child(3) { animation-delay: .22s; }
  .hero__content > *:nth-child(4) { animation-delay: .31s; }
  .credbar { animation-delay: .42s; }
}
@keyframes heroRise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
