/* ==========================================================================
   Ultrasound-Guided Carpal Tunnel & Trigger Finger Release
   Pacific Bone & Joint — Dr. Paul Norio Morton, MD
   Design system & styles
   ========================================================================== */

/* ---------- Design tokens ------------------------------------------------- */
:root {
  /* Navy (primary) — Pacific Bone & Joint brand */
  --ocean-900: #0c2545;
  --ocean-800: #10315a;
  --ocean-700: #173f6e;
  --ocean-600: #1d4c84;
  --ocean-500: #2a62a4;
  --ocean-400: #5a8bc4;
  --ocean-100: #e2ecf7;
  --ocean-50:  #f1f6fc;

  /* Green (accent / call-to-action) — Hawaiian islands */
  --coral-700: #1f5e19;
  --coral-600: #25701f;
  --coral-500: #2c8129;   /* AA-compliant green for buttons & accents */
  --coral-200: #bfe3ad;
  --coral-100: #e7f4df;
  --leaf:      #5aa83d;   /* brighter brand green, decorative only */

  /* Neutrals */
  --ink:    #0c2545;
  --text:   #26384a;
  --muted:  #586a7a;
  --line:   #e3e9f0;
  --line-2: #d2dce8;
  --sand-50:#f5f8fc;
  --sand-100:#eaf0f8;
  --paper:  #ffffff;

  --gold:   #f5a623;
  --good:   #2c8129;
  --warn:   #b9671a;
  --bad:    #c2402c;

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --container: 1160px;
  --container-narrow: 820px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(16, 42, 51, .06), 0 1px 3px rgba(16, 42, 51, .08);
  --shadow: 0 10px 30px -12px rgba(10, 85, 99, .25);
  --shadow-lg: 0 30px 60px -25px rgba(7, 66, 77, .4);

  --header-h: 74px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset / base -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--sand-50);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.8vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
p { margin: 0 0 1rem; }
a { color: var(--ocean-600); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--ocean-700); }
img, svg, video { max-width: 100%; display: block; }
ul, ol { margin: 0 0 1rem; padding-left: 1.2rem; }
strong { color: var(--ink); font-weight: 700; }
:focus-visible { outline: 3px solid var(--ocean-400); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout helpers ----------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
:where(section[id], div[id="book"]) { scroll-margin-top: 88px; }
.section { padding: clamp(56px, 8vw, 104px) 0; position: relative; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.section--sand { background: var(--sand-100); }
.section--ocean { background: linear-gradient(160deg, var(--ocean-800), var(--ocean-700) 70%); color: #dff1f3; }
.section--ocean h2, .section--ocean h3 { color: #fff; }

.center { text-align: center; }
.measure { max-width: 62ch; }
.measure-mx { max-width: 62ch; margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-sans);
  font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ocean-600);
  margin: 0 0 .9rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--coral-500); border-radius: 2px; }
.section--ocean .eyebrow { color: var(--coral-200); }
.center .eyebrow { justify-content: center; }

.lead { font-size: 1.18rem; color: var(--muted); }
.section--ocean .lead { color: #c5e3e7; }

/* ---------- Buttons ------------------------------------------------------- */
.btn {
  --btn-bg: var(--coral-500);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-sans);
  font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 16px 26px;
  border-radius: var(--radius-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  box-shadow: 0 10px 24px -12px rgba(12, 37, 69, .45);
  text-align: center; white-space: nowrap;
}
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(12, 37, 69, .5); background: var(--coral-600); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; }

.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--ocean-700);
  border-color: var(--line-2);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--ocean-50); color: var(--ocean-700); border-color: var(--ocean-400); box-shadow: none; }

