/* ============================================================================
   Chaperone Health — Corporate Site Design System
   "Wayfinding, warmly."  No One Navigates Alone.

   Palette (from brand style guide):
     Deep Navy  #16324F   Warm Teal #3BA7A0   Soft Sky #DDEFF3
     Light Sand #F4F1EB   Slate     #566573   Accent Coral #F26351 (sparingly)
   Type: Avenir Next (headings) → Mulish fallback · Inter (body)
   ========================================================================== */

:root {
  /* ---- Brand core ---- */
  --navy:        #16324F;
  --navy-deep:   #0E2438;   /* richer navy for full-bleed sections / footer */
  --navy-700:    #1E4566;
  --navy-600:    #234c70;
  --navy-500:    #2f5e85;
  --teal:        #3BA7A0;
  --teal-deep:   #2C817B;   /* AA-safe teal for text links on light */
  --teal-700:    #246b66;
  --teal-soft:   #E6F3F1;   /* teal tint surface */
  --sky:         #DDEFF3;
  --sky-soft:    #EEF7F9;
  --sand:        #F4F1EB;
  --sand-2:      #ECE6DA;
  --sand-3:      #E3DBCB;
  --slate:       #566573;
  --coral:       #F26351;
  --coral-deep:  #DC4634;
  --coral-soft:  #FCE7E2;
  --white:       #ffffff;

  /* ---- Semantic ---- */
  --ink:     #16324F;          /* headings */
  --text:    #233240;          /* body — warm near-navy */
  --text-2:  #566573;          /* secondary (slate) */
  --text-3:  #8593a0;          /* muted */
  --bg:      #F4F1EB;
  --surface: #ffffff;
  --border:  #E4DECF;          /* warm hairline */
  --border-cool: #CFE3E8;
  --focus:   #2C817B;

  /* ---- Type ---- */
  --display: 'Avenir Next', 'Mulish', system-ui, -apple-system, "Segoe UI", sans-serif;
  --body:    'Inter', system-ui, -apple-system, "Segoe UI", sans-serif;
  --script:  'Caveat', 'Brush Script MT', cursive;

  /* ---- Radius ---- */
  --r-pill: 999px;
  --r-lg:   22px;
  --r-md:   16px;
  --r-sm:   10px;

  /* ---- Shadow (navy-tinted, soft) ---- */
  --sh-sm: 0 2px 10px -4px rgba(22,50,79,.18);
  --sh:    0 14px 34px -16px rgba(22,50,79,.28);
  --sh-lg: 0 30px 64px -28px rgba(22,50,79,.40);
  --sh-coral: 0 14px 30px -12px rgba(220,70,52,.45);

  /* ---- Motion ---- */
  --ease: cubic-bezier(.21,.7,.35,1);
  --t: .45s var(--ease);

  --maxw: 1200px;
}

/* ============================== Reset / base ============================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--teal-deep); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
button { font-family: inherit; cursor: pointer; }
h1,h2,h3,h4 { font-family: var(--display); color: var(--ink); line-height: 1.08; letter-spacing: -.02em; font-weight: 800; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
strong { font-weight: 700; color: var(--navy); }
::selection { background: var(--teal); color: #fff; }

/* ============================== Layout ============================== */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 800px; }
.container--wide { max-width: 1320px; }

