:root {
  color-scheme: light;
  --deep-navy: #252d65;
  --medical-blue: #0047BA;
  --signal-cyan: #0087fe;
  --warm-ivory: #f2f2f2;
  --joint-amber: #f79428;
  /* Darker amber used only where a 3:1 UI-contrast guarantee is required
     (e.g. focus rings) against both light and dark backgrounds; the
     brand amber above stays unchanged everywhere else. */
  --joint-amber-focus: #b96f1e;
  /* Lighter cyan used only for small always-visible label text on dark
     navy backgrounds, where the brand cyan above falls short of the
     4.5:1 text-contrast minimum; large/decorative cyan uses (icon
     strokes) keep --signal-cyan unchanged. Hero headline accent uses
     --joint-amber to match evidence stats. */
  --signal-cyan-text: #40a5fe;
  --ink: #3c3a37;
  --muted: #696969;
  --rule: #cdcdcd;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(37, 45, 101, .15);
  --font-serif: "Fraunces", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --heading-weight: 450;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--warm-ivory);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body:has(dialog[open]) {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--joint-amber-focus);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: .75rem;
  z-index: 20;
  transform: translateY(-180%);
  border-radius: 999px;
  background: var(--warm-ivory);
  color: var(--deep-navy);
  padding: .75rem 1rem;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 72px;
  padding: 0 clamp(1.25rem, 4vw, 3.5rem);
  background: rgba(37, 45, 101, .94);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(14px);
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}

.logo img {
  display: block;
  width: auto;
  height: 2.35rem;
  max-width: min(52vw, 15.75rem);
}

.site-footer .logo img {
  height: 2.65rem;
  max-width: min(100%, 17.5rem);
}

.trademark {
  font-size: .58em;
  line-height: 0;
  vertical-align: super;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2rem);
}

.nav-links a,
.nav-cta {
  color: rgba(255, 255, 255, .84);
  font-family: var(--font-sans);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.nav-links a:hover {
  color: var(--signal-cyan);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: .28rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: .75rem;
  background: rgba(0, 135, 254, .1);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 1.15rem;
  height: 2px;
  margin: 0 auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  transition: transform .2s ease, opacity .2s ease;
}

.site-header.is-nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header.is-nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header.is-nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-cta {
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  padding: .75rem 1.15rem;
  background: rgba(0, 135, 254, .12);
  cursor: pointer;
  font-family: inherit;
}

.nav-cta:hover {
  background: var(--medical-blue);
}

.section,
.hero,
.booking {
  padding: clamp(4.5rem, 9vw, 7rem) clamp(1.25rem, 4vw, 3.5rem);
}

.section-dark {
  background:
    radial-gradient(circle at 18% 22%, rgba(0, 135, 254, .22), transparent 34rem),
    linear-gradient(145deg, var(--deep-navy), #1e2654 62%, #181f47);
  color: var(--white);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
  min-height: calc(100svh - 72px);
  overflow: hidden;
}

.hero::after,
.evidence::before,
.booking::before {
  content: "";
  position: absolute;
  inset: auto -8% 7% -8%;
  height: 9rem;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 94 C150 20 280 20 430 94 S760 168 1200 32' fill='none' stroke='%2364B7FF' stroke-width='3' stroke-linecap='round' opacity='.18'/%3E%3C/svg%3E") center / cover no-repeat;
  pointer-events: none;
}

.hero-copy,
.hero-visual,
.section-heading,
.why-choose-grid,
.how-layout,
.evidence-grid,
.video-carousel,
.awards-panel,
.about-dossier,
.faq-list,
.booking-card {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--medical-blue);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.section-dark .eyebrow,
.booking-card .eyebrow {
  color: var(--signal-cyan-text);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: var(--heading-weight);
  letter-spacing: -.035em;
}

h1 {
  max-width: none;
  margin-bottom: 1.5rem;
  font-size: clamp(3rem, 7.5vw, 6rem);
  line-height: .98;
  text-wrap: balance;
}

.hero h1 span {
  display: block;
  margin-top: .08em;
  color: var(--joint-amber);
  font-variation-settings: "SOFT" 70;
}

h2 {
  margin-bottom: 1rem;
  color: var(--deep-navy);
  font-size: clamp(2rem, 4.4vw, 3.85rem);
  line-height: 1.02;
}

.section-dark h2,
.booking-card h2 {
  color: var(--white);
}

.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.85rem);
  line-height: 1.02;
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.2rem, 1.85vw, 1.75rem);
  line-height: 1.1;
}

.lede,
.section-heading p,
.booking-card p {
  color: rgba(255, 255, 255, .86);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.8;
}

.lede {
  font-size: clamp(1.08rem, 1.7vw, 1.28rem);
  line-height: 1.75;
}

.section-heading {
  max-width: 760px;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-heading p {
  max-width: 620px;
  color: var(--muted);
}

.section-dark .section-heading p {
  color: rgba(255, 255, 255, .82);
}

/* Keep these subheads on one line on desktop; orphans were from 620px max-width */
#evidence .section-heading,
#videos .section-heading {
  max-width: none;
}

#evidence .section-heading > p:not(.eyebrow),
#videos .section-heading > p:not(.eyebrow) {
  max-width: none;
  white-space: nowrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  padding: .95rem 1.35rem;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover,
.step:hover,
.carousel-btn:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--medical-blue), #0087fe);
  color: var(--white);
  box-shadow: 0 18px 34px rgba(0, 71, 186, .34);
}

.button-ghost {
  border: 1px solid rgba(255, 255, 255, .34);
  color: var(--white);
  background: rgba(255, 255, 255, .08);
}

.floating-consultation {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 25;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-height: 3.35rem;
  border: 1px solid rgba(0, 135, 254, .52);
  border-radius: 999px;
  padding: .7rem 1rem .7rem .75rem;
  background: linear-gradient(135deg, rgba(37, 45, 101, .96), rgba(0, 71, 186, .96));
  color: var(--white);
  box-shadow: 0 18px 44px rgba(37, 45, 101, .28);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  letter-spacing: -.01em;
  isolation: isolate;
}

.floating-consultation::before {
  content: "";
  position: absolute;
  inset: -.35rem;
  z-index: -1;
  border-radius: inherit;
  background: rgba(0, 135, 254, .18);
  animation: consultation-pulse 2.4s ease-out 1.2s 2;
}

.floating-consultation:hover {
  transform: translateY(-2px);
}

.floating-consultation-icon {
  width: 1.45rem;
  height: 1.45rem;
  fill: none;
  stroke: var(--signal-cyan);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.hero-actions,
.cta-trust,
.proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
}

.hero-actions {
  margin: 1.75rem 0 1.5rem;
}

.hero-actions .button-primary {
  min-height: 56px;
  padding: 1.05rem 1.6rem;
  font-size: 1.05rem;
}

.proof-row span,
.cta-trust span {
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  padding: .55rem .8rem;
  color: rgba(255, 255, 255, .78);
  font-size: .82rem;
}

.awards-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.75rem;
  margin-top: 1.15rem;
}

.awards-row img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  padding: .55rem;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 1rem;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65), 0 10px 24px rgba(0, 0, 0, .15);
}

.gait-card {
  display: grid;
  gap: .85rem;
  padding: .85rem;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .055));
  box-shadow: var(--shadow);
}