.btn--white { --btn-bg:#fff; --btn-fg: var(--ocean-800); box-shadow: var(--shadow); }
.btn--white:hover { background:#fff; color: var(--ocean-900); }

.btn--ocean { --btn-bg: var(--ocean-600); box-shadow: 0 10px 24px -12px rgba(12,37,69,.5); }
.btn--ocean:hover { background: var(--ocean-700); }

.btn--lg { padding: 19px 34px; font-size: 1.06rem; }
.btn--block { display: flex; width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.center .btn-row { justify-content: center; }

.link-arrow { font-weight: 700; display: inline-flex; align-items: center; gap: .4em; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header / nav -------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251, 248, 243, .85);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); background: rgba(251,248,243,.95); }
.nav { display: flex; align-items: center; gap: 18px; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__img { height: 50px; width: auto; display: block; }
.brand--footer { background: #fff; padding: 12px 18px; border-radius: 14px; display: inline-flex; }
.brand--footer img { height: 46px; width: auto; display: block; }
@media (max-width: 600px) { .brand__img { height: 42px; } }

.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__links a {
  color: var(--text); font-weight: 600; font-size: .92rem; white-space: nowrap;
  padding: 8px 11px; border-radius: var(--radius-sm);
}
.nav__links a:hover { color: var(--ocean-700); background: var(--ocean-50); }

.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav__phone { display: inline-flex; align-items: center; gap: .5em; font-weight: 700; color: var(--ink); white-space: nowrap; }
.nav__phone svg { width: 18px; height: 18px; color: var(--ocean-600); }
.nav__phone:hover { color: var(--ocean-700); }

.nav__toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); background: #fff;
  border-radius: var(--radius-sm); cursor: pointer; padding: 0; align-items: center; justify-content: center;
}
.nav__toggle svg { width: 24px; height: 24px; color: var(--ink); }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-open { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1120px) {
  .nav__links, .nav__cta .nav__phone { display: none; }
  .nav__toggle { display: inline-flex; }
  .mobile-nav.is-open { display: block; }
}

.mobile-nav {
  display: none; position: fixed; inset: var(--header-h) 0 0; z-index: 55;
  background: var(--sand-50); padding: 24px 22px 40px; overflow-y: auto;
  animation: fade .25s var(--ease);
}
.mobile-nav a { display: block; padding: 15px 8px; font-size: 1.15rem; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 22px; }
.mobile-nav__phone { margin-top: 16px; text-align: center; font-weight: 700; }

/* ---------- Hero ---------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 130% at 82% -10%, var(--ocean-100) 0%, rgba(226,241,244,0) 55%), var(--sand-50);
  padding: clamp(40px, 6vw, 84px) 0 clamp(56px, 8vw, 96px);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.hero__badge {
  display: inline-flex; align-items: center; gap: .6em;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  border-radius: var(--radius-pill); padding: 7px 15px 7px 9px;
  font-weight: 600; font-size: .86rem; color: var(--text); margin-bottom: 22px;
}
.hero__badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px rgba(31,157,107,.15); }
.hero h1 { color: var(--ink); }
.hero h1 .accent { color: var(--ocean-600); }
.hero__sub { font-size: 1.2rem; color: var(--text); max-width: 38ch; margin-bottom: 26px; }
.hero__list { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 11px; }
.hero__list li { display: flex; align-items: flex-start; gap: .65em; font-weight: 500; color: var(--text); }
.hero__list svg { width: 22px; height: 22px; color: var(--good); flex: 0 0 auto; margin-top: 1px; }
.hero__reassure { margin-top: 22px; font-size: .92rem; color: var(--muted); display: flex; align-items: center; gap: .6em; }
.hero__reassure svg { width: 18px; height: 18px; color: var(--ocean-500); }

/* Hero visual */
.hero__visual { position: relative; }
.hero__card {
  position: relative; background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 22px; border: 1px solid var(--line);
}
.hero__scan {
  border-radius: var(--radius); overflow: hidden; background: linear-gradient(160deg, var(--ocean-900), var(--ocean-700));
  aspect-ratio: 4 / 3; position: relative;
}
.hero__scan svg { width: 100%; height: 100%; }
.hero__scan img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__chip {
  position: absolute; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--line); padding: 12px 15px; display: flex; align-items: center; gap: 11px;
}
.hero__chip .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: 0 0 auto; }
.hero__chip .ic svg { width: 20px; height: 20px; }
.hero__chip b { display: block; font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); line-height: 1; }
.hero__chip span { font-size: .78rem; color: var(--muted); }
.hero__chip--tl { top: -18px; left: -22px; }
.hero__chip--br { bottom: -20px; right: -16px; }
.ic--teal { background: var(--ocean-100); color: var(--ocean-700); }
.ic--coral { background: var(--coral-100); color: var(--coral-600); }

