/* Primo Dental Wirral · dental implants concept preview
   Brand mode: refine. Montserrat headings, Inter body, Primo greens. */

@font-face {
  font-family: "Montserrat";
  src: url("assets/montserrat-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #5E9C53;        /* official Primo green: art, markers, large surfaces */
  --green-soft: #BFDEAD;   /* official soft green */
  --ink: #214A35;          /* contrast-safe deep green: text and action */
  --ink-deep: #16332A;
  --text: #1B2A22;
  --muted: #4D5E54;
  --line: #D6E4CF;
  --line-strong: #B4CBA8;
  --field-border: #7A9183;
  --tint: #F3F8EF;
  --white: #FFFFFF;
  --error: #A1251B;
  --agency-black: #0D0D0D;
  --agency-orange: #FF6700;

  --font-head: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1240px;
  --pad: clamp(20px, 5vw, 64px);
  --section-y: clamp(64px, 9vw, 128px);
  --radius-media: clamp(18px, 2.2vw, 30px);
  --ease: cubic-bezier(.2, .75, .2, 1);
  --dock-h: 0px;
}

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

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

[hidden] { display: none !important; }

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

body {
  margin: 0;
  font: 400 16.5px/1.6 var(--font-body);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--ink); text-underline-offset: .2em; text-decoration-thickness: 1px; }

h1, h2, h3 { font-family: var(--font-head); }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

section[id], footer { scroll-margin-top: 12px; }

main:focus { outline: none; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--pad));
  margin-inline: auto;
  padding-inline: var(--pad);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

.js-only { display: none; }
.js .js-only { display: inline; }

/* ---------- Concept banner and header ---------- */