.gait-scene {
  position: relative;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 1.35rem;
  padding: .35rem .25rem 0;
  background: rgba(37, 45, 101, .34);
  overflow: hidden;
}

.gait-scene::before {
  content: "";
  position: absolute;
  inset: 8% 6% 18%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(0, 135, 254, .2), transparent 68%);
  filter: blur(4px);
  pointer-events: none;
}

.gait-scene.gait-video {
  padding: 0;
}

.gait-video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
}

.gait-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.outcome-card {
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 1.4rem;
  padding: 1.15rem 1.25rem;
  background: rgba(37, 45, 101, .72);
  backdrop-filter: blur(12px);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.metrics span {
  color: rgba(255, 255, 255, .78);
  font-size: clamp(.95rem, 1.25vw, 1.04rem);
  line-height: 1.45;
}

.metrics .metric-value {
  display: block;
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.metric--cited {
  display: flex;
  flex-direction: column;
}

.citation-chip {
  align-self: flex-start;
  margin-top: .45rem;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(0, 135, 254, .82);
  cursor: pointer;
  font-family: "IBM Plex Mono", monospace;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.35;
  text-decoration: underline;
  text-transform: uppercase;
  text-underline-offset: .22em;
}

.citation-chip:hover,
.citation-chip:focus-visible,
.citation-chip[aria-expanded="true"] {
  color: #66b8ff;
  outline: none;
}

.citation-chip:focus-visible {
  box-shadow: 0 0 0 2px rgba(0, 135, 254, .45);
}

.citation-popover {
  position: fixed;
  z-index: 40;
  width: min(22rem, calc(100vw - 1.5rem));
  margin: 0;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 1rem;
  padding: .95rem 1rem 1rem;
  background: rgba(37, 45, 101, .96);
  box-shadow: 0 18px 42px rgba(2, 10, 24, .42);
  backdrop-filter: blur(14px);
  color: rgba(255, 255, 255, .86);
  font-size: .78rem;
  line-height: 1.55;
}

.citation-popover-title {
  margin: 0 0 .55rem;
  color: rgba(0, 135, 254, .9);
  font-family: "IBM Plex Mono", monospace;
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.citation-popover-text {
  margin: 0;
}

.citation-popover-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.citation-popover-list li + li {
  margin-top: .75rem;
  padding-top: .75rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.citation-popover a {
  color: rgba(0, 135, 254, .95);
  text-decoration: underline;
  text-underline-offset: .18em;
}

.citation-popover a:hover,
.citation-popover a:focus-visible {
  color: #99d4ff;
}

.hero-testimonial {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 1.25rem;
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(12px);
}

.hero-testimonial p {
  margin: 0 0 .65rem;
  color: rgba(255, 255, 255, .9);
  font-family: var(--font-serif);
  font-size: clamp(.98rem, 1.25vw, 1.15rem);
  font-weight: 520;
  line-height: 1.3;
}

.hero-testimonial cite {
  color: rgba(0, 135, 254, .82);
  font-family: "IBM Plex Mono", monospace;
  font-size: .68rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.why-choose {
  background:
    radial-gradient(circle at 12% 18%, rgba(0, 135, 254, .16), transparent 20rem),
    var(--warm-ivory);
}

#how {
  background: var(--warm-ivory);
}

.why-choose-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(300px, 1.08fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.why-choose-copy .section-heading {
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.why-choose h2 span {
  display: block;
  color: var(--medical-blue);
  font-variation-settings: "SOFT" 55;
}

.why-choose-visual {
  margin: 0;
  max-width: min(100%, 28rem);
  border: 1px solid var(--rule);
  border-radius: 1.25rem;
  overflow: hidden;
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 14px 36px rgba(37, 45, 101, .08);
}

.why-choose-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 602 / 401;
  object-fit: cover;
}

.why-cards-panel {
  border-radius: 1.7rem;
  padding: clamp(1.15rem, 2.4vw, 1.65rem);
  background:
    radial-gradient(circle at 92% 8%, rgba(0, 135, 254, .28), transparent 12rem),
    var(--medical-blue);
  box-shadow: var(--shadow);
}

.why-cards {
  display: grid;
  gap: .85rem;
}

.why-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 1.15rem;
  padding: 1.1rem 1.25rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .07));
  box-shadow: 0 10px 28px rgba(8, 18, 32, .14);
}

.why-card-icon {
  font-size: 1.5rem;
  line-height: 1;
  margin-top: .1rem;
  flex-shrink: 0;
}

.why-card h3 {
  margin-bottom: .35rem;
  color: var(--white);
  font-size: 1.02rem;
  line-height: 1.3;
}

.why-card p {
  margin: 0;
  color: rgba(255, 255, 255, .84);
  font-size: .92rem;
  line-height: 1.65;
}

.how-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .82fr);
  column-gap: clamp(2rem, 5vw, 4.5rem);
  row-gap: clamp(1.25rem, 2.5vw, 1.75rem);
  align-items: start;
}

.how-eyebrow {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
}

.how-intro-head {
  grid-column: 1;
  grid-row: 2;
}

.how-intro-head h2 {
  margin-top: 0;
}

.how-intro-head p {
  margin: 0;
  max-width: none;
  color: var(--muted);
  font-size: clamp(.95rem, 1.35vw, 1.08rem);
  line-height: 1.45;
  white-space: nowrap;
}

.how-aside {
  grid-column: 2;
  grid-row: 2 / 4;
  display: grid;
  gap: clamp(1rem, 2vw, 1.35rem);
  align-self: stretch;
}

#how .steps {
  grid-column: 1;
  grid-row: 3;
}

.how-video-carousel {
  width: 100%;
}

.how-video-carousel .video-carousel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.how-video-carousel .video-track {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.42fr) minmax(0, .78fr);
  align-items: center;
  gap: clamp(.35rem, 1vw, .55rem);
  overflow: hidden;
  padding: .35rem 0 1rem;
  min-height: clamp(260px, 34vw, 360px);
}

.how-video-carousel .video-card {
  min-height: clamp(220px, 30vw, 320px);
}

.how-video-carousel .video-card.is-active {
  transform: translateY(-.3rem) scale(1.03);
  box-shadow: 0 24px 56px rgba(37, 45, 101, .2);
}

.how-video-carousel .video-card-shadow {
  opacity: .36;
  filter: saturate(.72);
  transform: scale(.86);
}

.how-video-carousel .video-card-shadow .video-card-content p,
.how-video-carousel .video-card-shadow .video-category {
  display: none;
}

.how-video-carousel .video-card h3 {
  font-size: clamp(1.1rem, 2.1vw, 1.45rem);
}

.how-video-carousel .video-card p {
  font-size: .9rem;
  line-height: 1.5;
}

.how-video-carousel .video-play {
  width: 42px;
  height: 42px;
  font-size: .74rem;
}

.steps {
  display: grid;
}

.step-item {
  display: contents;
}

.how-testimonial {
  align-self: stretch;
  border: 1px solid var(--rule);
  border-radius: 1.6rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background:
    radial-gradient(circle at 92% 0%, rgba(0, 135, 254, .14), transparent 12rem),
    var(--warm-ivory);
  box-shadow: var(--shadow);
}

.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1rem;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  padding: 1.35rem 0;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: transform .2s ease;
}

.step-item:first-child .step {
  padding-top: 0;
}

.step span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  color: var(--medical-blue);
  font-weight: 600;
}

