/* =========================================================
   Landing Lift Coreano — Dr. João Paulo Toledo · V4
   Identidade: Proposta 02 (manual APR_DRJOAOTOLEDO, p. 44–57).
   Movimento: estados "antes da entrada" só valem com .motion
   (posta pelo JS quando há IntersectionObserver e o sistema não
   pede movimento reduzido). Sem JS ou com movimento reduzido,
   a página mostra os estados finais, estáticos.
   ========================================================= */

/* ---------- Tipografia oficial (quando os arquivos chegarem) ----------
   1. Copiar os .woff2 para /assets/fonts/
   2. Descomentar os @font-face abaixo
   3. Recolocar "Bright" no início de --font-display e "Aloevera Display" no início de
      --font-text (retirados em 27/11/2026 até haver licença web; ver o fim deste arquivo).

@font-face { font-family: "Bright"; src: url("/assets/fonts/Bright-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Aloevera Display"; src: url("/assets/fonts/AloeveraDisplay-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
*/

:root {
  /* Paleta Proposta 02 — valores dos vetores oficiais do kit (SVG) */
  --azul: #003751;       /* rgb(0%, 21.59%, 31.75%) */
  --coral: #ff656c;      /* rgb(100%, 39.64%, 42.23%) */
  --menta: #b6e6de;      /* rgb(71.51%, 90.10%, 86.92%) */
  --amarelo: #e9e442;    /* rgb(91.45%, 89.32%, 25.90%) */
  --cinza: #ececec;      /* rgb(92.71%, 92.73%, 92.71%) */
  /* Fundos e degradê das pranchas do manual (amostrados das páginas 45, 46 e 50) */
  --bege: #f5ebe2;
  --offwhite: #fffbf8;
  --anil: #0a004d;
  --ameixa: #54244e;
  --vinho: #3b0d17;
  /* Derivados para leitura (não fazem parte da paleta oficial) */
  --azul-900: #002535;
  --azul-80: #2f5568;
  --menta-claro: #d6f1ec;
  --texto-claro: #e6f4f1;
  --linha: rgba(0, 55, 81, .16);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-text: "Outfit", "Segoe UI", system-ui, sans-serif;

  --gutter: 20px;
  --max: 1200px;
  --space: clamp(64px, 7.5vw, 108px);
  --r: 24px;
  --r-xl: clamp(120px, 22vw, 220px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --sticky-h: 0px;
}

@media (max-width: 360px) { :root { --gutter: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (min-width: 1024px) { html { scroll-padding-top: 88px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--azul);
  background: var(--offwhite);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
strong { font-weight: 600; }

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--azul); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; border-radius: 6px; }
.cases :focus-visible, .invite :focus-visible, .site-footer :focus-visible { outline-color: var(--menta); }

/* ---------- Elementos de marca ---------- */
.shape use { fill: var(--menta); }
.star use { fill: var(--coral); }
.star--inline { width: 14px; height: 14px; flex: none; }
/* o viewBox do símbolo enquadra o desenho inteiro; a estrela é recortada pelo próprio SVG */
.star { overflow: visible; }

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-text);
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--azul-80);
  margin-bottom: 18px;
}
.eyebrow--light { color: var(--menta); }
/* Estrela isolada: mostra só a parte coral do símbolo, ampliada */
.star--inline { width: 16px; height: 16px; }
.star--inline, .hero__star, .invite__star { --sx: 0; }

.section-title {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 96;
  font-weight: 560;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -.015em;
  color: var(--azul);
  text-wrap: balance;
}
.section-title--light { color: var(--offwhite); }

/* ---------- Botão ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 14px 28px;
  border-radius: 999px;
  background: var(--coral); color: var(--azul-900);
  font-family: var(--font-text); font-size: 1.02rem; font-weight: 600; line-height: 1.2; text-align: center;
  text-decoration: none;
  box-shadow: 0 10px 24px -12px rgba(0, 37, 53, .55);
  transition: transform .25s var(--ease), background-color .25s, box-shadow .25s;
}
.btn:hover { background: #ff7b81; transform: translateY(-2px); box-shadow: 0 16px 28px -14px rgba(0, 37, 53, .6); }
.btn:active { transform: translateY(0); }
.btn__icon { width: 20px; height: 20px; flex: none; }
.btn--block { display: flex; width: 100%; }
@media (max-width: 360px) { .btn { padding-inline: 14px; gap: 8px; font-size: .95rem; } }
@media (max-width: 340px) { .btn__icon { display: none; } }

/* ---------- Cabeçalho ---------- */
.site-header { position: relative; z-index: 20; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.site-header__brand { display: block; padding: 6px 0; border-radius: 6px; }
.site-header__brand img { height: 50px; width: auto; }
.site-nav { display: none; }

@media (min-width: 1024px) {
  .site-header { position: sticky; top: 0; transition: background-color .3s, box-shadow .3s; }
  .site-header.is-scrolled { background: rgba(255, 251, 248, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--linha); }
  .site-header__inner { min-height: 80px; }
  .site-header__brand img { height: 64px; }
  .site-nav { display: flex; gap: 6px; }
  .site-nav a {
    position: relative; padding: 10px 14px; border-radius: 999px;
    font-size: .92rem; font-weight: 500; text-decoration: none; color: var(--azul);
    transition: background-color .2s;
  }
  .site-nav a:hover { background: rgba(182, 230, 222, .55); }
}

/* =========================================================
   1. ABERTURA
   ========================================================= */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 80% at 100% 0%, var(--bege) 0%, rgba(245, 235, 226, 0) 60%),
    linear-gradient(180deg, var(--bege) 0%, var(--offwhite) 100%);
  margin-top: -72px; padding-top: 72px;
  padding-bottom: clamp(56px, 8vw, 96px);
}
.hero__shapes { position: absolute; inset: 0; pointer-events: none; }
.hero .shape { position: absolute; width: min(150vw, 1100px); height: auto; opacity: .55; }
.hero .shape--a { right: -62vw; top: -6vw; }
.hero .shape--b { right: -46vw; top: 18vw; }

