/* Perfil Dominante V3 — sistema visual compartilhado (céu noturno + glass + Fraunces/Inter) */

:root {
  --fundo: #060912;
  --texto: #F2EEE4;
  --texto-fraco: #B9B2A3;
  --dourado: #D9B872;
  --acento: #7C8CD9;
  --acento-forte: #99A6E8;
  --overlay-secao: rgba(5, 8, 20, 0.55);
  --linha: rgba(242, 238, 228, 0.14);
  --linha-forte: rgba(242, 238, 228, 0.28);
  --vidro-bg: rgba(242, 238, 228, 0.07);
  --vidro-borda: rgba(242, 238, 228, 0.22);
  --sucesso: #7fb597;
  --erro: #d98a72;
  --raio: 10px;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--fundo);
  background-image: url("assets/fundo-cosmico.png");
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--texto);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.faixa { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; margin: 0; color: var(--texto); }
em { font-style: italic; color: var(--dourado); font-weight: 500; }
p { margin: 0; }
a { color: inherit; }

.rotulo {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--acento-forte);
  margin: 0 0 14px;
}
.rotulo-claro { color: var(--dourado); }

/* ---------- botões ---------- */
.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(.16,1,.3,1), background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.botao-primario { background: var(--acento); color: #0b0d18; box-shadow: 0 6px 24px rgba(124,140,217,0.35); }
.botao-primario:hover { background: var(--acento-forte); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(124,140,217,0.45); }
.botao-secundario { background: transparent; color: var(--texto); border-color: var(--linha-forte); }
.botao-secundario:hover { border-color: var(--dourado); color: var(--dourado); }
.botao:active { transform: scale(0.97); }
.botao:disabled { opacity: 0.5; cursor: default; transform: none; box-shadow: none; }

/* ---------- vidro (glassmorphism) ---------- */
.glass {
  background: var(--vidro-bg);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--vidro-borda);
  border-radius: 20px;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(242,238,228,0.14),
    inset 0 -1px 0 rgba(0,0,0,0.2);
}
@supports not (backdrop-filter: blur(1px)) {
  .glass { background: rgba(10,13,26,0.92); }
}
@media (prefers-reduced-transparency: reduce) {
  .glass { background: #10131f; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ---------- topo ---------- */
.topo { position: sticky; top: 0; z-index: 50; background: rgba(6,9,18,0.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--linha); }
.topo-faixa { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.marca { font-family: var(--serif); font-weight: 600; font-size: 19px; }
.topo-cta { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--acento-forte); border-bottom: 1px solid var(--acento-forte); padding-bottom: 2px; transition: color 0.2s ease, border-color 0.2s ease; }
.topo-cta:hover { color: var(--dourado); border-color: var(--dourado); }

/* ---------- hero ---------- */
.hero { padding: 80px 0 64px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero-texto h1 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.1; margin-bottom: 22px; }
.hero-sub { font-size: 17px; color: var(--texto-fraco); max-width: 48ch; margin-bottom: 30px; }
.hero-acoes { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.hero-preco { display: flex; flex-direction: column; line-height: 1.25; }
.hero-preco-valor { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--dourado); }
.hero-preco-nota { font-size: 12.5px; color: var(--texto-fraco); }

.hero-visual { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.hero-imagem-moldura {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1280 / 720;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--linha);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.hero-imagem { display: block; width: 100%; height: 100%; object-fit: cover; }

.halo-svg {
  position: absolute;
  top: 40.3%;
  left: 50.4%;
  width: 54%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  overflow: visible;
  pointer-events: none;
}

.glifo-icone { animation: pulsar-glifo 4.5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.glifo-brilho { animation: pulsar-brilho 4.5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulsar-glifo {
  0%, 100% { opacity: 0.55; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.08); }
}
@keyframes pulsar-brilho {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.7; }
}

.hero-visual-legenda { font-size: 12.5px; color: var(--texto-fraco); text-align: center; max-width: 320px; }

/* ---------- problema ---------- */
.problema { padding: 80px 0; position: relative; }
.problema::before { content: ""; position: absolute; inset: 0; background: var(--overlay-secao); z-index: 0; }
.problema-faixa { max-width: 760px; position: relative; z-index: 1; }
.problema h2 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.24; margin-bottom: 18px; }
.problema-texto { color: var(--texto-fraco); font-size: 16.5px; max-width: 62ch; }

/* ---------- como funciona ---------- */
.como { padding: 84px 0; position: relative; }
.como::before { content: ""; position: absolute; inset: 0; background: var(--overlay-secao); z-index: 0; }
.como .faixa { position: relative; z-index: 1; }
.como .rotulo { margin-bottom: 28px; }
.passos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--linha); }
.passo { padding: 26px 20px 0; border-right: 1px solid var(--linha); }
.passo:last-child { border-right: none; }
.passo-num { display: block; font-family: var(--serif); font-size: 15px; color: var(--dourado); margin-bottom: 14px; }
.passo h3 { font-size: 17px; margin-bottom: 8px; font-weight: 500; }
.passo p { font-size: 14.5px; color: var(--texto-fraco); }