.step strong {
  display: block;
  grid-column: 2;
  margin-bottom: .35rem;
  font-size: 1.05rem;
}

.step em {
  display: block;
  grid-column: 2;
  color: var(--muted);
  font-style: normal;
  line-height: 1.72;
}

.step.is-active span {
  background: var(--deep-navy);
  color: var(--white);
}

.step.is-active strong {
  color: var(--medical-blue);
}

.how-testimonial-quote {
  margin: 0;
  color: var(--deep-navy);
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 2.6vw, 2.1rem);
  font-weight: 520;
  line-height: 1.2;
}

.how-testimonial-body {
  margin: 1.1rem 0 0;
  color: var(--muted);
  line-height: 1.72;
}

.how-testimonial-person {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

.how-testimonial-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--deep-navy);
  color: var(--signal-cyan);
  font-weight: 600;
}

.how-testimonial-person strong,
.how-testimonial-person em {
  display: block;
}

.how-testimonial-person em {
  margin-top: .2rem;
  color: var(--muted);
  font-style: normal;
  font-size: .92rem;
}

.evidence {
  position: relative;
  overflow: hidden;
}

/* ponytail: hero + evidence are both section-dark; hairline + top tint so they read as separate sections */
.hero + .evidence.section-dark {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(100, 183, 255, 0.22);
}

.hero + .evidence.section-dark::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), transparent);
  pointer-events: none;
}

.evidence::before {
  top: 12%;
  bottom: auto;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.evidence-item {
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 1.4rem;
  padding: 1.4rem;
  background: rgba(255, 255, 255, .09);
}

.evidence-item strong {
  color: var(--joint-amber);
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 680;
  line-height: 1;
}

.evidence-item h3 {
  margin: 1rem 0 .6rem;
  color: var(--white);
}

.evidence-item p,
.evidence-item span {
  color: rgba(255, 255, 255, .78);
  line-height: 1.65;
}

.evidence-item span {
  display: block;
  margin-top: .9rem;
  color: var(--signal-cyan-text);
  font-family: "IBM Plex Mono", monospace;
  font-size: .75rem;
}

.evidence-categories {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin: 2.75rem 0 0;
  padding-top: .25rem;
}

.evidence-categories-lead {
  width: 100%;
  margin: 0 0 .35rem;
  color: rgba(255, 255, 255, .88);
  font-size: 1rem;
  line-height: 1.5;
}

.evidence-bubble {
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  padding: .85rem 1.45rem;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .92);
  cursor: pointer;
  font-family: "IBM Plex Mono", monospace;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.35;
  text-transform: none;
  transition: border-color .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}

.evidence-bubble:hover,
.evidence-bubble:focus-visible {
  border-color: rgba(0, 135, 254, .72);
  background: rgba(0, 135, 254, .12);
  color: #fff;
  outline: none;
}

.evidence-bubble:focus-visible {
  box-shadow: 0 0 0 2px rgba(0, 135, 254, .45);
}

.evidence-bubble[aria-pressed="true"] {
  border-color: var(--joint-amber);
  background: rgba(247, 148, 40, .14);
  color: #fff;
}

.evidence-bubble--long {
  text-transform: none;
  letter-spacing: .02em;
  font-size: .88rem;
}

.evidence-bars {
  margin-top: 1.25rem;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 1.4rem;
  padding: 1.3rem 1.3rem 1.75rem;
  background: rgba(255, 255, 255, .08);
}

.evidence-bars p {
  color: rgba(255, 255, 255, .84);
}

.bar {
  display: grid;
  grid-template-columns: 170px 1fr 56px;
  align-items: center;
  gap: 1rem;
  margin-top: .8rem;
  color: rgba(255, 255, 255, .84);
  font-size: .9rem;
}

.bar i {
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .17);
  overflow: hidden;
}

.bar i span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--joint-amber), #1ebbe7);
  transition: width 1s ease;
}

.bar b {
  color: var(--joint-amber);
}

.videos,
.awards,
.about-section,
.faq,
.conditions,
.coverage {
  background:
    radial-gradient(circle at 12% 20%, rgba(0, 135, 254, .18), transparent 20rem),
    var(--warm-ivory);
}

.conditions {
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  position: relative;
}

.conditions .section-heading {
  margin-bottom: clamp(1rem, 2.4vw, 1.65rem);
}

.awards {
  position: relative;
  overflow: hidden;
}

.awards::before {
  content: "";
  position: absolute;
  inset: 8% 6% auto auto;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 71, 186, .16), transparent 68%);
  pointer-events: none;
}

.awards-panel {
  max-width: 980px;
  margin: 0 auto;
  border: 1px solid rgba(198, 216, 234, .62);
  border-radius: 1.8rem;
  padding: clamp(.7rem, 2vw, 1.1rem);
  background: linear-gradient(180deg, rgba(255, 255, 255, .64), rgba(255, 255, 255, .28));
  box-shadow: 0 18px 54px rgba(37, 45, 101, .12);
  backdrop-filter: blur(16px);
}

.awards-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(.65rem, 1.8vw, 1.1rem) clamp(.75rem, 2.2vw, 1.25rem);
}

.awards-badges img {
  display: block;
  /* ponytail: size tuned so wrap ≈ 6+5 / 4+4+3 / 3+3+3+2; re-check if stamp set grows */
  width: clamp(4.75rem, 16vw, 7.5rem);
  height: clamp(4.75rem, 16vw, 7.5rem);
  object-fit: contain;
}

@media (max-width: 1024px) {
  .awards-badges img {
    width: clamp(4.75rem, 14vw, 6.5rem);
    height: clamp(4.75rem, 14vw, 6.5rem);
  }
}

@media (max-width: 760px) {
  .awards-badges img {
    width: clamp(4.75rem, 16vw, 7.25rem);
    height: clamp(4.75rem, 16vw, 7.25rem);
  }
}

.awards-panel figcaption {
  max-width: 720px;
  margin: 1rem auto 0;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.6;
  text-align: center;
  text-transform: uppercase;
}

.about-section {
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: "";
  position: absolute;
  inset: 6rem auto auto -8rem;
  width: 22rem;
  height: 22rem;
  border: 1px solid rgba(0, 71, 186, .16);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 135, 254, .14), transparent 68%);
  pointer-events: none;
}

.about-dossier {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

.about-panel {
  scroll-margin-top: 6rem;
  border: 1px solid rgba(198, 216, 234, .82);
  border-radius: clamp(1.35rem, 3vw, 2rem);
  background: rgba(255, 255, 255, .84);
  padding: clamp(1.25rem, 4vw, 2rem);
  box-shadow: 0 18px 54px rgba(37, 45, 101, .1);
  backdrop-filter: blur(16px);
}

.about-story {
  border-color: rgba(0, 135, 254, .55);
  background:
    linear-gradient(135deg, rgba(37, 45, 101, .96), rgba(24, 31, 71, .94)),
    var(--deep-navy);
  color: var(--white);
}

.about-story .about-panel-label {
  color: var(--signal-cyan-text);
}

.about-story-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}

.about-story h3,
.about-panel-heading h3,
.about-awards h3 {
  margin: 0;
  color: var(--deep-navy);
  font-size: clamp(1.58rem, 3.15vw, 2.75rem);
  line-height: 1.03;
}

.about-story h3 {
  color: var(--white);
}

