/* B Health Care — landing site styles */

:root {
  --teal: #099aa7;
  --teal-deep: #077f8a;
  --mint: #3fbcc7;
  --ink: #0b1f2a;
  --slate: #4b5f6a;
  --ground: #f4f8f8;
  --surface: #ffffff;
  --coral: #f2734b;
  --sand: #d9b48c;
  --hair: rgba(11, 31, 42, 0.12);
  --hair-strong: rgba(11, 31, 42, 0.22);
  --teal-tint: rgba(9, 154, 167, 0.08);

  --font-display: "Plus Jakarta Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: "DM Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-pad: clamp(64px, 9vw, 120px);
  --radius: 14px;
  --shadow-lift: 0 18px 40px -22px rgba(11, 31, 42, 0.35);
  --shadow-card: 0 24px 60px -36px rgba(11, 31, 42, 0.35);
  --header-h: 72px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--slate);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 1.3rem + 3.4vw, 4rem); }
h2 { font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.75rem); }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }

p { margin: 0; }
p + p { margin-top: 0.75em; }

a { color: var(--teal-deep); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--teal); }
button { font: inherit; color: inherit; }

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

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* Eyebrows and mono details */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-deep);
}
.eyebrow-light { color: var(--mint); }
.product-mark::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--mint), var(--teal));
  margin-right: 10px;
  vertical-align: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 8px 20px -12px rgba(9, 154, 167, 0.9);
}
.btn-primary:hover { background: var(--teal-deep); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--hair-strong);
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); background: rgba(255, 255, 255, 0.6); }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 1.0625rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244, 248, 248, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hair);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark { flex: none; width: 32px; height: 32px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand-light { color: #fff; }

.site-nav { margin-left: auto; }
.site-nav ul {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: inline-block;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 6px 0;
  position: relative;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease;
}
.site-nav a:hover::after,
.site-nav a.is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--hair-strong);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: var(--ink);
  transition: transform 200ms ease, opacity 200ms ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  .header-inner { gap: 12px; }
  .header-login { margin-left: auto; }
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--ground);
    border-bottom: 1px solid var(--hair);
    box-shadow: 0 24px 40px -30px rgba(11, 31, 42, 0.4);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a {
    display: block;
    padding: 14px 0;
    font-size: 1.0625rem;
    border-bottom: 1px solid var(--hair);
  }
  .site-nav li:last-child a { border-bottom: 0; }
  .site-nav a::after { display: none; }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(48px, 7vw, 96px) clamp(48px, 6vw, 88px);
}
.hero::before {
  content: "";
  position: absolute;
  inset: auto -10% -40% 40%;
  height: 90%;
  background: radial-gradient(closest-side, rgba(63, 188, 199, 0.18), rgba(63, 188, 199, 0));
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 13fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  position: relative;
}
.hero-copy { max-width: 34rem; }
.hero-copy .eyebrow { margin-bottom: 22px; }
.hero-copy h1 { margin-bottom: 22px; }
.lead {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.55;
  max-width: 32rem;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-scene {
  position: relative;
  aspect-ratio: 5 / 4;
  min-height: 320px;
  max-height: 620px;
  width: 100%;
}
.scene-canvas { position: absolute; inset: 0; }
.scene-canvas canvas {
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
}
.scene-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-scene.is-3d .scene-fallback { display: none; }
.hero-scene:not(.is-3d) .scene-canvas { display: none; }
.hero-scene.is-3d .scene-canvas { animation: scene-in 700ms ease both; }
@keyframes scene-in { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: none; }
  .hero-scene {
    aspect-ratio: auto;
    height: 58vw;
    min-height: 220px;
    max-height: 420px;
    margin-top: 12px;
  }
}

/* Sections and textures */
.section {
  position: relative;
  isolation: isolate;
  padding-block: var(--section-pad);
}
.section-head { max-width: 42rem; margin-bottom: clamp(36px, 4vw, 56px); }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 { margin-bottom: 16px; }
.section-head h2:last-child { margin-bottom: 0; }
.section-lead { max-width: 60ch; font-size: 1.0625rem; }