.hero__grid { position: relative; display: grid; gap: 28px; }
.hero__media { position: relative; }
.frame { position: relative; overflow: hidden; background: var(--cinza); }
.frame picture, .case__media picture { width: 100%; height: 100%; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--hero {
  height: clamp(230px, 40svh, 440px);
  border-radius: var(--r) var(--r-xl) var(--r) var(--r);
}
.frame--hero img { object-position: 50% 15%; }
.hero__star { position: absolute; left: -10px; bottom: -18px; width: 78px; height: 70px; }

.hero__title {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  font-weight: 600;
  font-size: clamp(2.7rem, 11.5vw, 6rem);
  line-height: .96;
  letter-spacing: -.025em;
  margin-bottom: 18px;
}
.hero__line { display: block; padding-bottom: .04em; }
.hero__line > span { display: inline-block; }
.hero__line--2 { font-weight: 420; color: var(--anil); }
.hero__claim { font-size: 1.12rem; line-height: 1.45; max-width: 34ch; margin-bottom: 14px; }
.hero__claim strong { font-weight: 600; background: linear-gradient(transparent 62%, rgba(182, 230, 222, .9) 62%); }
.hero__lead { color: var(--azul-80); max-width: 46ch; margin-bottom: 24px; }
.hero__actions { display: grid; justify-items: start; gap: 10px; }
.hero__note { font-size: .88rem; color: var(--azul-80); }
.hero__cue {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 26px;
  font-size: .92rem; font-weight: 600; text-decoration: none;
  border-bottom: 1.5px solid var(--coral); padding-bottom: 4px;
}

@media (max-width: 699px) {
  /* celular: o botão vem logo depois da chamada; o texto de apoio desce */
  .hero__text { display: flex; flex-direction: column; }
  .hero__actions { order: 4; margin-bottom: 22px; }
  .hero__lead { order: 5; margin-bottom: 0; }
  .hero__cue { order: 6; align-self: flex-start; }
  .hero__actions .btn { width: 100%; }
  .hero__actions { justify-items: stretch; }
  .hero__note { text-align: center; }
}
@media (max-width: 420px) {
  .hero__lead { font-size: 1rem; }
}
@media (max-height: 640px) and (max-width: 699px) {
  .frame--hero { height: 36svh; min-height: 210px; }
  .frame--hero img { object-position: 50% 17%; }
  .hero__title { font-size: 2.5rem; margin-bottom: 12px; }
  .hero__claim { font-size: 1rem; }
}

@media (min-width: 1024px) {
  .hero { margin-top: -80px; padding-top: 80px; }
  .hero__grid { min-height: min(calc(100svh - 80px), 860px); }
}
@media (min-width: 700px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    align-items: center; gap: clamp(32px, 6vw, 96px);
    padding-top: 24px;
  }
  .hero__media { order: 2; justify-self: end; width: min(100%, 460px); }
  .hero__text { order: 1; }
  .frame--hero { height: auto; aspect-ratio: 9 / 16; max-height: calc(100svh - 150px); min-height: 520px; width: auto; }
  .frame--hero img { object-position: 50% 30%; }
  .hero__star { left: -40px; bottom: 56px; width: 88px; height: 80px; }
  .hero .shape { width: 1080px; }
  .hero .shape--a { right: -300px; top: -140px; }
  .hero .shape--b { right: -170px; top: 190px; }
  .hero__title { font-size: clamp(3.2rem, 6.6vw, 6rem); }
  .hero__claim { font-size: clamp(1.12rem, 1.6vw, 1.28rem); }
  .hero__lead { font-size: 1.1rem; }
}

/* =========================================================
   2. CASOS
   ========================================================= */
