/* ─── MANDEM HEALTH — SHARED STYLES ───────────────────────────
   Loaded on every page. Page-specific styles stay inline.
──────────────────────────────────────────────────────────────── */

/* ─── RESET & BASE ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; -webkit-font-smoothing: antialiased; overscroll-behavior-y: none; }
body { overflow-x: hidden; overscroll-behavior-y: none; }

:root {
  --bg: #f8f7f4;
  --bg-t: rgba(248, 247, 244, 0);
  --bg-warm: #f0ede8;
  --surface: #fdfdfc;
  --text-primary: #1a1a18;
  --text-secondary: #5a5a52;
  --text-muted: #6e6d65;
  --accent: #115e59;
  --accent-ink: #0e544e;
  --accent-mid: #0f766e;
  --accent-light: #f0fdfa;
  --accent-border: #99f6e4;
  --gold: #b45309;
  --gold-light: #fef3c7;
  --danger: #b91c1c;
  --danger-light: #fef2f2;
  --danger-border: #fecaca;
  --warning-bg: #fff7ed;
  --warning-border: #fed7aa;
  --warning-text: #9a3412;
  --warning-icon: #ea580c;
  --border: #e2dfd9;
  --border-subtle: #eeebe6;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 36px;
  --shadow-sm: 0 1px 3px rgba(26,26,24,0.06), 0 1px 2px rgba(26,26,24,0.04);
  --shadow-md: 0 4px 16px rgba(26,26,24,0.07), 0 2px 6px rgba(26,26,24,0.04);
  --shadow-lg: 0 20px 60px -15px rgba(26,26,24,0.10);
  --nav-height: 72px;
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'DM Mono', monospace;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ─── UTILITY ────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  padding: 5px 12px;
  border-radius: 999px;
}

.tag.gold {
  color: var(--gold);
  background: var(--gold-light);
  border-color: #fde68a;
}
.tag.dark {
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
}

/* ─── SCROLL REVEAL ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s cubic-bezier(0.25, 0, 0.25, 1),
              transform 0.4s cubic-bezier(0.25, 0, 0.25, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.07s; }
.reveal-delay-2 { transition-delay: 0.14s; }
.reveal-delay-3 { transition-delay: 0.21s; }
.reveal-delay-4 { transition-delay: 0.28s; }

/* Respect users who prefer reduced motion: show everything, animate nothing. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ─── BUTTONS ────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  background: var(--accent);
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--accent-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(17, 94, 89, 0.25);
}
.btn-primary:active { transform: scale(0.98) translateY(0); }
.btn-primary.inverted { background: #fff; color: var(--accent); }
.btn-primary.inverted:hover { background: var(--accent-light); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  background: transparent;
  padding: 13px 28px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  transition: border-color 0.2s, transform 0.15s;
  cursor: pointer;
}
.btn-secondary:hover { border-color: var(--accent-border); transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--text-secondary);
  padding: 14px 20px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}
.btn-ghost:hover { color: var(--text-primary); background: rgba(248,247,244,0.6); }

/* ─── NAVIGATION ─────────────────────────────────────────────── */
.nav-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 24px;
  pointer-events: none;
}

/* Soft scrim behind the floating nav so page content fades out as it scrolls
   under it, rather than showing through the gap above and beside the pill. */
.nav-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120%;
  background: linear-gradient(to bottom, var(--bg) 35%, var(--bg-t) 100%);
  pointer-events: none;
  z-index: -1;
}

#main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1320px;
  margin: 0 auto;
  background: rgba(248, 247, 244, 0.88);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(226, 223, 217, 0.8);
  border-radius: 999px;
  padding: 10px 10px 10px 24px;
  pointer-events: all;
  box-shadow: 0 2px 20px rgba(26,26,24,0.06);
  transition: box-shadow 0.3s ease;
}

#main-nav.scrolled { box-shadow: 0 4px 30px rgba(26,26,24,0.10); }

.nav-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  text-transform: lowercase;
}
.nav-logo span { color: var(--accent-mid); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  padding: 7px 14px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text-primary);
  background: var(--bg-warm);
}

.nav-cta {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: var(--accent);
  padding: 9px 20px;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.15s ease;
}
.nav-cta:hover { background: var(--accent-mid); transform: translateY(-1px); }
.nav-cta:active { transform: scale(0.98); }
.nav-cta-wrap { display: flex; align-items: center; gap: 10px; }