.concept-banner {
  margin: 0;
  padding: 8px var(--pad);
  background: var(--agency-black);
  color: #fff;
  font: 500 12.5px/1.4 var(--font-body);
  letter-spacing: .01em;
  text-align: center;
}
.concept-banner__dot {
  display: inline-block;
  width: 6px; height: 6px;
  margin: 0 8px 1px 0;
  border-radius: 50%;
  background: var(--agency-orange);
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 32px;
  padding-block: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--ink);
  text-decoration: none;
}
.brand__name {
  font: 700 1.25rem/1 var(--font-head);
  letter-spacing: -.02em;
}
.brand__loc {
  padding: 3px 0 3px 12px;
  border-left: 1px solid var(--line-strong);
  font: 600 10.5px/1 var(--font-body);
  letter-spacing: .24em;
  text-transform: uppercase;
}
.brand--light { color: #fff; }
.brand--light .brand__loc { border-left-color: rgba(191, 222, 173, .5); color: var(--green-soft); }

.site-nav { width: 100%; }
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  font: 500 13px/1.3 var(--font-body);
  color: var(--text);
  text-decoration: none;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.site-nav a:hover::after { transform: scaleX(1); }

@media (min-width: 760px) {
  .site-nav { width: auto; }
  .site-nav ul { gap: 4px 28px; }
  .site-nav a { font-size: 14px; }
  .site-header__inner { padding-block: 22px; }
}

/* ---------- Shared type ---------- */

.chapter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  font: 600 12px/1.2 var(--font-body);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
}
.chapter__num {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 600 12px/1 var(--font-head);
  letter-spacing: .06em;
}
.chapter__num::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--green);
}
.chapter--light { color: var(--green-soft); }
.chapter--light .chapter__num { color: #fff; }
.chapter--light .chapter__num::after { background: var(--green-soft); }
.chapter--compact { margin-bottom: 14px; }

.section-title {
  margin: 0;
  font-weight: 640;
  font-size: clamp(1.85rem, 1.3rem + 2.1vw, 3rem);
  line-height: 1.08;
  letter-spacing: -.028em;
  color: var(--ink);
  text-wrap: balance;
}

.section-intro {
  margin: 18px 0 0;
  max-width: 38em;
  font-size: clamp(1rem, .96rem + .2vw, 1.125rem);
  line-height: 1.6;
  color: var(--muted);
}

.section-head {
  max-width: 50rem;
  margin-bottom: clamp(32px, 5vw, 56px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border: 0;
  border-radius: 999px;
  font: 600 15px/1.2 var(--font-head);
  letter-spacing: .005em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s var(--ease), box-shadow .25s var(--ease), transform .2s var(--ease);
}
.btn--primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 12px 28px -16px rgba(22, 51, 42, .7);
}
.btn--primary:hover { background: var(--ink-deep); box-shadow: 0 16px 32px -16px rgba(22, 51, 42, .8); }
.btn--primary:active { transform: translateY(1px); }
.btn--primary[disabled] {
  background: #E2EADE;
  color: var(--muted);
  box-shadow: none;
  cursor: not-allowed;
}
.btn--block { width: 100%; }
.btn__icon {
  width: 18px; height: 18px;
  flex: none;
  transition: transform .25s var(--ease);
}
.btn:hover .btn__icon { transform: translateX(3px); }

.cta-block { margin-top: 32px; }
.cta-qualifier {
  margin: 14px 0 0;
  max-width: 30em;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}
.cta-qualifier--strong {
  padding-left: 14px;
  border-left: 2px solid var(--ink);
  font-weight: 600;
  color: var(--ink);
}

/* ---------- 01 Hero ---------- */

.hero { padding: clamp(28px, 4vw, 56px) 0 clamp(56px, 7vw, 104px); }

.hero__grid {
  display: grid;
  gap: 40px;
}

.hero__title {
  margin: 0 0 22px;
  font-weight: 640;
  font-size: clamp(2.25rem, 1.35rem + 3.6vw, 3.9rem);
  line-height: 1.02;
  letter-spacing: -.032em;
  color: var(--ink);
  text-wrap: balance;
}

.hero__lede {
  margin: 0;
  max-width: 32em;
  font-size: clamp(1.05rem, .98rem + .35vw, 1.25rem);
  line-height: 1.55;
  color: var(--muted);
}

.hero-index {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  max-width: 34rem;
}
.hero-index a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 12px 0 6px;
  border-top: 1px solid var(--line-strong);
  font: 600 13px/1.25 var(--font-body);
  color: var(--ink);
  text-decoration: none;
  transition: border-color .25s var(--ease);
}
.hero-index a::after {
  content: "";
  flex: none;
  width: 7px; height: 7px;
  margin-right: 2px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .25s var(--ease);
}
.hero-index a:hover { border-top-color: var(--ink); }
.hero-index a:hover::after { transform: rotate(45deg) translate(1px, -1px); }

.hero__figure { margin: 0; width: 100%; }

/* The image is positioned by a deterministic crop so annotations stay on the parts.
   --s = image width / box width; --o = image left offset / box width. */
.hero-media {
  --s: 1.5;
  --o: -0.446;
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius-media);
  background: #A9C69A;
  isolation: isolate;
}
.hero-media img {
  position: absolute;
  top: 0;
  left: calc(var(--o) * 100%);
  width: calc(var(--s) * 100%);
  max-width: none;
  height: 100%;
  object-fit: cover;
  transform-origin: 62% 50%;
}

.anno-layer { position: absolute; inset: 0; pointer-events: none; }
.anno {
  position: absolute;
  left: 6%;
  top: calc(var(--y) * 100%);
  width: calc((var(--s) * var(--f) + var(--o) - .09) * 100%);
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateY(-50%);
  color: var(--ink);
}
.anno--crown { --y: .225; --f: .566; }
.anno--abutment { --y: .46; --f: .622; }
.anno--implant { --y: .70; --f: .618; }
.anno__text {
  flex: none;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  font: 600 10.5px/1 var(--font-body);
  letter-spacing: .14em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.anno__line {
  position: relative;
  flex: 1;
  min-width: 14px;
  height: 1px;
  background: rgba(33, 74, 53, .7);
  transform-origin: left;
}
.anno__line::after {
  content: "";
  position: absolute;
  right: -3px; top: -3px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .55);
}

