/* LP Simulação (20/10/2026). Fontes e botões vêm do padrao-unique.css (kit da marca).
   Cores e regras: docs/GUIA-DE-MARCA-FRONTEND.md, seção 3 (Unique). Celular primeiro (375 px). */
:root {
  --brand: #C5A572;
  --brand-darker: #8B7047;
  --brand-light: #D4B987;
  --ouro: #AA7E32;
  --black: #0A0A0A;
  --bg-cream: #FAF8F5;
  --bg-alt: #F2ECE3;
  --text-dark: #2C2C2C;
  --text-darker: #1A1A1A;
  --text-gray: #6B6B6B;
  --border-gold: rgba(197, 165, 114, .22);
  --erro: #A8443A;
  --curva: cubic-bezier(0.4, 0, 0.2, 1);
  --degrade: linear-gradient(135deg, #8B7047 0%, #C5A572 50%, #D4B987 100%);
  --estudio: #1D1915; /* fundo de estúdio fotográfico da vitrine e do escaneamento */
  --linha-ouro: linear-gradient(180deg, #E6D3AE 0%, #C5A572 50%, #8B7047 100%);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg-cream); color: var(--text-dark);
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 16px; line-height: 1.6; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-darker); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
[hidden] { display: none !important; }

/* ---------- topo ---------- */
.topo { display: flex; justify-content: center; padding: 22px 16px 6px; }
.topo__logo { width: 148px; height: auto; }

/* ---------- palco e telas ---------- */
.palco { flex: 1; width: 100%; max-width: 560px; margin: 0 auto; padding: 8px 16px 48px; }
.tela { display: flex; flex-direction: column; gap: 18px; animation: entra .45s var(--curva) both; }
@keyframes entra { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.rotulo {
  margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--brand-darker);
}
.titulo {
  margin: 0; font-weight: 400; color: var(--text-darker); letter-spacing: -.01em;
  font-size: clamp(30px, 8.4vw, 44px); line-height: 1.12;
}
.titulo em {
  font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-weight: 400;
  background: var(--degrade); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none; filter: none; /* guia, regra 11: dourado em degradê não leva sombra */
  padding-right: .06em;
}
.titulo--menor { font-size: clamp(23px, 6.2vw, 30px); font-weight: 500; line-height: 1.25; }
.lead { margin: 0; color: var(--text-gray); font-size: 16px; }
.nota { margin: 0; font-size: 13px; color: var(--text-gray); line-height: 1.5; }
.nota--centro { text-align: center; }
.nota__ico { display: inline-block; width: 15px; height: 15px; margin-right: 6px; vertical-align: -2px; fill: none; stroke: var(--brand-darker); stroke-width: 1.6; }

/* botões ocupando a largura no celular */
.palco .uq-btn, .palco .uq-btn-outline { width: 100%; }

/* ---------- início ----------
   [21/10] Inspirado na Análise: a página abre com um antes e depois REAL num "estúdio" escuro, e a linha
   dourada desliza uma vez revelando a simulação (o escaneamento dourado da Análise). Resto quieto. */
#t-inicio { padding-top: clamp(8px, 3vh, 32px); gap: 22px; }
.inicio__texto { display: grid; gap: 12px; text-align: center; }
.inicio .titulo { font-size: clamp(34px, 9.6vw, 58px); line-height: 1.06; letter-spacing: -.02em; }
.inicio__acao { display: grid; gap: 12px; }

.vitrine {
  margin: 0; display: grid; gap: 12px; justify-items: center; padding: 14px 14px 14px; border-radius: 26px;
  background: radial-gradient(120% 70% at 50% 0%, rgba(197, 165, 114, .30), transparent 62%), var(--estudio);
}
.vitrine figcaption { font-size: 12.5px; line-height: 1.4; color: #CDBFA6; text-align: center; }
/* [21/10] lado a lado com o nome fixo embaixo (o arrastar na vitrine confundia qual lado era qual) */
.vitrine__par { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vitrine__foto { display: grid; gap: 10px; justify-items: center; }
.vitrine__foto img {
  width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12);
}
.vitrine__foto--ia img { box-shadow: 0 0 0 2px var(--brand), 0 0 28px -4px rgba(212, 185, 135, .55); }
.vitrine__rot { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #B9AC95; white-space: nowrap; }
@media (max-width: 360px) {
  .vitrine__rot { font-size: 11.5px; gap: 4px; } .vitrine__par { gap: 8px; }
  .alternar button { padding: 8px 4px; font-size: 12px; } .alternar button svg { display: none; }
}
.vitrine__foto--ia .vitrine__rot { color: #E6D3AE; }
.vitrine__rot svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.fatos { list-style: none; margin: 0; padding: 2px 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.fatos li { display: grid; gap: 2px; align-content: start; justify-items: center; text-align: center; padding: 2px 8px; }
.fatos svg { width: 20px; height: 20px; margin-bottom: 4px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fatos li + li { border-left: 1px solid var(--border-gold); }
.fatos strong { font-size: 21px; font-weight: 600; line-height: 1.2; color: var(--brand-darker); }
.fatos span { font-size: 12px; line-height: 1.35; color: var(--text-gray); }

.passos {
  list-style: none; margin: 0; padding: 18px; display: grid; gap: 16px;
  background: #fff; border: 1px solid var(--border-gold); border-radius: 18px;
}
.passos li { display: flex; align-items: flex-start; gap: 14px; }
.passos__n {
  flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%;
  background: var(--degrade); color: #fff; font-size: 14px; font-weight: 600;
}
.passos li > span:last-child { display: grid; font-size: 13.5px; line-height: 1.4; color: var(--text-gray); padding-top: 1px; }
.passos strong { font-size: 15px; font-weight: 600; color: var(--text-darker); }

/* ---------- galeria de casos (início) ----------
   Cada caso no mesmo "estúdio" da vitrine e com o mesmo par original | simulação, para ler igual.
   No celular desliza para o lado; no computador, 4 lado a lado. */
.galeria { display: grid; gap: 16px; margin-top: 10px; }
.galeria__titulo { margin: 0; font-size: clamp(21px, 5.6vw, 28px); font-weight: 500; line-height: 1.25; color: var(--text-darker); text-align: center; }
.galeria__trilho {
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin: 0 -16px; padding: 2px 16px 10px; scrollbar-width: none;
}
.galeria__trilho::-webkit-scrollbar { display: none; }
.caso {
  margin: 0; scroll-snap-align: center; display: grid; gap: 10px; padding: 10px 10px 12px; border-radius: 20px;
  background: radial-gradient(120% 60% at 50% 0%, rgba(197, 165, 114, .24), transparent 62%), var(--estudio);
}
.caso__par { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.caso__foto { display: grid; gap: 6px; justify-items: center; }
.caso__foto img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; }
.caso__foto--ia img { box-shadow: 0 0 0 2px var(--brand); }
.caso__foto span { font-size: 11.5px; font-weight: 600; color: #B9AC95; }
.caso__foto--ia span { color: #E6D3AE; }
.caso figcaption { text-align: center; font-size: 15px; font-weight: 600; color: #F3EBDD; }

.aviso-ia { margin: 0 auto; max-width: 62ch; font-size: 12.5px; line-height: 1.5; color: var(--text-gray); text-align: center; }
.link-cookies { padding: 6px 4px; background: none; border: 0; cursor: pointer; font: inherit; font-size: 12.5px; color: var(--text-gray); text-decoration: underline; text-underline-offset: 3px; }
.link-cookies:hover { color: var(--brand-darker); }

/* ---------- progresso ---------- */
.progresso { height: 3px; background: var(--bg-alt); border-radius: 3px; overflow: hidden; }
.progresso span { display: block; height: 100%; width: var(--p); background: var(--degrade); border-radius: 3px; transition: width .5s var(--curva); }

/* ---------- procedimentos ---------- */
.grupo { display: grid; gap: 10px; }
.grupo__nome { margin: 4px 0 0; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--text-gray); }
.cartoes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cartao {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 84px;
  padding: 14px; text-align: left; cursor: pointer;
  background: #fff; border: 1px solid var(--border-gold); border-radius: 14px;
  font: inherit; color: var(--text-dark);
  transition: border-color .25s var(--curva), box-shadow .25s var(--curva), transform .25s var(--curva);
}
.cartao strong { font-size: 15px; font-weight: 600; color: var(--text-darker); line-height: 1.3; }
.cartao span { font-size: 12.5px; color: var(--text-gray); line-height: 1.4; }
.cartao:hover { border-color: var(--brand); box-shadow: 0 10px 26px rgba(139, 112, 71, .12); transform: translateY(-2px); }
.cartao[aria-pressed="true"] { border-color: var(--brand-darker); box-shadow: 0 0 0 1.5px var(--brand) inset; }

/* ---------- foto ---------- */
.foto { display: grid; gap: 14px; }
.foto__moldura {
  position: relative; width: min(100%, 300px, 44vh); max-width: 360px; margin: 0 auto; aspect-ratio: 2 / 3;
  background: var(--bg-alt); border: 1px dashed var(--brand); border-radius: 18px; overflow: hidden;
  display: grid; place-items: center;
}
.foto__moldura.rosto { aspect-ratio: 1 / 1; }
.foto__guia { width: 62%; height: auto; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; opacity: .7; }
.foto__previa { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.foto__acoes { display: grid; gap: 10px; }
.uq-btn--file { position: relative; }
.uq-btn--file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; font-size: 0; }
.dicas { list-style: none; margin: 0; padding: 14px 16px; display: grid; gap: 8px; background: #fff; border: 1px solid var(--border-gold); border-radius: 14px; }
.dicas li { position: relative; padding-left: 22px; font-size: 14px; line-height: 1.45; }
.dicas li::before {
  content: ""; position: absolute; left: 2px; top: .45em; width: 10px; height: 6px;
  border-left: 1.8px solid var(--brand-darker); border-bottom: 1.8px solid var(--brand-darker); transform: rotate(-45deg);
}
.dicas li.nao::before { border: 0; width: 12px; height: 12px; top: .35em; background:
  linear-gradient(45deg, transparent 44%, var(--erro) 44% 56%, transparent 56%),
  linear-gradient(-45deg, transparent 44%, var(--erro) 44% 56%, transparent 56%); transform: none; }
.dicas strong { color: var(--text-darker); font-weight: 600; }

/* ---------- aceite ---------- */
.aceite { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; color: var(--text-dark); cursor: pointer; }
.aceite input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--brand-darker); cursor: pointer; }
.aceite--leve { color: var(--text-gray); font-size: 13px; }

/* ---------- formulário ---------- */
.form { display: grid; gap: 14px; }
.campo { display: grid; gap: 6px; }
.campo > span { font-size: 13px; font-weight: 600; color: var(--text-darker); }
.campo > span em { font-style: normal; font-weight: 400; color: var(--text-gray); }
.campo input, .campo select {
  width: 100%; min-height: 52px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--text-darker);
  background: #fff; border: 1px solid #E3DCD0; border-radius: 12px; outline: none;
  transition: border-color .2s var(--curva), box-shadow .2s var(--curva);
}
.campo input:focus, .campo select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(197, 165, 114, .18); }
.campo input[aria-invalid="true"] { border-color: var(--erro); }
.campo__tel { display: grid; grid-template-columns: 112px 1fr; gap: 8px; }
.aviso { margin: 0; padding: 12px 14px; font-size: 14px; color: var(--erro); background: #FBEFEC; border-radius: 12px; }

/* ---------- gerando ---------- */
.gerando { display: grid; gap: 16px; justify-items: center; text-align: center; padding-top: clamp(12px, 5vh, 56px); }
/* a foto da própria paciente, com a grade e a linha dourada passando (a IA "trabalhando" nela) */
.escaneando {
  position: relative; width: min(62vw, 240px); aspect-ratio: 2 / 3; border-radius: 18px; overflow: hidden;
  background: var(--estudio); box-shadow: 0 0 0 1px rgba(212, 185, 135, .35), 0 24px 60px -22px rgba(29, 25, 21, .55);
}
.escaneando.rosto { aspect-ratio: 1 / 1; width: min(70vw, 270px); }
.escaneando__foto { width: 100%; height: 100%; object-fit: cover; filter: saturate(.7) brightness(.88); }
.escaneando::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(212, 185, 135, .18) 1px, transparent 1px), linear-gradient(90deg, rgba(212, 185, 135, .18) 1px, transparent 1px);
  background-size: 24px 24px;
}
.escaneando__linha {
  position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 1;
  background: linear-gradient(90deg, transparent, #D4B987 18%, #fff 50%, #D4B987 82%, transparent);
  box-shadow: 0 0 18px 5px rgba(212, 185, 135, .55);
  animation: escaneia 2.4s ease-in-out infinite alternate;
}
@keyframes escaneia { from { top: 0; } to { top: calc(100% - 2px); } }
.barra { width: 100%; max-width: 320px; height: 4px; background: var(--bg-alt); border-radius: 4px; overflow: hidden; }
.barra span { display: block; height: 100%; width: 0; background: var(--degrade); border-radius: 4px; transition: width 1s linear; }

/* ---------- resultado ---------- */
.comparar {
  position: relative; width: 100%; max-width: 420px; margin: 0 auto; aspect-ratio: 2 / 3;
  border-radius: 18px; overflow: hidden; background: var(--bg-alt); user-select: none; touch-action: pan-y;
  box-shadow: 0 24px 60px rgba(139, 112, 71, .14);
}
.comparar.rosto { aspect-ratio: 1 / 1; }
.comparar__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.comparar__depois { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--corte, 50%)); }
.comparar__linha {
  position: absolute; top: 0; bottom: 0; left: var(--corte, 50%); width: 2px; margin-left: -1px;
  background: var(--linha-ouro); box-shadow: 0 0 14px 1px rgba(212, 185, 135, .7); pointer-events: none;
}
.comparar__linha::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 42px; height: 42px; transform: translate(-50%, -50%);
  border-radius: 50%; background-color: #fff; border: 2px solid var(--brand); box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
  background-image: linear-gradient(90deg, transparent 13px, var(--brand-darker) 13px 15px, transparent 15px 25px, var(--brand-darker) 25px 27px, transparent 27px);
  background-size: 40px 14px; background-position: center; background-repeat: no-repeat;
}
.comparar__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.comparar__tag {
  position: absolute; top: 12px; padding: 5px 10px; border-radius: 999px; font-size: 10.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; background: rgba(10, 10, 10, .55); color: #fff; pointer-events: none;
}
.comparar__tag--antes { left: 12px; }
.comparar__tag--depois { right: 12px; background: rgba(139, 112, 71, .9); }

/* ---------- resultado lado a lado (26/10) ---------- */
.resultado-par {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px; border-radius: 22px;
  background: radial-gradient(120% 60% at 50% 0%, rgba(197, 165, 114, .28), transparent 62%), var(--estudio);
}
.resultado-foto { margin: 0; display: grid; gap: 8px; justify-items: center; }
.resultado-foto img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 12px; background: #2a241d; }
.resultado-par.rosto .resultado-foto img { aspect-ratio: 1 / 1; }
.resultado-foto--ia img { box-shadow: 0 0 0 2px var(--brand), 0 0 28px -4px rgba(212, 185, 135, .55); }
.resultado-foto figcaption { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #B9AC95; white-space: nowrap; }
.resultado-foto--ia figcaption { color: #E6D3AE; }
.resultado-foto figcaption svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 360px) { .resultado-foto figcaption { font-size: 11.5px; gap: 4px; } }

/* Ver sua foto / Comparar / Ver simulação */
.alternar {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; width: 100%; max-width: 420px; margin: -4px auto 0;
  padding: 4px; background: var(--bg-alt); border-radius: 999px;
}
.alternar button {
  min-height: 42px; padding: 8px 12px; border: 0; border-radius: 999px; background: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--text-gray); white-space: nowrap;
  transition: background-color .2s var(--curva), color .2s var(--curva);
}
.alternar button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.alternar button[aria-pressed="true"] { background: #fff; color: var(--brand-darker); box-shadow: 0 2px 8px rgba(139, 112, 71, .16); }
.selo { margin: 0; padding: 14px 16px; font-size: 13px; line-height: 1.5; color: var(--text-dark); background: var(--bg-alt); border-radius: 14px; }
.selo strong { color: var(--text-darker); }
.cartao-3d { display: grid; gap: 6px; padding: 16px; background: #fff; border: 1px solid var(--border-gold); border-radius: 14px; }
.cartao-3d p { margin: 0; }
.cartao-3d p:not(.rotulo) { font-size: 14.5px; }

/* ---------- voltar ---------- */
.voltar {
  align-self: center; min-height: 48px; padding: 10px 18px; background: none; border: 0; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-gray);
}
.voltar:hover { color: var(--brand-darker); }

/* ---------- rodapé (vestido pelo padrao-marca.js) ---------- */
.rodape {
  display: flex; flex-wrap: wrap; gap: 6px 10px; justify-content: center; align-items: center;
  padding: 20px 16px 28px; font-size: 12px; color: var(--text-gray); border-top: 1px solid var(--border-gold);
}
.rodape a { color: var(--text-gray); text-decoration: none; }
.rodape a:hover { color: var(--brand-darker); }

@media (min-width: 720px) {
  .palco { padding-top: 24px; }
  .cartoes { grid-template-columns: repeat(3, 1fr); }
  .foto__acoes { grid-template-columns: 1fr 1fr; }
}
/* computador: no início, texto à esquerda e a vitrine à direita */
@media (min-width: 960px) {
  body[data-tela="t-inicio"] .palco { max-width: 1080px; }
  #t-inicio {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(400px, 500px);
    grid-template-areas: "texto vitrine" "acao vitrine" "fatos vitrine" "passos vitrine" "galeria galeria";
    grid-template-rows: auto auto auto 1fr auto; column-gap: 72px; row-gap: 26px; padding-top: 40px;
  }
  .galeria { grid-area: galeria; margin-top: 36px; }
  .galeria__trilho { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 0; }
  .galeria .uq-btn-outline { justify-self: center; width: auto; padding-left: 44px; padding-right: 44px; }
  .inicio__texto { grid-area: texto; text-align: left; align-self: end; }
  .inicio .lead { max-width: 30em; font-size: 17px; }
  .vitrine { grid-area: vitrine; align-self: start; padding: 18px; }
  .inicio__acao { grid-area: acao; justify-items: start; }
  #t-inicio .inicio__acao .uq-btn { width: auto; padding-left: 48px; padding-right: 48px; }
  .inicio__acao .nota--centro { text-align: left; }
  .fatos { grid-area: fatos; max-width: 520px; }
  .fatos li { justify-items: start; text-align: left; padding: 2px 18px; }
  .fatos li:first-child { padding-left: 0; }
  .passos { grid-area: passos; align-self: start; max-width: 520px; }
}
@media (prefers-reduced-motion: reduce) {
  .tela { animation: none; }
  .escaneando__linha { animation: none; top: 50%; }
  .cartao, .progresso span, .barra span { transition: none; }
}