/* Logged-in account menu (injected by portal-auth.js) */
.nav-account { position: relative; }
.nav-account-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.nav-account-btn:hover { border-color: var(--accent-border); background: var(--bg-warm); }
.nav-account-btn > i:first-child { font-size: 18px; color: var(--accent-mid); }
.nav-account-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 184px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 200;
}
/* The class selector above outranks the UA [hidden] rule, so make the
   hidden attribute authoritative or the menu paints open on every load. */
.nav-account-menu[hidden] { display: none; }
.nav-account-menu a,
.nav-account-menu button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  text-align: left;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-secondary);
  background: none;
  border: none;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-account-menu a:hover,
.nav-account-menu button:hover { background: var(--bg-warm); color: var(--text-primary); }
.nav-account-menu i { font-size: 16px; color: var(--accent-mid); }
@media (max-width: 480px) { .nav-account-btn > span { display: none; } }

.nav-portal {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.nav-portal i { font-size: 16px; }
.nav-portal:hover { color: var(--text-primary); border-color: var(--text-muted); transform: translateY(-1px); }
.nav-portal:active { transform: scale(0.98); }

/* Icon-only sign-in, shown in place of the .nav-portal pill on mobile. */
.nav-login-icon {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.nav-login-icon i { font-size: 20px; }
.nav-login-icon:hover { color: var(--text-primary); border-color: var(--text-muted); }
.nav-login-icon:active { transform: scale(0.96); }

.nav-mobile-only { display: none; }

.nav-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--bg-warm);
  color: var(--text-primary);
}

/* ─── SECTION HEADERS ────────────────────────────────────────── */
.section-eyebrow { margin-bottom: 16px; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--text-primary);
}
.section-sub {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 60ch;
  margin-top: 16px;
}

/* ─── SECTION MODIFIERS ──────────────────────────────────────── */
.section-title.light { color: #fff; }
.section-sub.light { color: rgba(255,255,255,0.82); }

/* ─── FAQ SECTION (treatment pages) ──────────────────────────── */
.faq-section {
  padding: 100px 0;
  background: var(--bg);
}
.faq-section .faq-header { margin-bottom: 56px; text-align: center; }
.faq-section .faq-list {
  max-width: 820px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* ─── FAQ ACCORDION ──────────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  font-size: 17px;
  font-weight: 500;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  gap: 16px;
  background: none;
  border: none;
  font-family: inherit;
  transition: color 0.2s, background 0.2s;
}
.faq-question:hover { color: var(--accent-mid); }
.faq-item.open .faq-question { color: var(--accent-mid); }
.faq-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  color: var(--accent-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s, border-color 0.3s, background 0.3s, color 0.3s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); border-color: var(--accent-mid); background: var(--accent-mid); color: #fff; }
.faq-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.25, 0, 0.25, 1);
}
.faq-item.open .faq-body { grid-template-rows: 1fr; }
.faq-body-inner { overflow: hidden; }
.faq-answer {
  padding: 0 26px 24px;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 72ch;
}

