/* ============================================================
   Shared styles for /tests/ pages
   Same design tokens as homepage — recolor via :root only
   ============================================================ */
:root {
  /* PRIMARY brand color, near-black: sticky nav, headers, dark bands.
     Change this one value and every dark surface + all text follows. */
  --color-primary: #073258;
  /* SECONDARY brand color, gold: buttons, links, highlights */
  --color-accent: #d4af37;
  --color-accent-deep: #b8962a;  /* SECONDARY dark: solid CTA buttons (white text) */
  --color-accent-soft: #f6e7c1;
  --color-bg: #ffffff;
  --color-text: var(--color-primary);
  --color-text-muted: var(--color-text-muted);
  --color-surface: #ffffff;
  --color-border: rgba(7, 50, 88, 0.12);

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;

  /* site-wide desktop grid, same as homepage: shared left/right edges */
  --grid: min(1120px, calc(100% - 96px));
  --nav-height: 72px;

  --transition: all 0.4s cubic-bezier(0.8, 0, 0.55, 0.94);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { width: var(--grid); max-width: none; margin: 0 auto; padding: 0; }

/* ---------- Nav (pinned bar, same behavior as homepage)
   Default: transparent over the full-screen photo hero.
   .is-solid: clean white bar once the hero has scrolled out of view.
   JS on each page toggles .is-solid at hero height (or immediately on
   pages without a photo hero). */
.nav {
  position: fixed; top: 0; left: 0; transform: none;
  width: 100%;
  height: var(--nav-height); padding: 0 max(48px, calc((100% - 1120px) / 2));
  display: flex; align-items: center; justify-content: space-between;
  border-radius: 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  color: #fff;
  z-index: 100;
  transition: background 0.45s ease, border-color 0.45s ease;
}
.nav.is-solid {
  background: #ffffff;
  border-bottom-color: var(--color-border);
}
.nav__logo { display: inline-flex; align-items: center; }
.nav__logo-img { height: 48px; width: auto; display: block; margin-left: -28px; /* SVG art starts 42/470 in; align icon stroke with the grid edge */ }
.nav__logo-img--light { display: none; }
.nav.is-solid .nav__logo-img--dark { display: none; }
.nav.is-solid .nav__logo-img--light { display: block; }
.nav__links { display: flex; gap: 34px; align-items: center; }
.nav__links > a, .nav__back {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92); transition: var(--transition);
}
.nav__links > a:hover, .nav__back:hover { color: var(--color-accent); }
.nav.is-solid .nav__links > a { color: rgba(7, 50, 88, 0.72); }
.nav.is-solid .nav__links > a:hover { color: var(--color-accent); }
.nav__cta {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 22px; border-radius: 10px;
  background: var(--color-accent); color: #ffffff;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  transition: var(--transition);
}
.nav__links a.nav__cta { color: #ffffff; }
.nav.is-solid .nav__links a.nav__cta { color: #ffffff; }
.nav__cta:hover { background: var(--color-accent-deep); color: #ffffff; transform: translateY(-1px); }

/* ---------- Corporate: return cards (image top, text below) ---------- */
.ret-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.ret-card {
  border: 1px solid var(--color-border); border-radius: 16px;
  background: var(--color-surface); overflow: hidden;
  display: flex; flex-direction: column;
}
.ret-card__img { aspect-ratio: 3 / 2; overflow: hidden; }
.ret-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ret-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ret-card__title { font-family: var(--font-body); font-weight: 600; font-size: 1.02rem; line-height: 1.35; color: var(--color-primary); }
.ret-card__text { font-size: 0.88rem; line-height: 1.65; color: var(--color-text-muted); }
/* sources sit visually in the background, apart from body text */
.source-note {
  margin-top: auto; padding-top: 12px;
  border-top: 1px solid var(--color-border);
  font-size: 0.72rem; line-height: 1.5; color: rgba(38, 44, 52, 0.55);
}

/* ---------- Corporate: photo process steps ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.step-photo {
  border: 1px solid var(--color-border); border-radius: 16px;
  background: var(--color-surface); overflow: hidden;
  display: flex; flex-direction: column;
}
.step-photo__img { position: relative; aspect-ratio: 3 / 2; }
.step-photo__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.step-photo__num {
  position: absolute; left: 14px; bottom: -19px; z-index: 1;
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-accent); color: var(--color-primary);
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  border: 3px solid var(--color-surface);
}
.step-photo__body { padding: 30px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.step-photo__title { font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1.3; color: var(--color-primary); }
.step-photo__text { font-size: 0.85rem; line-height: 1.6; color: var(--color-text-muted); }
.step-note {
  margin-top: 18px; padding: 18px 22px; border-radius: 14px;
  background: rgba(212, 175, 55, 0.09); border: 1px solid rgba(212, 175, 55, 0.35);
  font-size: 0.9rem; line-height: 1.6; color: var(--color-primary);
}

/* ---------- Full-bleed navy bands: consistent white→navy spacing rule ----------
   RULE: a navy band always gives its first content (gold eyebrow / headline)
   96px of air from the color edge on desktop, 72px on mobile. Bands butt
   directly against white sections, so this top padding IS the transition. */
.stat-band {
  padding: 96px 0 72px;
  background: var(--color-primary); color: #ffffff;
  box-shadow: 0 0 0 100vmax var(--color-primary);
  clip-path: inset(0 -100vmax);
  text-align: center;
}
.stat-band__headline {
  font-family: var(--font-body); font-weight: 600;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem); line-height: 1.2;
  max-width: 30ch; margin: 0 auto 44px;
}
.stat-band__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.stat__num {
  font-family: var(--font-body); font-weight: 700;
  font-size: clamp(2.8rem, 5vw, 4.2rem); line-height: 1;
  color: var(--color-accent); margin-bottom: 10px;
}
.stat__label { font-weight: 600; font-size: 1rem; color: #ffffff; margin-bottom: 10px; }
.stat__text { font-size: 0.86rem; line-height: 1.65; color: rgba(255, 255, 255, 0.72); margin: 0 auto 14px; max-width: 34ch; }
.stat__source { font-size: 0.72rem; line-height: 1.5; color: rgba(255, 255, 255, 0.45); }

/* ---------- Corporate: what we measure pillars (4 boxes, swipe on mobile) ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.pillar {
  border: 1px solid var(--color-border); border-radius: 16px;
  background: var(--color-surface); padding: 26px 22px 24px;
  display: flex; flex-direction: column;
}
.pillar__icon { width: 28px; height: 28px; color: var(--color-accent); margin-bottom: 16px; }
.pillar__title { font-family: var(--font-body); font-weight: 600; font-size: 1.02rem; line-height: 1.3; color: var(--color-primary); margin-bottom: 10px; }
.pillar__text { font-size: 0.86rem; line-height: 1.65; color: var(--color-text-muted); }

/* ---------- Corporate: benefits band ---------- */
.block.block--flush { padding: 0; }
.block.block--flush.block--ruled { border-top: none; }
.block__title--light { color: #ffffff; }
.benefits-band {
  padding: 96px 0 72px; /* white→navy spacing rule: 96px top / 72px bottom */
  background: var(--color-primary); color: #ffffff;
  box-shadow: 0 0 0 100vmax var(--color-primary);
  clip-path: inset(0 -100vmax);
}
.benefits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 36px; }
.benefits-col__title {
  font-family: var(--font-body); font-weight: 600; font-size: 1.05rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--color-accent); margin-bottom: 20px;
}
.benefits-list { list-style: none; }
.benefits-list li {
  position: relative; padding: 12px 0 12px 34px;
  color: rgba(255, 255, 255, 0.85); line-height: 1.6; font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.benefits-list li::before {
  content: ""; position: absolute; left: 2px; top: 19px;
  width: 15px; height: 8px;
  border-left: 2px solid var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  transform: rotate(-45deg);
}

/* ---------- Full-bleed photo hero (section landing pages, video stays homepage-only) ---------- */
.page-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh; /* fills the entire first screen; body content starts below the fold */
  display: flex;
  align-items: center;
  background: var(--color-primary) center / cover no-repeat;
  color: #ffffff;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(4, 28, 48, 0.55), transparent 36%),
    linear-gradient(90deg, rgba(4, 28, 48, 0.78) 0%, rgba(4, 28, 48, 0.42) 45%, rgba(4, 28, 48, 0.08) 75%);
}
.page-hero .wrap { position: relative; z-index: 1; padding-top: 96px; padding-bottom: 110px; }
.page-hero__title {
  font-family: var(--font-body); font-weight: 600;
  font-size: clamp(2.6rem, 4.6vw, 4.2rem); line-height: 1.05; letter-spacing: -0.02em;
  color: #ffffff; max-width: 16ch; margin-bottom: 22px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.page-hero__lede {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem; line-height: 1.7; max-width: 46ch; margin-bottom: 36px;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.45);
}
.page-hero__lede strong { color: var(--color-accent-soft); font-weight: 600; }
.page-hero .nav__cta { height: 52px; padding: 0 30px; }

/* ---------- Page hero ---------- */
/* single consistent page header: no breadcrumb path on subpages */
.test-hero__crumb, .article-hero__crumb { display: none; }
.test-hero { padding: 140px 0 56px; }
.test-hero__crumb {
  font-size: 0.88rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--color-text-muted); margin-bottom: 20px;
}
.test-hero__crumb a:hover { color: var(--color-accent); }
.test-hero__crumb .sep { margin: 0 10px; opacity: 0.4; }
/* TYPE SCALE (site-wide standard)
   H1 page title : Inter 600 clamp(2.4rem, 5vw, 3.4rem) navy (bold sans, clearly above H2)
   Eyebrow       : 600 0.78rem ls .18em uppercase gold
   H2 section    : display 500 clamp(1.9rem, 3.2vw, 2.6rem) navy
   H3 card title : display 500 1.4rem navy
   Lede          : 1.08rem/1.85 muted (strong -> navy)
   Body          : 1rem/1.8 muted (strong -> navy) */
.test-hero__title {
  font-family: var(--font-body); font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 20ch; margin-bottom: 26px;
}
.test-hero__lede { color: var(--color-text-muted); font-size: 1.08rem; max-width: 62ch; line-height: 1.85; }
.test-hero__lede strong { color: var(--color-text); font-weight: 500; }

/* ---------- Content blocks ---------- */
.block { padding: 48px 0; }
.block--ruled { border-top: 1px solid var(--color-border); }
.block__eyebrow {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--color-accent); margin-bottom: 16px; text-align: center;
}
.block__title {
  font-family: var(--font-body); font-weight: 600;
  font-size: clamp(1.85rem, 3.2vw, 2.5rem); line-height: 1.18; letter-spacing: -0.02em;
  max-width: 26ch; margin: 0 auto 24px; text-align: center;
}
.block__text { color: var(--color-text-muted); line-height: 1.85; max-width: 68ch; margin: 0 auto 16px; text-align: center; }
.block__lead { color: var(--color-text); font-size: 1.1rem; line-height: 1.85; max-width: 62ch; margin: 0 auto; text-align: center; }

