/* AP Dental · implant consultation LP · private design concept
   Brand: DM Sans (local), teal #0A758D, white / light neutrals, charcoal. */

@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --teal: #0A758D;
  --teal-600: #08687E;
  --teal-700: #065466;
  --teal-50: #EDF5F7;
  --teal-100: #D6E8ED;
  --teal-light: #7CC6D5;
  --ink: #1A2023;
  --ink-2: #465256;
  --ink-3: #5B6A6F;
  --line: #D9E2E5;
  --line-soft: #E8EEF0;
  --field-line: #7E9095;
  --surface: #F3F6F7;
  --white: #FFFFFF;
  --danger: #B42318;
  --dark: #171C1F;
  --dark-2: #222A2E;
  --on-dark: #F4F7F8;
  --on-dark-2: rgba(244, 247, 248, .74);

  --radius-lg: 28px;
  --radius: 20px;
  --radius-sm: 14px;
  --gutter: clamp(20px, 5vw, 64px);
  --maxw: 1320px;
  --header-h: 84px;
  --section-y: clamp(72px, 9vw, 136px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --shadow-soft: 0 1px 2px rgba(23, 28, 31, .05), 0 18px 40px -24px rgba(23, 28, 31, .28);

  interpolate-size: allow-keywords;
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
address { font-style: normal; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

h1, h2, h3 { font-weight: 500; text-wrap: balance; }
h2 { font-size: clamp(2.05rem, 1.3rem + 2.6vw, 3.6rem); line-height: 1.04; letter-spacing: -0.034em; }
h3 { font-size: clamp(1.2rem, 1.06rem + .45vw, 1.45rem); line-height: 1.22; letter-spacing: -0.016em; }

.lede {
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 34em;
  text-wrap: pretty;
}

.eyebrow {
  margin-bottom: 18px;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
}

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: absolute; left: 16px; top: -120px; z-index: 100;
  padding: 12px 20px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 500; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px;
  border: 1px solid transparent; border-radius: 999px;
  font-size: 1rem; font-weight: 500; line-height: 1.15; text-align: center; text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}
.btn:focus-visible { outline-offset: 3px; }
.btn--primary {
  background: var(--teal); color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .16) inset, 0 12px 26px -16px rgba(10, 117, 141, .95);
}
.btn--primary:hover { background: var(--teal-600); }
.btn--primary:active { background: var(--teal-700); transform: translateY(1px); }
.btn--sm { min-height: 44px; padding: 8px 20px; font-size: .9375rem; }
.btn--lg { min-height: 58px; padding: 14px 30px; font-size: 1.0625rem; }
.btn--block { display: flex; width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; transform: none; }
.btn__icon { width: 20px; height: 20px; flex: none; transition: transform .2s var(--ease); }
.btn:hover .btn__icon { transform: translateX(3px); }

.tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px;
  border-radius: 999px; background: rgba(255, 255, 255, .2);
  font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}

/* ---------- Header (M01-style compact anchors) ---------- */

.masthead { position: absolute; inset: 0 0 auto 0; z-index: 40; padding: 14px var(--gutter) 0; }
.masthead__bar {
  display: flex; align-items: center; gap: 20px;
  width: min(100%, var(--maxw)); min-height: 56px; margin-inline: auto;
}
.masthead__logo { flex: none; display: block; border-radius: 8px; }
.masthead__logo img { width: auto; height: 40px; transition: height .25s var(--ease); }
.masthead__nav, .masthead__cta { display: none; }

