/* ============================================================
   Avryn Health Management — marketing homepage stylesheet
   Modern enterprise-SaaS redesign (Adobe Experience Manager
   inspired): white surfaces, bold sans headlines, big product
   UI mockup, alternating feature rows, dark stat band, gradient
   closer. Self-contained: no external fonts/CDNs, system stack.
   Palette: Navy #0B1D3A · Teal #1BA6A6 · Slate #6B7280 · Mist #F2F4F7
   ============================================================ */

:root {
  --navy: #0B1D3A;
  --navy-2: #12294f;
  --teal: #1BA6A6;
  --teal-dark: #158a8a;
  --teal-soft: #e6f6f5;
  --slate: #6B7280;
  --ink: #0B1D3A;
  --body: #3d4757;
  --mist: #F2F4F7;
  --line: #e3e8ef;
  --white: #ffffff;
  /* semantic UI-status colors used only inside product mockups */
  --good: #1BA6A6;
  --warn: #d99730;
  --risk: #d9534f;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", sans-serif;
  --shadow-sm: 0 1px 2px rgba(11,29,58,.06), 0 1px 3px rgba(11,29,58,.08);
  --shadow-md: 0 10px 30px -12px rgba(11,29,58,.18);
  --shadow-lg: 0 40px 80px -30px rgba(11,29,58,.35);
  --radius: 14px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--body);
  background: var(--white);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { color: var(--ink); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 800; }
p { margin: 0 0 1rem; }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { color: var(--teal); }
img, svg { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 92px 0; }
.section--mist { background: var(--mist); }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--teal); color: #fff; padding: .75rem 1.25rem; font-weight: 700; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

/* ---------- Shared bits ---------- */
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--teal-dark); margin-bottom: 1rem;
}
.eyebrow--light { color: #7fe0d6; }
.lede { font-size: 1.18rem; color: var(--slate); max-width: 44ch; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.85rem); }
.section-head p { font-size: 1.12rem; color: var(--slate); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: inherit; font-size: .98rem; font-weight: 700; line-height: 1;
  padding: .9rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 12px 26px -12px rgba(27,166,166,.7); }
.btn-primary:hover { background: var(--teal-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(27,166,166,.8); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); transform: translateY(-2px); }
.btn-ghost--light { color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost--light:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.08); }
.btn-lg { padding: 1.05rem 1.9rem; font-size: 1.05rem; }
.btn-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--teal-dark); }
.btn-link svg { width: 1em; height: 1em; transition: transform .18s var(--ease); }
.btn-link:hover svg { transform: translateX(4px); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 2rem; height: 74px; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.nav-logo { display: inline-flex; align-items: center; gap: .6rem; }
.nav-logo-mark { width: 40px; height: auto; }
.nav-logo-name { font-size: 1.35rem; font-weight: 800; letter-spacing: .16em; color: var(--navy); }
.nav-menu { list-style: none; display: flex; align-items: center; gap: .35rem; margin: 0; padding: 0; margin-left: auto; }
.nav-menu > li > a:not(.btn) {
  display: inline-block; padding: .55rem .9rem; font-size: .96rem; font-weight: 600; color: var(--ink);
  border-radius: 8px;
}
.nav-menu > li > a:not(.btn):hover { color: var(--teal-dark); background: var(--mist); }
.nav-cta { margin-left: .6rem; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; background: transparent; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; padding: 0; }
.nav-toggle-bar { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--navy); transition: .2s var(--ease); }

/* ============================================================
   HERO
   ============================================================ */
/* Hero background photo: client-supplied family portrait, stored locally at
   images/hero-family.jpg (never hotlinked). Portrait source, so on wide
   viewports only a horizontal band shows — positioned on the faces.
   A navy scrim keeps the light hero text readable, then fades to --mist
   near the bottom so the product mockup sits on a clean light surface. */