.hero__caption {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--muted);
}
.hero__caption::before {
  content: "";
  flex: none;
  width: 20px; height: 1px;
  background: var(--green);
}

@media (min-width: 860px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
    align-items: center;
    gap: clamp(40px, 5vw, 88px);
  }
  .hero__figure {
    justify-self: end;
    width: min(100%, calc(74vh / 1.2));
    width: min(100%, calc(74svh / 1.2));
    min-width: min(100%, 360px);
  }
  .hero-media {
    aspect-ratio: 5 / 6;
    --s: 1.8;
    --o: -0.681;
  }
}

/* ---------- 02 Options explorer ---------- */

.options {
  padding-block: var(--section-y);
  background: var(--tint);
}

.explorer {
  display: grid;
  gap: 28px;
}

.arch-panel {
  margin: 0;
  padding: clamp(20px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-media);
  background: var(--white);
}

.arch { width: 100%; height: auto; overflow: visible; }
.arch__guide {
  stroke: var(--line-strong);
  stroke-width: 1;
  stroke-dasharray: 2 6;
}
.arch__bridge {
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0;
  transition: stroke-dashoffset .9s var(--ease), opacity .3s;
}
.tooth {
  stroke: #E1ECDA;
  stroke-width: 15;
  transition: stroke .35s var(--ease), stroke-width .35s var(--ease);
  transition-delay: calc(var(--i, 0) * 22ms);
}
.arch[data-state="single"] .tooth.s,
.arch[data-state="multiple"] .tooth.m,
.arch[data-state="full"] .tooth {
  stroke: var(--green);
  stroke-width: 17;
}
.arch[data-state="full"] .arch__bridge { stroke-dashoffset: 0; opacity: 1; }

.arch-caption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.arch-caption__state {
  font: 600 1rem/1.3 var(--font-head);
  color: var(--ink);
}
.arch-caption__note { font-size: 12.5px; line-height: 1.45; color: var(--muted); }

.option-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}
.option {
  position: relative;
  padding: 22px 12px 22px 36px;
  border-bottom: 1px solid var(--line-strong);
  transition: background-color .3s var(--ease);
}
.option::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 29px;
  width: 12px; height: 12px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.option.is-active::before {
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 0 5px rgba(94, 156, 83, .2);
}
.option__title {
  margin: 0;
  font-weight: 620;
  font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: -.015em;
  color: var(--ink);
}
.option__text {
  margin: 8px 0 0;
  max-width: 34em;
  line-height: 1.55;
  color: var(--muted);
}

.option__btn {
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  text-align: left;
  cursor: pointer;
}
.option__btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
}
.option__btn:focus-visible { outline: none; }
.option__btn:focus-visible::after {
  outline: 3px solid var(--green);
  outline-offset: -3px;
}
.js .option:hover { background: rgba(255, 255, 255, .6); }
.js .option.is-active { background: var(--white); }

.options-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 32px 0 0;
  max-width: 44em;
  font-size: 14.5px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--ink);
}
.options-note svg { flex: none; width: 20px; height: 20px; margin-top: 1px; }

@media (min-width: 900px) {
  .explorer {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: center;
    gap: clamp(40px, 5vw, 72px);
  }
}

/* ---------- 03 First conversation ---------- */

.conversation { padding-block: var(--section-y); }

.conversation__grid {
  display: grid;
  gap: 48px;
}