@media (min-width: 1024px) {
  .masthead { position: fixed; }
  .masthead__bar {
    padding: 8px 8px 8px 18px;
    border: 1px solid rgba(23, 28, 31, .06); border-radius: 999px;
    background: rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: saturate(1.4) blur(16px);
    backdrop-filter: saturate(1.4) blur(16px);
    box-shadow: var(--shadow-soft);
    transition: background-color .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  }
  .js .masthead:not(.is-scrolled) .masthead__bar {
    background: rgba(255, 255, 255, 0); border-color: transparent; box-shadow: none;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .masthead__logo img { height: 44px; }
  .masthead.is-scrolled .masthead__logo img { height: 38px; }
  .masthead__nav { display: flex; gap: 2px; margin-left: auto; }
  .masthead__nav a {
    padding: 10px 14px; border-radius: 999px;
    font-size: .9375rem; color: var(--ink-2); text-decoration: none;
    transition: background-color .18s var(--ease), color .18s var(--ease);
  }
  .masthead__nav a:hover { background: var(--teal-50); color: var(--ink); }
  .masthead__cta { display: inline-flex; }
}

/* ---------- 1 · Hero ---------- */

.hero { padding: 96px 0 clamp(56px, 7vw, 104px); }
.hero__grid { display: grid; gap: 36px; }

.hero__title {
  margin-bottom: 22px;
  font-size: clamp(2.65rem, 1.2rem + 3.9vw, 4.9rem);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -0.044em;
}
.hero__title .line { display: block; }
.hero__title .line + .line { color: var(--teal); }

.hero__lede {
  max-width: 29em; margin-bottom: 30px;
  font-size: clamp(1.125rem, 1.02rem + .45vw, 1.375rem);
  line-height: 1.5; color: var(--ink-2); text-wrap: pretty;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }

.proof { max-width: 31rem; padding-top: 20px; border-top: 1px solid var(--line); }
.proof__main { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 1.0625rem; }
.stars { display: inline-flex; gap: 2px; color: var(--teal); }
.stars svg { width: 18px; height: 18px; }
.stars > svg { fill: currentColor; }
.stars__last { display: inline-flex; } /* last star: 90% fill via in-document gradient attribute (4.9 of 5) */
.proof__score { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.proof__outof { font-size: 1.0625rem; font-weight: 400; color: var(--ink-2); }
.proof__count { font-weight: 500; }
.proof__note { margin-top: 10px; font-size: .8125rem; line-height: 1.5; color: var(--ink-3); }
.proof__note a, .sources__list a { color: var(--teal); text-underline-offset: 3px; }

.hero__media {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--radius-lg); background: var(--surface);
}
.hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 40% 36%; }

.tagline {
  position: absolute; left: 12px; bottom: 12px;
  display: flex; flex-direction: column; gap: 1px;
  padding: 9px 14px; border-radius: 14px;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: .8125rem; line-height: 1.3; color: var(--ink-2);
  box-shadow: 0 10px 28px -18px rgba(23, 28, 31, .6);
}
.tagline strong { font-size: .9375rem; font-weight: 600; color: var(--ink); }

@media (min-width: 1024px) {
  .hero { padding-top: calc(var(--header-h) + 52px); }
  .hero__grid {
    grid-template-columns: minmax(0, 11fr) minmax(0, 13fr);
    gap: clamp(40px, 4.5vw, 84px);
    align-items: center;
  }
  .hero__media img { aspect-ratio: 1.06; max-height: min(78vh, 780px); object-position: 46% 40%; }
  .tagline { left: 20px; bottom: 20px; padding: 12px 18px; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__media { animation: unveil 1s var(--ease-out) both; }
  .hero__media img { animation: settle 1.4s var(--ease-out) both; }
  .tagline { animation: lift .6s var(--ease-out) .45s both; }
}
@keyframes unveil { from { clip-path: inset(8% 0 0 0 round var(--radius-lg)); } to { clip-path: inset(0 0 0 0 round var(--radius-lg)); } }
@keyframes settle { from { transform: scale(1.07); } }
@keyframes lift { from { opacity: 0; transform: translateY(10px); } }

/* ---------- 2 · Dentist ---------- */

.dentist { padding: var(--section-y) 0; background: var(--surface); }
.dentist__grid { display: grid; gap: 40px; }

.dentist__portrait {
  max-width: 560px; overflow: hidden;
  border-radius: var(--radius-lg); background: #CFAE86;
}
.dentist__portrait img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 28%; }

.dentist__body h2 { max-width: 13em; margin-bottom: 20px; }
.dentist__body .lede { margin-bottom: 30px; }

