/* Dra. Bruna Pimentel · direção "fotografias em tamanhos desiguais"
   Fundo preto quente (a Dra. Bruna gosta de preto), texto claro e o dourado da logo. */

@font-face { font-family: 'Boska'; src: url('../fonts/boska-300.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Boska'; src: url('../fonts/boska-300-italic.woff2') format('woff2'); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: 'Boska'; src: url('../fonts/boska-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Switzer'; src: url('../fonts/switzer-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Switzer'; src: url('../fonts/switzer-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --bg: #0e0c0b;
  --surface: #1c1816;
  --surface-hover: #29231f;
  --ink: #f2eeee;
  --muted: #b3a8a1;
  /* dourado da logo: texto, botões e detalhes sobre o preto */
  --accent: #c9ab72;
  --accent-hover: #d8bd88;
  --accent-ink: #141110;
  --gold: #c9ab72;
  --gold-hover: #d8bd88;
  /* seções de destaque: um preto um pouco mais claro que o fundo */
  --night: #191513;
  --night-2: #241e1b;
  --on-night: #f2eeee;
  --on-night-muted: #bcb1aa;

  --display: 'Boska', 'Iowan Old Style', Georgia, serif;
  --text: 'Switzer', 'Helvetica Neue', Arial, sans-serif;

  /* cinco tamanhos, e só eles */
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.25rem, 1.3rem + 3.2vw, 4.25rem);
  --step-display: clamp(3.5rem, 1rem + 8vw, 9.5rem);

  --m: clamp(20px, 5vw, 80px);
  --gap: clamp(12px, 1.6vw, 24px);
  --section: clamp(120px, 14vw, 220px);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; color-scheme: dark; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
@media (prefers-reduced-motion: no-preference) { html:not(.lenis) { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--step-body);
  line-height: 1.5;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, p, ol, ul, blockquote, dl, dd, address { margin: 0; }
address { font-style: normal; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.hero :focus-visible, .cta :focus-visible, .foot__side :focus-visible, .menu :focus-visible { outline-color: var(--on-night); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: fixed; left: 16px; top: 16px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 12px 18px; text-decoration: none;
  transform: translateY(-160%); transition: transform 0.2s var(--ease-out);
}
.skip:focus { transform: none; }

/* ---------- logo da Dra. Bruna (máscara: a cor vem do texto) ---------- */
.logo { display: block; background: currentColor; -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }
.logo--h { --logo: url('../brand/logo-horizontal.webp'); aspect-ratio: 2525 / 571; }

/* ---------- botões e links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  font-family: var(--text); font-size: 1rem; font-weight: 500; line-height: 1.2; letter-spacing: 0;
  text-decoration: none; border: 0; border-radius: 0; cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.16s var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn--light { background: var(--on-night); color: var(--night); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--gold { background: var(--gold); color: var(--night); }
@media (hover: hover) and (pointer: fine) {
  .btn--light:hover { background: #ffffff; }
  .btn--accent:hover { background: var(--accent-hover); }
  .btn--gold:hover { background: var(--gold-hover); }
}
/* texto que rola ao passar o mouse */
.btn__roll { display: inline-block; overflow: hidden; height: 1.2em; }
.btn__roll > span { display: block; transition: transform 0.45s var(--ease-out); }
.btn__roll > span::after { content: attr(data-text); display: block; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover .btn__roll > span, .btn:focus-visible .btn__roll > span { transform: translateY(-50%); }
}

.link { display: inline-block; position: relative; text-decoration: none; padding-bottom: 3px; }
.link::after, .bar__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; /* taste-skill-ignore: sublinhado de link, não é divisória */
  background: currentColor; transform-origin: left center;
  transition: transform 0.45s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .link:hover::after { animation: underline 0.7s var(--ease-out); }
}
@keyframes underline {
  0% { transform: scaleX(1); transform-origin: right center; }
  45% { transform: scaleX(0); transform-origin: right center; }
  46% { transform: scaleX(0); transform-origin: left center; }
  100% { transform: scaleX(1); transform-origin: left center; }
}
.link--light { color: var(--on-night); }

.caption { font-size: var(--step-small); color: var(--muted); }

/* ---------- barra ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px);
  padding: 16px var(--m);
  color: var(--on-night);
  transition: transform 0.45s var(--ease-out), background-color 0.3s ease, color 0.3s ease;
}
.bar.is-dark { background: var(--night); }
.bar.is-solid { background: var(--bg); color: var(--ink); }
.bar.is-hidden { transform: translateY(-100%); }
.bar__mark { display: block; text-decoration: none; }
.bar__mark .logo { width: clamp(168px, 15vw, 210px); }
.bar__nav { display: flex; gap: clamp(16px, 1.6vw, 28px); font-size: 1rem; font-weight: 500; margin-left: auto; }
.bar__nav a { position: relative; text-decoration: none; padding: 6px 0; }
.bar__nav a::after { transform: scaleX(0); }
@media (hover: hover) and (pointer: fine) { .bar__nav a:hover::after { transform: scaleX(1); } }
.bar__nav a[aria-current="true"]::after { transform: scaleX(1); }
.bar__cta { min-height: 44px; padding: 0 20px; font-size: 1rem; }
/* ícone do Instagram */
.ig { display: block; flex: none; }
.bar__ig { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -8px; transition: color 0.25s ease, transform 0.16s var(--ease-out); }
.bar__ig:active { transform: scale(0.92); }
@media (hover: hover) and (pointer: fine) { .bar__ig:hover { color: var(--gold); } }
.menu__ig, .foot__ig { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.menu__ig { margin-top: 24px; font-weight: 500; }
.link--ig { display: inline-flex; align-items: center; gap: 10px; }
.bar.is-solid .bar__cta { background: var(--gold); color: var(--accent-ink); }
.bar__menu { display: none; margin-left: auto; background: none; border: 0; padding: 10px 0; font-weight: 500; cursor: pointer; }

.menu {
  position: fixed; inset: 0; z-index: 60;
  background: var(--night); color: var(--on-night);
  display: flex; flex-direction: column; padding: 18px var(--m) 32px;
}
.menu__close { align-self: flex-end; background: none; border: 0; padding: 10px 0; font-weight: 500; cursor: pointer; }
.menu__nav { display: flex; flex-direction: column; gap: 14px; margin-top: auto; }
.menu__nav a { font-family: var(--display); font-weight: 300; font-size: clamp(2.5rem, 11vw, 4.25rem); line-height: 1.05; letter-spacing: -0.03em; text-decoration: none; }
.menu__cta { margin-top: 40px; }

@media (max-width: 1240px) {
  .bar__nav, .bar__cta { display: none; }
  .bar__ig { margin-left: auto; margin-right: 4px; }
  .bar__menu { margin-left: 0 !important; }
  .bar__menu { display: block; }
}

/* ---------- hero: recorte saindo do arco ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  padding: 0 var(--m);
  background: var(--night);
  color: var(--on-night);
  overflow: clip;
}
.hero__stage {
  grid-column: 7 / 13; grid-row: 1;
  position: relative; height: 100svh; min-height: 620px;
}
/* o arco repete a moldura oval da logo */
.arch {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 0; margin-inline: auto;
  width: min(30vw, 44svh); aspect-ratio: 6 / 10;
}
.arch__fill {
  position: absolute; inset: 0;
  background: var(--night-2);
  border-radius: 999px 999px 0 0;
  transform-origin: 50% 100%;
}
.arch__line { position: absolute; inset: -14px -14px 0; width: calc(100% + 28px); height: calc(100% + 14px); overflow: visible; }
.arch__line path { fill: none; stroke: var(--gold); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }
.arch__dot { position: absolute; left: 50%; top: 22px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--gold); }
.hero__cutout {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; margin-inline: auto;
  height: min(86svh, 860px); width: auto; max-width: none;
  transform-origin: 50% 100%;
}

.hero__text {
  grid-column: 1 / 13; grid-row: 1;
  align-self: end;
  padding: 120px 0 clamp(32px, 6vh, 64px);
  position: relative; z-index: 1;
  pointer-events: none;
}
.hero__text a { pointer-events: auto; }
.hero__title { font-weight: inherit; }
.hero__kicker { display: block; font-family: var(--text); font-size: var(--step-lead); font-weight: 400; letter-spacing: -0.01em; color: var(--gold); }
/* a palavra grande passa por trás do recorte */
.hero__big {
  display: block; margin: 0.04em 0 0 -0.04em;
  font-family: var(--display); font-weight: 300;
  font-size: clamp(4.5rem, 1rem + 13.5vw, 17rem);
  line-height: 0.86; letter-spacing: -0.045em;
  white-space: nowrap;
}
.hero__big .char { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero__big .char > span { display: inline-block; }
.hero__where { display: block; margin-top: 10px; font-family: var(--display); font-style: italic; font-weight: 300; font-size: var(--step-head); line-height: 1; letter-spacing: -0.02em; }
.hero__lead { margin-top: 26px; max-width: 34ch; }
.hero__cred { margin-top: 12px; font-size: var(--step-small); color: var(--on-night-muted); max-width: 48ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 30px; }

/* o texto fica na coluna da esquerda; só a palavra grande atravessa, entre o arco e o recorte
   (o palco não cria camada própria, então arco 0, texto 1 e recorte 2 se intercalam) */
@media (min-width: 761px) {
  .hero__kicker, .hero__where, .hero__lead, .hero__cred, .hero__actions { max-width: min(46vw, 40rem); }
}

/* tablet: o recorte e a palavra dividem a largura sem se cobrir */
@media (min-width: 761px) and (max-width: 1100px) {
  .hero__cutout { height: min(86svh, 100vw); }
  .arch { width: min(44vw, 44svh); }
  .hero__big { font-size: 11vw; }
}

@media (max-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero__stage { grid-column: 1; grid-row: 1; height: 74svh; min-height: 480px; }
  .arch { width: min(64vw, 40svh); }
  .hero__cutout { height: min(68svh, 640px); }
  .hero__text { grid-column: 1; grid-row: 2; padding-top: 28px; padding-bottom: 48px; }
  .hero__big { font-size: clamp(3.5rem, 19.5vw, 6rem); margin-top: 6px; }
  .hero__where { font-size: var(--step-head); }
}

/* ---------- implantes ---------- */
.implant {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  padding: var(--section) var(--m) clamp(64px, 7vw, 112px);
}
.implant__head { grid-column: 1 / 7; grid-row: 1; }
.implant__title { font-family: var(--display); font-weight: 300; font-size: var(--step-display); line-height: 0.94; letter-spacing: -0.035em; max-width: 8ch; }
.implant__intro { margin: 32px 0 28px; max-width: 40ch; font-size: var(--step-lead); line-height: 1.35; }
.implant__img { overflow: hidden; }
.implant__img img { width: 100%; height: 100%; object-fit: cover; }
.implant__img--a { grid-column: 8 / 12; grid-row: 1 / 3; aspect-ratio: 3 / 4; }
.implant__img--b { grid-column: 9 / 13; grid-row: 3; align-self: start; overflow: visible; margin-top: clamp(80px, 9vw, 160px); }
.implant__img--b img { height: auto; object-fit: contain; }
.implant__list { grid-column: 1 / 9; grid-row: 3; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px var(--gap); margin-top: clamp(64px, 8vw, 120px); }
.implant__list li { max-width: 34ch; }
.implant__list h3 { font-family: var(--display); font-weight: 400; font-size: var(--step-lead); line-height: 1.1; letter-spacing: -0.02em; }
.implant__list p { margin-top: 10px; color: var(--muted); }
.implant__caption { grid-column: 1 / -1; grid-row: 4; margin-top: 48px; }

@media (max-width: 900px) {
  .implant { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .implant__head { grid-column: 1 / -1; }
  .implant__title { font-size: var(--step-display); }
  .implant__img--a { grid-column: 1 / 5; grid-row: 2; margin-top: 56px; }
  .implant__img--b { grid-column: 3 / 7; grid-row: 2; align-self: end; margin: 0 0 -12% 0; position: relative; z-index: 1; }
  .implant__list { grid-column: 1 / -1; grid-row: 3; gap: 40px var(--gap); }
}
@media (max-width: 600px) {
  .implant__list { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .implant__caption { grid-row: 4; }
}

/* ---------- como funciona: o dente em mosaico ---------- */
.tooth { position: relative; height: 190svh; }
.tooth__stage {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center;
  padding: 0 var(--m);
}
.tooth__text { grid-column: 1 / 6; }
.tooth__title { font-family: var(--display); font-weight: 300; font-size: var(--step-head); line-height: 1; letter-spacing: -0.03em; max-width: 12ch; }
.tooth__steps { margin-top: 36px; display: grid; gap: 22px; max-width: 40ch; }
.tooth__steps strong { font-weight: 500; }
.tooth__art { grid-column: 7 / 13; justify-self: center; width: min(100%, 36vw, 62svh); }
.tooth__svg { display: block; width: 100%; height: auto; overflow: visible; }
.shard__seam { fill: none; stroke: var(--bg); stroke-width: 2.5; stroke-linejoin: round; }
.tooth__outline { fill: none; stroke: var(--accent); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }

@media (max-width: 900px) {
  .tooth { height: auto; }
  .tooth__stage { position: static; height: auto; overflow: visible; grid-template-columns: minmax(0, 1fr); row-gap: 56px; padding-top: clamp(72px, 12vw, 112px); padding-bottom: clamp(72px, 12vw, 112px); }
  .tooth__text, .tooth__art { grid-column: 1; }
  .tooth__art { width: min(82vw, 420px); }
}

/* ---------- aparelho invisível (SouSmile) ---------- */
.smile {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  padding: var(--section) var(--m);
  background: var(--night); color: var(--on-night);
  overflow: clip;
}
.smile__head { grid-column: 1 / 7; grid-row: 1; }
.smile__title { font-family: var(--display); font-weight: 300; font-size: var(--step-display); line-height: 0.94; letter-spacing: -0.035em; max-width: 9ch; }
.smile__lead { margin-top: 28px; font-size: var(--step-lead); line-height: 1.35; max-width: 32ch; }
.smile__product { grid-column: 7 / 13; grid-row: 1 / 3; align-self: center; justify-self: center; width: 84%; }
.smile__product img { width: 100%; height: auto; }
.smile__perks { grid-column: 1 / 7; grid-row: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px var(--gap); margin-top: clamp(56px, 6vw, 88px); }
.smile__perks h3 { font-family: var(--display); font-weight: 400; font-size: var(--step-lead); line-height: 1.1; letter-spacing: -0.02em; }
.smile__perks p { margin-top: 8px; color: var(--on-night-muted); max-width: 30ch; }
.smile__video { grid-column: 1 / 7; grid-row: 3; margin-top: clamp(64px, 8vw, 120px); aspect-ratio: 3 / 2; overflow: hidden; }
.smile__video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.smile__cta { grid-column: 8 / 13; grid-row: 3; align-self: end; }
.smile__how { font-size: var(--step-lead); line-height: 1.35; margin-bottom: 28px; max-width: 30ch; }
.smile__note { margin-top: 20px; color: var(--on-night-muted); }

@media (max-width: 900px) {
  .smile { grid-template-columns: minmax(0, 1fr); }
  .smile__head, .smile__product, .smile__perks, .smile__video, .smile__cta { grid-column: 1; grid-row: auto; }
  .smile__title { font-size: var(--step-display); }
  .smile__product { width: min(88%, 460px); justify-self: center; margin-top: 40px; }
  .smile__perks { margin-top: 40px; }
  .smile__video { margin-top: 56px; }
  .smile__cta { margin-top: 40px; }
}
@media (min-width: 601px) and (max-width: 900px) {
  .smile { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .smile__head { grid-column: 1; grid-row: 1; }
  .smile__product { grid-column: 2; grid-row: 1; width: 100%; margin-top: 0; }
  .smile__perks, .smile__video, .smile__cta { grid-column: 1 / -1; }
}
@media (max-width: 600px) { .smile__perks { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* ---------- antes e depois ---------- */
.cases {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 32px;
  padding: var(--section) var(--m) clamp(80px, 9vw, 140px);
}
.cases__head { grid-column: 1 / 5; grid-row: 1; }
.cases__title { font-family: var(--display); font-weight: 300; font-size: var(--step-head); line-height: 1; letter-spacing: -0.03em; }
.cases__intro { margin-top: 20px; max-width: 34ch; }
.cases__filters { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.filter, .case {
  border: 0; border-radius: 0; cursor: pointer; font: inherit; font-weight: 500;
  background: var(--surface); color: var(--ink);
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.16s var(--ease-out);
}
.filter { min-height: 44px; padding: 0 16px; font-size: 1rem; }
.filter:active, .case:active { transform: scale(0.97); }
.filter[aria-pressed="true"], .case[aria-pressed="true"] { background: var(--gold); color: var(--accent-ink); }
@media (hover: hover) and (pointer: fine) { .filter:hover, .case:hover { background: var(--surface-hover); } .filter[aria-pressed="true"]:hover, .case[aria-pressed="true"]:hover { background: var(--gold-hover); } }

.compare { grid-column: 5 / 13; grid-row: 1 / 3; }
.compare__stage { --pos: 50%; position: relative; height: clamp(320px, 64svh, 660px); background: var(--night); overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.compare__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.compare__img--before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--gold); pointer-events: none; }
.compare__knob { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: var(--gold); transition: transform 0.2s var(--ease-out); }
.compare__knob::before, .compare__knob::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; margin-top: -6px; border: 6px solid transparent; }
.compare__knob::before { left: 7px; border-right-color: var(--night); }
.compare__knob::after { right: 7px; border-left-color: var(--night); }
.compare__stage:active .compare__knob { transform: scale(0.92); }
.compare__stage:focus-within .compare__knob { outline: 2px solid var(--on-night); outline-offset: 3px; }
.compare__tag { position: absolute; top: 16px; padding: 6px 12px; background: var(--night-2); color: var(--on-night); font-size: var(--step-small); font-weight: 500; pointer-events: none; }
.compare__tag--a { left: 16px; }
.compare__tag--d { right: 16px; }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; background: none; }
.compare__range::-webkit-slider-thumb { -webkit-appearance: none; width: 56px; height: 2000px; }
.compare__range::-moz-range-thumb { width: 56px; height: 2000px; border: 0; }
.compare__caption { margin-top: 14px; color: var(--muted); }

.cases__list { grid-column: 1 / 5; grid-row: 2; align-self: end; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.case { display: flex; flex-direction: column; gap: 8px; width: 100%; padding: 8px 8px 10px; text-align: left; font-size: var(--step-small); }
.case img { width: 100%; height: clamp(48px, 5vw, 72px); object-fit: cover; }
.cases__note { grid-column: 5 / 13; grid-row: 3; }

@media (max-width: 900px) {
  .cases { grid-template-columns: minmax(0, 1fr); }
  .cases__head, .compare, .cases__list, .cases__note { grid-column: 1; grid-row: auto; }
  /* no celular o palco tem a proporção da foto, sem faixas pretas */
  .compare__stage { height: auto; aspect-ratio: var(--ratio, 2); max-height: 72svh; }
  .cases__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 600px) { .cases__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- avaliações do Google ---------- */
.reviews { padding: var(--section) 0 clamp(80px, 9vw, 140px); overflow: clip; }
/* nova ordem: aparelho invisível, avaliações e antes e depois em sequência, sem somar dois respiros */
.smile + .reviews { padding-top: clamp(24px, 3vw, 48px); }
.reviews + .cases { padding-top: clamp(48px, 5vw, 88px); }
.reviews__head { padding: 0 var(--m); max-width: calc(46rem + 2 * var(--m)); }
.reviews__title { font-family: var(--display); font-weight: 300; font-size: var(--step-head); line-height: 1; letter-spacing: -0.03em; }
.reviews__score { margin: 16px 0 12px; color: var(--muted); }
.reviews__score:empty { display: none; }
.reviews__track { margin-top: 48px; overflow: hidden; }
.reviews__list { display: flex; align-items: flex-start; gap: var(--gap); width: max-content; padding: 0 var(--m); }
.review { width: clamp(280px, 30vw, 420px); padding: 28px 28px 30px; background: var(--surface); }
.review__stars {
  display: block; height: 16px; background: var(--gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 19 16'%3E%3Cpath d='M8 0.6l2.2 4.6 5 .7-3.6 3.5.9 5L8 12l-4.5 2.4.9-5L.8 5.9l5-.7z'/%3E%3C/svg%3E") 0 0 / 19px 16px repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 19 16'%3E%3Cpath d='M8 0.6l2.2 4.6 5 .7-3.6 3.5.9 5L8 12l-4.5 2.4.9-5L.8 5.9l5-.7z'/%3E%3C/svg%3E") 0 0 / 19px 16px repeat-x;
}
.review__text { font-family: var(--display); font-weight: 300; font-size: var(--step-lead); line-height: 1.35; }
.review__foot { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.review__who { font-size: var(--step-small); color: var(--muted); }
.reviews__lead { margin-top: 20px; font-size: var(--step-lead); line-height: 1.35; max-width: 30ch; }
.reviews__cta { margin: 32px var(--m) 0; }
.reviews__demo { margin: 32px var(--m) 0; padding: 28px; background: var(--surface); color: var(--muted); max-width: 60ch; }
/* só o convite: título à esquerda, botão alinhado à direita na mesma faixa */
.reviews.is-link-only { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; padding-left: var(--m); padding-right: var(--m); }
.reviews.is-link-only .reviews__head { grid-column: 1 / 8; padding: 0; }
.reviews.is-link-only .reviews__cta { grid-column: 9 / 13; justify-self: end; margin: 0; }
.reviews.is-link-only .reviews__demo { grid-column: 1 / -1; margin-left: 0; }
@media (max-width: 760px) {
  .reviews.is-link-only { grid-template-columns: minmax(0, 1fr); }
  .reviews.is-link-only .reviews__head, .reviews.is-link-only .reviews__cta { grid-column: 1; justify-self: start; }
  .reviews.is-link-only .reviews__cta { margin-top: 28px; }
}

/* ---------- tratamentos: quatro em destaque, empilhando com a rolagem ---------- */
.treat { padding: 0 var(--m) var(--section); }
.treat__head { max-width: 52rem; margin-bottom: clamp(48px, 6vw, 88px); }
.feats { display: grid; }
.feats { gap: clamp(16px, 2vw, 28px); }
.feat__card {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  height: min(72svh, 700px); background: var(--surface); overflow: hidden;
}
.feat__img { grid-column: 1 / 8; grid-row: 1; margin: 0; overflow: hidden; }
.feat__img img { width: 100%; height: 100%; object-fit: cover; }
.feat__text { grid-column: 8 / 13; grid-row: 1; align-self: center; padding: clamp(28px, 3vw, 56px) clamp(28px, 3.4vw, 64px) clamp(28px, 3vw, 56px) clamp(8px, 1vw, 16px); }
.feat:nth-child(even) .feat__img { grid-column: 6 / 13; }
.feat:nth-child(even) .feat__text { grid-column: 1 / 6; padding-left: clamp(28px, 3.4vw, 64px); padding-right: clamp(8px, 1vw, 16px); }
.feat__name { font-family: var(--display); font-weight: 300; font-size: clamp(2.75rem, 1rem + 4.6vw, 6.25rem); line-height: 0.92; letter-spacing: -0.04em; }
.feat__desc { margin-top: 22px; max-width: 38ch; }
.feat__points { margin: 22px 0 32px; display: grid; gap: 8px; color: var(--muted); }
.feat__points li { position: relative; padding-left: 24px; }
.feat__points li::before { content: ""; position: absolute; left: 0; top: 0.78em; width: 12px; height: 1px; background: var(--gold); }
.treat__more { margin-top: clamp(96px, 10vw, 160px); }
.treat__sub { font-family: var(--display); font-weight: 300; font-size: var(--step-lead); margin-bottom: 20px; }
@media (max-width: 900px) {
  .feat__card { height: auto; grid-template-columns: minmax(0, 1fr); }
  .feat__img, .feat:nth-child(even) .feat__img { grid-column: 1; grid-row: 1; aspect-ratio: 4 / 3; }
  .feat__text, .feat:nth-child(even) .feat__text { grid-column: 1; grid-row: 2; padding: 28px 22px 32px; }
}
.index__thumb { display: none; }
.treat__title { font-family: var(--display); font-weight: 300; font-size: var(--step-head); line-height: 1; letter-spacing: -0.03em; }
.treat__intro { margin-top: 20px; max-width: 48ch; }

.index__row a {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) auto; align-items: baseline; gap: var(--gap);
  padding: clamp(20px, 2.4vw, 32px) clamp(12px, 1.4vw, 24px);
  text-decoration: none; color: var(--ink);
  transition: color 0.4s ease;
}
/* o fundo escuro sobe de baixo ao passar o mouse */
.index__row a::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--gold);
  transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform 0.55s var(--ease-out);
}
.index__row + .index__row { margin-top: 2px; }
.index__row a { background: var(--surface); }
.index__name { font-family: var(--display); font-weight: 300; font-size: var(--step-head); line-height: 1; letter-spacing: -0.03em; transition: transform 0.55s var(--ease-out); }
.index__desc { color: var(--muted); max-width: 44ch; transition: color 0.4s ease; }
.index__go { min-width: 5.5em; text-align: right; font-size: 1rem; font-weight: 500; opacity: 0; transform: translateX(-10px); transition: opacity 0.35s ease, transform 0.5s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .index__row a:hover, .index__row a:focus-visible { color: var(--accent-ink); }
  .index__row a:hover::before, .index__row a:focus-visible::before { transform: scaleY(1); }
  .index__row a:hover .index__desc, .index__row a:focus-visible .index__desc { color: var(--accent-ink); }
  .index__row a:hover .index__name, .index__row a:focus-visible .index__name { transform: translateX(12px); }
  .index__row a:hover .index__go, .index__row a:focus-visible .index__go { opacity: 1; transform: none; color: var(--accent-ink); }
}

@media (max-width: 900px) {
  /* sem a foto ao lado, cada linha leva a sua */
  .index__row a { grid-template-columns: 84px minmax(0, 1fr); align-items: center; row-gap: 6px; }
  .index__thumb { display: block; grid-row: 1 / 3; width: 84px; height: 84px; object-fit: cover; background: var(--bg); }
  .index__thumb.is-cutout { object-fit: contain; padding: 8px; }
  .index__name, .index__desc { grid-column: 2; }
  .index__go { display: none; }
  .index__name { font-size: var(--step-lead); }
}

/* ---------- sobre: a especialização na USP, em destaque logo depois do topo ---------- */
.cred {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  align-items: center; padding: var(--section) var(--m);
}
.cred__text { grid-column: 1 / 7; }
.cred__title { font-family: var(--display); font-weight: 300; font-size: var(--step-display); line-height: 0.92; letter-spacing: -0.04em; }
.cred__title em, .cred__title .word:last-of-type > span { font-style: normal; color: var(--gold); }
.cred__rule { display: block; width: clamp(80px, 9vw, 140px); height: 1px; margin: clamp(28px, 3vw, 44px) 0; background: var(--gold); transform-origin: 0 50%; }
.cred__lead { font-size: var(--step-lead); line-height: 1.35; max-width: 34ch; }
.cred__facts { max-width: 34rem; }
.facts { margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px var(--gap); }
.facts dt { font-size: var(--step-small); color: var(--muted); }
.facts dd { margin-top: 2px; font-weight: 500; }
.cred__img { grid-column: 8 / 13; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; }
.cred__img img { width: 100%; height: 100%; object-fit: cover; object-position: 22% 50%; }
@media (max-width: 900px) {
  .cred { grid-template-columns: minmax(0, 1fr); }
  .cred__text, .cred__img { grid-column: 1; }
  .cred__img { margin-top: 56px; aspect-ratio: 4 / 3; }
}

/* ---------- consultório: fotos grandes em fila (no computador, passam de lado com a rolagem) ---------- */
.space { padding-bottom: var(--section); }
.space__pin { overflow: hidden; }
.space__track {
  display: flex; align-items: flex-end; gap: clamp(14px, 1.6vw, 28px);
  padding: 0 var(--m);
  overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--m); scrollbar-width: none;
}
.space__track::-webkit-scrollbar { display: none; }
.space__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; padding: 0 var(--m); margin-bottom: clamp(40px, 5vw, 72px); }
.space__title { grid-column: 1 / 7; }
.space__lead { grid-column: 8 / 12; }
.space__title { font-family: var(--display); font-weight: 300; font-size: var(--step-head); line-height: 1; letter-spacing: -0.03em; }
.space__lead { max-width: 36ch; }
.space__img { flex: none; margin: 0; scroll-snap-align: start; }
.space__frame { display: block; height: min(70svh, 740px); overflow: hidden; background: var(--surface); }
.space__frame img { display: block; height: 100%; width: auto; max-width: none; }
.space__img figcaption { margin-top: 14px; display: flex; flex-direction: column; gap: 2px; color: var(--muted); font-size: var(--step-small); }
.space__img figcaption strong { font-family: var(--display); font-weight: 300; font-size: var(--step-lead); line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); }
/* com movimento, no computador: a seção para e a fila anda */
.space.is-pinned .space__pin { height: 100svh; display: flex; align-items: center; padding-top: 56px; }
.space.is-pinned .space__track { overflow: visible; width: max-content; scroll-snap-type: none; }
@media (max-width: 900px) {
  .space__head { grid-template-columns: minmax(0, 1fr); row-gap: 20px; }
  .space__title, .space__lead { grid-column: 1; }
  .space__frame { height: min(58svh, 500px); }
}

/* ---------- agendar ---------- */
.cta {
  position: relative;
  min-height: 92svh;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  padding: 0 var(--m);
  background: var(--night);
  color: var(--on-night);
  overflow: clip;
}
.cta__photo { position: absolute; inset: 0 48% 0 0; overflow: hidden; }
.cta__photo img { width: 100%; height: 100%; object-fit: contain; padding: 10% 8%; transform-origin: 50% 50%; }
.cta__panel { position: relative; grid-column: 7 / 13; align-self: end; padding: clamp(96px, 12vw, 160px) 0 clamp(64px, 8vw, 120px); }
.cta__title { font-family: var(--display); font-weight: 300; font-size: var(--step-head); line-height: 1; letter-spacing: -0.03em; }
.cta__lead { margin-top: 18px; max-width: 42ch; }
.cta__caption { margin-top: 28px; color: var(--on-night-muted); }

.composer { margin-top: 36px; display: grid; gap: 26px; }
.composer__group { border: 0; margin: 0; padding: 0; min-width: 0; }
.composer__group legend { padding: 0; margin-bottom: 12px; font-size: var(--step-small); font-weight: 500; color: var(--on-night-muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  background: rgba(242, 238, 238, 0.1); color: var(--on-night);
  font-size: 1rem; font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.16s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .chip:hover span { background: rgba(242, 238, 238, 0.2); } }
.chip:active span { transform: scale(0.97); }
.chip input:checked + span { background: var(--gold); color: var(--night); }
.chip input:focus-visible + span { outline: 2px solid var(--on-night); outline-offset: 3px; }

.composer__preview { background: var(--night-2); padding: 20px 22px 22px; }
.composer__label { font-size: var(--step-small); color: var(--on-night-muted); font-weight: 500; }
.composer__msg { margin-top: 8px; font-family: var(--display); font-style: italic; font-weight: 300; font-size: var(--step-lead); line-height: 1.32; min-height: 3.96em; }
.composer__send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.composer__status { font-size: var(--step-small); color: var(--on-night); min-height: 1.4em; }

@media (max-width: 900px) {
  .cta { display: block; padding: 0; min-height: 0; }
  .cta__photo { position: relative; inset: auto; height: 42svh; }
  .cta__panel { padding: 48px var(--m) 72px; }
}

/* ---------- contato ---------- */
.contact {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  padding: clamp(96px, 10vw, 160px) var(--m) 112px;
  align-items: start;
}
.contact__lead { grid-column: 1 / 7; }
.contact__title { font-family: var(--display); font-weight: 300; font-size: var(--step-head); line-height: 1; letter-spacing: -0.03em; }
.contact__sentence { margin-top: 24px; font-size: var(--step-lead); line-height: 1.35; max-width: 30ch; }
.contact__mark { grid-column: 8 / 13; grid-row: 1; justify-self: end; width: clamp(56px, 5vw, 80px); }
.contact__info { grid-column: 1 / 13; grid-row: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px var(--gap); margin-top: clamp(56px, 7vw, 104px); }
.contact__q { font-weight: 500; }
.contact__place { margin-top: 6px; font-size: var(--step-lead); line-height: 1.3; font-family: var(--display); font-weight: 400; color: var(--ink); }
.contact__note { margin-top: 10px; color: var(--muted); max-width: 32ch; }
.contact__info .link { margin-top: 14px; margin-right: 18px; }
.contact__map { grid-column: 1 / 13; grid-row: 3; margin-top: clamp(48px, 6vw, 88px); height: clamp(300px, 46svh, 480px); background: var(--surface); overflow: hidden; }
/* o mapa do Google no tom escuro do site */
.contact__map iframe { display: block; width: 100%; height: 100%; border: 0; filter: invert(0.92) hue-rotate(180deg) saturate(0.7) brightness(0.95); }
.contact__info ul { margin-top: 10px; display: grid; gap: 10px; }
.contact__info ul .link { margin-top: 0; }

@media (max-width: 900px) {
  .contact { grid-template-columns: minmax(0, 1fr) auto; }
  .contact__lead { grid-column: 1; }
  .contact__mark { grid-column: 2; width: 52px; }
  .contact__sentence { max-width: none; }
  .contact__info { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr); }
}

/* ---------- rodapé ---------- */
.foot { display: grid; grid-template-columns: 1fr 1fr; min-height: 100svh; background: var(--night); color: var(--on-night); }
.foot__brand { position: relative; background: var(--night-2); display: grid; place-items: center; overflow: hidden; }
.foot__logo { width: clamp(150px, 16vw, 260px); }
.foot__side { display: flex; flex-direction: column; padding: 80px var(--m) 32px clamp(24px, 4vw, 72px); }
.foot__mark .logo { width: clamp(200px, 20vw, 280px); }
.foot__menu { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 48px; }
.foot__menu a {
  font-family: var(--display); font-weight: 300; font-size: var(--step-head); line-height: 1.1; letter-spacing: -0.03em;
  text-decoration: none; transition: transform 0.45s var(--ease-out), color 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
  .foot__menu:hover a { color: var(--on-night-muted); }
  .foot__menu a:hover { color: var(--on-night); transform: translateX(12px); }
}
.foot__blocks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 64px; font-size: 1rem; color: var(--on-night); }
.foot__h { font-family: var(--text); font-size: var(--step-small); font-weight: 500; color: var(--on-night-muted); margin-bottom: 8px; }
.foot__blocks a { text-decoration: none; overflow-wrap: anywhere; }
@media (hover: hover) and (pointer: fine) { .foot__blocks a:hover { text-decoration: underline; text-underline-offset: 4px; } }
.foot__demo { margin-top: 40px; font-size: 1rem; color: var(--on-night-muted); display: grid; gap: 10px; }
.foot__demo summary { cursor: pointer; color: var(--on-night); }
.foot__demo ul { list-style: disc; padding-left: 18px; margin-top: 10px; display: grid; gap: 4px; }
.foot__demo p { margin-top: 10px; max-width: 60ch; }
.foot__legal { margin-top: auto; padding-top: 48px; font-size: var(--step-small); color: var(--on-night-muted); }

@media (max-width: 1100px) { .foot__blocks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .foot { grid-template-columns: minmax(0, 1fr); }
  .foot__brand { height: 46svh; }
  .foot__side { padding: 48px var(--m) 96px; }
  .foot__menu a { font-size: var(--step-head); }
  .foot__blocks { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- botão flutuante ---------- */
.float-wa {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40;
  min-height: 48px; padding: 0 20px;
  transform: translateY(160%);
  transition: transform 0.45s var(--ease-out), background-color 0.25s ease;
}
.float-wa.is-shown { transform: none; }
@media (min-width: 1241px) { .float-wa { display: none; } }

/* ---------- estados iniciais da animação (só com JS e sem movimento reduzido) ---------- */
html.motion .bar { opacity: 0; }
html.motion [data-arch-fill] { transform: scaleY(0); }
html.motion [data-arch-line] { stroke-dashoffset: 1; }
html.motion [data-arch-dot], html.motion [data-cutout] { opacity: 0; }
html.motion [data-big-word]:not(.is-split) { opacity: 0; }
html.motion .hero__big .char > span { transform: translateY(105%); }
html.motion [data-hero-fade] { opacity: 0; transform: translateY(16px); }
html.motion [data-rise] { opacity: 0; transform: translateY(24px); }
html.motion [data-step] { opacity: 0.28; }
html.motion [data-cred-rule] { transform: scaleX(0); }
html.motion [data-reveal-img] { clip-path: inset(100% 0 0 0); }
html.motion [data-words]:not(.is-split) { opacity: 0; }
.word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.word > span { display: inline-block; }
html.motion [data-words].is-split .word > span { transform: translateY(105%); }
