:root {
  --gelo: #e9eff7;
  --gelo-2: #d7e3f2;
  --azul-ceu: #b4cbea;
  --tinta: #0b1017;
  --tinta-2: #1a2230;
  --cinza: #5b6878;
  --linha: rgba(11, 16, 23, .1);
  --eletrico: #2f66ff;
  --vidro: rgba(255, 255, 255, .55);
  --vidro-borda: rgba(255, 255, 255, .8);
  --raio: 26px;
  --lado: 18px;
  --sans: "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--tinta);
  background: #cfd9e6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* coluna de celular; no computador fica centralizada */
main, .topo, .rodape, .barra-fixa { max-width: 520px; margin-inline: auto; }
main { background: var(--gelo); overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-weight: 300; letter-spacing: -.045em; line-height: .95; }

.etiqueta {
  font-family: var(--mono); font-size: 11px; letter-spacing: .02em; text-transform: lowercase;
  color: var(--cinza); display: inline-flex; align-items: center; gap: 8px;
}
.etiqueta i { width: 6px; height: 6px; border-radius: 50%; background: var(--eletrico); box-shadow: 0 0 0 4px rgba(47,102,255,.15); }
.etiqueta.clara { color: #8b97a8; }

.vidro {
  background: var(--vidro);
  border: 1px solid var(--vidro-borda);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 10px 30px -12px rgba(30, 60, 110, .25);
}

.botao, .pilula {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--tinta); color: #fff; font-weight: 500;
  border-radius: 999px; white-space: nowrap;
  transition: transform .2s;
}
.botao { padding: 15px 20px 15px 22px; font-size: 15px; }
.botao span { width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--tinta); display: grid; place-items: center; font-size: 14px; }
.pilula { padding: 10px 16px; font-size: 13px; }
.botao:active, .pilula:active { transform: scale(.96); }

