/* ===========================================================
   CLINIC.CSS — MedStake Chisipite Online Clinic
   Sesame-inspired layout · MedStake blue (#004AAD) · WhatsApp green CTAs
   =========================================================== */

:root {
  --blue:        #004AAD;
  --blue-700:    #00367E;
  --blue-500:    #1565D8;
  --blue-100:    #d7e4f8;
  --blue-50:     #eaf1fc;
  --blue-bg:     #eef3fc;     /* hero / soft section tint */

  --green:       #1db954;     /* WhatsApp action */
  --green-600:   #18a449;
  --wa:          #25d366;

  --ink:         #0c1a2b;
  --text:        #36434f;
  --muted:       #6a7889;
  --line:        #e6ebf2;
  --tile:        #f4f6fa;     /* sesame-style tile bg */
  --tile-hover:  #eaeef5;
  --surface:     #ffffff;

  /* category accent colours (for tile icons) */
  --c-weight:  #1565d8;
  --c-travel:  #e8833a;
  --c-general: #0fa3a3;
  --c-mens:    #3b56d6;
  --c-womens:  #d6489b;
  --c-skin:    #8b5cf6;
  --c-chronic: #e0463f;
  --c-sexual:  #a23ca6;

  --radius-pill: 999px;
  --radius-lg:   22px;
  --radius-md:   16px;
  --radius-sm:   12px;

  --shadow-sm:   0 1px 3px rgba(12,26,43,.06);
  --shadow-md:   0 8px 24px rgba(12,26,43,.08);
  --shadow-lg:   0 20px 48px rgba(0,74,173,.14);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --maxw: 1180px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
.theme-health { background: var(--surface); color: var(--text); }
body {
  font-family: var(--font);
  line-height: 1.6;
  font-size: 16px;
  background: var(--surface);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { color: var(--ink); letter-spacing: -0.02em; line-height: 1.12; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--blue); background: var(--blue-50);
  padding: 0.35rem 0.85rem; border-radius: var(--radius-pill); margin-bottom: 1rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: inherit; font-weight: 600; font-size: 0.95rem;
  padding: 0.85rem 1.6rem; border-radius: var(--radius-pill);
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-blue  { background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn-blue:hover { background: var(--blue-700); box-shadow: var(--shadow-md); }
.btn-green { background: var(--green); color: #fff; box-shadow: var(--shadow-sm); }
.btn-green:hover { background: var(--green-600); box-shadow: var(--shadow-md); }
.btn-white { background: #fff; color: var(--blue); }
.btn-white:hover { background: var(--blue-50); }
.btn-lg { padding: 1rem 2rem; font-size: 1.02rem; }
.btn svg { width: 18px; height: 18px; }

/* ---- Announcement ---- */
.topbar {
  background: var(--blue); color: #eaf1fc; text-align: center;
  font-size: 0.85rem; font-weight: 500; padding: 0.55rem 1rem;
}
.topbar strong { color: #fff; font-weight: 700; }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,0.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 0.6rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand img { height: 46px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { color: var(--blue); font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em; }
.brand-text span { color: var(--muted); font-size: 0.72rem; font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { color: var(--text); font-size: 0.9rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--blue); }
.nav-links .btn { padding: 0.5rem 1.1rem; font-size: 0.85rem; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ===================== HERO (chat interface) ===================== */
.hero { background: linear-gradient(180deg, #fff 0%, var(--blue-bg) 100%); padding: 3.5rem 0 4rem; }
.hero-inner { max-width: 760px; margin: 0 auto; padding: 0 1.5rem; text-align: center; }
.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 800; letter-spacing: -0.035em;
  margin-bottom: 0.8rem;
}
.hero h1 .accent { color: var(--blue); }
.hero .lead { font-size: clamp(1.02rem, 2vw, 1.18rem); color: var(--text); max-width: 38ch; margin: 0 auto 1.8rem; }

/* availability row */
.avail { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap; margin-bottom: 0.75rem; }
.avail-left { display: flex; align-items: center; gap: 0.6rem; }
.avail-avatar { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  border: 2px solid #fff; box-shadow: var(--shadow-sm);
  background-image: url('assets/optimized/19.webp'); background-repeat: no-repeat;
  background-size: 250%; background-position: 53% 21%; }
.avail-num { font-size: 0.88rem; font-weight: 700; color: var(--green-600); }
.avail-num .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 5px; vertical-align: middle; }
.avail-time { font-size: 0.85rem; color: var(--muted); }

/* chat box */
.chatbox {
  background: #fff; border: 2px solid var(--blue); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 1.4rem 1.5rem 1.2rem; text-align: left;
}
.chatbox label { display: block; font-size: 1.05rem; font-weight: 700; color: var(--blue); margin-bottom: 0.6rem; }
.chatbox textarea {
  width: 100%; border: none; outline: none; resize: none;
  font-family: inherit; font-size: 1.05rem; color: var(--ink); background: transparent;
  min-height: 64px; line-height: 1.5;
}
.chatbox textarea::placeholder { color: #9aa6b4; }
.chatbox-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: 0.6rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.hipaa { display: flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; color: var(--muted); font-weight: 500; }
.hipaa svg { width: 15px; height: 15px; }

/* quick pills */
.quick-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 1.2rem; }
.qp {
  font-family: inherit; font-size: 0.85rem; font-weight: 600; color: var(--text);
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-pill);
  padding: 0.5rem 1.1rem; cursor: pointer; transition: .2s;
}
.qp:hover { border-color: var(--blue); color: var(--blue); }

/* trust stats */
.trust { display: flex; justify-content: center; gap: 2.6rem; margin-top: 2.4rem; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 0.6rem; }
.trust-item .ti-ico { color: var(--blue); }
.trust-item .ti-ico svg { width: 22px; height: 22px; }
.trust-item b { display: block; font-size: 1.05rem; font-weight: 800; color: var(--ink); line-height: 1.1; }
.trust-item span { font-size: 0.8rem; color: var(--muted); }

/* ===================== Sections scaffolding ===================== */
.section { padding: 4.5rem 0; }
.section.alt { background: var(--blue-bg); }
.section-head { max-width: 640px; margin-bottom: 2.2rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; margin-bottom: 0.5rem; }
.section-head p { color: var(--muted); font-size: 1.04rem; }

/* ===================== Featured big photo cards ===================== */
.bigcards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.bigcard {
  position: relative; display: block; min-height: 340px;
  border-radius: var(--radius-lg); overflow: hidden; color: #fff;
  box-shadow: var(--shadow-md); transition: transform .4s cubic-bezier(.2,1,.3,1), box-shadow .4s;
}
.bigcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.bigcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s cubic-bezier(.2,1,.3,1); }
.bigcard:hover img { transform: scale(1.07); }
.bigcard .btn { transition: transform .25s ease, background .2s, color .2s, border-color .2s; }
.bigcard:hover .btn { transform: translateY(-2px); }
.bigcard::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,18,33,.8) 0%, rgba(8,18,33,.45) 32%, rgba(8,18,33,.15) 58%, rgba(8,18,33,.82) 100%); }
.bigcard-body { position: relative; z-index: 2; padding: 1.8rem; height: 100%;
  display: flex; flex-direction: column; }
.bigcard-body h3 { color: #fff; font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 800; margin-bottom: 0.5rem; }
.bigcard-body p { color: rgba(255,255,255,.92); font-size: 0.98rem; max-width: 30ch; }
.bigcard-body .btn { margin-top: auto; align-self: flex-start; }
/* highlighted feature (cervical cancer screening) */
.bigcard.feature { min-height: 340px; border: 2px solid var(--blue); }
.bigcard.feature .bigcard-body { justify-content: flex-end; }
.bigcard.feature .bigcard-body h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.bigcard.feature .bigcard-body p { max-width: 48ch; font-size: 1.05rem; }
.bigcard.feature .bigcard-body .btn { margin-top: 0.8rem; }
.bigcard.feature::after { background:
  linear-gradient(90deg, rgba(8,18,33,.92) 0%, rgba(8,18,33,.66) 40%, rgba(8,18,33,.12) 100%),
  linear-gradient(180deg, rgba(8,18,33,0) 55%, rgba(8,18,33,.45) 100%); }
.bigcard.feature img { object-position: 50% 35%; }
.bigcard-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 0.35rem;
  background: var(--blue); color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.35rem 0.8rem; border-radius: var(--radius-pill); margin-bottom: 0.7rem; box-shadow: var(--shadow-sm); }

/* ===================== Service tiles (Sesame style) ===================== */
.tabs { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.5rem; margin-bottom: 1.8rem;
  -ms-overflow-style: none; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  font-family: inherit; padding: 0.5rem 1.15rem; border: 1.5px solid var(--line);
  border-radius: var(--radius-pill); background: #fff; color: var(--text);
  font-size: 0.85rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: .2s;
}
.tab:hover { border-color: var(--blue); color: var(--blue); }
.tab.active { background: var(--blue); color: #fff; border-color: var(--blue); }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.tile {
  --cat: var(--blue);
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(12,26,43,.05);
  padding: 1.5rem 1.5rem 1.4rem; min-height: 158px;
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s, border-color .25s;
  animation: fadeIn .35s ease both;
  will-change: transform;
}
/* all tiles use the MedStake logo blue for one cohesive brand look
   (per-category colours kept in :root in case we want accents back later) */

.tile-ico {
  width: 50px; height: 50px; margin-bottom: 1.1rem;
  display: grid; place-items: center; border-radius: 14px;
  color: var(--cat);
  background: color-mix(in srgb, var(--cat) 15%, #ffffff);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), background .25s, color .25s, box-shadow .25s;
}
.tile-ico svg { width: 28px; height: 28px; }

.tile-title { font-size: 1.06rem; font-weight: 700; color: var(--ink); margin-top: auto; line-height: 1.25; transition: color .2s; }
.tile-sub { font-size: 0.84rem; color: var(--muted); margin-top: 0.25rem; }

.tile-arrow { position: absolute; top: 1.3rem; right: 1.3rem; color: var(--cat);
  opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .25s; }
.tile-arrow svg { width: 20px; height: 20px; }

/* hover: lift + colour-matched glow, icon fills and pops, title tints, arrow slides in */
.tile:hover {
  transform: translateY(-6px);
  border-color: var(--cat);
  box-shadow: 0 18px 38px color-mix(in srgb, var(--cat) 26%, transparent);
}
.tile:hover .tile-ico {
  background: var(--cat); color: #fff;
  transform: translateY(-2px) scale(1.08) rotate(-4deg);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--cat) 42%, transparent);
}
.tile:hover .tile-title { color: var(--cat); }
.tile:hover .tile-arrow { opacity: 1; transform: none; }

.no-results { display: none; text-align: center; color: var(--muted); padding: 3rem 1rem; font-size: 1.05rem; }

.more-wrap { text-align: center; margin-top: 2rem; }
.more-btn {
  font-family: inherit; background: #fff; border: 1.5px solid var(--blue); color: var(--blue);
  padding: 0.85rem 2.2rem; border-radius: var(--radius-pill); font-weight: 700; font-size: 0.95rem;
  cursor: pointer; transition: background .2s, color .2s, box-shadow .2s;
}
.more-btn:hover { background: var(--blue); color: #fff; box-shadow: var(--shadow-md); }
a.more-btn { display: inline-block; text-decoration: none; }

/* ===================== How it works ===================== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 2rem 1.6rem; box-shadow: var(--shadow-sm); }
.step-num { width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: #fff;
  font-weight: 800; font-size: 1.1rem; display: grid; place-items: center; margin-bottom: 1.1rem; }
.step h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.45rem; }
.step p { font-size: 0.92rem; color: var(--muted); }

/* ===================== Why us ===================== */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.why-icon { width: 50px; height: 50px; border-radius: 14px; background: var(--blue-50); color: var(--blue);
  display: grid; place-items: center; margin-bottom: 0.9rem; }
.why-icon svg { width: 24px; height: 24px; }
.why-item b { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 0.3rem; }
.why-item p { font-size: 0.9rem; color: var(--muted); }

/* ===================== CTA ===================== */
.cta { text-align: center; background: var(--blue); border-radius: var(--radius-lg); padding: 2.6rem 1.5rem; color: #fff; max-width: 640px; margin: 0 auto; }
.cta h2 { color: #fff; font-size: clamp(1.35rem, 2.6vw, 1.8rem); font-weight: 800; margin-bottom: 0.5rem; }
.cta p { color: #d7e4f8; font-size: 0.98rem; margin-bottom: 1.3rem; max-width: 440px; margin-left: auto; margin-right: auto; }

/* ---- Treatment detail modal ---- */
.modal-overlay { position: fixed; inset: 0; z-index: 500; background: rgba(12,26,43,.55);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 1.2rem; opacity: 0; transition: opacity .25s; }
.modal-overlay.open { opacity: 1; }
.modal-overlay[hidden] { display: none; }
.modal { background: #fff; border-radius: var(--radius-lg); max-width: 460px; width: 100%; padding: 1.8rem;
  position: relative; box-shadow: var(--shadow-lg); max-height: 92vh; overflow-y: auto;
  transform: translateY(18px) scale(.98); transition: transform .3s cubic-bezier(.16,1,.3,1); }
.modal-overlay.open .modal { transform: none; }
.modal-close { position: absolute; top: 0.9rem; right: 0.9rem; width: 34px; height: 34px; border-radius: 50%;
  border: none; background: #eef1f5; color: var(--ink); font-size: 1.35rem; line-height: 1; cursor: pointer; transition: background .2s; }
.modal-close:hover { background: #e1e6ec; }
.modal-head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1.1rem; padding-right: 2.2rem; }
.modal-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue); flex-shrink: 0; }
.modal-ico svg { width: 28px; height: 28px; }
.modal-cat { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--blue); }
.modal-head h3 { font-size: 1.32rem; font-weight: 700; color: var(--ink); margin-top: 2px; line-height: 1.2; }
.modal-desc { color: var(--text); font-size: 0.98rem; line-height: 1.6; margin-bottom: 1.2rem; }
.modal-steps { display: flex; flex-direction: column; gap: 0.65rem; background: var(--blue-bg);
  border-radius: var(--radius-md); padding: 1.1rem 1.2rem; margin-bottom: 1rem; }
.modal-steps div { display: flex; align-items: center; gap: 0.7rem; font-size: 0.9rem; color: var(--text); }
.modal-steps b { width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff;
  font-size: 0.76rem; display: grid; place-items: center; flex-shrink: 0; }
.modal-trust { font-size: 0.8rem; color: var(--muted); text-align: center; margin-bottom: 1.1rem; }
.modal-cta { width: 100%; }

/* ---- Questionnaire ---- */
.quiz-modal { max-width: 480px; }
.quiz-progress { height: 5px; background: var(--blue-50); border-radius: 999px; margin: 0.1rem 0 1.4rem; overflow: hidden; }
.quiz-bar { display: block; height: 100%; width: 0; background: var(--blue); border-radius: 999px; transition: width .35s cubic-bezier(.16,1,.3,1); }
.q-actions { display: flex; flex-direction: column; gap: 0.7rem; }
.q-actions .btn { width: 100%; }
.q-link { text-align: center; font-size: 0.86rem; color: var(--muted); text-decoration: underline; }
.q-link:hover { color: var(--blue); }
.q-num { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue); margin-bottom: 0.5rem; }
.q-title { font-size: 1.25rem; font-weight: 700; color: var(--ink); margin-bottom: 1.2rem; line-height: 1.3; }
.q-options { display: flex; flex-direction: column; gap: 0.6rem; }
.q-option { display: flex; align-items: center; gap: 0.75rem; text-align: left; width: 100%; padding: 0.9rem 1rem;
  border: 1.5px solid var(--line); border-radius: var(--radius-md); background: #fff; font-family: inherit; font-size: 0.96rem;
  color: var(--ink); cursor: pointer; transition: border-color .18s, background .18s; }
.q-option:hover, .q-option.sel { border-color: var(--blue); background: var(--blue-50); }
.q-option .dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); flex-shrink: 0; transition: .18s; }
.q-option.sel .dot { border-color: var(--blue); background: var(--blue); box-shadow: inset 0 0 0 3px #fff; }
.q-input, .q-field input, .q-field select { width: 100%; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 0.85rem 1rem; font-family: inherit; font-size: 0.96rem; color: var(--ink); background: #fff; }
.q-input { resize: vertical; }
.q-input:focus, .q-field input:focus, .q-field select:focus { outline: none; border-color: var(--blue); }
.q-fields { display: flex; flex-direction: column; gap: 0.8rem; }
.q-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.q-field label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--muted); margin-bottom: 0.35rem; }
.q-nav { display: flex; gap: 0.6rem; margin-top: 1.4rem; }
.q-back { background: #fff; border: 1.5px solid var(--line); color: var(--text); border-radius: var(--radius-pill);
  padding: 0.75rem 1.2rem; font-family: inherit; font-weight: 600; font-size: 0.92rem; cursor: pointer; transition: border-color .2s; }