.about-story-copy p {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, .84);
  font-size: clamp(1rem, 1.4vw, 1.08rem);
  line-height: 1.8;
}

.about-story-copy p:last-child {
  margin-bottom: 0;
}

.about-story-close {
  color: var(--signal-cyan-text);
  font-weight: 600;
}

.about-panel-label {
  margin-bottom: .75rem;
  color: var(--medical-blue);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.about-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.about-panel-heading > div {
  max-width: 820px;
}

.about-panel-link {
  flex: 0 0 auto;
  border: 1px solid rgba(0, 71, 186, .22);
  border-radius: 999px;
  color: var(--medical-blue);
  font-weight: 700;
  text-decoration: none;
  padding: .72rem 1rem;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.about-panel-link:hover,
.about-panel-link:focus-visible {
  background: var(--medical-blue);
  color: var(--white);
  transform: translateY(-1px);
}

.about-team-group + .about-team-group {
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
}

.about-team-group h4 {
  margin: 0 0 1rem;
  color: var(--deep-navy);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.about-team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .9rem;
}

.about-team-grid-compact,
.about-team-grid-featured {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-person-card {
  display: block;
  min-height: 100%;
  border: 1px solid rgba(198, 216, 234, .82);
  border-left: 4px solid var(--signal-cyan);
  border-radius: 1.1rem;
  background: var(--warm-ivory);
  padding: 0;
  box-shadow: 0 12px 32px rgba(37, 45, 101, .08);
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.about-person-card:hover,
.about-person-card:focus-within {
  transform: translateY(-2px);
  border-color: rgba(0, 71, 186, .45);
  box-shadow: 0 16px 38px rgba(37, 45, 101, .12);
}

.about-person-button {
  display: grid;
  grid-template-columns: 4.75rem minmax(0, 1fr);
  gap: .9rem;
  width: 100%;
  min-height: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: .9rem;
  text-align: left;
}

.about-person-card img {
  display: block;
  width: 4.75rem;
  height: 4.75rem;
  border-radius: .85rem;
  object-fit: cover;
  background: var(--warm-ivory);
}

.about-person-card h5 {
  margin: 0 0 .35rem;
  color: var(--deep-navy);
  font-family: var(--font-serif);
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  font-weight: var(--heading-weight);
  line-height: 1.15;
}

.about-person-role {
  margin: 0 0 .55rem;
  color: var(--medical-blue);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .07em;
  line-height: 1.45;
  text-transform: uppercase;
}

.about-person-card p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.55;
}

.about-person-hint {
  grid-column: 2;
  align-self: end;
  color: var(--medical-blue);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.about-awards {
  overflow: visible;
}

.about-awards .section-heading {
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.conditions-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, clamp(14rem, 21vw, 18rem));
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: start;
  position: relative;
  z-index: 1;
  overflow: visible;
  min-height: clamp(8rem, 12vw, 10rem);
}

.conditions-layout .condition-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}

.conditions-layout .condition-card {
  padding: .95rem 1rem;
}

.conditions-layout .condition-card h3 {
  margin-bottom: .55rem;
  font-size: clamp(1.02rem, 1.35vw, 1.12rem);
}

.conditions-layout .condition-card p {
  font-size: clamp(.78rem, .9vw, .88rem);
  line-height: 1.58;
}

.conditions-layout .condition-card span {
  margin-top: .55rem;
  padding: .32rem .54rem;
  font-size: clamp(.55rem, .65vw, .64rem);
}

.conditions-visual {
  position: absolute;
  top: clamp(-7rem, -8vw, -3.5rem);
  right: 0;
  margin: 0;
  width: min(17vw, 14.5rem);
  pointer-events: none;
}

.conditions-visual img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  opacity: .94;
  filter: drop-shadow(0 26px 38px rgba(37, 45, 101, .16));
}

.condition-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.condition-card,
.coverage-card {
  position: relative;
  border: 1px solid var(--rule);
  border-radius: 1.35rem;
  background: var(--warm-ivory);
  padding: 1.35rem;
  box-shadow: 0 14px 36px rgba(37, 45, 101, .08);
  overflow: hidden;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.condition-card::before,
.coverage-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--medical-blue), var(--signal-cyan));
}

.condition-card::after,
.coverage-card::after {
  content: "";
  position: absolute;
  inset: auto 1rem 1rem auto;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 135, 254, .2), transparent 70%);
  opacity: 0;
  transform: scale(.72);
  transition: opacity .28s ease, transform .28s ease;
}

.condition-card.is-visible,
.coverage-card.is-visible {
  transition-property: opacity, transform, box-shadow, border-color;
}

.condition-card:hover,
.coverage-card:hover {
  border-color: rgba(0, 71, 186, .38);
  box-shadow: 0 20px 48px rgba(37, 45, 101, .13);
  transform: translateY(-5px);
}

.condition-card:hover::after,
.coverage-card:hover::after {
  opacity: 1;
  transform: scale(1);
}

.condition-card h3,
.coverage-card h3 {
  margin-bottom: .75rem;
  color: var(--deep-navy);
}

.condition-card p,
.coverage-card p {
  color: var(--muted);
  line-height: 1.7;
}

.condition-card span {
  display: inline-block;
  margin-top: .7rem;
  border-radius: 999px;
  background: var(--warm-ivory);
  padding: .42rem .65rem;
  color: var(--medical-blue);
  font-family: "IBM Plex Mono", monospace;
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.45;
  max-width: 100%;
  white-space: normal;
}

.videos {
  position: relative;
  overflow: hidden;
}

.videos::before {
  content: "";
  position: absolute;
  inset: 7rem -6rem auto auto;
  width: min(42vw, 34rem);
  height: min(42vw, 34rem);
  border: 1px solid rgba(0, 71, 186, .14);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(0, 135, 254, .18), transparent 62%),
    repeating-radial-gradient(circle, transparent 0 2.4rem, rgba(0, 71, 186, .12) 2.45rem 2.5rem);
  pointer-events: none;
}

.video-carousel {
  display: grid;
  gap: 1rem;
}