/* ─── FOOTER ─────────────────────────────────────────────────── */
footer {
  background: var(--text-primary);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  text-transform: lowercase;
  margin-bottom: 16px;
}
.footer-logo span { color: var(--accent-mid); }
.footer-desc { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.72); max-width: 28ch; }
.footer-col-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.66);
  margin-bottom: 20px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.78); transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  cursor: default;
}
.footer-soon em {
  font-style: normal;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 2px 7px;
  border-radius: 999px;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-legal { font-size: 12px; color: rgba(255,255,255,0.66); line-height: 1.6; max-width: 70ch; }
.footer-socials { display: flex; gap: 8px; }
.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.72);
  transition: border-color 0.2s, color 0.2s;
}
.social-btn i { font-size: 16px; }
.social-btn:hover { border-color: rgba(255,255,255,0.66); color: #fff; }
.footer-badge {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-badge i { color: #6ee7b7; font-size: 16px; }
.footer-badge span { font-size: 12px; color: rgba(255,255,255,0.66); }

/* ─── MOBILE ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .container { padding: 0 20px; }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 20px;
    right: 20px;
    background: rgba(248,247,244,0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 12px;
    flex-direction: column;
    gap: 4px;
    box-shadow: var(--shadow-md);
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 15px; }
  .nav-mobile-toggle { display: flex; }
  .nav-portal { display: none; }
  .nav-login-icon { display: inline-flex; }
  .nav-cta-wrap { gap: 8px; }
  .nav-mobile-only { display: list-item; }

  footer { padding: 56px 0 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-desc { max-width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-legal { max-width: 100%; font-size: 11px; }
  .footer-col-title { margin-bottom: 12px; }
  .footer-links { gap: 8px; }
}

/* ─── LEGAL PAGES ──────────────────────────────────────────── */
.hero {
  padding-top: 140px;
  padding-bottom: 60px;
}
.hero-inner {
  max-width: 800px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.hero-meta {
  font-size: 14px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* Layout */
.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 80px;
  align-items: start;
  padding: 0 0 120px;
}

/* TOC Sidebar */
.toc-sidebar {
  position: sticky;
  top: 88px;
}
.toc-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.toc-list a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  line-height: 1.4;
}
.toc-list a:hover {
  color: var(--text-primary);
  background: var(--bg-warm);
}
.toc-list a.active {
  color: var(--accent-mid);
  background: var(--accent-light);
}
.toc-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-mid);
  flex-shrink: 0;
}

/* Content */
.legal-content {
  max-width: 780px;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 56px 64px;
}
.legal-section {
  padding-top: 56px;
  padding-bottom: 56px;
  margin-top: 0;
}
.legal-section:first-child {
  padding-top: 0;
}
.legal-section:last-child {
  padding-bottom: 0;
}
.legal-section + .legal-section {
  border-top: 1px solid var(--border);
}
.legal-section-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px;
}
.legal-section-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-mid);
  flex-shrink: 0;
}
.legal-section-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.legal-body {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
}
.legal-body p + p {
  margin-top: 14px;
}
.legal-body a {
  color: var(--accent-mid);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-body a:hover {
  color: var(--accent);
}
.legal-list {
  list-style: none;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.legal-list li {
  position: relative;
  padding-left: 18px;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.legal-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-mid);
}
.legal-list li strong {
  color: var(--text-primary);
}
/* Visible placeholder for legal details still to be confirmed/added */
.tbc {
  background: var(--warning-bg);
  color: var(--warning-text);
  padding: 1px 7px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.92em;
}

@media (max-width: 1024px) {
  .legal-layout { grid-template-columns: 200px 1fr; gap: 48px; }
  .legal-content { padding: 40px 40px; }
}
@media (max-width: 768px) {
  .legal-layout { grid-template-columns: 1fr; gap: 32px; }
  .toc-sidebar { position: static; }
  .legal-content { padding: 32px 24px; border-radius: var(--radius-lg); }
}

/* ─── TREATMENT HERO (trt & ed) ────────────────────────────── */
.treatment-hero {
  padding: 140px 0 80px;
  background: var(--bg);
  text-align: center;
}
.treatment-hero .hero-inner {
  max-width: 800px;
  margin: 0 auto;
}
.treatment-hero .hero-tag { margin-bottom: 28px; }
.treatment-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text-primary);
  margin-bottom: 24px;
}
.treatment-hero h1 em {
  font-style: italic;
  color: var(--accent-mid);
}
.treatment-hero .hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 62ch;
  margin: 0 auto 36px;
}
.treatment-hero .hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ─── TREATMENT HERO (hairloss & weightloss) ─────────────── */
.hero-eyebrow { margin-bottom: 28px; }
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 80px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.0;
  color: var(--text-primary);
  margin-bottom: 24px;
}
.hero-headline em { font-style: italic; font-weight: 300; color: var(--accent-mid); }

/* Shared hero layout for treatment pages (hairloss, weightloss) */
.treatment-hero-centered {
  padding: 140px 0 80px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.treatment-hero-centered .hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
}
.treatment-hero-centered .hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 56ch;
  margin-bottom: 40px;
}
.treatment-hero-centered .hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ─── HERO WITH PHOTO (shared by trt.njk + weightloss.njk via the
   hero-photo macro) ───────────────────────────────────────────
   Self-contained under .hero-has-photo so it only activates when a page
   opts in — ed.njk and hairloss.njk still use plain .treatment-hero /
   .treatment-hero-centered above, completely untouched by this block. */
