/* ============================================================
   Consult STAT — shared stylesheet
   Loaded by every page. Edit once, applies everywhere.
   ============================================================ */

/* -- Variables -- */
:root {
  --navy: #1a2b4a;
  --green: #6dcf6d;
  --green-dark: #4aad4a;
  --green-light: #edf8ed;
  --green-border: #d4edda;
  --cream: #f7f4f0;
  --warm: #f0ebe4;
  --muted: #6b7280;
  --dark: #111827;
  --white: #ffffff;
  --border: #e5e7eb;
  --text-body: #374151;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, sans-serif;
}

/* -- Reset -- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { overflow-x: clip; max-width: 100%; }
html { scroll-behavior: auto; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--dark);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* -- Buttons -- */
.btn-cta {
  background: var(--green);
  color: var(--navy);
  border: none;
  border-radius: 10px;
  padding: 11px 24px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--sans);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
}
.btn-cta:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-cta-lg {
  padding: 18px 44px;
  font-size: 17px;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(109, 207, 109, 0.3);
}
.btn-cta-lg:hover { box-shadow: 0 8px 32px rgba(109, 207, 109, 0.35); }

/* -- Nav -- */
/* Reserve space for <site-nav> before JS mounts the nav inside it. */
site-nav { display: block; min-height: 68px; background: var(--navy); }
site-footer { display: block; }
site-modal { display: contents; }
.nav {
  background: var(--navy);
  padding: 4px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 68px;
}
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img { height: 48px; width: auto; display: block; flex-shrink: 0; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: white; }

/* -- Mobile menu -- */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  margin: 5px 0;
  transition: 0.3s;
}
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--navy);
  padding: 80px 32px 32px;
  flex-direction: column;
  gap: 24px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: white;
  font-size: 18px;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.mobile-menu .btn-cta {
  text-align: center;
  margin-top: 16px;
  border-bottom: none;
}
.mobile-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
}

/* -- Sections, containers, dividers -- */
.container { max-width: 1100px; margin: 0 auto; }
.section { padding: 80px 48px; }
.section-white { background: var(--white); }
.section-cream { background: var(--cream); }
.section-tag {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 20px;
}
.section-desc {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 600px;
}
.centered { text-align: center; margin-left: auto; margin-right: auto; }
.accent-divider { display: flex; align-items: center; justify-content: center; padding: 24px 0; }
.accent-divider span { width: 60px; height: 3px; background: var(--green); border-radius: 2px; }

/* -- Hero (default = subpage style) -- */
.hero {
  background: var(--navy);
  padding: 80px 48px 88px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(109, 207, 109, 0.08) 0%, transparent 65%);
  top: -250px;
  left: 50%;
  transform: translateX(-50%);
}
.hero-inner { max-width: 700px; margin: 0 auto; position: relative; z-index: 1; }
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: white;
  line-height: 1.2;
  margin-bottom: 20px;
  font-weight: 700;
}
.hero h1 em { color: var(--green); font-style: italic; }
.hero p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
  max-width: 580px;
}
/* Centered heroes (homepage, doctors, faq) — center paragraphs */
.hero-centered p,
.hero--home p { margin-left: auto; margin-right: auto; }
.hero-centered { text-align: center; }
.hero-centered .hero-inner { max-width: 720px; }

/* Hero — homepage (larger, dramatic) */
.hero--home { padding: 100px 48px 110px; text-align: center; }
.hero--home .hero-inner { max-width: 720px; }
.hero--home h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  line-height: 1.15;
  margin-bottom: 24px;
}
.hero--home .hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
  margin-bottom: 40px;
}
.hero--home .hero-note {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 18px;
}
.hero--home .hero-note-asterisk {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 6px;
}

/* -- Problem cards (homepage) -- */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}
.problem-card {
  background: var(--white);
  border-radius: 16px;
  padding: 32px 28px;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.problem-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06); }