.creds { margin-bottom: 32px; border-top: 1px solid var(--line); }
.creds__row { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.creds dt { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.creds dd { font-size: 1.0625rem; font-weight: 500; }
.creds__note { display: block; margin-top: 2px; font-size: .8125rem; font-weight: 400; color: var(--ink-3); }

.quote blockquote { margin: 0; }
.quote figcaption { margin-top: 14px; font-size: .8125rem; line-height: 1.5; color: var(--ink-3); }
.quote figcaption strong { font-weight: 600; color: var(--ink); }

.quote--review {
  padding: 24px 26px 22px;
  border-radius: var(--radius); background: var(--white);
  box-shadow: var(--shadow-soft);
}
.quote--review blockquote p {
  font-size: clamp(1.125rem, 1.04rem + .35vw, 1.3125rem);
  font-weight: 450; line-height: 1.45; letter-spacing: -0.01em; text-wrap: pretty;
}

.facts { display: grid; border-top: 1px solid var(--line); }
.fact { display: flex; flex-direction: column; gap: 4px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.fact__title { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.012em; }
.fact span { font-size: .9375rem; color: var(--ink-2); }

@media (min-width: 640px) {
  .creds__row { grid-template-columns: 10rem 1fr; gap: 16px; align-items: baseline; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
}

@media (min-width: 1024px) {
  .dentist__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: clamp(40px, 5.5vw, 104px); row-gap: clamp(56px, 6vw, 88px);
    align-items: center;
  }
  .dentist__portrait { max-width: none; }
  .dentist__portrait img { aspect-ratio: 4 / 5; }
  .facts { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 0; }
  .fact { padding: 18px 0 0; border-top: 2px solid var(--ink); border-bottom: 0; }
  .fact__title { font-size: 1.25rem; }
}

/* ---------- 3 · Options ---------- */

.options { padding: var(--section-y) 0; }
.section-head { max-width: 46rem; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 { margin-bottom: 18px; }

.situations { display: grid; border-top: 1px solid var(--line); }
.situation { display: grid; align-content: start; gap: 10px; padding: 28px 0 30px; border-bottom: 1px solid var(--line); }
.situation__mark {
  margin-bottom: 8px;
  font-size: clamp(2.5rem, 1.8rem + 2.6vw, 4.4rem);
  font-weight: 400; line-height: 1; letter-spacing: -0.048em;
  color: var(--teal);
}
.situation p:last-child { max-width: 26em; color: var(--ink-2); }

@media (min-width: 900px) {
  .situations { grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 0; }
  .situation { padding: 30px 32px 6px 0; border-top: 1px solid var(--line); border-bottom: 0; }
  .situation + .situation { padding-left: 32px; border-left: 1px solid var(--line); }
}

.options__foot { display: grid; gap: 36px; margin-top: clamp(44px, 5.5vw, 80px); }

.consult { padding: clamp(24px, 3vw, 40px); border-radius: var(--radius-lg); background: var(--teal-50); }
.consult h3 { margin-bottom: 18px; }
.ticks { display: grid; gap: 12px; margin-bottom: 28px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; color: var(--ink); }
.ticks svg { width: 22px; height: 22px; margin-top: 1px; color: var(--teal); }

.quote--patient { display: flex; flex-direction: column; justify-content: center; }
.quote--patient::before { content: ""; display: block; width: 48px; height: 3px; margin-bottom: 22px; border-radius: 2px; background: var(--teal); }
.quote--patient blockquote p {
  font-size: clamp(1.8rem, 1.2rem + 2.3vw, 3.15rem);
  font-weight: 450; line-height: 1.08; letter-spacing: -0.034em; text-wrap: balance;
}
.quote--patient figcaption { margin-top: 18px; font-size: .875rem; }

@media (min-width: 900px) {
  .options__foot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 88px); align-items: center; }
}

/* ---------- 4 · Process (V02 chapter rhythm) ---------- */

.process { padding: var(--section-y) 0; background: var(--dark); color: var(--on-dark); }
.process .eyebrow { color: var(--teal-light); }
.process .lede { color: var(--on-dark-2); }
.process h2 { color: #fff; }
.section-head--split { display: grid; gap: 4px 64px; max-width: none; }

@media (min-width: 1024px) {
  .section-head--split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; }
  .section-head--split h2 { margin-bottom: 0; }
}

.chapters__list { display: grid; gap: 52px; }
.chapter { display: grid; gap: 22px; }

.chapter__media { overflow: hidden; border-radius: var(--radius); background: var(--dark-2); }
.chapter__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 32%; }
.chapter__media--detail img { object-position: 0% 46%; transform: scale(1.3); transform-origin: 18% 44%; }

.chapter__media--type,
.stage__item--type {
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--teal-700); color: #fff;
}
.chapter__media--type { aspect-ratio: 16 / 9; padding: 22px 24px; }
.typecard__num { font-size: clamp(4.2rem, 3rem + 5vw, 9rem); font-weight: 300; line-height: .88; letter-spacing: -0.06em; color: rgba(255, 255, 255, .94); }
.typecard__words { font-size: clamp(1.125rem, 1rem + .7vw, 1.6rem); font-weight: 500; line-height: 1.22; letter-spacing: -0.012em; }