.video-carousel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.video-status {
  margin: 0;
  color: var(--medical-blue);
  font-family: "IBM Plex Mono", monospace;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.video-controls {
  display: flex;
  gap: .7rem;
}

.video-track {
  display: grid;
  grid-template-columns: minmax(72px, .58fr) repeat(3, minmax(0, 1fr)) minmax(72px, .58fr);
  align-items: center;
  gap: clamp(.55rem, 1.4vw, 1rem);
  overflow: hidden;
  padding: .5rem 0 1.2rem;
}

.video-card {
  position: relative;
  display: grid;
  align-content: end;
  min-height: clamp(320px, 34vw, 500px);
  border: 0;
  border-radius: 1.35rem;
  padding: clamp(.85rem, 1.5vw, 1.15rem);
  background: var(--deep-navy);
  color: var(--white);
  cursor: pointer;
  font: inherit;
  overflow: hidden;
  text-align: left;
  transition: transform .28s cubic-bezier(.34, 1.12, .64, 1), box-shadow .28s ease, opacity .28s ease, filter .28s ease;
}

.video-card.is-active {
  box-shadow: 0 28px 70px rgba(37, 45, 101, .22);
  transform: translateY(-.35rem) scale(1.035);
}

.video-card-center {
  opacity: 1;
}

.video-card-shadow {
  opacity: .34;
  filter: saturate(.72);
  transform: scale(.88);
}

.video-card-shadow .video-play {
  position: relative;
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  transform: scale(.85);
  transition:
    opacity .24s ease,
    transform .24s cubic-bezier(.2, .8, .2, 1),
    visibility 0s linear .24s;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .video-card-shadow:hover,
  .video-card-shadow:focus-visible {
    opacity: 1;
    filter: saturate(1.05);
    transform: translateY(-.5rem) scale(1.05);
    box-shadow: 0 32px 80px rgba(37, 45, 101, .28);
    z-index: 3;
  }

  .video-track:has(.video-card-shadow:hover) .video-card.is-active,
  .video-track:has(.video-card-shadow:focus-visible) .video-card.is-active {
    opacity: .72;
    filter: saturate(.78);
    transform: scale(.98);
    box-shadow: 0 12px 28px rgba(37, 45, 101, .12);
  }

  .video-card-shadow:hover .video-play,
  .video-card-shadow:focus-visible .video-play {
    opacity: 1;
    visibility: visible;
    transform: scale(1.1);
    transition:
      opacity .24s ease,
      transform .24s cubic-bezier(.2, .8, .2, 1),
      visibility 0s linear 0s;
    animation: video-play-pulse 2.2s cubic-bezier(.2, .8, .2, 1) infinite;
  }

  .how-video-carousel .video-card-shadow:hover,
  .how-video-carousel .video-card-shadow:focus-visible {
    transform: translateY(-.45rem) scale(1.04);
    box-shadow: 0 28px 68px rgba(37, 45, 101, .26);
  }

  .video-card-shadow:hover::before,
  .video-card-shadow:focus-visible::before {
    transform: scale(1.1);
  }
}

@media (hover: hover) and (prefers-reduced-motion: reduce) {
  .video-card-shadow:hover,
  .video-card-shadow:focus-visible {
    opacity: 1;
    filter: saturate(1);
    transform: scale(.94);
    z-index: 3;
  }

  .video-track:has(.video-card-shadow:hover) .video-card.is-active,
  .video-track:has(.video-card-shadow:focus-visible) .video-card.is-active {
    opacity: .72;
    filter: saturate(.78);
    transform: scale(.98);
  }

  .video-card-shadow:hover .video-play,
  .video-card-shadow:focus-visible .video-play {
    opacity: 1;
    visibility: visible;
    transform: scale(1.06);
    transition:
      opacity .24s ease,
      transform .24s cubic-bezier(.2, .8, .2, 1),
      visibility 0s linear 0s;
  }
}

.video-card-shadow .video-card-content p,
.video-card-shadow .video-category {
  display: none;
}

.video-track.is-moving-next .video-card {
  animation: video-slide-next .34s cubic-bezier(.2, .8, .2, 1);
}

.video-track.is-moving-prev .video-card {
  animation: video-slide-prev .34s cubic-bezier(.2, .8, .2, 1);
}

.video-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(37, 45, 101, .1), rgba(37, 45, 101, .88)),
    var(--video-thumb) center / cover;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), filter .5s ease;
}

.video-card::after {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 1.25rem;
  pointer-events: none;
}

.video-card:hover::before,
.video-card:focus-visible::before,
.video-card.is-active::before {
  filter: saturate(1.12) contrast(1.05);
  transform: scale(1.05);
}

.video-card-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: .8rem;
}

.video-category {
  justify-self: start;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  background: rgba(37, 45, 101, .34);
  padding: .42rem .65rem;
  color: var(--signal-cyan-text);
  font-family: "IBM Plex Mono", monospace;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.video-card h3 {
  margin-bottom: 0;
  color: var(--white);
  font-size: clamp(1.2rem, 2.1vw, 1.9rem);
}

.video-card p {
  margin: 0;
  color: rgba(255, 255, 255, .8);
  line-height: 1.55;
}

.video-play {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--joint-amber), #1ebbe7);
  color: var(--deep-navy);
  font-weight: 900;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .22);
}

.video-dots {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.video-dot {
  width: 2.1rem;
  height: .38rem;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 71, 186, .22);
  cursor: pointer;
  padding: 0;
  transition: width .24s ease, background .24s ease;
}

.video-dot.is-active {
  width: 3.4rem;
  background: var(--medical-blue);
}

.coverage-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: 1rem;
  border-radius: 1.35rem;
  background: var(--deep-navy);
  padding: clamp(1.25rem, 3vw, 2rem);
  color: var(--white);
}

.coverage-banner h3 {
  margin-bottom: .35rem;
  color: var(--white);
}

.coverage-banner p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, .78);
}

.carousel-btn,
.text-button,
.modal-close {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.carousel-btn {
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--warm-ivory);
  padding: .75rem 1rem;
  color: var(--medical-blue);
  font-weight: 600;
  transition: transform .2s ease;
}