.problem-card svg { width: 56px; height: 56px; margin-bottom: 16px; }
.problem-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.3;
}
.problem-card p { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* -- How It Works — scrolling phone (homepage) -- */
.hiw-section { padding: 80px 48px; background: var(--white); }
.hiw-header { text-align: center; margin-bottom: 56px; }
.hiw-split {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}
.hiw-steps { display: flex; flex-direction: column; gap: 0; }
.hiw-step {
  padding: 48px 0;
  opacity: 0.3;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  border-bottom: 1px solid var(--border);
}
.hiw-step:last-child { border-bottom: none; }
.hiw-step.active { opacity: 1; transform: translateY(0); }
.hiw-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green-dark);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 14px;
}
.hiw-step h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.hiw-step p { font-size: 14px; color: var(--muted); line-height: 1.7; }
.hiw-outcomes { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-top: 16px; }
.hiw-outcome { border-radius: 10px; padding: 14px 12px; background: var(--white); border: 1px solid var(--border); }
.hiw-outcome h4 { font-size: 12px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.hiw-outcome p { font-size: 11px; color: var(--muted); line-height: 1.5; }

/* Phone mockup */
.hiw-phone-wrap { position: sticky; top: 100px; height: fit-content; }
.phone-frame {
  width: 340px;
  background: #111;
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.phone-screen {
  background: white;
  border-radius: 30px;
  overflow: hidden;
  min-height: 640px;
  display: flex;
  flex-direction: column;
}
.phone-top {
  background: white;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #e8e8e8;
}
.phone-top .logo-mini {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  object-fit: contain;
}
.phone-top .title { color: var(--navy); font-size: 15px; font-weight: 700; }
.phone-msgs {
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  background: white;
  overflow-y: hidden;
}

/* Message row = sender label + bubble+avatar */
.msg-row {
  display: flex;
  flex-direction: column;
  max-width: 90%;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.msg-row.visible { opacity: 1; transform: translateY(0); }

.msg-row.out { align-self: flex-end; align-items: flex-end; }
.msg-row.in  { align-self: flex-start; align-items: flex-start; }

.msg-sender {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 4px;
  padding: 0 6px;
}

.msg-bubble-wrap {
  display: flex;
  align-items: flex-end;
  gap: 6px;
}
.msg-row.out .msg-bubble-wrap { flex-direction: row-reverse; }

.msg-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  background: white;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.msg-avatar img { width: 100%; height: 100%; object-fit: cover; }
.msg-avatar.team img { object-fit: contain; padding: 1px; }
.msg-avatar svg { width: 18px; height: 18px; }
.msg-avatar.patient {
  background: #d1d5db;
  border-color: #d1d5db;
  color: white;
}

.msg-bubble {
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 12.5px;
  line-height: 1.45;
}
.msg-row.out .msg-bubble {
  background: #e8f4e8;
  color: #1a3a1a;
  border-bottom-right-radius: 4px;
}
.msg-row.in .msg-bubble {
  background: #f0f0f0;
  color: #1f2937;
  border-bottom-left-radius: 4px;
}

/* Photo attachment — small inline icon with broken arm illustration */
.msg-photo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f0f0f0;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 11px;
  margin-bottom: 4px;
  align-self: flex-end;
}
.msg-photo svg { width: 32px; height: 26px; flex-shrink: 0; }

/* System divider (e.g. "2 days later") */
.msg-system {
  align-self: center;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  margin: 6px 0;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.msg-system.visible { opacity: 1; }

/* -- Doctors grid (homepage) -- */
.docs-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; margin-top: 48px; }
.doc-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  cursor: pointer;
}
.doc-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06); }
.doc-photo {
  height: 300px;
  background: var(--warm);
  border-bottom: 3px solid var(--green);
  overflow: hidden;
}
.doc-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.doc-info { padding: 24px; }
.doc-name { font-family: var(--serif); font-size: 18px; color: var(--navy); font-weight: 600; margin-bottom: 4px; }
.doc-specialty { font-size: 13px; color: var(--green-dark); font-weight: 600; margin-bottom: 12px; }
.doc-desc { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 16px; }
.doc-practice { font-size: 12px; color: var(--muted); padding-top: 12px; border-top: 1px solid var(--border); }
.doc-practice strong { color: var(--navy); }
.doc-practice a { color: var(--green-dark); text-decoration: underline; }
.doc-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--green-dark);
  margin-top: 12px;
}
.doc-link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}
.doc-link:hover { color: var(--navy); }
.doc-practice a { color: var(--green-dark); text-decoration: underline; position: relative; z-index: 2; }