/* ---------- topo ---------- */
.topo {
  position: fixed; inset: 10px 0 auto; z-index: 50;
  width: calc(100% - 20px); max-width: 500px;
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 8px 8px 12px; border-radius: 18px;
  background: rgba(255,255,255,.5);
  border: 1px solid rgba(255,255,255,.75);
  backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5);
}
.marca { display: flex; align-items: center; gap: 10px; }
.marca svg { width: 30px; height: 30px; }
.marca rect { fill: var(--tinta); }
.marca path { fill: #fff; }
.marca span { font-weight: 600; font-size: 17px; letter-spacing: -.03em; line-height: 1; display: grid; }
.marca small { font-family: var(--mono); font-weight: 400; font-size: 9.5px; letter-spacing: 0; color: var(--cinza); margin-top: 3px; }

/* ---------- abertura ---------- */
.abertura { height: 260vh; position: relative; }
.palco {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background:
    radial-gradient(120% 60% at 50% 0%, #f7f9fc 0%, rgba(247,249,252,0) 60%),
    radial-gradient(90% 55% at 50% 100%, #9fbbe4 0%, rgba(159,187,228,0) 70%),
    linear-gradient(180deg, #edf2f8 0%, #c4d6ee 100%);
}
#implante3d { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; }
.sem3d-img { display: none; }
.sem-3d .sem3d-img { display: block; position: absolute; left: 50%; top: 52%; width: 70%; transform: translate(-50%,-50%); border-radius: 30px; z-index: 2; }
.sem-3d .dica, .sem-3d .rotulo { display: none; }

.marca-dagua {
  position: absolute; left: 50%; bottom: 3%; transform: translateX(-50%);
  font-size: 40vw; font-weight: 500; letter-spacing: -.07em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(11,16,23,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0)); -webkit-background-clip: text; background-clip: text;
  z-index: 1; white-space: nowrap; pointer-events: none;
}
@media (min-width: 520px) { .marca-dagua { font-size: 208px; } }

.abre-txt { position: absolute; top: 92px; left: var(--lado); right: var(--lado); z-index: 1; }
.abre-txt h1 { font-size: clamp(54px, 16vw, 78px); margin-top: 14px; }
.abre-txt h1 span { display: block; }
.abre-txt h1 span + span { color: #7d8ea6; }
.abre-2 {
  position: absolute; right: var(--lado); top: 60%; z-index: 3;
  font-size: clamp(54px, 16vw, 78px); font-weight: 300; letter-spacing: -.045em; line-height: 1;
  pointer-events: none;
}
.abre-pe {
  position: absolute; left: var(--lado); right: var(--lado); bottom: calc(22px + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: space-between; z-index: 4;
}
.nota { font-size: 12px; text-align: right; line-height: 1.35; color: var(--tinta-2); }
.nota b { font-size: 15px; }
.nota span { color: var(--cinza); font-family: var(--mono); font-size: 10px; }

.chip { position: absolute; z-index: 3; padding: 9px 12px; border-radius: 14px; display: grid; gap: 2px; font-size: 12px; }
.chip b { font-weight: 500; }
.chip span { font-family: var(--mono); font-size: 10px; color: var(--cinza); }
.chip-a { left: var(--lado); top: 47%; }
.chip-b { right: var(--lado); top: 72%; }

.dica {
  position: absolute; left: 50%; bottom: 92px; transform: translateX(-50%); z-index: 4;
  font-family: var(--mono); font-size: 10px; color: var(--cinza); display: grid; justify-items: center; gap: 6px;
}
.dica::after { content: ""; width: 1px; height: 22px; background: linear-gradient(var(--cinza), transparent); animation: desce 1.6s infinite; }
@keyframes desce { from { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } to { transform: scaleY(0); transform-origin: bottom; } }

/* rótulos que seguem as peças 3D (posição vem do JS) */
.rotulo {
  position: absolute; left: 0; top: 0; z-index: 4; opacity: 0; pointer-events: none;
  display: grid; gap: 2px; width: 138px;
  font-size: 13px;
}
.rotulo b { font-weight: 500; }
.rotulo span { font-family: var(--mono); font-size: 10px; color: var(--cinza); line-height: 1.35; }
.rotulo i { position: absolute; top: 7px; height: 1px; width: 34px; background: var(--tinta); }
.rotulo i::before { content: ""; position: absolute; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--tinta); box-shadow: 0 0 0 4px rgba(255,255,255,.7); }
.rotulo.dir i { right: calc(100% + 8px); }
.rotulo.dir i::before { left: -4px; }
.rotulo.esq { text-align: right; }
.rotulo.esq i { left: calc(100% + 8px); }
.rotulo.esq i::before { right: -4px; }
.abre-fim {
  position: absolute; right: var(--lado); text-align: right; bottom: calc(26px + env(safe-area-inset-bottom)); z-index: 4; opacity: 0;
  font-size: 30px; font-weight: 300; letter-spacing: -.04em; line-height: 1.05;
}

/* ---------- números ---------- */
.numeros {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  padding: 40px var(--lado) 34px;
}
.numeros div { padding: 18px 4px 18px 0; border-top: 1px solid var(--linha); }
.numeros div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--linha); }
.numeros strong { display: block; font-size: 46px; font-weight: 300; letter-spacing: -.05em; line-height: 1; }
.numeros span { display: block; margin-top: 8px; font-family: var(--mono); font-size: 10.5px; color: var(--cinza); line-height: 1.4; max-width: 15ch; }

/* ---------- painel escuro de tratamentos ---------- */
.painel { margin: 0 8px; background: var(--tinta); color: #fff; border-radius: 30px; padding: 34px 0 26px; }
.painel-cab { padding: 0 var(--lado) 24px; margin: 0 2px; border-bottom: 1px solid rgba(255,255,255,.1); }
.painel h2 { font-size: 40px; margin: 14px 0 12px; }
.painel-cab > p:last-child { color: #a3adbb; font-size: 14px; line-height: 1.5; max-width: 30ch; }
.trilho {
  display: grid; grid-auto-flow: column; grid-auto-columns: 74%; gap: 10px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 22px var(--lado) 4px; scroll-padding-inline: var(--lado);
  scrollbar-width: none; outline: none;
}
.trilho::-webkit-scrollbar { display: none; }
.cartao { scroll-snap-align: start; background: #161d28; border-radius: 22px; overflow: hidden; border: 1px solid rgba(255,255,255,.06); }
.cartao img { aspect-ratio: 4/3.4; width: 100%; object-fit: cover; }
.cartao div { padding: 16px 16px 18px; position: relative; }
.cartao span { font-family: var(--mono); font-size: 10px; color: #7f8a9b; }
.cartao h3 { font-size: 24px; font-weight: 400; letter-spacing: -.03em; margin: 8px 0 8px; }
.cartao p { font-size: 13px; color: #a3adbb; line-height: 1.45; }
.trilho-barra { margin: 18px var(--lado) 0; height: 2px; background: rgba(255,255,255,.12); border-radius: 2px; overflow: hidden; }
.trilho-barra i { display: block; height: 100%; width: 20%; background: #fff; border-radius: 2px; transform-origin: left; }

/* ---------- escaneamento ---------- */
.scan { padding: 64px var(--lado) 30px; }
.scan h2 { font-size: 44px; margin: 14px 0 26px; }
.scan-foto { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4/4.6; background: #111; }
.scan-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 75%; filter: saturate(.85); }
.malha {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(140,180,255,.55) 1px, transparent 1px), linear-gradient(90deg, rgba(140,180,255,.55) 1px, transparent 1px);
  background-size: 18px 18px;
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 var(--scan, 0%), transparent calc(var(--scan, 0%) + 1%));
  mask-image: linear-gradient(180deg, #000 0, #000 var(--scan, 0%), transparent calc(var(--scan, 0%) + 1%));
  opacity: .55;
}
.linha {
  position: absolute; left: 0; right: 0; top: var(--scan, 0%); height: 2px; background: #9fc0ff;
  box-shadow: 0 0 18px 4px rgba(120,165,255,.8), 0 -40px 50px rgba(120,165,255,.18);
}
.canto { position: absolute; width: 26px; height: 26px; border: 2px solid #fff; }
.c1 { top: 14px; left: 14px; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.c2 { top: 14px; right: 14px; border-left: 0; border-bottom: 0; border-radius: 0 8px 0 0; }
.c3 { bottom: 14px; left: 14px; border-right: 0; border-top: 0; border-radius: 0 0 0 8px; }
.c4 { bottom: 14px; right: 14px; border-left: 0; border-top: 0; border-radius: 0 0 8px 0; }
.leitura { position: absolute; padding: 8px 12px; border-radius: 12px; display: grid; gap: 1px; }
.leitura span { font-family: var(--mono); font-size: 9.5px; color: var(--cinza); }
.leitura b { font-weight: 500; font-size: 15px; letter-spacing: -.02em; }
.l1 { left: 22px; bottom: 26px; }
.l2 { right: 22px; top: 26px; }

.passos { list-style: none; margin-top: 26px; }
.passos li { display: grid; grid-template-columns: 44px 1fr; padding: 16px 0; border-top: 1px solid var(--linha); }
.passos li > span { font-family: var(--mono); font-size: 11px; color: var(--eletrico); padding-top: 3px; }
.passos b { font-weight: 500; font-size: 18px; letter-spacing: -.02em; }
.passos p { color: var(--cinza); font-size: 13.5px; margin-top: 3px; }

/* ---------- antes e depois ---------- */
.compara { padding: 40px var(--lado) 30px; }
.compara-cab { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 18px; }
.compara h2 { font-size: 40px; }
.compara-cab p { font-family: var(--mono); font-size: 10.5px; color: var(--cinza); max-width: 16ch; text-align: right; line-height: 1.4; }
.comparador { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 1/1; touch-action: pan-y; user-select: none; }
.comparador img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.comparador .antes { clip-path: inset(0 calc(100% - var(--x)) 0 0); filter: sepia(.38) saturate(.85) brightness(.94) contrast(.96); }
.comparador input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.alca { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; background: #fff; transform: translateX(-1px); pointer-events: none; }
.alca i { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: grid; place-items: center; font-style: normal; font-size: 16px; letter-spacing: 4px; color: var(--tinta); border: 1px solid #fff; }
.tag { position: absolute; top: 16px; font-family: var(--mono); font-size: 10px; padding: 6px 10px; border-radius: 99px; background: rgba(11,16,23,.55); color: #fff; backdrop-filter: blur(8px); pointer-events: none; }
.t-antes { left: 16px; }
.t-depois { right: 16px; }

/* ---------- especialista ---------- */
.doutor { position: relative; margin: 30px var(--lado) 0; }
.doutor > img { border-radius: 28px; aspect-ratio: 4/5; width: 100%; object-fit: cover; object-position: 50% 20%; }
.doutor-card { position: relative; margin: -175px 12px 0; border-radius: 22px; padding: 18px 18px 20px; }
.doutor-card h3 { font-size: 30px; margin: 12px 0 8px; font-weight: 400; }
.doutor-card p:last-child { font-size: 13.5px; color: var(--tinta-2); line-height: 1.5; }

/* ---------- plano ---------- */
.plano { padding: 40px var(--lado) 10px; }
.plano-card {
  position: relative; border-radius: 28px; padding: 26px 22px 24px;
  background: linear-gradient(160deg, #d6e4f7 0%, #a9c2ea 100%);
  border: 1px solid rgba(255,255,255,.7);
}
.sorri { position: absolute; right: 22px; top: 26px; width: 70px; }
.sorri circle { fill: var(--tinta); }
.sorri path { stroke: var(--tinta); }
.plano-card strong { display: block; font-size: 92px; font-weight: 300; letter-spacing: -.06em; line-height: 1; margin: 18px 0 8px; }
.plano-card > p:nth-of-type(2) { font-size: 14px; line-height: 1.5; max-width: 30ch; color: var(--tinta-2); }
.preco { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(11,16,23,.12); font-size: 26px; letter-spacing: -.03em; }
.preco span { font-size: 13px; color: var(--cinza); margin-left: 3px; }

/* ---------- agendar ---------- */
.agendar { padding: 60px var(--lado) 40px; }
.agendar h2 { font-size: 48px; }
.agendar-txt p { color: var(--cinza); font-size: 14.5px; line-height: 1.5; margin: 14px 0 22px; max-width: 30ch; }
.botao.grande { width: 100%; justify-content: space-between; padding: 18px 18px 18px 24px; font-size: 16px; }
.botao.grande span { width: 32px; height: 32px; }
.infos { margin-top: 14px; border-radius: 22px; padding: 4px 18px; }
.infos div { display: grid; grid-template-columns: 80px 1fr; padding: 14px 0; border-top: 1px solid var(--linha); font-size: 13.5px; }
.infos div:first-child { border-top: 0; }
.infos dt { font-family: var(--mono); font-size: 10.5px; color: var(--cinza); padding-top: 2px; }

.rodape { padding: 24px var(--lado) 110px; background: var(--gelo); font-family: var(--mono); font-size: 10px; color: var(--cinza); line-height: 1.7; border-top: 1px solid var(--linha); }
.rodape a { text-decoration: underline; }

.barra-fixa {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40;
  max-width: 500px; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 8px 8px 8px 16px; border-radius: 18px;
  background: rgba(255,255,255,.62); border: 1px solid rgba(255,255,255,.8);
  backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: 0 12px 30px -14px rgba(20,40,80,.35);
  font-size: 13px; font-weight: 500;
  transform: translateY(140%); transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.barra-fixa.on { transform: none; }
@media (min-width: 540px) { .barra-fixa { left: 50%; right: auto; width: 500px; margin-left: -250px; } }

/* ---------- computador: tela esticada ---------- */
@media (min-width: 900px) {
  :root { --lado: max(48px, calc((100vw - 1240px) / 2)); }
  body { background: var(--gelo); }
  main, .rodape { max-width: none; }
  .topo { max-width: 1240px; width: calc(100% - 64px); inset: 16px 0 auto; padding: 10px 10px 10px 16px; }
  .barra-fixa { display: none; }

  .abertura { height: 280vh; }
  .marca-dagua { font-size: min(30vw, 420px); bottom: -2%; }
  .abre-txt { top: 130px; }
  .abre-txt h1 { font-size: clamp(80px, 8.4vw, 132px); }
  .abre-2 { font-size: clamp(80px, 8.4vw, 132px); top: 52%; }
  .chip { padding: 12px 16px; font-size: 14px; }
  .chip span { font-size: 11px; }
  .chip-a { left: auto; right: calc(50% + 230px); top: 64%; }
  .chip-b { right: var(--lado); top: 70%; }
  .abre-pe { bottom: 40px; }
  .rotulo { width: 220px; font-size: 16px; }
  .rotulo span { font-size: 12px; }
  .abre-fim { font-size: 52px; bottom: 48px; }
  .dica { bottom: 120px; }

  .numeros { grid-template-columns: repeat(4, 1fr); padding-top: 80px; padding-bottom: 70px; }
  .numeros div, .numeros div:nth-child(even) { padding: 22px 24px; border-left: 1px solid var(--linha); }
  .numeros div:first-child { border-left: 0; padding-left: 0; }
  .numeros strong { font-size: 76px; }
  .numeros span { font-size: 12px; }

  .painel { margin: 0 calc(var(--lado) - 28px); padding: 60px 0 44px; border-radius: 40px; }
  .painel-cab { display: grid; grid-template-columns: 1fr 1fr; align-items: end; column-gap: 40px; padding: 0 28px 36px; margin: 0; }
  .painel-cab .etiqueta { grid-column: 1 / -1; }
  .painel h2 { font-size: 64px; margin-bottom: 0; }
  .painel-cab > p:last-child { justify-self: end; font-size: 16px; }
  .trilho { grid-auto-columns: calc((100% - 56px - 40px) / 4.3); padding: 30px 28px 4px; scroll-padding-inline: 28px; }
  .trilho-barra { margin: 24px 28px 0; }

  .scan { display: grid; grid-template-columns: 1fr 1.05fr; column-gap: 80px; align-content: start; padding-top: 120px; padding-bottom: 60px; }
  .scan > .etiqueta, .scan > h2, .scan > .passos { grid-column: 1; }
  .scan > h2 { font-size: 72px; }
  .scan-foto { grid-column: 2; grid-row: 1 / span 3; aspect-ratio: 4/4.4; }
  .passos { margin-top: 10px; }
  .passos b { font-size: 22px; }
  .passos p { font-size: 15px; }

  .compara { display: grid; grid-template-columns: 1fr 1.05fr; column-gap: 80px; align-items: center; padding-top: 80px; }
  .compara-cab { display: block; order: 2; }
  .compara h2 { font-size: 72px; }
  .compara-cab p { text-align: left; max-width: none; margin-top: 18px; font-size: 13px; }
  .comparador { aspect-ratio: 5/4; }

  .dupla-pc { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 70px var(--lado) 0; align-items: stretch; }
  .dupla-pc .doutor { margin: 0; }
  .dupla-pc .plano { padding: 0; display: flex; }
  .plano-card { width: 100%; padding: 44px 40px 40px; display: flex; flex-direction: column; justify-content: flex-end; }
  .plano-card strong { font-size: 160px; }
  .plano-card > p:nth-of-type(2) { font-size: 17px; }
  .sorri { width: 110px; right: 40px; top: 44px; }
  .doutor > img { aspect-ratio: 4/4.4; }
  .doutor > img { object-position: 50% 0%; }
  .doutor-card { margin: -265px 24px 0; padding: 24px 26px 26px; }

  .agendar { display: grid; grid-template-columns: 1.1fr 1fr; column-gap: 80px; row-gap: 14px; padding-top: 120px; padding-bottom: 90px; align-items: start; }
  .agendar-txt { grid-row: 1 / span 2; }
  .agendar h2 { font-size: 84px; }
  .agendar-txt p { font-size: 17px; }
  .infos { margin-top: 0; }
  .infos div { font-size: 15px; grid-template-columns: 110px 1fr; }
  .rodape { padding-bottom: 30px; display: flex; justify-content: space-between; }
}

/* entrada suave dos blocos */
.surge { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.surge.on { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .surge { opacity: 1; transform: none; transition: none; }
  .dica::after { animation: none; }
}
