/* Swinnow Dental · SureSmile clear aligners · concept LP
   Brand: navy #002A4F, cyan #1AA0CE, white, Poppins 400/500/600 (local, OFL).
   Direction: T03 Delivery Journey × V03 product precision, adapted. */

/* ─── Fonts ──────────────────────────────────────────────────────────── */
@font-face { font-family: "Poppins"; src: url("assets/poppins-regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("assets/poppins-medium.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("assets/poppins-semibold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }

/* ─── Tokens ─────────────────────────────────────────────────────────── */
:root {
  --navy: #002A4F;
  --navy-hover: #00396B;
  --cyan: #1AA0CE;          /* accent: large type, rules, icons; 4.8:1 on navy */
  --cyan-ink: #0B6F93;      /* small cyan-family text on white, 5.7:1 */
  --cyan-soft: #EAF6FB;
  --white: #FFFFFF;

  --text: #22384F;          /* 12:1 on white */
  --muted: #4B5D70;         /* 6.8:1 on white, 6.2:1 on cyan-soft */
  --line: #DCE6EE;
  --line-strong: #B9CAD8;
  --field: #74879A;         /* input border, 3.6:1 on white */
  --error: #B42318;

  --on-dark: #FFFFFF;
  --on-dark-muted: #B9C9D9; /* 8.6:1 on navy */
  --on-dark-line: rgba(255, 255, 255, .16);

  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: clamp(20px, 4.5vw, 64px);
  --max: 1360px;
  --section: clamp(72px, 9vw, 148px);
  --radius-lg: clamp(20px, 2.4vw, 32px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dock-h: 72px;

  /* MATRAFOX owner layer (verified project palette; see design-manifest.md) */
  --mf-accent: #FF6700;
  --mf-accent-text: #FF8A3D;
  --mf-ink: #0A0A0A;
  --mf-font: Arial, Helvetica, sans-serif;
}

/* ─── Base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (min-width: 960px) { body { font-size: 1.0625rem; } }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0; color: var(--navy); font-weight: 600; text-wrap: balance; }
p { margin: 0; }
strong, b { font-weight: 600; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.journey :focus-visible,
.consult__intro :focus-visible { outline-color: var(--cyan); }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.nowrap { white-space: nowrap; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -120px; z-index: 200;
  padding: 12px 18px; border-radius: 10px;
  background: var(--navy); color: #fff; font-weight: 500; text-decoration: none;
}
.skip:focus { top: 12px; }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: clamp(16px, 2vw, 24px);
  font-size: .78rem; font-weight: 500; line-height: 1.4;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--cyan-ink);
}
.eyebrow::before { content: ""; flex: none; width: 28px; height: 1.5px; background: var(--cyan); }
.eyebrow--on-dark { color: var(--cyan); }

.journey h2, .routine h2, .local h2, .faq h2, .consult h2 {
  font-size: clamp(2rem, 1.1rem + 3.2vw, 4rem);
  line-height: 1.06;
  letter-spacing: -.035em;
}

/* ─── Buttons ────────────────────────────────────────────────────────── */
.btn {
  --btn-h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: var(--btn-h);
  padding: 0 7px 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit; font-size: 1rem; font-weight: 500; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, box-shadow .2s ease, transform .2s var(--ease);
}
.btn--primary { background: var(--navy); color: #fff; box-shadow: 0 12px 28px -16px rgba(0, 42, 79, .6); }
.btn--primary:hover { background: var(--navy-hover); }
.btn--primary:active { transform: translateY(1px); }
.btn__icon {
  display: grid; place-items: center; flex: none;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--cyan); color: var(--navy);
  transition: transform .25s var(--ease);
}
.btn:hover .btn__icon { transform: translateX(3px); }
.btn--lg { --btn-h: 60px; font-size: 1.0625rem; padding-left: 30px; }
.btn--lg .btn__icon { width: 44px; height: 44px; }
.btn--sm { --btn-h: 46px; padding: 0 22px; font-size: .9375rem; }
.btn--block { width: 100%; justify-content: space-between; }
.btn--ghost { --btn-h: 46px; padding: 0 22px; background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--cyan-soft); }

/* ─── Owner top bar ──────────────────────────────────────────────────── */
.mf-topbar {
  background: var(--mf-ink); color: #E6E6E6;
  font-family: var(--mf-font); font-size: .8125rem; line-height: 1.45;
  text-align: center; padding: 0 var(--gutter);
}
.mf-topbar strong { color: #fff; font-weight: 700; }
.mf-topbar a {
  display: inline-flex; align-items: center; min-height: 44px; margin-left: 6px;
  color: var(--mf-accent-text); text-underline-offset: 3px;
}
.mf-topbar a:focus-visible { outline-color: var(--mf-accent-text); }

/* ─── Header ─────────────────────────────────────────────────────────── */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 84px; padding-block: 8px;
}
.brand { display: block; flex: none; border-radius: 8px; }
.brand img { width: 144px; }
.site-nav { display: none; }
.site-nav ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border-radius: 999px; font-size: .9375rem; font-weight: 500;
  color: var(--navy); text-decoration: none;
  transition: background-color .2s ease;
}
.site-nav a:hover { background: var(--cyan-soft); }
.site-header__cta { display: none; }
@media (min-width: 700px) { .site-header__cta { display: inline-flex; } }
@media (min-width: 960px) { .brand img { width: 168px; } }
@media (min-width: 1080px) { .site-nav { display: block; } }

/* ─── 1 · Hero ───────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden; overflow: clip;
  padding-block: clamp(32px, 5vw, 80px) clamp(56px, 6vw, 96px);
}
.hero__grid { display: grid; gap: clamp(32px, 4vw, 72px); align-items: center; }
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
}

.hero h1 {
  font-size: clamp(2.35rem, .9rem + 4.6vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -.042em;
}
.hero__lede {
  margin-top: clamp(18px, 2vw, 28px);
  max-width: 33em;
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
  line-height: 1.6;
}
.hero__actions {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  margin-top: clamp(26px, 3vw, 40px);
}
.hero__note { font-size: .875rem; color: var(--muted); }

.hero__figure { position: relative; z-index: 0; margin: 0; }
.hero__frame {
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: #C9DDED;
}
.hero__frame img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 88% 55%;
}
@media (min-width: 960px) { .hero__frame { aspect-ratio: 1.08 / 1; } }

.hero__halo {
  position: absolute; z-index: -1;
  width: 46%; aspect-ratio: 1;
  top: -16%; right: -13%;
  overflow: visible;
}
.hero__halo-ring { fill: none; stroke: var(--cyan); stroke-width: 1.2; }
.hero__halo-dot { fill: var(--cyan); }

.hero__caption {
  display: flex; align-items: baseline; gap: 12px;
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: .8125rem; line-height: 1.5; color: var(--muted);
}
.fig-label {
  flex: none; font-size: .72rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--navy);
}

.spec { display: grid; margin: clamp(40px, 5vw, 80px) 0 0; border-top: 1px solid var(--line); }
.spec__item {
  display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.spec dt {
  padding-top: 2px; font-size: .72rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.spec dd { margin: 0; font-weight: 500; color: var(--navy); }
@media (min-width: 760px) {
  .spec { grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
  .spec__item { display: block; padding: 22px 24px 24px 0; border-bottom: 0; }
  .spec__item + .spec__item { padding-left: 24px; border-left: 1px solid var(--line); }
  .spec dt { margin-bottom: 6px; }
}

/* ─── 2 · Journey (navy chapter) ─────────────────────────────────────── */
.journey {
  position: relative;
  padding-block: var(--section);
  background: var(--navy); color: var(--on-dark-muted);
}
.journey h2, .journey h3, .journey h4 { color: var(--on-dark); }
.journey__grid { display: grid; gap: clamp(40px, 5vw, 96px); }
.journey__lede { margin-top: 20px; max-width: 30em; }

.rail { display: none; }
@media (min-width: 960px) {
  .journey__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .journey__sticky { position: sticky; top: 48px; }
  .rail {
    display: grid; margin: 44px 0 0; padding: 0; list-style: none;
    border-left: 1px solid var(--on-dark-line);
  }
}
.rail__item {
  position: relative; padding: 10px 0 10px 22px;
  font-size: .9375rem; color: var(--on-dark-muted);
  transition: color .3s ease;
}
.rail__item span { margin-right: 10px; font-weight: 500; color: var(--cyan); font-variant-numeric: tabular-nums; }
.rail__item::before {
  content: ""; position: absolute; left: -1px; top: 8px; bottom: 8px; width: 2px;
  background: var(--cyan); transform: scaleY(0); transform-origin: top;
  transition: transform .35s var(--ease);
}
.js-journey .rail__item.is-active { color: var(--on-dark); }
.js-journey .rail__item.is-active::before { transform: scaleY(1); }

.steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--on-dark-line); }
.step {
  display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); gap: 14px;
  padding-block: clamp(28px, 3.4vw, 48px);
  border-bottom: 1px solid var(--on-dark-line);
}
@media (min-width: 600px) {
  .step { grid-template-columns: clamp(5rem, 9vw, 8.5rem) minmax(0, 1fr); gap: clamp(16px, 2vw, 32px); }
}
.step__num {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 4.25rem);
  font-weight: 500; line-height: .95; letter-spacing: -.04em;
  color: var(--cyan); font-variant-numeric: tabular-nums;
  transition: opacity .4s ease;
}
.js-journey .step:not(.is-active) .step__num { opacity: .4; }
.step h3 {
  margin-bottom: 10px;
  font-size: clamp(1.25rem, 1.05rem + .8vw, 1.75rem);
  line-height: 1.25; letter-spacing: -.02em;
}
.step p { max-width: 34em; }