/* -- Doctor profile pages -- */
.doc-profile { padding: 80px 48px; }
.doc-profile:nth-of-type(odd) { background: var(--white); }
.doc-profile:nth-of-type(even) { background: var(--cream); }
.doc-container {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: start;
}
.doc-photo-col { position: sticky; top: 100px; }
.doc-photo-lg {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 3px solid var(--green);
}
.doc-photo-lg img { width: 100%; height: auto; display: block; }
.doc-practice-link {
  display: block;
  margin-top: 16px;
  padding: 14px;
  background: var(--green-light);
  border-radius: 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--green-dark);
  transition: background 0.2s;
}
.doc-practice-link:hover { background: var(--green-border); }
.doc-content h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--navy);
  margin-bottom: 4px;
}
.doc-content .specialty { font-size: 14px; color: var(--green-dark); font-weight: 600; margin-bottom: 24px; }
.doc-narrative { font-size: 15px; color: var(--text-body); line-height: 1.85; margin-bottom: 32px; }
.bio-section { margin-bottom: 28px; }
.bio-section-title {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.bio-list { list-style: none; padding: 0; }
.bio-list li {
  font-size: 14px;
  color: var(--text-body);
  padding: 6px 0;
  border-bottom: 1px solid #f3f4f6;
  line-height: 1.5;
}
.bio-list li:last-child { border-bottom: none; }
.bio-list li strong { color: var(--navy); display: block; font-size: 13px; }
.bio-list li span { color: var(--muted); font-size: 12px; }
.scenario-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.scenario-tag {
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 500;
  border: 1px solid var(--green-border);
  transition: all 0.2s;
}
.scenario-tag:hover { background: var(--green-border); transform: translateY(-1px); }
.doc-testimonials { margin-top: 32px; }
.doc-test-card {
  background: var(--white);
  border: 1px solid #c9c6c0;
  border-left: 3px solid var(--green);
  border-radius: 12px;
  padding: 22px 26px;
  margin-bottom: 18px;
  box-shadow: 0 6px 18px rgba(26, 43, 74, 0.08);
}
.doc-test-card:last-child { margin-bottom: 0; }
.doc-test-quote {
  font-family: var(--serif);
  font-size: 19px;
  font-style: italic;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 12px;
}
.doc-test-body {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 12px;
}
.doc-test-sig {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
}

/* -- Founder section (homepage) -- */
.founder { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.founder-story { font-size: 15px; color: var(--text-body); line-height: 1.85; margin-bottom: 24px; }
.founder-creds { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.founder-creds strong { color: var(--navy); }
.founder-link { display: inline-block; font-size: 14px; font-weight: 600; color: var(--green-dark); }
.founder-link:hover { color: var(--navy); }
.founder-photo {
  background: var(--warm);
  border-radius: 20px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
.founder-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* -- Story page (Our Story) -- */
.story-content { max-width: 760px; margin: 0 auto; padding: 64px 40px; }
.story-block { margin-bottom: 56px; }
.story-label {
  font-size: 13px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--green-dark);
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.story-label::after { content: ''; flex: 1; height: 1px; background: var(--green-light); max-width: 60px; }
.story-block h2 {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 20px;
}
.story-block p { font-size: 15px; color: var(--text-body); line-height: 1.85; margin-bottom: 18px; }
.story-block p:last-child { margin-bottom: 0; }
.pull-quote {
  border-left: 3px solid var(--green);
  padding: 20px 28px;
  margin: 32px 0;
  background: var(--green-light);
  border-radius: 0 12px 12px 0;
}
.pull-quote p {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--navy);
  line-height: 1.6;
  font-style: italic;
  margin: 0;
}
.story-divider { display: flex; align-items: center; justify-content: center; padding: 8px 0; margin: 0 0 56px; }
.story-divider span { width: 60px; height: 3px; background: var(--green); border-radius: 2px; }
.cred-card {
  background: var(--white);
  border-radius: 16px;
  padding: 36px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
  margin-bottom: 28px;
}
.cred-card h3 { font-family: var(--serif); font-size: 1.4rem; color: var(--navy); margin-bottom: 4px; }
.cred-title { font-size: 14px; color: var(--green-dark); font-weight: 600; margin-bottom: 24px; }
.cred-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.cred-section h4 {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green-dark);
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.cred-list { list-style: none; padding: 0; }
.cred-list li { font-size: 13px; padding: 6px 0; border-bottom: 1px solid #f3f4f6; line-height: 1.5; }
.cred-list li:last-child { border-bottom: none; }
.cred-list li strong { color: var(--navy); display: block; font-size: 13px; }
.cred-list li span { color: var(--muted); font-size: 12px; }

/* Founder photo header on cred card (Our Story) — circular avatar */
.cred-header { display: flex; align-items: center; gap: 24px; margin-bottom: 28px; }
.cred-photo {
  width: 100px; height: 100px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid var(--green);
}
.cred-photo img { width: 100%; height: 100%; object-fit: cover; }
.cred-header-text h3 { margin-bottom: 4px; }

/* -- Pricing card (homepage) -- */
.pricing-card {
  background: var(--white);
  border-radius: 20px;
  max-width: 560px;
  margin: 48px auto 0;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
.pricing-header { background: var(--navy); padding: 28px 40px 32px; }
.pricing-amount {
  font-family: var(--serif);
  font-size: 5rem;
  color: white;
  line-height: 1;
  margin-bottom: 20px;
  font-weight: 400;
}
.pricing-amount sup { font-size: 2rem; vertical-align: super; font-family: var(--sans); font-weight: 300; }
.pricing-tagline { font-size: 15px; color: var(--green); font-weight: 500; }
.pricing-body { padding: 40px; }
.pricing-features { text-align: left; margin-bottom: 20px; }
.pricing-feat {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.5;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
}
.pricing-feat:last-child { border-bottom: none; }
.pricing-feat .check { color: var(--green); font-weight: 700; font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.pricing-context { font-size: 13px; color: var(--muted); line-height: 1.7; padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--border); }
.feat-detail { display: block; font-size: 12px; color: var(--muted); font-weight: 400; line-height: 1.6; margin-top: 4px; }

/* -- CTA strip -- */
.cta-strip { background: var(--navy); padding: 80px 48px; text-align: center; }
.cta-strip h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: white;
  margin-bottom: 16px;
}
.cta-strip p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 36px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}
.cta-strip .note { margin-top: 16px; font-size: 12px; color: rgba(255, 255, 255, 0.3); }

/* -- FAQ -- */
.faq-search-wrap { max-width: 520px; margin: 0 auto; position: relative; }
.faq-search-input {
  width: 100%;
  padding: 16px 20px 16px 48px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 15px;
  font-family: var(--sans);
  outline: none;
  transition: border-color 0.2s;
}
.faq-search-input::placeholder { color: rgba(255, 255, 255, 0.35); }
.faq-search-input:focus { border-color: var(--green); background: rgba(255, 255, 255, 0.12); }
.faq-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.4);
}
.faq-search-clear {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 20px;
  cursor: pointer;
  display: none;
}
.faq-search-count { color: rgba(255, 255, 255, 0.4); font-size: 13px; margin-top: 10px; }
.faq-content { max-width: 760px; margin: 0 auto; padding: 48px 40px 80px; }
.faq-category { margin-bottom: 40px; }
.faq-category-title {
  font-size: 13px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--green-light);
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.faq-item:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04); }
.faq-item.hidden { display: none; }
.faq-q {
  padding: 18px 48px 18px 20px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  position: relative;
  user-select: none;
}
.faq-q::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--green);
  font-weight: 300;
  transition: transform 0.2s;
}
.faq-item.open .faq-q::after { content: '−'; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-a { max-height: 1000px; }
.faq-a-inner { padding: 0 20px 20px; font-size: 14px; color: var(--text-body); line-height: 1.8; }
.faq-a-inner a { color: var(--green-dark); font-weight: 600; text-decoration: underline; }
.contact-box {
  background: var(--white);
  border: 1px solid #d9d7d1;
  border-left: 3px solid var(--green);
  border-radius: 12px;
  padding: 22px 26px;
  text-align: left;
  margin-top: 48px;
  box-shadow: 0 4px 14px rgba(26, 43, 74, 0.07);
}
.contact-box h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--navy);
  margin-bottom: 8px;
}
.contact-box p { font-size: 14px; color: var(--text-body); margin-bottom: 12px; line-height: 1.75; }
.contact-box a {
  display: inline-block;
  padding: 0;
  background: none;
  color: var(--navy);
  border-radius: 0;
  font-weight: 600;
  font-size: 14px;
  text-decoration: underline;
  text-decoration-color: var(--green);
  text-underline-offset: 3px;
}
.contact-box a:hover { color: var(--green-dark); }