.hero {
  position: relative; overflow: hidden; text-align: center;
  padding: 96px 0 0;
  background:
    linear-gradient(180deg,
      rgba(8,17,38,.86) 0%,
      rgba(11,29,58,.66) 24%,
      rgba(11,29,58,.60) 44%,
      rgba(20,41,79,.66) 58%,
      rgba(242,244,247,.97) 80%,
      var(--mist) 90%),
    url("../images/hero-family.jpg?v=2") center 40% / cover no-repeat;
}
.hero-inner { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.hero .eyebrow { color: #8fe9df; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); font-weight: 800; letter-spacing: -0.03em; color: #fff; text-shadow: 0 2px 24px rgba(3,10,26,.35); }
.hero h1 .accent { color: #5fe6d8; }
.hero .lede { font-size: clamp(1.1rem, 2.2vw, 1.35rem); color: #e0e8f4; max-width: 40ch; margin: 1.4rem auto 2rem; text-shadow: 0 1px 16px rgba(3,10,26,.35); }
.hero-cta { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.06); }
.hero .btn-ghost:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.14); }
.hero-trust { margin: 2rem auto 0; color: #cdd8ea; font-size: .9rem; font-weight: 600; letter-spacing: .01em; text-shadow: 0 1px 14px rgba(3,10,26,.4); }
.hero-trust b { color: #fff; }

/* product mockup shell */
.hero-shot { max-width: 1080px; margin: 60px auto -70px; padding: 0 24px; }
.browser {
  border-radius: 16px; overflow: hidden; background: #fff;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #f6f8fb; border-bottom: 1px solid var(--line); }
.browser-bar span { width: 11px; height: 11px; border-radius: 50%; background: #d7dde6; }
.browser-bar span:nth-child(1) { background: #ff5f57; }
.browser-bar span:nth-child(2) { background: #febc2e; }
.browser-bar span:nth-child(3) { background: #28c840; }
.browser-url { margin-left: 12px; font-size: .78rem; color: var(--slate); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; }

/* app dashboard mockup */
.app { display: grid; grid-template-columns: 210px 1fr; min-height: 460px; text-align: left; }
.app-side { background: var(--navy); color: #cdd8ea; padding: 20px 16px; }
.app-brand { display: flex; align-items: center; gap: .5rem; color: #fff; font-weight: 800; letter-spacing: .14em; margin-bottom: 26px; }
.app-brand img { width: 26px; }
.app-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.app-nav li { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border-radius: 9px; font-size: .86rem; color: #9fb0cc; }
.app-nav li .ico { width: 16px; height: 16px; border-radius: 5px; background: rgba(255,255,255,.14); flex: none; }
.app-nav li.active { background: rgba(27,166,166,.22); color: #fff; }
.app-nav li.active .ico { background: var(--teal); }
.app-main { padding: 22px 24px; background: #fbfcfe; }
.app-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.app-h h4 { margin: 0; font-size: 1.05rem; }
.app-h .pill { font-size: .72rem; font-weight: 700; color: var(--teal-dark); background: var(--teal-soft); padding: .3rem .7rem; border-radius: 999px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.kpi .l { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--slate); font-weight: 700; }
.kpi .v { font-size: 1.5rem; font-weight: 800; color: var(--navy); line-height: 1.1; margin-top: 4px; }
.kpi .d { font-size: .72rem; font-weight: 700; }
.kpi .d.up { color: var(--good); }
.kpi .d.down { color: var(--risk); }
.app-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.panel h5 { margin: 0 0 10px; font-size: .82rem; color: var(--slate); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.chart-svg { width: 100%; height: 120px; }
.chart-svg .area { fill: url(#tealfade); }
.chart-svg .line { fill: none; stroke: var(--teal); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chart-svg .dot { fill: var(--teal); }
.alist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.alist li { display: flex; align-items: center; gap: 10px; font-size: .82rem; }
.ava { width: 28px; height: 28px; border-radius: 50%; background: var(--mist); flex: none; display: grid; place-items: center; font-weight: 800; color: var(--navy); font-size: .72rem; }
.alist .nm { font-weight: 600; color: var(--navy); }
.alist .meta { color: var(--slate); font-size: .72rem; }
.score { margin-left: auto; font-weight: 800; font-size: .78rem; padding: .18rem .55rem; border-radius: 999px; }
.score.good { color: #0c6b6b; background: var(--teal-soft); }
.score.warn { color: #8a5c12; background: #fbf0dc; }
.score.risk { color: #8f2f2b; background: #fbe3e2; }

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.trust .container { padding-top: 98px; padding-bottom: 34px; }
.trust-label { text-align: center; color: var(--slate); font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 20px; }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 34px; }
.badge { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--navy); font-size: .95rem; }
.badge svg { width: 20px; height: 20px; color: var(--teal); }

/* ============================================================
   FEATURE ROWS (alternating)
   ============================================================ */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.feature + .feature { margin-top: 60px; }
.feature.reverse .feature-text { order: 2; }
.feature.reverse .feature-media { order: 1; }
.feature.reverse { align-items: center; }
.feature-text h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.feature-text p { color: var(--slate); font-size: 1.08rem; }
.checklist { list-style: none; margin: 1.2rem 0 1.6rem; padding: 0; display: grid; gap: .7rem; }
.checklist li { display: flex; align-items: flex-start; gap: .65rem; font-weight: 600; color: var(--navy); }
.checklist li svg { width: 20px; height: 20px; color: var(--teal); flex: none; margin-top: 2px; }
.feature-media { position: relative; }
.media-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px;
  box-shadow: var(--shadow-md);
}
.media-card.tinted { background: linear-gradient(160deg, #fff, var(--mist)); }

/* mock: message thread */
.thread { display: grid; gap: 12px; }
.bubble { max-width: 82%; padding: 12px 15px; border-radius: 16px; font-size: .92rem; line-height: 1.45; }
.bubble.in { background: var(--mist); color: var(--navy); border-bottom-left-radius: 5px; }
.bubble.out { background: var(--teal); color: #fff; margin-left: auto; border-bottom-right-radius: 5px; }
.bubble .t { display: block; font-size: .68rem; opacity: .7; margin-top: 5px; }
.thread-meta { display: flex; align-items: center; gap: .5rem; font-size: .78rem; color: var(--slate); font-weight: 600; margin-bottom: 4px; }
.chan { font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--teal-dark); background: var(--teal-soft); padding: .15rem .5rem; border-radius: 6px; }

/* mock: score gauge */
.gauge-wrap { display: flex; align-items: center; gap: 22px; }
.gauge { position: relative; width: 140px; height: 140px; flex: none; }
.gauge svg { transform: rotate(-90deg); }
.gauge .track { fill: none; stroke: var(--mist); stroke-width: 12; }
.gauge .val { fill: none; stroke: var(--teal); stroke-width: 12; stroke-linecap: round; }
.gauge .num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.gauge .num b { font-size: 2.1rem; font-weight: 800; color: var(--navy); line-height: 1; }
.gauge .num span { font-size: .58rem; color: var(--slate); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; max-width: 82px; text-align: center; line-height: 1.15; margin-top: 5px; }
.dims { display: grid; gap: 12px; flex: 1; }
.dim .dl { display: flex; justify-content: space-between; font-size: .82rem; font-weight: 700; color: var(--navy); margin-bottom: 5px; }
.dim .dl span { color: var(--slate); }
.bar { height: 7px; border-radius: 999px; background: var(--mist); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--teal), #48cfbf); }

/* mock: alert routing */
.alert-card { display: grid; gap: 14px; }
.alert-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.alert-row .dotwarn { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.alert-row .dotwarn.r { background: var(--risk); box-shadow: 0 0 0 4px rgba(217,83,79,.15); }
.alert-row .dotwarn.w { background: var(--warn); box-shadow: 0 0 0 4px rgba(217,151,48,.15); }
.alert-row .body { flex: 1; }
.alert-row .body b { color: var(--navy); font-size: .9rem; }
.alert-row .body span { display: block; color: var(--slate); font-size: .78rem; }
.alert-row .route { font-size: .72rem; font-weight: 700; color: var(--teal-dark); background: var(--teal-soft); padding: .28rem .6rem; border-radius: 999px; white-space: nowrap; }

/* ============================================================
   VALUE CARDS (brand four)
   ============================================================ */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cdd6e4; }
.value-ico { width: 52px; height: 52px; border-radius: 13px; background: var(--teal-soft); display: grid; place-items: center; margin-bottom: 18px; }
.value-ico svg { width: 26px; height: 26px; color: var(--teal-dark); }
.value h3 { font-size: 1.18rem; margin-bottom: .4rem; }
.value p { font-size: .96rem; color: var(--slate); margin: 0; }

/* ============================================================
   STATS BAND (dark)
   ============================================================ */
.stats { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.stats::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 120% at 85% 0%, rgba(27,166,166,.28), transparent 60%); }
.stats .container { position: relative; }
.stats-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.stats-head h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.stats-head p { color: #a9b8d1; font-size: 1.08rem; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat { text-align: center; padding: 26px 18px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); background: rgba(255,255,255,.03); }
.stat b { display: block; font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; color: #58d9cc; letter-spacing: -0.02em; }
.stat span { display: block; margin-top: 6px; color: #c3d0e5; font-size: .95rem; font-weight: 600; }

/* ============================================================
   PULL QUOTE
   ============================================================ */
.quote { text-align: center; }
.quote blockquote { max-width: 860px; margin: 0 auto; font-size: clamp(1.5rem, 3.4vw, 2.25rem); font-weight: 800; letter-spacing: -0.02em; color: var(--navy); line-height: 1.28; }
.quote .mark { color: var(--teal); }
.quote cite { display: block; margin-top: 24px; font-style: normal; font-weight: 700; color: var(--slate); font-size: .98rem; letter-spacing: .02em; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.closer { position: relative; overflow: hidden; text-align: center; color: #fff;
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 45%, var(--teal-dark) 120%); }
.closer::before { content: ""; position: absolute; inset: 0; background: radial-gradient(45% 90% at 80% 20%, rgba(88,217,204,.30), transparent 60%); }
.closer .container { position: relative; padding-top: 84px; padding-bottom: 84px; }
.closer h2 { color: #fff; font-size: clamp(2rem, 4.4vw, 3rem); max-width: 18ch; margin: 0 auto .8rem; }
.closer p { color: #c8d4e8; font-size: 1.15rem; max-width: 46ch; margin: 0 auto 2rem; }
.closer .hero-cta { justify-content: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: #08152c; color: #9fb0cc; padding: 68px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .fb-lock { display: flex; align-items: center; gap: .6rem; margin-bottom: 14px; }
.footer-brand .logo-tile { background: #fff; border-radius: 10px; padding: 8px; display: inline-grid; place-items: center; }
.footer-brand .logo-tile img { width: 34px; }
.footer-brand .fb-name { font-size: 1.15rem; font-weight: 800; letter-spacing: .14em; color: #fff; }
.footer-brand p { max-width: 34ch; font-size: .92rem; color: #8496b4; }
.footer-col h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: #9fb0cc; font-size: .94rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: .84rem; color: #6f809e; }
.footer-bottom .tagline { color: #7fe0d6; font-weight: 700; letter-spacing: .04em; }
.footer-compliance { margin: 34px 0 0; font-size: .84rem; line-height: 1.6; color: #8496b4; max-width: 92ch; }

/* ============================================================
   REVEAL — pure CSS on-load fade-up, no JS. Content is NEVER left
   hidden: the opacity:0 start only exists while the animation is
   armed (motion allowed); reduced-motion skips it entirely.
   ============================================================ */
@keyframes reveal-in { from { opacity: 0; transform: translateY(56px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  /* Scroll-driven fade-up: each .reveal block animates as it enters the
     viewport. Pure CSS (no JS / no scroll observer). Browsers without
     scroll-timeline support ignore animation-timeline/range and fall back to
     a one-shot fade-in on load — content always ends visible. */
  .reveal {
    opacity: 0;
    animation: reveal-in .8s var(--ease) both;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
  }
  /* Time-based stagger for the on-load fallback (ignored under scroll timeline) */
  .feature.reveal { animation-delay: .05s; }
  .value.reveal:nth-child(2) { animation-delay: .08s; }
  .value.reveal:nth-child(3) { animation-delay: .16s; }
  .value.reveal:nth-child(4) { animation-delay: .24s; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav-menu {
    position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 4px; background: #fff; border-bottom: 1px solid var(--line); padding: 14px 20px 22px;
    box-shadow: var(--shadow-md); display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-cta { margin-left: 0; margin-top: 8px; }
  .nav-menu .btn { width: 100%; }
  .nav-toggle { display: block; }
  .feature, .feature.reverse { grid-template-columns: 1fr; gap: 32px; }
  .feature.reverse .feature-text, .feature.reverse .feature-media { order: 0; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .app { grid-template-columns: 1fr; }
  .app-side { display: none; }
}
@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .values { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-shot { margin-bottom: -80px; }
  .app-grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   INTERIOR PAGES (how-it-works, features, who-its-for, contact,
   privacy, 404) — shared components layered on the same system.
   ============================================================ */

/* Compact interior hero */
.page-hero {
  text-align: center; padding: 84px 0 66px; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(60% 65% at 50% 0%, rgba(27,166,166,.10), transparent 70%),
    linear-gradient(180deg, #ffffff 0%, var(--mist) 100%);
}
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.15rem); max-width: 17ch; margin: 0 auto .5rem; }
.page-hero p { font-size: clamp(1.05rem, 2.2vw, 1.24rem); color: var(--slate); max-width: 58ch; margin: .2rem auto 0; }

/* Pill tag (layer / future-vertical labels) */
.tag { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal-dark); background: var(--teal-soft); padding: .32rem .7rem; border-radius: 999px; margin-bottom: 1rem; }

/* Check list (features, who-its-for, contact) */
.check-list { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: .6rem; }
.check-list li { position: relative; padding-left: 1.7rem; color: var(--body); font-size: .97rem; line-height: 1.5; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--teal); font-weight: 800; }
.check-list strong { color: var(--navy); }

/* Numbered steps (how-it-works) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease); }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cdd6e4; }
.step-num { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 13px;
  background: var(--teal-soft); color: var(--teal-dark); font-weight: 800; font-size: 1.15rem; margin-bottom: 16px; }
.step h3 { font-size: 1.14rem; margin-bottom: .4rem; }
.step p { color: var(--slate); font-size: .97rem; margin: 0; }

/* Generic card grid (role summaries, audience cards) */
.cardgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cdd6e4; }
.card h3 { font-size: 1.18rem; margin-bottom: .5rem; }
.card p { color: var(--slate); font-size: .97rem; margin: 0; }

/* Two-column split (feature rows, rationale, contact) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.split h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
.split .lede { margin-top: .6rem; }

/* Contact form (native mailto, JS-free) */
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .82rem; letter-spacing: .03em; color: var(--navy); margin-bottom: .45rem; }
.field .req { color: var(--teal); }
.field input, .field textarea { width: 100%; font: inherit; font-size: .98rem; padding: .8rem 1rem;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fbfcfe; color: var(--ink); transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(27,166,166,.14); background: #fff; }
.form .btn { width: 100%; margin-top: 4px; }
.form-hint { font-size: .82rem; color: var(--slate); margin-top: .9rem; }
.contact-aside h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); }
.contact-aside > p { color: var(--slate); }
.contact-detail { display: inline-flex; align-items: center; gap: .6rem; margin: 1.3rem 0; font-weight: 700; color: var(--navy); }
.contact-detail svg { width: 20px; height: 20px; color: var(--teal); }

/* Prose (privacy) */
.prose { max-width: 760px; margin: 0 auto; }
.prose h1 { font-size: clamp(2rem, 4.4vw, 2.85rem); margin-bottom: .3rem; }
.prose .updated { color: var(--slate); font-weight: 600; margin-bottom: 2rem; }
.prose h2 { font-size: 1.32rem; margin-top: 2.5rem; }
.prose p { color: var(--body); }
.prose ul { padding-left: 1.15rem; display: grid; gap: .5rem; margin: 1rem 0 1.4rem; }
.prose li { color: var(--body); }
.prose a { color: var(--teal-dark); font-weight: 600; }

/* 404 */
.error { text-align: center; padding: 120px 0; }
.error .code { font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; line-height: 1; color: var(--teal); letter-spacing: -.04em; }
.error h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: .4rem 0 .7rem; }
.error p { color: var(--slate); max-width: 46ch; margin: 0 auto 1.8rem; }
.error .hero-cta { justify-content: center; }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .cardgrid, .cardgrid.cols-2 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================================
   Executive Visibility section + shared new components
   (crisis-safety note, Average Connection Score callout, tagline banner)
   ============================================================ */

/* Crisis-safety note under the SMS thread mockup */
.thread-note {
  margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line);
  font-size: .78rem; line-height: 1.5; color: var(--slate);
}
.thread-note b { color: var(--navy); }

/* Average Connection Score definition callout inside a feature row */
.def-callout {
  margin: 18px 0 0; padding: 14px 16px; border-left: 3px solid var(--teal);
  background: var(--teal-soft); border-radius: 0 10px 10px 0;
  font-size: .96rem; color: var(--body);
}
.def-callout b { color: var(--navy); }

/* Executive Visibility — grouped KPI pillars */
.exec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.exec-pillar {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 24px 20px; box-shadow: var(--shadow-sm);
}
.exec-pillar-tag {
  display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--teal-dark); margin-bottom: 12px;
}
.exec-pillar ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.exec-pillar li {
  font-size: 1.02rem; font-weight: 700; color: var(--navy);
  padding-left: 24px; position: relative;
}
.exec-pillar li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 9px; height: 9px;
  border-radius: 3px; background: var(--teal);
}

/* Illustrative executive summary dashboard mockup */
.exec-summary {
  margin: 34px 0 0; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md);
}
.es-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px; background: var(--navy); color: #fff;
}
.es-title { font-weight: 800; letter-spacing: -.01em; }
.es-period {
  font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #7fe0d6; border: 1px solid rgba(127,224,214,.4); border-radius: 999px; padding: 3px 10px;
}
.es-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.es-kpi { background: #fff; padding: 20px 22px; }
.es-kpi .l {
  display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em;
  font-weight: 700; color: var(--slate);
}
.es-kpi .v { display: block; margin-top: 6px; font-size: 1.8rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.es-kpi--trend .v { color: var(--teal); font-size: 1.3rem; }

.exec-note { text-align: center; max-width: 62ch; margin: 26px auto 0; font-size: .92rem; color: var(--slate); }

/* Tagline banner (between Executive Visibility and the closer) */
.tagline-banner { background: linear-gradient(90deg, var(--teal-dark), var(--teal)); text-align: center; padding: 40px 0; }
.tagline-banner p {
  margin: 0; font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.01em; color: #fff;
}

@media (max-width: 900px) {
  .exec-grid { grid-template-columns: 1fr; }
  .es-kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .es-kpis { grid-template-columns: 1fr; }
  .es-bar { padding: 12px 16px; }
  .es-kpi { padding: 16px; }
}

/* ============================================================
   CONTINUING-CARE PAGES — components for the how-it-works /
   features / who-its-for / contact copy. Same tokens, same
   system font stack, no external resources.
   ============================================================ */

/* Left-aligned variant of .section-head (layer + feature intros) */
.section-head--left { margin-left: 0; margin-right: 0; text-align: left; max-width: 640px; }
.section-head--left p { margin-left: 0; }
.section-head p + p { margin-top: .8rem; }

/* Layer legend under the how-it-works hero */
.loop-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 1.8rem; }
.loop-legend span {
  display: inline-flex; align-items: center; gap: .55rem; background: #fff;
  border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1rem .5rem .8rem;
  font-size: .88rem; font-weight: 600; color: var(--navy); box-shadow: var(--shadow-sm);
}
.loop-legend i { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); flex: none; }
.loop-legend i.n2 { background: #4f86c6; }
.loop-legend i.n3 { background: var(--warn); }

/* Capability chips on a step card */
.step-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { font-size: .72rem; font-weight: 700; letter-spacing: .02em; padding: .28rem .65rem; border-radius: 999px; }
.chip--config { background: var(--teal-soft); color: var(--teal-dark); }
.chip--human { background: #eef1fb; color: #3a4fb0; }
.chip--ready { background: #fbf1e0; color: #8a5c12; }

/* Trailing qualifier under a group of cards */
.layer-note {
  margin: 30px 0 0; padding-top: 22px; border-top: 1px solid var(--line);
  color: var(--slate); font-size: .98rem; max-width: 70ch;
}
.note-line { margin: 1rem 0 0; font-size: .88rem; line-height: 1.6; color: var(--slate); }

/* Centered statement band */
.statement { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 46px 0; }
.statement .container { text-align: center; }
.statement-line { margin: 0 auto; max-width: 60ch; font-size: clamp(1.1rem, 2.4vw, 1.4rem); font-weight: 700; letter-spacing: -.01em; color: var(--navy); }
.statement-sub { margin: 14px auto 0; max-width: 62ch; font-size: .98rem; color: var(--slate); }
.statement--mist { background: var(--mist); }

/* Pill list (integration options, "built for" audiences) */
.pill-kicker { margin: 0 0 18px; text-align: center; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-dark); }
.pill-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pill-list li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1.1rem; font-size: .9rem; font-weight: 600; color: var(--navy); }
.pill-note { margin: 18px 0 0; text-align: center; font-size: .86rem; color: var(--slate); }

/* Scope-of-service disclaimer bar */
.disclaimer { background: var(--navy); color: #c3d0e5; padding: 28px 0; }
.disclaimer .container { display: flex; gap: 14px; align-items: flex-start; }
.disclaimer svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: #7fe0d6; }
.disclaimer p { margin: 0; font-size: .94rem; line-height: 1.6; max-width: 90ch; }
.disclaimer strong { color: #fff; }

/* Two-up card grid (audience cards, which read long) */
.cardgrid.cols-2 { grid-template-columns: repeat(2, 1fr); }

/* Compact outcome grid (who-its-for operating impact) */
.roi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.roi-item { display: flex; align-items: center; gap: .7rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.roi-item svg { width: 18px; height: 18px; flex: none; color: var(--teal); }
.roi-item p { margin: 0; font-size: .95rem; font-weight: 600; color: var(--navy); }

/* Pull statement inside the dark closer */
.closer-pull {
  max-width: 42ch; margin: 34px auto 30px; padding-top: 28px;
  border-top: 1px solid rgba(127,224,214,.3);
  font-size: clamp(1.1rem, 2.4vw, 1.35rem); font-weight: 700; color: #fff; line-height: 1.5;
}
.closer .eyebrow { color: #8fe9df; display: block; margin-bottom: .8rem; }
.closer-note { margin: 1.6rem auto 0; font-size: .9rem; color: #a9b8d1; }

/* Role entry chips (who-its-for closer) */
.role-entry-label { margin: 2rem auto .9rem; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8fe9df; }
.role-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.role-chips a {
  border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: .5rem 1.1rem;
  font-size: .9rem; font-weight: 600; color: #fff; transition: background .15s var(--ease), border-color .15s var(--ease);
}
.role-chips a:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }

/* Contact form — selects and paired fields */
.field select {
  width: 100%; font: inherit; font-size: .98rem; padding: .8rem 1rem;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fbfcfe; color: var(--ink);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(27,166,166,.14); background: #fff; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-row .field { margin-bottom: 0; }
.field-row + .field, .field-row + .field-row { margin-top: 18px; }
.form-section-label {
  margin: 26px 0 16px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--slate);
}

/* Three-step process cards (contact) */
.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: process; }
.process-step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; }
.process-step .n {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--teal-soft); color: var(--teal-dark); font-weight: 800; margin-bottom: 14px;
}
.process-step h3 { font-size: 1.08rem; margin-bottom: .4rem; }
.process-step p { margin: 0; color: var(--slate); font-size: .95rem; }

@media (max-width: 900px) {
  .roi-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: 1fr; }
  .disclaimer .container { flex-direction: column; gap: 10px; }
}
@media (max-width: 560px) {
  .roi-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .field-row .field { margin-bottom: 18px; }
  .loop-legend { flex-direction: column; align-items: stretch; }
}