.treatment-hero.hero-has-photo { text-align: left; }
.treatment-hero-centered.hero-has-photo { display: block; }
.hero-photo-grid {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 380px);
  gap: 56px;
  align-items: center;
}
.hero-photo-grid .hero-inner {
  margin: 0;
  max-width: none;
  width: auto;
  padding: 0;
  align-items: flex-start;
  text-align: left;
}
.hero-photo-grid .hero-sub { margin: 0 0 36px; }
.hero-photo-grid .hero-actions { justify-content: flex-start; }
.hero-photo-card {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.hero-photo-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px) {
  .hero-photo-grid { grid-template-columns: 1fr; }
  .hero-photo-card { max-width: 480px; margin: 0 auto; }
  .hero-photo-grid .hero-inner { align-items: center; text-align: center; }
  .hero-photo-grid .hero-sub { margin: 0 auto 36px; }
  .hero-photo-grid .hero-actions { justify-content: center; }
}

/* ─── TRUST STRIP (shared by trt.njk + weightloss.njk via the
   trust-strip macro) ───────────────────────────────────────── */
.trust-strip { padding: 30px 0; background: var(--bg-warm); }
.trust-strip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 36px; }
.trust-strip-item { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 500; color: var(--text-primary); }
.trust-strip-item i { font-size: 19px; color: var(--accent-mid); }
@media (max-width: 720px) { .trust-strip-row { gap: 12px 22px; } .trust-strip-item { font-size: 13px; } }

/* ─── CHIP STRIP (shared by trt.njk + weightloss.njk via the
   chip-strip macro) — labelled chip row + quiz CTA on a solid accent
   background. Each page defines its own .chip-strip--x modifier with
   just the background-color (see trt.njk / weightloss.njk). ────── */
.chip-strip { padding: 60px 0; }
.chip-strip-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.74);
  text-align: center;
  margin-bottom: 24px;
}
.chip-strip-row { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.chip-strip-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 999px;
}
.chip-strip-chip i { font-size: 16px; color: rgba(255,255,255,0.85); }
.chip-strip-cta { text-align: center; margin-top: 34px; }
.chip-strip-cta-text { font-size: 15px; color: rgba(255,255,255,0.85); margin-bottom: 16px; }
.chip-strip-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.chip-strip-cta-btn:hover { transform: translateY(-1px); background: var(--accent-light); box-shadow: 0 10px 28px rgba(0,0,0,0.18); }
.chip-strip-cta-btn i { transition: transform 0.2s ease; }
.chip-strip-cta-btn:hover i { transform: translateX(3px); }

/* ─── DARK PROCESS SECTION (hairloss, weightloss) ────────── */
.process-dark {
  padding: 100px 0;
  background: var(--text-primary);
}
.process-dark .process-header { margin-bottom: 64px; }
.process-dark .process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.process-dark .process-step { display: flex; flex-direction: column; gap: 16px; }
.process-dark .process-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.66);
  letter-spacing: 0.08em;
}
.process-dark .process-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
}
.process-dark .process-step-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.process-dark .process-step-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
}

/* ─── TREATMENT PROCESS STEPS ─────────────────────────────── */
/* ─── TREATMENT CTA ────────────────────────────────────────── */
/* trt & ed variant (light bg) */
.treatment-cta {
  padding: 120px 0;
  background: var(--bg-warm);
  text-align: center;
}
.treatment-cta .cta-inner,
.cta-section .cta-inner {
  max-width: 640px;
  margin: 0 auto;
}
.treatment-cta .cta-inner .section-title { margin-bottom: 16px; }
.treatment-cta .cta-inner .section-sub { margin: 0 auto 36px; }
.cta-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.cta-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}
.cta-trust-item i { font-size: 15px; color: var(--accent-mid); }
/* hairloss & weightloss variant (accent bg) */
.cta-section {
  padding: 120px 0;
  background: var(--accent);
  text-align: center;
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 20px;
}
.cta-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 40px;
}

/* ─── TREATMENT RESPONSIVE ────────────────────────────────── */
@media (max-width: 1024px) {
  .process-dark .process-steps { grid-template-columns: repeat(2, 1fr); }
  .options-section .options-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .treatment-hero { padding: 120px 0 60px; }
  .treatment-hero h1 { font-size: clamp(36px, 8vw, 56px); }
  .treatment-hero-centered { padding: 120px 0 60px; }
  .treatment-hero-centered .hero-actions { justify-content: center; }
  .treatment-hero-centered .hero-actions a,
  .treatment-hero-centered .hero-actions button { text-align: center; justify-content: center; }
  .process-dark .process-steps { grid-template-columns: 1fr; }
  .treatment-cta { padding: 72px 0; }
}