.section { position: relative; padding: clamp(64px, 9vw, 124px) 0; }
.section--tight { padding: clamp(44px, 6vw, 80px) 0; }
.section--sand  { background: var(--sand); }
.section--sand2 { background: var(--sand-2); }
.section--white { background: var(--surface); }
.section--sky   { background: linear-gradient(180deg, var(--sky-soft), var(--sky)); }
.section--teal  { background: var(--teal-soft); }
.section--navy  { background: var(--navy-deep); color: #D9E4EC; }
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy h4 { color: #fff; }
.section--navy .lede { color: #B9C9D6; }
.section--navy a { color: #8FD6CF; }

/* soft divider between same-color sections */
.section + .section--sand, .section + .section--white { }

/* ============================== Typography helpers ============================== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--body);
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal-deep); margin: 0 0 18px;
}
.eyebrow::before { content:""; width: 22px; height: 2px; background: var(--teal); border-radius: 2px; display: inline-block; }
.section--navy .eyebrow { color: #6FD0C8; }
.section--navy .eyebrow::before { background: #6FD0C8; }

.h-display { font-size: clamp(2.5rem, 5.2vw, 4.15rem); line-height: 1.02; letter-spacing: -.03em; margin: 0 0 .35em; }
.h-1 { font-size: clamp(2rem, 3.8vw, 3rem); }
.h-2 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); }
.h-3 { font-size: clamp(1.2rem, 1.7vw, 1.45rem); }
.lede { font-size: clamp(1.08rem, 1.5vw, 1.32rem); line-height: 1.55; color: var(--text-2); font-weight: 400; max-width: 62ch; }
.muted { color: var(--text-2); }
.balance { text-wrap: balance; }
.measure { max-width: 64ch; }
.center { text-align: center; }
.center .lede, .center .eyebrow { margin-left: auto; margin-right: auto; }
.center .eyebrow { display: inline-flex; }

/* ============================== Buttons ============================== */
.btn {
  --btn-fg:#fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--body); font-weight: 600; font-size: 15.5px; letter-spacing: .005em;
  padding: 14px 26px; border-radius: var(--r-pill); border: 1.5px solid transparent;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .25s, color .2s, border-color .2s;
  text-decoration: none !important; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--coral); color: #fff; box-shadow: var(--sh-coral); }
.btn-primary:hover { background: var(--coral-deep); transform: translateY(-2px); box-shadow: 0 18px 36px -12px rgba(220,70,52,.55); }
.btn-secondary { background: transparent; color: var(--navy); border-color: rgba(22,50,79,.28); }
.btn-secondary:hover { background: var(--navy); color: #fff; border-color: var(--navy); transform: translateY(-2px); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); transform: translateY(-2px); box-shadow: var(--sh); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-deep); transform: translateY(-2px); box-shadow: var(--sh); }
.btn-ghost { background: transparent; color: var(--teal-deep); padding-left: 6px; padding-right: 6px; }
.btn-ghost:hover { color: var(--navy); gap: 13px; }
.btn-lg { padding: 17px 34px; font-size: 16.5px; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.section--navy .btn-secondary { color: #fff; border-color: rgba(255,255,255,.35); }
.section--navy .btn-secondary:hover { background: #fff; color: var(--navy); }
.btn-arrow svg { transition: transform .25s var(--ease); }
.btn:hover .btn-arrow svg, .btn-arrow:hover svg { transform: translateX(3px); }

/* ============================== Header / Nav ============================== */
.site-header {
  position: sticky; top: 0; z-index: 80;
  background: rgba(244,241,235,.82); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-color: var(--border); box-shadow: 0 8px 30px -20px rgba(22,50,79,.4); background: rgba(244,241,235,.94); }
.nav { display: flex; align-items: center; gap: 18px; height: 74px; }
.brand-lockup { display: inline-flex; align-items: center; gap: 11px; margin-right: 8px; flex-shrink: 0; }
.brand-lockup:hover { text-decoration: none; }
.brand-mark { width: 34px; height: 34px; flex-shrink: 0; }
.brand-word { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -.02em; color: var(--navy); line-height: 1; }
.brand-word .hl { color: var(--teal); }
.brand-word small { display:block; font-family: var(--body); font-weight: 600; font-size: 9.5px; letter-spacing: .26em; color: var(--text-3); text-transform: uppercase; margin-top: 3px; }

.nav-primary { display: flex; align-items: center; gap: 2px; margin: 0 auto 0 14px; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--body); font-weight: 600; font-size: 15px; color: var(--navy);
  padding: 10px 14px; border-radius: 10px; background: transparent; border: none;
  transition: background .2s, color .2s;
}
.nav-link:hover, .nav-item:hover .nav-link, .nav-link[aria-expanded="true"] { background: rgba(22,50,79,.06); text-decoration: none; }
.nav-link .caret { width: 11px; height: 11px; transition: transform .25s var(--ease); opacity: .6; }
.nav-item:hover .nav-link .caret, .nav-link[aria-expanded="true"] .caret { transform: rotate(180deg); }
.nav-link.is-active { color: var(--teal-deep); }
.nav-link.is-active::after { content:""; position:absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--teal); border-radius: 2px; }

/* Mega menu */
.megamenu {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 540px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--sh-lg); padding: 16px;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .26s var(--ease);
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
}
.nav-item:hover .megamenu, .megamenu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.megamenu--solo { grid-template-columns: 1fr; min-width: 320px; }
.mega-head { grid-column: 1 / -1; padding: 8px 12px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.mega-head .t { font-family: var(--display); font-weight: 800; color: var(--navy); font-size: 15px; }
.mega-head .d { font-size: 12.5px; color: var(--text-2); margin: 2px 0 0; }
.mega-link { display: flex; gap: 12px; padding: 12px; border-radius: 12px; transition: background .18s; align-items: flex-start; }
.mega-link:hover { background: var(--sand); text-decoration: none; }
.mega-link .mi { width: 34px; height: 34px; flex-shrink: 0; border-radius: 9px; background: var(--teal-soft); display: grid; place-items: center; color: var(--teal-deep); margin-top: 1px; }
.mega-link .mi svg { width: 18px; height: 18px; }
.mega-link .mt { display: block; font-weight: 700; font-size: 14px; line-height: 1.25; color: var(--navy); }
.mega-link .md { display: block; font-size: 12px; font-weight: 400; color: var(--text-3); line-height: 1.45; margin-top: 3px; }
.mega-link:hover .mt { color: var(--teal-deep); }

.nav-ctas { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-ctas .btn { padding: 11px 20px; font-size: 14.5px; }

/* mobile */
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; top: 21px; height: 2px; background: var(--navy); border-radius: 2px; transition: .25s var(--ease); }
.nav-toggle span::before, .nav-toggle span::after { content:""; position: absolute; left: 0; right: 0; height: 2px; background: var(--navy); border-radius: 2px; transition: .25s var(--ease); }
.nav-toggle span::before { top: -7px; } .nav-toggle span::after { top: 7px; }
body.nav-open .nav-toggle span::before, body.nav-open .nav-toggle span::after { background: var(--navy); }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
body.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

.mobile-nav { display: none; }

@media (max-width: 1024px) {
  .nav-primary, .nav-ctas { display: none; }
  .nav-toggle { display: block; }
  .mobile-nav {
    display: block; position: fixed; inset: 74px 0 0; z-index: 70;
    background: var(--sand); overflow-y: auto; padding: 18px 24px 120px;
    transform: translateX(100%); transition: transform .35s var(--ease); visibility: hidden;
  }
  body.nav-open .mobile-nav { transform: translateX(0); visibility: visible; }
  body.nav-open { overflow: hidden; }
  .m-group { border-bottom: 1px solid var(--border); }
  .m-group > button { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 16px 4px; background: none; border: none; font-family: var(--display); font-weight: 800; font-size: 18px; color: var(--navy); }
  .m-group > button .caret { width: 14px; height: 14px; transition: transform .25s; }
  .m-group.open > button .caret { transform: rotate(180deg); }
  .m-sub { display: none; padding: 0 4px 14px; }
  .m-group.open .m-sub { display: block; }
  .m-sub a { display: block; padding: 9px 0; font-size: 15.5px; color: var(--text); font-weight: 500; }
  .m-ctas { margin-top: 22px; display: grid; gap: 12px; }
  .m-ctas .btn { width: 100%; }
}

/* ============================== Hero ============================== */
.hero { position: relative; overflow: hidden; padding: clamp(48px,7vw,96px) 0 clamp(60px,8vw,110px); background: linear-gradient(170deg, var(--sky-soft) 0%, var(--sand) 60%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-promise { font-family: var(--display); font-weight: 800; font-size: clamp(2.7rem, 5.6vw, 4.6rem); line-height: .98; letter-spacing: -.035em; color: var(--navy); margin: 0 0 22px; }
.hero-promise .nav-em { position: relative; color: var(--teal-deep); white-space: nowrap; }
.hero-promise .nav-em::after { content:""; position:absolute; left: 0; right: 0; bottom: -2px; height: 10px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='12' viewBox='0 0 200 12'%3E%3Cpath d='M2 8 C50 2 150 2 198 7' stroke='%233BA7A0' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center/contain; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; align-items: center; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px 26px; margin-top: 38px; padding-top: 26px; border-top: 1px solid var(--border); }
.hero-trust .ht { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.hero-trust .ht svg { width: 18px; height: 18px; color: var(--teal-deep); flex-shrink: 0; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { order: 0; }
}

/* ============================== Cards & grids ============================== */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 28px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  position: relative;
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--sh); border-color: var(--border-cool); }
.card h3 { font-size: 1.22rem; margin-bottom: .4em; }
.card p { font-size: 15px; color: var(--text-2); margin-bottom: 0; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 700; font-size: 14px; color: var(--teal-deep); }
.card-link svg { width: 15px; height: 15px; flex-shrink: 0; transition: transform .25s; }
.card--hover:hover .card-link svg { transform: translateX(4px); }

.icon-tile { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 18px; background: var(--teal-soft); color: var(--teal-deep); }
.icon-tile svg { width: 27px; height: 27px; stroke-width: 1.7; }
.icon-tile--navy { background: var(--navy); color: #fff; }
.icon-tile--sky { background: var(--sky); color: var(--navy); }
.icon-tile--coral { background: var(--coral-soft); color: var(--coral-deep); }
.icon-tile--sand { background: var(--sand-2); color: var(--navy); }

/* solution / audience card */
.card--solution { display: flex; flex-direction: column; }
.card--solution .who { font-family: var(--display); font-weight: 800; font-size: 1.18rem; color: var(--navy); }
.card--solution .need { font-size: 14px; color: var(--text-2); margin: 6px 0 14px; flex-grow: 1; }
.card--solution .tag { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--teal-deep); }

/* feature row */
.feature { display: flex; gap: 18px; align-items: flex-start; }
.feature .icon-tile { margin-bottom: 0; flex-shrink: 0; width: 46px; height: 46px; border-radius: 13px; }
.feature .icon-tile svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.08rem; margin-bottom: .25em; }
.feature p { font-size: 14.5px; color: var(--text-2); margin: 0; }

/* stat / proof */
.stat { text-align: left; }
.stat .num { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3.1rem); color: var(--teal-deep); line-height: 1; letter-spacing: -.03em; }
.section--navy .stat .num { color: #6FD0C8; }
.stat .lab { font-size: 14px; color: var(--text-2); margin-top: 8px; }
.section--navy .stat .lab { color: #B9C9D6; }

/* pills / badges / disclaimers */
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 600; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); }
.pill svg { width: 14px; height: 14px; color: var(--teal-deep); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 7px; font-size: 11.5px; font-weight: 700; letter-spacing: .03em; background: var(--teal-soft); color: var(--teal-700); }
.badge--coral { background: var(--coral-soft); color: var(--coral-deep); }
.badge--sky { background: var(--sky); color: var(--navy); }

.disclaimer {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 7px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .02em;
  background: rgba(86,101,115,.1); color: var(--slate); border: 1px dashed rgba(86,101,115,.4);
}
.disclaimer svg { width: 13px; height: 13px; }
.note-block { background: var(--sand-2); border-left: 3px solid var(--teal); border-radius: 10px; padding: 16px 20px; font-size: 14px; color: var(--text-2); }

/* list with check / path markers */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--text); }
.checklist li svg { width: 21px; height: 21px; flex-shrink: 0; color: var(--teal-deep); margin-top: 2px; }
.section--navy .checklist li { color: #D9E4EC; }
.section--navy .checklist li svg { color: #6FD0C8; }

/* ── Round 3 QA: dark-background accessibility ─────────────────────────────
   Two recurring issues fixed globally so they don't need page-by-page patches:
   (1) Card-header visibility — .card on a navy section keeps its light surface,
       so headers/eyebrows/links must stay dark-on-light, not inherit #fff.
   (2) Meaningful supporting text on navy (muted, validation, disclaimers, notes)
       must use a compliant light token, never low-contrast slate. */
.section--navy .muted { color: #C5D3DF; }
.section--navy strong { color: #fff; }   /* base strong is forced navy → invisible on navy */
.section--navy .disclaimer { color: #DBE6EE; background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.34); }
.section--navy .disclaimer svg { color: #9FE0D9; }
.section--navy .note-block { background: rgba(255,255,255,.08); border-left-color: #6FD0C8; color: #E6EEF4; }
.section--navy .note-block strong { color: #fff; }
.section--navy .note-block a { color: #9FE0D9; }
/* light cards on a navy band: restore dark-on-light hierarchy (icon + header + body) */
.section--navy .card h1, .section--navy .card h2, .section--navy .card h3, .section--navy .card h4 { color: var(--navy); }
.section--navy .card p, .section--navy .card li, .section--navy .card .muted { color: var(--text-2); }
.section--navy .card strong { color: var(--navy); }
.section--navy .card .eyebrow { color: var(--teal-deep); }
.section--navy .card .eyebrow::before { background: var(--teal); }
.section--navy .card a { color: var(--teal-deep); }
.section--navy .card .disclaimer { color: var(--text-2); background: rgba(86,101,115,.1); border-color: rgba(86,101,115,.4); }

/* split media block */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--flip .split-media { order: 2; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 32px; } .split--flip .split-media { order: 0; } }

/* breadcrumb */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--text-2); margin-bottom: 22px; }
.breadcrumb a { color: var(--text-2); font-weight: 600; }
.breadcrumb a:hover { color: var(--teal-deep); }
.breadcrumb .sep { opacity: .5; }

/* page hero (inner pages) */
.page-hero { padding: clamp(40px,6vw,76px) 0 clamp(36px,5vw,60px); background: linear-gradient(168deg, var(--sky-soft), var(--sand)); position: relative; overflow: hidden; }
.page-hero .lede { margin-top: 8px; }

/* quote / testimonial */
.quote { font-family: var(--display); font-weight: 700; font-size: clamp(1.4rem,2.4vw,2rem); line-height: 1.3; letter-spacing: -.02em; color: var(--navy); }
.section--navy .quote { color: #fff; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: 28px; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; padding: clamp(40px,5vw,68px); }
.cta-band h2 { color: #fff; }
.cta-band .lede { color: #B9C9D6; }
.cta-band .hero-cta-row { margin-top: 26px; }
.cta-band .eyebrow { color: #6FD0C8; }
.cta-band .eyebrow::before { background: #6FD0C8; }
.cta-band .btn-secondary, .cta-band .btn-navy { color: #fff; border-color: rgba(255,255,255,.4); background: transparent; }
.cta-band .btn-secondary:hover, .cta-band .btn-navy:hover { background: #fff; color: var(--navy); border-color: #fff; }
.cta-band .btn-teal:hover { background: var(--teal); filter: brightness(1.08); }

/* ============================== Contour / path motifs ============================== */
.contour { position: absolute; inset: 0; pointer-events: none; opacity: .5; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='760' height='560' viewBox='0 0 760 560' fill='none'%3E%3Cg stroke='%2316324F' stroke-opacity='.06' stroke-width='1.4' fill='none'%3E%3Cpath d='M-40 120 C160 40 360 200 540 120 720 50 820 160 900 120'/%3E%3Cpath d='M-40 180 C160 100 360 260 540 180 720 110 820 220 900 180'/%3E%3Cpath d='M-40 250 C160 170 360 330 540 250 720 180 820 290 900 250'/%3E%3Cpath d='M-40 330 C160 250 360 410 540 330 720 260 820 370 900 330'/%3E%3Cpath d='M-40 420 C160 340 360 500 540 420 720 350 820 460 900 420'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 760px 560px; }
.contour--teal { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='760' height='560' viewBox='0 0 760 560' fill='none'%3E%3Cg stroke='%233BA7A0' stroke-opacity='.10' stroke-width='1.4' fill='none'%3E%3Cpath d='M-40 120 C160 40 360 200 540 120 720 50 820 160 900 120'/%3E%3Cpath d='M-40 200 C160 120 360 280 540 200 720 130 820 240 900 200'/%3E%3Cpath d='M-40 290 C160 210 360 370 540 290 720 220 820 330 900 290'/%3E%3Cpath d='M-40 390 C160 310 360 470 540 390 720 320 820 430 900 390'/%3E%3C/g%3E%3C/svg%3E"); }
.section--navy .contour { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='760' height='560' viewBox='0 0 760 560' fill='none'%3E%3Cg stroke='%23FFFFFF' stroke-opacity='.07' stroke-width='1.4' fill='none'%3E%3Cpath d='M-40 120 C160 40 360 200 540 120 720 50 820 160 900 120'/%3E%3Cpath d='M-40 210 C160 130 360 290 540 210 720 140 820 250 900 210'/%3E%3Cpath d='M-40 310 C160 230 360 390 540 310 720 240 820 350 900 310'/%3E%3Cpath d='M-40 420 C160 340 360 500 540 420 720 350 820 460 900 420'/%3E%3C/g%3E%3C/svg%3E"); }
.section > .container, .hero > .container, .page-hero > .container { position: relative; z-index: 1; }

/* path divider — the wayfinding line between sections */
.path-divider { display: block; height: 64px; position: relative; }
.path-divider svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ============================== Footer ============================== */
.site-footer { background: var(--navy-deep); color: #A7BBC9; padding: 72px 0 34px; position: relative; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.05fr 1fr; gap: 30px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .brand-word { color: #fff; }
.footer-brand .brand-word .hl { color: var(--teal); }
.footer-promise { font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: #fff; margin: 18px 0 10px; letter-spacing: -.01em; }
.footer-brand p { font-size: 13.5px; color: #8FA3B3; max-width: 30ch; }
.footer-col h4 { font-family: var(--body); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #6F8597; margin: 0 0 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { color: #B9CAD7; font-size: 14px; font-weight: 500; }
.footer-col a:hover { color: #fff; }
.footer-col .linklike { background: none; border: none; padding: 0; text-align: left; font-family: var(--body); color: #B9CAD7; font-size: 14px; font-weight: 500; cursor: pointer; }
.footer-col .linklike:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; padding-top: 26px; }
.footer-bottom .legal-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-bottom .legal-links a { font-size: 12.5px; color: #8FA3B3; }
.footer-bottom .copy { font-size: 12.5px; color: #6F8597; }
.footer-crisis { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: #C9D6E0; background: rgba(242,99,81,.14); border: 1px solid rgba(242,99,81,.3); padding: 9px 15px; border-radius: var(--r-pill); }
.footer-crisis svg { width: 15px; height: 15px; color: #F2917F; }
.footer-crisis a { color: #fff; font-weight: 700; }
.footer-disclaimer { font-size: 11.5px; color: #6F8597; margin-top: 18px; max-width: 80ch; }
@media (max-width: 1080px) { .footer-top { grid-template-columns: 1fr 1fr 1fr; gap: 32px 24px; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 720px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer-top { grid-template-columns: 1fr; } }

/* ============================== Router Modals ============================== */
.modal-scrim { position: fixed; inset: 0; z-index: 200; background: rgba(14,36,56,.55); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity .3s; display: grid; place-items: center; padding: 20px; }
.modal-scrim.is-open { opacity: 1; visibility: visible; }
.modal {
  width: 100%; max-width: 600px; max-height: 90vh; overflow-y: auto; background: var(--sand);
  border-radius: 24px; box-shadow: var(--sh-lg); transform: translateY(20px) scale(.98); transition: transform .35s var(--ease);
  position: relative;
}
.modal-scrim.is-open .modal { transform: translateY(0) scale(1); }
.modal-head { padding: 26px 28px 18px; position: relative; }
.modal-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 11px; border-radius: var(--r-pill); margin-bottom: 14px; }
.modal--b2b .modal-kicker { background: var(--navy); color: #fff; }
.modal--access .modal-kicker { background: var(--teal); color: #fff; }
.modal-head h2 { font-size: 1.5rem; margin-bottom: 8px; }
.modal-head p { font-size: 14.5px; color: var(--text-2); margin: 0; }
.modal-close { position: absolute; top: 20px; right: 20px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); display: grid; place-items: center; color: var(--navy); }
.modal-close:hover { background: var(--navy); color: #fff; }
.modal-body { padding: 0 28px 28px; }
.nl-input-wrap { position: relative; }
.nl-input { width: 100%; min-height: 92px; resize: vertical; padding: 16px 18px; border-radius: 16px; border: 1.5px solid var(--border); background: var(--surface); font-family: var(--body); font-size: 15.5px; color: var(--text); line-height: 1.5; }
.nl-input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 20px; }
.chip { padding: 9px 15px; border-radius: var(--r-pill); border: 1.5px solid var(--border); background: var(--surface); font-size: 13.5px; font-weight: 600; color: var(--navy); transition: all .18s; }
.chip:hover { border-color: var(--teal); color: var(--teal-deep); background: var(--teal-soft); }
.chip.is-selected { background: var(--navy); color: #fff; border-color: var(--navy); }
.modal--access .chip.is-selected { background: var(--teal); border-color: var(--teal); }
.chips-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
/* Partner modal quick-start: tidy 2-up grid with the fallback set apart (lighter, scannable) */
.chips--grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chips--grid .chip { width: 100%; text-align: center; padding: 10px 14px; }
.chips--grid .chip--fallback { grid-column: 1 / -1; background: transparent; border-style: dashed; color: var(--text-2); font-weight: 600; }
@media (max-width: 480px) { .chips--grid { grid-template-columns: 1fr; } }
.modal-actions { display: flex; gap: 12px; align-items: center; margin-top: 4px; }
.modal-demo-note { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--text-3); margin-top: 16px; }
.modal-demo-note svg { width: 14px; height: 14px; }

/* routing outcome */
.route-result { animation: fadeUp .4s var(--ease); }
.route-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px; display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.route-card .ri { width: 42px; height: 42px; border-radius: 11px; background: var(--teal-soft); color: var(--teal-deep); display: grid; place-items: center; flex-shrink: 0; }
.route-card .ri svg { width: 21px; height: 21px; }
.route-card .rt { font-weight: 700; font-size: 15px; color: var(--navy); }
.route-card .rd { font-size: 13.5px; color: var(--text-2); margin-top: 2px; }
.route-match { font-size: 13px; color: var(--text-2); background: var(--teal-soft); border-radius: 12px; padding: 12px 15px; margin-bottom: 16px; }
.route-match b { color: var(--teal-700); }

/* mini form */
.form-row { display: grid; gap: 14px; margin-bottom: 14px; }
.form-row.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 520px){ .form-row.two { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--surface); font-family: var(--body); font-size: 14.5px; color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--text-2); margin: 4px 0 16px; }
.consent input { margin-top: 3px; }

/* ============================== Reveal animation ============================== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; } }

/* ============================== Utilities ============================== */
.stack > * + * { margin-top: var(--gap, 16px); }
.mt-0{margin-top:0}.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mt-4{margin-top:32px}.mt-5{margin-top:48px}
.mb-0{margin-bottom:0}.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}.mb-4{margin-bottom:32px}
.maxw-sm{max-width:560px}.maxw-md{max-width:720px}
.flex{display:flex}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.gap-2{gap:16px}.gap-3{gap:24px}
.txt-teal{color:var(--teal-deep)}.txt-coral{color:var(--coral-deep)}.txt-navy{color:var(--navy)}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 0 0 10px 0; }
.skip-link:focus { left: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ============================== Photography ===========================
   Real-world imagery on the design system. Drop an <img> inside a
   .media-frame; the frame rounds, crops (object-fit:cover) and shadows it.
   Pick an aspect with --tall (portrait), --wide (landscape) or --square. */
.media-frame { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh); background: var(--sand-2); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame--tall   { aspect-ratio: 4 / 5; }
.media-frame--wide   { aspect-ratio: 16 / 11; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--ring { box-shadow: var(--sh-lg); }
/* a soft navy wash so an optional caption stays legible; only on captioned frames */
.media-frame:has(.media-caption)::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(14,36,56,0) 48%, rgba(14,36,56,.58)); }
.media-caption { position: absolute; left: 18px; right: 18px; bottom: 14px; z-index: 1; margin: 0;
  color: #EAF1F5; font-size: 13px; font-weight: 600; letter-spacing: .01em; }
/* a small card floating over a photo (e.g. hero). .media-stage is the relative anchor. */
.media-stage { position: relative; }
.media-float { position: absolute; left: -16px; bottom: 20px; z-index: 2; max-width: 290px; box-shadow: var(--sh-lg); }
@media (max-width: 700px) { .media-float { position: static; left: 0; bottom: 0; max-width: none; margin-top: 14px; } }
/* milestone cards floating over a hero photo; each icon is a circular badge that overlaps the
   card's left edge. Reflows to inline cards in a grid on mobile. */
.media-pins { position: absolute; right: -18px; top: 50%; transform: translateY(-50%); width: 216px; display: flex; flex-direction: column; gap: 14px; z-index: 2; }
.media-pins .card { position: relative; padding: 13px 16px 13px 42px; box-shadow: var(--sh-lg); }
.media-pins .pin-badge { position: absolute; left: -23px; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; box-shadow: 0 7px 16px -6px rgba(22,50,79,.45); }
.media-pins h3 { font-size: 1rem; margin: 0; line-height: 1.15; }
.media-pins p { font-size: 12.5px; margin: 2px 0 0; line-height: 1.4; }
@media (max-width: 900px) {
  .media-pins { position: static; transform: none; width: auto; margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .media-pins .card { display: flex; align-items: center; gap: 13px; padding: 14px 16px; }
  .media-pins .pin-badge { position: static; transform: none; left: auto; top: auto; flex-shrink: 0; width: 46px; height: 46px; }
}
@media (max-width: 560px) { .media-pins { grid-template-columns: 1fr; } }

/* ── Photo-led inner-page hero ─────────────────────────────────────────────
   A .page-hero that carries a tall framed photo in a two-column .hero-grid:
   a soft teal/coral accent halo for depth behind the frame, a frosted status
   chip resting on the photo's top-right, and a bottom-left float card. Both
   floating elements sit on face-safe corners (top-right / bottom-left) so they
   never cover a subject, whatever the photo. */
.page-hero--media { padding-bottom: clamp(44px,6vw,78px); }
.page-hero--media .breadcrumb { margin-bottom: 2px; }
.page-hero--media .hero-grid { margin-top: 26px; align-items: center; }
.page-hero--media .hero-copy .lede { max-width: 48ch; }
.page-hero--media .hero-cta-row { margin-top: 26px; }

.page-hero--media .media-stage::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  inset: -6% -10% -12% -2%;
  background: radial-gradient(56% 50% at 62% 40%, rgba(59,167,160,.26), rgba(242,99,81,.11) 56%, transparent 74%);
  filter: blur(8px);
}
.page-hero--media .media-frame { z-index: 1; }

/* frosted status chip on the photo's top-right (a face-safe corner on every image) */
.media-chip {
  position: absolute; top: 15px; right: 15px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,.93); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
  box-shadow: 0 14px 28px -16px rgba(22,50,79,.6);
  font-weight: 800; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--navy);
  white-space: nowrap;
}
.media-chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(59,167,160,.22); }

/* bottom-left float card with an inline icon badge */
.page-hero--media .media-float { left: -20px; bottom: 22px; max-width: 252px; padding: 14px 16px; }
.media-float-row { display: flex; gap: 12px; align-items: flex-start; }
.media-float-row .icon-tile { margin-bottom: 0; width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0; }
.media-float-row .icon-tile svg { width: 21px; height: 21px; margin: 0; }
.media-float-row h3 { font-size: .97rem; margin: 0 0 2px; line-height: 1.16; color: var(--navy); }
.media-float-row p { font-size: 12.5px; line-height: 1.4; margin: 0; color: var(--text-2); }

@media (max-width: 900px) {
  .page-hero--media .media-stage::before { display: none; }
  .page-hero--media .media-float { left: 16px; }
}
@media (max-width: 700px) {
  .page-hero--media .media-float { position: static; left: 0; bottom: auto; max-width: none; margin-top: 14px; }
}

/* ── Home hero: guided-path / milestone illustration ───────────────────────
   A distinctive "route" the young person travels — a drawn-in progressive
   line linking five milestone nodes — replacing the photo+pins stacked-card
   look (QA R3: hero visual refinement). Pure SVG so it scales cleanly. */
.hero-visual--journey { display: flex; justify-content: center; }
.journey { position: relative; width: 100%; max-width: 520px; }
.journey::before {
  content: ""; position: absolute; inset: -4% -2% -2% -7%; z-index: 0; pointer-events: none;
  background: radial-gradient(54% 46% at 60% 38%, rgba(59,167,160,.26), rgba(242,99,81,.10) 55%, transparent 74%);
  filter: blur(10px);
}
.journey-svg { position: relative; z-index: 1; width: 100%; height: auto; overflow: visible; }
.journey-svg .jlabel { font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -.02em; fill: var(--navy); dominant-baseline: middle; }
.journey-path { stroke-dasharray: 640; stroke-dashoffset: 640; animation: journey-draw 1.7s cubic-bezier(.4,0,.2,1) forwards .15s; }
.journey-svg .jnode { transform-box: fill-box; transform-origin: center; animation: journey-pop .6s cubic-bezier(.2,.7,.3,1) both; animation-delay: var(--d, 0s); }
@keyframes journey-draw { to { stroke-dashoffset: 0; } }
@keyframes journey-pop { from { opacity: 0; transform: translateY(9px) scale(.86); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .journey-path { stroke-dashoffset: 0; animation: none; }
  .journey-svg .jnode { animation: none; }
}
@media (max-width: 900px) { .journey { max-width: 440px; margin-inline: auto; } .journey::before { display: none; } }