.chapter__text .chapter__num {
  margin-bottom: 10px;
  font-size: .875rem; font-weight: 600; letter-spacing: .1em;
  font-variant-numeric: tabular-nums; color: var(--teal-light);
}
.chapter__text h3 {
  margin-bottom: 12px;
  font-size: clamp(1.55rem, 1.2rem + 1.25vw, 2.35rem);
  line-height: 1.08; letter-spacing: -0.028em; color: #fff;
}
.chapter__text p { max-width: 30em; color: var(--on-dark-2); }
.chapter__text .chip {
  display: inline-flex; margin-top: 18px; padding: 6px 13px;
  border: 1px solid rgba(255, 255, 255, .24); border-radius: 999px;
  font-size: .8125rem; color: var(--on-dark);
}

.stage { display: none; }

/* Without JS on wide screens: side-by-side static chapters. */
@media (min-width: 1024px) {
  html:not(.js) .chapter { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: center; }
}

/* With JS on wide screens: sticky photo stage beside advancing chapters. */
@media (min-width: 1024px) {
  .js .chapters {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: clamp(40px, 5.5vw, 104px); align-items: start;
  }
  .js .chapters__list { gap: 0; }
  .js .chapter {
    min-height: clamp(300px, 46vh, 470px);
    align-content: center; padding: 36px 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
    opacity: .85;
    transition: opacity .45s var(--ease);
  }
  .js .chapter:last-child { border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .js .chapter.is-active { opacity: 1; }
  .js .chapter__media {
    position: absolute; width: 1px; height: 1px; margin: -1px;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  .js .stage { display: block; position: sticky; top: calc(var(--header-h) + 36px); }

  .stage__frame {
    position: relative; overflow: hidden; isolation: isolate;
    width: 100%; aspect-ratio: 5 / 4; max-height: calc(100vh - var(--header-h) - 96px);
    border-radius: var(--radius-lg); background: var(--dark-2);
  }
  .stage__item {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: 50% 32%;
    opacity: 0; transform: scale(1.04);
    transition: opacity .55s var(--ease), transform 1.4s var(--ease-out);
  }
  .stage__item.is-active { opacity: 1; transform: scale(1); }
  /* Close detail of the illustrative scene: hand, scan and monitor (T01 alternation). */
  .stage__item--detail { object-position: 0% 45%; transform-origin: 18% 44%; transform: scale(1.5); }
  .stage__item--detail.is-active { transform: scale(1.4); }
  .stage__item--type { padding: clamp(28px, 3.5vw, 48px); }
  .stage__caption {
    position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 11px 16px; border-radius: 14px;
    background: rgba(17, 22, 24, .62);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    font-size: .875rem; color: #fff;
  }
  .stage__count { flex: none; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .78); }
}

.process__cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px;
  margin-top: clamp(48px, 6vw, 88px); padding: clamp(22px, 3vw, 32px);
  border-radius: var(--radius-lg); background: var(--dark-2);
}
.process__cta p { max-width: 34em; font-size: 1.125rem; color: var(--on-dark-2); }
.process__cta strong { font-weight: 600; color: #fff; }

/* ---------- 5 · FAQ (M06) ---------- */

.faq { padding: var(--section-y) 0; }
.faq__grid { display: grid; gap: 32px; }
.faq__head h2 { margin-bottom: 16px; }

.faq__list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); font-weight: 500; letter-spacing: -0.01em;
  border-radius: 8px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--teal-700); }