.plan {
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: clamp(24px, 3vw, 36px);
  padding: clamp(22px, 3vw, 40px);
  border: 1px solid rgba(26, 160, 206, .5);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(26, 160, 206, .14), rgba(26, 160, 206, 0) 62%);
}
.plan::after {
  content: ""; position: absolute; z-index: -1;
  width: 240px; aspect-ratio: 1; top: -120px; right: -90px;
  border: 1px solid rgba(26, 160, 206, .4); border-radius: 50%;
}
.plan__kicker {
  margin-bottom: 12px; font-size: .75rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--cyan);
}
.plan h4 {
  margin-bottom: 14px; max-width: 22ch;
  font-size: clamp(1.3rem, 1.05rem + .9vw, 1.875rem);
  line-height: 1.2; letter-spacing: -.025em;
}
.plan__label { margin-top: 26px; font-size: .875rem; font-weight: 500; color: var(--on-dark); }
.plan__questions {
  display: grid; margin: 12px 0 0; padding: 0; list-style: none;
  border-top: 1px solid var(--on-dark-line);
}
.plan__questions li {
  position: relative; padding: 12px 0 12px 26px;
  border-bottom: 1px solid var(--on-dark-line);
  color: #E3ECF4; font-size: .9375rem; line-height: 1.5;
}
.plan__questions li::before {
  content: ""; position: absolute; left: 0; top: calc(12px + .75em - 5px);
  width: 10px; height: 10px; border: 1.5px solid var(--cyan); border-radius: 50%;
}
@media (min-width: 700px) {
  .plan__questions { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
}

/* ─── 3 · Routine ────────────────────────────────────────────────────── */
.routine { padding-block: var(--section); }
.routine__grid { display: grid; gap: clamp(40px, 5vw, 96px); }
@media (min-width: 960px) {
  .routine__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; }
}
.routine__lede { margin-top: 18px; max-width: 28em; color: var(--muted); }