/* ─── OPTIONS SECTION (treatment pages) ───────────────────── */
.options-section {
  padding: 100px 0;
  background: var(--bg);
}

/* ─── TREATMENT OPTION CARDS ───────────────────────────────── */
.options-header { margin-bottom: 56px; }
.options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.option-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.option-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.option-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.option-card-titles { flex: 1; }
.option-card-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.delivery-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-warm);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.option-card.highlighted {
  border-color: var(--accent-border);
  background: var(--accent-light);
}
.option-card-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.option-card-benefits { display: flex; flex-direction: column; gap: 8px; }
.benefit-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}
.benefit-item i { color: var(--accent-mid); font-size: 16px; flex-shrink: 0; }
/* ─── QUIZ / QUESTIONNAIRE FLOW ────────────────────────────────
   Shared by the ADAM (testosterone) and weight-loss questionnaires. */
.quiz-section {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  flex-direction: column;
  padding: calc(var(--nav-height) + 28px) 0 56px;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, var(--accent-light) 0%, transparent 60%),
    var(--bg);
}
.quiz-shell { max-width: 640px; margin: 0 auto; width: 100%; display: flex; flex-direction: column; flex: 1; }

.quiz-topbar { display: flex; align-items: center; gap: 16px; margin-bottom: 40px; }
.quiz-back, .quiz-exit {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: var(--text-muted);
  background: none; border: none; cursor: pointer; padding: 6px; border-radius: 8px;
  transition: color 0.2s;
}
.quiz-back:hover, .quiz-exit:hover { color: var(--text-primary); }
.quiz-back i, .quiz-exit i { font-size: 16px; }
.quiz-progress { flex: 1; height: 6px; border-radius: 999px; background: var(--border); overflow: hidden; }
.quiz-progress-fill { height: 100%; width: 0%; background: var(--accent-mid); border-radius: 999px; transition: width 0.35s cubic-bezier(0.4,0,0.2,1); }

.quiz-body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.quiz-screen[hidden] { display: none !important; }
.quiz-screen.anim { animation: quizIn 0.32s cubic-bezier(0.22,1,0.36,1) both; }
@keyframes quizIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.quiz-centered { text-align: center; }
.quiz-centered .quiz-sub,
.quiz-centered .quiz-result-body { margin-left: auto; margin-right: auto; }
.quiz-centered .quiz-meta { justify-content: center; }
.quiz-centered .quiz-result-icon,
.quiz-centered .quiz-result-actions { margin-left: auto; margin-right: auto; }
.quiz-centered .quiz-disclaimer { display: block; margin-left: auto; margin-right: auto; }

.quiz-eyebrow { margin-bottom: 18px; }
.quiz-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-primary);
}
.quiz-q {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: var(--text-primary);
}
.quiz-sub { font-size: 16px; color: var(--text-secondary); line-height: 1.7; margin-top: 16px; max-width: 52ch; }
.quiz-help { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-top: 12px; }
.quiz-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 28px; font-size: 13px; color: var(--text-muted); }
.quiz-meta span { display: inline-flex; align-items: center; gap: 7px; }
.quiz-meta i { font-size: 15px; color: var(--accent-mid); }

.quiz-options { display: flex; flex-direction: column; gap: 12px; margin-top: 34px; }
.quiz-option {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; text-align: left;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  font-family: var(--font-body); font-size: 16px; font-weight: 500; color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, transform 0.18s, box-shadow 0.18s;
}
.quiz-option:hover { border-color: var(--accent-border); background: var(--accent-light); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.quiz-option.selected { border-color: var(--accent-mid); background: var(--accent-light); }
.quiz-tick {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--border); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 12px;
  transition: background 0.18s, border-color 0.18s, opacity 0.18s; opacity: 0;
}
.quiz-option.selected .quiz-tick { opacity: 1; background: var(--accent-mid); border-color: var(--accent-mid); }

.quiz-start { margin-top: 36px; }
.quiz-start .btn-primary { font-size: 16px; padding: 15px 28px; }

.quiz-checkbox-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 34px; }
.quiz-option-checkbox { justify-content: flex-start; padding: 14px 16px; }
.quiz-checkbox-box {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 5px;
  border: 1.5px solid var(--border); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 12px;
  transition: background 0.18s, border-color 0.18s; margin-right: 10px;
}
.quiz-option-checkbox.selected .quiz-checkbox-box { background: var(--accent-mid); border-color: var(--accent-mid); }
.quiz-option-checkbox .quiz-checkbox-box i { opacity: 0; transition: opacity 0.15s; }
.quiz-option-checkbox.selected .quiz-checkbox-box i { opacity: 1; }
@media (max-width: 600px) {
  .quiz-checkbox-list { grid-template-columns: 1fr; }
}