.cases {
  position: relative;
  background: var(--azul);
  color: var(--texto-claro);
  padding-block: var(--space) calc(var(--space) * .8);
}
.cases__head { display: grid; gap: 18px; margin-bottom: 36px; }
.cases__intro { max-width: 52ch; color: var(--texto-claro); }
.cases__intro strong { color: #fff; }
@media (min-width: 900px) {
  .cases__head { grid-template-columns: 1fr 1fr; align-items: end; gap: 48px; margin-bottom: 48px; }
}

.gallery__track {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: calc(100% - 26px);
  gap: 14px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
  border-radius: var(--r);
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track:focus-visible { outline-offset: 6px; }
@media (min-width: 900px) {
  .gallery__track { grid-auto-columns: calc((100% - 24px) / 2); gap: 24px; }
}
.gallery__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.gallery__track.is-dragging img { pointer-events: none; }

.case { scroll-snap-align: start; transition: opacity .5s var(--ease); }
.case__media { position: relative; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: #0b2f42; }
.case__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.case__tag {
  position: absolute; top: 12px;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(0, 37, 53, .78); color: #fff;
  font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.case__tag--before { left: 12px; }
.case__tag--after { left: calc(50% + 12px); background: var(--coral); color: var(--azul-900); }
.case__cap { display: flex; align-items: baseline; gap: 10px; margin-top: 14px; font-size: .95rem; color: var(--texto-claro); }
.case__num { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--coral); }

.gallery__bar { display: grid; gap: 18px; margin-top: 26px; }
.gallery__nav { display: flex; align-items: center; gap: 16px; }
.gallery__btn {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 1.5px solid rgba(182, 230, 222, .7); background: transparent; color: var(--offwhite);
  cursor: pointer; transition: background-color .25s, color .25s, border-color .25s, opacity .25s;
}
.gallery__btn:hover:not(:disabled) { background: var(--menta); color: var(--azul); border-color: var(--menta); }
.gallery__btn:disabled { opacity: .35; cursor: default; }
.gallery__count { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; min-width: 3.6em; white-space: nowrap; text-align: center; color: var(--offwhite); }
.gallery__current { display: inline-block; color: var(--coral); }
.gallery__thumbs { display: flex; gap: 8px; }
.gallery__thumb {
  position: relative; display: block; width: 44px; height: 44px; flex: none;
  border-radius: 10px; overflow: hidden; opacity: .5;
  outline: 2px solid transparent; outline-offset: 2px;
  transition: opacity .3s, outline-color .3s, transform .3s var(--ease);
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover { opacity: .85; }
.gallery__thumb.is-current { opacity: 1; outline-color: var(--coral); transform: translateY(-2px); }
.gallery__thumb:focus-visible { outline: 3px solid var(--menta); opacity: 1; }
@media (max-width: 380px) { .gallery__thumbs { gap: 6px; } .gallery__thumb { width: 35px; height: 35px; border-radius: 8px; } }
@media (min-width: 900px) {
  .gallery__bar { grid-template-columns: auto 1fr; align-items: center; justify-items: end; }
  .gallery__thumb { width: 52px; height: 52px; }
}

.cases__foot { display: grid; gap: 16px; justify-items: start; margin-top: clamp(48px, 6vw, 72px); padding-top: 32px; border-top: 1px solid rgba(182, 230, 222, .25); }
.cases__foot p { font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.25; color: var(--offwhite); max-width: 30ch; }
@media (max-width: 599px) { .cases__foot .btn { width: 100%; } .cases__foot { justify-items: stretch; } }
@media (min-width: 900px) { .cases__foot { grid-template-columns: 1fr auto; align-items: center; } }

/* =========================================================
   3. POR QUE CONHECER O LIFT COREANO (compacto)
   ========================================================= */
.why { padding-block: var(--space); background: var(--offwhite); }
.why__grid { display: grid; gap: 28px; }
.why__list { display: grid; gap: 0; border-top: 1px solid var(--linha); }
.why__item { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--linha); }
.why__num { grid-row: span 2; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; line-height: 1.1; color: var(--coral); }
.why__item h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 560; line-height: 1.2; margin-bottom: 6px; }
.why__item p { color: var(--azul-80); }
@media (min-width: 900px) {
  .why__grid { gap: 44px; }
  .why__list { grid-template-columns: repeat(3, 1fr); gap: 40px; border-top: 0; }
  .why__item { display: block; padding: 26px 0 0; border-bottom: 0; border-top: 2px solid var(--azul); }
  .why__num { display: block; font-size: 1.9rem; margin-bottom: 14px; }
  .why__item h3 { font-size: 1.55rem; margin-bottom: 10px; }
}

/* =========================================================
   4. PROFISSIONAL
   ========================================================= */
.doctor { padding-block: var(--space); background: var(--bege); overflow: hidden; }
.doctor__grid { display: grid; gap: 44px; }
.doctor__media, .place__media { width: 100%; max-width: 520px; }
.doctor__media { position: relative; }
.frame--doctor { aspect-ratio: 4 / 5; border-radius: var(--r-xl) var(--r) var(--r) var(--r); }
.frame--doctor img { object-position: 50% 0%; }
.doctor__media { isolation: isolate; }
.doctor__shape { display: none; position: absolute; right: -18%; bottom: -14%; width: 88%; height: auto; z-index: 0; pointer-events: none; }
.doctor__shape use { fill: var(--menta); }
.doctor__media .frame { z-index: 1; }
.doctor__name {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  font-weight: 600; font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1; letter-spacing: -.02em;
  margin-bottom: 14px;
}
.doctor__meta { font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--azul-80); margin-bottom: 26px; }
.doctor__lead { font-family: var(--font-display); font-size: clamp(1.35rem, 2.6vw, 1.75rem); line-height: 1.25; font-weight: 500; margin-bottom: 16px; padding-left: 18px; border-left: 3px solid var(--coral); }
.doctor__text > p:not([class]) { max-width: 52ch; color: var(--azul-80); }
.doctor__points { display: grid; gap: 12px; margin-top: 28px; }
.doctor__points li { position: relative; padding: 14px 18px 14px 50px; border-radius: 16px; background: var(--offwhite); }
.doctor__points li::before {
  content: ""; position: absolute; left: 18px; top: 50%; width: 16px; height: 16px; margin-top: -8px;
  background: var(--coral);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
@media (min-width: 1024px) {
  .doctor__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 88px; align-items: center; }
  .doctor__shape { display: block; width: 100%; right: -34%; bottom: -16%; }
}

/* =========================================================
   5. COMO AGENDAR
   ========================================================= */
.steps { padding-block: var(--space); background: var(--offwhite); }
.steps__head { margin-bottom: 44px; max-width: 640px; }
.steps__list { position: relative; display: grid; gap: 34px; padding-left: 34px; }
.steps__list::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; background: var(--linha); }
.steps__list::after { content: ""; position: absolute; left: 8px; top: 8px; width: 2px; height: calc(100% - 16px); background: var(--coral); transform-origin: top; transform: scaleY(var(--steps-p, 1)); }
.step { position: relative; }
.step::before { content: ""; position: absolute; left: -33px; top: 12px; width: 16px; height: 16px; border-radius: 50%; background: var(--offwhite); border: 2px solid var(--coral); z-index: 1; }
.step__num {
  display: block; font-family: var(--font-display); font-weight: 600; font-size: 3.4rem; line-height: 1;
  color: var(--menta); -webkit-text-stroke: 1.5px var(--azul); margin-bottom: 10px;
  transition: color .8s var(--ease) .2s;
}
.motion .step:not(.is-in) .step__num { color: transparent; }
.step__title { font-family: var(--font-display); font-size: 1.45rem; font-weight: 560; line-height: 1.2; margin-bottom: 8px; }
.step p { color: var(--azul-80); max-width: 38ch; }
.steps__cta { margin-top: 44px; }
@media (max-width: 599px) { .steps__cta .btn { width: 100%; } }
@media (min-width: 900px) {
  .steps__list { grid-template-columns: repeat(3, 1fr); gap: 40px; padding-left: 0; padding-top: 34px; }
  .steps__list::before { left: 8px; right: 8px; top: 7px; bottom: auto; width: auto; height: 2px; }
  .steps__list::after { left: 8px; top: 7px; height: 2px; width: calc(100% - 16px); transform-origin: left; transform: scaleX(var(--steps-p, 1)); }
  .step::before { left: 0; top: -34px; }
}

/* =========================================================
   6. DÚVIDAS FREQUENTES
   ========================================================= */
.faq { padding-block: var(--space); background: var(--bege); }
.faq__grid { display: grid; gap: 36px; }
.faq__aside { margin-top: 20px; color: var(--azul-80); max-width: 40ch; font-size: .98rem; }
.qa { border-top: 1px solid var(--linha); }
.qa:last-child { border-bottom: 1px solid var(--linha); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 4px; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: clamp(1.15rem, 2.2vw, 1.4rem); font-weight: 520; line-height: 1.3;
  transition: color .2s;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--anil); }
.qa summary i {
  position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--azul);
  transition: transform .45s var(--ease), background-color .3s, border-color .3s;
}
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: currentColor; }
.qa summary i::after { transform: rotate(90deg); }
.qa[open] summary i { transform: rotate(135deg); background: var(--coral); border-color: var(--coral); }
.qa__body { overflow: hidden; }
.qa__body p { padding: 0 64px 26px 4px; color: var(--azul-80); max-width: 62ch; }
@media (max-width: 599px) { .qa__body p { padding-right: 4px; } }
@media (min-width: 1024px) {
  .faq__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 72px; align-items: start; }
  .faq__head { position: sticky; top: 120px; }
}

/* =========================================================
   7. LOCAL E CONVITE FINAL
   ========================================================= */
.place { background: var(--offwhite); }
.place__grid { display: grid; gap: 36px; padding-block: var(--space) calc(var(--space) * .9); }
.frame--place { aspect-ratio: 4 / 5; border-radius: var(--r) var(--r) var(--r-xl) var(--r); }
.frame--place img { object-position: 50% 62%; }
.place__data { display: grid; margin-top: 26px; }
.place__data div { display: grid; gap: 2px; padding: 16px 0; border-top: 1px solid var(--linha); }
.place__data dt { font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--azul-80); }
.place__data dd { font-size: 1.1rem; }
@media (min-width: 900px) {
  .place__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 80px; align-items: center; }
  .frame--place { max-width: 440px; }
}