.figure-stat { display: flex; flex-direction: column; gap: 8px; margin-top: clamp(32px, 4vw, 60px); }
.figure-stat__value {
  font-size: clamp(4.5rem, 2.4rem + 9vw, 10.5rem);
  font-weight: 600; line-height: .86; letter-spacing: -.06em;
  color: var(--navy); white-space: nowrap; font-variant-numeric: tabular-nums;
}
.figure-stat__dash { color: var(--cyan); }
.figure-stat__label { font-size: clamp(1rem, .9rem + .5vw, 1.25rem); font-weight: 500; color: var(--navy); }

.rows { margin: 0; border-top: 1px solid var(--line); }
.row {
  display: grid; gap: 6px;
  padding-block: clamp(20px, 2.4vw, 30px);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 600px) {
  .row { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; align-items: baseline; }
}
.row dt {
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
  font-weight: 600; letter-spacing: -.01em; color: var(--navy);
}
.row dd { margin: 0; color: var(--muted); }

.care-note {
  display: flex; align-items: flex-start; gap: 12px;
  margin-top: 24px; padding: 16px 18px;
  border-radius: 16px; background: var(--cyan-soft);
  font-size: .9375rem; line-height: 1.55; color: var(--text);
}
.care-note__icon { flex: none; margin-top: 1px; color: var(--cyan-ink); }