/* -- Legal pages (Privacy, Terms) -- */
.legal-content { max-width: 760px; margin: 0 auto; padding: 48px 40px 80px; }
.legal-section { margin-bottom: 32px; }
.legal-section h2 { font-family: var(--serif); font-size: 1.15rem; color: var(--navy); margin-bottom: 12px; }
.legal-section p { font-size: 14px; color: var(--text-body); line-height: 1.85; margin-bottom: 12px; }
.legal-section ul { list-style: none; padding: 0; margin-bottom: 12px; }
.legal-section ul li {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.7;
  padding: 4px 0 4px 20px;
  position: relative;
}
.legal-section ul li::before {
  content: "·";
  position: absolute;
  left: 6px;
  color: var(--green);
  font-weight: 700;
}
.legal-section a { color: var(--green-dark); text-decoration: underline; }
.hero .updated { font-size: 13px; color: rgba(255, 255, 255, 0.4); }

/* -- Footer -- */
.footer {
  background: var(--navy);
  padding: 16px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  min-height: 68px;
}
.footer .nav-logo img { height: 48px; opacity: 0.7; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  transition: color 0.2s;
}
.footer-links a:hover { color: rgba(255, 255, 255, 0.7); }
.footer-tagline {
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 16px;
  letter-spacing: 0.5px;
}