.spec {
  margin: 0;
  border-top: 1px solid var(--ink);
}
.spec__row {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.spec dt {
  padding-top: 5px;
  font: 600 11.5px/1.3 var(--font-body);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.spec dd {
  margin: 0;
  font: 600 clamp(1.05rem, .95rem + .5vw, 1.35rem)/1.3 var(--font-head);
  letter-spacing: -.01em;
  color: var(--ink);
}

.scope {
  display: grid;
  gap: 28px;
  margin-top: 36px;
}
.scope__title {
  margin: 0 0 14px;
  font: 600 12px/1.3 var(--font-body);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
}
.scope__list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.scope__list li {
  position: relative;
  padding-left: 30px;
  line-height: 1.45;
}
.scope__list li::before {
  content: "";
  position: absolute;
  left: 0; top: .15em;
  width: 18px; height: 18px;
  border-radius: 50%;
}
.scope__list--yes li::before { background: var(--green-soft); }
.scope__list--yes li::after {
  content: "";
  position: absolute;
  left: 6.5px; top: calc(.15em + 4px);
  width: 4.5px; height: 8.5px;
  border: solid var(--ink);
  border-width: 0 1.7px 1.7px 0;
  transform: rotate(45deg);
}
.scope__list--no li { color: var(--muted); }
.scope__list--no li::before { border: 1.5px solid var(--line-strong); }
.scope__list--no li::after {
  content: "";
  position: absolute;
  left: 5px; top: calc(.15em + 8.25px);
  width: 8px; height: 1.5px;
  background: var(--muted);
}

@media (min-width: 600px) {
  .scope { grid-template-columns: 1fr 1fr; }
  .spec__row { grid-template-columns: 8rem minmax(0, 1fr); }
}

@media (min-width: 960px) {
  .conversation__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(48px, 6vw, 96px);
    align-items: start;
  }
  .conversation__copy { position: sticky; top: 40px; }
}

/* ---------- 04 Journey ---------- */

.journey {
  padding-block: var(--section-y);
  background: var(--ink);
  color: #fff;
}
.journey :focus-visible { outline-color: var(--green-soft); }
.journey .section-title { color: #fff; }

.steps {
  position: relative;
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  padding: 0 0 36px 68px;
}
/* Connector between consecutive stages: a quiet base line plus a drawn progress line. */
.step:not(:last-child)::before,
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 21.5px;
  top: 52px;
  bottom: 8px;
  width: 1px;
  background: rgba(191, 222, 173, .3);
}
.step:not(:last-child)::after {
  background: var(--green-soft);
  transform-origin: top;
  transition: transform .7s var(--ease);
}
.step:nth-child(2)::after { transition-delay: .35s; }
.step:nth-child(3)::after { transition-delay: .7s; }
.step:last-child { padding-bottom: 0; }
.step__num {
  position: absolute;
  left: 0; top: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1px solid rgba(191, 222, 173, .7);
  border-radius: 50%;
  background: var(--ink);
  font: 600 13px/1 var(--font-head);
  letter-spacing: .04em;
  color: var(--green-soft);
}
.step__title {
  margin: 9px 0 8px;
  font-weight: 600;
  font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem);
  line-height: 1.25;
  letter-spacing: -.01em;
  color: #fff;
}
.step__text { margin: 0; line-height: 1.55; color: #D2E5C9; }
.step__tag {
  display: inline-block;
  margin-right: 6px;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--green-soft);
  font: 600 10.5px/1.1 var(--font-body);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  vertical-align: 1px;
}

.journey__note {
  margin: 48px 0 0;
  padding-top: 20px;
  max-width: 44em;
  border-top: 1px solid rgba(191, 222, 173, .3);
  font-size: 14.5px;
  line-height: 1.55;
  color: #D2E5C9;
}

@media (min-width: 960px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
  }
  .step:not(:last-child)::before,
  .step:not(:last-child)::after {
    left: 56px;
    right: -24px;
    top: 21.5px;
    bottom: auto;
    width: auto;
    height: 1px;
  }
  .step:not(:last-child)::after { transform-origin: left; }
  .step { padding: 72px 8px 0 0; }
  .step:last-child { padding-bottom: 0; }
  .step__title { margin-top: 0; }
}

/* ---------- 05 Questions ---------- */

.faq { padding-block: var(--section-y); }

