/* ==========================================================================
   Caminho Sapiencial — folha de estilo única do site
   Tokens visuais compartilhados por todas as páginas do funil.
   ========================================================================== */

:root{
  color-scheme: light;

  --bg:          #FBFAF7;
  --surface:     #FFFFFF;
  --surface-alt: #F4F1EA;
  --ink:         #1C1F26;
  --ink-soft:    #4A5160;
  --line:        #E3DFD6;
  --accent:      #7A5C1E;
  --accent-ink:  #FFFFFF;
  --accent-soft: #F5EDDC;
  --focus:       #1B4B8F;
  --alerta-bg:   #FFF8E1;
  --alerta-line: #E0C067;

  --fonte-titulo: Georgia, "Times New Roman", "Noto Serif", serif;
  --fonte-texto:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --largura-leitura: 720px;
  --largura-site:    1040px;
  --raio: 8px;
}

*,*::before,*::after{ box-sizing: border-box; }

html{ -webkit-text-size-adjust: 100%; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--fonte-texto);
  font-size: 17px;
  line-height: 1.65;
}

img{ max-width: 100%; height: auto; }

a{ color: var(--focus); }
a:hover{ text-decoration: none; }

:focus-visible{
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 3px;
}

h1,h2,h3{
  font-family: var(--fonte-titulo);
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 .6em;
  font-weight: 700;
}
h1{ font-size: clamp(1.7rem, 5vw, 2.5rem); }
h2{ font-size: clamp(1.35rem, 3.6vw, 1.8rem); margin-top: 2.2em; }
h3{ font-size: 1.1rem; margin-top: 1.8em; }

p, li{ color: var(--ink-soft); }
p{ margin: 0 0 1.1em; }

strong{ color: var(--ink); }

/* ---------- Estrutura ---------- */

.container{
  width: 100%;
  max-width: var(--largura-site);
  margin-inline: auto;
  padding-inline: 20px;
}

.leitura{ max-width: var(--largura-leitura); }

.secao{ padding-block: 2.6rem; }

.cartao{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--raio);
  padding: 1.4rem 1.3rem;
}

/* ---------- Placeholder de dado pendente ---------- */

.ph{
  background: var(--alerta-bg);
  border-bottom: 2px solid var(--alerta-line);
  padding: 0 .25em;
  font-weight: 600;
  color: #6B4E00;
  /* Sem nowrap: placeholders longos precisam quebrar linha, senão
     estouram a largura da página no celular. */
  overflow-wrap: anywhere;
}

code{
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: .1em .35em;
  font-size: .92em;
  overflow-wrap: anywhere;
}

/* ---------- Barra superior ---------- */