.qa__icon { flex: none; width: 24px; height: 24px; color: var(--teal); transition: transform .22s var(--ease); }
.qa[open] .qa__icon { transform: rotate(45deg); }
.qa__body { max-width: 40em; padding: 0 44px 24px 0; color: var(--ink-2); }

.qa::details-content {
  block-size: 0; overflow-y: clip;
  transition: block-size .22s var(--ease), content-visibility .22s allow-discrete;
}
.qa[open]::details-content { block-size: auto; }

@media (min-width: 1024px) {
  .faq__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(40px, 5.5vw, 104px); align-items: start; }
  .faq__head { position: sticky; top: calc(var(--header-h) + 36px); }
}

/* ---------- 6 · Request + shared form ---------- */

.request { padding: var(--section-y) 0; background: var(--teal-50); }
.request__grid { display: grid; gap: 36px; }
.request__intro h2 { margin-bottom: 18px; }

.visit { display: flex; gap: 14px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--teal-100); }
.visit__icon { flex: none; width: 24px; height: 24px; margin-top: 2px; color: var(--teal); }
.visit address { line-height: 1.6; color: var(--ink-2); }
.visit strong { font-weight: 600; color: var(--ink); }

.request__proof { display: flex; flex-direction: column; gap: 4px; margin-top: 24px; }
.request__proof strong { font-weight: 600; }
.request__proof span { font-size: .8125rem; color: var(--ink-3); }

.request__panel {
  padding: clamp(22px, 3.2vw, 44px);
  border-radius: var(--radius-lg); background: var(--white);
  box-shadow: var(--shadow-soft);
}

@media (min-width: 1024px) {
  .request__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(40px, 6vw, 112px); align-items: start; }
}

.lead__nojs {
  margin-bottom: 18px; padding: 12px 14px;
  border-radius: 12px; background: var(--teal-50);
  font-size: .9375rem; color: var(--ink);
}
.js .lead__nojs { display: none; }
.lead__required { margin-bottom: 18px; font-size: .875rem; color: var(--ink-3); }

.field { margin-bottom: 18px; }
.field__label { display: block; margin-bottom: 8px; font-size: .9375rem; font-weight: 500; }
.field__input {
  display: block; width: 100%; min-height: 54px; padding: 13px 16px;
  border: 1px solid var(--field-line); border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 1.0625rem; line-height: 1.3; color: var(--ink);
  -webkit-appearance: none; appearance: none;
  outline: 2px solid transparent; outline-offset: 0;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field__input:hover { border-color: #5E7177; }
.field__input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(10, 117, 141, .24); }
.field__input:focus-visible { outline: 2px solid transparent; }
.field__input[aria-invalid="true"] { border-color: var(--danger); }
.field__input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, .2); }
.field__input:disabled { background: var(--surface); cursor: not-allowed; }

.field__error {
  display: flex; align-items: flex-start; gap: 8px; margin-top: 8px;
  font-size: .875rem; font-weight: 500; line-height: 1.4; color: var(--danger);
}
.field__error[hidden] { display: none; }
.field__error svg { flex: none; width: 18px; height: 18px; margin-top: 1px; }

.lead__privacy { margin-top: 4px; font-size: .8125rem; line-height: 1.5; color: var(--ink-3); }
.lead__action { margin-top: 20px; }

.lead__status { font-size: .9375rem; line-height: 1.45; }
.lead__status.is-ok {
  display: flex; gap: 10px; margin-bottom: 12px; padding: 12px 14px;
  border-radius: 12px; background: var(--teal-50); color: var(--ink); font-weight: 500;
}
.lead__status.is-ok::before {
  content: ""; flex: none; width: 8px; height: 8px; margin-top: 8px;
  border-radius: 50%; background: var(--teal);
}
.lead__status.is-error { margin-bottom: 12px; font-weight: 500; color: var(--danger); }

.lead__submit .tag { background: rgba(255, 255, 255, .22); }

/* ---------- Footer + sources ---------- */