@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 460px; margin: 0 auto 8px; }
  .hero__sub { max-width: none; }
  .hero__chip--tl { left: -8px; }
  .hero__chip--br { right: -6px; }
}

/* ---------- Trust / stat bar --------------------------------------------- */
.statbar { background: var(--ocean-800); color: #fff; }
.statbar__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 30px 0; }
.stat { text-align: center; padding: 6px 8px; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 14%; height: 72%; width: 1px; background: rgba(255,255,255,.16); }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.3rem); color: #fff; line-height: 1; }
.stat span { font-size: .88rem; color: #bfe0e5; }
/* staggered pop-in flash for the stat bar */
.statbar .stat.reveal { transform: translateY(18px) scale(.92); }
.statbar .stat.reveal.is-in { transform: none; }
.statbar .stat:nth-child(2).reveal { transition-delay: .09s; }
.statbar .stat:nth-child(3).reveal { transition-delay: .18s; }
.statbar .stat:nth-child(4).reveal { transition-delay: .27s; }
.statbar__note { text-align: center; font-size: .76rem; color: #acc6e0; margin: 14px 0 0; }
@media (max-width: 720px) {
  .statbar__grid { grid-template-columns: repeat(2, 1fr); gap: 8px 18px; }
  .stat:nth-child(3)::before { display: none; }
}

/* ---------- Generic cards / grids ---------------------------------------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--ocean-100); }
.card__ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; }
.card__ic svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }

/* ---------- Procedure feature blocks ------------------------------------- */
.proc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.proc + .proc { margin-top: clamp(48px, 7vw, 90px); }
.proc--rev .proc__media { order: 2; }
.proc__media {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(155deg, var(--ocean-100), #fff);
  border: 1px solid var(--line); box-shadow: var(--shadow); aspect-ratio: 5 / 4;
}
.proc__media svg { width: 100%; height: 100%; }
.proc__media--img { background: #fff; }
.proc__media--img img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.proc__tag {
  display: inline-flex; align-items: center; gap: .5em; font-weight: 700; font-size: .82rem;
  letter-spacing: .04em; text-transform: uppercase; color: var(--coral-600);
  background: var(--coral-100); padding: 6px 13px; border-radius: var(--radius-pill); margin-bottom: 14px;
}
.proc ul { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 12px; }
.proc ul li { display: flex; gap: .7em; align-items: flex-start; }
.proc ul li svg { width: 22px; height: 22px; color: var(--ocean-600); flex: 0 0 auto; margin-top: 2px; }
@media (max-width: 820px) {
  .proc { grid-template-columns: 1fr; }
  .proc--rev .proc__media { order: -1; }
  .proc__media { order: -1; }
}

/* ---------- Steps (how it works) ----------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; margin-top: 14px; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; }
.step__n {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ocean-600); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.12rem; }
.step p { margin: 0; font-size: .96rem; color: var(--muted); }
@media (max-width: 920px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Comparison table --------------------------------------------- */
.compare {
  width: 100%; border-collapse: separate; border-spacing: 0; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  min-width: 560px;
}
.compare th, .compare td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.compare thead th { background: var(--ocean-800); color: #fff; font-family: var(--font-sans); font-size: .95rem; }
.compare thead th.col-ours { background: var(--coral-600); color: #fff; }
.compare thead th:first-child { background: var(--sand-100); }
/* sticky first column so row labels stay visible while scrolling on mobile */
.compare th[scope="row"] { font-weight: 600; color: var(--ink); width: 28%; background: var(--sand-50); position: sticky; left: 0; z-index: 2; box-shadow: 1px 0 0 var(--line); }
.compare thead th:first-child { position: sticky; left: 0; z-index: 4; box-shadow: 1px 0 0 var(--line); }
.compare .col-ours { background: var(--ocean-50); }
.compare td.col-ours { color: var(--ink); font-weight: 600; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: none; }
.compare .yes { color: var(--good); font-weight: 700; }
.compare .no { color: var(--muted); }
.compare__wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
.compare__head-tag { display: block; font-size: .72rem; font-weight: 700; opacity: .85; letter-spacing: .05em; text-transform: uppercase; margin-top: 2px; }
.compare-explain { max-width: 820px; margin: 30px auto 0; }
.compare-explain .card { padding: 26px 28px; }
.compare-explain h3 { margin-bottom: .5em; }
.compare-explain p { color: var(--text); }
.compare-explain p:last-child { margin-bottom: 0; }
.compare__hint { display: none; font-size: .82rem; font-weight: 700; color: var(--ocean-600); margin: 0 0 8px; text-align: right; }
@media (max-width: 760px) { .compare__hint { display: block; } }
@media (max-width: 620px) {
  .compare th, .compare td { padding: 12px 11px; font-size: .9rem; }
  .compare th[scope="row"] { width: 36%; }
}

/* ---------- Research / evidence ------------------------------------------ */
.rcard b { display: block; font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.3rem); color: var(--ocean-700); line-height: 1; margin-bottom: .35em; }
.rcard p { margin: 0; color: var(--muted); font-size: .96rem; }
.research-cite { max-width: 860px; margin: 30px auto 0; text-align: center; }
.research-cite > p:first-child { font-size: 1.1rem; color: var(--text); background: var(--ocean-50); border: 1px solid var(--ocean-100); border-radius: var(--radius); padding: 22px 26px; }
.research-src { font-size: .82rem; color: var(--muted); margin-top: 16px; }

/* ---------- Video gallery ------------------------------------------------ */
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 760px) { .video-grid { grid-template-columns: 1fr; } }
.video {
  background: #000; border-radius: var(--radius); overflow: hidden; position: relative;
  aspect-ratio: 16 / 9; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.lite-yt { width: 100%; height: 100%; border: 0; position: relative; cursor: pointer; background-size: cover; background-position: center; }
.lite-yt::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,50,58,.05), rgba(5,50,58,.55));
}
.lite-yt__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 74px; height: 74px; border-radius: 50%; background: rgba(255,111,89,.95);
  display: grid; place-items: center; box-shadow: 0 8px 30px rgba(0,0,0,.35); transition: transform .2s var(--ease), background .2s var(--ease);
}
.lite-yt:hover .lite-yt__play { transform: translate(-50%,-50%) scale(1.08); background: var(--coral-500); }
.lite-yt__play svg { width: 30px; height: 30px; color: #fff; margin-left: 4px; }
.lite-yt__label {
  position: absolute; left: 16px; right: 16px; bottom: 14px; color: #fff;
  font-weight: 700; font-size: 1.02rem; text-shadow: 0 1px 8px rgba(0,0,0,.5); line-height: 1.25;
}
.video iframe { width: 100%; height: 100%; border: 0; }
.video-note { font-size: .85rem; color: var(--muted); margin-top: 16px; text-align: center; }

/* ---------- Symptom survey ----------------------------------------------- */
.survey { max-width: 760px; margin-inline: auto; }
.survey__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.survey__head { padding: 26px 30px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.survey__progress { flex: 1 1 200px; min-width: 160px; }
.survey__progress-bar { height: 8px; background: var(--ocean-100); border-radius: 999px; overflow: hidden; }
.survey__progress-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ocean-500), var(--ocean-600)); border-radius: 999px; transition: width .4s var(--ease); }
.survey__progress span { font-size: .82rem; color: var(--muted); font-weight: 600; display: inline-block; margin-top: 7px; }
.survey__body { padding: 30px; }
.q { margin: 0 0 22px; }
.q:last-of-type { margin-bottom: 8px; }
.q__label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 12px; font-size: 1.05rem; }
.q__opts { display: flex; flex-wrap: wrap; gap: 10px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt span {
  display: inline-flex; align-items: center; padding: 10px 18px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--line-2); background: #fff; color: var(--text); font-weight: 600; font-size: .95rem;
  cursor: pointer; transition: all .18s var(--ease);
}
.opt input:hover + span { border-color: var(--ocean-400); }
.opt input:checked + span { background: var(--ocean-600); border-color: var(--ocean-600); color: #fff; }
.opt input:focus-visible + span { outline: 3px solid var(--ocean-400); outline-offset: 2px; }

.survey__result { padding: 0 30px 30px; }
.result-card { border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); background: var(--sand-50); }
.result-card[hidden] { display: none; }
.result-card__band { display: inline-flex; align-items: center; gap: .5em; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: .82rem; padding: 6px 14px; border-radius: var(--radius-pill); margin-bottom: 14px; }
.band--low { background: #e4f6ee; color: var(--good); }
.band--mod { background: #fdf0dd; color: var(--warn); }
.band--high { background: #fde7e1; color: var(--bad); }
.result-card h3 { margin-bottom: .35em; }
.result-meter { height: 12px; border-radius: 999px; background: linear-gradient(90deg, #36c489 0%, #f3b13d 50%, #e26a4f 100%); position: relative; margin: 18px 0 22px; }
.result-meter i { position: absolute; top: 50%; transform: translate(-50%,-50%); width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); box-shadow: var(--shadow-sm); transition: left .5s var(--ease); }
.survey__disclaimer { font-size: .82rem; color: var(--muted); margin-top: 18px; }
@media (max-width: 560px) { .survey__body, .survey__head, .survey__result { padding-inline: 20px; } }

/* ---------- Team / doctor photos ----------------------------------------- */
.team-photo { max-width: 760px; margin: 0 auto 30px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.team-photo img { width: 100%; height: auto; display: block; }
.team-photo figcaption { padding: 13px 18px; font-size: .9rem; color: var(--muted); text-align: center; }
.team-photo--wide { max-width: 880px; margin-top: 32px; }

/* ---------- Research figures --------------------------------------------- */
.research-figs { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; align-items: stretch; max-width: 760px; margin: 34px auto 0; }
.research-fig { flex: 1 1 240px; max-width: 340px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column; }
.research-fig img { width: 100%; height: 220px; object-fit: cover; object-position: center; display: block; }
.research-fig--device img { object-fit: contain; background: #fff; padding: 26px; height: 160px; }
.research-fig figcaption { padding: 13px 16px; font-size: .84rem; color: var(--muted); border-top: 1px solid var(--line); }

.proc-result { max-width: 380px; margin: 36px auto 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.proc-result img { width: 100%; height: auto; display: block; }
.proc-result figcaption { padding: 13px 16px; font-size: .84rem; color: var(--muted); border-top: 1px solid var(--line); text-align: center; }

/* ---------- Physicians --------------------------------------------------- */
.doc { display: grid; grid-template-columns: 200px 1fr; gap: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.doc__photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; background: linear-gradient(160deg, var(--ocean-600), var(--ocean-800)); position: relative; }
.doc__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.doc__photo .avatar-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-size: 2.6rem; font-weight: 600; }
.doc__name { margin-bottom: .15em; }
.doc__role { color: var(--ocean-600); font-weight: 700; font-size: .95rem; margin-bottom: .8em; }
.doc__creds { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { font-size: .78rem; font-weight: 700; color: var(--ocean-700); background: var(--ocean-50); border: 1px solid var(--ocean-100); padding: 5px 11px; border-radius: var(--radius-pill); }
.doc p { font-size: .98rem; margin-bottom: 0; }
@media (max-width: 560px) { .doc { grid-template-columns: 1fr; text-align: left; } .doc__photo { max-width: 150px; } }

/* ---------- Reviews ------------------------------------------------------ */
.reviews-head { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.stars { display: inline-flex; gap: 3px; }
.stars svg { width: 22px; height: 22px; color: var(--gold); }
.rating-num { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; color: var(--ink); }
.review {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 14px; break-inside: avoid;
}
.review .stars svg { width: 18px; height: 18px; }
.review p { margin: 0; font-size: 1.02rem; color: var(--text); }
.review__who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review__av { width: 42px; height: 42px; border-radius: 50%; background: var(--ocean-100); color: var(--ocean-700); display: grid; place-items: center; font-weight: 700; flex: 0 0 auto; }
.review__who b { display: block; color: var(--ink); font-size: .95rem; }
.review__who span { font-size: .82rem; color: var(--muted); }
.review__src { font-size: .76rem; color: var(--muted); display: inline-flex; align-items: center; gap: .4em; }
.verified { color: var(--good); font-weight: 700; display: inline-flex; align-items: center; gap: .35em; font-size: .78rem; }
.verified svg { width: 15px; height: 15px; }
.reviews-grid { columns: 3 280px; column-gap: 24px; }
.reviews-grid .review { margin-bottom: 24px; }

/* ---------- FAQ ----------------------------------------------------------- */
.faq { max-width: var(--container-narrow); margin-inline: auto; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; transition: box-shadow .2s var(--ease); }
.faq__item[open] { box-shadow: var(--shadow-sm); }
.faq__q { list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 600; color: var(--ink); font-size: 1.08rem; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q .plus { width: 26px; height: 26px; flex: 0 0 auto; position: relative; transition: transform .25s var(--ease); }
.faq__q .plus::before, .faq__q .plus::after { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); background: var(--ocean-600); }
.faq__q .plus::before { width: 14px; height: 2.4px; }
.faq__q .plus::after { width: 2.4px; height: 14px; transition: transform .25s var(--ease); }
.faq__item[open] .plus::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }
.faq__a { padding: 0 24px 22px; color: var(--text); }
.faq__a p { margin: 0; }

/* ---------- Booking ------------------------------------------------------ */
.book { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.book__info ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 18px; }
.book__info li { display: flex; gap: 14px; align-items: flex-start; }
.book__info .ic { width: 46px; height: 46px; border-radius: 12px; background: rgba(255,255,255,.12); display: grid; place-items: center; flex: 0 0 auto; }
.book__info .ic svg { width: 22px; height: 22px; color: #fff; }
.book__info b { color: #fff; display: block; }
.book__info a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.book__info p { margin: 0; color: #cfe6ea; font-size: .96rem; }

.form-card { background: #fff; border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-lg); color: var(--text); }
.form-card h3 { color: var(--ink); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; color: var(--ink); font-size: .92rem; margin-bottom: 6px; }
.field .req { color: var(--coral-600); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm);
  font: inherit; font-size: .98rem; color: var(--ink); background: #fff; transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ocean-500); box-shadow: 0 0 0 4px var(--ocean-100); }
.field textarea { resize: vertical; min-height: 92px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: .82rem; color: var(--muted); margin: 6px 0 0; }
.form-success { display: none; padding: 18px; border-radius: var(--radius); background: #e4f6ee; color: var(--good); font-weight: 600; border: 1px solid #bfe6d4; margin-bottom: 16px; }
.form-success.is-shown { display: block; }
@media (max-width: 820px) { .book { grid-template-columns: 1fr; } }

/* Klara booking CTA card */
.book-cta__inner { background: #fff; border-radius: var(--radius-lg); padding: 36px 30px; box-shadow: var(--shadow-lg); text-align: center; }
.book-cta__ic { width: 64px; height: 64px; border-radius: 50%; background: var(--coral-100); color: var(--coral-600); display: grid; place-items: center; margin: 0 auto 18px; }
.book-cta__ic svg { width: 30px; height: 30px; }
.book-cta h3 { color: var(--ink); margin-bottom: .4em; }
.book-cta p { color: var(--muted); }
.book-cta .btn { margin-top: 8px; }
.book-cta__note { font-size: .8rem; color: var(--muted); margin: 16px 0 0; }

/* Locations grid */
.locations { margin-top: clamp(44px, 6vw, 68px); }
.locations__title { color: #fff; text-align: center; margin-bottom: 26px; }
.loc { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); padding: 22px; }
.loc__ic { width: 42px; height: 42px; border-radius: 11px; background: rgba(255,255,255,.12); display: grid; place-items: center; margin-bottom: 14px; }
.loc__ic svg { width: 20px; height: 20px; color: #fff; }
.loc b { color: #fff; display: block; margin-bottom: 6px; font-size: 1.02rem; }
.loc p { color: #cfe0ea; font-size: .92rem; margin: 0; line-height: 1.5; }

/* honeypot */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- CTA strip ---------------------------------------------------- */
.cta-strip { text-align: center; }
.cta-strip h2 { color: #fff; max-width: 18ch; margin-inline: auto; }
.cta-strip p { color: #cfe6ea; max-width: 52ch; margin-inline: auto; }

/* ---------- Footer -------------------------------------------------------- */
.site-footer { background: var(--ocean-900); color: #b7d6db; padding: 64px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: #fff; font-family: var(--font-sans); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: #b7d6db; }
.site-footer a:hover { color: #fff; }
.footer__brand .brand__name { color: #fff; }
.footer__brand .brand__sub { color: var(--coral-200); }
.footer__brand p { font-size: .92rem; margin-top: 14px; max-width: 34ch; }
.footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .94rem; }
.footer__contact { font-size: .94rem; font-style: normal; display: grid; gap: 12px; }
.footer__contact div { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact svg { width: 18px; height: 18px; color: var(--ocean-400); flex: 0 0 auto; margin-top: 3px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: #84b0b8; }
.footer__bottom a { color: #84b0b8; }
.footer__disclaimer { font-size: .78rem; color: #6f9aa3; margin-top: 14px; max-width: 90ch; }
@media (max-width: 880px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Privacy & Cookie Policy (fine print) ------------------------- */
.legal { background: var(--sand-100); border-top: 1px solid var(--line); padding: clamp(40px, 6vw, 64px) 0; }
.legal .container { max-width: 880px; }
.legal__h { font-size: clamp(1.4rem, 3vw, 1.8rem); color: var(--ink); margin-bottom: .15em; }
.legal__meta { font-size: .82rem; color: var(--muted); margin-bottom: 1.6em; }
.legal h3 { font-family: var(--font-sans); font-size: 1rem; color: var(--ink); margin: 1.5em 0 .4em; }
.legal p, .legal li { color: var(--muted); font-size: .9rem; line-height: 1.65; }
.legal ul { padding-left: 1.2rem; margin-bottom: 1rem; }
.legal li { margin-bottom: .35rem; }
.legal a { color: var(--ocean-600); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Sticky mobile booking bar ------------------------------------ */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: none; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px -16px rgba(16,42,51,.4);
}
.mbar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 8px 6px; border-radius: 12px; font-weight: 700; font-size: .76rem; color: var(--ink); text-align: center; }
.mbar svg { width: 22px; height: 22px; }
.mbar--ghost { color: var(--ink); }
.mbar--ghost svg { color: var(--ocean-600); }
.mbar--ghost:hover { color: var(--ink); background: var(--ocean-50); }
.mbar--primary { background: var(--coral-500); color: #fff; box-shadow: 0 8px 18px -8px rgba(44,129,41,.85); }
.mbar--primary svg { color: #fff; }
.mbar--primary:hover { background: var(--coral-600); color: #fff; }
@media (max-width: 720px) { .mobile-bar { display: flex; } body { padding-bottom: 76px; } }

/* ---------- Reveal animation --------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* skip link */
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; transition: top .2s; }
.skip:focus { top: 12px; color: #fff; }

/* small print / disclaimer block */
.disclaimer-band { background: var(--sand-100); border-top: 1px solid var(--line); }
.disclaimer-band p { font-size: .84rem; color: var(--muted); margin: 0; max-width: 95ch; }