/* -- Modal -- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(26, 43, 74, 0.6);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
}
.modal-overlay.open { display: flex; }
.modal-card {
  background: white;
  border-radius: 20px;
  padding: 40px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  position: relative;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
}
.modal-card h3 { font-family: var(--serif); font-size: 1.5rem; color: var(--navy); margin-bottom: 8px; }
.modal-card > p { font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.modal-options { display: flex; flex-direction: column; gap: 12px; }
.modal-option {
  display: block;
  padding: 16px;
  border-radius: 12px;
  background: var(--green-light);
  color: var(--navy);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid var(--green-border);
  transition: background 0.2s;
}
.modal-option:hover { background: var(--green-border); }
.modal-option--neutral { background: var(--cream); border-color: var(--border); }
.modal-option--neutral:hover { background: var(--warm); }

/* Modal form inputs */
.modal-form { display: flex; flex-direction: column; gap: 12px; }
.modal-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--sans);
  color: var(--navy);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.modal-input:focus { border-color: var(--green); }
.modal-input::placeholder { color: var(--muted); }
.modal-submit { margin-top: 4px; width: 100%; }
.modal-form-note { font-size: 12px; color: var(--muted); text-align: center; min-height: 18px; }

/* Modal textarea */
.modal-textarea {
  min-height: 100px;
  resize: vertical;
  font-family: var(--sans);
  line-height: 1.5;
}

/* Specialty interest / physician interest callout sections */
.interest-section {
  text-align: center;
  padding: 40px 24px;
}
.interest-section p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.7;
}
.interest-section .btn-outline {
  display: inline-block;
  padding: 10px 28px;
  border: 1px solid var(--green);
  border-radius: 8px;
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 600;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.interest-section .btn-outline:hover { background: var(--green-light); }
.interest-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 32px auto;
  max-width: 300px;
}
.interest-divider span {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.interest-divider em {
  font-size: 12px;
  color: var(--muted);
  font-style: normal;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Footer physician link */
.footer-physician {
  width: 100%;
  text-align: center;
  margin-top: 8px;
}
.footer-physician a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.2s;
}
.footer-physician a:hover { color: rgba(255, 255, 255, 0.7); }

/* -- Responsive -- */
@media (max-width: 900px) {
  .nav { padding: 6px 16px; min-height: 68px; }
  .nav-logo img { height: 48px; }
  .nav-links { display: none; }
  .hamburger { display: block; }
  .hero,
  .section,
  .hiw-section,
  .cta-strip,
  .doc-profile { padding-left: 24px; padding-right: 24px; }
  .hero { padding-top: 56px; padding-bottom: 64px; }
  .hero--home .hero-note { font-size: 13px; }
  .hero--home .hero-note-asterisk { font-size: 11px; margin-top: 4px; }
  .hero--home { padding-top: 64px; padding-bottom: 72px; }
  .problem-grid,
  .docs-grid { grid-template-columns: 1fr; }

  /* How It Works: phone goes above, sticky at top under nav */
  .hiw-split {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .hiw-phone-wrap {
    position: sticky;
    top: 84px;
    z-index: 5;
    margin: 0 auto 24px;
    padding: 8px 0;
    background: var(--white);
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .phone-frame {
    width: min(88vw, 320px);
    padding: 10px;
  }
  .phone-screen { min-height: 460px; }
  .phone-msgs { padding: 14px 12px; gap: 12px; }
  .msg-bubble { font-size: 12px; padding: 9px 12px; }
  .hiw-step {
    opacity: 1;
    transform: none;
    padding: 36px 0;
  }
  .hiw-step.active h3 { color: var(--green-dark); }
  .hiw-outcomes { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 1fr; gap: 32px; }
  .founder-photo { height: 280px; }
  .pricing-header { padding: 24px 24px 28px; }
  .pricing-body { padding: 32px 24px; }
  .pricing-amount { font-size: 4rem; }
  .doc-container { grid-template-columns: 1fr; gap: 32px; }
  .doc-photo-col { position: static; }
  .cred-grid { grid-template-columns: 1fr; }
  .cred-header { flex-direction: column; text-align: center; gap: 16px; }
  .story-content,
  .faq-content,
  .legal-content { padding-left: 24px; padding-right: 24px; }
  .footer { flex-direction: column; gap: 12px; text-align: center; padding: 16px 16px; min-height: 0; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 14px 20px; }
}

@media (max-width: 480px) {
  .nav { padding: 6px 14px; }
}