/* ---------- ancoragem de preço ---------- */
.ancora { padding: 84px 0; position: relative; }
.ancora::before { content: ""; position: absolute; inset: 0; background: var(--overlay-secao); z-index: 0; }
.ancora-faixa { max-width: 860px; position: relative; z-index: 1; }
.ancora h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.3; margin-bottom: 36px; max-width: 34ch; }
.ancora-comparacao { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; }
.ancora-cartao { background: var(--vidro-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--vidro-borda); border-radius: var(--raio); padding: 26px 24px; display: flex; flex-direction: column; gap: 8px; }
.ancora-cartao-produto { background: rgba(124,140,217,0.16); border-color: rgba(124,140,217,0.45); box-shadow: 0 0 40px rgba(124,140,217,0.18); }
.ancora-cartao-rotulo { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.75; }
.ancora-cartao-valor { font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--texto); }
.ancora-cartao-produto .ancora-cartao-valor { color: var(--acento-forte); }
.ancora-cartao-detalhe { font-size: 13px; opacity: 0.8; line-height: 1.45; }
.ancora-seta { font-size: 22px; opacity: 0.6; text-align: center; color: var(--dourado); }

/* ---------- prova social ---------- */
.prova { padding: 84px 0; position: relative; }
.prova::before { content: ""; position: absolute; inset: 0; background: var(--overlay-secao); z-index: 0; }
.prova .faixa { position: relative; z-index: 1; }
.prova h2 { font-size: clamp(22px, 2.6vw, 28px); max-width: 54ch; line-height: 1.32; margin-bottom: 36px; }
.depoimentos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.depoimento { background: var(--vidro-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--vidro-borda); border-radius: var(--raio); padding: 22px 20px; }
.depoimento-texto { font-size: 14.5px; color: var(--texto-fraco); font-style: italic; margin-bottom: 14px; }
.depoimento-autor { font-size: 12.5px; color: var(--texto-fraco); opacity: 0.75; }

/* ---------- wizard ---------- */
.wizard-secao { padding: 84px 0 96px; position: relative; }
.wizard-secao::before { content: ""; position: absolute; inset: 0; background: var(--overlay-secao); z-index: 0; }
.wizard-faixa { max-width: 620px; position: relative; z-index: 1; }

.wizard-progresso { margin-bottom: 40px; }
.wizard-progresso-trilho { height: 3px; background: var(--linha); margin-bottom: 18px; position: relative; border-radius: 3px; overflow: hidden; }
.wizard-progresso-fill { position: absolute; left: 0; top: 0; height: 100%; width: 0%; background: linear-gradient(90deg, var(--acento), var(--dourado)); transition: width 0.4s ease; }
.wizard-progresso-lista { display: flex; justify-content: space-between; list-style: none; margin: 0; padding: 0; }
.wizard-progresso-lista li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--texto-fraco); }
.bolinha { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--linha-forte); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; flex-shrink: 0; transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease; }
.wizard-progresso-lista li.ativo, .wizard-progresso-lista li.feito { color: var(--texto); }
.wizard-progresso-lista li.ativo .bolinha { border-color: var(--acento); color: var(--acento-forte); }
.wizard-progresso-lista li.feito .bolinha { background: var(--acento); border-color: var(--acento); color: #0b0d18; }
.rotulo-passo { display: none; }
@media (min-width: 560px) { .rotulo-passo { display: inline; } }

.wizard-palco { position: relative; min-height: 1px; padding: 36px 36px 32px; }
.wizard-tela { display: none; }
.wizard-tela-ativa { display: block; }
.wizard-tela h2 { font-size: 24px; margin-bottom: 8px; font-weight: 600; }
.wizard-sub { color: var(--texto-fraco); font-size: 14.5px; margin-bottom: 26px; }

.campo { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.campo-grupo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 0; }
.campo-grupo .campo { margin-bottom: 18px; }
label { font-size: 13px; font-weight: 600; color: var(--texto-fraco); }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="time"] {
  font-family: var(--sans);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--linha-forte);
  border-radius: 8px;
  background: rgba(6,9,18,0.5);
  color: var(--texto);
  color-scheme: dark;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus { outline: none; border-color: var(--acento); box-shadow: 0 0 0 3px rgba(124,140,217,0.25); }