.topo{
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.topo__interno{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem 1.4rem;
  padding-block: .85rem;
}
.marca{
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.topo nav{ display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; }
.topo nav a{
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .92rem;
}
.topo nav a:hover,
.topo nav a[aria-current="page"]{
  color: var(--accent);
  text-decoration: underline;
}

/* ---------- Hero ---------- */

.hero{
  background: var(--surface-alt);
  border-bottom: 1px solid var(--line);
  padding-block: 3rem;
}
.hero .tipo{
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: .8rem;
}
.hero p.sub{ font-size: 1.08rem; }

/* ---------- Listas ---------- */

.lista-limpa{ list-style: none; padding: 0; margin: 0 0 1.2em; }
.lista-limpa li{
  padding: .55rem 0 .55rem 1.6rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.lista-limpa li:last-child{ border-bottom: 0; }
.lista-limpa li::before{
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.grade{
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* ---------- Bloco de compra ---------- */

.compra{
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: var(--raio);
  padding: 1.6rem 1.3rem;
}
.compra dl{ margin: 0 0 1.4rem; }
.compra dt{
  font-weight: 700;
  color: var(--ink);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: 1rem;
}
.compra dt:first-child{ margin-top: 0; }
.compra dd{ margin: .3rem 0 0; color: var(--ink-soft); }

.preco{
  font-family: var(--fonte-titulo);
  font-size: 2rem;
  color: var(--ink);
  font-weight: 700;
}

.botao{
  display: block;
  width: 100%;
  text-align: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 1.05rem;
  font-weight: 700;
  font-family: var(--fonte-texto);
  padding: 1rem 1.2rem;
  border: 0;
  border-radius: var(--raio);
  text-decoration: none;
  cursor: pointer;
}
.botao:hover{ background: #63490F; }

.nota-botao{
  font-size: .87rem;
  margin: .8rem 0 0;
  text-align: center;
}

/* ---------- Aviso / disclaimer ---------- */

.aviso{
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--raio) var(--raio) 0;
  padding: 1.1rem 1.2rem;
}
.aviso h2, .aviso h3{ margin-top: 0; }
.aviso p:last-child, .aviso ul:last-child{ margin-bottom: 0; }

/* ---------- FAQ ---------- */

details{
  border-bottom: 1px solid var(--line);
  padding: .9rem 0;
}
summary{
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style-position: outside;
}
details p{ margin: .7rem 0 0; }

/* ---------- Documentos legais ---------- */

.doc{ padding-block: 2.4rem 3rem; }
.doc .atualizado{
  font-size: .88rem;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}
.doc ol{ padding-left: 1.3rem; }
.doc ol > li{ margin-bottom: .5rem; }
.doc table{
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
  margin-bottom: 1.4em;
}
.doc th, .doc td{
  border: 1px solid var(--line);
  padding: .6rem .7rem;
  text-align: left;
  vertical-align: top;
}
.doc th{ background: var(--surface-alt); color: var(--ink); }
.rolagem{ overflow-x: auto; }

/* ---------- Rodapé ---------- */

.rodape{
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
  padding-block: 2.2rem;
  margin-top: 3rem;
  font-size: .92rem;
}
.rodape nav{
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.4rem;
  margin-bottom: 1.3rem;
}
.rodape nav a{ color: var(--focus); }
.rodape p{ margin: 0 0 .8rem; font-size: .88rem; }
.rodape .legal{ color: var(--ink-soft); }
.rodape .copy{
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-top: 1.2rem;
  margin-bottom: 0;
}

/* ---------- Utilitários ---------- */

.pular{
  position: absolute;
  left: -9999px;
}
.pular:focus{
  left: 12px; top: 12px;
  position: fixed;
  z-index: 99;
  background: var(--surface);
  padding: .7rem 1rem;
  border: 2px solid var(--focus);
  border-radius: var(--raio);
}

@media (max-width: 400px){
  body{ font-size: 16px; }
  .container{ padding-inline: 16px; }
}

@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Quiz — "Por onde começar"
   ========================================================================== */

.quiz{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--raio);
  padding: 1.5rem 1.3rem 1.7rem;
}

.quiz__barra{
  height: 6px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: .6rem;
}
.quiz__barra span{
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 99px;
  transition: width .25s ease;
}
.quiz__contador{
  font-size: .82rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 700;
  margin: 0 0 1.4rem;
}

.quiz__passo[hidden]{ display: none !important; }

.quiz fieldset{
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.quiz legend{
  font-family: var(--fonte-titulo);
  font-size: clamp(1.15rem, 3.2vw, 1.45rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  padding: 0;
  margin-bottom: 1.1rem;
}
.quiz .ajuda{
  font-size: .92rem;
  margin: -.7rem 0 1.1rem;
}

.opcoes{
  display: grid;
  gap: .6rem;
  margin-bottom: 1.5rem;
}
.opcao{
  display: block;
  position: relative;
  border: 2px solid var(--line);
  border-radius: var(--raio);
  padding: .9rem 1rem .9rem 2.9rem;
  cursor: pointer;
  background: var(--surface);
  color: var(--ink);
  line-height: 1.45;
}
.opcao:hover{ border-color: var(--accent); background: var(--accent-soft); }
.opcao input{
  position: absolute;
  left: 1rem;
  top: 1.05rem;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
}
.opcao:has(input:checked){
  border-color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
}
.opcao:has(input:focus-visible){
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.opcao small{
  display: block;
  font-weight: 400;
  color: var(--ink-soft);
  font-size: .88rem;
  margin-top: .15rem;
}

.quiz__acoes{
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  align-items: center;
}
.botao--secundario{
  display: inline-block;
  width: auto;
  background: var(--surface);
  color: var(--ink);
  border: 2px solid var(--line);
  font-weight: 600;
  font-size: .95rem;
  padding: .7rem 1.2rem;
  border-radius: var(--raio);
  cursor: pointer;
  text-decoration: none;
  font-family: var(--fonte-texto);
}
.botao--secundario:hover{ border-color: var(--accent); background: var(--accent-soft); }

.botao--avancar{
  width: auto;
  min-width: 190px;
  padding: .8rem 1.5rem;
  font-size: 1rem;
  border: 2px solid var(--accent);
}
.botao--avancar[disabled]{
  background: var(--line);
  border-color: var(--line);
  color: #6E6A61;
  cursor: not-allowed;
}

/* ---------- Resultado ---------- */

.resultado{
  background: var(--accent-soft);
  border: 2px solid var(--accent);
  border-radius: var(--raio);
  padding: 1.5rem 1.3rem;
  margin-bottom: 2rem;
}
.resultado h2{ margin-top: 0; }
.resultado dl{ margin: 0; }
.resultado dt{
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 700;
  color: var(--accent);
  margin-top: 1.1rem;
}
.resultado dt:first-child{ margin-top: 0; }
.resultado dd{ margin: .25rem 0 0; color: var(--ink); }
.resultado ol{ margin: .4rem 0 0; padding-left: 1.2rem; }
.resultado ol li{ color: var(--ink); margin-bottom: .25rem; }

.nota-privacidade{
  font-size: .88rem;
  color: var(--ink-soft);
  border-left: 3px solid var(--line);
  padding-left: .9rem;
  margin-top: 1.6rem;
}

@media (prefers-reduced-motion: reduce){
  .quiz__barra span{ transition: none; }
}