.faq__grid { display: grid; gap: 36px; }

.faq__list { border-top: 1px solid var(--ink); }

.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  list-style: none;
  cursor: pointer;
  font: 600 clamp(1.05rem, .98rem + .35vw, 1.25rem)/1.35 var(--font-head);
  letter-spacing: -.01em;
  color: var(--ink);
}
.qa summary::-webkit-details-marker { display: none; }
.qa__icon {
  position: relative;
  flex: none;
  width: 30px; height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.qa__icon::before,
.qa__icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 11px; height: 1.6px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform .3s var(--ease);
}
.qa__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa[open] .qa__icon { background: var(--green-soft); border-color: var(--green-soft); }
.qa[open] .qa__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.qa summary:hover .qa__icon { border-color: var(--ink); }

.qa__a {
  padding: 0 52px 24px 0;
  line-height: 1.65;
  color: var(--muted);
}
.qa__a p { margin: 0 0 12px; max-width: 42em; }
.qa__a p:last-child { margin-bottom: 0; }
.qa__source { font-size: 14px; }

@media (min-width: 960px) {
  .faq__grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: clamp(48px, 6vw, 96px);
  }
}

/* ---------- 06 Begin and shared form ---------- */

.begin {
  padding-block: var(--section-y);
  background: var(--green-soft);
}
.begin :focus-visible { outline-color: var(--ink); }

.begin__grid { display: grid; gap: 36px; }

.begin__title {
  font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.75rem);
  line-height: 1.04;
}
.begin__title:focus { outline: none; }
.begin__lede {
  margin: 20px 0 0;
  max-width: 28em;
  font-size: clamp(1.05rem, .98rem + .3vw, 1.2rem);
  line-height: 1.55;
  color: var(--ink);
}
.begin .cta-qualifier { margin-top: 22px; }

.form-slot {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 3.2vw, 40px);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 30px 60px -40px rgba(22, 51, 42, .55);
}
.form-slot__placeholder {
  flex: 1;
  display: grid;
  place-items: center;
  margin: 0;
  text-align: center;
  font-size: 15px;
  color: var(--muted);
}

@media (min-width: 960px) {
  .begin__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 30rem);
    align-items: center;
    gap: clamp(48px, 6vw, 96px);
  }
}

.lead-form__title {
  margin: 0 0 20px;
  font: 600 12px/1.3 var(--font-body);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
}

.field + .field { margin-top: 18px; }
.field__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font: 600 14.5px/1.3 var(--font-body);
  color: var(--text);
}
.field__req { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.field__input {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1.5px solid var(--field-border);
  border-radius: 12px;
  background: var(--white);
  font: 400 16px/1.3 var(--font-body);
  color: var(--text);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field__input:hover { border-color: var(--ink); }
.field__input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(94, 156, 83, .3);
}
.field__input[aria-invalid="true"] { border-color: var(--error); }
.field__input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(161, 37, 27, .18); }
.field__error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 8px 0 0;
  font: 500 13.5px/1.4 var(--font-body);
  color: var(--error);
}
.field__error::before {
  content: "!";
  flex: none;
  display: grid;
  place-items: center;
  width: 17px; height: 17px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--error);
  font: 700 11px/1 var(--font-body);
  color: #fff;
}

.lead-form__actions { margin-top: 24px; }

.demo-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--tint);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--muted);
}
.demo-note svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--ink); }

.nojs-note { margin: 10px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--text); }

.form-status { margin: 12px 0 0; font: 500 14.5px/1.45 var(--font-body); color: var(--ink); }
.form-status:empty { margin: 0; }
.form-status.is-error { color: var(--error); }
.form-status.is-success {
  position: relative;
  padding: 12px 14px 12px 44px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #E9F4E2;
}
.form-status.is-success::before {
  content: "";
  position: absolute;
  left: 14px; top: 13px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--ink);
}
.form-status.is-success::after {
  content: "";
  position: absolute;
  left: 21.5px; top: 17px;
  width: 5px; height: 9px;
  border: solid #fff;
  border-width: 0 1.8px 1.8px 0;
  transform: rotate(45deg);
}