.invite {
  position: relative; overflow: hidden;
  color: #fff;
  background: linear-gradient(165deg, #124c57 0%, #000d4c 34%, var(--anil) 56%, #230b49 74%, var(--ameixa) 88%, #ce5463 100%);
  padding-block: clamp(64px, 9vw, 120px);
}
@media (min-width: 900px) {
  .invite { background: linear-gradient(100deg, #c0e2e4 0%, #8eb481 9%, #124c57 24%, #000d4c 40%, var(--anil) 55%, #230b49 70%, var(--ameixa) 84%, #ce5463 96%, #e56d6e 100%); }
}
.invite__shapes { position: absolute; inset: 0; pointer-events: none; }
.invite .shape { position: absolute; width: 1000px; height: auto; opacity: .1; }
.invite .shape use { fill: var(--menta); }
.invite .shape--a { left: -380px; top: -220px; }
.invite .shape--b { left: -250px; top: 40px; }
.invite__grid { position: relative; display: grid; gap: 36px; }
.invite__media { position: relative; width: min(62%, 300px); }
.frame--invite { aspect-ratio: 3 / 4; border-radius: var(--r) var(--r-xl) var(--r) var(--r); background: #0b2f42; }
.frame--invite img { object-position: 50% 15%; }
.invite__star { position: absolute; right: -36px; bottom: 18px; width: 70px; height: 62px; }
.invite__title {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  font-weight: 600; font-size: clamp(2.3rem, 6vw, 4.4rem); line-height: 1; letter-spacing: -.02em;
  margin-bottom: 18px; text-wrap: balance;
}
.invite__lead { font-size: 1.1rem; max-width: 40ch; color: var(--texto-claro); margin-bottom: 28px; }
.invite__note { margin-top: 12px; font-size: .88rem; color: var(--texto-claro); }
@media (max-width: 599px) { .invite .btn { width: 100%; } .invite__note { text-align: center; } }
@media (min-width: 900px) {
  .invite__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 80px; align-items: center; }
  .invite__media { width: 100%; max-width: 360px; justify-self: center; }
  .invite .shape { width: 1100px; }
  .invite .shape--a { left: -300px; top: -260px; }
  .invite .shape--b { left: -170px; top: 70px; }
}

/* ---------- Rodapé ---------- */
.site-footer { background: var(--azul-900); color: var(--texto-claro); padding: 40px 0 calc(40px + var(--sticky-h)); }
.site-footer__inner { display: grid; gap: 16px; }
.site-footer__logo { width: 168px; height: auto; }
.site-footer__meta { font-size: .86rem; line-height: 1.6; }
@media (min-width: 900px) { .site-footer__inner { grid-template-columns: auto 1fr auto; align-items: center; gap: 40px; } }
@media (min-width: 1024px) { .site-footer { padding-bottom: 40px; } }

/* ---------- Barra fixa (celular) ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 251, 248, .94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 -1px 0 var(--linha);
  transform: translateY(110%); visibility: hidden;
  transition: transform .35s var(--ease), visibility 0s linear .35s;
}
.sticky-cta.is-visible { transform: none; visibility: visible; transition: transform .35s var(--ease), visibility 0s; }
.sticky-cta .btn { min-height: 52px; }
@media (min-width: 1024px) { .sticky-cta { display: none; } }

/* =========================================================
   MOVIMENTO — só com .motion (JS + sem pedido de movimento reduzido)
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  /* Abertura: texto e botão já legíveis. Só a foto e as formas se movem, rápido. */
  .motion .frame--hero img { transform: scale(1.07); opacity: .35; transform-origin: 50% 25%; transition: transform 1.1s var(--ease), opacity .45s ease-out; }
  .motion .hero.is-ready .frame--hero img { transform: scale(1); opacity: 1; }
  /* depois da entrada, a foto acompanha a rolagem com um deslocamento leve (--hero-shift, landing.js) */
  .motion .hero.is-ready .frame--hero picture { transform: translateY(var(--hero-shift, 0px)) scale(1.04); transform-origin: 50% 20%; }
  .motion .hero .shape--a, .motion .invite .shape--a { transform: translate(-7%, -9%); }
  .motion .hero .shape--b, .motion .invite .shape--b { transform: translate(7%, 9%); }
  .motion .hero .shape, .motion .invite .shape { transition: transform 1.4s var(--ease); }
  .motion .hero__star, .motion .invite__star { transform: scale(0) rotate(-120deg); transition: transform .8s var(--ease) .25s; }
  .motion .hero.is-ready .shape, .motion .invite.is-in .shape { transform: none; }
  .motion .hero.is-ready .hero__star, .motion .invite.is-in .invite__star { transform: none; }

  /* Entradas gerais: só deslocamento curto, sem texto translúcido */
  .motion [data-reveal]:not([data-reveal="frame"]) { transform: translateY(18px); transition: transform .55s var(--ease); }
  .motion [data-reveal][data-delay="1"] { transition-delay: .06s; }
  .motion [data-reveal][data-delay="2"] { transition-delay: .12s; }
  .motion [data-reveal].is-in { transform: none; }

  /* Imagens reveladas dentro do enquadramento */
  .motion [data-reveal="frame"] .frame { clip-path: inset(10% 0 0 0); transition: clip-path .8s var(--ease); }
  .motion [data-reveal="frame"] .frame img { transform: scale(1.08); transition: transform 1.1s var(--ease); }
  .motion [data-reveal="frame"].is-in .frame { clip-path: inset(0 0 0 0); }
  .motion [data-reveal="frame"].is-in .frame img { transform: none; }
  .motion .doctor__shape { transform: translate(40px, 40px) rotate(-8deg); opacity: 0; transition: transform 1.6s var(--ease) .3s, opacity 1s .3s; }
  .motion .doctor__media.is-in .doctor__shape { transform: none; opacity: 1; }

  /* Transição entre seções: a faixa escura dos casos e o convite se abrem com a leitura */
  .motion [data-morph], .motion [data-invite] {
    clip-path: inset(0 calc(var(--morph, 0) * 4.5%) round calc(var(--morph, 0) * 64px));
  }

  /* Casos: o caso em foco se acende, os demais recuam */
  .motion .gallery.is-live .case { opacity: .42; }
  .motion .gallery.is-live .case.is-active { opacity: 1; }
  .motion .gallery.is-live .case:not(.is-active) .case__media img { transform: scale(.96); }
  .motion .gallery.is-live .case:not(.is-active) .case__tag { opacity: 0; transform: translateY(-6px); }
  .motion .gallery__current.is-ticking { animation: tick .45s var(--ease); }
  @keyframes tick { from { transform: translateY(60%); opacity: 0; } to { transform: none; opacity: 1; } }

}

/* =========================================================
   V4.1 — leitura no desktop: apoio, legendas e controles maiores
   ========================================================= */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 8px 14px; border-radius: 999px; background: var(--offwhite); border: 1px solid var(--linha); font-size: .95rem; }
.doctor__also { margin-top: 26px; }
.doctor__also-title { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--azul-80); margin-bottom: 12px; }
@media (max-width: 1023px) { html { scroll-padding-bottom: 96px; } }
@media (min-width: 1024px) {
  body { font-size: 1.125rem; }
  .eyebrow { font-size: .84rem; }
  .hero__lead { font-size: 1.2rem; }
  .hero__note { font-size: .95rem; }
  .hero__cue { font-size: 1rem; }
  .btn { min-height: 60px; font-size: 1.08rem; padding-inline: 32px; }
  .cases__intro { font-size: 1.15rem; }
  .case__cap { font-size: 1.05rem; }
  .case__num { font-size: 1.5rem; }
  .case__tag { font-size: .8rem; padding: 6px 13px; top: 16px; }
  .case__tag--before { left: 16px; } .case__tag--after { left: calc(50% + 16px); }
  .gallery__btn { width: 58px; height: 58px; }
  .gallery__count { font-size: 1.75rem; }
  .gallery__thumb { width: 60px; height: 60px; }
  .gallery__bar { margin-top: 30px; }
  .cases__foot { margin-top: 48px; }
  .why__item p, .step p, .doctor__text > p:not([class]) { font-size: 1.125rem; }
  .doctor__meta, .place__data dt { font-size: .86rem; }
  .chips li { font-size: 1rem; }
  .step__title { font-size: 1.6rem; }
  .steps__head { margin-bottom: 36px; }
  .steps__cta { margin-top: 36px; }
  .qa summary { font-size: 1.45rem; }
  .qa__body p { font-size: 1.1rem; }
  .faq__aside { font-size: 1.05rem; }
  .place__data dd { font-size: 1.2rem; }
  .place__grid { padding-block: calc(var(--space) * .8); }
  .invite__lead { font-size: 1.2rem; }
  .invite__note { font-size: .95rem; }
  .site-footer__meta { font-size: .95rem; }
}