/* ---------- Icon cards (why it matters / who / what it changes) ---------- */
.ico-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 46px auto 0; max-width: 1080px; }
.ico-grid--2 { grid-template-columns: repeat(2, 1fr); max-width: 880px; }
.ico-card { padding: 30px 28px 28px; border-radius: 18px; background: var(--color-surface); border: 1px solid var(--color-border); text-align: left; }
.ico-card__icon { width: 46px; height: 46px; border-radius: 50%; background: rgba(212, 175, 55, 0.12); color: var(--color-accent-deep); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.ico-card__icon svg { width: 22px; height: 22px; }
.ico-card__title { font-family: var(--font-display); font-size: 1.32rem; font-weight: 600; color: var(--color-primary); margin-bottom: 8px; }
.ico-card__text { font-size: 0.92rem; line-height: 1.7; color: var(--color-text-muted); }
.block__text strong { color: var(--color-text); font-weight: 500; }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 36px; }
.checklist { list-style: none; }
.checklist li {
  position: relative; padding: 14px 0 14px 36px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted); line-height: 1.6;
}
.checklist li strong { color: var(--color-text); font-weight: 500; }
.checklist li::before {
  content: "\2713"; position: absolute; left: 2px; top: 13px;
  font-size: 0.95rem; font-weight: 700; color: var(--color-accent-deep);
}

