/* Páginas de conteúdo (geradas por site/gen). Complementa /styles.css. */

/* ---------- navegação das seções (2ª linha do header, rola no celular) ---------- */
.nav-conteudo { border-top: 1px solid var(--line); }
.nav-conteudo .container {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scrollbar-width: none;
  height: 44px;
  align-items: center;
}
.nav-conteudo .container::-webkit-scrollbar { display: none; }
.nav-conteudo a { color: var(--ink); font-size: 14px; font-weight: 500; white-space: nowrap; }
.nav-conteudo a:hover { color: var(--teal); text-decoration: none; }
.nav-conteudo a[aria-current="page"] { color: var(--indigo); box-shadow: inset 0 -2px 0 var(--gold); padding-bottom: 10px; margin-bottom: -10px; }

/* ---------- artigo ---------- */
.conteudo { padding: 28px 0 72px; }
.artigo { max-width: 780px; }
.artigo.hub { max-width: var(--maxw); }
.migalhas { font-size: 13px; color: var(--muted); margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.migalhas .sep { color: var(--line); }
.migalhas [aria-current] { color: var(--ink); }
.artigo h1 { font-size: clamp(28px, 4.2vw, 40px); margin-bottom: 12px; }
.meta-artigo { font-size: 14px; margin-bottom: 24px; }
.hero-artigo { margin: 0 0 28px; }
.hero-artigo img { width: 100%; height: auto; border-radius: var(--radius); background: #fff; display: block; }

.texto { font-size: 17px; line-height: 1.75; }
.texto p, .texto li { color: var(--ink); }
.texto h2 { font-size: clamp(22px, 3vw, 27px); margin: 1.8em 0 0.6em; }
.texto h3 { font-size: 19px; margin: 1.5em 0 0.5em; }
.texto ul, .texto ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.texto li { margin-bottom: 0.35em; }
.texto strong { color: var(--indigo); }
.texto blockquote {
  margin: 1.4em 0;
  padding: 14px 20px;
  border-left: 4px solid var(--gold);
  background: var(--bg-alt);
  border-radius: 0 12px 12px 0;
}
.texto blockquote p:last-child { margin-bottom: 0; }
.texto figure { margin: 1.6em 0; text-align: center; }
.texto img { max-width: 100%; height: auto; border-radius: 12px; }
.texto img.print-app {
  max-width: 300px;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.tabela { overflow-x: auto; margin: 1.4em 0; border: 1px solid var(--line); border-radius: 12px; }
.tabela table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.5; }
.tabela th, .tabela td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.tabela th { background: var(--indigo); color: #fff; font-weight: 600; white-space: nowrap; }
.tabela tr:last-child td { border-bottom: 0; }
.tabela tr:nth-child(even) td { background: var(--bg-alt); }

/* ---------- simulação antes / depois ---------- */
.simulacao { margin: 0 auto 32px; max-width: 460px; }
.sim-quadro {
  --pos: 50%;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 896 / 1200;
  background: #dfe5ea;
}
.sim-quadro img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sim-depois { clip-path: inset(0 0 0 var(--pos)); }
.sim-linha {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 3px; margin-left: -1.5px; background: var(--gold); pointer-events: none;
}
.sim-linha::after {
  content: "‹ ›";
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gold); color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 18px; letter-spacing: 2px;
  border: 3px solid #fff;
}
.sim-rot {
  position: absolute; top: 12px;
  padding: 4px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
  color: #fff; background: rgba(22, 38, 58, 0.72); pointer-events: none;
}
.sim-rot-antes { left: 12px; }
.sim-rot-depois { right: 12px; background: rgba(203, 163, 97, 0.92); color: var(--indigo-700); }
.sim-controle {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y;
}
.sim-controle:focus-visible + .sim-linha, .sim-quadro:focus-within .sim-linha::after { outline: 3px solid var(--teal); }
.simulacao figcaption { text-align: center; font-size: 13px; color: var(--muted); margin-top: 10px; }

/* ---------- FAQ, aviso, CTA, termos, relacionados ---------- */
.faq { margin-top: 48px; }
.faq h2, .termos h2, .relacionados h2 { font-size: 22px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; background: #fff; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--indigo); }
.faq details p { margin: 10px 0 0; color: var(--ink); }
.aviso-simulacao {
  margin: 40px 0 0; padding: 16px 20px; font-size: 14px;
  border: 1px solid var(--gold-soft); background: #fbf6ec; border-radius: 12px; color: var(--ink);
}
.cta-conteudo {
  margin: 40px 0; padding: 32px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--indigo), var(--teal)); color: #fff; text-align: center;
}
.cta-conteudo h2 { color: #fff; font-size: 24px; }
.cta-conteudo p { color: rgba(255,255,255,0.88); max-width: 560px; margin: 0 auto 18px; }
.cta-conteudo .cta-stores { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.cta-conteudo .cta-sub { font-size: 14px; margin-bottom: 0; }
.cta-conteudo .cta-sub a { color: var(--gold-soft); text-decoration: underline; }
.termos { margin-top: 36px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-link {
  padding: 6px 14px; border-radius: 999px; font-size: 14px;
  border: 1px solid var(--line); background: #fff; color: var(--indigo);
}
.chip-link:hover { border-color: var(--teal); text-decoration: none; }
.relacionados { margin-top: 40px; }

/* ---------- cartões e hubs ---------- */
.grade-cartoes { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.cartao {
  display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px;
  background: #fff; overflow: hidden; color: var(--ink); transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cartao:hover { transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; }
.cartao img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: 72% 50%; background: var(--bg-alt); }
.cartao-texto { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.cartao-texto strong { font-family: "Poppins", sans-serif; color: var(--indigo); font-weight: 600; line-height: 1.3; }
.cartao-texto span { font-size: 14px; color: var(--muted); line-height: 1.5; }
.hub-topo { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; margin-bottom: 36px; }
.hub-topo img { width: 100%; height: auto; border-radius: var(--radius); }
.hub-intro { font-size: 18px; }
.letras { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; }
.letras a {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; font-weight: 600; color: var(--indigo);
}
.letras a:hover { border-color: var(--teal); text-decoration: none; }
.grupo-letra { margin-bottom: 28px; scroll-margin-top: 130px; }
.grupo-letra h2 { font-size: 24px; color: var(--gold); border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.lista-termos { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.lista-termos a { font-weight: 600; font-size: 17px; }
.lista-termos span { display: block; color: var(--muted); font-size: 14px; }

@media (max-width: 760px) {
  .hub-topo { grid-template-columns: 1fr; }
  .hub-topo img { order: -1; }
  .texto { font-size: 16px; }
  .cta-conteudo { padding: 24px 18px; }
  .texto img.print-app { max-width: 240px; }
}