.doctor__text { position: relative; z-index: 2; }
.sticky-cta.is-visible.is-yielding { transform: translateY(110%); visibility: hidden; transition: transform .25s var(--ease), visibility 0s linear .25s; }

/* =========================================================
   V4.2 — nova abertura (fundo claro, azul como base de contraste)
   Texto e botão estáticos; só a foto entra, uma vez, em 0,6 s.
   ========================================================= */
.hero2 {
  --band: 34%;
  position: relative;
  margin-top: -72px; padding-top: 72px;
  background: linear-gradient(180deg, var(--bege) 0%, var(--offwhite) 46%);
}
/* faixa azul que nasce sob a foto e continua nos casos */
.hero2::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--band-h, 180px); background: var(--azul); }
.hero2__grid { position: relative; z-index: 1; display: grid; gap: 36px; padding-top: 20px; }
.hero2__title {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 40, "WONK" 0, "opsz" 144;
  font-weight: 580;
  font-size: clamp(2.55rem, 9.6vw, 5.4rem);
  line-height: 1; letter-spacing: -.022em;
  max-width: 11ch; text-wrap: balance;
}
.hero2__lead { margin: 16px 0 26px; max-width: 30ch; font-size: clamp(1.12rem, 1.6vw, 1.45rem); line-height: 1.45; color: var(--azul-80); }
.hero2__id { padding-top: 18px; border-top: 1px solid var(--linha); max-width: 34rem; }
.hero2__name { font-family: var(--font-display); font-variation-settings: "SOFT" 40, "opsz" 72; font-weight: 560; font-size: clamp(1.35rem, 2vw, 1.85rem); line-height: 1.2; }
.hero2__cred { display: flex; flex-wrap: wrap; gap: 2px 8px; margin-top: 4px; font-size: .95rem; color: var(--azul-80); }
.hero2__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 28px; }
.hero2__cases {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 0;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  border-bottom: 1.5px solid var(--coral);
}
.hero2__cases:hover { color: var(--anil); }
.hero2__media { position: relative; }
.hero2__frame {
  aspect-ratio: 4 / 5; overflow: hidden; background: var(--cinza);
  border-radius: 18px 140px 18px 18px;
  box-shadow: 0 34px 60px -34px rgba(0, 37, 53, .55);
}
.hero2__frame picture, .hero2__frame img { width: 100%; height: 100%; object-fit: cover; }
.hero2__caption { margin-top: 12px; font-size: .86rem; color: var(--texto-claro); }
.cases { padding-top: clamp(48px, 6vw, 80px); }

@media (max-width: 699px) {
  .hero2::after { height: 46vw; }
  .hero2__actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero2__actions .btn { width: 100%; }
  .hero2__cases { align-self: center; }
  .hero2__frame { border-radius: 16px 96px 16px 16px; }
}
@media (max-width: 360px) {
  .hero2__lead { margin: 12px 0 20px; }
  .hero2__actions { margin-top: 22px; }
}
@media (min-width: 700px) {
  .hero2__grid { grid-template-columns: minmax(0, 1fr) clamp(300px, 40vw, 540px); align-items: center; gap: clamp(40px, 6vw, 96px); padding-top: 32px; }
  .hero2::after { height: clamp(140px, 18vw, 230px); }
  .hero2__caption { text-align: right; }
}
@media (min-width: 1024px) {
  .hero2 { margin-top: -80px; padding-top: 80px; }
  .hero2__grid { min-height: min(calc(100svh - 80px), 820px); padding-block: 24px 0; align-items: end; }
  .hero2__text { align-self: center; padding-bottom: clamp(80px, 12vw, 200px); }
  .hero2__lead { font-size: 1.45rem; }
  .hero2__cred { font-size: 1.05rem; }
  .hero2__frame { max-height: calc(100svh - 150px); margin-left: auto; }
  .site-header__brand img { height: 76px; }
  .site-header__inner { min-height: 96px; }
}
@media (max-width: 1023px) { .site-header__brand img { height: 56px; } }

