/* ==========================================================================
   BOXERCISE — design system
   Palette taken from the official logo:
     black #000 (wordmark), electric blue #0AF, red #C30000, amber #F90
   White is the dominant background. Charcoal is used for contrast sections.
   Blue is the highlight. Dark text sits on blue buttons for legibility.
   ========================================================================== */

:root {
  --white: #ffffff;
  --ink: #101214;
  --charcoal: #181b20;
  --blue: #00aaff;          /* electric blue, from the logo (#0af) */
  --blue-soft: #e6f6ff;
  --red: #c30000;           /* limited accent */
  --amber: #ff9900;         /* sparing accent */
  --muted: #5b6370;         /* body text on white, AA contrast */
  --muted-dark: #aab1bc;    /* body text on charcoal, AA contrast */
  --mist: #f4f6f8;
  --line: #e3e7ec;
  --line-dark: rgba(255,255,255,.12);

  --radius: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --shadow: 0 24px 48px -28px rgba(16,18,20,.35);

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --header-h: 76px;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 800; line-height: 1.06; letter-spacing: -0.025em; color: inherit; }
h1 { font-size: clamp(40px, 5.4vw, 72px); }
h2 { font-size: clamp(32px, 4.2vw, 52px); }
h3 { font-size: clamp(20px, 2vw, 24px); letter-spacing: -0.01em; }
h4 { font-size: 18px; letter-spacing: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 2000;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--mist { background: var(--mist); }
.section--dark { background: var(--ink); color: #fff; }
.section--tight { padding: clamp(56px, 7vw, 88px) 0; }
.text-muted { color: var(--muted); }
.section--dark .text-muted { color: var(--muted-dark); }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }

/* ---------- Eyebrow with brand marker ----------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
}
.eyebrow .marks { display: inline-flex; gap: 4px; }
.eyebrow .marks i { display: block; width: 14px; height: 4px; border-radius: 2px; }
.eyebrow .marks i:nth-child(1) { background: var(--red); }
.eyebrow .marks i:nth-child(2) { background: var(--blue); }
.eyebrow .marks i:nth-child(3) { background: var(--amber); }
.section--dark .eyebrow { color: var(--muted-dark); }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 18px; margin-top: 16px; }
.section--dark .section-head p { color: var(--muted-dark); }

/* ---------- Health tools and FAQ --------------------------------------- */
.health-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.health-card { min-width: 0; padding: clamp(24px, 3vw, 34px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); }
.health-card--assessment { grid-column: 1 / -1; }
.health-card__head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.health-icon { display: grid; width: 48px; height: 48px; flex: none; place-items: center; border-radius: 50%; background: var(--blue-soft); color: var(--ink); font-size: 13px; font-weight: 800; }
.health-kicker { display: block; margin-bottom: 3px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.health-card h3 { margin: 0; }
.health-intro { color: var(--muted); font-size: 15px; }
.health-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.health-fields--calorie { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.health-fields__wide { grid-column: 1 / -1; }
.health-form .field input, .health-form .field select { width: 100%; min-width: 0; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.health-form .field input:focus, .health-form .field select:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(0,170,255,.2); }
.health-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.health-actions .btn { min-height: 46px; padding: 12px 20px; font-size: 14px; }
.health-reset { border-color: var(--line); }
.health-result { margin-top: 18px; padding: 14px 16px; border-left: 4px solid var(--blue); border-radius: 6px; background: var(--blue-soft); font-weight: 700; line-height: 1.5; }
.bmi-calculation-result { display: grid; gap: 4px; }
.bmi-calculation-result > strong { margin-bottom: 4px; }
.health-disclaimer { margin: 18px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.health-guidance { display: grid; gap: 12px; margin: 20px 0 24px; }
.health-guidance li { position: relative; padding-left: 24px; color: var(--muted); font-size: 15px; }
.health-guidance li::before { position: absolute; left: 0; color: var(--red); content: "•"; font-weight: 800; }
.health-assessment-cta { white-space: normal; text-align: center; }
.bmi-followup { margin-top: 28px; scroll-margin-top: 96px; }
.bmi-followup[hidden] { display: none; }
.bmi-flow-card { max-width: 900px; margin: 0 auto; }
.bmi-step-label { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.bmi-step-label .health-kicker { margin: 0; }
.bmi-step-progress { display: inline-flex; gap: 5px; }
.bmi-step-progress i { display: block; width: 28px; height: 4px; border-radius: 4px; background: var(--line); }
.bmi-step-progress i:nth-child(-n+2), .bmi-report-wrap .bmi-step-progress i { background: var(--blue); }
.bmi-flow-head { margin: 0 0 24px; }
.bmi-flow-head .eyebrow { margin-bottom: 10px; }
.bmi-flow-head h2 { margin-bottom: 0; }
.bmi-flow-head p { margin-top: 10px; }
.bmi-lead-form .full { grid-column: 1 / -1; }
.bmi-lead-form .field input { min-height: 50px; }
.bmi-privacy-copy { margin: 18px 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.bmi-lead-form .btn { min-height: 52px; }
.bmi-report { display: grid; grid-template-columns: minmax(180px, .7fr) minmax(200px, 1fr); gap: 22px; }
.bmi-score-card { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 22px; border-radius: 12px; background: var(--blue-soft); }
.bmi-score-card .health-kicker { margin-bottom: 8px; }
.bmi-score { color: var(--ink); font-size: clamp(40px, 7vw, 58px); font-weight: 900; line-height: 1; letter-spacing: -.04em; }
.bmi-current-category { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(20, 33, 45, .16); }
.bmi-healthy-range { margin-top: 14px; }
.bmi-healthy-range__label { display: block; color: var(--ink); font-size: 14px; font-weight: 800; }
.bmi-healthy-range strong, .bmi-current-category strong { display: block; margin-top: 4px; color: var(--ink); font-size: 18px; font-weight: 900; line-height: 1.35; }
.bmi-healthy-range p { max-width: 290px; margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.bmi-measurements { display: grid; align-content: center; gap: 0; margin: 0; border: 1px solid var(--line); border-radius: 12px; }
.bmi-measurements > div { display: flex; justify-content: space-between; gap: 16px; padding: 18px 20px; }
.bmi-measurements > div + div { border-top: 1px solid var(--line); }
.bmi-measurements dt { color: var(--muted); }
.bmi-measurements dd { margin: 0; color: var(--ink); font-weight: 800; }
.bmi-scale-wrap { grid-column: 1 / -1; margin-top: 4px; }
.bmi-scale-track { position: relative; margin: 10px 8px 0; }
.bmi-scale-segments { display: grid; height: 12px; grid-template-columns: 3.5fr 6.5fr 5fr 10fr; overflow: hidden; border-radius: 999px; }
.bmi-scale-segments span:nth-child(1) { background: #dbe6f1; }
.bmi-scale-segments span:nth-child(2) { background: #b8e4c5; }
.bmi-scale-segments span:nth-child(3) { background: #ffe1a6; }
.bmi-scale-segments span:nth-child(4) { background: #f3c0b8; }
.bmi-scale-marker { position: absolute; top: 50%; width: 18px; height: 18px; transform: translate(-50%, -50%); border: 4px solid var(--ink); border-radius: 50%; background: #fff; }
.bmi-scale-labels { display: grid; grid-template-columns: 3.5fr 6.5fr 5fr 10fr; gap: 0; margin-top: 10px; color: var(--muted); font-size: 12px; font-weight: 700; text-align: center; }
.bmi-scale-labels span { padding: 0 2px; }
.bmi-coaching-cta { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.bmi-coaching-cta h3 { margin: 0 0 8px; font-size: 18px; }
.bmi-coaching-cta p { max-width: 700px; margin-bottom: 18px; color: var(--muted); }
.bmi-lead-form .form-msg:not(.is-error):not(.is-success):not(.is-pending) { display: none; }
.faq-list { max-width: 900px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item h3 { margin: 0; }
.faq-question { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 4px; border: 0; background: transparent; color: var(--ink); cursor: pointer; text-align: left; font-size: clamp(16px, 1.8vw, 20px); font-weight: 800; line-height: 1.35; }
.faq-question span { position: relative; width: 20px; height: 20px; flex: none; }
.faq-question span::before, .faq-question span::after { position: absolute; top: 9px; left: 2px; width: 16px; height: 2px; border-radius: 2px; background: var(--ink); content: ""; transition: transform .2s ease; }
.faq-question span::after { transform: rotate(90deg); }
.faq-question[aria-expanded="true"] span::after { transform: rotate(0); }
.faq-answer > div { padding: 0 36px 20px 4px; }
.faq-answer p { max-width: 780px; margin: 0; color: var(--muted); font-size: 15px; }
.faq-answer a { color: var(--ink); font-weight: 800; text-decoration: underline; text-decoration-color: var(--blue); text-underline-offset: 3px; }

/* ---------- Buttons ----------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 14px 28px; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 15px; letter-spacing: .01em; line-height: 1;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--blue); color: var(--ink); }
.btn--primary:hover { background: #33b8ff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #2a2e35; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--block { width: 100%; }
.btn--sm { min-height: 42px; padding: 10px 18px; font-size: 14px; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink);
  border-bottom: 2px solid var(--blue); padding-bottom: 3px; transition: gap .25s ease;
}
.link-arrow:hover { gap: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- Header ------------------------------------------------------ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000; height: var(--header-h);
  background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -24px rgba(16,18,20,.4); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { display: block; width: clamp(120px, 12vw, 150px); max-width: 100%; height: auto; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a { font-size: 15px; font-weight: 600; color: var(--muted); position: relative; padding: 6px 0; transition: color .25s ease; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--blue); border-radius: 2px;
}
.header-cta { flex: none; }
.menu-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%;
  background: #fff; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.menu-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 990; background: #fff; padding: 28px var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 4px; transform: translateY(-8px); opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease; overflow-y: auto;
}
.mobile-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-nav a.m-link { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 24px; }
.mobile-nav .m-social { display: flex; gap: 14px; margin-top: 28px; }
.mobile-nav .m-social a { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; display: flex; align-items: center; justify-content: center; }

@media (max-width: 980px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }
}

/* ---------- Hero -------------------------------------------------------- */
.hero { background: var(--ink); color: #fff; padding: calc(var(--header-h) + clamp(48px, 8vw, 96px)) 0 clamp(64px, 8vw, 104px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,18,20,.88) 0%, rgba(16,18,20,.72) 35%, rgba(16,18,20,.46) 100%);
  z-index: 0;
}
.hero-shell { position: relative; z-index: 1; }
.hero-copy { max-width: 640px; position: relative; z-index: 1; }
.hero .eyebrow { color: #fff; }
.hero h1 { color: #fff; }
.hero h1 .hl { color: var(--blue); }
.hero-lede { font-size: clamp(17px, 1.6vw, 20px); color: #fff; max-width: 560px; margin: 24px 0 36px; }
.hero-video {
  position: absolute; inset: 0; z-index: 0; background: #111; overflow: hidden;
}
.hero-video video, .hero-video img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.hero-video video {
  filter: saturate(0.95) brightness(0.7);
}
.hero-video .hero-fallback { position: absolute; inset: 0; display: none; }
.hero-meta { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 14px; color: #fff; font-weight: 600; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }

/* Subpage banner (services, blog, about) */
.page-banner { background: var(--ink); color: #fff; padding: calc(var(--header-h) + clamp(56px, 8vw, 96px)) 0 clamp(56px, 7vw, 88px); }
.page-banner h1 { font-size: clamp(38px, 5.2vw, 68px); max-width: 880px; }
.page-banner p { color: var(--muted-dark); font-size: clamp(17px, 1.5vw, 19px); max-width: 640px; margin-top: 20px; }
.page-banner .eyebrow { color: var(--muted-dark); }

/* ---------- Pathways (editorial rows) ----------------------------------- */
.pathway { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--line); }
.pathway:last-child { border-bottom: 1px solid var(--line); }
.pathway.is-flipped .pathway-media { order: 2; }
.pathway-num { font-size: 13px; font-weight: 800; letter-spacing: .14em; color: var(--muted); margin-bottom: 14px; display: block; }
.pathway h3 { font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 16px; }
.pathway p { color: var(--muted); font-size: 17px; max-width: 540px; }
.pathway-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 26px; margin: 22px 0 30px; max-width: 560px; }
.pathway-list li { position: relative; padding-left: 20px; font-size: 15px; font-weight: 600; color: var(--ink); }
.pathway-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 2px; background: var(--blue); }
.pathway-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--mist); position: relative; }
.pathway-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
#pathway-coaching .pathway-media img { object-position: 50% 50%; }
#pathway-nutrition .pathway-media img { object-position: 50% 64%; }
#pathway-performance .pathway-media img { object-position: 50% 38%; }
#pathway-group .pathway-media img { object-position: 50% 50%; }
.pathway:hover .pathway-media img { transform: scale(1.04); }
.pathway .link-arrow { margin-top: 4px; }
@media (max-width: 860px) {
  .pathway, .pathway.is-flipped { grid-template-columns: 1fr; }
  .pathway.is-flipped .pathway-media { order: 0; }
  .pathway-media { aspect-ratio: 4 / 3; }
}
@media (max-width: 520px) { .pathway-list { grid-template-columns: 1fr; } }

/* ---------- Why / feature grid ------------------------------------------ */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line-dark); }
.why-item { padding: 32px 26px 8px 0; border-bottom: 1px solid var(--line-dark); }
.why-item + .why-item { padding-left: 26px; border-left: 1px solid var(--line-dark); }
.why-item .n { font-size: 13px; font-weight: 800; color: var(--blue); letter-spacing: .12em; display: block; margin-bottom: 18px; }
.why-item h3 { color: #fff; font-size: 21px; }
.why-item p { color: var(--muted-dark); font-size: 15.5px; }
@media (max-width: 980px) {
  .why-grid { grid-template-columns: 1fr 1fr; }
  .why-item:nth-child(3) { padding-left: 0; border-left: none; }
}
@media (max-width: 560px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-item, .why-item + .why-item, .why-item:nth-child(3) { padding: 28px 0; border-left: none; }
}

/* ---------- Process ----------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 17px; height: 2px; background: var(--line); }
.step { position: relative; padding-top: 0; }
.step .dot {
  position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 2px solid var(--blue);
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; margin-bottom: 22px;
}
.step h3 { font-size: 20px; }
.step p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps::before { display: none; }
}
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Program chips ----------------------------------------------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border: 1px solid var(--line); border-radius: var(--radius-pill);
  font-size: 15px; font-weight: 700; background: #fff; transition: border-color .25s ease, background-color .25s ease;
}
.chip:hover { border-color: var(--ink); background: var(--mist); }
.chip .arr { color: var(--blue); font-weight: 800; }

/* ---------- Team -------------------------------------------------------- */
.team-group + .team-group { margin-top: clamp(56px, 7vw, 88px); }
.team-group-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; }
.team-group-head h3 { font-size: clamp(24px, 2.6vw, 32px); margin: 0; }
.team-grid { display: grid; gap: 22px; grid-template-columns: repeat(4, 1fr); }
.team-grid--3 { grid-template-columns: repeat(3, 1fr); }
.team-grid--leadership { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.team-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: border-color .3s ease, transform .3s ease; }
.team-card:hover { border-color: var(--ink); transform: translateY(-3px); }
.team-photo { position: relative; aspect-ratio: 4 / 5; background: var(--mist); overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.leadership-section .team-card, .leadership-preview .team-card { background: #181b20; border-color: rgba(255,255,255,.14); color: #fff; }
.leadership-section .team-card:hover, .leadership-preview .team-card:hover { border-color: var(--blue); }
.leadership-section .team-role, .leadership-preview .team-role { color: var(--muted-dark); }
.leadership-section .team-photo, .leadership-preview .team-photo { background: #101214; }
.team-photo--empty { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: repeating-linear-gradient(135deg, #f4f6f8 0 14px, #eceff3 14px 28px); }
.team-photo--empty i { width: 44px; height: 44px; border-radius: 50%; border: 2px dashed #b9c0ca; display: block; }
.team-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.team-body h4 { font-size: 18px; margin: 0; }
.team-role { color: var(--muted); font-size: 14.5px; font-weight: 600; }
.team-bio { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.badge-placeholder { align-self: flex-start; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: #fff4d6; color: #6b4a00; padding: 5px 10px; border-radius: var(--radius-pill); margin-bottom: 4px; }
/* About page transformation artwork contains embedded labels; show it uncropped. */
.transformations-section, .hyrox-finishers-section { padding: clamp(64px, 7vw, 88px) 0; }
.transformation-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.transformations-section .section-head { max-width: 850px; }
.transformation-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); box-shadow: 0 4px 16px rgba(16,18,20,.05); }
.transformation-image { overflow: hidden; aspect-ratio: 3 / 2; background: var(--white); }
.transformation-image img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.transformation-image--stats { position: relative; container-type: inline-size; }
.transformation-stats-mask { position: absolute; top: 73.8%; left: 2.8%; width: 94.4%; height: 22.3%; background: #fff; }
.transformation-stats { position: absolute; right: 0; bottom: 1.8%; left: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); height: 77.1%; overflow: hidden; border: 1px solid #dfe9f5; border-radius: 1.25cqi; background: #f7f9fc; font-family: var(--font); text-align: center; }
.transformation-image--stats-bimal .transformation-stats-mask { top: 77.9%; height: 22.3%; background: #fff; }
.transformation-image--stats-bimal .transformation-stats { bottom: 20%; }
.transformation-stat { display: flex; min-width: 0; flex-direction: column; align-items: center; justify-content: flex-start; border-right: 1px solid #dfe7f1; padding-top: .8cqi; }
.transformation-stat strong { color: var(--ink); font-size: 2.5cqi; font-weight: 700; line-height: 1.1; }
.transformation-stat span { color: #5f6f89; font-size: 1.5cqi; font-weight: 400; line-height: 1.1; }
.transformation-stat--total { border-right: 0; border-radius: 0 1.25cqi 1.25cqi 0; background: #eaf3ff; }
.transformation-stat--total strong, .transformation-stat--total span { color: #2463eb; }
.transformation-caption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; padding: 18px 22px; background: #fff; }
.transformation-caption h3 { margin: 0; font-size: 18px; }
.transformation-caption span { color: var(--muted); font-size: 14px; font-weight: 700; }
@media (max-width: 600px) { .transformations-section .section-head h2 { font-size: clamp(24px, 7vw, 32px); } }
.hyrox-finishers-section { padding: clamp(56px, 6vw, 72px) 0; background: var(--mist); }
.hyrox-finishers-section .section-head { max-width: 850px; }
.hyrox-finishers-section .section-head { margin-bottom: clamp(28px, 3.5vw, 40px); }
.hyrox-finishers-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.hyrox-finisher-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: 0 4px 16px rgba(16,18,20,.05); }
.hyrox-finisher-image { width: 100%; margin: 0; padding: 0; overflow: hidden; background: #fff; line-height: 0; }
.hyrox-finisher-image img { display: block; width: 100%; height: auto; margin: 0; object-fit: contain; object-position: center; }
.hyrox-finisher-copy { padding: 22px 24px 24px; }
.hyrox-kicker { display: inline-block; margin-bottom: 8px; color: var(--blue); font-size: .72rem; font-weight: 800; letter-spacing: .14em; }
.hyrox-finisher-copy h3 { margin: 0 0 8px; font-size: clamp(20px, 2vw, 24px); line-height: 1.2; }
.hyrox-finisher-copy p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
@media (max-width: 600px) {
  .transformation-grid { grid-template-columns: 1fr; gap: 20px; }
  .hyrox-finishers-grid { grid-template-columns: 1fr; gap: 20px; }
  .hyrox-finisher-copy { padding: 18px; }
}
@media (max-width: 1020px) { .team-grid, .team-grid--leadership { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .team-grid, .team-grid--3 { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .team-grid--leadership { grid-template-columns: 1fr; } }

/* ---------- Blog -------------------------------------------------------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); }
.post-card .cover { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--mist); }
.post-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.post-card:hover .cover img { transform: scale(1.04); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13px; font-weight: 700; color: var(--muted); margin: 18px 0 10px; }
.cat-tag { color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.cat-tag::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--blue); }
.post-card h3 { font-size: 22px; margin-bottom: 10px; }
.post-card h3 a:hover { text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.post-card p { color: var(--muted); font-size: 15.5px; margin: 0 0 18px; }
.post-card .link-arrow { margin-top: auto; align-self: flex-start; }
.sample-pill { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #6b4a00; background: #fff4d6; padding: 4px 9px; border-radius: var(--radius-pill); }
@media (max-width: 960px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }

.featured { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; padding-bottom: clamp(48px, 6vw, 72px); margin-bottom: clamp(48px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.featured .cover { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; display: block; background: var(--mist); }
.featured .cover img { width: 100%; height: 100%; object-fit: cover; }
.featured h2 { font-size: clamp(30px, 3.6vw, 46px); margin-bottom: 16px; }
.featured h2 a:hover { text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.featured p { color: var(--muted); font-size: 17px; }
.label-featured { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin-bottom: 16px; display: inline-flex; gap: 10px; align-items: center; }
.label-featured::before { content: ""; width: 26px; height: 3px; background: var(--blue); border-radius: 2px; }
@media (max-width: 860px) { .featured { grid-template-columns: 1fr; } }

.blog-toolbar { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; margin-bottom: 36px; }
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-btn {
  border: 1px solid var(--line); background: #fff; border-radius: var(--radius-pill); padding: 10px 16px; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: all .2s ease; display: inline-flex; gap: 8px; align-items: center;
}
.filter-btn:hover { border-color: var(--ink); }
.filter-btn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter-btn .count { font-size: 12px; opacity: .7; font-weight: 700; }
.search-box { position: relative; width: min(340px, 100%); }
.search-box input {
  width: 100%; padding: 14px 16px 14px 44px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: #fff; outline: none; transition: border-color .2s ease;
}
.search-box input:focus { border-color: var(--ink); }
.search-box svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.result-note { color: var(--muted); font-size: 15px; margin: 0 0 24px; }
.empty-state { border: 1px dashed #c9d0da; border-radius: var(--radius-lg); padding: 48px 24px; text-align: center; color: var(--muted); }
.empty-state strong { color: var(--ink); display: block; font-size: 18px; margin-bottom: 6px; }

/* Article page */
.article-hero { padding: calc(var(--header-h) + clamp(40px, 6vw, 72px)) 0 0; }
.article-hero .crumbs { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 28px; }
.article-hero .crumbs a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--blue); text-underline-offset: 4px; }
.article-hero h1 { font-size: clamp(34px, 4.8vw, 60px); max-width: 880px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font-size: 14px; font-weight: 700; color: var(--muted); align-items: center; }
.article-cover { margin-top: 40px; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 9; background: var(--mist); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.article-layout { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: clamp(32px, 6vw, 96px); justify-content: center; padding: clamp(48px, 6vw, 80px) 0; }
.toc { position: sticky; top: calc(var(--header-h) + 28px); align-self: start; font-size: 14.5px; }
.toc-title { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.toc a { display: block; padding: 8px 0 8px 14px; border-left: 2px solid var(--line); color: var(--muted); font-weight: 600; line-height: 1.4; transition: color .2s ease, border-color .2s ease; }
.toc a:hover, .toc a.is-active { color: var(--ink); border-left-color: var(--blue); }
.prose { font-size: 19px; line-height: 1.78; color: #232830; }
.prose h2 { font-size: clamp(26px, 2.8vw, 34px); margin: 2.2em 0 .6em; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose p { margin: 0 0 1.25em; }
.prose em { color: var(--muted); }
.sample-note { background: #fff8e6; border: 1px solid #f3dca2; color: #5c4300; border-radius: var(--radius); padding: 16px 18px; font-size: 15px; margin-bottom: 36px; }
.article-cta { margin-top: 56px; background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.article-cta h3 { color: #fff; font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 6px; }
.article-cta p { color: var(--muted-dark); margin: 0; }
.related { padding-bottom: var(--section); }
.toc-mobile { display: none; }
@media (max-width: 960px) {
  .article-layout { grid-template-columns: 1fr; }
  .toc { display: none; }
  .toc-mobile { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 28px; }
  .toc-mobile summary { font-weight: 800; cursor: pointer; }
  .toc-mobile a { display: block; padding: 8px 0; color: var(--muted); font-weight: 600; }
}

/* ---------- Services page ----------------------------------------------- */
.service-block { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); padding: clamp(48px, 6vw, 72px) 0; border-top: 1px solid var(--line); }
.service-block:last-child { border-bottom: 1px solid var(--line); }
.service-block h2 { font-size: clamp(30px, 3.6vw, 44px); }
.service-block .lede { color: var(--muted); font-size: 18px; }
.service-cols h3, .service-cols h4 { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.service-cols ul li { position: relative; padding: 12px 0 12px 26px; border-bottom: 1px solid var(--line); font-weight: 600; }
.service-cols ul li::before { content: ""; position: absolute; left: 0; top: 22px; width: 10px; height: 10px; border-radius: 2px; background: var(--blue); }
.service-cols + .service-cols { margin-top: 36px; }
.service-panel { display: grid; gap: 18px; }
.service-visual { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--mist); }
.service-visual img { width: 100%; height: 100%; display: block; aspect-ratio: 4 / 3; object-fit: cover; }
.note-box { background: var(--mist); border-radius: var(--radius); padding: 18px 20px; font-size: 15px; color: var(--muted); margin-top: 28px; }
@media (max-width: 860px) { .service-block { grid-template-columns: 1fr; } .service-panel { gap: 10px; } }

.compare { width: 100%; border-collapse: collapse; font-size: 15.5px; margin-top: 8px; }
.compare th, .compare td { text-align: left; padding: 18px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare th { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 800; }
.compare td:first-child { font-weight: 800; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; padding: 0 4px; }

/* ---------- About ------------------------------------------------------- */
.story { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.story h2 { font-size: clamp(32px, 4vw, 50px); }
.story p { font-size: 18px; color: #2b3038; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.value h3 { font-size: 20px; }
.value p { color: var(--muted); font-size: 15.5px; margin: 0; }
.value .bar { width: 28px; height: 4px; border-radius: 2px; background: var(--blue); margin-bottom: 20px; }
@media (max-width: 900px) { .story { grid-template-columns: 1fr; } .values { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------------------------------------------------- */
.cta-band { background: var(--blue); color: var(--ink); border-radius: var(--radius-lg); padding: clamp(36px, 5vw, 64px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; }
.cta-band h2 { font-size: clamp(30px, 3.8vw, 48px); margin: 0 0 8px; max-width: 640px; }
.cta-band p { margin: 0; font-weight: 600; max-width: 560px; }
.cta-band .btn--dark { background: var(--ink); color: #fff; }

/* ---------- Contact + forms -------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.contact-list { margin-top: 36px; border-top: 1px solid var(--line); }
.contact-item { display: flex; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-item .ico { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; flex: none; background: #fff; }
.contact-item .ico svg { width: 18px; height: 18px; }
.contact-item .k { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-item .v { font-weight: 700; font-size: 16px; }
.contact-item a:hover { text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 4px; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3.5vw, 40px); box-shadow: var(--shadow); }
.form-card h3 { font-size: 24px; margin-bottom: 6px; }
.form-card > p { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; font-weight: 700; color: var(--ink); }
.field .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid #cfd5dd; border-radius: 10px; padding: 14px 14px; background: #fff; outline: none; font-size: 16px; transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(0,170,255,.25); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); line-height: 1.5; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--ink); flex: none; }
.form-msg { display: none; margin-top: 18px; padding: 14px 16px; border-radius: 10px; font-size: 15px; font-weight: 600; }
.form-msg.is-success { display: block; background: #e8f8ee; color: #0d5b2e; border: 1px solid #b7e3c7; }
.form-msg.is-error { display: block; background: #fdecec; color: #8a1313; border: 1px solid #f1bcbc; }
.form-msg.is-pending { display: block; background: #eef4fa; color: #263d52; border: 1px solid #c8d8e6; }
.delivery-status { display: block; margin-top: 4px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .bmi-report { grid-template-columns: 1fr; }
  .bmi-scale-wrap { grid-column: auto; }
  .bmi-scale-labels { font-size: 10px; line-height: 1.3; }
  .bmi-scale-labels span { overflow-wrap: anywhere; }
  .bmi-coaching-cta .btn { width: 100%; }
}

/* ---------- Footer ------------------------------------------------------ */
.site-footer { background: var(--ink); color: #fff; padding: clamp(64px, 8vw, 96px) 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-logo { display: block; width: clamp(130px, 12vw, 160px); max-width: 100%; height: auto; margin-bottom: 22px; }
.footer-grid p { color: var(--muted-dark); font-size: 15px; max-width: 320px; }
.footer-h { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-dark); margin-bottom: 18px; }
.footer-links li + li { margin-top: 12px; }
.footer-links a { color: #fff; font-weight: 600; font-size: 15px; transition: color .2s ease; }
.footer-links a:hover { color: var(--blue); }
.social { display: flex; gap: 12px; margin-top: 26px; }
.social a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-dark); display: inline-flex; align-items: center; justify-content: center; transition: background-color .25s ease, border-color .25s ease, color .25s ease; }
.social a:hover { background: var(--blue); border-color: var(--blue); color: var(--ink); }
.social svg { width: 18px; height: 18px; }
.footer-bottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted-dark); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .brand img { width: 128px; }
  .footer-logo { width: 148px; }
}
@media (max-width: 380px) {
  .brand img { width: 116px; }
  .footer-logo { width: 136px; }
}

/* ---------- Chatbot ----------------------------------------------------- */
.chat-launch {
  position: fixed; right: 20px; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 950; min-height: 62px; padding: 10px 20px 10px 12px;
  border-radius: var(--radius-pill); background: var(--blue); color: var(--ink); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 12px; text-align: left;
  box-shadow: 0 14px 30px -10px rgba(0,120,190,.55); transition: transform .25s ease, box-shadow .25s ease;
}
.chat-launch:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -10px rgba(0,120,190,.65); }
.chat-launch__icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(16,18,20,.12); flex: 0 0 auto; }
.chat-launch__icon svg { width: 22px; height: 22px; }
.chat-launch__copy { display: flex; flex-direction: column; line-height: 1.2; gap: 3px; }
.chat-launch__copy strong { font-size: 14px; letter-spacing: .04em; }
.chat-launch__copy small { font-size: 12px; font-weight: 600; }
.chat-panel {
  position: fixed; right: 20px; bottom: 96px; z-index: 951; width: min(390px, calc(100vw - 40px)); height: min(600px, calc(100vh - 140px));
  background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: 0 30px 60px -20px rgba(16,18,20,.45);
  display: none; flex-direction: column; overflow: hidden;
}
.chat-panel.is-open { display: flex; animation: chatIn .25s ease-out; }
@keyframes chatIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.chat-head { background: var(--ink); color: #fff; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.chat-head .who { display: flex; align-items: center; gap: 12px; }
.chat-head .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.chat-head .avatar svg { width: 18px; height: 18px; }
.chat-head strong { display: block; font-size: 15px; }
.chat-head small { color: var(--muted-dark); font-size: 12.5px; }
.chat-close { background: transparent; border: 1px solid var(--line-dark); color: #fff; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.chat-close:hover { border-color: #fff; }
.chat-log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: #fafbfc; }
.msg { max-width: 88%; padding: 12px 14px; border-radius: 14px; font-size: 15px; line-height: 1.5; white-space: pre-line; word-wrap: break-word; }
.msg--bot { background: #fff; border: 1px solid var(--line); align-self: flex-start; border-top-left-radius: 4px; }
.msg--user { background: var(--ink); color: #fff; align-self: flex-end; border-top-right-radius: 4px; }
.msg--error { background: #fdecec; border: 1px solid #f1bcbc; color: #8a1313; align-self: flex-start; }
.msg-links { display: flex; flex-wrap: wrap; gap: 8px; align-self: flex-start; max-width: 96%; }
.msg-links a, .msg-chips button, .msg-action {
  font-size: 13.5px; font-weight: 700; border: 1px solid #cfd5dd; background: #fff; border-radius: var(--radius-pill); padding: 8px 13px; cursor: pointer; color: var(--ink);
  transition: border-color .2s ease, background-color .2s ease;
}
.msg-links a:hover, .msg-chips button:hover, .msg-action:hover { border-color: var(--ink); background: var(--mist); }
.msg-action { background: var(--blue); border-color: var(--blue); }
.msg-action:hover { background: #33b8ff; border-color: #33b8ff; }
.msg-chips { display: flex; flex-wrap: wrap; gap: 8px; align-self: flex-start; max-width: 96%; }
.typing { align-self: flex-start; display: inline-flex; gap: 5px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #9aa3af; animation: blink 1.2s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.chat-disclaimer { font-size: 12px; color: var(--muted); padding: 8px 18px 0; background: #fff; border-top: 1px solid var(--line); }
.chat-form { display: flex; gap: 8px; padding: 12px 14px 14px; background: #fff; }
.chat-form input { flex: 1; min-width: 0; border: 1px solid #cfd5dd; border-radius: var(--radius-pill); padding: 12px 16px; font-size: 16px; outline: none; }
.chat-form input:focus { border-color: var(--ink); }
.chat-form button { border: none; background: var(--ink); color: #fff; border-radius: var(--radius-pill); padding: 0 18px; font-weight: 700; cursor: pointer; min-height: 46px; }
.chat-form button:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 560px) {
  .chat-panel { right: 0; left: 0; bottom: 0; width: 100%; height: 82vh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .chat-launch { right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); min-height: 54px; padding: 7px 15px 7px 8px; gap: 9px; }
  .chat-launch__icon { width: 38px; height: 38px; }
  .chat-launch__copy strong { font-size: 13px; }
  .chat-launch__copy small { font-size: 11px; }
}

/* ---------- Reveal motion (restrained) ---------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Small screens ----------------------------------------------- */
@media (max-width: 900px) {
  .hero-copy { max-width: 100%; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .health-grid { grid-template-columns: 1fr; }
  .health-card--assessment { grid-column: auto; }
  .health-card { padding: 22px; }
  .health-fields { gap: 12px; }
  .health-actions .btn { flex: 1; }
  .btn { white-space: normal; }
  .btn-row .btn { width: 100%; }
  .hero { padding-top: calc(var(--header-h) + 40px); }
  .hero-meta { margin-top: 32px; }
  .cta-band .btn { width: 100%; }
  .blog-toolbar { flex-direction: column; align-items: stretch; }
  .search-box { width: 100%; }
}

/* ---------- Legal pages and footer legal links -------------------------- */
.footer-legal { display: inline-flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-legal a { color: #fff; font-weight: 600; transition: color .2s ease; }
.footer-legal a:hover { color: var(--blue); }
.bmi-privacy-copy a { text-decoration: underline; font-weight: 700; }
.legal-wrap { max-width: 820px; }
.legal-meta { font-size: 15px; color: var(--muted); margin-bottom: 1.6em; }
.legal-wrap.prose h2 { font-size: clamp(22px, 2.3vw, 28px); margin: 2em 0 .5em; }
.legal-wrap.prose h3 { font-size: 19px; margin: 1.5em 0 .4em; }
.legal-wrap.prose { font-size: 17px; line-height: 1.7; }
.legal-wrap.prose ul { margin: 0 0 1.25em; padding-left: 1.25em; list-style: disc; }
.legal-wrap.prose li { margin-bottom: .45em; }
.legal-wrap.prose a { text-decoration: underline; font-weight: 600; }
.legal-notice { background: #fff8e1; border: 1px solid #f0d98a; color: #4a3b00; border-radius: 10px; padding: 16px 18px; margin: 0 0 1.6em; font-size: 15px; line-height: 1.6; }
.confirm-flag { background: #fff3c4; border-bottom: 2px solid #e0b400; padding: 0 3px; border-radius: 3px; font-weight: 700; color: #4a3b00; }