/* ---------- Clinic footer ---------- */

.clinic-footer {
  padding: clamp(48px, 6vw, 72px) 0 clamp(40px, 5vw, 56px);
  border-top: 1px solid var(--line);
  background: var(--white);
}
.clinic-footer__inner { display: grid; gap: 28px; }
.clinic-footer__line { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.clinic-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.clinic-footer__links a {
  display: inline-block;
  padding: 6px 0;
  font-size: 14.5px;
  text-decoration: none;
}
.clinic-footer__links a:hover { text-decoration: underline; }
.clinic-footer__fine {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.clinic-footer__fine p { margin: 0 0 6px; }

@media (min-width: 860px) {
  .clinic-footer__inner { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .clinic-footer__links { justify-content: flex-end; max-width: 34rem; }
  .clinic-footer__fine { grid-column: 1 / -1; }
}

/* ---------- MATRAFOX CAMPAIGNS continuation ---------- */

.agency {
  padding: clamp(56px, 7vw, 96px) 0 clamp(40px, 5vw, 64px);
  background: var(--agency-black);
  color: #fff;
  font-family: var(--font-body);
}
.agency :focus-visible { outline-color: var(--agency-orange); }
.agency__inner { display: grid; gap: 32px; }
.agency__mark {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font: 800 12.5px/1 var(--font-body);
  letter-spacing: .24em;
}
.agency__mark::before {
  content: "";
  width: 10px; height: 10px;
  background: var(--agency-orange);
}
.agency__title {
  margin: 18px 0 0;
  max-width: 17em;
  font: 700 clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem)/1.12 var(--font-body);
  letter-spacing: -.02em;
  color: #fff;
}
.agency__body p {
  margin: 0 0 16px;
  max-width: 40em;
  line-height: 1.65;
  color: #D6D6D6;
}
.agency__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.agency__btn {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 13px 22px;
  border: 1.5px solid #fff;
  border-radius: 6px;
  font: 600 15px/1.2 var(--font-body);
  color: #fff;
  text-decoration: none;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.agency__btn:hover { background: #fff; color: var(--agency-black); }
.agency__btn--primary {
  border-color: var(--agency-orange);
  background: var(--agency-orange);
  color: var(--agency-black);
}
.agency__btn--primary:hover { border-color: #FF8533; background: #FF8533; }
.agency__fine {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  padding-top: 20px;
  border-top: 1px solid #2E2E2E;
  font-size: 13.5px;
  color: #BDBDBD;
}
.agency__fine p { margin: 0; }
.agency__fine a { color: #fff; text-decoration-color: var(--agency-orange); }

@media (min-width: 960px) {
  .agency__inner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: clamp(48px, 6vw, 96px);
  }
  .agency__fine { grid-column: 1 / -1; margin-top: 24px; }
}

/* ---------- Patient sticky action ---------- */

.dock { display: none; }

.js .dock {
  position: fixed;
  z-index: 40;
  left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform .28s var(--ease), visibility 0s linear .28s;
}
.js .dock.is-shown {
  transform: none;
  visibility: visible;
  transition: transform .28s var(--ease), visibility 0s;
}
.dock__note { display: none; margin: 0; }
.dock__btn { width: 100%; }

@media (min-width: 1100px) {
  .js .dock {
    left: auto;
    right: 24px;
    bottom: calc(24px + env(safe-area-inset-bottom));
    flex-direction: row;
    align-items: center;
    gap: 18px;
    padding: 8px 8px 8px 24px;
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 20px 44px -22px rgba(22, 51, 42, .5);
    transform: translateY(calc(100% + 32px));
  }
  .dock__note {
    display: block;
    font: 600 11.5px/1.2 var(--font-body);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .dock__btn { width: auto; min-height: 46px; padding-block: 12px; }
}

/* ---------- Owner preview shortcut ---------- */

.owner-card {
  position: fixed;
  z-index: 39;
  left: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  max-width: calc(100% - 24px);
  padding: 4px 4px 4px 14px;
  border-radius: 999px;
  background: var(--agency-black);
  color: #fff;
  box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .6);
  font: 600 13px/1.2 var(--font-body);
  transition: opacity .25s var(--ease), transform .25s var(--ease), bottom .28s var(--ease), visibility 0s;
}
.owner-card :focus-visible { outline-color: var(--agency-orange); }
.owner-card.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease), bottom .28s var(--ease), visibility 0s linear .2s;
}
.owner-card__tag {
  margin-right: 8px;
  padding-right: 10px;
  border-right: 1px solid #333;
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--agency-orange);
  white-space: nowrap;
}
.owner-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 8px 8px 2px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
.owner-card__link:hover { text-decoration: underline; text-decoration-color: var(--agency-orange); }
.owner-card__link svg { width: 16px; height: 16px; }
.owner-card__dismiss {
  appearance: none;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #C8C8C8;
  cursor: pointer;
}
.owner-card__dismiss:hover { background: #222; color: #fff; }
.owner-card__dismiss svg { width: 18px; height: 18px; }

body.dock-up .owner-card { bottom: calc(var(--dock-h) + 10px); }

@media (max-width: 374px) {
  .owner-card__tag { display: none; }
}

@media (min-width: 1100px) {
  .owner-card { left: 24px; bottom: calc(24px + env(safe-area-inset-bottom)); }
  body.dock-up .owner-card { bottom: calc(24px + env(safe-area-inset-bottom)); }
}

/* ---------- Full-screen consultation dialog ---------- */

html.dialog-open,
html.dialog-open body { overflow: hidden; }

.form-dialog {
  position: fixed;
  inset: 0;
  top: var(--vvt, 0px);
  bottom: auto;
  width: 100%;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  height: var(--vvh, 100dvh);
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: var(--white);
  color: var(--text);
}
.form-dialog::backdrop { background: rgba(22, 51, 42, .5); }

.dialog-shell {
  display: grid;
  height: 100%;
}

.dialog-aside { display: none; }

.dialog-main {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.dialog-bar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: calc(10px + env(safe-area-inset-top)) var(--pad) 10px;
  border-bottom: 1px solid var(--line);
}
.dialog-close {
  appearance: none;
  display: grid;
  place-items: center;
  flex: none;
  width: 48px; height: 48px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.dialog-close:hover { background: var(--tint); border-color: var(--ink); }
.dialog-close svg { width: 20px; height: 20px; }

.dialog-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scroll-padding-bottom: 190px;
}
.dialog-content {
  max-width: 34rem;
  margin: 0 auto;
  padding: 28px var(--pad) 0;
}
.dialog-title {
  margin: 0;
  font-weight: 640;
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -.025em;
  color: var(--ink);
  text-wrap: balance;
}
.dialog-title:focus { outline: none; }
.dialog-desc {
  margin: 12px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--green);
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--ink);
}
.dialog-slot { margin-top: 28px; }

/* The shared action bar stays reachable above the keyboard inside the dialog. */
.dialog-slot .lead-form__actions {
  position: sticky;
  bottom: 0;
  z-index: 1;
  margin-top: 24px;
  padding: 14px 0 calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--white);
}