/* ─── 4 · Local ──────────────────────────────────────────────────────── */
.local { padding-block: var(--section); background: var(--cyan-soft); }
.local__grid { display: grid; gap: clamp(36px, 5vw, 96px); align-items: center; }
@media (min-width: 960px) {
  .local__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}
.local__copy > p:not(.eyebrow) { margin-top: 18px; max-width: 32em; }
.local__aside {
  padding-left: 16px; border-left: 2px solid var(--cyan);
  font-size: .9375rem; color: var(--muted);
}
.local__aside em { font-style: normal; font-weight: 500; color: var(--navy); }

.local__place {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(26px, 4vw, 48px);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 32px 64px -44px rgba(0, 42, 79, .45);
}
.local__halo {
  position: absolute; z-index: -1;
  width: 78%; top: -34%; right: -30%;
  fill: none; stroke: var(--cyan); stroke-width: 1; opacity: .55;
}
.local__label {
  font-size: .75rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--cyan-ink);
}
.local__address {
  margin-top: 14px;
  font-style: normal; font-weight: 500;
  font-size: clamp(1.375rem, 1.1rem + 1.1vw, 2.125rem);
  line-height: 1.25; letter-spacing: -.02em; color: var(--navy);
}
.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; margin-top: 18px;
  font-weight: 500; color: var(--navy);
  text-decoration: underline; text-decoration-color: var(--cyan);
  text-decoration-thickness: 2px; text-underline-offset: 6px;
  transition: text-decoration-color .2s ease;
}
.text-link:hover { text-decoration-color: var(--navy); }
.text-link svg { flex: none; }

/* ─── 5 · FAQs ───────────────────────────────────────────────────────── */
.faq { padding-block: var(--section); }
.faq__grid { display: grid; gap: clamp(28px, 4vw, 96px); }
@media (min-width: 960px) {
  .faq__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
}
.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;
  min-height: 64px; padding-block: 16px;
  list-style: none; cursor: pointer;
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  font-weight: 500; line-height: 1.35; letter-spacing: -.01em; color: var(--navy);
}
.qa summary::-webkit-details-marker { display: none; }
.qa__icon {
  position: relative; flex: none;
  width: 36px; height: 36px;
  border: 1px solid var(--line-strong); border-radius: 50%;
  transition: background-color .2s ease, border-color .2s ease;
}
.qa__icon::before, .qa__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 12px; height: 1.75px; background: var(--navy);
  transform: translate(-50%, -50%);
  transition: transform .25s var(--ease);
}
.qa__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa[open] .qa__icon { background: var(--cyan-soft); border-color: var(--cyan); }
.qa[open] .qa__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.qa summary:hover .qa__icon { border-color: var(--navy); }
.qa p { max-width: 40em; padding: 0 0 22px; color: var(--muted); }
@media (min-width: 700px) { .qa p { padding-right: 56px; } }