/* ---------- Price / booking card ---------- */
.price-card {
  margin-top: 36px; padding: 40px 44px; border-radius: 24px;
  background: var(--color-surface); border: 1px solid var(--color-border);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.price-card__label { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 10px; }
.price-card__price { font-family: var(--font-display); font-weight: 600; font-size: 2.6rem; line-height: 1; margin-bottom: 8px; }
.price-card__note { color: var(--color-text-muted); font-size: 0.9rem; max-width: 42ch; }
.price-card .nav__cta, .prog-card__cta .nav__cta {
  height: 52px; padding: 0 34px; border-radius: 8px;
  background: var(--color-accent); color: #ffffff;
}
.price-card .nav__cta:hover, .prog-card__cta .nav__cta:hover { background: var(--color-accent-deep); color: #ffffff; }
.price-card__cta { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.price-card__link { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-primary); text-decoration: none; border-bottom: 1px solid rgba(212, 175, 55, 0.55); padding-bottom: 3px; }

/* ---------- FAQ (same accordion as homepage) ---------- */
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 4px; background: none; border: none; cursor: pointer;
  color: var(--color-text); font-family: var(--font-body); font-size: 1.02rem; text-align: left;
}
.faq-q .faq-icon { color: var(--color-accent); font-size: 1.4rem; font-weight: 300; transition: var(--transition); flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: var(--transition); }
.faq-a p { color: var(--color-text-muted); line-height: 1.8; padding: 0 4px 26px; max-width: 72ch; }

/* ---------- CTA band ---------- */
.cta-band {
  padding: 96px 0; text-align: center; /* white→navy spacing rule: 96px top */
  background: var(--color-primary); color: #ffffff;
  box-shadow: 0 0 0 100vmax var(--color-primary);
  clip-path: inset(0 -100vmax);
}
.cta-band__title {
  font-family: var(--font-body); font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.2; letter-spacing: -0.02em;
  max-width: 24ch; margin: 0 auto 34px;
}
.cta-band .nav__cta {
  height: 54px; padding: 0 38px; border-radius: 8px;
  background: var(--color-accent); color: #ffffff;
}
.cta-band .nav__cta:hover { background: var(--color-accent-deep); color: #ffffff; }
.cta-band__alt {
  display: block; margin-top: 18px; font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}
.cta-band__alt a { color: var(--color-accent); }
.cta-band__alt a:hover { color: var(--color-accent-soft); }

/* ---------- Tests index grid ---------- */
.tests-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 48px; }
.test-tile {
  border-radius: 24px; overflow: hidden;
  background: var(--color-surface); border: 1px solid var(--color-border);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: var(--transition); display: block;
}
.test-tile:hover { transform: translateY(-4px); border-color: var(--color-accent); }
.test-tile__body { padding: 26px 28px 30px; }
.test-tile__cat { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 10px; }
.test-tile__title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; margin-bottom: 10px; }
.test-tile__text { color: var(--color-text-muted); font-size: 0.92rem; line-height: 1.7; }
.test-tile__meta { margin-top: 16px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(38, 44, 52, 0.55); }
.test-tile__more {
  margin-top: 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  transition: var(--transition);
}
.test-tile:hover .test-tile__more { color: #b8962a; letter-spacing: 0.16em; }

/* ---------- Footer ---------- */
.footer {
  background: var(--color-primary); color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem; line-height: 1.75;
  box-shadow: 0 0 0 100vmax var(--color-primary); clip-path: inset(0 -100vmax);
  padding-top: 64px;
}
.footer__grid { display: grid; grid-template-columns: 1.5fr 1.1fr 0.9fr 0.9fr; gap: 44px; padding-bottom: 46px; }
.footer__logo { height: 42px; display: block; margin-bottom: 18px; }
.footer__brand p { margin: 0 0 14px; max-width: 32ch; }
.footer__contact { font-size: 0.95rem; }
.footer__contact a { color: #fff; font-weight: 500; text-decoration: none; }
.footer__contact a:hover { color: var(--color-accent); }
.footer__head { font-weight: 600; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-accent); margin: 4px 0 16px; }
.footer__col p { margin: 0; }
.footer__col a { display: block; color: rgba(255, 255, 255, 0.72); text-decoration: none; margin-bottom: 10px; }
.footer__col a:hover { color: #fff; }
.footer__legal { border-top: 1px solid rgba(255, 255, 255, 0.14); padding: 20px 0 28px; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 0.8rem; color: rgba(255, 255, 255, 0.5); }
.footer__legal a { color: rgba(255, 255, 255, 0.6); text-decoration: none; margin-left: 24px; }
.footer__legal a:hover { color: #fff; }
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 34px; padding-bottom: 34px; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  /* Diagnostics overview: spread sections out on mobile */
  .page-tests .block { padding: 72px 0; }
  .page-tests .tests-grid { gap: 34px; margin-top: 44px; }
  .page-tests .test-tile__body { padding: 30px 26px 34px; }
  .page-tests .test-tile__media { height: 240px; }
  .page-tests .cta-band { margin-top: 24px; }
  .footer { padding-top: 52px; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .footer__legal { flex-direction: column; align-items: flex-start; }
  .footer__legal a { margin: 0 18px 0 0; }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .wrap { width: auto; max-width: none; padding: 0 24px; }
  .page-hero .wrap { padding-top: calc(var(--nav-height) + 32px); padding-bottom: 72px; }
  .page-hero__title { font-size: clamp(2rem, 8.5vw, 2.6rem); }
  .page-hero__lede { font-size: 1rem; line-height: 1.75; margin-bottom: 34px; max-width: 40ch; }
  .page-hero .nav__cta { height: 48px; }
  .ret-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-right: -24px; padding: 0 24px 12px 0;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .pillars::-webkit-scrollbar { display: none; }
  .pillar { flex: 0 0 76%; scroll-snap-align: start; }
  .stat-band { padding: 72px 0 56px; }
  .stat-band__grid { gap: 32px; }
  .benefits-band { padding: 72px 0 56px; }
  .cta-band { padding: 72px 0; }
  .cols, .tests-grid { grid-template-columns: 1fr; }
  .ico-grid, .ico-grid--2 { grid-template-columns: 1fr; margin-top: 36px; }
  .test-hero { padding: 118px 0 40px; }
  .price-card { padding: 32px 28px; }
}

/* ============ CHAT TOGGLES ============ */
.chat-fab {
  position: fixed; right: 28px; bottom: 28px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  border: none; cursor: pointer;
  background: var(--color-accent); color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(7, 50, 88, 0.35);
  transition: var(--transition);
}
.chat-fab:hover { background: var(--color-accent-deep); color: #ffffff; transform: translateY(-2px); }
.chat-fab svg { width: 24px; height: 24px; display: block; }
.chat-fab .chat-fab__close { display: none; }
.chat-fab.is-open .chat-fab__bubble { display: none; }
.chat-fab.is-open .chat-fab__close { display: block; }
.chat-panel {
  position: fixed; right: 28px; bottom: 96px; z-index: 90;
  width: 250px; padding: 18px;
  border-radius: 18px; background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: 0 18px 50px rgba(7, 50, 88, 0.25);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: var(--transition);
}
.chat-panel.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.chat-panel__title {
  font-family: var(--font-body); font-weight: 600; font-size: 0.85rem;
  color: var(--color-primary); margin-bottom: 12px;
}
.chat-panel__item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 12px;
  font-size: 0.88rem; font-weight: 500; color: var(--color-text);
  transition: var(--transition);
}
.chat-panel__item:hover { background: rgba(212, 175, 55, 0.12); color: var(--color-primary); }
.chat-panel__item svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--color-accent-deep); }
.chat-panel__label { display: flex; flex-direction: column; line-height: 1.35; }
.chat-panel__num { font-size: 0.72rem; color: rgba(38, 44, 52, 0.55); letter-spacing: 0.02em; }
@media (max-width: 700px) { .chat-fab { right: 16px; bottom: 16px; } .chat-panel { right: 16px; bottom: 84px; } }

/* ---------- Programs: comparison matrix & tier detail ---------- */
.matrix-wrap { overflow-x: auto; margin-top: 48px; -webkit-overflow-scrolling: touch; }
.matrix { width: 100%; min-width: 760px; border-collapse: collapse; }
.matrix th, .matrix td { padding: 18px 22px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--color-border); font-size: 0.92rem; line-height: 1.65; }
.matrix thead th { border-bottom: 1px solid var(--color-accent); padding-top: 6px; }
.matrix thead .matrix__tier { font-family: var(--font-display); font-size: 1.45rem; font-weight: 500; }
.matrix thead .matrix__price { display: block; font-family: var(--font-body); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; color: var(--color-accent); margin-top: 4px; }
.matrix thead .matrix__count { display: block; font-family: var(--font-body); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-accent); margin-top: 2px; }
.matrix tbody th { font-weight: 600; color: var(--color-text); width: 25%; }
.matrix td { color: var(--color-text-muted); }
.matrix td.tier-prime, .matrix thead th.tier-prime { background: rgba(212, 175, 55, 0.07); }
.matrix thead th.tier-prime { border-radius: 14px 14px 0 0; }
.matrix__tick { color: var(--color-accent); font-weight: 700; margin-right: 8px; }
.matrix tr.matrix__total td { font-family: var(--font-display); font-size: 1.6rem; color: var(--color-accent); border-bottom: none; padding-top: 26px; }
.matrix tr.matrix__total th { border-bottom: none; padding-top: 30px; }
.matrix tr.matrix__total td.tier-prime { border-radius: 0 0 14px 14px; }
.matrix__note { margin-top: 18px; font-size: 0.78rem; font-style: italic; color: rgba(7, 50, 88, 0.5); }