@media (min-width: 960px) {
  .dialog-shell { grid-template-columns: minmax(320px, 38%) minmax(0, 1fr); }
  .dialog-aside {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    padding: 40px clamp(32px, 4vw, 64px);
    background: var(--ink);
    color: #fff;
  }
  .dialog-aside__art { max-width: 360px; }
  .dialog-aside__list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
    font: 600 1.1rem/1.35 var(--font-head);
  }
  .dialog-aside__list li { display: flex; align-items: center; gap: 12px; }
  .dialog-aside__list li::before {
    content: "";
    flex: none;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--green-soft);
  }
  .dialog-bar { justify-content: flex-end; border-bottom: 0; padding: 24px 24px 0; }
  .dialog-bar__brand { display: none; }
  .dialog-scroll { display: flex; }
  .dialog-content { margin: auto; padding: 32px 40px 40px; width: 100%; }
  .dialog-slot .lead-form__actions { padding-bottom: 16px; }
}

.arch--aside[data-state] .arch__guide { stroke: rgba(191, 222, 173, .35); }
.arch--aside[data-state] .tooth { stroke: var(--green-soft); stroke-width: 15; }

/* ---------- Motion (no-preference only) ---------- */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .hero__copy > * { animation: rise .8s var(--ease) both; }
  .hero__copy > :nth-child(2) { animation-delay: .06s; }
  .hero__copy > :nth-child(3) { animation-delay: .14s; }
  .hero__copy > :nth-child(4) { animation-delay: .22s; }
  .hero__copy > :nth-child(5) { animation-delay: .3s; }

  .hero-media { animation: media-in 1.1s var(--ease) .05s both; }
  .hero-media img { animation: img-settle 1.8s var(--ease) both; }
  .anno__text { animation: fade 0.5s var(--ease) both; }
  .anno__line { animation: draw .8s var(--ease) both; }
  .anno--crown .anno__text { animation-delay: .75s; }
  .anno--crown .anno__line { animation-delay: .85s; }
  .anno--abutment .anno__text { animation-delay: .87s; }
  .anno--abutment .anno__line { animation-delay: .97s; }
  .anno--implant .anno__text { animation-delay: .99s; }
  .anno--implant .anno__line { animation-delay: 1.09s; }

  .reveal-ready [data-reveal] { transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .reveal-ready [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(22px); }
  .reveal-ready .steps:not(.is-in) .step::after { transform: scaleY(0); }

  .qa[open] .qa__a { animation: fade .3s var(--ease) both; }

  .form-dialog[open] .dialog-main { animation: sheet-in .24s var(--ease) both; }
  .form-dialog[open] .dialog-aside { animation: fade .24s var(--ease) both; }
  .form-dialog.is-closing .dialog-main { animation: sheet-out .16s ease-in both; }
  .form-dialog.is-closing .dialog-aside { animation: fade-out .16s ease-in both; }
  .form-status.is-success { animation: fade .25s var(--ease) both; }
}