.q-back:hover { border-color: var(--muted); }
.q-nav .btn { flex: 1; }
.q-summary { background: var(--blue-bg); border-radius: var(--radius-md); padding: 0.3rem 1.1rem; margin-bottom: 1.1rem; }
.q-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--blue-100); font-size: 0.9rem; }
.q-row:last-child { border-bottom: none; }
.q-row b { color: var(--muted); font-weight: 600; flex-shrink: 0; }
.q-row span { color: var(--ink); font-weight: 600; text-align: right; }
.q-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.q-chip { padding: 0.6rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-pill); background: #fff;
  font-family: inherit; font-size: 0.9rem; color: var(--ink); cursor: pointer; transition: border-color .18s, background .18s, color .18s; }
.q-chip:hover { border-color: var(--blue); }
.q-chip.sel { border-color: var(--blue); background: var(--blue); color: #fff; }
.q-note { font-size: 0.84rem; color: var(--muted); margin: -0.4rem 0 0.9rem; }
.q-tabs { display: flex; gap: 0.3rem; margin-bottom: 1rem; background: #eef1f5; padding: 0.3rem; border-radius: var(--radius-pill); }
.q-tab { flex: 1; padding: 0.55rem; border: none; background: transparent; border-radius: var(--radius-pill);
  font-family: inherit; font-weight: 600; font-size: 0.84rem; color: var(--muted); cursor: pointer; transition: .18s; }
.q-tab.sel { background: #fff; color: var(--blue); box-shadow: var(--shadow-sm); }
.q-alert { background: #fdeceb; border: 1px solid #f3c4bf; border-left: 4px solid #c0392b; color: #8a2a1f;
  border-radius: var(--radius-md); padding: 0.85rem 1rem; font-size: 0.88rem; line-height: 1.55; margin: 0.3rem 0 1rem; }
.q-alert b { color: #a02a1c; }

/* ---- Conversational chat ---- */
.chat-overlay { position: fixed; inset: 0; z-index: 600; background: rgba(12,26,43,.5);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity .25s; }
.chat-overlay.open { opacity: 1; }
.chat-overlay[hidden] { display: none; }
.chat-win { width: 100%; max-width: 440px; height: 90vh; max-height: 780px; background: #fff;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: var(--shadow-lg); transform: translateY(22px); transition: transform .3s cubic-bezier(.16,1,.3,1); }
.chat-overlay.open .chat-win { transform: none; }
@media (min-width: 640px) { .chat-overlay { align-items: center; padding: 1.2rem; } .chat-win { border-radius: var(--radius-lg); height: 80vh; } }
.chat-head { display: flex; align-items: center; gap: 0.7rem; padding: 0.85rem 1.1rem; background: var(--blue); color: #fff; }
.chat-ava { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; color: #fff; }
.chat-ava svg { width: 22px; height: 22px; }
.chat-id { flex: 1; line-height: 1.15; }
.chat-id b { font-size: 0.95rem; font-weight: 700; display: block; }
.chat-id span { font-size: 0.74rem; color: #cfe0f7; }
.chat-id .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #36d399; margin-right: 4px; }
.chat-close { width: 32px; height: 32px; border: none; background: rgba(255,255,255,.15); color: #fff; border-radius: 50%;
  font-size: 1.3rem; line-height: 1; cursor: pointer; flex-shrink: 0; transition: background .2s; }
.chat-close:hover { background: rgba(255,255,255,.3); }
.chat-body { flex: 1; overflow-y: auto; padding: 1.1rem; background: var(--blue-bg); display: flex; flex-direction: column; gap: 0.55rem; }
.msg { max-width: 84%; padding: 0.7rem 0.95rem; border-radius: 16px; font-size: 0.93rem; line-height: 1.5; animation: msgIn .25s ease; }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.msg.bot { align-self: flex-start; background: #fff; color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.msg.user { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 5px; }
.msg.alert { align-self: flex-start; background: #fdeceb; border: 1px solid #f3c4bf; border-left: 3px solid #c0392b; color: #8a2a1f; }
.msg.chat-cheer { align-self: center; background: rgba(29,185,84,.12); color: var(--green-600); border: none;
  font-size: 0.8rem; font-weight: 700; padding: 0.3rem 0.8rem; border-radius: 999px; max-width: none; }
.msg.typing { display: inline-flex; gap: 4px; align-items: center; }
.msg.typing i { width: 6px; height: 6px; border-radius: 50%; background: #9aa6b4; display: inline-block; animation: typdot 1s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; }
.msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typdot { 0%,60%,100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.chat-input { border-top: 1px solid var(--line); padding: 0.7rem; background: #fff; }
.chat-replies { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chat-reply { padding: 0.5rem 0.9rem; border: 1.5px solid var(--blue-100); border-radius: var(--radius-pill); background: var(--blue-50);
  color: var(--blue); font-family: inherit; font-size: 0.86rem; font-weight: 600; cursor: pointer; transition: .18s; }
.chat-reply:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.chat-reply.sel { background: var(--blue); color: #fff; border-color: var(--blue); }
.chat-textrow { display: flex; gap: 0.5rem; align-items: center; }
.chat-textrow input { flex: 1; min-width: 0; border: 1.5px solid var(--line); border-radius: var(--radius-pill);
  padding: 0.7rem 1rem; font-family: inherit; font-size: 0.92rem; color: var(--ink); outline: none; }
.chat-textrow input:focus { border-color: var(--blue); }
.chat-send { width: 42px; height: 42px; border-radius: 50%; border: none; background: var(--blue); color: #fff;
  cursor: pointer; display: grid; place-items: center; flex-shrink: 0; }
.chat-send:hover { background: var(--blue-700); }
.chat-send svg { width: 18px; height: 18px; }
.chat-cta { display: flex; width: 100%; }
.bm-msg { max-width: 92%; }
.bm-hint { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.35rem; text-align: center; }
.bm-svg { width: 208px; max-width: 100%; display: block; margin: 0 auto; }
.bm-body { fill: #f5f8fc; stroke: var(--line-2); stroke-width: 1.5; }
.bm-navel { fill: var(--muted); }
.bm-cell rect { fill: rgba(0,74,173,.04); stroke: var(--blue-100); stroke-width: 1; transition: fill .15s, stroke .15s; }
.bm-cell text { fill: var(--muted); font: 700 7.5px var(--font); pointer-events: none; }
.bm-cell { cursor: pointer; }
.bm-cell:hover rect { fill: rgba(0,74,173,.12); stroke: var(--blue); }
.bm-cell.sel rect { fill: var(--blue); stroke: var(--blue); }
.bm-cell.sel text { fill: #fff; }

/* ---- Hero provenance note ---- */
.chat-note { max-width: 540px; margin: 0.9rem auto 0; font-size: 0.84rem; line-height: 1.55; color: var(--muted); }
.chat-note a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ---- Safety / clinical governance ---- */
.safety-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.safety-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1.6rem 1.5rem; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s; }
.safety-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--blue-100); }
.sc-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--blue-50); color: var(--blue); margin-bottom: 0.9rem; }
.sc-ico svg { width: 23px; height: 23px; }
.safety-card h3 { font-size: 1.04rem; font-weight: 700; margin-bottom: 0.35rem; }
.safety-card p { font-size: 0.9rem; line-height: 1.55; color: var(--muted); }
.safety-card a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ---- Chat consent gate ---- */
.chat-consent { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 0.8rem; line-height: 1.5; color: var(--muted); margin-bottom: 0.6rem; cursor: pointer; }
.chat-consent input { margin-top: 0.15rem; width: 16px; height: 16px; accent-color: var(--blue); flex-shrink: 0; }
.chat-consent a { color: var(--blue); font-weight: 600; }
.chat-cta.is-disabled { opacity: 0.5; pointer-events: auto; cursor: not-allowed; filter: grayscale(0.3); }
.chat-consent.shake { animation: shake .4s; }
@keyframes shake { 0%,100% { transform: translateX(0); } 20%,60% { transform: translateX(-5px); } 40%,80% { transform: translateX(5px); } }

/* ===== Ro-style stepped quiz ===== */
.quiz-overlay { position: fixed; inset: 0; z-index: 600; background: #faf9f6; display: flex; flex-direction: column;
  opacity: 0; transition: opacity .25s ease; }
.quiz-overlay[hidden] { display: none; }
.quiz-overlay.open { opacity: 1; }
.quiz-top { display: flex; align-items: center; gap: 0.9rem; padding: 0.9rem 1.1rem; flex-shrink: 0; }
.quiz-back, .quiz-x { width: 38px; height: 38px; border: none; background: transparent; color: var(--ink); cursor: pointer;
  display: grid; place-items: center; border-radius: 50%; flex-shrink: 0; transition: background .2s; }
.quiz-back:hover, .quiz-x:hover { background: rgba(12,26,43,.07); }
.quiz-back svg, .quiz-x svg { width: 21px; height: 21px; }
.quiz-prog { flex: 1; height: 6px; background: var(--blue-50); border-radius: 99px; overflow: hidden; }
.quiz-prog-bar { display: block; height: 100%; width: 6%; background: var(--blue); border-radius: 99px; transition: width .35s cubic-bezier(.4,0,.2,1); }
.quiz-scroll { flex: 1; overflow-y: auto; }
.quiz-main { max-width: 560px; margin: 0 auto; width: 100%; padding: 1.6rem 1.2rem 2rem; }
.quiz-help { color: var(--muted); font-size: 0.98rem; line-height: 1.55; margin-bottom: 1.1rem; }
.quiz-cheer { display: inline-block; margin-bottom: 0.85rem; padding: 0.32rem 0.72rem; border-radius: 999px;
  background: rgba(29, 185, 84, 0.1); color: var(--green-600); font-size: 0.85rem; font-weight: 700; letter-spacing: -0.01em; }
.quiz-done { text-align: center; padding: 1.6rem 0 0.5rem; }
.quiz-check { width: 64px; height: 64px; margin: 0 auto 1.2rem; border-radius: 50%; background: rgba(29, 185, 84, 0.12);
  color: var(--green-600); display: grid; place-items: center; font-size: 2rem; font-weight: 800; animation: msgIn .3s ease; }
.quiz-q { font-size: clamp(1.45rem, 3.4vw, 2rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 1.4rem; color: var(--ink); }
.quiz-opts { display: flex; flex-direction: column; gap: 0.7rem; }
.quiz-opt { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; width: 100%; text-align: left;
  padding: 1.05rem 1.2rem; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink);
  font-family: inherit; font-size: 1.02rem; font-weight: 500; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.quiz-opt:hover { border-color: var(--blue); }
.quiz-opt.sel { border-color: var(--blue); background: var(--blue-50); box-shadow: inset 0 0 0 1px var(--blue); }
.qo-tick { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center;
  color: #fff; flex-shrink: 0; transition: background .15s, border-color .15s; }
.qo-tick svg { width: 13px; height: 13px; opacity: 0; transition: opacity .15s; }
.quiz-opt.sel .qo-tick { background: var(--blue); border-color: var(--blue); }
.quiz-opt.sel .qo-tick svg { opacity: 1; }
.quiz-input { width: 100%; padding: 0.95rem 1.1rem; border: 1.5px solid var(--line); border-radius: 14px; background: #fff;
  font-family: inherit; font-size: 1.05rem; color: var(--ink); }
.quiz-input:focus { outline: none; border-color: var(--blue); }
.quiz-fields { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 0.2rem; }
.quiz-seg { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.quiz-seg button { flex: 1; min-width: 96px; padding: 0.8rem 0.6rem; border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
  font-family: inherit; font-size: 0.94rem; font-weight: 500; color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s; }
.quiz-seg button:hover { border-color: var(--blue); }
.quiz-seg button.sel { border-color: var(--blue); background: var(--blue-50); }
.quiz-alert { margin-top: 1.1rem; background: #fdecea; border: 1px solid #f3c4be; border-left: 3px solid #d8412f; color: #8a2b22;
  border-radius: 12px; padding: 0.9rem 1rem; font-size: 0.9rem; line-height: 1.55; }
.quiz-alert[hidden] { display: none; }
.quiz-summary { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 0.2rem 1rem; margin-bottom: 1.2rem; }
.quiz-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.65rem 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.quiz-row:last-child { border-bottom: none; }
.quiz-row span { color: var(--muted); }
.quiz-row b { color: var(--ink); text-align: right; }
.quiz-advice { display: flex; flex-direction: column; gap: 0.3rem; background: var(--blue-bg); border: 1px solid var(--blue-100); border-left: 3px solid var(--blue);
  border-radius: 12px; padding: 0.9rem 1.1rem; margin-bottom: 1.2rem; font-size: 0.93rem; line-height: 1.55; color: var(--ink); }
.quiz-advice b { color: var(--blue); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.quiz-advice.urgent { background: #fdecea; border-color: #f3c4be; border-left-color: #d8412f; }
.quiz-advice.urgent b { color: #b23a2f; }
.quiz-consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.85rem; line-height: 1.5; color: var(--muted); cursor: pointer; }
.quiz-consent input { margin-top: 0.15rem; width: 17px; height: 17px; accent-color: var(--blue); flex-shrink: 0; }
.quiz-consent a { color: var(--blue); font-weight: 600; }
.quiz-consent.shake { animation: shake .4s; }
.quiz-foot { flex-shrink: 0; padding: 0.9rem 1.2rem calc(0.9rem + env(safe-area-inset-bottom)); background: #faf9f6; border-top: 1px solid var(--line); display: none; }
.quiz-foot.show { display: block; }
.quiz-btn { display: block; width: 100%; max-width: 560px; margin: 0 auto; text-align: center; padding: 1rem 1.2rem; border: none;
  border-radius: 99px; background: var(--blue); color: #fff; font-family: inherit; font-size: 1.02rem; font-weight: 700; cursor: pointer;
  transition: background .2s, opacity .2s, transform .1s; }
.quiz-btn:hover { background: var(--blue-700); }
.quiz-btn:active { transform: scale(.99); }
.quiz-btn.green { background: var(--green); }
.quiz-btn.green:hover { background: var(--green-600); }
.quiz-btn.is-disabled { opacity: .45; pointer-events: auto; cursor: not-allowed; }

/* ---- Location ---- */
.location-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.5rem; align-items: center; }
.location-info h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; margin-bottom: 0.6rem; }
.location-info > p { color: var(--muted); font-size: 1.02rem; line-height: 1.6; margin-bottom: 1.3rem; }
.location-list { list-style: none; display: flex; flex-direction: column; gap: 0.85rem; margin-bottom: 1.6rem; }
.location-list li { display: flex; align-items: center; gap: 0.7rem; font-size: 0.96rem; font-weight: 600; color: var(--ink); }
.li-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--blue-50); color: var(--blue); flex-shrink: 0; }
.li-ico svg { width: 19px; height: 19px; }
.location-map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.location-map iframe { display: block; width: 100%; height: 340px; border: 0; }

/* ---- Legal pages ---- */
.legal-wrap { max-width: 760px; margin: 0 auto; padding: 3rem 1.5rem 4rem; }
.legal-wrap .eyebrow { margin-bottom: 0.8rem; }
.legal-wrap h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: 0.5rem; }
.legal-meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 2.2rem; }
.legal-wrap h2 { font-size: 1.2rem; font-weight: 700; margin: 2rem 0 0.6rem; }
.legal-wrap p, .legal-wrap li { color: #33475b; font-size: 0.96rem; line-height: 1.7; }
.legal-wrap ul { padding-left: 1.2rem; margin: 0.4rem 0 0.8rem; display: flex; flex-direction: column; gap: 0.3rem; }
.legal-wrap a { color: var(--blue); font-weight: 600; text-decoration: underline; }
.legal-callout { background: var(--blue-bg); border-left: 3px solid var(--blue); border-radius: 0 var(--radius-md) var(--radius-md) 0; padding: 1rem 1.2rem; margin: 1.4rem 0; font-size: 0.92rem; line-height: 1.6; color: var(--ink); }

/* ===================== Footer ===================== */
.footer { background: #0c1a2b; color: #9fb0c4; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 3.5rem 1.5rem 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer-compliance { max-width: 70ch; margin: 0 auto 1rem; font-size: 0.76rem; line-height: 1.6; color: #7e90a6; }
.footer-bottom a { color: #9fb0c4; text-decoration: underline; }
.footer-bottom a:hover { color: #fff; }
.footer-brand img { height: 76px; width: auto; margin-bottom: 0.8rem; }
.footer-brand p { font-size: 0.88rem; line-height: 1.6; max-width: 30ch; }
.footer h4 { color: #fff; font-size: 0.9rem; font-weight: 600; margin-bottom: 1rem; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer ul li, .footer ul li a { font-size: 0.86rem; color: #9fb0c4; transition: color .2s; }
.footer ul li a:hover { color: #fff; }
.footer-bottom { text-align: center; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.08); font-size: 0.8rem; color: #6a7d93; }

/* ---- Floating WhatsApp ---- */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 300; width: 56px; height: 56px;
  border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.45); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; }

/* ---- Reveal ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ===================== Responsive ===================== */
@media (max-width: 900px) {
  .bigcards { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .safety-grid { grid-template-columns: repeat(2, 1fr); }
  .location-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0.4rem; background: #fff; padding: 1rem 1.25rem 1.25rem; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md); display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.5rem 0; }
  .nav-links .btn { justify-content: center; }
  .nav-toggle { display: flex; }
  .section { padding: 3.2rem 0; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .tile { padding: 1.2rem; min-height: 130px; }
  .tile-title { font-size: 0.95rem; }
  .why-grid { grid-template-columns: 1fr; }
  .safety-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.8rem; }
  .trust { gap: 1.4rem; }
  .avail { justify-content: center; }
}

/* ---- Page transitions ---- */
body { transition: opacity .3s ease-in-out; opacity: 1; }
body.page-enter, body.page-transition { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* nav links with arrows (MedStake →, WeightHabits ↗) */
.nav-links a.nav-ext { display: inline-flex; align-items: center; gap: 0.25rem; }
.nav-ext svg { width: 13px; height: 13px; opacity: .7; transition: transform .2s, opacity .2s; }
.nav-ext:hover svg { opacity: 1; transform: translate(1px, -1px); }

/* ===== Chat redesign: clean white surface, soft bubbles, docked composer, thinking state ===== */
.chat-win { border-radius: 20px 20px 0 0; box-shadow: 0 24px 64px rgba(12,26,43,.28); }
@media (min-width: 640px) { .chat-win { border-radius: 20px; height: 78vh; max-height: 720px; } }
.chat-head { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); padding: 0.9rem 1rem 0.9rem 1.1rem; }
.chat-ava { background: var(--blue); color: #fff; width: 36px; height: 36px; }
.chat-ava svg { width: 20px; height: 20px; }
.chat-id b { color: var(--ink); font-size: 0.95rem; }
.chat-id span { color: var(--muted); font-size: 0.76rem; }
.chat-close { background: #f1f4f7; color: var(--muted); font-size: 1.2rem; }
.chat-close:hover { background: #e4e9ee; color: var(--ink); }

.chat-body { background: #fff; padding: 1.2rem 1rem; gap: 0.4rem; scroll-behavior: smooth; }
.msg { font-size: 0.95rem; line-height: 1.5; padding: 0.65rem 0.95rem; border-radius: 18px; max-width: 82%;
  animation: msgIn2 .28s cubic-bezier(.2,.7,.2,1); }
@keyframes msgIn2 { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.msg.bot { background: #f1f4f7; border: 0; border-bottom-left-radius: 6px; color: var(--ink); }
.msg.user { background: var(--blue); border-bottom-right-radius: 6px; margin-top: 0.35rem; margin-bottom: 0.35rem; }
.msg.alert { background: #fdeceb; border: 0; border-left: 3px solid #c0392b; border-radius: 6px 18px 18px 6px; }

/* typing + thinking */
.msg.typing, .msg.thinking { display: inline-flex; align-items: center; gap: 0.65rem; }
.msg.typing i, .msg.thinking .dots i { width: 7px; height: 7px; border-radius: 50%; background: #7d8a98; display: inline-block; animation: bounce 1.2s infinite ease-in-out; }
.msg.thinking .dots { display: inline-flex; gap: 4px; }
.msg.typing i:nth-child(2), .msg.thinking .dots i:nth-child(2) { animation-delay: .15s; }
.msg.typing i:nth-child(3), .msg.thinking .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
.thinking-text { font-size: 0.88rem; color: var(--muted); }
.thinking-text.swap { animation: swapIn .35s ease; }
@keyframes swapIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* composer */
.chat-input { border-top: 1px solid var(--line); padding: 0.75rem 0.85rem calc(0.75rem + env(safe-area-inset-bottom)); background: #fff; transition: opacity .2s; }
.chat-input:empty { display: none; }
.chat-input.busy { opacity: .45; pointer-events: none; }
.chat-replies { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
.chat-replies::-webkit-scrollbar { display: none; }
.chat-reply { flex-shrink: 0; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 500; padding: 0.5rem 0.95rem; }
.chat-reply:hover { background: var(--blue-50); border-color: var(--blue); color: var(--blue); }
.chat-reply.sel { background: var(--blue); border-color: var(--blue); color: #fff; }
.chat-textrow { background: #f1f4f7; border-radius: 999px; padding: 0.3rem 0.3rem 0.3rem 1rem; gap: 0.4rem; }
.chat-textrow input { border: 0; background: transparent; padding: 0.55rem 0; font-size: 16px; outline: none; }
.chat-textrow:focus-within { box-shadow: 0 0 0 2px var(--blue); }
.chat-send { width: 38px; height: 38px; flex-shrink: 0; }
@media (prefers-reduced-motion: reduce) { .msg, .msg.typing i, .msg.thinking .dots i, .thinking-text.swap { animation: none !important; } }
/* chat header: clinic logo instead of a generic icon */
.chat-ava { background: var(--blue); overflow: hidden; padding: 0; }
.chat-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===== Chat, premium pass: progress, answer cards, avatars, adaptive height ===== */
.chat-win { height: auto; min-height: min(460px, 82vh); max-height: 88vh; }
@media (min-width: 640px) { .chat-win { height: auto; max-height: min(720px, 82vh); } }
.chat-body { flex: 1 1 auto; min-height: 0; }

/* progress strip under the header */
.chat-progress { height: 3px; background: #eef1f4; flex-shrink: 0; }
.chat-progress[hidden] { display: none; }
.chat-progress i { display: block; height: 100%; width: 4%; background: var(--blue); border-radius: 0 3px 3px 0; transition: width .45s cubic-bezier(.2,.7,.2,1); }

/* bot avatar on the first bubble of each bot group */
.chat-body .msg.bot { margin-left: 36px; position: relative; }
.chat-body .msg.bot.chat-cheer { margin-left: 0; }
.chat-body > .msg.bot:first-child::before,
.chat-body .msg.user + .msg.bot::before {
  content: ""; position: absolute; left: -36px; top: 2px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--blue) url("assets/favicon-clinic.png") center / cover no-repeat; }
.chat-body .msg.user + .msg.bot.chat-cheer::before { display: none; }
.chat-body .msg.bot.chat-cheer + .msg.bot::before { content: ""; position: absolute; left: -36px; top: 2px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--blue) url("assets/favicon-clinic.png") center / cover no-repeat; }

/* answers as full-width tappable cards (Ada / Babylon style) */
.chat-replies.stack { flex-direction: column; flex-wrap: nowrap; overflow-x: visible; overflow-y: auto; max-height: 42vh; gap: 0.45rem; padding: 2px; }
.chat-replies.stack .chat-reply { width: 100%; text-align: left; border-radius: 14px; padding: 0.8rem 1rem 0.8rem 2.6rem; position: relative;
  font-size: 0.95rem; font-weight: 500; line-height: 1.35; background: #fff; border: 1.5px solid var(--line); color: var(--ink); transition: border-color .15s, background .15s; }
.chat-replies.stack .chat-reply::before { content: ""; position: absolute; left: 0.95rem; top: 50%; width: 18px; height: 18px; margin-top: -9px;
  border-radius: 50%; border: 2px solid #b7c2cd; background: #fff; transition: border-color .15s, background .15s; }
.chat-replies.stack.multi .chat-reply::before { border-radius: 5px; }
.chat-replies.stack .chat-reply:hover { border-color: var(--blue); background: var(--blue-50); color: var(--ink); }
.chat-replies.stack .chat-reply.sel { border-color: var(--blue); background: var(--blue-50); color: var(--ink); }
.chat-replies.stack .chat-reply.sel::before { border-color: var(--blue); background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat; }
.chat-continue { width: 100%; margin-top: 0.6rem; height: 48px; border: 0; border-radius: 14px; background: var(--blue); color: #fff;
  font: inherit; font-weight: 600; font-size: 0.98rem; cursor: pointer; transition: background .15s, transform .1s; }
.chat-continue:hover { background: var(--blue-700, #003b8a); }
.chat-continue:active { transform: scale(.99); }

/* calmer final actions: slim primary button + quiet text link */
.chat-input .chat-cta { min-height: 48px; border-radius: 14px; font-size: 0.98rem; box-shadow: none; }
.chat-input .chat-reply[data-close] { border: 0; background: transparent; color: var(--muted); font-weight: 500; padding: 0.5rem; margin-top: 0.25rem !important; }
.chat-input .chat-reply[data-close]:hover { color: var(--ink); background: transparent; text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .chat-progress i { transition: none; } }
/* consent line reads as one sentence (links were becoming separate flex columns) */
.chat-consent { display: block; position: relative; padding-left: 1.75rem; font-size: 0.82rem; line-height: 1.5; }
.chat-consent input[type="checkbox"] { position: absolute; left: 0; top: 0.15rem; width: 18px; height: 18px; margin: 0; accent-color: var(--blue); }

/* ===== Service pages (/weight-loss-harare, /gp-chisipite, ...) — Sesame-style ===== */
.svc-hero { padding: 1.5rem 0 4rem; }
.crumbs { display: flex; gap: .5rem; font-size: .85rem; color: var(--muted); margin-bottom: 2rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.svc-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3.5rem; align-items: center; }
.svc-rating { display: inline-flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--text); text-decoration: none; margin-bottom: 1.1rem; }
.svc-rating:hover span { text-decoration: underline; }
.svc-stars { color: #f5a623; letter-spacing: 1px; }
.svc-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); font-weight: 800; letter-spacing: -0.035em; margin-bottom: 1rem; text-wrap: balance; }
.svc-hero .lead { font-size: clamp(1.02rem, 1.8vw, 1.15rem); color: var(--text); max-width: 46ch; margin-bottom: 1.5rem; line-height: 1.6; }
.svc-facts { list-style: none; padding: 0; margin: 0 0 1.9rem; display: grid; gap: .7rem; }
.svc-facts li { display: flex; align-items: center; gap: .7rem; font-size: .98rem; color: var(--ink); }
.svc-facts svg { width: 20px; height: 20px; color: var(--blue); flex-shrink: 0; }
.svc-actions { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.svc-btn-outline { background: #fff; color: var(--blue); border: 1.5px solid var(--blue); }
.svc-btn-outline:hover { background: var(--blue-50); }
.svc-media img, .svc-media video { display: block; width: 100%; border-radius: var(--radius-lg); background: #dfe7f3; }
.svc-media img { height: auto; aspect-ratio: 1 / 1; object-fit: cover; max-height: 520px; }
.svc-media video { max-height: 540px; width: auto; max-width: 100%; margin: 0 auto; aspect-ratio: 9 / 16; object-fit: cover; }

.svc-know { background: var(--tile); padding: 4.5rem 0; }
.svc-know-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3.5rem; align-items: center; }
.svc-know-grid > img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
.svc-kicker { display: block; font-size: .85rem; color: var(--muted); margin-bottom: .5rem; }
.svc-know h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); font-weight: 800; letter-spacing: -0.025em; margin-bottom: 1rem; }
.svc-know p { color: var(--text); line-height: 1.6; margin-bottom: 1.1rem; }
.svc-arrows { list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem; }
.svc-arrows li { display: flex; gap: .7rem; align-items: flex-start; color: var(--ink); line-height: 1.5; }
.svc-arrows svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: .15rem; color: var(--blue); }

.svc-band { padding: 4.5rem 0 0; }
.svc-band:last-of-type { padding-bottom: 4.5rem; }
.svc-h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); font-weight: 800; letter-spacing: -0.025em; margin-bottom: 1.6rem; }
.svc-h2.center { text-align: center; }
.svc-h3 { font-size: 1.15rem; font-weight: 700; margin: 3.5rem 0 1rem; }
.svc-center { display: flex; justify-content: center; margin-top: 2rem; }
.svc-cta { min-width: 260px; justify-content: center; }

.svc-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.svc-info-card { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1.6rem 1.5rem 1.7rem; }
.svc-ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--blue-50); color: var(--blue); margin-bottom: 1.1rem; }
.svc-ico svg { width: 22px; height: 22px; }
.svc-info-card h3 { font-size: 1.12rem; margin-bottom: .6rem; }
.svc-info-card p { color: var(--text); line-height: 1.6; font-size: .96rem; }

.svc-incl { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.svc-incl li { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1.3rem 1.3rem 1.4rem; }
.svc-incl-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue-50); color: var(--blue); font-weight: 700; font-size: .85rem; margin-bottom: .8rem; }
.svc-incl b { display: block; color: var(--ink); margin-bottom: .3rem; }
.svc-incl p { color: var(--text); font-size: .94rem; line-height: 1.55; }

.svc-steps3 { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.svc-steps3 li { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1.4rem 1.4rem 1.5rem; }
.svc-step-n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; font-size: .9rem; margin-bottom: .9rem; }
.svc-steps3 b { display: block; font-size: 1.05rem; color: var(--ink); margin-bottom: .35rem; }
.svc-steps3 p { color: var(--text); font-size: .95rem; line-height: 1.55; }

.svc-why { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.svc-why-tile { border-radius: var(--radius-md); padding: 1.9rem 1.6rem; text-align: center; }
.svc-why-tile svg { width: 30px; height: 30px; color: var(--ink); margin-bottom: .8rem; }
.svc-why-tile b { display: block; font-size: 1.15rem; color: var(--ink); margin-bottom: .35rem; }
.svc-why-tile p { color: var(--text); font-size: .94rem; }
.svc-why-tile.t1 { background: #eaf1fc; }
.svc-why-tile.t2 { background: #e8f6ee; }
.svc-why-tile.t3 { background: #f1edfb; }
.svc-why-tile.t4 { background: #fdf3e3; }

.svc-reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.svc-review { margin: 0; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1.4rem 1.4rem 1.3rem; display: flex; flex-direction: column; gap: .75rem; }
.svc-review .svc-stars { font-size: 1.15rem; }
.svc-review blockquote { margin: 0; color: var(--ink); line-height: 1.55; flex: 1; }
.svc-review figcaption { font-size: .85rem; color: var(--muted); }
.svc-textlink { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; color: var(--blue); text-decoration: none; }
.svc-textlink:hover { text-decoration: underline; }
.svc-textlink svg, .svc-card svg { width: 16px; height: 16px; }

.svc-faq-wrap { max-width: 820px; }
.svc-faq details { border-bottom: 1px solid var(--line); }
.svc-faq summary { list-style: none; cursor: pointer; padding: 1.15rem 2.2rem 1.15rem 0; font-weight: 600; color: var(--ink); position: relative; }
.svc-faq summary::-webkit-details-marker { display: none; }
.svc-faq summary::after { content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--muted); }
.svc-faq details[open] summary::after { content: "–"; }
.svc-faq details p { margin: 0 0 1.2rem; color: var(--text); line-height: 1.65; }

.svc-final { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; background: var(--blue); color: #fff; border-radius: var(--radius-lg); padding: 2.2rem 2.4rem; }
.svc-final h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.8rem); font-weight: 800; margin-bottom: .4rem; }
.svc-final p { color: rgba(255,255,255,.85); font-size: .95rem; }
.svc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.svc-card { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius-md); text-decoration: none; color: var(--ink); transition: border-color .2s, background .2s; }
.svc-card b { font-size: .98rem; }
.svc-card svg { color: var(--blue); flex-shrink: 0; }
.svc-card:hover { border-color: var(--blue-100); background: var(--blue-50); }

@media (max-width: 900px) {
  .svc-hero-grid, .svc-know-grid { grid-template-columns: 1fr; gap: 2rem; }
  .svc-media { order: -1; }
  .svc-media img { aspect-ratio: 4 / 3; }
  .svc-info, .svc-incl, .svc-steps3, .svc-reviews, .svc-cards { grid-template-columns: 1fr; }
  .svc-why { grid-template-columns: 1fr; }
  .svc-know, .svc-band { padding-top: 3.2rem; }
}
@media (max-width: 520px) {
  .svc-actions .btn { width: 100%; justify-content: center; }
  .svc-cta { min-width: 0; width: 100%; }
  .svc-final { padding: 1.8rem 1.4rem; }
  .svc-final-actions, .svc-final-actions .btn { width: 100%; justify-content: center; }
}

/* ===== Service pages: stat panel in the "what to know" band ===== */
.svc-statcard { background: var(--blue); color: #fff; border-radius: var(--radius-lg); padding: 2.6rem 2.4rem; display: grid; gap: 1.6rem; }
.svc-statcard .big { display: block; font-size: clamp(3rem, 7vw, 4.6rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.svc-statcard .lbl { display: block; margin-top: .5rem; color: rgba(255,255,255,.85); }
.svc-statcard .row { border-top: 1px solid rgba(255,255,255,.2); padding-top: 1.4rem; }
.svc-statcard .src { font-size: .78rem; color: rgba(255,255,255,.65); }

/* ===== Treatment pages: questionnaire preview card, warning panel, note panel ===== */
.svc-qcard { display: flex; flex-direction: column; gap: .7rem; max-width: 460px; margin: 0 auto; padding: 1.6rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 24px 48px -24px rgba(12,26,43,.25); text-decoration: none; color: var(--ink); transition: transform .25s, box-shadow .25s; }
.svc-qcard:hover { transform: translateY(-3px); box-shadow: 0 30px 56px -24px rgba(12,26,43,.32); }
.svc-qcard-top { display: flex; align-items: center; gap: .6rem; font-size: .85rem; color: var(--muted); margin-bottom: .3rem; }
.svc-qcard-top img { border-radius: 50%; }
.svc-qcard-top b { color: var(--ink); }
.svc-qcard-q { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; margin-bottom: .3rem; }
.svc-qcard-opt { display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: 12px; font-size: .95rem; }
.svc-qcard-opt i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #c5cfdc; flex-shrink: 0; }
.svc-qcard:hover .svc-qcard-opt:first-of-type { border-color: var(--blue); background: var(--blue-50); }
.svc-qcard-go { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; margin-top: .5rem; padding: .85rem; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 700; }
.svc-qcard-go svg { width: 16px; height: 16px; }

.svc-alertcard { background: #fff; border: 1px solid #f3c7c0; border-left: 5px solid #d64532; border-radius: var(--radius-lg); padding: 2rem 2rem 2.1rem; }
.svc-alertcard > b { display: block; font-size: 1.2rem; color: var(--ink); margin-bottom: .9rem; }
.svc-alertcard ul { margin: 0 0 1rem; padding-left: 1.2rem; display: grid; gap: .45rem; color: var(--ink); }
.svc-alertcard p { color: var(--text); margin-bottom: 1.2rem; }
.svc-note { align-content: center; min-height: 260px; }
.svc-note p { font-size: clamp(1.2rem, 2.2vw, 1.5rem); font-weight: 600; line-height: 1.45; color: #fff; margin: 0; }
.svc-media .svc-qcard-top img { width: 28px; height: 28px; aspect-ratio: auto; border-radius: 50%; background: none; }

/* Home: focus service links under the featured cards */
.focus-links { grid-template-columns: repeat(4, 1fr); margin-top: 1rem; }
@media (max-width: 900px) { .focus-links { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .focus-links { grid-template-columns: 1fr; } }

/* Medical reviewer line, care team, extra lists (service pages) */
.svc-reviewed { margin: .9rem 0 0; font-size: .86rem; color: var(--text); }
.svc-reviewed b { color: var(--ink); font-weight: 600; }
.svc-sub { color: var(--text); margin: -.4rem 0 1.4rem; max-width: 62ch; }
.svc-team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.svc-team-card { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1.4rem; background: #fff; display: flex; flex-direction: column; gap: .25rem; }
.svc-team-ava { width: 48px; height: 48px; border-radius: 50%; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; font-weight: 700; margin-bottom: .6rem; }
.svc-team-card b { font-size: 1.05rem; color: var(--ink); }
.svc-team-role { color: var(--blue); font-weight: 600; font-size: .92rem; }
.svc-team-cred { color: var(--text); font-size: .84rem; }
.svc-team-card p { margin: .6rem 0 0; color: var(--text); font-size: .94rem; }
.svc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.svc-list li { border-left: 3px solid var(--blue); padding: .2rem 0 .2rem 1rem; }
.svc-list li b { color: var(--ink); }
.svc-list li p { margin: .25rem 0 0; color: var(--text); }
@media (max-width: 860px) { .svc-team { grid-template-columns: 1fr; } }

/* Guides */
.guide { padding: 2.2rem 0 3rem; }
.guide-wrap { max-width: 780px; }
.guide h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.15; margin: .6rem 0 .8rem; color: var(--ink); }
.guide .lead { font-size: 1.12rem; color: var(--text); }
.guide-body { margin-top: 1.8rem; }
.guide-body h2 { font-size: 1.4rem; margin: 2rem 0 .6rem; color: var(--ink); }
.guide-body p, .guide-body li { font-size: 1.04rem; line-height: 1.7; color: var(--text); }
.guide-body ul { padding-left: 1.2rem; display: grid; gap: .35rem; }
.guide-note { font-size: .9rem !important; color: var(--text); background: var(--blue-50); border-radius: var(--radius-md); padding: .8rem 1rem; margin-top: 1rem; }
.guide-table { overflow-x: auto; margin: 1rem 0; border: 1px solid var(--line); border-radius: var(--radius-md); }
.guide-table table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 520px; }
.guide-table th, .guide-table td { text-align: left; padding: .75rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.guide-table th { background: var(--blue-50); color: var(--ink); font-weight: 700; }
.guide-table tr:last-child td { border-bottom: 0; }
.guide-table td:first-child { font-weight: 600; color: var(--ink); }
.guide-cta { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; margin: 2.4rem 0; padding: 1.5rem; border-radius: var(--radius-md); background: var(--blue-50); border: 1px solid var(--blue-100); }
.guide-cta p { margin: .3rem 0 0; color: var(--text); }
.guide .svc-h2, .guide .svc-h3 { margin-top: 2rem; }
.guide-hero { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-md); margin: 1.4rem 0 .4rem; background: var(--blue-50); }
.guide-table td:first-child { min-width: 9rem; }

/* Guides: at-a-glance box, figures, sources, index */
.guide-keys { background: var(--blue-50); border: 1px solid var(--blue-100); border-left: 4px solid var(--blue); border-radius: var(--radius-md); padding: 1.1rem 1.3rem; margin: 1.2rem 0 .5rem; }
.guide-keys b { display: block; color: var(--ink); margin-bottom: .4rem; font-size: 1.05rem; }
.guide-keys ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .35rem; }
.guide-body h3 { font-size: 1.15rem; margin: 1.6rem 0 .4rem; color: var(--ink); }
.guide-fig { margin: 1.6rem 0; }
.guide-fig img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-md); display: block; background: var(--blue-50); }
.guide-fig figcaption { font-size: .88rem; color: var(--text); margin-top: .45rem; }
.guide-refs { margin-top: 2.2rem; }
.guide-refs p { font-size: .92rem; color: var(--text); }
.guide-refs ol { padding-left: 1.2rem; display: grid; gap: .5rem; font-size: .9rem; color: var(--text); }
.guide-refs a { color: var(--blue); white-space: nowrap; }
.gi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 1.6rem; }
.gi-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; text-decoration: none; color: var(--ink); background: #fff; transition: border-color .2s, transform .2s; }
.gi-card:hover { border-color: var(--blue-100); transform: translateY(-3px); }
.gi-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.gi-body { padding: 1rem 1.1rem 1.2rem; display: grid; gap: .4rem; }
.gi-body b { font-size: 1.05rem; line-height: 1.3; }
.gi-body span { font-size: .9rem; color: var(--text); line-height: 1.5; }
@media (max-width: 900px) { .gi-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .gi-grid { grid-template-columns: 1fr; } }

/* Guide charts and illustrations */
.ch { margin: 1.8rem 0; padding: 1.2rem 1.2rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }
.ch figcaption { display: grid; gap: .2rem; margin-bottom: .8rem; }
.ch figcaption b { color: var(--ink); font-size: 1.02rem; }
.ch figcaption span { color: var(--text); font-size: .88rem; }
.ch svg { width: 100%; height: auto; display: block; overflow: visible; }
.ch-lab { font: 500 13px Inter, system-ui, sans-serif; fill: #3d4a5c; }
.ch-val { font: 700 13px Inter, system-ui, sans-serif; fill: #0c1a2b; }
.ch-day { font: 700 13px Inter, system-ui, sans-serif; fill: #0c1a2b; }
.ch-bar:hover path { opacity: .85; }
.ch-legend { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin: 0 0 .7rem; font-size: .86rem; color: var(--text); }
.ch-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.ch-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; box-sizing: border-box; }
.ch-src { font-size: .8rem !important; color: var(--text); margin: .6rem 0 0; line-height: 1.5 !important; }
.ch-table { margin-top: .5rem; font-size: .86rem; color: var(--text); }
.ch-table summary { cursor: pointer; color: var(--blue); }
.ch-table table { border-collapse: collapse; margin-top: .4rem; }
.ch-table td { padding: .25rem .9rem .25rem 0; border-bottom: 1px solid var(--line); }
.ch-scroll { overflow-x: auto; }
.ch-scroll svg { min-width: 560px; }
.segbar { display: flex; gap: 2px; height: 44px; border-radius: 8px; overflow: hidden; }
.segbar .seg { display: grid; place-items: center; font: 700 14px Inter, system-ui, sans-serif; min-width: 44px; }
.pl-wrap { display: grid; grid-template-columns: 240px 1fr; gap: 1.2rem; align-items: center; }
.pl-n { font: 800 20px Inter, system-ui, sans-serif; fill: #0c1a2b; }
.pl-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.pl-list li { display: grid; grid-template-columns: 32px 1fr; column-gap: .7rem; }
.pl-list li > span:last-child { grid-column: 2; color: var(--text); font-size: .94rem; }
.pl-dot { grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 700; }
@media (max-width: 600px) { .pl-wrap { grid-template-columns: 1fr; } .pl-wrap svg { max-width: 240px; margin: 0 auto; } }

/* Shorter photos (guides index + guide hero) */
.gi-card img { aspect-ratio: 5 / 2; height: auto; }
.guide-hero { aspect-ratio: 12 / 5; }
.guide-fig img { aspect-ratio: 2 / 1; }

/* Weight-loss check */
.focus-links { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1000px) { .focus-links { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .focus-links { grid-template-columns: 1fr; } }
.svc-checklink { display: inline-flex; margin-top: .9rem; }
.gi-check { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.4rem; padding: 1.1rem 1.3rem; border-radius: var(--radius-md); background: var(--blue); color: #fff; text-decoration: none; }
.gi-check b { font-size: 1.1rem; display: block; }
.gi-check span { opacity: .9; font-size: .92rem; }
.gi-check svg { width: 22px; height: 22px; flex-shrink: 0; }
.wlc { display: grid; gap: 1rem; margin-top: 1.6rem; padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }
.wlc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.wlc label, .wlc legend { font-weight: 600; color: var(--ink); font-size: .95rem; }
.wlc label > span, .wlc legend > span { font-weight: 400; color: var(--text); font-size: .85rem; margin-left: .3rem; }
.wlc input[type=number], .wlc select { display: block; width: 100%; margin-top: .4rem; padding: .75rem .85rem; font: inherit; font-size: 16px; border: 1px solid #cfd7e2; border-radius: 10px; background: #fff; color: var(--ink); box-sizing: border-box; }
.wlc input:focus, .wlc select:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.wlc fieldset { border: 0; padding: 0; margin: 0; }
.wlc-chks { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem 1rem; margin-top: .5rem; }
.wlc-chk { font-weight: 400 !important; display: flex; gap: .5rem; align-items: center; font-size: .94rem !important; }
.wlc-chk input { width: 18px; height: 18px; accent-color: var(--blue); }
.wlc-hint { font-size: .86rem; color: var(--text); margin: 0; }
.wlc-err { color: #b42318; font-weight: 600; margin: 0; }
.wlc .btn { justify-self: start; }
.wlc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.4rem; }
.wlc-card { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1.2rem; background: #fff; display: grid; gap: .35rem; align-content: start; }
.wlc-k { font-size: .86rem; color: var(--text); }
.wlc-big { font-size: 1.7rem; font-weight: 800; color: var(--ink); line-height: 1.15; }
.wlc-cat { justify-self: start; font-weight: 700; font-size: .85rem; padding: .2rem .6rem; border-radius: 999px; }
.wlc-cat.h { background: #e3f4e8; color: #1f6b37; }
.wlc-cat.o { background: #fff1dc; color: #8a4b08; }
.wlc-cat.b, .wlc-cat.u { background: #fde7e5; color: #9b2218; }
.wlc-meter { position: relative; height: 10px; border-radius: 999px; margin-top: .6rem; background: linear-gradient(90deg, #6cc287 0 33%, #f2b155 33% 50%, #e5776b 50% 100%); }
.wlc-meter i { position: absolute; top: -5px; width: 4px; height: 20px; background: var(--ink); border-radius: 2px; transform: translateX(-2px); }
.wlc-scale { display: flex; justify-content: space-between; font-size: .78rem; color: var(--text); }
.wlc-note { font-size: .86rem; color: var(--text); margin: .2rem 0 0; }
.wlc-cta { grid-column: 1 / -1; background: var(--blue-50); border-color: var(--blue-100); }
.wlc-cta b { font-size: 1.15rem; color: var(--ink); }
.wlc-cta p { margin: 0; color: var(--text); }
.wlc-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: .6rem; }
@media (max-width: 600px) { .wlc-row, .wlc-chks, .wlc-out { grid-template-columns: 1fr; } }

/* Step-by-step weight-loss check */
.wlc2 { margin-top: 1.4rem; padding: 1.4rem; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgba(12,26,43,.06); }
.wlc-top { display: flex; justify-content: space-between; align-items: center; min-height: 28px; font-size: .88rem; color: var(--text); }
.wlc-back { background: none; border: 0; color: var(--blue); font: inherit; font-weight: 600; cursor: pointer; padding: 0; }
.wlc-prog { height: 6px; border-radius: 999px; background: var(--blue-50); overflow: hidden; margin: .5rem 0 1.2rem; }
.wlc-prog i { display: block; height: 100%; width: 0; background: var(--blue); border-radius: 999px; transition: width .35s ease; }
.st h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); margin: .2rem 0 .8rem; color: var(--ink); }
.st { animation: stIn .35s ease; }
@keyframes stIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.st-sub { color: var(--text); margin: -.3rem 0 1rem; }
.st-next { margin-top: 1.2rem; }
.st-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 1.2rem; }
.st-skip { background: none; border: 0; color: var(--text); text-decoration: underline; font: inherit; cursor: pointer; padding: .4rem 0; }
.rng { display: grid; gap: .6rem; }
.rng-v { font-size: 2.6rem; font-weight: 800; color: var(--blue); line-height: 1; }
.rng input[type=range] { width: 100%; accent-color: var(--blue); height: 28px; }
.rng-ends { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; color: var(--text); gap: .5rem; }
.rng-ends label { display: flex; align-items: center; gap: .4rem; }
.rng-ends input { width: 84px; padding: .4rem .5rem; font: inherit; font-size: 16px; border: 1px solid #cfd7e2; border-radius: 8px; }
.tiles-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .7rem; }
.tile-pick { display: flex; align-items: center; gap: .7rem; text-align: left; padding: .95rem 1rem; border: 2px solid var(--line); border-radius: 14px; background: #fff; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.tile-pick:hover { border-color: var(--blue-100); transform: translateY(-1px); }
.tile-pick.on { border-color: var(--blue); background: var(--blue-50); }
.tp-e { font-size: 1.5rem; line-height: 1; }
.st-age { display: grid; gap: .4rem; font-weight: 600; color: var(--ink); max-width: 220px; margin-bottom: 1.2rem; }
.st-age input { padding: .7rem .8rem; font: inherit; font-size: 16px; border: 1px solid #cfd7e2; border-radius: 10px; }
.wst-wrap { display: grid; grid-template-columns: 220px 1fr; gap: 1.2rem; align-items: center; }
.wst { width: 100%; height: auto; }
.wst-t { font: 600 12px Inter, system-ui, sans-serif; fill: #5a3d22; }
.wst-b { fill: #1d5bbf; font-weight: 800; font-size: 13px; }
.wst-how { color: var(--text); font-size: .95rem; margin: 0 0 1rem; }
.wlc-res { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.wlc-hero { grid-column: 1 / -1; }
.wlc-hero .wlc-big { font-size: 3rem; color: var(--blue); }
.wlc-mid { font-size: 1.35rem; font-weight: 800; color: var(--ink); }
.wlc-ico { font-size: 1.6rem; }
.wlc-meter i { left: 0; transition: left 1s cubic-bezier(.2,.8,.2,1); }
.wlc-scale span { flex: 1; text-align: center; }
@media (max-width: 600px) { .wst-wrap, .wlc-res { grid-template-columns: 1fr; } .wst { max-width: 200px; margin: 0 auto; } .tiles-pick { grid-template-columns: 1fr; } }

/* Quizzes */
.qz-tag { display: inline-block; margin-top: 1rem; font-size: .85rem; font-weight: 700; color: var(--blue); background: var(--blue-50); padding: .3rem .7rem; border-radius: 999px; }
.qz-promise { font-size: .95rem; color: var(--ink); background: #fff8e8; border: 1px solid #f3dfae; border-radius: 12px; padding: .7rem .9rem; }
.qz-start { margin-top: .6rem; font-size: 1.05rem; padding: .9rem 1.6rem; }
.qz-play { display: none; margin-top: 1rem; padding: 1.4rem; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgba(12,26,43,.06); }
.qz.on .qz-intro { display: none; }
.qz.on .qz-play { display: block; }
.qz-card { position: relative; }
.qz-card.pop { animation: stIn .35s ease; }
.qz-q { font-size: clamp(1.25rem, 3vw, 1.6rem); color: var(--ink); margin: .2rem 0 1rem; line-height: 1.3; }
.qz-opts { display: grid; gap: .6rem; }
.qz-opts.tf { grid-template-columns: 1fr 1fr; }
.qz-o { display: flex; align-items: center; gap: .8rem; text-align: left; padding: .9rem 1rem; border: 2px solid var(--line); border-radius: 14px; background: #fff; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.qz-o:hover:not(:disabled) { border-color: var(--blue-100); transform: translateY(-1px); }
.qz-l { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); font-weight: 800; font-size: .9rem; }
.qz-o.right { border-color: #3f9b5a; background: #e9f7ee; }
.qz-o.right .qz-l { background: #3f9b5a; color: #fff; }
.qz-o.wrong { border-color: #d9534f; background: #fdecea; animation: shake .35s; }
.qz-o.wrong .qz-l { background: #d9534f; color: #fff; }
.qz-o:disabled { cursor: default; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.qz-fb { margin-top: 1rem; padding: 1rem 1.1rem; border-radius: 14px; background: var(--blue-50); animation: stIn .3s ease; }
.qz-fb b { font-size: 1.1rem; }
.qz-fb b.ok { color: #1f6b37; }
.qz-fb b.no { color: #8a4b08; }
.qz-fb p { margin: .4rem 0; color: var(--ink); }
.qz-src { font-size: .85rem; color: var(--text) !important; }
.qz-src a { color: var(--blue); }
.qz-next { margin-top: .5rem; }
.qz-done { text-align: center; padding: .6rem 0; }
.qz-badge { font-size: 3.4rem; animation: stIn .5s ease; }
.qz-score { font-size: 3.4rem; font-weight: 800; color: var(--blue); line-height: 1; }
.qz-score span { font-size: 1.6rem; color: var(--text); }
.qz-done h2 { margin: .5rem 0 .2rem; color: var(--ink); }
.qz-done .wlc-actions { justify-content: center; }
.qz-burst { position: absolute; left: 50%; top: 30%; pointer-events: none; }
.qz-burst i { position: absolute; width: 9px; height: 9px; border-radius: 2px; animation: burst 1.2s ease-out forwards; }
@keyframes burst { to { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .st, .qz-card.pop, .qz-fb, .qz-o.wrong, .qz-badge, .qz-burst { animation: none !important; } }
@media (max-width: 560px) { .qz-opts.tf { grid-template-columns: 1fr; } }
/* Guides index: quizzes are guide-sized cards with a label; chips show all, guides or quizzes */
.gi-card { position: relative; }
.gi-card[hidden] { display: none; }
.gi-tag { position: absolute; top: .75rem; left: .75rem; padding: .3rem .7rem; border-radius: var(--radius-pill); background: #fff8e8; color: #8a4b08; font-size: .78rem; font-weight: 700; box-shadow: 0 1px 4px rgba(12, 26, 43, .18); }
.gi-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; }
.gi-filter[hidden] { display: none; }
.gi-filter button { font: inherit; padding: .5rem 1.15rem; border: 1.5px solid var(--line); border-radius: var(--radius-pill); background: #fff; color: var(--text); font-size: .85rem; font-weight: 600; cursor: pointer; transition: .2s; }
.gi-filter button:hover { border-color: var(--blue); color: var(--blue); }
.gi-filter button[aria-pressed="true"] { background: var(--blue); color: #fff; border-color: var(--blue); }
.gi-filter + .gi-grid { margin-top: 1rem; }
.rng input[type=range] { border: 0; padding: 0; background: transparent; box-shadow: none; }
.wlc-scale2 { position: relative; height: 18px; font-size: .78rem; color: var(--text); }
.wlc-scale2 span { position: absolute; transform: translateX(-50%); white-space: nowrap; }

/* Guide animations (only when JS adds html.an; off for reduced motion) */
.read-prog { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: var(--blue); transform-origin: 0 50%; transform: scaleX(0); z-index: 200; pointer-events: none; }
.an .rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.an .rv.in { opacity: 1; transform: none; }
.an .guide-hero { animation: heroIn .9s cubic-bezier(.2,.7,.2,1) both; }
@keyframes heroIn { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
.an .ch .ch-bar path { transform-box: fill-box; transform-origin: 0 50%; transform: scaleX(0); transition: transform .9s cubic-bezier(.2,.7,.2,1) var(--d, 0ms); }
.an .ch .ch-val { opacity: 0; transition: opacity .4s ease calc(var(--d, 0ms) + 600ms); }
.an .ch.in .ch-bar path { transform: scaleX(1); }
.an .ch.in .ch-val { opacity: 1; }
.an .ch .an-dot { transform-box: fill-box; transform-origin: center; transform: scale(0); opacity: 0; transition: transform .45s cubic-bezier(.3,1.6,.5,1) var(--d), opacity .3s ease var(--d); }
.an .ch.in .an-dot { transform: scale(1); opacity: 1; }
.an .ch .an-wedge { transform-box: view-box; transform-origin: 160px 150px; transform: scale(.6); opacity: 0; transition: transform .6s cubic-bezier(.3,1.4,.5,1) var(--d), opacity .4s ease var(--d); }
.an .ch.in .an-wedge { transform: none; opacity: 1; }
.an .ch .an-badge { opacity: 0; transition: opacity .4s ease var(--d); }
.an .ch.in .an-badge { opacity: 1; }
.an .ch .pl-list li { opacity: 0; transform: translateX(10px); transition: opacity .4s ease, transform .4s ease; }
.an .ch.in .pl-list li { opacity: 1; transform: none; }
.an .ch.in .pl-list li:nth-child(2) { transition-delay: .35s; }
.an .ch.in .pl-list li:nth-child(3) { transition-delay: .7s; }
.an .ch .segbar { transform-origin: 0 50%; transform: scaleX(0); transition: transform 1s cubic-bezier(.2,.7,.2,1) .15s; }
.an .ch.in .segbar { transform: scaleX(1); }
.an .guide-keys li { opacity: 0; transform: translateX(-8px); transition: opacity .4s ease, transform .4s ease; }
.an .guide-keys.in li { opacity: 1; transform: none; }
.an .guide-keys.in li:nth-child(2) { transition-delay: .12s; } .an .guide-keys.in li:nth-child(3) { transition-delay: .24s; } .an .guide-keys.in li:nth-child(4) { transition-delay: .36s; }
.guide-fig img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.guide-fig:hover img { transform: scale(1.02); }
@media (prefers-reduced-motion: reduce) { .read-prog { display: none; } }

/* Prostate guide figures */
.ch-in { font: 700 12px Inter, system-ui, sans-serif; fill: #fff; }
.pw-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; counter-reset: pw; }
.pw-step { position: relative; display: grid; grid-template-columns: 44px 1fr; column-gap: .8rem; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.pw-step + .pw-step::before { content: ""; position: absolute; left: 32px; top: -12px; width: 2px; height: 12px; background: var(--blue-100); }
.pw-ico { grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; background: var(--blue-50); display: grid; place-items: center; font-size: 1.3rem; }
.pw-step b { color: var(--ink); }
.pw-step > span:last-child { grid-column: 2; color: var(--text); font-size: .93rem; }
.st-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.st-tile { border-radius: 12px; background: var(--blue-50); padding: 1rem; display: grid; gap: .3rem; }
.st-tile b { font-size: 1.9rem; color: var(--blue); line-height: 1; }
.st-tile span { font-size: .88rem; color: var(--text); }
@media (max-width: 600px) { .st-tiles { grid-template-columns: 1fr; } }
.an .ch .pw-step, .an .ch .st-tile { opacity: 0; transform: translateY(10px); transition: opacity .5s ease var(--d), transform .5s ease var(--d); }
.an .ch.in .pw-step, .an .ch.in .st-tile { opacity: 1; transform: none; }

/* Share bar */
.sh { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; margin: 1rem 0; }
.sh-l { font-size: .86rem; font-weight: 600; color: var(--text); }
.sh-row { display: flex; flex-wrap: wrap; gap: .45rem; }
.sh-b { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; transition: transform .15s, background .15s, color .15s, border-color .15s; padding: 0; }
.sh-b svg { width: 18px; height: 18px; }
.sh-b:hover { transform: translateY(-2px); color: #fff; border-color: transparent; }
.sh-whatsapp:hover { background: #25d366; } .sh-facebook:hover { background: #1877f2; } .sh-x:hover { background: #000; }
.sh-linkedin:hover { background: #0a66c2; } .sh-telegram:hover { background: #229ed9; } .sh-email:hover, .sh-copy:hover, .sh-native:hover { background: var(--blue); }
.sh-ok { font-size: .85rem; color: #1f6b37; font-weight: 600; }
.sh-big { margin: 2rem 0; padding: 1.1rem 1.2rem; border-radius: var(--radius-md); background: var(--blue-50); border: 1px solid var(--blue-100); }
.sh-big .sh-l { width: 100%; font-size: 1rem; color: var(--ink); }
.sh-big .sh-b { width: 44px; height: 44px; }
.sh-big .sh-whatsapp { background: #25d366; color: #fff; border-color: transparent; }
.qz-intro .sh { margin-top: 1.2rem; }