.text-button {
  margin-top: 1.4rem;
  background: transparent;
  color: var(--medical-blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

details {
  border: 1px solid var(--rule);
  border-radius: 1.1rem;
  background: var(--warm-ivory);
  padding: 1.1rem 1.2rem;
}

summary {
  color: var(--deep-navy);
  cursor: pointer;
  font-weight: 600;
}

details p {
  margin: .8rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.booking {
  position: relative;
  overflow: hidden;
}

.booking-card {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.booking-card .button {
  margin: .8rem 0 1.3rem;
}

.booking-card .cta-trust {
  justify-content: center;
}

.site-footer {
  background: #202020;
  color: rgba(255, 255, 255, .72);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(260px, .95fr) minmax(220px, .65fr);
  gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(2.4rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 3.5rem);
}

.footer-contact {
  display: grid;
  gap: .9rem;
}

.footer-social {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  width: max-content;
  max-width: 100%;
  margin: .05rem 0;
}

.footer-social a {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .04));
  color: rgba(255, 255, 255, .86);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  border-color: rgba(0, 135, 254, .58);
  background: rgba(0, 135, 254, .14);
  color: var(--signal-cyan);
  transform: translateY(-2px);
}

.footer-social-icon {
  width: 1.05rem;
  height: 1.05rem;
}

.footer-contact p,
.footer-disclaimer p {
  margin: 0;
}

.footer-contact-list {
  display: grid;
  gap: .75rem;
  margin: .4rem 0 0;
}

.footer-contact-list a,
.footer-contact-list > span {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  column-gap: .65rem;
  align-items: start;
  color: rgba(255, 255, 255, .78);
  line-height: 1.55;
  text-decoration: none;
}

.footer-contact-list a:hover,
.footer-links a:hover {
  color: var(--signal-cyan);
}

.footer-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: .15rem;
  color: var(--signal-cyan);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: .75rem;
}

.footer-links a,
.footer-links button {
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  padding: .55rem .75rem;
  background: transparent;
  color: rgba(255, 255, 255, .82);
  font: inherit;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.footer-links button:hover {
  color: var(--signal-cyan);
}

.footer-disclaimer {
  display: grid;
  gap: .45rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 1.2rem clamp(1.25rem, 4vw, 3.5rem);
  text-align: center;
}

.footer-disclaimer p {
  color: rgba(255, 255, 255, .62);
  font-size: .82rem;
  line-height: 1.55;
}

.footer-disclaimer a {
  color: rgba(255, 255, 255, .78);
  text-decoration: underline;
  text-underline-offset: .15em;
}

.footer-disclaimer a:hover {
  color: var(--signal-cyan);
}

.video-modal,
.quiz-modal,
.team-modal,
.publications-modal,
.privacy-dialog {
  width: min(620px, calc(100vw - 2rem));
  border: 0;
  border-radius: 1.5rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .35);
}

.publications-modal {
  width: min(760px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding-bottom: 1.25rem;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--joint-amber);
  background: var(--warm-ivory);
  box-shadow: var(--shadow), 0 28px 80px rgba(37, 45, 101, .28);
  color: var(--ink);
}

.publications-modal .modal-close {
  border: 1px solid var(--rule);
  background: var(--warm-ivory);
}

.publications-modal h2 {
  margin: 0 0 .35rem;
  color: var(--medical-blue);
  font-size: clamp(1.45rem, 3.5vw, 2rem);
  line-height: 1.15;
}

.publications-modal .eyebrow {
  margin-bottom: .85rem;
  padding-bottom: .85rem;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
}

.publications-modal-list {
  margin: 0;
  padding: .25rem .35rem .25rem 0;
  max-height: min(58vh, 34rem);
  overflow: auto;
  list-style: none;
  counter-reset: publication;
}

.publications-modal-list li {
  position: relative;
  margin: 0 0 1rem;
  padding: 0 0 1rem 2.5rem;
  border-bottom: 1px solid rgba(198, 216, 234, .75);
  line-height: 1.65;
  counter-increment: publication;
}

.publications-modal-list li::before {
  content: counter(publication) ".";
  position: absolute;
  left: 0;
  top: .1rem;
  width: 2rem;
  color: var(--medical-blue);
  font-family: "IBM Plex Mono", monospace;
  font-size: .82rem;
  font-weight: 700;
  text-align: right;
}

.publications-modal-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.publications-modal-citation {
  margin: 0 0 .45rem;
  color: var(--ink);
  font-size: .94rem;
  line-height: 1.65;
}

.publications-modal-link {
  display: inline-block;
  color: var(--medical-blue);
  font-family: "IBM Plex Mono", monospace;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.35;
  text-decoration: none;
  text-transform: uppercase;
}

.publications-modal-link:hover,
.publications-modal-link:focus-visible {
  color: var(--deep-navy);
  text-decoration: underline;
  text-underline-offset: .18em;
}

.publications-modal-error {
  margin: 0;
  padding-left: 0;
  color: var(--muted);
  line-height: 1.6;
  list-style: none;
}

.quiz-modal {
  width: min(860px, calc(100vw - 2rem));
}

.team-modal {
  width: min(820px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  background: var(--warm-ivory);
}

.video-modal::backdrop,
.quiz-modal::backdrop,
.team-modal::backdrop,
.publications-modal::backdrop,
.privacy-dialog::backdrop {
  background: rgba(37, 45, 101, .78);
  backdrop-filter: blur(8px);
}

.team-modal-layout {
  display: grid;
  grid-template-columns: minmax(9rem, 220px) 1fr;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
}

.team-modal-portrait {
  overflow: hidden;
  border-radius: 1rem;
  aspect-ratio: 1;
  background: var(--warm-ivory);
}

.team-modal-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-modal-copy h2 {
  margin: 0 0 .5rem;
  color: var(--medical-blue);
  font-size: clamp(1.4rem, 3.5vw, 1.95rem);
}

.team-modal-role {
  margin: 0 0 1rem;
  color: var(--deep-navy);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.team-modal-bio {
  color: var(--ink);
  line-height: 1.75;
}

.team-modal-bio p {
  margin: 0 0 1rem;
}

.team-modal-bio p:last-child {
  margin-bottom: 0;
}

.video-modal h2,
.quiz-modal h2 {
  font-size: clamp(1.75rem, 4.4vw, 2.8rem);
}

.video-modal {
  width: min(960px, calc(100vw - 2rem));
  background: var(--warm-ivory);
}

.video-frame-shell {
  aspect-ratio: 16 / 9;
  margin-top: 1rem;
  border-radius: 1rem;
  background: var(--deep-navy);
  overflow: hidden;
}

.video-frame-shell iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.modal-close {
  float: right;
  border-radius: 999px;
  background: var(--warm-ivory);
  padding: .55rem .8rem;
  color: var(--medical-blue);
  font-weight: 600;
}

.quiz-progress {
  height: 4px;
  margin: 0 0 1.75rem;
  border-radius: 999px;
  background: var(--rule);
  overflow: hidden;
}

.quiz-progress span {
  display: block;
  width: 25%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--joint-amber), #1ebbe7);
  transition: width .28s ease;
}

.quiz-step {
  display: none;
}

.quiz-step.is-active {
  display: block;
}

.quiz-options {
  display: grid;
  gap: .75rem;
}

.quiz-options button,
.quiz-options label {
  border: 1px solid var(--rule);
  border-radius: 1rem;
  background: var(--warm-ivory);
  padding: 1rem 1.1rem;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-align: left;
}

.quiz-options label {
  display: flex;
  align-items: center;
  gap: .65rem;
}

.quiz-options input {
  accent-color: var(--medical-blue);
}

.quiz-option-other {
  display: grid;
  gap: .75rem;
}

.quiz-other-field {
  padding: 0 .15rem;
}

.quiz-other-field .quiz-field {
  margin: 0;
}

.quiz-other-field input {
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: 1rem;
  background: var(--white);
  padding: .85rem 1rem;
  color: var(--ink);
  font: inherit;
}

.quiz-other-field input:hover,
.quiz-other-field input:focus {
  border-color: var(--medical-blue);
  outline: none;
}

.quiz-options button:hover,
.quiz-options label:hover {
  border-color: var(--medical-blue);
  background: var(--warm-ivory);
}

.quiz-options .button-primary,
.quiz-options .button-primary:hover {
  border: 0;
  background: linear-gradient(135deg, var(--medical-blue), #0087fe);
  color: var(--white);
  box-shadow: 0 18px 34px rgba(0, 71, 186, .34);
}

.quiz-options .button-primary:hover {
  transform: translateY(-2px);
}

.quiz-hint,
.quiz-note {
  color: var(--muted);
  line-height: 1.75;
}

.quiz-hint {
  margin-bottom: 1rem;
}

.quiz-note {
  margin: 1.5rem 0 0;
}

.quiz-next {
  width: 100%;
  margin-top: 1.25rem;
}

.quiz-intro {
  margin: 0 0 1.25rem;
  color: var(--muted);
  line-height: 1.75;
}

.quiz-form {
  margin-bottom: 0;
}

.quiz-form-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .quiz-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.quiz-field {
  display: grid;
  gap: .4rem;
}

.quiz-field-full {
  grid-column: 1 / -1;
}

.quiz-field-label {
  font-size: .9rem;
  font-weight: 700;
  color: var(--ink);
}

.quiz-form input,
.quiz-form select {
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: 1rem;
  background: var(--warm-ivory);
  padding: .9rem 1rem;
  color: var(--ink);
  font: inherit;
}

.quiz-form input:hover,
.quiz-form select:hover,
.quiz-form input:focus,
.quiz-form select:focus {
  border-color: var(--medical-blue);
  background: var(--warm-ivory);
  outline: none;
}

.quiz-form-error {
  margin: 0;
  color: #b42318;
  font-size: .85rem;
  line-height: 1.4;
}

.quiz-coverage-hint {
  margin: 1rem 0 0;
  padding: .85rem 1rem;
  border-radius: .85rem;
  background: rgba(0, 135, 254, .12);
  color: var(--ink);
  font-size: .92rem;
  line-height: 1.5;
}

.quiz-consent {
  margin: .85rem 0 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.55;
}

.quiz-qualification {
  margin-bottom: 1.25rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: 1.25rem;
  background:
    radial-gradient(circle at 18% 22%, rgba(0, 135, 254, .22), transparent 16rem),
    linear-gradient(145deg, var(--deep-navy), #1e2654 62%, #181f47);
  color: var(--white);
}

.quiz-qualification .eyebrow {
  margin-bottom: .75rem;
  color: var(--signal-cyan-text);
}

.quiz-qualification-title {
  margin-bottom: .85rem;
  color: var(--white);
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  line-height: 1.12;
}

.quiz-qualification p {
  margin: 0 0 .85rem;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(.95rem, 1.5vw, 1.05rem);
  line-height: 1.75;
}

.quiz-qualification p:last-child {
  margin-bottom: 0;
}

.quiz-qualification strong {
  color: var(--white);
  font-weight: 700;
}

.quiz-qualification [data-insurance-label] {
  color: var(--signal-cyan-text);
}

.quiz-booking-label {
  margin: 0 0 .75rem;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 700;
}

.quiz-booking-choices {
  margin-bottom: 1rem;
}

.quiz-booking-choice {
  width: 100%;
}

.quiz-booking-choice-primary {
  justify-content: center;
  min-height: 54px;
  margin-top: .15rem;
  text-align: center;
}

.quiz-booking-choice-primary.is-selected,
.quiz-booking-choice-primary:disabled {
  opacity: .55;
  transform: none;
  cursor: not-allowed;
  pointer-events: none;
}

.quiz-booking-choice:not(.button-primary):hover {
  border-color: var(--medical-blue);
  background: var(--warm-ivory);
}

.quiz-booking-choice:not(.button-primary).is-selected {
  border-color: var(--medical-blue);
  background: var(--warm-ivory);
}

.quiz-booking-choice:not(.button-primary):disabled,
.quiz-booking-choice:not(.button-primary)[aria-disabled="true"] {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
  border-color: var(--rule);
  background: var(--warm-ivory);
  color: var(--muted);
}

.quiz-booking-panel {
  margin-bottom: 1rem;
}

.quiz-callback-confirmation {
  margin: 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--rule);
  border-radius: 1rem;
  background: var(--warm-ivory);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.6;
}

.quiz-result .text-button {
  margin-top: .5rem;
}

.calendly-shell {
  min-width: 320px;
  height: min(700px, 68vh);
  margin-top: 1rem;
  border: 1px solid var(--rule);
  border-radius: 1rem;
  background: var(--warm-ivory);
  overflow: hidden;
}

.calendly-inline-widget-host,
.calendly-inline-widget-host iframe {
  display: block;
  width: 100%;
  min-height: min(700px, 68vh);
  border: 0;
}

.calendly-loading,
.calendly-fallback {
  padding: 1rem;
  text-align: center;
}

.calendly-fallback a {
  color: var(--medical-blue);
  font-weight: 600;
}

.quiz-result .button {
  width: 100%;
  margin-top: .75rem;
}

.booking-nudge {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  display: grid;
  gap: .75rem;
  width: min(360px, calc(100vw - 2rem));
  border: 1px solid rgba(0, 135, 254, .38);
  border-radius: 1rem;
  padding: 1rem;
  background: var(--warm-ivory);
  color: var(--deep-navy);
  box-shadow: 0 18px 42px rgba(37, 45, 101, .14);
}

.booking-nudge p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.booking-nudge .text-button {
  justify-self: start;
  margin-top: 0;
}

.booking-nudge .modal-close {
  justify-self: start;
  float: none;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .75s ease, transform .75s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.condition-card.reveal,
.coverage-card.reveal {
  transition-property: opacity, transform, box-shadow, border-color;
}

.condition-card.reveal.is-visible:hover,
.coverage-card.reveal.is-visible:hover {
  border-color: rgba(0, 71, 186, .38);
  box-shadow: 0 20px 48px rgba(37, 45, 101, .13);
  transform: translateY(-5px);
}

.delay-1 {
  transition-delay: .08s;
}

.delay-2 {
  transition-delay: .16s;
}

.delay-3 {
  transition-delay: .24s;
}

.delay-4 {
  transition-delay: .32s;
}

.delay-5 {
  transition-delay: .4s;
}

@keyframes consultation-pulse {
  0% {
    opacity: .9;
    transform: scale(.96);
  }

  100% {
    opacity: 0;
    transform: scale(1.22);
  }
}

@keyframes video-slide-next {
  0% {
    opacity: .76;
    transform: translateX(1.2rem) scale(.94);
  }
}

@keyframes video-slide-prev {
  0% {
    opacity: .76;
    transform: translateX(-1.2rem) scale(.94);
  }
}

@keyframes video-play-pulse {
  0%,
  100% {
    transform: scale(1.1);
  }

  50% {
    transform: scale(1.16);
  }
}

@media (max-width: 980px) {
  .site-header {
    flex-wrap: wrap;
    align-items: center;
  }

  .nav-toggle {
    display: inline-flex;
    order: 2;
    margin-left: auto;
  }

  .nav-cta {
    order: 3;
  }

  .nav-links {
    display: none;
    order: 4;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    margin-top: .75rem;
    padding-top: .75rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
  }

  .site-header.is-nav-open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: .85rem 0;
  }

  .hero,
  .how-layout,
  .why-choose-grid {
    grid-template-columns: 1fr;
  }

  .how-aside {
    display: contents;
  }

  .how-eyebrow {
    grid-column: 1;
    grid-row: 1;
  }

  .how-intro-head {
    grid-column: 1;
    grid-row: 2;
  }

  .how-intro-head p {
    white-space: normal;
  }

  .how-video-carousel {
    grid-column: 1;
    grid-row: 3;
  }

  #how .steps {
    grid-column: 1;
    grid-row: 4;
  }

  .how-testimonial {
    grid-column: 1;
    grid-row: 5;
  }

  .why-choose-visual {
    max-width: min(100%, 24rem);
  }

  .hero {
    min-height: auto;
  }

  .evidence-grid,
  .condition-grid,
  .conditions-layout .condition-grid,
  .coverage-grid,
  .faq-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .conditions-layout {
    grid-template-columns: 1fr;
  }

  .conditions-visual {
    display: none;
  }

  .about-story-grid {
    grid-template-columns: 1fr;
  }

  .about-panel-heading {
    flex-direction: column;
  }

  .about-team-grid,
  .about-team-grid-compact,
  .about-team-grid-featured {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .video-track {
    grid-template-columns: minmax(54px, .45fr) repeat(3, minmax(0, 1fr)) minmax(54px, .45fr);
  }

  .video-card {
    min-height: 310px;
  }

  .video-card h3 {
    font-size: clamp(1.1rem, 2.8vw, 1.55rem);
  }

  .video-card p {
    display: none;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 66px;
  }

  .logo img {
    height: 2.05rem;
    max-width: min(58vw, 12rem);
  }

  /* ponytail: hero + FAB cover booking; orphan header CTA wrapped left and looked lopsided */
  .nav-cta {
    display: none;
  }

  .proof-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem .75rem;
  }

  .proof-row span {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: .6rem .65rem;
    line-height: 1.35;
  }

  .how-intro-head p {
    white-space: normal;
  }

  #evidence .section-heading > p:not(.eyebrow),
  #videos .section-heading > p:not(.eyebrow) {
    white-space: normal;
  }

  .floating-consultation {
    min-width: 3.35rem;
    padding: .75rem;
  }

  .floating-consultation span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .why-choose-visual {
    display: none;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .button {
    justify-content: center;
  }

  .metrics,
  .science-stats,
  .evidence-grid,
  .condition-grid,
  .conditions-layout .condition-grid,
  .coverage-grid,
  .faq-list {
    grid-template-columns: 1fr;
  }

  .about-team-grid,
  .about-team-grid-compact,
  .about-team-grid-featured {
    grid-template-columns: 1fr;
  }

  /* Video library: show track first, compact nav row below (desktop order unchanged) */
  #videos .video-carousel {
    display: flex;
    flex-direction: column;
  }

  #videos .video-track {
    order: 1;
    grid-template-columns: minmax(36px, .22fr) minmax(0, 1fr) minmax(36px, .22fr);
  }

  #videos .video-carousel-top {
    order: 2;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
  }

  #videos .video-dots {
    order: 3;
  }

  /* Desktop renders 5 slots; mobile grid only fits 3 neighbors */
  #videos .video-track .video-card:first-child,
  #videos .video-track .video-card:last-child {
    display: none;
  }

  #videos .video-card {
    min-height: clamp(280px, 72vw, 380px);
  }

  #videos .video-card-shadow {
    min-height: clamp(220px, 58vw, 300px);
  }

  #videos .video-card-shadow h3 {
    display: none;
  }

  .how-video-carousel .video-carousel-foot {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
  }

  .how-video-carousel .video-controls,
  #videos .video-controls {
    flex-direction: row;
    align-items: center;
    flex-shrink: 0;
    gap: .55rem;
  }

  .how-video-carousel .carousel-btn,
  #videos .carousel-btn {
    width: auto;
    min-width: 4.25rem;
    padding: .62rem .95rem;
  }

  .how-video-carousel .video-track {
    min-height: clamp(220px, 58vw, 300px);
  }

  .how-video-carousel .video-card {
    min-height: clamp(200px, 52vw, 280px);
  }

  .coverage-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .awards-panel {
    padding-inline: clamp(.85rem, 3.5vw, 1.25rem);
  }

  .bar {
    grid-template-columns: 1fr;
    gap: .4rem;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-direction: column;
  }

  .booking-nudge {
    right: 1rem;
    left: 1rem;
    width: auto;
  }
}