/* ─── 6 · Consultation ───────────────────────────────────────────────── */
.consult {
  position: relative;
  overflow: hidden; overflow: clip;
  padding-block: var(--section);
  background: var(--navy); color: var(--on-dark-muted);
}
.consult::before {
  content: ""; position: absolute; pointer-events: none;
  width: min(80vw, 960px); aspect-ratio: 1;
  left: -24%; bottom: -60%;
  border: 1px solid rgba(26, 160, 206, .3); border-radius: 50%;
}
.consult h2 { color: var(--on-dark); }
.consult__grid { position: relative; display: grid; gap: clamp(36px, 5vw, 96px); align-items: center; }
@media (min-width: 960px) {
  .consult__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 34rem); }
}
.consult__lede { margin-top: 18px; max-width: 28em; font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); }
.consult__note {
  max-width: 28em; margin-top: 24px; padding-top: 18px;
  border-top: 1px solid var(--on-dark-line);
  font-size: .875rem;
}
#consult-title:focus:not(:focus-visible) { outline: none; }

/* ─── Shared form (one DOM, moved between embed and dialog) ──────────── */
.form-card {
  --card-pad: clamp(22px, 3vw, 40px);
  padding: var(--card-pad);
  border-radius: var(--radius-lg);
  background: #fff; color: var(--text);
  box-shadow: 0 40px 80px -48px rgba(0, 0, 0, .55);
}
.form-card :focus-visible { outline-color: var(--navy); }

.lead__demo {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; border-radius: 14px;
  background: var(--cyan-soft);
  font-size: .875rem; line-height: 1.5; color: var(--text);
}
.lead__demo a { font-weight: 500; color: var(--navy); text-underline-offset: 3px; }
.lead__demo-icon { flex: none; margin-top: 1px; color: var(--cyan-ink); }

.lead__fields { display: grid; gap: 18px; margin-top: 22px; }
.field label {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-bottom: 8px;
  font-size: .9375rem; font-weight: 500; color: var(--navy);
}
.field__req { font-size: .75rem; font-weight: 400; letter-spacing: .02em; color: var(--muted); }
.field input {
  width: 100%; min-height: 54px; padding: 12px 16px;
  border: 1.5px solid var(--field); border-radius: 14px;
  background: #fff; color: var(--navy);
  font: inherit; font-size: 1rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:hover { border-color: var(--navy); }
.field input:user-invalid { box-shadow: none; }
.field input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px var(--cyan); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, .35); }
.field__error { margin-top: 8px; font-size: .875rem; line-height: 1.45; color: var(--error); }

.lead__actions { margin-top: 24px; }

.lead__done { display: grid; justify-items: start; gap: 16px; padding-block: 6px; }
.lead__done:focus:not(:focus-visible) { outline: none; }
.lead__done-icon {
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--cyan-soft); color: var(--navy);
}
.lead__done-text { font-size: 1.125rem; line-height: 1.5; color: var(--navy); }

/* ─── Patient sticky CTA ─────────────────────────────────────────────── */
.dock {
  position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .96);
  border-top: 1px solid var(--line);
  transform: translateY(110%); visibility: hidden;
  transition: transform .25s var(--ease), visibility 0s linear .25s;
}
.dock.is-visible { transform: none; visibility: visible; transition: transform .25s var(--ease), visibility 0s; }
.dock__btn { width: 100%; justify-content: space-between; }
@supports (backdrop-filter: blur(1px)) {
  .dock { background: rgba(255, 255, 255, .86); backdrop-filter: blur(12px); }
}
@media (min-width: 700px) {
  .dock {
    left: 24px; right: auto; bottom: 24px; padding: 0;
    background: none; border: 0; backdrop-filter: none;
  }
  .dock__btn { width: auto; box-shadow: 0 18px 40px -16px rgba(0, 42, 79, .7); }
}