.tier { margin-top: 88px; padding-top: 64px; border-top: 1px solid var(--color-border); scroll-margin-top: 110px; }
.tier__head { display: flex; align-items: baseline; gap: 26px; flex-wrap: wrap; }
.tier__name { font-family: var(--font-display); font-size: 2.3rem; font-weight: 600; line-height: 1.1; }
.tier__price { font-family: var(--font-display); font-size: 1.55rem; color: var(--color-accent); }
.tier__tagline { color: var(--color-text-muted); margin-top: 10px; max-width: 64ch; }
.tier__groups { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 36px; }
.tier__group { padding: 24px 26px; border: 1px solid var(--color-border); border-radius: 18px; background: var(--color-surface); }
.tier__group-title { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 14px; }
.tier__list { list-style: none; }
.tier__list li { position: relative; padding-left: 22px; color: var(--color-text-muted); font-size: 0.9rem; line-height: 1.7; margin-bottom: 6px; }
.tier__list li::before { content: "\2713"; position: absolute; left: 0; color: var(--color-accent); font-weight: 700; }
.tier__adds { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 36px; }
.tier__adds li { padding: 18px 20px; border: 1px solid var(--color-border); border-radius: 16px; background: var(--color-surface); color: var(--color-text-muted); font-size: 0.9rem; line-height: 1.65; transition: var(--transition); }
.tier__adds li:hover { border-color: var(--color-accent); }
.tier__adds strong { display: block; color: var(--color-text); font-weight: 600; margin-bottom: 3px; }
.tier__base { margin-top: 26px; font-size: 0.82rem; letter-spacing: 0.06em; color: var(--color-accent); }
.tier__cta { margin-top: 32px; }

@media (max-width: 860px) {
  .tier__groups, .tier__adds { grid-template-columns: 1fr; }
  .tier__head { gap: 14px; }
}

/* ---------- Programs: side-by-side tier cards with expandable categories ---------- */
.progs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; margin-top: 56px; }
.prog-card {
  position: relative;
  border-radius: 22px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 32px 26px 30px;
  transition: var(--transition);
  scroll-margin-top: 110px;
}
.prog-card:hover { border-color: var(--color-accent); }
.prog-card--featured {
  border-color: var(--color-accent);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.14), rgba(212, 175, 55, 0.04) 45%);
}
.prog-card__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 18px;
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-primary);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.prog-card__name { font-family: var(--font-display); font-size: 1.85rem; font-weight: 500; line-height: 1.1; }
.prog-card__price { font-family: var(--font-display); font-size: 1.95rem; font-weight: 500; color: var(--color-accent); margin-top: 10px; }
.prog-card__price span { font-size: 0.95rem; vertical-align: super; margin-right: 2px; color: var(--color-accent); }
.prog-card__count { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-accent); margin-top: 4px; }
.prog-card__tagline { color: var(--color-text-muted); font-size: 0.86rem; line-height: 1.65; margin-top: 14px; }