@media (max-width: 520px) {
  .about-person-button {
    grid-template-columns: 1fr;
  }

  .about-person-card img {
    width: 5.5rem;
    height: 5.5rem;
  }

  .about-person-hint {
    grid-column: 1;
  }

  .team-modal-layout {
    grid-template-columns: 1fr;
  }

  .team-modal-portrait {
    max-width: 12rem;
  }
}

/* ==== Cookie consent & privacy choices ==== */
.consent-banner {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 40;
  display: grid;
  gap: .55rem;
  width: min(36rem, calc(100vw - 2rem));
  border: 1px solid rgba(0, 135, 254, .38);
  border-radius: 1rem;
  padding: 1rem 1.15rem;
  background: var(--white);
  box-shadow: 0 18px 42px rgba(37, 45, 101, .16);
  font-size: .9rem;
  transform: translateX(-50%) translateY(16px);
  opacity: 0;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .35s ease;
}

.consent-banner[hidden] {
  display: none;
}

.consent-banner.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.consent-banner-text {
  margin: 0;
  color: var(--ink);
  line-height: 1.5;
}

.consent-banner-text a {
  color: var(--medical-blue);
  font-weight: 700;
}

.consent-banner-gpc,
.privacy-dialog-gpc {
  margin: 0;
  padding: .45rem .65rem;
  border-radius: .6rem;
  background: rgba(0, 135, 254, .1);
  color: var(--deep-navy);
  font-size: .8rem;
  line-height: 1.4;
}