@media (prefers-reduced-motion: no-preference) {
  .motion .hero2__frame img { opacity: 0; transform: scale(1.035); transition: opacity .6s ease-out, transform .9s var(--ease); }
  .motion .hero2.is-ready .hero2__frame img { opacity: 1; transform: none; }
}
/* V4.2 — ajustes após revisão visual */
@media (max-width: 699px) {
  .hero2__cred { display: block; }
  .hero2__cred span { display: block; }
  .hero2__cred span[aria-hidden] { display: none; }
}
@media (min-width: 1024px) {
  .hero2::after { height: 170px; }
  .hero2__grid { align-items: center; min-height: 0; padding-block: 28px 0; }
  .hero2__text { padding-bottom: 150px; }
  .hero2__frame { max-height: calc(100svh - 190px); }
  .hero2__media { padding-bottom: 0; }
}
@media (min-width: 1024px) {
  .hero2__grid { grid-template-columns: minmax(0, 1fr) clamp(420px, 42vw, 600px); align-items: start; }
  .hero2__text { align-self: start; padding: clamp(40px, 6vh, 80px) 0 0; }
  .hero2::after { height: 150px; }
  .hero2__frame { max-height: calc(100svh - 170px); }
}
@media (min-width: 1024px) {
  .hero2__grid { grid-template-columns: minmax(0, 1fr) clamp(400px, 39vw, 560px); gap: clamp(40px, 4.5vw, 72px); }
  .hero2::after { height: 132px; }
}

/* =========================================================
   V4.3 — direção de arte e movimento da página inteira
   Regra: texto e botões sempre legíveis (nunca opacity 0).
   Cada bloco tem um movimento próprio; tudo some com
   movimento reduzido ou sem JS.
   ========================================================= */

/* ---------- Galeria com 10 casos: miniaturas em grade ---------- */
.gallery__thumbs { flex-wrap: wrap; }
@media (max-width: 899px) {
  .gallery__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; max-width: 340px; }
  .gallery__thumb, .gallery__thumb img { width: 100%; height: auto; aspect-ratio: 1; }
}
@media (max-width: 380px) { .gallery__thumbs { gap: 6px; } }
@media (min-width: 900px) { .gallery__thumb { width: 54px; height: 54px; } .gallery__thumbs { gap: 8px; } }

/* ---------- Seções: tipografia mais sóbria e quadros com a curva da marca ---------- */
.section-title { font-variation-settings: "SOFT" 40, "WONK" 0, "opsz" 96; }
.doctor__name, .invite__title { font-variation-settings: "SOFT" 40, "WONK" 0, "opsz" 144; }
.frame--doctor { border-radius: 140px 18px 18px 18px; box-shadow: 0 34px 60px -34px rgba(0, 37, 53, .45); }
.frame--place { border-radius: 18px 18px 140px 18px; box-shadow: 0 34px 60px -38px rgba(0, 37, 53, .4); }

/* ---------- Passos: marcadores acendem conforme a linha passa ---------- */
.step::before { transition: background-color .4s var(--ease), transform .4s var(--ease); }
.step.is-on::before { background: var(--coral); transform: scale(1.15); }
.step__num { transition: color .6s var(--ease); }
.step.is-on .step__num { color: var(--coral); }

/* ---------- Convite final: azul de base, degradê só como luz ---------- */
.invite {
  background:
    radial-gradient(60% 90% at 88% 50%, rgba(255, 101, 108, .26) 0%, rgba(255, 101, 108, 0) 60%),
    radial-gradient(50% 80% at 70% 100%, rgba(10, 0, 77, .55) 0%, rgba(10, 0, 77, 0) 70%),
    var(--azul);
}
@media (min-width: 900px) {
  .invite {
    background:
      radial-gradient(45% 90% at 85% 50%, rgba(255, 101, 108, .24) 0%, rgba(255, 101, 108, 0) 60%),
      radial-gradient(40% 80% at 65% 100%, rgba(10, 0, 77, .55) 0%, rgba(10, 0, 77, 0) 70%),
      var(--azul);
  }
}
.invite::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, #c0e2e4 0%, #8eb481 14%, #124c57 30%, #0a004d 55%, #54244e 78%, #e56d6e 100%);
}
.invite .shape { opacity: .07; }
.invite__id { display: grid; gap: 2px; margin: 0 0 18px; padding-top: 16px; border-top: 1px solid rgba(182, 230, 222, .3); max-width: 34rem; }
.invite__id strong { font-family: var(--font-display); font-size: 1.35rem; font-weight: 560; }
.invite__id span { font-size: .95rem; color: var(--texto-claro); }
.frame--invite { aspect-ratio: 4 / 5; border-radius: 18px 140px 18px 18px; box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .7); }
.frame--invite img { object-position: 50% 30%; }
.invite__star { width: 46px; height: 40px; right: auto; left: -18px; bottom: 28px; }
@media (min-width: 900px) {
  .invite__grid { grid-template-columns: minmax(0, 1fr) clamp(320px, 34vw, 460px); gap: clamp(40px, 6vw, 96px); }
  .invite__media { max-width: none; justify-self: end; }
  .invite .shape--a { left: auto; right: -280px; top: -240px; }
  .invite .shape--b { left: auto; right: -160px; top: 80px; }
}
@media (max-width: 899px) {
  .invite__grid { gap: 32px; }
  .invite__media { width: min(78%, 320px); justify-self: center; }
}

/* ---------- Rodapé: Instagram ---------- */
.site-footer__ig {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 16px 6px 12px;
  border-radius: 999px; border: 1px solid rgba(182, 230, 222, .35);
  color: var(--offwhite); text-decoration: none; font-weight: 500; font-size: 1rem;
  transition: background-color .25s, border-color .25s, color .25s;
  justify-self: start;
}
.site-footer__ig:hover { background: var(--menta); border-color: var(--menta); color: var(--azul); }
.site-footer__ig svg { flex: none; }
@media (min-width: 900px) { .site-footer__inner { grid-template-columns: auto 1fr auto auto; } }

/* ---------- Barra fixa: some na hora, sem atraso ---------- */
.sticky-cta { transition: transform .22s var(--ease); }
.sticky-cta:not(.is-visible), .sticky-cta.is-yielding { visibility: hidden; pointer-events: none; transform: translateY(110%); transition: none; }

