/* Clínica Valduga — page CSS on top of the taste kit (assets/system.css).
   Direction: "Almoço de Domingo" (.impeccable/surfaces/index-html.md). */

@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque-600.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque-800.woff2") format("woff2"); font-weight: 700 800; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("../fonts/atkinson-hyperlegible-next-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("../fonts/atkinson-hyperlegible-next-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --blue: #003049;
  --blue-2: #0b3e5a;
  --tangerine: #ff7f00;      /* on the blue band (5.6:1) */
  --tangerine-ink: #b35600;  /* brand orange darkened for light grounds (4.6:1 on white) */
  --cream: #eae2b7;
  --cta: #15803d;
  --cta-hover: #116b33;
  --cta-ink: #ffffff;
  --t-body: 19px;           /* older readers: base text 19px */
  --t-small: 16px;
}
@media (max-width: 639px) { :root { --t-body: 18px; } }

body { font-size: var(--t-body); -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { font-weight: 600; }

/* ---------- bands (one colour owns each section) ---------- */
.band--cream { background: var(--cream); }
.band--blue { background: var(--blue); color: #fbf8f2; --ink: #fbf8f2; --muted: #c9d3da; }
.band--blue h2, .band--blue h3 { color: #fbf8f2; }

/* ---------- booking button (green, bold, spaced light sweep) ---------- */
.cta.btn {
  background: var(--cta); color: var(--cta-ink); border-color: var(--cta);
  font-weight: 700; position: relative; overflow: hidden; isolation: isolate;
  min-height: 52px; padding-inline: var(--s-6);
}
.cta.btn:hover { background: var(--cta-hover); border-color: var(--cta-hover); }
.cta.btn .wa { width: 22px; height: 22px; flex: none; margin-right: 10px; }
.band--blue .cta.btn { box-shadow: 0 0 0 2px #fbf8f2; } /* green alone is 2.7:1 on the blue band */
.cta.btn::after {
  content: ""; position: absolute; inset: -20% auto -20% -40%; width: 30%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.38), transparent);
  transform: translateX(0) skewX(-18deg);
  animation: cta-sweep 5.2s var(--m-ease-io, cubic-bezier(.65,0,.35,1)) 2.4s infinite;
}
.cta.btn:hover::after, .cta.btn:focus-visible::after { animation-play-state: paused; }
@keyframes cta-sweep { 0% { transform: translateX(0) skewX(-18deg); } 18%, 100% { transform: translateX(520%) skewX(-18deg); } }
.cta--lg.btn { min-height: 60px; font-size: 20px; padding-inline: var(--s-7); }

/* ---------- hero ---------- */
.hero .hero__kicker { color: var(--muted); font-size: var(--t-small); }
.hero h1 { font-weight: 700; }
.hero .hero__media img { object-position: 50% 30%; }
.hero-strip { display: flex; gap: var(--s-2); margin-top: var(--s-3); }
.hero-strip img { width: 64px; height: 80px; object-fit: cover; border-radius: var(--r-sm); }
.hero-strip__fig { font-family: var(--font-display); font-weight: 700; color: var(--tangerine-ink); font-size: 28px; line-height: 1; }

/* portrait revealed like a curtain, once */
@media (prefers-reduced-motion: no-preference) {
  .m-enter .hero__media > img { animation: curtain 1.1s var(--m-ease-enter, cubic-bezier(.22,1,.36,1)) .15s both; }
  .m-enter .hero-strip img { animation: strip-in .5s var(--m-ease-enter, cubic-bezier(.22,1,.36,1)) both; }
  .m-enter .hero-strip img:nth-child(1) { animation-delay: .8s; }
  .m-enter .hero-strip img:nth-child(2) { animation-delay: .88s; }
  .m-enter .hero-strip img:nth-child(3) { animation-delay: .96s; }
}
@keyframes curtain { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes strip-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- logo (client's wordmark png) ---------- */
.nav__logo img { height: 40px; width: auto; display: block; }
@media (max-width: 639px) { .nav__logo img { height: 32px; } }

@media (prefers-reduced-motion: reduce) {
  .cta.btn::after { animation: none; display: none; }
}

/* header: logo left, the one button right (no menu) */
.nav__bar { display: flex; align-items: center; }
.nav__actions { margin-left: auto; }
.nav__logo img { height: 44px; }
@media (max-width: 639px) { .nav__logo img { height: 34px; } }

/* phone: the patient strip card would cover the face; show it on wider screens only */
@media (max-width: 767px) {
  .hero .ly-float { display: none; }
  .hero .hero__media img { object-position: 50% 18%; }
  .cta--lg.btn { font-size: 18px; padding-inline: var(--s-4); white-space: normal; text-align: center; }
  .cta.btn { max-width: 100%; }
}

/* ---------- reconhece (cream band) ---------- */
.reconhece__list { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.reconhece__list li {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 1.1vw + 14px, 30px);
  line-height: 1.25; letter-spacing: -0.015em; padding: var(--s-5) 0; border-bottom: 1px solid rgba(39,39,39,.18);
  display: grid; grid-template-columns: 48px 1fr; align-items: baseline;
}
.reconhece__list li:first-child { border-top: 1px solid rgba(39,39,39,.18); }
.reconhece__list li::before { counter-increment: r; content: counter(r, decimal-leading-zero); font-family: var(--font-text); font-size: 15px; font-weight: 700; color: var(--tangerine-ink); }
.reconhece__fecho { font-size: var(--t-body); line-height: 1.6; margin: var(--s-6) 0; max-width: 34ch; }
@media (max-width: 767px) { .reconhece__list { margin-top: var(--s-6); } }

/* ---------- como funciona ---------- */
.steps { list-style: none; margin: var(--s-6) 0 0; padding: 0; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 56px 1fr; column-gap: var(--s-3); padding: var(--s-4) 0; border-top: 1px solid rgba(39,39,39,.14); }
.steps li::before { counter-increment: s; content: counter(s); grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fbf8f2; display: grid; place-items: center; font-weight: 700; font-family: var(--font-display); }
.steps h3 { margin: 0 0 4px; font-size: 22px; }
.steps p { margin: 0; line-height: 1.55; }
.como__photo { align-self: center; aspect-ratio: 1 / 1; }
.compare-row { margin-top: var(--s-8); }
.compare__title { font-size: 26px; margin: 0 0 var(--s-4); }
.compare { width: 100%; border-collapse: collapse; font-size: var(--t-body); margin-bottom: var(--s-6); }
.compare th, .compare td { text-align: left; padding: var(--s-4) var(--s-4); border-bottom: 1px solid rgba(39,39,39,.14); vertical-align: top; line-height: 1.45; }
.compare thead th { font-family: var(--font-display); font-size: 20px; font-weight: 700; border-bottom: 2px solid var(--blue); }
.compare tbody th { font-weight: 700; width: 20%; }
.compare td:last-child, .compare thead th:last-child { background: rgba(0,48,73,.05); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 639px) {
  .compare, .compare tbody, .compare tr, .compare td, .compare th { display: block; width: 100%; }
  .compare thead { display: none; }
  .compare tr { padding: var(--s-3) 0; border-bottom: 1px solid rgba(39,39,39,.14); }
  .compare tbody th { padding: var(--s-2) 0; border: 0; }
  .compare td { border: 0; padding: 2px 0; }
  .compare td:nth-of-type(1)::before { content: "Móvel: "; font-weight: 700; }
  .compare td:nth-of-type(2)::before { content: "Fixa: "; font-weight: 700; }
  .compare td:last-child { background: none; }
}

/* ---------- números (blue band, count-up) ---------- */
.numeros { padding-block: var(--s-9); }
.numeros__h { font-size: 22px; color: #c9d3da !important; font-weight: 600; margin: 0 0 var(--s-6); }
.numeros__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); margin: 0; }
.numeros__row div { display: flex; flex-direction: column-reverse; border-top: 1px solid rgba(251,248,242,.3); padding-top: var(--s-4); }
.numeros__row dd { margin: 0; font-family: var(--font-display); font-weight: 800; color: var(--tangerine); font-size: clamp(56px, 6vw, 112px); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.numeros__row dt { margin-top: var(--s-3); font-size: 20px; color: #fbf8f2; max-width: 22ch; }
@media (max-width: 767px) { .numeros__row { grid-template-columns: 1fr; gap: var(--s-5); } }

/* ---------- depoimentos ---------- */
.deps { row-gap: var(--s-7); }
.dep { display: flex; flex-direction: column; gap: var(--s-3); }
.dep__fear { margin: 0; font-size: 16px; color: var(--muted); line-height: 1.4; min-height: 2.8em; }
.dep__fear span { font-weight: 700; color: var(--tangerine-ink); }
.dep__quote { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 21px; line-height: 1.3; letter-spacing: -0.01em; min-height: 5.2em; }
.dep__who { margin: 0; font-size: 15px; color: var(--muted); }
.dep__video { position: relative; aspect-ratio: 9 / 16; border-radius: var(--r-lg); overflow: hidden; background: #1c1c1c; margin-top: auto; }
.dep__video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vplay { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(251,248,242,.94); color: var(--blue); display: grid; place-items: center; box-shadow: 0 0 0 0 rgba(251,248,242,.55);
  transition: transform var(--m-in, 150ms) var(--ease, ease); }
.vplay svg { width: 34px; height: 34px; margin-left: 4px; }
.vplay:hover { transform: scale(1.06); }
.vplay:active { transform: scale(.96); }
@media (prefers-reduced-motion: no-preference) { .vplay { animation: ripple 2.8s ease-out 1.5s infinite; } .vplay:hover { animation-play-state: paused; } }
@keyframes ripple { 0% { box-shadow: 0 0 0 0 rgba(251,248,242,.55); } 70%, 100% { box-shadow: 0 0 0 18px rgba(251,248,242,0); } }
.dep--cta { background: var(--cream); border-radius: var(--r-lg); padding: var(--s-6); justify-content: center; }
.dep__cta-text { font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 1.25; margin: 0 0 var(--s-4); }
@media (max-width: 1023px) and (min-width: 640px) { .deps .dep { grid-column: span 6; } }
@media (max-width: 639px) { .dep__quote, .dep__fear { min-height: 0; } .dep__video { max-width: 320px; } }
.dep__video { aspect-ratio: 4 / 5; }
.deps--2 { margin-top: var(--s-7); }

/* ---------- Dr. Gelson (blue band) ---------- */
.dr__text p { font-size: var(--t-body); line-height: 1.65; color: #e9edf0; max-width: 52ch; }
.dr__text .btn-row { margin-top: var(--s-6); }
.dr__portrait { aspect-ratio: 4 / 5; }
.dr__row2 { margin-top: var(--s-9); }
.band--blue .numeros__row { margin-bottom: var(--s-8); }
.dr__photos .frame { aspect-ratio: 3 / 2; }
.dr__photos .frame:last-child { aspect-ratio: auto; }
@media (max-width: 767px) { .dr__photos .frame { grid-column: 1 / -1; } .dr__photos .frame:last-child { aspect-ratio: 1; } }

/* ---------- statement (word-highlight) ---------- */
#frase .mo-wh__text { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; }
#frase .mo-wh__text strong { color: var(--tangerine-ink); }

/* ---------- clínica (photo-chapters) ---------- */
.clinica__cta { margin-top: var(--s-7); }

/* ---------- pacientes: a set table of identical frames ---------- */
.pac__head { align-items: end; }
.pac__wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s-3); }
.pac__wall li { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-md); background: #e8e2d4; }
.pac__wall img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--m-image, 600ms) var(--ease, ease); }
@media (hover: hover) { .pac__wall li:hover img { transform: scale(1.03); } }
@media (max-width: 1023px) { .pac__wall { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 639px) { .pac__wall { grid-template-columns: repeat(2, 1fr); gap: var(--s-2); } }
.dr__text p + p { margin-top: var(--s-4); }
.dr__row2 { margin-top: 0; }
.dr__photos .frame, .dr__photos .frame:last-child { aspect-ratio: auto; height: 360px; }
.dr__photos .frame img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767px) { .dr__photos .frame, .dr__photos .frame:last-child { height: 260px; } }
#frase { --accent: var(--tangerine-ink); --p-accent: var(--tangerine-ink); --action: var(--tangerine-ink); }

/* ---------- dúvidas (cream band, smooth open) ---------- */
:root { interpolate-size: allow-keywords; }
.faq-list { border-top: 1px solid rgba(39,39,39,.2); }
.faq-item { border-bottom: 1px solid rgba(39,39,39,.2); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-5) 0; min-height: 44px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: clamp(20px, .6vw + 16px, 24px); line-height: 1.3; }
.faq-item__icon { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--blue); position: relative; transition: transform 240ms var(--ease, ease); }
.faq-item__icon::before, .faq-item__icon::after { content: ""; position: absolute; inset: 0; margin: auto; width: 12px; height: 2px; background: var(--blue); }
.faq-item__icon::after { transform: rotate(90deg); transition: transform 240ms var(--ease, ease); }
.faq-item[open] .faq-item__icon::after { transform: rotate(0deg); }
.faq-item__body p { margin: 0 0 var(--s-5); line-height: 1.65; max-width: 62ch; }
.faq-item::details-content { block-size: 0; overflow: hidden; transition: block-size 280ms var(--ease, ease), content-visibility 280ms allow-discrete; }
.faq-item[open]::details-content { block-size: auto; }
.faq-item summary:hover h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.duvidas__aside .btn-row { margin-top: var(--s-6); }
@media (prefers-reduced-motion: reduce) { .faq-item::details-content { transition: none; } }

/* ---------- footer (blue) ---------- */
.footer.band--blue { background: var(--blue); color: #fbf8f2; }
.footer.band--blue .closing__cta h2 { color: #fbf8f2; }
.footer.band--blue .closing__cta p { color: #dfe6eb; }
.footer__logo { height: 56px; width: auto; background: #fbf8f2; padding: 8px 12px; border-radius: var(--r-sm); }
.footer__facts p, .footer__facts address { margin: 0 0 var(--s-2); font-style: normal; line-height: 1.55; color: #e9edf0; }
.footer__facts h3 { font-size: 16px; margin: 0 0 var(--s-2); color: #c9d3da; font-weight: 700; }
.footer.band--blue .link { color: #fbf8f2; }
.privacy { margin-top: var(--s-6); border-top: 1px solid rgba(251,248,242,.2); padding-top: var(--s-4); }
.privacy summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: #fbf8f2; text-decoration: underline; text-underline-offset: 3px; }
.privacy p { max-width: 70ch; line-height: 1.6; color: #e9edf0; }
.footer.band--blue .footer__legal { color: #c9d3da; }
.footer.band--blue .btn--secondary { color: #fbf8f2; border-color: rgba(251,248,242,.6); background: transparent; }

.btn--wide.cta { justify-content: center; }

/* ---------- gate round fixes ---------- */
:root { --p-muted: #45453f; --muted: #45453f; }
.hero h1 { font-size: clamp(40px, 3.6vw + 10px, 64px); }
.numeros__row dd { font-size: clamp(48px, 3.4vw + 12px, 64px); }
.reconhece__photo { margin-top: var(--s-6); aspect-ratio: 4 / 3; }
.reconhece__photo img, .duvidas__photo img, .compare__photo img, .como__photo img { width: 100%; height: 100%; object-fit: cover; }
.como__photo { aspect-ratio: 4 / 5; align-self: start; }
.compare__photo { aspect-ratio: 4 / 3; align-self: start; }
.duvidas__photo { margin-top: var(--s-6); aspect-ratio: 4 / 3; }
.duvidas__photo img { object-position: 50% 25%; }
.steps li { padding: var(--s-3) 0; }
.dep__video { aspect-ratio: 1 / 1; }
.dep__quote { font-size: 20px; min-height: 0; }
.dep__fear { min-height: 0; }
.privacy { border-top: 0; padding-top: 0; }
/* the patient wall: one picture wall, 2px seams, no cards */
.pac__wall.wall { gap: 2px; }
.pac__wall.wall li { aspect-ratio: 1 / 1; border-radius: 0; background: none; }
/* consent band inside the opaque header */
.nav__consent { background: #fbf8f2; border-top: 1px solid rgba(39,39,39,.12); }
.nav__consent[hidden] { display: none; }
.nav__consent-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding-block: var(--s-3); flex-wrap: wrap; }
.nav__consent-row p { margin: 0; font-size: 16px; }
.consent__btns { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.consent__btns .btn { min-width: 120px; }
.ph { margin: 0; border-radius: var(--r-lg); overflow: hidden; }
.reconhece__photo { aspect-ratio: 16 / 9; }
.numeros__row dd { font-size: clamp(36px, 1.6vw + 24px, 48px); }
@media (max-width: 639px) { .numeros__row dd { font-size: 36px; } }
.nav__consent .btn--secondary { border: 1px solid rgba(39,39,39,.55); background: #fff; }
.reconhece__photo { aspect-ratio: auto; margin-top: 0; align-self: stretch; min-height: 560px; }
.reconhece__photo img { object-position: 50% 30%; }
.reconhece__list li { font-size: clamp(20px, .8vw + 14px, 26px); padding: var(--s-4) 0; }
.reconhece__words .btn-row { margin-top: var(--s-6); }
@media (max-width: 767px) { .reconhece__photo { min-height: 0; aspect-ratio: 4 / 3; } }
.duvidas__photo { aspect-ratio: 16 / 9; }
.dep__video { aspect-ratio: 5 / 4; }
@media (max-width: 639px) {
  .numeros__row dd { font-size: 30px; }
  .dr__portrait { aspect-ratio: 1 / 1; }
  .dr__photos .frame:last-child { display: none; }
  .dr__photos .frame, .dr__photos .frame:last-child { height: 220px; }
  .band--blue .numeros__row { margin-bottom: var(--s-6); gap: var(--s-4); }
}
/* round 2 */
.reconhece__photo { min-height: 0; align-self: stretch; aspect-ratio: auto; }
.reconhece__photo img { width: 100%; height: 100%; object-fit: cover; }
.dr__portrait { aspect-ratio: 1 / 1; }
.duvidas__photo { aspect-ratio: auto; align-self: stretch; margin-top: 0; }
.duvidas__words .btn-row { margin-top: var(--s-6); }
.steps li { display: block; padding: var(--s-3) 0; }
.steps li::before { display: none; }
.steps h3 { display: flex; align-items: baseline; gap: var(--s-2); }
.steps { counter-reset: s; }
.steps h3::before { counter-increment: s; content: counter(s) "."; color: var(--tangerine-ink); font-weight: 800; }
.nav:has(.nav__consent:not([hidden])) { height: auto; }
.nav__consent { background: none; border-top: 1px solid rgba(39,39,39,.12); }
.nav__consent-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; width: 100%; }
.nav__consent-inner p { margin: 0; font-size: 16px; }
@media (max-width: 639px) { .dr__photos { display: block; } }
/* round 2b */
.ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.reconhece__photo, .duvidas__photo { min-height: 520px; }
.reconhece__list li { font-size: clamp(19px, .6vw + 14px, 23px); padding: var(--s-3) 0; }
.steps p { font-size: 17px; }
.steps h3 { font-size: 20px; }
.faq-item summary { padding: 13px 0; }
.faq-item summary h3 { font-size: 19px; }
.nav__consent { border: 0; display: flex; align-items: center; gap: var(--s-3); margin-left: auto; margin-right: var(--s-5); }
.nav__consent[hidden] { display: none; }
.nav__consent p { margin: 0; font-size: 15px; max-width: 30ch; line-height: 1.3; }
.nav__consent .btn { min-height: 40px; min-width: 0; padding-inline: var(--s-4); }
.nav__consent .link { font-size: 15px; }
.nav:has(.nav__consent:not([hidden])) { height: var(--nav); }
@media (max-width: 1023px) {
  .nav__consent { position: fixed; left: 0; right: 0; top: var(--nav); margin: 0; padding: var(--s-3) var(--gut); background: #fbf8f2; border-bottom: 1px solid rgba(39,39,39,.15); flex-wrap: wrap; }
  .nav__consent p { max-width: none; flex: 1 1 100%; }
}
@media (max-width: 767px) { .reconhece__photo, .duvidas__photo { min-height: 0; aspect-ratio: 4 / 3; } }
/* round 2c: one h3 size */
.compare__title, .steps h3, .faq-item summary h3 { font-size: 20px; }
.faq-item summary { padding: 11px 0; }
.como__photo { aspect-ratio: 1 / 1; }
@media (max-width: 1023px) {
  .nav__consent { top: auto; bottom: calc(var(--bar, 0px) + var(--s-2)); left: var(--s-2); right: var(--s-2); border: 1px solid rgba(39,39,39,.2); border-radius: var(--r-md); padding: var(--s-3) var(--s-4); }
}
@media (max-width: 639px) { .compare tbody th { width: auto; } }
/* impeccable craft floor */
.hero__facts { margin: var(--s-4) 0 0; font-size: 16px; font-weight: 700; color: var(--ink); }
.frase__who { margin-top: var(--s-5); font-size: 16px; color: var(--muted); }
.reconhece__list li { grid-template-columns: 1fr; }
.reconhece__list li::before { content: none; }
.footer.band--blue .btn--secondary:hover { background: rgba(251,248,242,.14); color: #fbf8f2; }
::selection { background: var(--cream); color: var(--blue); }
html { accent-color: var(--cta); scrollbar-color: #9aa6ae #fbf8f2; }
.link, a { text-underline-offset: 3px; }

/* ---------- finish review fixes ---------- */
/* hero: portrait + a straight strip of three patient photos along its right edge */
.hero--split .hero__media { background: none; overflow: visible; border-radius: 0; }
.hero--split .hero__media > img:first-child { right: 172px; width: auto; border-radius: var(--r-lg); }
.hero--split .hero__media .hero-strip { position: absolute; top: 0; bottom: 0; right: 0; width: 160px; margin: 0; display: grid; grid-template-rows: repeat(3, 1fr); gap: 12px; }
.hero--split .hero__media .hero-strip img { position: static; width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-md); }
@media (max-width: 767px) {
  .hero--split .hero__media > img:first-child { right: 0; }
  .hero--split .hero__media .hero-strip { display: none; }
}
.hero .hero__facts { width: 100%; max-width: 46ch; white-space: normal; word-break: normal; display: block; }
/* count-up: tangerine numerals at display scale, the band's stage */
.numeros__row dd { font-size: clamp(64px, 6vw + 8px, 112px); }
@media (max-width: 639px) { .numeros__row dd { font-size: 64px; } }
.band--blue .numeros__row { margin-block: var(--s-8) var(--s-9); }
/* statement: centred in its screen, no hole under it */
#frase > .wrap { min-height: calc(100svh - var(--nav, 72px) - 200px); display: flex; flex-direction: column; justify-content: center; }
/* motion: the sweep only on the large buttons and the phone bar; hover lift + press on every booking button */
.cta.btn::after { animation: none; }
.cta--lg.btn::after, .actionbar .cta.btn::after { animation: cta-sweep 5.2s cubic-bezier(.65,0,.35,1) 2.4s infinite; }
.cta.btn { transition: transform 150ms cubic-bezier(.2,.8,.2,1), background-color 150ms ease; }
@media (hover: hover) { .cta.btn:hover { transform: translateY(-2px); } }
.cta.btn:active { transform: translateY(0) scale(.98); transition-duration: 90ms; }
/* play button: a ripple answers hover/focus, no endless loop */
.vplay { animation: none; }
@media (prefers-reduced-motion: no-preference) { .vplay:hover, .vplay:focus-visible { animation: ripple 1.2s ease-out 1; } }
.dep__video video { object-position: 50% 40%; }
/* photo-chapters: photograph in a near-portrait frame on the right, chapter words as plain type on the left */
@media (min-width: 1024px) {
  #clinica.is-live .mo-ph__stage { margin-left: 42%; overflow: visible; background: none; }
  #clinica.is-live .mo-ph__stage > .mo-ph__pic { border-radius: var(--r-lg); overflow: hidden; }
  #clinica.is-live .mo-ph__panel { left: calc(-42% / .58); width: calc(36% / .58); bottom: auto; top: 50%; transform: translateY(-50%); background: none; padding: 0; }
  #clinica.is-live .mo-ph__ch h3 { font-size: 40px; }
  #clinica.is-live .mo-ph__ch p { font-size: 20px; line-height: 1.55; }
}
#clinica .mo-ph__count { display: none; }
/* photo-chapters on phones: the moment is not mounted below 640px (inline script after the section); the chapters stack */
#clinica:not([data-moment]) .mo-ph__list { display: grid; gap: var(--s-7); list-style: none; padding: 0; margin: var(--s-6) 0 0; }
#clinica:not([data-moment]) .mo-ph__pic { margin: 0 0 var(--s-3); border-radius: var(--r-lg); overflow: hidden; }
#clinica:not([data-moment]) .mo-ph__pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
#clinica:not([data-moment]) .mo-ph__ch h3 { margin: 0 0 var(--s-2); font-size: 22px; }
.hero--split .hero__media .hero-strip { grid-template-rows: repeat(3, minmax(0, 1fr)); }
.hero--split .hero__media .hero-strip img { min-height: 0; height: 100%; }
@media (max-width: 767px) { .hero--split .hero__media > img:first-child { left: 0; right: 0; width: 100%; } }
/* phone cookie card: compact, and only lifted above the booking bar while that bar is showing,
   so on the first screen it never sits on the hero's booking button */
@media (max-width: 1023px) {
  .nav__consent { bottom: var(--s-2); padding: var(--s-2) var(--s-3); gap: var(--s-2); }
  :root:has(> body > nav.actionbar:is([data-bar="shown"], [data-bar="always"])) .nav__consent { bottom: calc(var(--bar, 0px) + var(--s-2)); }
  .nav__consent p { font-size: 14px; line-height: 1.35; }
  .nav__consent .btn { min-height: 44px; padding-inline: var(--s-3); }
  .privacy .btn { white-space: normal; max-width: 100%; }
}
@media (max-width: 399px) {
  .nav__consent .link { display: none; }       /* details stay reachable in the footer */
  .nav__consent .btn { flex: 1 1 0; }
  .nav__consent p { font-size: 13.5px; }
}

/* ================= horizontal rails (client request, round 3) ================= */
.rail__head { align-items: end; margin-bottom: var(--s-6); }
.rail__track { display: flex; gap: var(--s-5); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 0;
  padding-bottom: var(--s-3); scrollbar-width: thin; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.rail__track > * { scroll-snap-align: start; flex: none; }
.rail__track:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.rail__nav { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); margin-top: var(--s-4); }
.rail__hint { margin: 0; font-size: 16px; color: var(--muted); }
.rail__hint span { font-weight: 700; color: var(--ink); }
.rail__btns { display: flex; gap: var(--s-3); }
.rail__btn { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--blue); background: #fff; color: var(--blue);
  display: grid; place-items: center; cursor: pointer; transition: transform 150ms cubic-bezier(.2,.8,.2,1), background-color 150ms ease, opacity 150ms ease; }
.rail__btn svg { width: 26px; height: 26px; }
@media (hover: hover) { .rail__btn:not(:disabled):hover { background: var(--blue); color: #fbf8f2; transform: translateY(-2px); } }
.rail__btn:not(:disabled):active { transform: scale(.95); }
.rail__btn:disabled { opacity: .35; cursor: default; }

/* testimonials: video on top, words under it */
#depoimentos .dep { width: clamp(280px, 26vw, 360px); display: flex; flex-direction: column; gap: var(--s-3); }
#depoimentos .dep__video { aspect-ratio: 4 / 5; margin: 0; }
#depoimentos .dep__words { display: flex; flex-direction: column; gap: var(--s-2); }
#depoimentos .dep__fear { margin: var(--s-2) 0 0; }
@media (max-width: 639px) { #depoimentos .dep { width: 82vw; } }

/* clinic: big photos, frosted glass in a corner */
.rail--clinica .cli { position: relative; margin: 0; width: min(70vw, 900px); height: min(64svh, 600px); border-radius: var(--r-lg); overflow: hidden; }
.rail--clinica .cli img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--m-image, 600ms) var(--ease, ease); }
@media (hover: hover) { .rail--clinica .cli:hover img { transform: scale(1.02); } }
.glass { position: absolute; left: var(--s-5); bottom: var(--s-5); max-width: min(380px, calc(100% - 2 * var(--s-5)));
  padding: var(--s-5); border-radius: var(--r-md); color: #fff;
  background: rgba(20, 28, 34, .28); border: 1px solid rgba(255,255,255,.35);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
.glass h3 { margin: 0 0 6px; font-size: 22px; color: #fff; }
.glass p { margin: 0; font-size: 17px; line-height: 1.45; color: #fff; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .glass { background: rgba(20, 28, 34, .72); } }
@media (max-width: 639px) {
  .rail--clinica .cli { width: 88vw; height: auto; aspect-ratio: 4 / 5; }
  .glass { left: var(--s-3); right: var(--s-3); bottom: var(--s-3); max-width: none; padding: var(--s-4); }
  .glass h3 { font-size: 20px; } .glass p { font-size: 16px; }
}

/* patients: the row travels sideways while the page scrolls down (pinned) */
.pac { padding: 0; }
.pac.is-pinned { height: var(--hs-h, auto); }
.pac__sticky { padding-block: var(--padt) var(--padb); }
.pac.is-pinned .pac__sticky { position: sticky; top: 0; height: 100svh; box-sizing: border-box; padding-top: calc(var(--nav, 72px) + var(--s-6)); padding-bottom: calc(var(--s-6) + var(--bar, 0px)); display: flex; flex-direction: column; overflow: hidden; }
.pac__view { overflow-x: auto; padding-inline: var(--gut); flex: 1 1 auto; min-height: 0; }
.pac.is-pinned .pac__view { overflow: visible; }
.pac__track { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--s-4); height: 100%; will-change: transform; }
.pac__track li { flex: none; height: 100%; }
.pac:not(.is-pinned) .pac__track li { height: 420px; }
.pac__btn { display: block; height: 100%; aspect-ratio: 4 / 5; padding: 0; border: 0; border-radius: var(--r-md); overflow: hidden; cursor: zoom-in; background: #e8e2d4; }
.pac__btn img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--m-image, 600ms) var(--ease, ease); }
@media (hover: hover) { .pac__btn:hover img { transform: scale(1.03); } }
.pac__btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.pac__head { margin-bottom: var(--s-5); }

/* photo dialog */
.photo-dialog { border: 0; padding: 0; border-radius: var(--r-lg); max-width: min(92vw, 980px); width: 100%; background: #fbf8f2; color: var(--ink); overflow: hidden; }
.photo-dialog::backdrop { background: rgba(0, 20, 31, .72); }
.photo-dialog img { display: block; width: 100%; max-height: 70svh; object-fit: contain; background: #111; }
.photo-dialog__text { padding: var(--s-5) var(--s-6) var(--s-6); }
.photo-dialog__text p { margin: 0 0 var(--s-4); font-size: 19px; line-height: 1.5; }
.photo-dialog__btns { display: flex; gap: var(--s-3); flex-wrap: wrap; }
@media (prefers-reduced-motion: no-preference) { .photo-dialog[open] { animation: dlg-in 220ms cubic-bezier(.22,1,.36,1); } }
@keyframes dlg-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
main > section.pac.is-pinned { height: var(--hs-h, auto); min-height: 0; max-height: none; }
/* rails: sections grow with their content (never overlap the next one) */
main > section#depoimentos, main > section#clinica { height: auto; min-height: 100svh; }
#depoimentos .dep { width: clamp(260px, 22vw, 310px); }
#depoimentos .dep__video { aspect-ratio: 1 / 1; }
.rail--clinica .cli { height: min(56svh, 540px); }
@media (max-width: 639px) { #depoimentos .dep__video { aspect-ratio: 4 / 5; } .rail--clinica .cli { height: auto; } }
.glass { background: rgba(14, 22, 28, .44); }
.glass h3, .glass p { text-shadow: 0 1px 2px rgba(0,0,0,.25); }

/* ===== round 4 ===== */
/* hero: bigger portrait, whole head and shoulders */
.hero--split .hero__media > img:first-child { right: 152px; object-position: 50% 22%; }
.hero--split .hero__media .hero-strip { width: 140px; }
@media (max-width: 767px) { .hero--split .hero__media > img:first-child { right: 0; object-position: 50% 18%; } }
/* doctor band: photos shown whole (no crop) */
.dr__photos { align-items: start; }
.dr__photos .frame, .dr__photos .frame:last-child { height: auto; }
.dr__photos .frame:first-child { aspect-ratio: 3 / 2; }
.dr__photos .frame:last-child { aspect-ratio: 1 / 1; }
.dr__photos .frame img { object-fit: cover; object-position: 50% 40%; }
@media (max-width: 639px) { .dr__photos .frame:first-child { height: auto; aspect-ratio: 3 / 2; } }
/* Netflix-style peek: the next card always shows a slice at the right edge */
.rail--clinica .cli { width: min(70%, 900px); }
@media (max-width: 639px) {
  #depoimentos .dep { width: calc(100% - 64px); }
  .rail--clinica .cli { width: calc(100% - 56px); }
}
@media (min-width: 640px) and (max-width: 1023px) { .rail--clinica .cli { width: 78%; } #depoimentos .dep { width: 42%; } }
/* stacked hero (phones and tablets): the portrait keeps a portrait frame, head never cut */
@media (max-width: 1023px) {
  .hero--split .hero__media { flex: none; height: auto; min-height: 0; aspect-ratio: 4 / 5; width: 100%; max-width: 560px; max-height: 78svh; }
  .hero--split .hero__media > img:first-child { right: 0; width: 100%; object-position: 50% 12%; }
  .hero--split .hero__media .hero-strip { display: none; }
}
@media (max-width: 1023px) { main > section.hero.hero--split { height: auto; min-height: 100svh; } main > section.hero.hero--split > .wrap > .hero-text { height: auto; } }
/* patient names on each photo and in the dialog */
.pac__btn { position: relative; }
.pac__name { position: absolute; left: var(--s-3); right: var(--s-3); bottom: var(--s-3); padding: 8px 12px; border-radius: var(--r-sm);
  color: #fff; font-size: 16px; font-weight: 700; line-height: 1.25; text-align: left;
  background: rgba(14, 22, 28, .5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.photo-dialog__name { margin: 0 0 var(--s-2); font-size: 24px; }
@media (min-width: 1024px) { .hero--split .hero__media .hero-strip { width: 188px; } }

/* ===== round 5 ===== */
/* comparison: the removable denture recedes (grey, muted, crosses); the fixed one leads (blue, ticks, raised) */
.compare-row { margin-top: var(--s-8); }
.compare__title { font-size: 20px; margin: 0 0 var(--s-5); }
.vs { display: grid; grid-template-columns: 1fr 1.15fr; gap: var(--s-5); align-items: stretch; }
.vs__card { border-radius: var(--r-lg); padding: var(--s-6); }
.vs__card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); }
.vs__card li { display: grid; grid-template-columns: 28px 1fr; gap: var(--s-3); align-items: start; font-size: 18px; line-height: 1.45; }
.vs__ic { width: 26px; height: 26px; display: block; margin-top: 1px; }
.vs__name { margin: 0 0 var(--s-5); font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1.2; }
.vs__card--movel { background: #efece6; color: #5c5a55; border: 1px dashed rgba(39,39,39,.25); }
.vs__card--movel .vs__name { color: #6d6a64; }
.vs__card--movel b { font-weight: 700; color: #4f4d49; }
.vs__no { color: #a8402f; }
.vs__card--fixa { position: relative; background: var(--blue); color: #fbf8f2; box-shadow: 0 18px 40px -18px rgba(39,39,39,.4); transform: translateY(-6px); }
.vs__card--fixa .vs__name { color: #fff; font-size: 26px; }
.vs__card--fixa b { color: #fff; }
.vs__yes { color: #2fbf6a; }
.vs__badge { display: inline-block; margin: 0 0 var(--s-3); padding: 6px 12px; border-radius: 999px; background: var(--tangerine); color: #1d1206; font-weight: 700; font-size: 14px; }
.vs__card--fixa .btn { margin-top: var(--s-6); }
@media (max-width: 767px) { .vs { grid-template-columns: 1fr; } .vs__card--fixa { transform: none; order: -1; } }

/* no odd empty screens: sections grow with their content (hero and pinned gallery keep their own heights) */
main > section.section:not(.pac):not(.hero) { height: auto !important; min-height: 0 !important; }
main > section#frase { padding-block: var(--s-9); }
#frase > .wrap { min-height: 0; display: block; }
.section.g2 > .wrap > .group + * { margin-top: var(--s-8); }

/* patient gallery: photos fill the pinned screen */
.pac.is-pinned .pac__view { flex: 1 1 0; min-height: 0; display: flex; }
.pac.is-pinned .pac__track { height: auto; align-items: stretch; }
.pac.is-pinned .pac__track li { height: auto; display: flex; }
.pac.is-pinned .pac__btn { height: 100%; max-height: none; }
/* two-screen sections: rows sized by content, normal gap between them */
main > section.section.g2 > .wrap { grid-template-rows: auto auto !important; row-gap: var(--s-8) !important; }
main > section.section.g2 > .wrap > .grid:last-child, main > section.section.g2 > .wrap > .group > .grid:last-child { flex: none; align-self: start; }
.section.g2 > .wrap > .group + * { margin-top: 0; }
/* pinned gallery: its own CTA stays on screen, so the bottom bar is hidden here; photos run to the bottom edge */
.pac.is-pinned .pac__sticky { padding-bottom: var(--s-4); }