.consent-banner-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.consent-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  border: 0;
  border-radius: 999px;
  padding: .5rem 1rem;
  font: inherit;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.consent-btn:hover {
  transform: translateY(-2px);
}

.consent-btn-solid {
  background: linear-gradient(135deg, var(--medical-blue), #0087fe);
  color: var(--white);
  box-shadow: 0 12px 24px rgba(0, 71, 186, .28);
}

.consent-btn-outline {
  border: 1.5px solid var(--deep-navy);
  background: transparent;
  color: var(--deep-navy);
}

.consent-btn-ghost {
  min-height: auto;
  margin-right: auto;
  border: 0;
  background: transparent;
  padding: .4rem .1rem;
  font-size: .85rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: .15em;
}

@media (max-width: 720px) {
  .consent-banner {
    bottom: .6rem;
    width: calc(100vw - 1.2rem);
  }

  .consent-banner-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .consent-banner-actions .consent-btn-outline,
  .consent-banner-actions .consent-btn-solid {
    flex: 1 1 auto;
  }

  body.has-consent-banner .floating-consultation {
    bottom: calc(max(1rem, env(safe-area-inset-bottom)) + 6.5rem);
    transition: bottom .3s ease;
  }

  body.has-consent-banner:has([data-consent-banner]:not([hidden]) .consent-banner-gpc:not([hidden])) .floating-consultation {
    bottom: calc(max(1rem, env(safe-area-inset-bottom)) + 8.5rem);
  }
}

.privacy-dialog {
  background: var(--warm-ivory);
  color: var(--ink);
  max-height: calc(100vh - 2rem);
  overflow: auto;
}

.privacy-dialog .modal-close {
  border: 1px solid var(--rule);
  background: var(--white);
}

.privacy-dialog-intro {
  color: var(--muted);
  line-height: 1.65;
}

.privacy-category {
  padding: 1.1rem 0;
  border-top: 1px solid var(--rule);
}

.privacy-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.privacy-category-name {
  font-weight: 600;
  color: var(--deep-navy);
}

.privacy-category-desc {
  margin: .5rem 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: .95rem;
}

.privacy-toggle-locked {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.privacy-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  cursor: pointer;
}

.privacy-toggle input {
  position: absolute;
  inset: 0;
  width: 2.75rem;
  height: 1.6rem;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.privacy-toggle-track {
  display: inline-block;
  width: 2.75rem;
  height: 1.6rem;
  border-radius: 999px;
  background: var(--rule);
  transition: background .2s ease;
}

.privacy-toggle-track::before {
  content: "";
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  margin: .175rem;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
  transition: transform .2s ease;
}

.privacy-toggle input:checked + .privacy-toggle-track {
  background: var(--medical-blue);
}

.privacy-toggle input:checked + .privacy-toggle-track::before {
  transform: translateX(1.15rem);
}

.privacy-toggle input:focus-visible + .privacy-toggle-track {
  outline: 3px solid var(--joint-amber-focus);
  outline-offset: 2px;
}

.privacy-toggle input:disabled + .privacy-toggle-track {
  opacity: .5;
  cursor: not-allowed;
}

.privacy-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .75rem;
  margin-top: 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