@media (prefers-reduced-motion: no-preference) {
  /* Abertura → casos: a foto sobe devagar e a faixa azul cresce conforme a rolagem (--hp: 0 a 1) */
  .motion .hero2__media { transform: translateY(calc(var(--hp, 0) * -48px)); will-change: transform; }
  .motion .hero2::after { transform-origin: bottom; transform: scaleY(calc(1 + var(--hp, 0) * .9)); will-change: transform; }

  /* Casos: entram em sequência (deslocamento lateral, sem esconder) */
  .motion .gallery .case { transform: translateX(64px); transition: transform .9s var(--ease) calc(var(--i, 0) * 90ms), opacity .5s var(--ease); }
  .motion .gallery.is-in .case { transform: none; }
  .motion .gallery.is-live .case { opacity: .5; }
  .motion .gallery.is-live .case.is-active { opacity: 1; }
  .motion .gallery.is-live .case:not(.is-active) .case__media img { transform: scale(.965); }

  /* Títulos de seção: a estrela gira ao entrar */
  .motion [data-reveal] .star--inline { transform: rotate(-90deg) scale(.4); transition: transform .8s var(--ease) .1s; }
  .motion [data-reveal].is-in .star--inline { transform: none; }

  /* Por que conhecer: o fio de cada item se desenha da esquerda para a direita */
  .motion .why__item { position: relative; }
  .motion .why__num { display: inline-block; transform: translateY(12px); transition: transform .7s var(--ease) .15s; }
  .motion .why__item.is-in .why__num { transform: none; }
  @media (min-width: 900px) {
    .motion .why__item { border-top-color: transparent; }
    .motion .why__item::before { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: var(--azul); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease); }
    .motion .why__item[data-delay="1"]::before { transition-delay: .12s; }
    .motion .why__item[data-delay="2"]::before { transition-delay: .24s; }
    .motion .why__item.is-in::before { transform: none; }
  }

  /* Dr. João: a foto sobe com contra-zoom; os procedimentos entram em sequência */
  .motion [data-reveal="frame"] .frame { clip-path: none; transform: translateY(40px); transition: transform 1.1s var(--ease); }
  .motion [data-reveal="frame"] .frame img { transform: scale(1.12); transition: transform 1.4s var(--ease); }
  .motion [data-reveal="frame"].is-in .frame { transform: none; }
  .motion [data-reveal="frame"].is-in .frame img { transform: none; }
  .motion .chips li { transform: translateY(10px); transition: transform .5s var(--ease); }
  .motion .doctor__also.is-in .chips li { transform: none; }
  .motion .doctor__also.is-in .chips li:nth-child(2) { transition-delay: .08s; }
  .motion .doctor__also.is-in .chips li:nth-child(3) { transition-delay: .16s; }

  /* Local: a fachada desliza dentro do quadro com a rolagem (--pp); as linhas dos dados se desenham */
  .motion .place__media.is-in .frame--place img { transform: translateY(var(--pp, 0px)) scale(1.1); transition: none; }
  .motion .place__data div { border-top-color: transparent; background: linear-gradient(var(--linha), var(--linha)) left top / 0 1px no-repeat; transition: background-size .9s var(--ease); }
  .motion .place__text.is-in .place__data div { background-size: 100% 1px; }
  .motion .place__text.is-in .place__data div:nth-child(2) { transition-delay: .12s; }
  .motion .place__text.is-in .place__data div:nth-child(3) { transition-delay: .24s; }

  /* Convite: retoma a abertura — foto entra como lá e as formas do símbolo se encontram */
  .motion .invite .frame--invite img { opacity: .2; transform: scale(1.06); transition: opacity .7s ease-out .1s, transform 1.1s var(--ease) .1s; }
  .motion .invite.is-in .frame--invite img { opacity: 1; transform: none; }
  .motion [data-invite] { clip-path: none; }
}

/* =========================================================
   V4.4 — correções de 27/11/2026
   ========================================================= */

/* ---------- Abertura: a faixa azul nunca alcança o texto ----------
   A faixa tem uma altura de projeto (--band-h) e a coluna de texto reserva
   esse espaço embaixo (padding-bottom). Assim, nome, CRO, texto e botões
   terminam sempre acima da faixa, qualquer que seja a altura real das fontes.
   No celular (uma coluna) a foto vem depois do texto e cobre a faixa. */
.hero2 { --band-h: 46vw; --band-gap: 32px; }
.hero2::after { height: var(--band-h); }
@media (min-width: 700px) {
  .hero2 { --band-h: clamp(112px, 12vw, 150px); }
  .hero2__grid { align-items: end; }
  .hero2__text { align-self: center; padding-bottom: calc(var(--band-h) + var(--band-gap)); }
}
@media (min-width: 1024px) {
  .hero2__text { align-self: start; }
  /* telas baixas de notebook: a foto acompanha a altura da tela sem ficar menor que o texto pede */
  .hero2__frame { max-height: max(420px, calc(100svh - 170px)); }
}
/* Crescimento da faixa com a rolagem: limitado ao espaço livre medido em landing.js
   (--band-grow = folga entre o fim do texto e o topo da faixa). Sem medida, não cresce. */
@media (prefers-reduced-motion: no-preference) {
  .motion .hero2::after { transform: scaleY(calc(1 + var(--hp, 0) * var(--band-grow, 0))); }
}

/* ---------- Galeria: avanço automático ---------- */
.gallery__nav { flex-wrap: wrap; }
.gallery__play {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px 0 14px;
  border-radius: 999px; border: 1.5px solid rgba(182, 230, 222, .7); background: transparent;
  color: var(--offwhite); font: 600 .95rem var(--font-text); cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s;
}
.gallery__play:hover { background: var(--menta); color: var(--azul); border-color: var(--menta); }
.gallery__play[hidden] { display: none; }
.gallery__play-ico { flex: none; }
.gallery__play .gallery__play-ico--play, .gallery.is-paused .gallery__play .gallery__play-ico--pause { display: none; }
.gallery.is-paused .gallery__play .gallery__play-ico--play { display: block; }
.gallery__progress { height: 2px; max-width: 340px; background: rgba(182, 230, 222, .22); border-radius: 2px; overflow: hidden; }
.gallery__progress i { display: block; height: 100%; width: 100%; background: var(--coral); transform-origin: 0 50%; transform: scaleX(0); }
.gallery__progress.is-running i { animation: gallery-progress var(--gallery-interval, 6s) linear forwards; }
.gallery.is-paused .gallery__progress i, .gallery__progress.is-held i { animation-play-state: paused; }
@keyframes gallery-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.gallery__progress[hidden] { display: none; }
/* volta do último ao primeiro: a faixa some e reaparece no início, sem rebobinar */
.gallery__track { transition: opacity .32s var(--ease); }
.gallery__track.is-wrapping { opacity: 0; }
/* CRO e exclusividade em linhas próprias até 1023 px (o "·" não sobra no fim da linha) */
@media (max-width: 1023px) {
  .hero2__cred { display: block; }
  .hero2__cred span { display: block; }
  .hero2__cred span[aria-hidden] { display: none; }
}
/* Notebooks com pouca altura útil (ex.: 1536 × 647, 1366 × 650): abertura mais compacta,
   sem reduzir o texto a ponto de perder leitura; o botão continua na primeira tela. */