.quiz-input-row { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }
.quiz-input-group { flex: 1; min-width: 140px; }
.quiz-input-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.quiz-input-group input {
  width: 100%;
  font-family: var(--font-body); font-size: 16px; color: var(--text-primary);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}
.quiz-input-group input:focus { outline: none; border-color: var(--accent-mid); }
.quiz-input-group input.quiz-input-invalid { border-color: var(--danger); }
.quiz-continue { margin-top: 28px; }

.quiz-input-pair { display: flex; align-items: center; gap: 8px; }
.quiz-input-pair input {
  width: 76px; flex: none; text-align: center;
  font-family: var(--font-body); font-size: 16px; color: var(--text-primary);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 12px;
}
.quiz-input-pair input:focus { outline: none; border-color: var(--accent-mid); }
.quiz-input-pair input.quiz-input-invalid { border-color: var(--danger); }
.quiz-input-unit { font-size: 14px; color: var(--text-muted); font-weight: 500; }

.quiz-unit-toggle { display: inline-flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.quiz-unit-btn {
  font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--text-secondary);
  background: var(--surface); border: 1.5px solid var(--border); border-radius: 999px;
  padding: 8px 16px; cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.quiz-unit-btn:hover { border-color: var(--accent-border); }
.quiz-unit-btn.selected { background: var(--accent-mid); border-color: var(--accent-mid); color: #fff; }
.quiz-unit-group { margin-top: 28px; }
.quiz-unit-group > label { display: block; font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }

.quiz-result-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--accent-light); border: 1px solid var(--accent-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; color: var(--accent-mid); margin-bottom: 24px;
}
.quiz-result-body { font-size: 17px; color: var(--text-secondary); line-height: 1.7; margin-top: 16px; max-width: 54ch; }
.quiz-result-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; max-width: 380px; }
.quiz-result-actions .btn-primary,
.quiz-result-actions .btn-secondary { justify-content: center; font-size: 15px; }
.quiz-result-back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--accent-mid); justify-content: center; }
.quiz-disclaimer { font-size: 12.5px; color: var(--text-muted); line-height: 1.6; margin-top: 28px; max-width: 56ch; display: flex; gap: 8px; align-items: flex-start; }
.quiz-disclaimer i { font-size: 15px; flex-shrink: 0; margin-top: 1px; }

@media (max-width: 600px) {
  .quiz-section { padding: calc(var(--nav-height) + 16px) 0 40px; }
  .quiz-topbar { margin-bottom: 28px; }
  .quiz-options { margin-top: 26px; }
  .quiz-result-actions { max-width: none; }
}
.tag-gold {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-light);
  border: 1px solid #fcd34d;
  padding: 4px 10px;
  border-radius: 999px;
}

/* ─── DOCTOR CARDS ────────────────────────────────────────── */
.doctor-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent-mid);
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.doctor-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: -0.015em;
}

/* ─── COOKIE BANNER ──────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: min(640px, calc(100vw - 32px));
  background: var(--text-primary);
  color: rgba(255,255,255,0.85);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  z-index: 9999;
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
  animation: cookie-slide-up 0.4s cubic-bezier(0.25,0,0.25,1) both;
}
.cookie-banner.hidden { display: none; }
.cookie-text {
  flex: 1;
  min-width: 200px;
  font-size: 13px;
  line-height: 1.6;
}
.cookie-text a { color: rgba(255,255,255,0.8); text-decoration: underline; }
.cookie-text a:hover { color: #fff; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-btn-accept {
  background: var(--accent-ink);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.cookie-btn-accept:hover { background: var(--accent); }
.cookie-btn-essential {
  background: transparent;
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
}
.cookie-btn-essential:hover { border-color: rgba(255,255,255,0.74); color: #fff; }
@keyframes cookie-slide-up {
  from { opacity: 0; transform: translateX(-50%) translateY(16px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@media (max-width: 600px) {
  .cookie-banner { flex-direction: column; align-items: stretch; bottom: 16px; }
  .cookie-actions { flex-direction: column; }
}