.acc { margin-top: 22px; border-top: 1px solid var(--color-border); }
.acc__item { border-bottom: 1px solid var(--color-border); }
.acc__head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 2px;
  background: none;
  border: none;
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.acc__head:hover { color: #b8962a; }
.acc__icon { color: var(--color-accent); font-weight: 300; font-size: 1.25rem; line-height: 1; transition: var(--transition); flex-shrink: 0; }
.acc__item.open .acc__icon { transform: rotate(45deg); }
.acc__body { max-height: 0; overflow: hidden; transition: var(--transition); }
.acc__inner { padding: 2px 2px 18px; }
.acc__base { font-size: 0.78rem; color: var(--color-accent); margin-bottom: 10px; }
.acc__list { list-style: none; }
.acc__list li { position: relative; padding-left: 20px; color: var(--color-text-muted); font-size: 0.86rem; line-height: 1.65; margin-bottom: 5px; }
.acc__list li::before { content: "\2713"; position: absolute; left: 0; color: var(--color-accent); font-weight: 700; }
.prog-card__cta { margin-top: 26px; }
.prog-card__cta .nav__cta { display: inline-flex; }

@media (max-width: 960px) {
  .progs { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
}


/* ---------- News & Insights ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; }
.news-card {
  border-radius: 22px; overflow: hidden;
  background: var(--color-surface); border: 1px solid var(--color-border);
  transition: var(--transition); display: flex; flex-direction: column;
}
a.news-card:hover { transform: translateY(-4px); border-color: var(--color-accent); box-shadow: 0 18px 40px -18px rgba(7, 50, 88, 0.25); }
.news-card__img { aspect-ratio: 16 / 10; overflow: hidden; }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.8s cubic-bezier(0.8, 0, 0.55, 0.94); }
a.news-card:hover .news-card__img img { transform: scale(1.04); }
.news-card__body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.news-card__cat { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 12px; }
.news-card__title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; line-height: 1.25; margin-bottom: 12px; color: var(--color-text); }
.news-card__text { color: var(--color-text-muted); font-size: 0.94rem; line-height: 1.7; flex: 1; }
.news-card__more {
  margin-top: 20px; font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-accent);
  transition: var(--transition);
}
a.news-card:hover .news-card__more { color: #b8962a; letter-spacing: 0.16em; }
.news-card--soon { pointer-events: none; }
.news-card--soon .news-card__img {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(7, 50, 88, 0.05));
}
.news-card--soon .news-card__img span {
  font-family: var(--font-display); font-size: 1.6rem; color: rgba(7, 50, 88, 0.25);
}
.news-card__more--soon { color: rgba(38, 44, 52, 0.45); }

/* ---------- Article (health-library style) ---------- */
/* article column centered within the grid */
.article { max-width: 800px; margin: 0 auto; }
.article-hero__cat, .article-hero__title, .article-hero__lede, .article-hero__byline { max-width: 800px; margin-left: auto; margin-right: auto; }
.article-hero { padding: 164px 0 0; }
.article-hero__crumb { font-size: 0.82rem; color: var(--color-text-muted); margin-bottom: 26px; }
.article-hero__crumb a { color: var(--color-accent); }
.article-hero__crumb a:hover { color: #b8962a; }
.article-hero__cat { font-size: 0.9rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 16px; }
.article-hero__title {
  font-family: var(--font-body); font-weight: 600;
  font-size: clamp(2.3rem, 5vw, 3.4rem); line-height: 1.08;
  letter-spacing: -0.02em; margin-bottom: 22px;
}
.article-hero__lede { font-size: 1.08rem; line-height: 1.85; color: var(--color-text-muted); max-width: 68ch; }
.article-hero__byline {
  display: flex; align-items: center; gap: 14px;
  margin: 30px 0 34px; padding-top: 22px; border-top: 1px solid var(--color-border);
  font-size: 0.88rem; color: var(--color-text-muted);
}
.article-hero__byline strong { color: var(--color-text); font-weight: 600; }
.article-hero__byline .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--color-accent); }
.article-hero__img { border-radius: 22px; overflow: hidden; margin-bottom: 8px; }
.article-hero__img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.article-hero__caption { font-size: 0.8rem; color: rgba(38, 44, 52, 0.55); margin-bottom: 8px; }
.article-body { padding: 40px 0 8px; }
.article-body p, .article-body li, .article-body h2, .article-body h3 { max-width: 800px; }
.article-body h2 {
  font-family: var(--font-body); font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.22; letter-spacing: -0.02em;
  margin: 52px 0 20px;
}
.article-body h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.08rem; margin: 30px 0 12px; color: var(--color-text); }
.article-body p { color: var(--color-text-muted); line-height: 1.85; margin-bottom: 18px; }
.article-body p strong, .article-body li strong { color: var(--color-text); font-weight: 600; }
.article-body ul { margin: 0 0 20px; padding-left: 4px; list-style: none; }
.article-body ul li { position: relative; padding-left: 26px; margin-bottom: 12px; color: var(--color-text-muted); line-height: 1.75; }
.article-body ul li::before {
  content: ""; position: absolute; left: 2px; top: 0.62em;
  width: 7px; height: 7px; border-radius: 2px;
  background: var(--color-accent); transform: rotate(45deg);
}
.article-body p, .article-body li, .article-body h2, .article-body h3 { margin-left: auto; margin-right: auto; }
.article-body a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: #b8962a; }
.article-callout {
  margin: 40px 0; padding: 26px 30px;
  border-radius: 18px;
  background: rgba(212, 175, 55, 0.09);
  border: 1px solid rgba(212, 175, 55, 0.35);
}
.article-callout h2 { margin: 0 0 12px; font-size: 1.35rem; }
.article-callout p:last-child { margin-bottom: 0; }
.article-tests { margin: 52px 0 8px; padding-top: 40px; border-top: 1px solid var(--color-border); }
.article-tests__label { font-size: 0.9rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 22px; }
.article-test {
  display: block; padding: 22px 26px; margin-bottom: 14px;
  border: 1px solid var(--color-border); border-radius: 16px;
  transition: var(--transition); background: var(--color-surface);
}
.article-test:hover { border-color: var(--color-accent); transform: translateY(-2px); }
.article-test, .article-test:hover { text-decoration: none; }
.article-test p { text-decoration: none; }
.article-test__name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; color: var(--color-text); margin-bottom: 6px; }
.article-test__desc { font-size: 0.9rem; color: var(--color-text-muted); line-height: 1.6; }
.article-test__go { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-accent); margin-top: 10px; }
@media (max-width: 900px) {
  .news-grid { grid-template-columns: 1fr; }
  .article-hero { padding: 132px 0 0; }
}
@media (max-width: 700px) {
  .article-hero__byline { flex-direction: column; align-items: flex-start; gap: 6px; }
  .article-hero__byline .dot { display: none; }
  .article-hero__byline span + span::before { content: none; }
}