.texture-dots::before,
.texture-dashes::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.texture-dots::before {
  background-image: radial-gradient(rgba(11, 31, 42, 0.13) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.25) 60%, rgba(0, 0, 0, 0.7));
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.25) 60%, rgba(0, 0, 0, 0.7));
  opacity: 0.55;
}
.texture-dashes::before {
  background-image: repeating-linear-gradient(0deg, transparent 0 62px, rgba(9, 154, 167, 0.22) 62px 64px);
  -webkit-mask-image: repeating-linear-gradient(90deg, #000 0 12px, transparent 12px 26px);
  mask-image: repeating-linear-gradient(90deg, #000 0 12px, transparent 12px 26px);
  opacity: 0.6;
}

/* Services */
.services { background: var(--surface); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.pillar {
  position: relative;
  padding: 28px 24px 30px;
  border: 1px solid var(--hair);
  background: linear-gradient(150deg, #fff 35%, #f0f8f7);
  border-radius: 20px;
  transition: box-shadow 220ms ease, border-color 220ms ease;
}
.pillar:hover { border-color: rgba(9, 154, 167, 0.4); }
.pillar-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  color: var(--teal);
  background: var(--teal-tint);
  margin-bottom: 22px;
}
.pillar-num {
  position: absolute;
  top: 38px;
  right: 24px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--slate);
  opacity: 0.7;
}
.pillar h3 { margin-bottom: 12px; font-size: 1.125rem; overflow-wrap: anywhere; }
.pillar p { font-size: 0.9375rem; line-height: 1.55; }
.pillar.is-lifted { background: var(--surface); box-shadow: var(--shadow-lift); }

@media (max-width: 1100px) {
  .pillars { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .pillar { grid-column: span 2; }
  .pillar:nth-last-child(-n+2) { grid-column: span 3; }
}
@media (max-width: 720px) {
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillar, .pillar:nth-last-child(-n+2) { grid-column: auto; }
  .pillar:last-child { grid-column: 1 / -1; }
}
@media (max-width: 460px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { padding: 24px; }
  .pillar-icon { margin-bottom: 16px; }
}

/* How it works: route */
.how { background: var(--ground); }
.route { position: relative; }
.route-svg { width: 100%; height: auto; overflow: visible; }
.route-svg-mobile { display: none; }
.route-line {
  fill: none;
  stroke: var(--hair-strong);
  stroke-width: 3;
  stroke-linecap: round;
}
.route-line-next { stroke-dasharray: 6 10; stroke: var(--hair); }
.stop-halo { fill: var(--teal); opacity: 0; transition: opacity 400ms ease; }
.stop-dot {
  fill: var(--surface);
  stroke: var(--hair-strong);
  stroke-width: 2.5;
  transition: fill 300ms ease, stroke 300ms ease;
}
.stop-label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  fill: var(--slate);
  text-anchor: middle;
  transition: fill 300ms ease;
}
.route-stop.is-lit .stop-dot { fill: var(--teal); stroke: var(--teal); }
.route-stop.is-lit .stop-label { fill: #fff; }
.route-stop.is-lit .stop-halo { opacity: 0.16; }
.route-truck { filter: drop-shadow(0 4px 6px rgba(11, 31, 42, 0.25)); }

.route-steps {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.route-step { padding-right: 32px; }
.step-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 12px;
  transition: color 300ms ease;
}
.route-step h3 { margin-bottom: 10px; }
.route-step p { font-size: 0.9375rem; line-height: 1.55; max-width: 28ch; }
.route-step.is-lit .step-num { color: var(--teal-deep); }

@media (max-width: 760px) {
  .route-svg-desktop { display: none; }
  .route-svg-mobile { display: block; width: 100%; }
  .route-steps { position: absolute; inset: 0; margin: 0; display: block; }
  .route-step {
    position: absolute;
    left: 20%;
    right: 0;
    padding-right: 0;
    transform: translateY(-16px);
  }
  .route-step p { max-width: none; }
  .route-step[data-step="0"] { top: calc(40 / 760 * 100%); }
  .route-step[data-step="1"] { top: calc(230 / 760 * 100%); }
  .route-step[data-step="2"] { top: calc(420 / 760 * 100%); }
  .route-step[data-step="3"] { top: calc(610 / 760 * 100%); }
}
@media (max-width: 400px) {
  .route-step h3 { font-size: 1.125rem; }
  .route-step p { font-size: 0.9rem; }
}

/* Products */
.product { background: var(--surface); border-top: 1px solid var(--hair); }
.product-flip { background: var(--ground); }
.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.product-flip .product-copy { order: 2; }
.product-copy .eyebrow { margin-bottom: 16px; }
.product-copy h2 { margin-bottom: 16px; }
.points {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.points li {
  position: relative;
  padding-left: 28px;
  color: var(--ink);
  font-size: 1rem;
}
.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--teal-tint);
  box-shadow: inset 0 0 0 1.5px var(--teal);
}
.points li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: calc(0.35em + 4px);
  width: 6px;
  height: 3px;
  border-left: 1.8px solid var(--teal);
  border-bottom: 1.8px solid var(--teal);
  transform: rotate(-45deg);
}
.product-link {
  display: inline-flex;
  align-items: center;
  margin-top: 28px;
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  color: var(--teal-deep);
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
}
.product-link:hover { color: var(--teal); }

.product-art {
  position: relative;
  border-radius: 24px;
  padding: clamp(12px, 2vw, 22px);
  background: linear-gradient(180deg, #fff, var(--ground));
  border: 1px solid var(--hair);
  box-shadow: var(--shadow-card);
}
.art { width: 100%; height: auto; display: block; }

/* Art shared styles */
.art-panel { fill: #fff; stroke: var(--hair); }
.art-hair { stroke: var(--hair); }
.art-grid path { fill: none; stroke: rgba(11, 31, 42, 0.08); }
.art-mono {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.2px;
  fill: var(--ink);
}
.art-mono-dim { fill: var(--slate); opacity: 0.85; }
.mk-track { fill: rgba(11, 31, 42, 0.08); }
.mk-count-card { fill: var(--ink); }

/* Smart Route art */
.sr-rail { stroke: var(--hair-strong); stroke-width: 3; }
.sr-progress { stroke: var(--teal); stroke-width: 3; stroke-linecap: round; }
.sr-stage { color: var(--slate); }
.sr-stage circle { fill: #fff; stroke: var(--hair-strong); stroke-width: 2; transition: fill 300ms ease, stroke 300ms ease; }
.sr-stage text { fill: var(--slate); font-weight: 500; transition: fill 300ms ease; }
.sr-stage.is-on { color: #fff; }
.sr-stage.is-on circle { fill: var(--teal); stroke: var(--teal); }
.sr-stage.is-on text { fill: var(--teal-deep); }
.sr-chip rect:first-child { fill: var(--sand); }
.sr-chip rect:last-child { fill: #f4f8f8; }
.sr-route-bg { fill: none; stroke: var(--hair); stroke-width: 3; stroke-dasharray: 4 7; }
.sr-route { fill: none; stroke: var(--teal); stroke-width: 3; stroke-linecap: round; }
.sr-stop circle { fill: #fff; stroke: var(--teal); stroke-width: 2.5; }
.sr-stop text { fill: var(--slate); }
.sr-map-route { fill: none; stroke: var(--teal); stroke-width: 3; stroke-linecap: round; }
.sr-map-pins circle { fill: #fff; stroke: var(--teal); stroke-width: 2; }
.sr-map-truck { fill: var(--teal); stroke: #fff; stroke-width: 2.5; }
.sr-toast rect { fill: #fff; stroke: var(--hair); }
.sr-bill rect { fill: #fff; stroke: var(--hair-strong); }

/* Outreach art */
.mk-bubble text { font-family: var(--font-body); font-size: 11.5px; }
.mk-out rect { fill: var(--teal); }
.mk-out text { fill: #fff; }
.mk-in rect { fill: #fff; stroke: var(--hair-strong); }
.mk-in text { fill: var(--ink); font-weight: 500; }
.mk-typing rect { fill: #fff; stroke: var(--hair-strong); }
.mk-typing circle { fill: var(--slate); }
.mk-funnel text { fill: var(--slate); }
.mk-bar { fill: var(--mint); }
.mk-bar-strong { fill: var(--teal); }
.mk-val { fill: var(--ink) !important; }
.mk-count {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  letter-spacing: -1px;
  fill: #fff;
}

@media (max-width: 900px) {
  .product-grid { grid-template-columns: 1fr; gap: 32px; }
  .product-flip .product-copy { order: 0; }
  .product-copy { max-width: 40rem; }
}

/* Programs */
.programs {
  background: var(--ground);
  border-top: 1px solid var(--hair);
}
.marquee {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  flex: none;
  display: flex;
  align-items: center;
  gap: clamp(36px, 5vw, 72px);
  padding-right: clamp(36px, 5vw, 72px);
  margin: 0;
  padding-left: 0;
  list-style: none;
  animation: marquee 44s linear infinite;
}
.marquee-track li {
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
  letter-spacing: -0.01em;
  color: var(--ink);
  opacity: 0.55;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}
.program-grid {
  list-style: none;
  margin: clamp(32px, 4vw, 48px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.program-card {
  display: flex;
  flex-direction: column;
  padding: 26px 24px 24px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 18px;
  transition: box-shadow 220ms ease, transform 220ms ease;
}
.program-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.program-card h3 { font-size: 1.125rem; margin-bottom: 8px; }
.program-card p { font-size: 0.9375rem; line-height: 1.55; flex: 1; }
.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0 0;
  padding: 0;
}
.tags li {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--teal-tint);
  color: var(--teal-deep);
}
@media (max-width: 1000px) {
  .program-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .program-grid { grid-template-columns: 1fr; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee {
    -webkit-mask-image: none;
    mask-image: none;
    padding-inline: var(--gutter);
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin-inline: auto;
  }
  .marquee-track { animation: none; flex-wrap: wrap; gap: 10px 32px; padding-right: 0; }
  .marquee-track-clone { display: none; }
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  padding-block: clamp(56px, 7vw, 88px) 32px;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--mint); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px 32px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.footer-brand p { margin-top: 18px; max-width: 30ch; }
.footer-contact .eyebrow, .footer-links .eyebrow { margin-bottom: 14px; }
.footer-contact p + p, .footer-links p + p { margin-top: 8px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 24px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}
.footer-legal { display: flex; gap: 22px; margin: 0; padding: 0; list-style: none; }
.footer-legal a { color: rgba(255, 255, 255, 0.75); text-decoration: none; }
.footer-legal a:hover { color: #fff; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 36px; }
}

/* Motion: hidden resting states only when JS is present and motion is allowed */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-hero] { opacity: 0; transform: translateY(18px); }
  html.js [data-reveal] { opacity: 0; transform: translateY(22px); }
  html.js .route-truck { opacity: 0; }
}
/* If GSAP never arrives, main.js adds .motion-fallback so nothing stays hidden */
html.js.motion-fallback [data-hero],
html.js.motion-fallback [data-reveal] { opacity: 1; transform: none; }
html.js.motion-fallback .route-truck { opacity: 1; }

/* Connected care: a lightweight, dimensional service hub. */
.care-network {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
  padding: clamp(28px, 4vw, 52px);
  overflow: hidden;
  border-radius: 24px;
  background: radial-gradient(ellipse at 80% 80%, #174d4f, transparent 65%), #0b282f;
  color: #b9ced0;
}
.network-copy { position: relative; z-index: 1; max-width: 430px; }
.network-copy h3 { margin: 14px 0 18px; color: #fff; font-size: clamp(1.5rem, 2.5vw, 2.15rem); line-height: 1.22; }
.network-copy > p:last-of-type { font-size: 0.9375rem; max-width: 38ch; }
.network-link { display: inline-flex; gap: 28px; align-items: center; min-height: 44px; margin-top: 16px; color: #b8ece4; text-decoration: none; font-size: 0.9375rem; }
.network-link:hover { color: #fff; }
.network-visual { position: relative; min-width: 0; width: 100%; height: 340px; perspective: 800px; }
.network-fallback { position: absolute; inset: 0; }
.network-fallback * { animation: none !important; }
.network-visual canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.network-visual.is-3d .network-fallback { display: none; }
.network-visual:not(.is-3d) canvas { display: none; }
.network-orbit {
  position: absolute;
  top: 50%; left: 50%;
  width: 320px; height: 240px;
  margin: -120px 0 0 -160px;
  border: 1px solid #6cc3b644;
  border-radius: 50%;
  transform: rotateX(52deg) rotateZ(-24deg);
  transform-style: preserve-3d;
}
.network-orbit::before { content: ""; position: absolute; inset: 26px; border: 1px dashed #6cc3b630; border-radius: inherit; }
.orbit-pulse { position: absolute; inset: -1px; border: 2px solid transparent; border-top-color: #86dccb; border-radius: inherit; animation: care-orbit 12s linear infinite; }
.network-node {
  position: absolute; display: grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid #7acbb65c; border-radius: 12px; background: #18474a;
  color: #d1fff1; font: 11px var(--font-mono); box-shadow: 0 7px 0 #091f26, 0 12px 20px #051c2544;
}
.node-1 { left: 45%; top: -19px; }
.node-2 { right: -13px; top: 30%; }
.node-3 { right: 44px; bottom: -2px; }
.node-4 { left: 35px; bottom: 3px; }
.node-5 { left: -14px; top: 27%; }
.care-stack { position: absolute; left: 50%; top: 49%; width: 124px; height: 124px; margin: -62px 0 0 -62px; transform-style: preserve-3d; transform: rotateX(52deg) rotateZ(-35deg); animation: care-hover 6s ease-in-out infinite; }
.care-layer { position: absolute; inset: 0; border: 1px solid #9be2d65c; border-radius: 24px; }
.layer-base { background: #206266; box-shadow: -5px 6px 0 #123d42, -20px 30px 32px #041a2466; transform: translateZ(-30px); }
.layer-middle { background: #50afab55; transform: translateZ(-6px); }
.layer-top { display: grid; place-items: center; background: linear-gradient(135deg, #d7fff2, #64c8b6); color: #146967; transform: translateZ(20px); box-shadow: -4px 5px 0 #318d87; }
.layer-top svg { width: 66px; height: 66px; }
.network-caption { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; color: #9fc5c4; font: 10px var(--font-mono); letter-spacing: .15em; }
@keyframes care-orbit { to { transform: rotate(360deg); } }
@keyframes care-hover { 0%, 100% { transform: translateY(4px) rotateX(52deg) rotateZ(-35deg); } 50% { transform: translateY(-8px) rotateX(48deg) rotateZ(-30deg); } }

/* Meal Planner: native, responsive demo with a 3D meal. */
#meal-planner { background: linear-gradient(135deg, #f5f9f3, #fbfcf8 60%, #eaf5ed); }
.meal-demo { min-width: 0; border: 1px solid #cdded4; border-radius: 24px; background: #fffefb; box-shadow: 0 25px 65px -35px #345d4559; overflow: hidden; }
.meal-demo-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 18px 24px; border-bottom: 1px solid #dbe5d9; }
.demo-brand { color: #24473d; font: 600 14px var(--font-display); }
.demo-brand > span { color: #4d8e68; font-size: 22px; margin-right: 6px; vertical-align: middle; }
.demo-label { color: #607867; font: 9px var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }
.meal-stage { position: relative; height: 280px; overflow: hidden; background: radial-gradient(ellipse at 50% 35%, #f6f5d9, #e8efdf 70%); }
.meal-stage-grid { position: absolute; inset: 45% -30% -100%; transform: perspective(400px) rotateX(55deg); background-image: linear-gradient(#6d997016 1px, transparent 1px), linear-gradient(90deg, #6d997016 1px, transparent 1px); background-size: 36px 36px; }
.meal-scene { position: absolute; inset: 0; }
.meal-scene canvas, .meal-fallback { display: block; position: absolute; width: 100%; height: 100%; }
.meal-scene.is-3d .meal-fallback { display: none; }
.meal-scene:not(.is-3d) canvas, .meal-scene canvas[hidden] { display: none; }
.meal-float { position: absolute; display: flex; align-items: center; gap: 10px; border: 1px solid #ffffffc9; border-radius: 12px; background: #ffffffdb; box-shadow: 0 12px 24px -14px #324e4666; backdrop-filter: blur(8px); animation: meal-float 6s ease-in-out infinite; }
.meal-float-plan { top: 20px; left: 20px; padding: 10px 13px; font-size: 11px; font-weight: 500; color: #264c3e; }
.meal-float small { display: block; font-size: 9px; color: #617969; margin-top: 2px; font-weight: 400; }
.float-icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #e4f1df; color: #467c43; }
.meal-float-cycle { right: 20px; bottom: 24px; padding: 10px 14px; animation-delay: -3s; }
.meal-float-cycle strong { color: #376849; font: 700 28px var(--font-display); }
.meal-float-cycle > span { color: #57705d; font-size: 10px; line-height: 1.35; }
.meal-dashboard { padding: 24px; }
.meal-dashboard-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.meal-dashboard-title .eyebrow { font-size: 9px; color: #587761; margin-bottom: 6px; }
.meal-dashboard-title h3 { font-size: 1.0625rem; color: #24473d; }
.sample-badge { padding: 4px 8px; border: 1px solid #dce6d9; border-radius: 6px; color: #6a786c; font: 9px var(--font-mono); }
.meal-weeks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 4px; margin: 20px 0 16px; border-radius: 10px; background: #f0f3ec; gap: 4px; }
.meal-weeks button { min-height: 40px; border: 0; border-radius: 7px; background: transparent; color: #536650; font: 11px var(--font-mono); cursor: pointer; transition: color .2s, background .2s, box-shadow .2s; }
.meal-weeks button[aria-pressed="true"] { background: #fffefb; color: #26583e; box-shadow: 0 2px 6px #233d3a12; }
.meal-weeks button:hover { color: #173e27; background: #ffffff88; }
.meal-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; margin: 0; padding: 0; list-style: none; }
.meal-days li { min-width: 0; padding: 10px 8px; background: #fafbf7; border: 1px solid #e1e8db; border-radius: 9px; }
.meal-days span { display: block; color: #6a7864; font: 9px var(--font-mono); }
.meal-days strong { display: block; margin: 5px 0 10px; color: #304c35; font: 500 15px var(--font-mono); }
.meal-days i { display: block; height: 5px; margin-top: 5px; border-radius: 2px; background: #a0bba1; width: 85%; }
.meal-days i:nth-of-type(2) { background: #ccd4ad; width: 65%; }
.meal-days i:nth-of-type(3) { background: #dfb993; width: 95%; }
.meal-days li:nth-child(even) i:first-of-type { width: 65%; }
.meal-days li:nth-child(3n) i:nth-of-type(2) { width: 95%; }
.meal-nutrients { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.meal-nutrients > div > span { display: flex; flex-wrap: wrap; gap: 4px; justify-content: space-between; font-size: 10px; color: #6c7968; }
.meal-nutrients strong { color: #304c35; font-weight: 500; }
.nutrient-track { height: 5px; margin-top: 8px; border-radius: 4px; overflow: hidden; background: #edf1e7; }
.nutrient-track i { display: block; height: 100%; width: var(--fill); border-radius: inherit; background: #759c77; transition: width 700ms ease; transform-origin: left; }
.meal-nutrients > div:nth-child(2) i { background: #a5af7b; }
.meal-nutrients > div:nth-child(3) i { background: #d1ab81; }
.meal-demo-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid #e6eadf; margin-top: 22px; padding-top: 16px; color: #6c7968; font-size: 10px; }
.meal-demo-foot strong { margin-left: 6px; color: #304c35; font: 500 12px var(--font-mono); }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #6e9973; margin-right: 4px; }
@keyframes meal-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
html.js [data-ambient]:not(.is-running) * { animation-play-state: paused; }

/* Layout refinements, including intermediate tablet widths. */
.programs-intro { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 32px; padding: clamp(24px, 4vw, 48px); border: 1px solid #d4e3df; border-radius: 24px; background: radial-gradient(ellipse at 85% 40%, #cce9df, transparent 60%), #f1f7f4; overflow: hidden; margin-bottom: 28px; }
.programs-intro .section-head { margin: 0; }
.programs-intro .section-lead { max-width: 35ch; font-size: 1rem; }
.programs-key { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 28px; color: #205b52; font: 500 22px var(--font-mono); }
.programs-key > span { display: flex; flex-direction: column; gap: 4px; }
.programs-key small { color: #60756c; font: 11px var(--font-body); }
.office-visual { position: relative; height: 320px; min-width: 0; perspective: 1000px; }
.office-world { position: absolute; top: 42%; left: 50%; width: 290px; height: 215px; margin: -107px 0 0 -145px; transform: rotateX(48deg) rotateZ(-28deg); transform-style: preserve-3d; animation: office-sway 10s ease-in-out infinite; }
.office-foundation { position: absolute; inset: -14px; border-radius: 22px; background: #174d4b; border: 1px solid #336e60; box-shadow: -2px 3px 0 #103e40, -4px 6px 0 #103e40, -6px 9px 0 #103e40, -22px 35px 30px #174d4b33; transform: translateZ(-24px); }
.office-foundation > span { position: absolute; bottom: 12px; left: 18px; font: 9px var(--font-mono); letter-spacing: .12em; color: #beead8; }
.office-foundation > i { position: absolute; right: 20px; bottom: 16px; width: 4px; height: 4px; border-radius: 50%; background: #a0e6bb; }
.office-foundation > i:nth-of-type(2) { right: 29px; }
.office-foundation > i:nth-of-type(3) { right: 38px; }
.office-platform { position: absolute; inset: -7px; background: #cce6db66; border: 1px solid #fff9; border-radius: 18px; transform: translateZ(-4px); }
.office-tiles { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 12px; transform-style: preserve-3d; }
.office-tile { padding: 12px 10px; border-radius: 12px; background: #fbfff9; border: 1px solid #e5f1e7; box-shadow: -2px 4px 0 #a9cbbd, -6px 12px 15px #275f4433; transform: translateZ(28px); animation: office-tile 6s ease-in-out infinite; animation-delay: calc(var(--tile) * -0.65s); }
.office-tile > span { display: grid; place-items: center; width: 23px; height: 23px; margin-bottom: 9px; border-radius: 7px; background: #d9eee2; color: #38745c; font: 10px var(--font-mono); }
.office-tile:nth-child(3n+2) > span { background: #f5e9d1; color: #8d7049; }
.office-tile:nth-child(3n) > span { background: #dbeaf0; color: #537988; }
.office-tile strong { display: block; font: 500 8px var(--font-body); color: #214b3e; white-space: nowrap; }
.office-tile i { display: block; width: 90%; height: 3px; margin-top: 8px; border-radius: 2px; background: #d5e7da; }
.office-tile i:last-child { width: 60%; margin-top: 4px; }
.office-caption { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; color: #527769; font: 10px var(--font-mono); }
.programs .marquee { padding-block: 20px; border-block: 1px solid var(--hair); }
.programs .marquee-track li { font-size: .875rem; font-weight: 600; opacity: .65; }
.program-grid { counter-reset: program; margin-top: 24px; }
.program-card { position: relative; padding: 28px; }
.program-card::before { counter-increment: program; content: "0" counter(program); display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 22px; border-radius: 10px; background: #e9f3ee; color: #457b69; font: 11px var(--font-mono); }
@keyframes office-sway { 0%, 100% { transform: rotateX(48deg) rotateZ(-28deg); } 50% { transform: rotateX(44deg) rotateZ(-23deg); } }
@keyframes office-tile { 0%, 100% { transform: translateZ(22px); } 50% { transform: translateZ(38px); } }
@media (max-width: 1000px) and (min-width: 701px) { .office-world { scale: .85; } }
@media (max-width: 700px) {
  .programs-intro { grid-template-columns: 1fr; gap: 12px; padding: 44px 24px 24px; }
  .office-visual { height: 300px; }
  .programs-intro .section-head { max-width: none; }
}
@media (max-width: 380px) { .office-world { scale: .72; } .office-visual { height: 250px; } }
@media (prefers-reduced-motion: reduce) { .office-world, .office-tile { animation: none; } .programs .marquee { padding-inline: 0; } }
section[id], footer[id], #products { scroll-margin-top: calc(var(--header-h) + 20px); }
.product-art { overflow: hidden; }
.program-card { background: linear-gradient(150deg, #fff 40%, #f6fbfa); }
.footer-contact a { overflow-wrap: anywhere; }
.header-login, .nav-toggle { flex-shrink: 0; }
.mk-count-card + .mk-count + .art-mono-dim { fill: #c7dce1; opacity: 1; }
@media (min-width: 761px) and (max-width: 1000px) {
  .header-inner { gap: 16px; }
  .site-nav ul { gap: 15px; }
  .site-nav a { font-size: 0.8125rem; }
  .header-inner .brand-name { font-size: 1rem; }
  .header-inner .brand { gap: 8px; }
  .header-login { padding-inline: 16px; }
}
@media (max-width: 900px) {
  .meal-demo { width: 100%; max-width: 680px; margin-inline: auto; }
  .product-art { width: 100%; max-width: 680px; margin-inline: auto; }
  .care-network { grid-template-columns: 1fr 1fr; padding: 32px; }
  .network-visual { height: 320px; }
}
@media (max-width: 760px) {
  .route-svg-mobile { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
  .route-steps { position: relative; display: grid; grid-template-columns: 1fr; gap: 24px; padding-block: 20px; }
  .route-step { position: relative; left: auto; right: auto; top: auto !important; transform: none; margin-left: 22%; min-height: 144px; }
  .route-step p { max-width: 42ch; }
}
@media (max-width: 600px) {
  .care-network { grid-template-columns: 1fr; gap: 8px; padding: 36px 24px 24px; }
  .network-copy { padding-top: 12px; }
  .network-visual { height: 280px; }
  .network-orbit { width: 280px; height: 210px; margin: -105px 0 0 -140px; }
  .meal-demo-head { padding: 16px; }
  .meal-dashboard { padding: 20px 16px; }
  .meal-days { gap: 5px; }
  .meal-days li { padding: 8px 5px; }
  .meal-nutrients { gap: 12px; }
  .meal-stage { height: 260px; }
  .meal-float-plan { top: 14px; left: 14px; }
  .meal-float-cycle { right: 14px; bottom: 20px; }
}
@media (max-width: 380px) {
  .header-inner { gap: 8px; }
  .header-inner .brand { gap: 7px; }
  .header-inner .brand-name { font-size: .9375rem; }
  .header-login { padding-inline: 13px; font-size: .875rem; }
  .nav-toggle { width: 40px; }
  .meal-dashboard { padding-inline: 12px; }
  .meal-days { gap: 3px; }
  .meal-days span { font-size: 8px; }
  .meal-weeks button { font-size: 10px; }
  .meal-stage { height: 240px; }
  .network-visual { height: 260px; }
}
@media (prefers-reduced-motion: reduce) {
  .care-stack, .orbit-pulse, .meal-float { animation: none; }
  .nutrient-track i, .meal-weeks button { transition: none; }
  .program-card:hover { transform: none; }
  .marquee-track { flex-shrink: 1; min-width: 0; }
  .marquee-track li { white-space: normal; }
}
html:not(.js) [data-ambient] * { animation: none; }
html:not(.js) .meal-weeks button:not([aria-pressed="true"]) { display: none; }
html:not(.js) .meal-weeks { grid-template-columns: 1fr; }
@media (max-width: 760px) {
  html:not(.js) .site-nav { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 12px; width: 100%; }
  html:not(.js) .header-inner { flex-wrap: wrap; }
  html:not(.js) .site-nav { order: 4; }
  html:not(.js) .site-nav ul { flex-direction: row; flex-wrap: wrap; gap: 8px 18px; }
  html:not(.js) .site-nav a { padding: 4px 0; font-size: .875rem; border: 0; }
  html:not(.js) .nav-toggle { display: none; }
}