/* ─── Owner sticky shortcut (MATRAFOX layer) ─────────────────────────── */
.mf-switch {
  position: fixed; z-index: 45;
  right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 6px;
  max-width: calc(100vw - 32px);
  padding: 6px 6px 6px 16px;
  background: var(--mf-ink); color: #fff;
  border: 1px solid #3A3A3A; border-left: 4px solid var(--mf-accent); border-radius: 14px;
  box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .45);
  font-family: var(--mf-font);
  transition: opacity .2s ease, transform .25s var(--ease), bottom .25s var(--ease), visibility 0s;
}
.mf-switch.is-hidden {
  opacity: 0; transform: translateY(12px); visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, bottom .25s var(--ease), visibility 0s linear .2s;
}
.mf-switch__link {
  display: flex; flex-direction: column; justify-content: center;
  min-height: 44px; padding-right: 6px;
  color: #fff; text-decoration: none;
  font-size: .9375rem; font-weight: 700; line-height: 1.25;
}
.mf-switch__link small {
  margin-bottom: 2px; font-size: .625rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--mf-accent-text);
}
.mf-switch__close {
  display: none; place-items: center; flex: none;
  width: 44px; height: 44px; border: 0; border-radius: 10px;
  background: #232323; color: #fff; cursor: pointer;
}
.mf-switch__close:hover { background: #333; }
.mf-switch[data-ready] .mf-switch__close { display: grid; }
.mf-switch :focus-visible { outline: 3px solid var(--mf-accent-text); outline-offset: 3px; }
@media (min-width: 700px) {
  .mf-switch { right: 24px; bottom: 24px; }
}
@media (max-width: 699px) {
  .has-dock .mf-switch { bottom: calc(var(--dock-h) + 10px + env(safe-area-inset-bottom, 0px)); }
}

/* ─── Clinic footer ──────────────────────────────────────────────────── */
.site-footer { padding-block: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); background: #fff; }
.site-footer__grid { display: grid; gap: 24px; align-items: start; }
.site-footer__logo { width: 160px; }
.site-footer__info { font-size: .9375rem; color: var(--text); }
.site-footer__info a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 500; color: var(--navy); text-underline-offset: 4px;
}
.site-footer__fine { max-width: 46em; font-size: .8125rem; line-height: 1.6; color: var(--muted); }
@media (min-width: 860px) {
  .site-footer__grid { grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.5fr); gap: 48px; }
  .site-footer__info { padding-top: 8px; }
  .site-footer__fine { padding-top: 12px; }
}