/* ---------- Programs comparison table (single table, expandable groups) ---------- */
/* YEARS-style comparison table: fits the screen, no horizontal swiping */
.cmp-wrap { overflow: visible; margin-top: 48px; border: 1px solid var(--color-border); border-radius: 22px; background: #ffffff; }
table.cmp { width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; }
.cmp thead th { text-align: center; vertical-align: bottom; padding: 28px 10px 20px; border-bottom: 2px solid var(--color-primary); }
.cmp thead th:first-child { width: 48%; border-bottom-color: transparent; }
.cmp__tiername { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; color: var(--color-primary); display: block; }
.cmp__rec { display: inline-block; margin-bottom: 10px; padding: 4px 12px; border-radius: 999px; background: var(--color-accent); color: #ffffff; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.cmp__price { display: block; margin-top: 6px; font-size: 1rem; font-weight: 600; color: var(--color-primary); }
.cmp__count { display: block; margin-top: 5px; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-muted); }
.cmp thead th.tier-prime, .cmp td.tier-prime { background: rgba(212, 175, 55, 0.08); }
.cmp tbody th, .cmp tbody td { padding: 13px 16px; border-bottom: 1px solid var(--color-border); font-size: 0.88rem; line-height: 1.45; vertical-align: middle; }
.cmp tbody th { text-align: left; font-weight: 400; color: #1d2126; text-decoration: underline dotted rgba(7, 50, 88, 0.35); text-underline-offset: 4px; }
.cmp tbody td { text-align: center; color: var(--color-text-muted); }
/* checks read as filled circles, YEARS-style */
.cmp__yes { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--color-accent); color: #ffffff; font-size: 0.82rem; font-weight: 700; }
.cmp__no { color: #cdd2d8; font-weight: 600; font-size: 0.95rem; }
.cmp__part { display: inline-block; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(90deg, var(--color-accent-deep) 50%, #d9dde2 50%); vertical-align: middle; }
.cmp__num { font-weight: 600; color: var(--color-primary); font-size: 1rem; }
.cmp__ghead th { background: none; padding: 0; border-bottom: 1px solid var(--color-border); }
/* crisp YEARS-style rules between categories, no tinted background */
.cmp tbody .cmp__ghead th, .cmp tbody .cmp__ghead td { border-top: 2px solid var(--color-primary); }
.cmp tbody .cmp__ghead th { text-decoration: none; }
.cmp__gbtn { display: flex; align-items: center; gap: 6px; width: 100%; padding: 16px 18px; border: 0; background: none; color: #1d2126; font-family: inherit; font-size: 0.95rem; font-weight: 500; letter-spacing: 0; cursor: pointer; text-align: left; }
.cmp__glabel { flex: 1; }
/* rows hidden until the group is expanded; the group header always shows summary marks */
.cmp tbody .cmp__row { display: none; }
.cmp tbody.open .cmp__row { display: table-row; }
/* +/− prefix mirrors the YEARS group headers; fixed width so toggling never reflows */
.cmp__glabel::before { content: "+"; color: var(--color-accent-deep); font-weight: 700; display: inline-block; width: 18px; }
.cmp tbody.open .cmp__glabel::before { content: "\2013"; }
/* summary marks on the collapsed category row */
.cmp__ghead td { text-align: center; vertical-align: middle; padding: 10px 6px; border-bottom: 1px solid var(--color-border); }
.cmp__ghead .cmp__yes { width: 22px; height: 22px; font-size: 0.72rem; }
.cmp__ghead .cmp__part { width: 22px; height: 22px; }
.cmp__ghead .cmp__no { font-size: 0.85rem; }
@media (max-width: 900px) {
  .cmp thead th { padding: 18px 4px 14px; }
  .cmp thead th:first-child { width: 50%; }
  .cmp tbody th, .cmp tbody td { padding: 12px 8px 12px 16px; }
  .cmp__tiername { writing-mode: vertical-rl; transform: rotate(180deg); margin: 0 auto; font-size: 1.02rem; letter-spacing: 0.08em; }
  .cmp__price, .cmp__count, .cmp__rec { display: none; }
  .cmp thead th { border-bottom-width: 1px; }
  .cmp tbody th, .cmp tbody td { padding: 11px 7px 11px 12px; font-size: 0.74rem; line-height: 1.35; }
  .cmp__yes { width: 21px; height: 21px; font-size: 0.68rem; }
  .cmp__gbtn { padding: 13px 12px; font-size: 0.88rem; }
}

@media (max-width: 620px) {
  .ret-grid, .steps { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .stat-band__grid { grid-template-columns: 1fr; gap: 32px; }
  .benefits-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Programs: the yearly rhythm ("one day a year, for many years") ---------- */
.rhythm__years {
  display: flex; justify-content: center; gap: clamp(6px, 1.2vw, 14px);
  margin: 48px auto 64px; max-width: 720px;
}
.rhythm__year { flex: 1; max-width: 64px; text-align: center; }
.rhythm__box {
  display: block;
  height: clamp(48px, 8vw, 64px); border-radius: 12px;
  border: 1.5px solid var(--color-border);
}
.rhythm__year.is-done .rhythm__box { background: var(--color-primary); border-color: var(--color-primary); }
.rhythm__year.is-next .rhythm__box { border: 1.5px dashed var(--color-accent-deep); }
.rhythm__num { display: block; margin-top: 8px; font-size: 0.8rem; font-weight: 600; color: var(--color-text-muted); }
.rhythm__steps { max-width: 640px; margin: 0 auto; text-align: left; }
.rhythm__step { border-top: 2px solid var(--color-primary); padding: 28px 0 8px; }
.rhythm__step + .rhythm__step { margin-top: 36px; }
.rhythm__step-title { font-family: var(--font-body); font-weight: 600; font-size: 1.15rem; color: var(--color-primary); margin-bottom: 12px; }
.rhythm__step-text { color: var(--color-text-muted); line-height: 1.8; }
@media (max-width: 900px) {
  .rhythm__years { margin: 36px auto 48px; }
}

/* ---------- Slim page header (used on News index: no photo hero, previews start right away) ---------- */
.page-head { padding: calc(var(--nav-height) + 72px) 0 40px; }
.page-head__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.6rem, 5vw, 3.8rem); line-height: 1.12;
  color: var(--color-primary); text-align: center; margin: 0 auto;
}
.page-head__lede { margin: 20px auto 0; max-width: 60ch; text-align: center; color: var(--color-text-muted); line-height: 1.85; }
.page-head__lede strong { color: var(--color-text); font-weight: 500; }
@media (max-width: 900px) {
  .page-head { padding: calc(var(--nav-height) + 40px) 0 24px; }
}

/* ---------- Programs: who is it for ---------- */
.who { padding: 96px 0 64px; }
.who__inner { max-width: 640px; margin: 0 auto; }
.who__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.2rem, 3.8vw, 3rem); line-height: 1.15;
  color: var(--color-primary); margin: 0; padding-top: 20px; position: relative;
}
.who__title::before { content: ""; position: absolute; top: 0; left: 0; width: 48px; height: 3px; background: var(--color-accent); }
.who__intro { font-size: 1.05rem; color: var(--color-text-muted); margin: 16px 0 12px; }
.who__list { list-style: none; margin: 0; padding: 0; }
.who__item { display: flex; align-items: flex-start; gap: 20px; padding: 22px 0; }
.who__item + .who__item { border-top: 1px solid var(--color-border); }
.who__icon { flex: none; width: 28px; height: 28px; color: var(--color-accent-deep); margin-top: 2px; }
.who__item span { font-size: 1.05rem; line-height: 1.6; color: var(--color-text); }
@media (max-width: 900px) {
  .who { padding: 72px 0 48px; }
}

/* ---------- Programs: "what you get" outcome cards above the comparison table ---------- */
/* PROGRAMS PAGE: hero pill, selector rows, program description cards */
.page-hero__pill { display: inline-block; padding: 9px 22px; border: 1px solid rgba(255, 255, 255, 0.55); border-radius: 999px; color: #ffffff; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 26px; background: rgba(7, 50, 88, 0.25); backdrop-filter: blur(4px); }
.page-hero__title--gold { color: var(--color-accent); }
.prog-rows { display: grid; gap: 10px; margin-top: 52px; max-width: 520px; }
.prog-row { display: flex; align-items: baseline; gap: 16px; padding: 13px 20px; border-radius: 12px; background: rgba(255, 255, 255, 0.92); color: var(--color-primary); }
.prog-row--featured { background: var(--color-accent); color: #ffffff; }
.prog-row__name { font-family: var(--font-display); font-size: 1.22rem; font-weight: 700; white-space: nowrap; }
.prog-row__tag { flex: 1; font-size: 0.8rem; opacity: 0.85; }
.page-hero--compact { min-height: 80svh; align-items: flex-end; }
.page-hero--compact .wrap { padding-bottom: 46px; }
.page-hero--compact .prog-rows { margin-top: 42px; max-width: 460px; gap: 8px; }
.page-hero--compact .prog-row { padding: 9px 16px; border-radius: 10px; gap: 14px; }
.page-hero--compact .prog-row__name { font-size: 1.02rem; }
.page-hero--compact .prog-row__tag { font-size: 0.74rem; }
.page-hero--programs { background-image: url('../assets/heroes/programs.jpg'); }
.page-hero--programs::before {
  background:
    linear-gradient(to top, rgba(4, 28, 48, 0.62), rgba(4, 28, 48, 0.18) 42%, transparent 60%),
    linear-gradient(90deg, rgba(4, 28, 48, 0.85) 0%, rgba(4, 28, 48, 0.55) 45%, rgba(4, 28, 48, 0.22) 78%);
}
.page-hero--tests { background-image: url('../assets/heroes/tests.jpg'); }
.prog-desc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.prog-desc__card { border: 1px solid var(--color-border); border-radius: 20px; padding: 30px 26px 28px; background: #ffffff; }
.prog-desc__card--featured { border-color: rgba(212, 175, 55, 0.55); background: linear-gradient(180deg, rgba(212, 175, 55, 0.08), #ffffff 65%); }
.prog-desc__name { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--color-primary); }
.prog-desc__tag { font-size: 0.95rem; font-weight: 600; color: var(--color-accent-deep); margin-top: 4px; }
.prog-desc__price { margin-top: 18px; font-size: 1.02rem; font-weight: 600; color: var(--color-primary); }
.prog-desc__price span { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-muted); }
.prog-desc__text { margin-top: 12px; font-size: 0.9rem; line-height: 1.7; color: var(--color-text-muted); }
.prog-desc__link { display: inline-block; margin-top: 18px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-primary); text-decoration: none; border-bottom: 1px solid rgba(212, 175, 55, 0.55); padding-bottom: 3px; }
@media (max-width: 900px) {
  .prog-desc { grid-template-columns: 1fr; margin-top: 36px; }
  .prog-rows { margin-top: 40px; }
  .prog-row { padding: 12px 18px; }
  .prog-row__name { font-size: 1.12rem; }
  .prog-row__tag { font-size: 0.76rem; }
  .page-hero--compact { min-height: 100svh; }
  .page-hero--compact .wrap { padding-bottom: 32px; }
  .page-hero--compact .prog-rows { margin-top: 32px; }
  .page-hero--programs { background-image: url('../assets/heroes/programs-mobile.jpg'); }
  .page-hero--tests { background-image: url('../assets/heroes/tests-mobile.jpg'); }
}

/* ---------- Book a consultation: what to expect ---------- */
.pillars--3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 900px) {
  .nav__logo-img { height: 44px; margin-left: -20px; }
}

/* First block on pages without a photo hero (e.g. News index): clear the pinned nav */
.block--pagefirst { padding-top: calc(var(--nav-height) + 56px); }
@media (max-width: 900px) {
  .block--pagefirst { padding-top: calc(var(--nav-height) + 32px); }
}

/* ---------- Booking modal (opens from any "Book a Free Consultation" link) ---------- */
.bookmodal { position: fixed; inset: 0; z-index: 300; display: none; }
.bookmodal.is-open { display: block; }
.bookmodal__backdrop { position: absolute; inset: 0; background: rgba(5, 20, 34, 0.62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.bookmodal__dialog {
  position: relative; max-width: 940px; margin: 6vh auto; background: #ffffff;
  border-radius: 20px; overflow: hidden; display: grid; grid-template-columns: 1.05fr 0.95fr;
  box-shadow: 0 30px 80px rgba(5, 20, 34, 0.35);
  animation: bookmodal-in 0.28s ease;
}
@keyframes bookmodal-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.bookmodal__close {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px;
  border: 0; border-radius: 50%; background: #ffffff; color: var(--color-primary);
  font-size: 1.15rem; line-height: 1; cursor: pointer;
  box-shadow: 0 2px 10px rgba(5, 20, 34, 0.18); transition: background 0.2s;
}
.bookmodal__close:hover { background: var(--color-accent-soft); }
.bookmodal__left { padding: 48px 44px 40px; }
.bookmodal__title { font-family: var(--font-display); font-weight: 600; font-size: 2rem; line-height: 1.2; color: var(--color-primary); margin: 0 0 12px; }
.bookmodal__sub { font-size: 0.95rem; line-height: 1.75; color: var(--color-text-muted); margin: 0 0 22px; }
.bookmodal__points { list-style: none; margin: 0 0 26px; padding: 0; }
.bookmodal__points li { position: relative; padding: 7px 0 7px 30px; font-size: 0.93rem; font-weight: 500; color: var(--color-text); }
.bookmodal__points li::before {
  content: "\2713"; position: absolute; left: 0; top: 7px;
  width: 20px; height: 20px; border-radius: 50%; background: var(--color-accent-soft);
  color: var(--color-accent-deep); font-size: 0.72rem; font-weight: 700; text-align: center; line-height: 20px;
}
.bookmodal__calendar {
  border: 1.5px dashed rgba(7, 50, 88, 0.25); border-radius: 14px;
  padding: 20px 22px; background: rgba(7, 50, 88, 0.025);
}
.bookmodal__calendar-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-accent); margin: 0 0 8px; }
.bookmodal__calendar p { font-size: 0.86rem; line-height: 1.7; color: var(--color-text-muted); margin: 0; }
.bookmodal__right { min-height: 100%; }
.bookmodal__right img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px) {
  .bookmodal__dialog { grid-template-columns: 1fr; width: calc(100% - 28px); max-height: 90vh; overflow-y: auto; margin: 5vh auto; }
  .bookmodal__right { display: none; }
  .bookmodal__left { padding: 30px 22px 26px; }
  .bookmodal__btn { padding: 16px 10px; font-size: 0.95rem; }
  .bookmodal__logo { margin-bottom: 18px; }
  .bookmodal__title { font-size: 1.6rem; }
}

/* round I: square button, bigger logo, content pinned to bottom */
.bookmodal__left { display: flex; flex-direction: column; padding: 40px 40px 34px; }
.bookmodal__logo { height: 40px; width: auto; align-self: flex-start; display: block; margin-bottom: 24px; }
.bookmodal__btn { display: block; margin-top: auto; padding: 18px 20px; background: var(--color-accent); color: #fff; font-weight: 600; font-size: 1rem; border-radius: 10px; text-align: center; text-decoration: none; white-space: nowrap; transition: background 0.2s ease; }
.bookmodal__note { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-accent); margin: 0 0 14px; }
.bookmodal__btn:hover { background: #b8962a; }
.bookmodal__fine { margin: 14px 0 0; font-size: 0.82rem; line-height: 1.6; color: rgba(38, 44, 52, 0.72); }
.bookmodal__fine strong { color: #262c34; font-weight: 600; }
.footer__social { display: flex; gap: 12px; margin: 22px 0 0; }
.footer__social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.28); color: #fff; }
.footer__social a:hover { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.footer__social svg { width: 16px; height: 16px; }
/* tests page hero: kicker + CTA row */
.page-hero__kicker { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 20px; }
.page-hero__cta-row { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.page-hero__anchor { color: rgba(255, 255, 255, 0.85); font-size: 0.9rem; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, 0.4); transition: color 0.2s ease, text-decoration-color 0.2s ease; }
.page-hero__anchor:hover { color: #ffffff; text-decoration-color: var(--color-accent); }
/* ---------- Test tiles: photo + standalone price (Round M) ---------- */
.test-tile__media { height: 210px; overflow: hidden; }
.test-tile__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.test-tile:hover .test-tile__media img { transform: scale(1.045); }
.test-tile__price { margin-top: 16px; font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--color-primary); }
.test-tile__price span { font-family: var(--font-body); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(38, 44, 52, 0.5); margin-left: 8px; }

/* ---------- Split test hero: text + photo + price line (Round M) ---------- */
.test-hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }
.test-hero__kicker { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 18px; }
.test-hero__price { margin: 4px 0 28px; color: var(--color-text-muted); font-size: 0.95rem; }
.test-hero__price strong { font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; color: var(--color-primary); margin-right: 10px; }
.test-hero__media { border-radius: 20px; overflow: hidden; height: 440px; box-shadow: 0 24px 60px rgba(7, 50, 88, 0.18); }
.test-hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Outcome list (Round M) ---------- */
.outcome-list { list-style: none; margin-top: 10px; }
.outcome-list li { position: relative; padding: 20px 0 20px 36px; border-bottom: 1px solid var(--color-border); font-size: 1.05rem; line-height: 1.7; color: var(--color-text); max-width: 64ch; }
.outcome-list li:last-child { border-bottom: none; }
.outcome-list li::before { content: ""; position: absolute; left: 4px; top: 30px; width: 12px; height: 12px; border-radius: 50%; background: var(--color-accent); }

/* ---------- Who it's for: not-for note (Round M) ---------- */
.not-for { margin-top: 24px; padding: 16px 22px; border-radius: 12px; background: rgba(38, 44, 52, 0.05); border-left: 3px solid var(--color-accent); color: var(--color-text-muted); font-size: 0.92rem; line-height: 1.7; max-width: 68ch; }
.not-for strong { color: var(--color-text); font-weight: 600; }

/* ---------- How it works: 3 steps (Round M) ---------- */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin: 40px 0 38px; }
.steps3__item { padding: 30px 28px 28px; border-radius: 18px; background: var(--color-surface); border: 1px solid var(--color-border); }
.steps3__num { width: 44px; height: 44px; border-radius: 50%; background: var(--color-primary); color: #ffffff; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.steps3__title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; margin-bottom: 8px; }
.steps3__text { color: var(--color-text-muted); font-size: 0.92rem; line-height: 1.7; }

/* ---------- Part of a bigger picture: navy package block (Round M) ---------- */
.package-block { margin-top: 44px; padding: 50px 54px; border-radius: 24px; background: var(--color-primary); color: #ffffff; }
.package-block__eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 20px; }
.package-block__text { font-family: var(--font-display); font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.6; color: rgba(255, 255, 255, 0.94); max-width: 64ch; }
.package-block__cta { margin-top: 32px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.package-block__link { color: rgba(255, 255, 255, 0.85); font-size: 0.95rem; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, 0.4); transition: var(--transition); }
.package-block__link:hover { color: #ffffff; text-decoration-color: var(--color-accent); }

@media (max-width: 900px) {
  .test-hero { min-height: 100svh; padding: 0; display: flex; }
  .test-hero .wrap { flex: 1; display: flex; flex-direction: column; padding-top: calc(var(--nav-height) + 28px); padding-bottom: 28px; }
  .test-hero__grid { flex: 1; grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 28px; min-height: 0; }
  .test-hero__media { height: auto; min-height: 0; }
  .steps3 { grid-template-columns: 1fr; }
  .package-block { padding: 38px 30px; }
}

/* ============================================================
   UNIFIED NAV (same bar as homepage) + fullscreen drawer
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0;
  z-index: 100;
  width: 100%;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 max(48px, calc((100% - 1120px) / 2));
  background: transparent;
  border-bottom: 1px solid transparent;
  color: #fff;
  transition: background 0.45s ease, border-color 0.45s ease;
}
.nav.is-solid { background: #ffffff; border-bottom-color: var(--color-border); }
.nav.is-solid .nav__logo { color: var(--color-primary); }
.nav__logo { display: inline-flex; align-items: center; }
.nav__logo-img { height: 44px; width: auto; display: block; margin-left: -20px; }
.nav__logo-img--light { display: none; }
.nav.is-solid .nav__logo-img--dark { display: none; }
.nav.is-solid .nav__logo-img--light { display: block; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin-left: auto;
}
.nav__links a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  transition: var(--transition);
}
.nav__links a:hover { color: var(--color-accent); }
.nav.is-solid .nav__links a { color: rgba(7, 50, 88, 0.72); }
.nav.is-solid .nav__links a:hover { color: var(--color-accent); }
.nav__item--has-dropdown { position: relative; }
.nav__dropdown {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 260px;
  padding: 18px 0;
  border-radius: 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.nav__item--has-dropdown:hover .nav__dropdown,
.nav__item--has-dropdown:focus-within .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav__dropdown li { list-style: none; }
.nav__dropdown a {
  display: block;
  padding: 10px 26px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: none;
  color: var(--color-text-muted);
}
.nav__dropdown a:hover { color: var(--color-accent); }
.nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 22px;
  border-radius: 10px;
  background: var(--color-accent);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: var(--transition);
}
.nav__cta:hover { background: var(--color-accent-deep); color: #ffffff; }
.nav__burger {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 210;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: #ffffff;
  margin: 6px auto;
  transition: var(--transition);
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.nav.is-solid .nav__burger:not(.is-open) span { background: var(--color-primary); }

.drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 2px;
  padding: 110px 34px 34px;
  background: color-mix(in srgb, var(--color-primary) 92%, transparent);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  overflow-y: auto;
}
.drawer.is-open { opacity: 1; visibility: visible; }
.drawer__logo { display: inline-flex; padding: 0; margin-bottom: 42px; }
.drawer__logo img { height: 42px; width: auto; display: block; }
.drawer a {
  font-family: var(--font-body);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 10px 0;
  color: #ffffff;
  transition: var(--transition);
}
.drawer a:hover { color: var(--color-accent); }
.drawer__expand {
  display: flex;
  align-items: center;
  gap: 14px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #ffffff;
  padding: 10px 0;
  transition: var(--transition);
}
.drawer__expand:hover { color: var(--color-accent); }
.drawer__chev {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: var(--transition);
}
.drawer__item.is-open .drawer__chev { transform: rotate(-135deg) translateY(-1px); }
.drawer__sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease;
  padding-left: 16px;
}
.drawer__sub a {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.62);
  padding: 8px 0;
}
.drawer__sub a:hover { color: var(--color-accent); }
.drawer__sub a em { font-style: normal; color: var(--color-accent); }
.drawer .nav__cta {
  margin-top: 22px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  padding: 16px 44px;
  background: #ffffff;
  color: var(--color-primary);
}
.drawer .nav__cta:hover { background: var(--color-accent-soft); color: var(--color-primary); }
.drawer__socials { display: flex; gap: 34px; margin-top: auto; padding-bottom: 10px; }
.drawer__socials a { padding: 0; display: inline-flex; }
.drawer__socials svg { width: 20px; height: 20px; fill: rgba(255, 255, 255, 0.85); transition: var(--transition); }
.drawer__socials a:hover svg { fill: var(--color-accent); }

@media (max-width: 900px) {
  .nav__links, .nav .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav { padding: 0 10px 0 22px; }
}