@media (min-width: 1024px) and (max-height: 760px) {
  .hero2 { --band-h: clamp(88px, 13vh, 120px); --band-gap: 24px; }
  .site-header__inner { min-height: 80px; }
  .site-header__brand img { height: 60px; }
  .hero2__text { padding-top: 16px; }
  .hero2__title { font-size: clamp(3.2rem, 11.5vh, 5.4rem); }
  .hero2__lead { font-size: 1.25rem; margin: 12px 0 18px; }
  .hero2__id { padding-top: 14px; }
  .hero2__actions { margin-top: 20px; }
  .hero2__frame { max-height: calc(100svh - 120px); }
}
/* ---------- Contraste (WCAG AA), sem mudar o desenho ---------- */
.case__num { color: #ff8d92; }                 /* coral clareado sobre o azul: 5,3:1 */
.why__num { color: #b8343d; }                  /* coral escurecido sobre o claro */
@media (prefers-reduced-motion: no-preference) {
  /* o caso fora de foco recua só na imagem; a legenda continua legível */
  .motion .gallery.is-live .case { opacity: 1; }
  .motion .gallery.is-live .case .case__media { transition: opacity .5s var(--ease); }
  .motion .gallery.is-live .case:not(.is-active) .case__media { opacity: .5; }
}
.step.is-on .step__num { color: #b8343d; }      /* passo aceso: coral escurecido (contraste AA) */
/* Botão Pausar/Retomar com largura fixa: a troca do rótulo não mexe na linha dos controles */
.gallery__play { min-width: 118px; justify-content: center; }
@media (max-width: 420px) {
  .gallery__nav { gap: 10px; flex-wrap: nowrap; }
  .gallery__count { min-width: 0; font-size: 1.3rem; }
  .gallery__btn { width: 48px; height: 48px; flex: none; }
  .gallery__play { min-width: 0; width: 112px; padding: 0 12px; flex: none; }
}
@media (max-width: 340px) {
  .gallery__nav { gap: 6px; }
  .gallery__play { width: 46px; padding: 0; }
  .gallery__play [data-gallery-play-label] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.gallery__current { color: #ff8d92; }          /* contador: contraste AA também em tamanho menor */
@media (max-width: 300px) { .gallery__nav { flex-wrap: wrap; } }   /* zoom 200% no celular */
@media (prefers-reduced-motion: no-preference) {
  .motion .gallery__current.is-ticking { animation-name: tick-v44; }
  @keyframes tick-v44 { from { transform: translateY(40%); } to { transform: none; } }
}

/* =========================================================
   V4.5 — prévia (não publicada): controle compacto e foto da abertura
   ========================================================= */

/* ---------- Carrossel: controle redondo junto às setas ----------
   Mesmo tamanho e cor das setas; um anel fino mostra o tempo até o próximo caso.
   Sem texto visível: o nome acessível muda entre "Pausar…" e "Retomar…". */
.gallery__toggle { position: relative; border-color: transparent; }
.gallery__toggle:hover:not(:disabled) { border-color: var(--menta); }
.gallery__ring { position: absolute; inset: -1.5px; width: calc(100% + 3px); height: calc(100% + 3px); transform: rotate(-90deg); pointer-events: none; }
.gallery__ring circle { fill: none; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.gallery__ring-track { stroke: rgba(182, 230, 222, .7); }
.gallery__ring-bar { stroke: var(--coral); stroke-width: 2.5; stroke-dasharray: 100; stroke-dashoffset: 100; stroke-linecap: round; }
.gallery__toggle.is-running .gallery__ring-bar { animation: ring-v45 var(--gallery-interval, 6s) linear forwards; }
.gallery__toggle.is-held .gallery__ring-bar { animation-play-state: paused; }
@keyframes ring-v45 { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.gallery__toggle:hover .gallery__ring-track { stroke: transparent; }
.gallery__toggle-ico { position: relative; }
.gallery__toggle-ico--play, .gallery.is-paused .gallery__toggle-ico--pause { display: none; }
.gallery.is-paused .gallery__toggle-ico--play { display: block; }
.gallery.is-paused .gallery__ring-bar { opacity: 0; }
.gallery__toggle:focus-visible { outline: 3px solid var(--menta); outline-offset: 4px; }
/* o botão textual da V4.4 e a linha de progresso deixam de existir */
.gallery__play, .gallery__progress { display: none !important; }
@media (max-width: 420px) { .gallery__toggle { width: 48px; height: 48px; flex: none; } }
@media (max-width: 340px) { .gallery__btn, .gallery__toggle { width: 44px; height: 44px; } }

/* ---------- Abertura: presença da fotografia ----------
   Entrada única: deslocamento curto (22 px) + leve aproximação (1 → 1,05), 1,2 s.
   Rolagem: a imagem se move só dentro do quadro (--py, até 2,2% da altura),
   coberta pela sobra da aproximação. O quadro, o texto e os botões não se movem.
   A aproximação parte da borda direita, onde está o rosto da paciente, para não cortá-lo. */
@media (prefers-reduced-motion: no-preference) {
  .motion .hero2__media { transform: none; will-change: auto; }        /* o quadro fica parado */
  .motion .hero2__frame picture { display: block; transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
  .motion .hero2__frame img {
    transform-origin: 100% 50%;
    opacity: 0; transform: translate3d(0, 22px, 0) scale(1);
    transition: opacity .7s ease-out, transform 1.2s cubic-bezier(.16, .84, .3, 1);
  }
  .motion .hero2.is-ready .hero2__frame img { opacity: 1; transform: translate3d(0, 0, 0) scale(1.05); }
}

/* ---------- Estabilidade: fonte de reserva com a largura da Fraunces ----------
   Até a Fraunces carregar, a Georgia (31% mais larga) quebrava o título em mais linhas
   e, em 768 px, o layout pulava 73 px quando a fonte chegava. A reserva ajustada ocupa
   a mesma largura (medido: 0,765). */
@font-face { font-family: "Fraunces Reserva"; src: local("Georgia"); size-adjust: 76.5%; }
/* 27/11/2026: "Bright" saiu da lista (e "Aloevera Display" de --font-text) até haver licença web;
   assim nenhuma fonte instalada no computador do visitante substitui Fraunces/Outfit. */
:root { --font-display: "Fraunces", "Fraunces Reserva", Georgia, "Times New Roman", serif; }