input[aria-invalid="true"] { border-color: var(--erro); }
input:disabled { opacity: 0.5; }
.erro { font-size: 12.5px; color: var(--erro); min-height: 15px; display: none; }
.erro.visivel { display: block; }
.campo-check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--texto-fraco); margin: -4px 0 18px; cursor: pointer; }
.campo-check input { width: 15px; height: 15px; accent-color: var(--acento); }

.wizard-rodape { margin-top: 10px; display: flex; justify-content: flex-end; }
.wizard-rodape-dupla { justify-content: space-between; }
.form-erro-geral { color: var(--erro); font-size: 13.5px; margin-top: 14px; }

/* pagamento */
.pagamento { text-align: left; }
.pix-caixa { display: flex; flex-direction: column; gap: 10px; background: rgba(6,9,18,0.5); border: 1px dashed var(--linha-forte); border-radius: 8px; padding: 16px; margin: 20px 0 14px; }
.pix-codigo { font-family: monospace; font-size: 12px; word-break: break-all; color: var(--texto-fraco); line-height: 1.5; }
.pagamento-valor { font-size: 14.5px; margin-bottom: 20px; }
.pagamento-status { display: flex; align-items: center; gap: 10px; font-size: 14px; margin-bottom: 14px; }
.status-ponto { width: 9px; height: 9px; border-radius: 50%; background: var(--acento); flex-shrink: 0; animation: pulsar-status 1.6s ease-in-out infinite; }
@keyframes pulsar-status { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.pagamento-ajuda { font-size: 12.5px; color: var(--texto-fraco); }

/* sucesso / erro */
.sucesso, .erro-estado { text-align: left; }
.sucesso-rotulo { display: inline-block; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sucesso); margin-bottom: 14px; font-weight: 600; }
.sucesso h2, .erro-estado h2 { margin-bottom: 10px; }
.erro-estado p { color: var(--texto-fraco); margin-bottom: 20px; }
.sucesso #btn-download { margin-top: 10px; }

/* ---------- faq ---------- */
.faq-secao { padding: 84px 0 100px; position: relative; }
.faq-secao::before { content: ""; position: absolute; inset: 0; background: var(--overlay-secao); z-index: 0; }
.faq-secao .faixa { position: relative; z-index: 1; }
.faq { max-width: 720px; border-top: 1px solid var(--linha); }
.faq-item { border-bottom: 1px solid var(--linha); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; cursor: pointer; font-size: 16px; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icone { font-family: var(--serif); font-size: 20px; color: var(--dourado); transition: transform 0.2s ease; }
.faq-item[open] .faq-icone { transform: rotate(45deg); }
.faq-conteudo p { padding: 0 0 22px; color: var(--texto-fraco); font-size: 14.5px; max-width: 58ch; }

/* ---------- rodapé ---------- */
.rodape { border-top: 1px solid var(--linha); padding: 28px 0; position: relative; }
.rodape::before { content: ""; position: absolute; inset: 0; background: var(--overlay-secao); z-index: 0; }
.rodape-faixa { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--texto-fraco); position: relative; z-index: 1; }
.rodape span:first-child { font-family: var(--serif); color: var(--texto); font-size: 15px; }

/* ---------- reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.7s cubic-bezier(.16,1,.3,1), transform 0.7s cubic-bezier(.16,1,.3,1); }
[data-reveal].em-vista { opacity: 1; transform: none; }

/* ---------- responsivo ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-imagem-moldura { max-width: 360px; }
  .passos { grid-template-columns: 1fr 1fr; }
  .passo { border-right: none; border-bottom: 1px solid var(--linha); padding-bottom: 22px; margin-bottom: 4px; }
  .passo:nth-child(odd) { border-right: 1px solid var(--linha); padding-right: 18px; }
  .ancora-comparacao { grid-template-columns: 1fr; }
  .ancora-seta { transform: rotate(90deg); }
  .depoimentos { grid-template-columns: 1fr; }
  .campo-grupo { grid-template-columns: 1fr; }
  .wizard-palco { padding: 28px 22px 26px; }
}
@media (max-width: 560px) {
  .topo-cta { font-size: 13px; }
  .hero { padding: 48px 0 40px; }
  .ancora, .problema, .como, .prova { padding: 56px 0; }
}

/* ---------- movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { transition: opacity 0.15s ease; transform: none; opacity: 1; }
  .glifo-icone, .glifo-brilho { animation: none !important; opacity: 0.85; transform: none; }
  .status-ponto { animation: none; opacity: 1; }
  .botao, .ancora-cartao, .depoimento { transition: none; }
}