.foot { padding: 48px 0 40px; border-top: 1px solid var(--line); font-size: .875rem; color: var(--ink-2); }
.foot__top { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-bottom: 24px; }
.foot__logo { width: auto; height: 36px; }

.sources { margin-bottom: 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sources summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 0; cursor: pointer; list-style: none;
  font-weight: 500; color: var(--ink); border-radius: 6px;
}
.sources summary::-webkit-details-marker { display: none; }
.sources summary::after { content: "+"; font-size: 1.25rem; line-height: 1; color: var(--teal); }
.sources[open] summary::after { content: "\2013"; }
.sources__list { display: grid; gap: 10px; max-width: 72em; padding-bottom: 18px; line-height: 1.55; }
.sources__list strong { font-weight: 600; color: var(--ink); }

.foot__concept { font-weight: 500; color: var(--ink); }

/* ---------- Mobile sticky action ---------- */

.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 10px max(var(--gutter), env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: transform .22s var(--ease), opacity .22s var(--ease), visibility 0s linear 0s;
}
.dock.is-hidden {
  transform: translateY(110%); opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform .22s var(--ease), opacity .22s var(--ease), visibility 0s linear .22s;
}
.dock .btn { min-height: 52px; }

@media (max-width: 1023.98px) {
  .foot { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
}
@media (min-width: 1024px) {
  .dock { display: none; }
}

/* ---------- Full-screen consultation form (dialog) ---------- */

html.sheet-open, html.sheet-open body { overflow: hidden; }
html.sheet-open .dock { visibility: hidden; }

.sheet {
  position: fixed; inset: 0; top: var(--sheet-top, 0px); bottom: auto;
  width: var(--sheet-w, 100vw); max-width: none;
  height: 100vh; height: var(--sheet-h, 100dvh); max-height: none;
  margin: 0; padding: 0; border: 0; overflow: hidden;
  background: var(--white); color: var(--ink);
  opacity: 0; transform: translateY(14px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), overlay .22s allow-discrete, display .22s allow-discrete;
}
.sheet[open] { opacity: 1; transform: none; }
@starting-style {
  .sheet[open] { opacity: 0; transform: translateY(14px); }
}
.sheet::backdrop { background: rgba(23, 28, 31, .28); }

.sheet__layout { display: grid; height: 100%; }
.sheet__aside { display: none; }
.sheet__main { display: grid; grid-template-rows: auto minmax(0, 1fr); height: 100%; min-height: 0; }

.sheet__top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: calc(8px + env(safe-area-inset-top)) max(var(--gutter), env(safe-area-inset-right)) 8px max(var(--gutter), env(safe-area-inset-left));
  border-bottom: 1px solid var(--line-soft);
}
.sheet__logo { width: auto; height: 34px; }
.sheet__close {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 44px; min-height: 44px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--white);
  font-size: .9375rem; font-weight: 500; cursor: pointer;
  transition: background-color .15s var(--ease), border-color .15s var(--ease);
}
.sheet__close:hover { background: var(--surface); border-color: #C3CFD3; }
.sheet__close svg { width: 22px; height: 22px; }
/* Visually hidden on small screens but always the button's accessible name. */
.sheet__closetext {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.sheet__slot { display: grid; min-height: 0; }

/* Mobile and short screens: scrollable fields above a separately reserved action area. */
.sheet .lead { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; }
.sheet .lead__fields {
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: 24px max(var(--gutter), (100% - 34rem) / 2) 14px;
  scroll-padding-block: 20px;
}
.sheet .lead__action {
  margin: 0;
  padding: 12px max(var(--gutter), (100% - 34rem) / 2) calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-soft);
  background: var(--white);
}
.sheet .lead__status.is-ok, .sheet .lead__status.is-error { margin-bottom: 10px; }

.sheet__intro { margin-bottom: 26px; }
.sheet__intro .eyebrow { margin-bottom: 12px; }
.sheet__title {
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 1.4rem + 1.7vw, 2.9rem);
  line-height: 1.04; letter-spacing: -0.032em;
}
.sheet__title:focus { outline: none; }
.sheet__title:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; border-radius: 6px; }
.sheet__desc { max-width: 30em; color: var(--ink-2); }

