/* Clínica Sorriso Exemplo (odontologia, variação A) - Sistema Destaca Já v1: grade de 8 px, escala 12/14/16/18/20/25/31/39/49/61, tema escuro. */
:root {
  --s-1: 8px; --s-2: 16px; --s-3: 24px; --s-4: 32px; --s-5: 48px; --s-6: 64px; --s-7: 96px;
  --coluna: 1120px; --margem: 20px;
  --fundo: #0E1226; --superficie: #171C3A; --superficie-2: #20274D;
  --texto: #EEF0FF; --suave: #AEB6DD; --linha: #2C3566;
  --marca: #8C9BFF; --acao: #FF7A66; --acao-texto: #0E1226; --zap: #0E7A3F; --perola: #F4F2FF;
  --raio: 24px;
  --titulo: "Sora", "Trebuchet MS", sans-serif;
  --corpo: "Nunito Sans", "Segoe UI", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font: 400 16px/1.65 var(--corpo); color: var(--texto); background: var(--fundo); -webkit-text-size-adjust: 100%; }
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--titulo); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; margin: 0 0 var(--s-2); }
h1 { font-size: 39px; } h2 { font-size: 31px; } h3 { font-size: 20px; }
p { margin: 0 0 var(--s-2); max-width: 62ch; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--marca); outline-offset: 3px; }
.c { width: 100%; max-width: var(--coluna); margin: 0 auto; padding: 0 var(--margem); }
.secao { padding: var(--s-6) 0; }
.secao-2 { background: var(--superficie); }
.nota { font-size: 14px; color: var(--suave); }
.vazio { display: inline-block; padding: 2px 10px; border: 2px dashed #5560A0; border-radius: 8px; color: var(--suave); font-size: 14px; }

.botao { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--s-3); border: 0; border-radius: 999px; background: var(--acao); color: var(--acao-texto); font: 800 16px var(--corpo); text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.botao:hover { background: #FF9382; transform: translateY(-1px); }
.botao-contorno { background: transparent; color: var(--texto); border: 2px solid #4B5699; }
.botao-contorno:hover { background: var(--superficie-2); }
.botao-largo { width: 100%; }

.faixa-demo { background: #070A18; color: #C3CAEC; font-size: 14px; text-align: center; padding: var(--s-1) var(--s-2); }
.faixa-demo p { margin: 0 auto; max-width: none; } .faixa-demo a { color: #fff; font-weight: 700; }
.topo { position: sticky; top: 0; z-index: 40; background: rgba(14,18,38,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--linha); }
.topo .c { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 18px var(--titulo); min-height: 48px; }
.logo svg { width: 32px; height: 32px; }
.topo nav { display: none; }

/* herói */
.heroi { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(60% 70% at 85% 30%, #2B3680 0%, transparent 70%), radial-gradient(50% 60% at 10% 90%, #3A1F5C 0%, transparent 70%), var(--fundo); }
.heroi .c { display: grid; gap: var(--s-4); padding-top: var(--s-5); padding-bottom: var(--s-5); align-items: center; }
.contexto { color: var(--marca); font-weight: 800; font-size: 14px; margin-bottom: var(--s-1); }
.heroi .sub { color: #D2D8F5; font-size: 18px; }
.pedido { display: grid; gap: var(--s-1); margin: var(--s-3) 0 var(--s-1); padding: var(--s-2); background: rgba(23,28,58,.92); border: 1px solid #3C4784; border-radius: var(--raio); max-width: 520px; }
.pedido label { font-size: 14px; font-weight: 800; color: var(--suave); }
.pedido select { width: 100%; min-height: 48px; padding: 0 var(--s-2); border: 2px solid #3C4784; border-radius: 16px; background: var(--fundo); color: var(--texto); font: 600 16px var(--corpo); }
.pedido select:focus { border-color: var(--marca); outline: none; }
.micro { font-size: 14px; color: #BCC4E8; margin: 0; }

/* dente em 3D: camadas empilhadas dão espessura, só CSS */
.palco { position: relative; height: 296px; display: grid; place-items: center; perspective: 900px; touch-action: pan-y; }
.palco::before { content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(closest-side, rgba(140,155,255,.45), transparent); filter: blur(8px); }
.palco::after { content: ""; position: absolute; bottom: 8px; width: 168px; height: 24px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.55), transparent); }
.giro { transform-style: preserve-3d; animation: balanca 9s ease-in-out infinite alternate; }
.dente { position: relative; width: 200px; height: 240px; transform-style: preserve-3d; transform: rotateX(var(--rx, -8deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out; }
.dente .l { position: absolute; inset: 0; clip-path: path("M100 22 C72 10 40 18 30 48 C22 74 36 98 40 128 C43 164 50 214 66 222 C80 228 85 192 100 182 C115 192 120 228 134 222 C150 214 157 164 160 128 C164 98 178 74 170 48 C160 18 128 10 100 22 Z"); }
.dente .l:nth-child(-n+6) { background: linear-gradient(160deg, #AAB4E6, #8590CF); }
.dente .l:nth-child(n+7):nth-child(-n+14) { background: linear-gradient(160deg, #D9DFFA, #B8C2EF); }
.dente .l:nth-child(n+15):nth-child(-n+17) { background: linear-gradient(160deg, #F7F6FF, #DCE1FA); }
.dente .l:nth-child(18) { background: radial-gradient(60% 45% at 38% 28%, #FFFFFF 0%, #F4F2FF 45%, #D4DAF8 100%); }
.dente .l:nth-child(1) { transform: translateZ(-24px); } .dente .l:nth-child(2) { transform: translateZ(-21px); } .dente .l:nth-child(3) { transform: translateZ(-18px); }
.dente .l:nth-child(4) { transform: translateZ(-15px); } .dente .l:nth-child(5) { transform: translateZ(-12px); } .dente .l:nth-child(6) { transform: translateZ(-9px); }
.dente .l:nth-child(7) { transform: translateZ(-6px); } .dente .l:nth-child(8) { transform: translateZ(-3px); } .dente .l:nth-child(9) { transform: translateZ(0); }
.dente .l:nth-child(10) { transform: translateZ(3px); } .dente .l:nth-child(11) { transform: translateZ(6px); } .dente .l:nth-child(12) { transform: translateZ(9px); }
.dente .l:nth-child(13) { transform: translateZ(12px); } .dente .l:nth-child(14) { transform: translateZ(15px); } .dente .l:nth-child(15) { transform: translateZ(18px); }
.dente .l:nth-child(16) { transform: translateZ(21px); } .dente .l:nth-child(17) { transform: translateZ(24px); } .dente .l:nth-child(18) { transform: translateZ(27px); }
.chip3d { position: absolute; padding: 8px 16px; border-radius: 999px; background: rgba(32,39,77,.92); border: 1px solid #4B5699; font: 800 14px var(--corpo); white-space: nowrap; }
.chip3d.a { left: 4%; top: 18%; } .chip3d.b { right: 2%; bottom: 26%; }
@keyframes balanca { from { transform: rotateY(-22deg); } to { transform: rotateY(22deg); } }

/* confiança */
.prova { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3) var(--s-2); }
.prova div { display: grid; gap: 4px; align-content: start; }
.prova b { font: 800 25px var(--titulo); }
.prova .t { font-size: 14px; color: var(--suave); }

/* tratamentos em bento */
.bento { display: grid; gap: var(--s-2); margin-top: var(--s-3); }
.trat { position: relative; display: grid; gap: var(--s-1); align-content: start; padding: var(--s-3); background: var(--superficie); border: 1px solid var(--linha); border-radius: var(--raio); overflow: hidden; }
.trat p { color: var(--suave); margin: 0; }
.trat .ico { width: 48px; height: 48px; padding: 10px; border-radius: 16px; background: var(--superficie-2); color: var(--marca); }
.trat a { justify-self: start; margin-top: var(--s-1); font-weight: 800; color: var(--acao); text-underline-offset: 4px; min-height: 48px; display: inline-flex; align-items: center; }
.trat-foto { min-height: 320px; align-content: end; color: #fff; background: #0A0E20; }
.trat-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: .78; }
.trat-foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,14,32,.1), rgba(10,14,32,.92)); z-index: 1; }
.trat-foto > * { position: relative; z-index: 2; }
.trat-foto p { color: #DDE2FA; }

/* primeira consulta */
.duas { display: grid; gap: var(--s-4); align-items: center; }
.duas img { width: 100%; height: auto; border-radius: var(--raio); aspect-ratio: 3 / 2; object-fit: cover; }
.passos { list-style: none; counter-reset: p; margin: var(--s-3) 0 0; padding: 0; display: grid; gap: var(--s-3); }
.passos li { counter-increment: p; display: grid; grid-template-columns: 48px 1fr; gap: var(--s-2); }
.passos li::before { content: counter(p); width: 48px; height: 48px; border-radius: 16px; background: var(--marca); color: var(--fundo); display: grid; place-items: center; font: 800 20px var(--titulo); }
.passos h3 { margin: 0 0 4px; } .passos p { margin: 0; color: var(--suave); }

/* sem medo */
.semmedo { position: relative; isolation: isolate; overflow: hidden; }
.semmedo img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.semmedo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14,18,38,.96), rgba(14,18,38,.72)); }
.semmedo .c { padding-top: var(--s-6); padding-bottom: var(--s-6); }

/* equipe e informações */
.cards { display: grid; gap: var(--s-2); margin-top: var(--s-3); }
.card { padding: var(--s-3); border: 1px solid var(--linha); border-radius: var(--raio); background: var(--superficie); }
.card.pontilhado { border: 2px dashed #4B5699; background: transparent; }
.card p { color: var(--suave); margin: 0; }
.avatar { width: 80px; height: 80px; border-radius: 50%; border: 2px dashed #5560A0; margin-bottom: var(--s-2); display: grid; place-items: center; color: var(--suave); font-size: 12px; }

/* agenda */
.agenda { display: grid; gap: var(--s-3); margin-top: var(--s-3); padding: var(--s-3); background: var(--superficie); border: 1px solid var(--linha); border-radius: var(--raio); }
.agenda fieldset { border: 0; padding: 0; margin: 0; }
.agenda legend { font-weight: 800; margin-bottom: var(--s-1); padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-1); }
.chips label { position: relative; display: inline-flex; align-items: center; min-height: 48px; padding: 0 var(--s-2); border: 2px solid #3C4784; border-radius: 999px; cursor: pointer; font-weight: 700; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips label:has(input:checked) { background: var(--marca); border-color: var(--marca); color: var(--fundo); }
.chips label:has(input:focus-visible) { outline: 3px solid #fff; outline-offset: 2px; }
.agenda input[type=text] { width: 100%; min-height: 48px; padding: 0 var(--s-2); border: 2px solid #3C4784; border-radius: 16px; background: var(--fundo); color: var(--texto); font: 600 16px var(--corpo); }
.aviso-form { font-size: 14px; color: var(--suave); background: var(--fundo); border-radius: 16px; padding: var(--s-2); margin: var(--s-2) 0 0; }
.aviso-form a { color: var(--marca); }

details { background: var(--superficie); border: 1px solid var(--linha); border-radius: 16px; margin-bottom: var(--s-1); }
summary { cursor: pointer; font-weight: 800; padding: var(--s-2); list-style: none; display: flex; justify-content: space-between; gap: var(--s-2); min-height: 48px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 25px; line-height: 1; color: var(--marca); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 var(--s-2) var(--s-2); margin: 0; color: var(--suave); }

.rodape { background: #070A18; color: #BCC4E8; padding: var(--s-5) 0 112px; font-size: 14px; }
.rodape p { max-width: none; margin: 0 0 var(--s-1); } .rodape a { color: #fff; }
.barra-acao { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; gap: var(--s-1); padding: var(--s-1) 12px calc(var(--s-1) + env(safe-area-inset-bottom)); background: rgba(7,10,24,.96); backdrop-filter: blur(8px); }
.barra-acao a { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: var(--s-1); border-radius: 999px; font: 800 16px var(--corpo); text-decoration: none; }
.barra-acao .ligar { flex: none; padding: 0 var(--s-2); border: 2px solid #fff; color: #fff; }
.barra-acao .zap { flex: 1; background: var(--zap); color: #fff; }
.barra-acao svg { width: 24px; height: 24px; }

@media (min-width: 860px) {
  h1 { font-size: 49px; } h2 { font-size: 39px; } h3 { font-size: 25px; }
  .secao { padding: var(--s-7) 0; }
  .topo nav { display: flex; gap: var(--s-3); } .topo nav a { text-decoration: none; font-weight: 700; min-height: 48px; display: inline-flex; align-items: center; }
  .heroi .c { grid-template-columns: 1.05fr .95fr; gap: var(--s-6); padding-top: var(--s-7); padding-bottom: var(--s-7); }
  .heroi .sub { font-size: 20px; }
  .palco { height: 480px; } .palco::before { width: 400px; height: 400px; } .palco::after { width: 240px; bottom: 16px; }
  .dente { scale: 1.65; }
  .prova { grid-template-columns: repeat(4, 1fr); }
  .bento { grid-template-columns: repeat(6, 1fr); }
  .bento .trat { grid-column: span 2; } .bento .trat-foto { grid-column: span 3; grid-row: span 2; } .bento .trat.larga { grid-column: span 3; }
  .duas { grid-template-columns: 1fr 1fr; gap: var(--s-6); }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .agenda { grid-template-columns: 1fr 1fr; align-items: start; } .agenda .largo { grid-column: 1 / -1; }
  .barra-acao { left: auto; right: var(--s-2); bottom: var(--s-2); width: 432px; border-radius: 999px; padding: var(--s-1); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .giro { animation: none; transform: rotateY(-14deg); } .dente { transition: none; } .botao { transition: none; }
}

/* celular: o dente 3D sobe para logo depois do texto, antes do formulário */
@media (max-width: 859px) {
  .heroi .c > div:first-child { display: contents; }
  .heroi .c > div:first-child > * { order: 1; margin-top: 0; margin-bottom: 0; }
  .heroi .c > .palco { order: 2; height: 256px; }
  .heroi .c > div:first-child > .pedido { order: 3; margin: 0; }
  .heroi .c > div:first-child > .micro { order: 4; }
  .heroi .contexto { margin-bottom: 0; }
  .dente { scale: .9; }
}