/* ─── MATRAFOX CAMPAIGNS continuation ────────────────────────────────── */
.mf-preview {
  padding: clamp(48px, 6vw, 80px) var(--gutter) clamp(40px, 5vw, 56px);
  background: var(--mf-ink); color: #fff;
  border-top: 6px solid var(--mf-accent);
  font-family: var(--mf-font);
}
.mf-preview__inner { max-width: 1120px; margin: 0 auto; }
.mf-preview__brand { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 36px; }
.mf-preview__brand img { width: 190px; filter: invert(1); }
.mf-preview__brand span {
  font-size: .75rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--mf-accent-text);
}
.mf-preview__kicker {
  margin-bottom: 14px; font-size: .75rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--mf-accent-text);
}
.mf-preview h2 {
  max-width: 18em; margin-bottom: 20px;
  font-family: inherit; font-weight: 700; color: #fff;
  font-size: clamp(1.875rem, 1.2rem + 2.6vw, 3.25rem);
  line-height: 1.08; letter-spacing: -.03em;
}
.mf-preview p { max-width: 46em; font-size: 1rem; line-height: 1.65; color: #C6C6C6; }
.mf-preview__reason {
  margin: 30px 0; padding: 24px;
  border: 1px solid #333; border-radius: 18px; background: #151515;
}
.mf-preview h3 { margin-bottom: 10px; font-family: inherit; font-weight: 700; font-size: 1.25rem; line-height: 1.3; color: #fff; }
.mf-preview__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.mf-preview__cta, .mf-preview__secondary {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font-size: .9375rem; font-weight: 700; line-height: 1.3; text-decoration: none;
}
.mf-preview__cta { background: var(--mf-accent); color: var(--mf-ink); }
.mf-preview__cta:hover { background: #FF7A1F; }
.mf-preview__secondary { border: 1px solid #555; color: #fff; }
.mf-preview__secondary:hover { border-color: #888; }
.mf-preview .mf-preview__fine { margin-top: 28px; font-size: .8125rem; color: #AAAAAA; }
.mf-preview__fine a { color: var(--mf-accent-text); text-underline-offset: 3px; }
.mf-preview :focus-visible { outline: 3px solid var(--mf-accent-text); outline-offset: 4px; }
@media (max-width: 600px) {
  .mf-preview__brand img { width: 170px; }
  .mf-preview__reason { padding: 20px; }
  .mf-preview__actions { flex-direction: column; align-items: stretch; }
}

/* ─── Full-screen consultation dialog ────────────────────────────────── */
html.is-locked { overflow: hidden; }
html.is-locked body {
  position: fixed; left: 0; right: 0; width: 100%;
  overflow: hidden; padding-right: var(--sbw, 0px);
}

.sheet {
  position: fixed; z-index: 100; left: 0; right: 0;
  top: var(--sheet-top, 0px);
  height: var(--sheet-h, 100vh);
  display: flex; flex-direction: column;
  background: #fff; color: var(--text);
  opacity: 0; transform: translateY(16px);
  transition: opacity .2s ease, transform .24s var(--ease);
}
@supports (height: 100dvh) { .sheet { height: var(--sheet-h, 100dvh); } }
.sheet.is-open { opacity: 1; transform: none; }

.sheet__bar {
  position: relative; z-index: 3; flex: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: max(10px, env(safe-area-inset-top, 0px)) var(--gutter) 10px;
  border-bottom: 1px solid var(--line);
}
.sheet__logo { display: block; padding: 4px 8px; border-radius: 12px; background: #fff; }
.sheet__logo img { width: 128px; }
.sheet__close {
  display: grid; place-items: center; flex: none; margin-left: auto;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: #fff; color: var(--navy);
  cursor: pointer; transition: background-color .2s ease;
}
.sheet__close:hover { background: var(--cyan-soft); }

.sheet__body {
  position: relative; flex: 1 1 auto; min-height: 0;
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  scroll-padding-top: 16px; scroll-padding-bottom: 96px;
}
.sheet__layout {
  width: min(100% - 2 * var(--gutter), 1120px);
  margin-inline: auto;
  padding-top: clamp(20px, 3vh, 32px);
}
.sheet__eyebrow { margin-bottom: 12px; }
.sheet__intro h2 {
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3.5rem);
  line-height: 1.08; letter-spacing: -.035em;
}
.sheet__intro p:not(.eyebrow) { margin-top: 10px; max-width: 30em; color: var(--muted); }
#sheet-title:focus:not(:focus-visible) { outline: none; }

.form-card--sheet {
  --card-pad: 0px;
  padding: 20px 0 0; border-radius: 0; background: transparent; box-shadow: none;
}
/* Mobile: the action stays pinned at the bottom of the usable viewport. */
.sheet .lead__actions {
  position: sticky; bottom: 0; z-index: 2;
  margin: 20px calc(-1 * var(--gutter)) 0;
  padding: 12px var(--gutter) max(12px, env(safe-area-inset-bottom, 0px));
  background: #fff; border-top: 1px solid var(--line);
}

/* Short usable viewport (e.g. keyboard open): keep fields and action in view. */
.sheet.is-compact .sheet__logo,
.sheet.is-compact .sheet__eyebrow,
.sheet.is-compact .sheet__intro p:not(.eyebrow) { display: none; }
.sheet.is-compact .sheet__bar { padding-block: 6px; }
.sheet.is-compact .sheet__close { width: 44px; height: 44px; }
.sheet.is-compact .sheet__layout { padding-top: 12px; }
.sheet.is-compact .sheet__intro h2 { font-size: 1.375rem; }
.sheet.is-compact .form-card--sheet { padding-top: 12px; }
.sheet.is-compact .lead__fields { gap: 12px; margin-top: 14px; }

@media (min-width: 900px) {
  .sheet { background: var(--navy); color: var(--on-dark-muted); overflow: hidden; }
  .sheet::before {
    content: ""; position: absolute; pointer-events: none;
    width: 900px; aspect-ratio: 1; left: -320px; bottom: -480px;
    border: 1px solid rgba(26, 160, 206, .3); border-radius: 50%;
  }
  .sheet__bar { border-bottom-color: var(--on-dark-line); }
  .sheet__close { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
  .sheet__close:hover { background: rgba(255, 255, 255, .08); }
  .sheet__close:focus-visible { outline-color: var(--cyan); }
  .sheet__layout {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 32rem);
    gap: clamp(40px, 6vw, 96px); align-items: center; align-content: center;
    min-height: 100%; padding-block: 40px;
  }
  .sheet__intro h2 { color: #fff; }
  .sheet__intro p:not(.eyebrow) { color: var(--on-dark-muted); }
  .sheet__eyebrow { color: var(--cyan); }
  .sheet__intro :focus-visible { outline-color: var(--cyan); }
  .form-card--sheet {
    --card-pad: clamp(28px, 3vw, 40px);
    padding: var(--card-pad); border-radius: var(--radius-lg);
    background: #fff; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6);
  }
  .sheet .lead__actions {
    margin: 24px calc(-1 * var(--card-pad)) 0;
    padding: 12px var(--card-pad) 0;
    border-top: 0;
  }
}

/* ─── Motion (only when script.js enables it) ────────────────────────── */
.js-motion [data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.js-motion [data-reveal].is-in { opacity: 1; transform: none; }

.js-motion .hero__frame { animation: frame-in .9s var(--ease) both; }
.js-motion .hero__frame img { animation: img-settle 1.2s var(--ease) both; }
.js-motion .hero__halo-ring { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s .2s var(--ease) forwards; }
.js-motion .hero__halo-dot { opacity: 0; animation: fade-in .4s 1.3s ease forwards; }

@keyframes frame-in {
  from { clip-path: inset(5% 5% 5% 5% round var(--radius-lg)); }
  to { clip-path: inset(0 0 0 0 round var(--radius-lg)); }
}
@keyframes img-settle { from { transform: scale(1.07); } to { transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }

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

/* ─── Small screens ──────────────────────────────────────────────────── */
@media (max-width: 519px) {
  .hero__actions { align-items: stretch; }
  .hero .btn--lg { justify-content: space-between; padding-left: 22px; font-size: 1rem; gap: 10px; }
  .hero .btn--lg .btn__icon { width: 40px; height: 40px; }
  .hero__caption { flex-direction: column; gap: 2px; }
}

@media (forced-colors: active) {
  .btn__icon, .lead__done-icon { border: 1px solid CanvasText; }
  .eyebrow::before { background: CanvasText; }
}

/* Codex visual QA: keep the short mobile eyebrow in normal reading order. */
@media(max-width:699px){.hero .eyebrow,.sheet__eyebrow{display:block}.hero .eyebrow::before,.sheet__eyebrow::before{display:none}}

