:root {
  color-scheme: light;
  --tinta: #101a35;
  --cinza: #44516b;
  --azul: #2141e0;
  --gelo: #eef2fa;
  --claro: #f8faff;
  --noite: #08112d;
  --menta: #66f4d2;
  --titulos: "Unbounded", "Arial Black", system-ui, sans-serif;
  --texto: "Inter", system-ui, sans-serif;
  --mono: ui-monospace, "Courier New", monospace;
  --chega: cubic-bezier(.2, .75, .25, 1);
  --foco: cubic-bezier(.35, .55, .45, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 86px; }
body { margin: 0; color: var(--tinta); background: var(--gelo); font: 400 17px/1.55 var(--texto); }
h1, h2, p, figure, dl, dd, ol { margin: 0; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #127c95; outline-offset: 5px; }

.largura { width: min(100%, 1520px); margin-inline: auto; padding-inline: clamp(20px, 4.2vw, 68px); }
.pular { position: fixed; z-index: 5; inset: 8px auto auto 8px; padding: 10px 16px; background: white; transform: translateY(-140%); }
.pular:focus { transform: translateY(0); }
.cabecalho { position: sticky; z-index: 4; top: 0; background: #eef2faef; border-bottom: 1px solid #111b3712; }
.cabecalho .largura { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 79px; }
.cabecalho nav { display: flex; align-items: center; gap: clamp(16px, 2.25vw, 36px); font-size: 14px; font-weight: 600; }
.cabecalho nav a, .marca, .botao, .atalho { text-decoration: none; }
.cabecalho nav a:hover, .atalho:hover { text-decoration: underline; text-underline-offset: 5px; }
.marca { display: flex; align-items: center; gap: 12px; }
.marca b { display: block; font: 800 19px/1.2 var(--titulos); letter-spacing: -.055em; }
.marca small { display: block; margin-top: 5px; text-transform: uppercase; letter-spacing: .14em; font: 600 10px/1.3 var(--mono); }
.marca-icone { display: grid; flex: 0 0 41px; width: 41px; aspect-ratio: 1; place-items: center; border-radius: 11px; background: var(--azul); }
.marca-icone::before { content: ""; width: 22px; height: 14px; border: 3px solid var(--menta); border-bottom: 0; border-radius: 14px 14px 0 0; box-shadow: inset 0 2px 0 #98b9ff; }
.botao { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 8px 23px; border-radius: 99px; background: var(--azul); color: white; font-size: 15px; font-weight: 700; box-shadow: 0 10px 25px #2141e03b, inset 0 -3px 0 #13249080; }
.botao:hover { background: #1931b6; }
.cabecalho-acoes { display: flex; align-items: center; gap: 10px; }
.pausar { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid #101a3540; border-radius: 99px; background: #ffffff8c; color: var(--cinza); font: 700 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.pausar:hover { border-color: var(--tinta); color: var(--tinta); }
.pausar i { width: 8px; height: 10px; border-inline: 2.5px solid currentColor; }
html[data-movimento="pausado"] .pausar i { width: 0; height: 0; border: 5px solid transparent; border-left: 8px solid currentColor; border-right: 0; }

.abertura { position: relative; background: radial-gradient(ellipse at 78% 44%, #fcfeff 3%, transparent 49%), linear-gradient(140deg, var(--gelo) 67%, #d9e2f6); }
.abertura-grade, .colunas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 5vw, 82px); }
.abertura-grade {
  grid-template-areas: "texto cena" "acoes cena";
  align-items: start;
  align-content: center;
  min-height: min(800px, calc(100svh - 79px));
  padding-block: clamp(55px, 7vw, 108px);
  gap: 24px clamp(20px, 2.6vw, 48px);
}
.abertura-texto { grid-area: texto; align-self: end; }
.abertura-acoes { grid-area: acoes; }
.abertura-acoes .acoes { margin-top: 0; }
.modelo-abertura { grid-area: cena; align-self: center; }
.legenda { display: flex; align-items: center; gap: 10px; color: #2544ad; font: 700 12px/1.45 var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.legenda::before { content: ""; flex: 0 0 21px; height: 12px; border: 2px solid currentColor; border-bottom: 0; border-radius: 21px 21px 0 0; }
h1, h2 { font-family: var(--titulos); letter-spacing: -.062em; }
h1 { margin-top: 23px; font-size: clamp(46px, 6.5vw, 105px); line-height: .975; font-weight: 800; }
h1 em, h2 em { color: var(--azul); font-style: normal; }
h1 .linha { display: block; }
.introducao { margin-top: 26px; max-width: 34ch; font-size: clamp(17px, 1.42vw, 22px); color: var(--cinza); }
.introducao strong { color: var(--tinta); }
.acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: 28px; }
.atalho { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; font-size: 15px; }
.assinatura { display: flex; align-items: center; gap: 13px; margin-top: 31px; color: var(--cinza); font-size: 14px; }
.assinatura b { color: var(--tinta); font-weight: 600; }
.assinatura .marca-icone { border-radius: 50%; }
.role { position: absolute; inset: auto 0 14px; display: grid; justify-items: center; gap: 7px; color: var(--cinza); font: 700 10px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; pointer-events: none; }
.role i { width: 1px; height: 26px; background: linear-gradient(var(--azul), transparent); transform-origin: top; animation: descer 1.9s 1.9s ease-in-out infinite; }

.modelo { min-width: 0; }
.modelo-area { position: relative; aspect-ratio: 1.17; isolation: isolate; background: radial-gradient(circle, #29478e18 1px, transparent 1.1px) 0 0 / 16px 16px; }
.modelo-area img, .modelo-area canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.modelo-area canvas { opacity: 0; }
.modelo[data-pronto] canvas { opacity: 1; touch-action: pan-y; cursor: grab; }
.modelo[data-arrastando] canvas { cursor: grabbing; }
.modelo[data-pronto] img { visibility: hidden; }
.chamada { position: absolute; z-index: 1; color: #263956; font: 700 clamp(8px, .88vw, 12px)/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; pointer-events: none; }
.chamada::before { content: ""; display: inline-block; margin-right: 8px; width: 8px; height: 8px; border: 1px solid #126f9b; border-radius: 50%; background: var(--menta); box-shadow: 0 0 0 3px #2694a424; }
.chamada-alto { top: 9%; right: 1%; }
.chamada-baixo { bottom: 6%; left: 10%; }
.modelo figcaption { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 14px; color: var(--cinza); font: 600 11px/1.4 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.modelo-controles { display: flex; flex-wrap: wrap; gap: 6px; }
.girar, .mover-placa { min-height: 44px; padding: 0 14px; color: inherit; background: transparent; border: 1px solid currentColor; border-radius: 24px; font: 700 12px/1.2 var(--texto); letter-spacing: 0; }
.girar:hover { background: #536a9b20; }
.mover-placa { min-width: 148px; border-color: transparent; background: var(--azul); color: white; }
.mover-placa:hover { background: #1931b6; }

.alinhador, .simulacao, .tratamentos, .consulta, .duvidas, .rodape { padding-block: clamp(65px, 9vw, 145px); }
h2 { margin-top: 17px; max-width: 14ch; font-size: clamp(32px, 4.1vw, 68px); font-weight: 800; line-height: 1.08; }
.alinhador { background: linear-gradient(112deg, #e9f2fb, #fbfdff 58%); }
.passos { margin-top: 25px; }
.passos > * { padding: 16px 0 16px 17px; border-left: 2px solid #2141e040; }
.passos > *:first-child { border-left-color: var(--azul); }
.passos dt, .passos b { font-weight: 700; }
.passos dd, .passos p { margin-top: 4px; color: var(--cinza); font-size: 16px; }

.simulacao { background: radial-gradient(ellipse at 68% 59%, #253e9b 0, #14245c 33%, var(--noite) 66%); color: var(--claro); }
.simulacao :is(.legenda, h2 em) { color: var(--menta); }
.simulacao p:not(.legenda) { max-width: 39ch; margin-top: 24px; color: #d2def4; }
.simulacao .modelo-area { background-image: radial-gradient(circle, #94b4fb39 1px, transparent 1.2px); }
.simulacao figcaption { color: #d2def4; }
.simulacao :focus-visible { outline-color: var(--menta); }
.placa-controle { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; max-width: 390px; margin-top: 28px; }
.placa-controle label { max-width: 19ch; color: var(--menta); font: 700 12px/1.4 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.placa-controle output { color: var(--menta); font: 700 21px/1 var(--titulos); white-space: nowrap; }
.placa-controle output b { font-size: clamp(42px, 5.5vw, 74px); letter-spacing: -.075em; }
.placa-controle output span { color: #d2def4; }
.placa-controle input { grid-column: 1 / -1; width: 100%; min-height: 40px; margin: 0; accent-color: var(--menta); cursor: pointer; }

.tratamentos { background: #eaf2fa; }
.consulta { background: #dce8ff; }
.consulta .colunas { align-items: start; }
.numerados { padding-left: 24px; margin-top: 0; }
.numerados li::marker { color: var(--azul); font: 700 13px var(--mono); }
.duvidas { background: #fbfdff; }
.respostas { border-top: 1px solid #101a352d; }
.respostas details { border-bottom: 1px solid #101a352d; }
.respostas summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding-block: 16px; cursor: pointer; list-style: none; font-weight: 700; }
.respostas summary::-webkit-details-marker { display: none; }
.respostas summary::after { content: "+"; color: var(--azul); font-size: 23px; }
.respostas details[open] summary::after { content: "−"; }
.respostas details p { margin-bottom: 20px; max-width: 52ch; color: var(--cinza); }
.tratamentos summary { font-family: var(--titulos); font-size: clamp(16px, 1.64vw, 24px); letter-spacing: -.055em; }
.tratamentos details[open] summary { color: var(--azul); }
.rodape { background: var(--azul); color: white; }
.rodape .largura { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 26px; }
.rodape .legenda { color: #e0e9ff; }
.rodape h2 + p { margin-top: 18px; }
.rodape .botao { background: white; color: var(--azul); }
.rodape :focus-visible { outline-color: white; }
.contato { display: flex; flex-wrap: wrap; gap: 14px 46px; margin-top: 30px; font-size: 15px; }
.contato dt { margin-bottom: 5px; color: var(--menta); font: 700 11px/1.4 var(--mono); letter-spacing: .13em; text-transform: uppercase; }

/* ---------- Movimento ----------
   A abertura repete o vídeo de apresentação (assets/videos/dentista-*.mp4). O título aparece inteiro como uma
   névoa clara e desfocada; depois cada linha, uma após a outra, ganha tinta, entra em foco e sobe. Em seguida
   chegam o menu, a legenda, o texto, os botões, as chamadas do modelo e o convite para rolar. Tudo parte do
   estado final: sem animação (movimento reduzido, pausa, navegador antigo) a página já está inteira à vista. */
@keyframes surgir-nevoa { from { opacity: 0; } }
@keyframes surgir-linha { from { opacity: .15; filter: blur(.075em); transform: translateY(.3em); } 65% { filter: blur(0); } 90% { opacity: 1; } }
@keyframes surgir-secao { from { opacity: 0; filter: blur(.075em); transform: translateY(.3em); } 65% { filter: blur(0); } 90% { opacity: 1; } }
@keyframes surgir { from { opacity: 0; transform: translateY(var(--de, 12px)); } }
@keyframes surgir-imagem { from { opacity: 0; transform: scale(.94); } }
@keyframes surgir-modelo { from { opacity: 0; } }
@keyframes descer { 0% { transform: scaleY(0); opacity: 1; } 55% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

h1 { animation: surgir-nevoa .12s linear both; }
h1 .linha { animation: surgir-linha .5s .12s var(--foco) both; }
h1 .linha:nth-child(2) { animation-delay: .23s; }
h1 .linha:nth-child(3) { animation-delay: .35s; }
.cabecalho nav, .cabecalho-acoes { --de: -9px; animation: surgir .5s .38s var(--chega) both; }
.abertura .legenda { animation: surgir .55s .58s var(--chega) both; }
.introducao { animation: surgir .6s .68s var(--chega) both; }
.abertura-acoes .acoes { animation: surgir .6s .8s var(--chega) both; }
.assinatura { animation: surgir .6s .96s var(--chega) both; }
.modelo-abertura .chamada { --de: 0px; animation: surgir .6s 1.05s ease-out both; }
.modelo-abertura .chamada-baixo { animation-delay: 1.15s; }
.modelo-abertura figcaption { animation: surgir .6s 1.25s var(--chega) both; }
.role { --de: 0px; animation: surgir .6s 1.35s ease-out both; }
/* O modelo 3D que chega a tempo surge suave enquanto cresce (arcada.js). A imagem parada só aparece se ele demorar. */
.modelo-abertura[data-pronto="entrando"] canvas { animation: surgir-modelo .9s ease-out both; }
.modelo-abertura img { animation: surgir-imagem .7s 2.4s var(--chega) both; }

/* Os títulos das seções surgem do mesmo jeito quando entram na tela (movimento.js marca a página e cada título). */
html[data-revelar] :is(main, .rodape) h2:not([data-visto]) { opacity: 0; }
h2[data-visto=""] { animation: surgir-secao .6s var(--foco) both; }

/* A entrada inteira espera a letra do título chegar (index.html marca e desmarca a página). */
html[data-espera] *, html[data-espera] *::before, html[data-espera] *::after { animation-play-state: paused !important; }

/* Depois que a abertura terminou ela não toca de novo (girar o celular mostra peças que estavam escondidas). */
html[data-abriu] :is(.cabecalho, .abertura) *:not([data-laco]) { animation: none !important; }
/* Pausa e movimento reduzido: toda entrada vai direto para o estado final e nunca volta a tocar; só o laço para. */
html[data-entrou] *:not([data-laco]), html[data-entrou] *::before, html[data-entrou] *::after { animation: none !important; }
html[data-movimento="pausado"] [data-laco] { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
/* No papel não há entrada: tudo à vista. */
@media print {
  *, *::before, *::after { animation: none !important; }
  html[data-revelar] :is(main, .rodape) h2 { opacity: 1 !important; }
}

@media (max-width: 1100px) {
  /* a pausa vira só o ícone, para o menu e a marca não apertarem */
  .pausar { width: 44px; padding: 0; justify-content: center; }
  .pausar span { display: none; }
}

@media (max-width: 900px) {
  .cabecalho nav { display: none; }
  .abertura-grade { gap: 16px; }
  .abertura-texto h1 { font-size: clamp(38px, 6.9vw, 68px); }
}

@media (max-width: 680px) {
  html { scroll-padding-top: 72px; }
  .cabecalho .largura { min-height: 66px; gap: 12px; }
  .cabecalho .botao { min-height: 44px; padding-inline: 16px; font-size: 13px; }
  .cabecalho-acoes { gap: 8px; }
  .role { display: none; }
  .marca { gap: 9px; }
  .marca b { font-size: 15px; }
  .marca-icone { flex-basis: 34px; width: 34px; border-radius: 9px; }
  .marca-icone::before { width: 19px; height: 12px; }
  .marca small { margin-top: 3px; font-size: 8.5px; }
  .abertura-grade, .colunas { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .abertura-grade { grid-template-areas: "texto" "cena" "acoes"; min-height: auto; padding-block: 29px 38px; gap: 16px; }
  .abertura-texto h1 { margin-top: 17px; font-size: clamp(35px, 11vw, 64px); }
  .introducao { margin-top: 14px; }
  .acoes { margin-top: 19px; gap: 6px 16px; }
  .assinatura { display: none; }
  .modelo-encaixe { order: 1; }
  .modelo-abertura .modelo-area { aspect-ratio: 1.36; }
  .modelo-abertura .chamada-alto { top: 0; }
  .modelo-abertura .chamada-baixo { bottom: 0; }
  .modelo-abertura figcaption { margin-top: 6px; }
  .legenda { font-size: 10px; }
  .placa-controle { margin-top: 22px; }
}

@media (max-width: 359px) {
  .marca small { display: none; }
}
