/* Protocolo Fartura · quiz v1. Identidade dos slides e PDFs do produto (produto/ebooks/estilo.css). */
:root {
  --papel: #F7F2E9;
  --cartao: #FFFDF8;
  --tinta: #2A2520;
  --suave: #5E564E;
  --linha: #E4DACB;
  --salvia: #55704B;
  --salvia-clara: #E4EBDC;
  --terra: #A94E27;
  --terra-clara: #F6E4D8;
  --pendente: #C2410C;
  --serifa: Georgia, "Noto Serif", "Droid Serif", "Times New Roman", serif;
  --texto: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --raio: 14px;
  --largura: 34rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--texto);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; display: block; }
strong { font-weight: 700; }
button, input { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--salvia); outline-offset: 3px; border-radius: 6px; }
h1:focus, h1:focus-visible { outline: none; }

.so-leitor {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.pular { position: absolute; left: -999px; top: 8px; background: var(--tinta); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 20; }
.pular:focus { left: 8px; }

/* ---------- prévia ---------- */
.aviso-previa {
  background: var(--pendente); color: #fff; text-align: center;
  font-size: .8125rem; font-weight: 600; padding: 6px 12px;
}
.pendente {
  border: 2px dashed var(--pendente); color: var(--pendente); background: #FFF4EC;
  border-radius: 10px; padding: 10px 12px; font-size: .9375rem; font-weight: 600; margin: 16px 0;
}

/* ---------- topo ---------- */
.topo {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 8px;
  max-width: var(--largura); margin: 0 auto; padding: 6px 16px;
  background: var(--papel);
  min-height: 56px;
}
.voltar {
  flex: 0 0 44px; width: 44px; height: 44px; margin-left: -10px;
  display: grid; place-items: center;
  background: none; border: 0; border-radius: 50%; color: var(--suave); cursor: pointer;
}
.voltar[hidden] { display: none; }
.progresso { flex: 1; height: 4px; background: var(--linha); border-radius: 4px; overflow: hidden; }
.progresso-fill {
  display: block; height: 100%; background: var(--salvia);
  transform-origin: left center; transform: scaleX(0);
  transition: transform .35s ease;
}
.sem-topo .topo { display: none; }

/* ---------- tela ---------- */
.tela { max-width: var(--largura); margin: 0 auto; padding: 12px 20px 48px; }
.tela:focus { outline: none; }
.tela > p { margin: 0 0 16px; }

h1, h2 { font-family: var(--serifa); font-weight: 700; letter-spacing: -.01em; color: var(--tinta); text-wrap: balance; }

.selo {
  display: inline-block; margin: 8px 0 0;
  background: var(--salvia-clara); color: var(--salvia);
  font-family: var(--serifa); font-size: .9375rem;
  padding: 4px 12px; border-radius: 6px;
}

.btn {
  display: flex; align-items: center; justify-content: center; text-align: center;
  width: 100%; min-height: 56px; padding: 14px 20px; margin: 24px 0 0;
  border: 0; border-radius: var(--raio); cursor: pointer;
  font-weight: 700; font-size: 1.0625rem; line-height: 1.25; text-decoration: none;
  transition: transform .12s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-principal { background: var(--tinta); color: var(--papel); }
.btn-cta {
  background: var(--terra); color: #fff; font-size: 1.125rem;
  box-shadow: 0 6px 0 -2px #7E3A1D;
}

/* ---------- capa ---------- */
.tela-capa { padding-top: 20px; }
.capa-titulo { font-size: clamp(2.125rem, 9vw, 2.875rem); line-height: 1.06; margin: 20px 0 16px; }
.capa-sub { font-size: 1.1875rem; color: var(--suave); }
.capa-sub strong { color: var(--terra); font-family: var(--serifa); font-style: italic; font-weight: 700; }
.linha-fina { text-align: center; font-size: .875rem; color: var(--suave); margin-top: 12px !important; }

/* ---------- perguntas ---------- */
.pergunta { font-size: clamp(1.5rem, 6.4vw, 1.875rem); line-height: 1.15; margin: 12px 0 8px; }
.pergunta-sub { color: var(--suave); margin: 0 0 4px !important; }
.opcoes { display: grid; gap: 10px; margin-top: 20px; }
.opcao {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px;
  padding: 14px 16px; text-align: left; cursor: pointer;
  background: var(--cartao); border: 1.5px solid var(--linha); border-radius: var(--raio);
  line-height: 1.35;
  transition: border-color .15s ease, background-color .15s ease;
}
.marca {
  flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid #8A7D6E; background: #fff; position: relative;
}
.opcao.marcada { background: var(--salvia-clara); border-color: var(--salvia); }
.opcao.marcada .marca { border-color: var(--salvia); background: var(--salvia); }
.opcao.marcada .marca::after {
  content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px;
  border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.opcao-frase .opcao-txt { font-family: var(--serifa); font-size: 1.0625rem; }

/* ---------- recado (tela 6) ---------- */
.recado-foto { width: 100%; height: auto; border-radius: var(--raio); margin: 12px 0 4px; }
.foto-vazia { aspect-ratio: 4 / 5; display: grid; place-items: center; text-align: center; max-height: 280px; }
.recado { margin: 20px 0 0; padding: 0; position: relative; }
.recado::before {
  content: "“"; display: block; font-family: var(--serifa); color: var(--terra);
  font-size: 4.5rem; line-height: .6; height: 32px;
}
.recado p { font-family: var(--serifa); font-size: 1.25rem; line-height: 1.5; margin: 0; }
.recado em { color: var(--terra); }
.recado footer { margin-top: 14px; font-size: .9375rem; color: var(--suave); font-weight: 600; }
.recado footer::before { content: "— "; }

/* ---------- perfil (tela 12) ---------- */
.perfil { margin-top: 16px; }
.campo { margin-bottom: 16px; }
.campo label { display: block; font-weight: 600; margin-bottom: 6px; }
.campo input {
  width: 100%; min-height: 52px; padding: 12px 14px; font-size: 1.125rem;
  background: var(--cartao); border: 1.5px solid var(--linha); border-radius: 12px;
}
.campo input:focus-visible { border-color: var(--salvia); outline-offset: 1px; }
.campo input[aria-invalid="true"] { border-color: var(--terra); }
.erro { color: var(--terra); font-size: .9375rem; margin: 6px 0 0; font-weight: 600; }
.privado { font-size: .875rem; color: var(--suave); margin: 4px 0 0; }

/* ---------- mecanismo (tela 13) ---------- */
.titulo-break { font-size: clamp(1.625rem, 7vw, 2.125rem); line-height: 1.12; margin: 16px 0 16px; }
.destaque { color: var(--terra); font-style: italic; }
.estudo {
  border-top: 1px solid var(--linha); border-bottom: 1px solid var(--linha);
  padding: 16px 0; margin: 20px 0 0;
}
.estudo p { margin: 0; }
.estudo .fonte { margin-top: 8px; font-size: .875rem; color: var(--suave); font-style: italic; }

/* ---------- análise (tela 16) ---------- */
.tela-analise { padding-top: 40px; }
.analise-barra { height: 8px; background: var(--linha); border-radius: 8px; overflow: hidden; }
.analise-fill {
  display: block; height: 100%; background: var(--salvia);
  transform-origin: left; transform: scaleX(0); transition: transform 5.4s linear;
}
.analise-fill.cheia { transform: scaleX(1); }
.analise-linhas { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.analise-linhas li {
  display: flex; gap: 10px; align-items: baseline; color: var(--suave);
  animation: entrar .4s ease both;
}
.analise-linhas li::before { content: ""; flex: 0 0 8px; height: 8px; border-radius: 50%; background: var(--salvia); transform: translateY(-2px); }
.analise-linhas li.pronto { color: var(--tinta); font-family: var(--serifa); font-size: 1.25rem; }
.analise-linhas li.pronto::before { background: var(--terra); }
@keyframes entrar { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- resultado (tela 17) ---------- */
.tela-resultado { padding-top: 24px; }
.resultado-titulo { font-size: clamp(1.875rem, 8vw, 2.5rem); line-height: 1.08; margin: 14px 0 4px; }
.resultado-nivel { font-family: var(--serifa); font-size: 1.25rem; color: var(--suave); margin: 0 0 12px !important; }
.resultado-nivel strong { color: var(--terra); }
.resultado-leve { color: var(--suave); font-style: italic; }

/* assinatura: a escala do modo proteção */
.escala { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 4px 0 20px; }
.escala-seg {
  position: relative; height: 10px; background: var(--linha);
  border-radius: 3px; margin-bottom: 26px;
}
.escala-seg:first-child { border-radius: 10px 3px 3px 10px; }
.escala-seg:last-child { border-radius: 3px 10px 10px 3px; }
.escala-seg.passou { background: #D9A58A; }
.escala-seg.atual { background: var(--terra); }
.escala-rotulo {
  position: absolute; top: 16px; left: 0; right: 0; text-align: center;
  font-size: .8125rem; color: var(--suave);
}
.escala-seg.atual .escala-rotulo { color: var(--terra); font-weight: 700; }

.resultado-h2 { font-size: 1.25rem; line-height: 1.25; margin: 8px 0 10px; }
.sinais { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.sinais li {
  background: var(--cartao); border: 1px solid var(--linha); border-left: 4px solid var(--terra);
  border-radius: 10px; padding: 12px 14px; line-height: 1.45;
}
.sua-frase { background: var(--salvia-clara); border-radius: var(--raio); padding: 16px 18px; margin: 0 0 20px; }
.sua-frase p { margin: 0; }
.sua-frase-rotulo { font-size: .875rem; font-weight: 700; color: var(--salvia); text-transform: uppercase; letter-spacing: .06em; }
.sua-frase-texto { font-family: var(--serifa); font-size: 1.25rem; margin: 4px 0 8px !important; }
.passagem { font-weight: 600; }

.vsl {
  position: relative; aspect-ratio: 16 / 9; margin: 8px -20px 0; background: #1E1A16; overflow: hidden;
}
.vsl-midia { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; }
.vsl-som {
  position: absolute; inset: 0; display: grid; place-items: center; cursor: pointer;
  background: rgba(30, 26, 22, .35); border: 0; color: #fff; font-weight: 700;
}
.vsl-som span { background: var(--terra); padding: 12px 18px; border-radius: 999px; box-shadow: 0 4px 18px rgba(0,0,0,.3); }
.vsl-vazia { display: grid; place-items: center; text-align: center; margin: 8px 0 0; color: var(--pendente); }

/* fachada do YouTube (vertical). O iframe sobra 18% em cima e embaixo: o corte esconde o nome e a foto do canal */
.vsl-yt {
  position: relative; overflow: hidden; aspect-ratio: 9 / 16; background: #1E1A16; border-radius: var(--raio);
  width: min(100%, calc((100svh - 32px) * 9 / 16)); margin: 8px auto 20px;
}
.vsl-yt iframe { position: absolute; left: 0; top: -18%; width: 100%; height: 136%; max-width: none; border: 0; }
.vsl-capa { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.vsl-capa.pronto { pointer-events: none; } /* o toque passa pro player do YouTube que está embaixo */
.vsl-capa img { width: 100%; height: 100%; object-fit: cover; }
.vsl-capa::before { /* escurece a foto pra chamada e o play saltarem */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(rgba(20, 16, 12, .62), rgba(20, 16, 12, .3) 55%, rgba(20, 16, 12, .5));
}
.vsl-chamada {
  position: absolute; left: 22px; right: 22px; bottom: calc(50% + 66px); margin: 0;
  color: #fff; font-family: var(--serifa); font-weight: 700; font-size: clamp(1.5rem, 7vw, 1.875rem); line-height: 1.15;
  text-align: center; text-wrap: balance; text-shadow: 0 2px 14px rgba(0, 0, 0, .55);
}
.vsl-chamada span { color: #FFD400; font-style: italic; }
.vsl-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; padding-left: 4px;
  background: var(--terra); color: #fff; box-shadow: 0 6px 24px rgba(0, 0, 0, .35), 0 0 0 9px rgba(255, 255, 255, .3);
}

.cta-oferta { margin-top: 4px; }
.cta-oferta[hidden] { display: none; }
.cta-garantias { text-align: center; font-size: .875rem; color: var(--suave); margin: 14px 0 0; }
.cta-status { font-size: .875rem; color: var(--pendente); font-weight: 600; margin: 10px 0 0; word-break: break-all; }

.rodape { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--linha); font-size: .8125rem; color: var(--suave); }
.rodape p { margin: 0 0 10px; }

/* hover só onde existe mouse: no toque ele "gruda" na opção da tela seguinte */
@media (hover: hover) {
  .voltar:hover { background: var(--salvia-clara); color: var(--tinta); }
  .btn-principal:hover { background: #3B342E; }
  .btn-cta:hover { background: #963F1D; }
  .opcao:hover { border-color: var(--salvia); }
}

@media (min-width: 40rem) {
  .vsl { margin-left: 0; margin-right: 0; border-radius: var(--raio); }
  .tela { padding-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