@media (prefers-reduced-motion: no-preference) and (min-width: 960px) {
  .reveal-ready .steps:not(.is-in) .step::after { transform: scaleX(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
  }
}

@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes draw { from { transform: scaleX(0); } }
@keyframes media-in {
  from { clip-path: inset(14% 0 0 0 round var(--radius-media)); transform: translateY(18px); }
  to { clip-path: inset(0 0 0 0 round var(--radius-media)); transform: none; }
}
@keyframes img-settle { from { transform: scale(1.06); } }
@keyframes sheet-in { from { opacity: 0; transform: translateY(18px); } }
@keyframes sheet-out { to { opacity: 0; transform: translateY(10px); } }

.agency__mark img{width:220px;height:auto;filter:invert(1)} .agency__mark span{display:block;margin-top:9px;letter-spacing:.2em;font-size:10px;color:#FF6700}.agency__mark::before{display:none}


/* Codex QA refinement: stable visible content and stacked agency mark at narrow widths. */
.agency__mark{display:block}
@keyframes rise{from{opacity:1;transform:translateY(8px)}}
@media(prefers-reduced-motion:no-preference){.hero__copy>*{animation-duration:.4s;animation-delay:0s!important}.hero-media{animation-duration:.55s}.hero-media img{animation-duration:.7s}.anno__text,.anno__line{animation:none}.reveal-ready [data-reveal]:not(.is-in){opacity:1;transform:none}}


.dialog-open .owner-card,.dialog-open .dock{visibility:hidden!important;opacity:0;transition:none!important}