/* Keyboard open (set from visualViewport): keep chrome compact so fields and action both fit. */
.sheet.kb-open .sheet__top { padding-top: 6px; padding-bottom: 6px; }
.sheet.kb-open .sheet__logo { height: 28px; }
.sheet.kb-open .lead__action { padding-top: 8px; padding-bottom: 8px; }
.sheet.kb-open .lead__fields { padding-top: 16px; }

@media (min-width: 1024px) and (min-height: 600px) {
  .sheet__layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .sheet__aside { display: block; position: relative; overflow: hidden; background: var(--dark); }
  .sheet__aside img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 30%; }
  .sheet__aside::after {
    content: ""; position: absolute; inset: 42% 0 0;
    background: linear-gradient(to top, rgba(12, 17, 19, .84), rgba(12, 17, 19, 0));
  }
  .sheet__asidecopy {
    position: absolute; z-index: 1;
    left: clamp(28px, 3vw, 48px); right: clamp(28px, 3vw, 48px); bottom: clamp(28px, 3vw, 48px);
    display: grid; gap: 16px; color: #fff;
  }
  .sheet__asidename { display: flex; flex-direction: column; font-size: .9375rem; color: rgba(255, 255, 255, .82); }
  .sheet__asidename strong { font-size: 1.25rem; font-weight: 600; color: #fff; }
  .sheet__asideproof { display: flex; flex-direction: column; gap: 4px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .24); }
  .sheet__asideproof strong { font-weight: 600; }
  .sheet__asideproof span { font-size: .8125rem; color: rgba(255, 255, 255, .8); }

  .sheet__top { padding: 20px clamp(28px, 3.5vw, 56px); border-bottom: 0; }
  .sheet__logo { height: 40px; }
  .sheet__close { padding: 0 14px 0 18px; }
  .sheet__closetext { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip-path: none; }

  /* Desktop: a bounded editorial form, vertically centred, with its action directly below the fields. */
  .sheet .lead { display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; }
  .sheet .lead__fields { overflow: visible; margin-top: auto; padding: 8px max(48px, (100% - 32rem) / 2) 0; }
  .sheet .lead__action { margin-bottom: auto; padding: 8px max(48px, (100% - 32rem) / 2) 56px; border-top: 0; }
}

/* ---------- Scroll reveal (applied by JS only to content not yet in view) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .will-reveal { opacity: 0; transform: translateY(22px); }
  .will-reveal.is-in {
    opacity: 1; transform: none;
    transition: opacity .7s var(--ease-out), transform .8s var(--ease-out);
    transition-delay: var(--reveal-delay, 0s);
  }
}

/* ---------- Reduced motion: complete static alternative ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .sheet, .sheet[open] { transform: none; }
  .stage__item, .stage__item.is-active { transform: none; }
  .stage__item--detail, .stage__item--detail.is-active { transform: scale(1.4); }
}

@media (forced-colors: active) {
  .btn, .sheet__close { border-color: ButtonText; }
  .field__input { border-color: FieldText; }
  .stars svg, .stars__last svg { fill: CanvasText; }
}

@media print {
  .masthead, .dock, .sheet, .stage { display: none !important; }
}

/* Original demo visuals; these labels are independent of clinic credentials. */
.demo-brand-note{display:block;font-size:.625rem;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3);line-height:1.1;margin-top:3px}.demo-image-disclosure{font-size:.8125rem;color:var(--ink-3);margin:-8px 0 18px}.image-note{padding:12px 16px;background:var(--surface);color:var(--ink-2);font-size:.8125rem;line-height:1.5}.editorial-note{font-size:.8125rem;line-height:1.5;color:var(--ink-3);margin-top:14px}.quote--review .editorial-message{font-size:clamp(1.125rem,1.04rem + .35vw,1.3125rem);font-weight:450;line-height:1.45}.quote--patient .editorial-message{font-size:clamp(1.8rem,1.2rem + 2.3vw,3.15rem);font-weight:450;line-height:1.08;letter-spacing:-.034em;text-wrap:balance}

.illustrative-chapter-label{padding:10px 14px;color:var(--on-dark);font-size:.75rem;line-height:1.45;background:var(--dark-2)}
