:root {
  --bg: #f6f4ef;
  --papel: #ffffff;
  --tinta: #1c2333;
  --suave: #5b6476;
  --linha: #e2ddd2;
  --pri: #1f3a68;
  --pri-2: #2c5499;
  --acento: #94590f;
  --acento-claro: #fbf1e1;
  --ok: #2f7d4f;
  --perigo: #b53b3b;
  --raio: 14px;
  --sombra: 0 1px 2px rgba(28,35,51,.06), 0 6px 20px rgba(28,35,51,.06);
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--tinta);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}
a { color: var(--pri-2); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .5em; }
h3 { font-size: 1.15rem; }
code { background: #efece5; padding: .1em .35em; border-radius: 5px; font-size: .88em; }
[hidden] { display: none !important; }

/* ---------- Topo ---------- */
.topo {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246,244,239,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linha);
}
.topo-in {
  max-width: 1200px; margin: 0 auto; padding: 12px 16px;
  display: flex; align-items: center; gap: 16px;
}
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--tinta); font-weight: 500; white-space: nowrap; }
.marca b { color: var(--pri); }
.marca-ico {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: var(--pri); color: #fff; font-family: var(--serif); font-weight: 700; font-size: 1.2rem;
}
.abas { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.abas a {
  text-decoration: none; color: var(--suave); padding: 8px 12px; border-radius: 999px;
  font-size: .93rem; font-weight: 500; transition: background .15s, color .15s;
}
.abas a:hover { background: #ebe7dd; color: var(--tinta); }
.abas a.ativo { background: var(--pri); color: #fff; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--linha); border-radius: 8px; font-size: 1.2rem; padding: 4px 10px; cursor: pointer; }

@media (max-width: 1100px) {
  .menu-btn { display: block; }
  .abas { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--linha); padding: 8px 16px 14px; flex-direction: column; }
  .abas.aberto { display: flex; }
}

/* ---------- Layout ---------- */
main { max-width: 1200px; margin: 0 auto; padding: 32px 16px 48px; }

.sobre-titulo { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; font-weight: 600; color: var(--acento); margin: 0 0 8px; }
.lead { color: var(--suave); font-size: 1.05rem; max-width: 70ch; }
.cab-pagina { margin-bottom: 24px; }
.cab-pagina h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); }

.hero { padding: 32px 0 40px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); max-width: 20ch; }
.hero-acoes { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

.grade-servicos { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.card-servico {
  background: var(--papel); border: 1px solid var(--linha); border-radius: var(--raio);
  padding: 22px; text-decoration: none; color: inherit; box-shadow: var(--sombra);
  transition: transform .15s, border-color .15s;
}
.card-servico:hover { transform: translateY(-3px); border-color: var(--pri-2); }
.card-servico .num { font-family: var(--serif); color: var(--acento); font-weight: 700; font-size: 1.4rem; }
.card-servico h2 { margin-top: 8px; font-size: 1.15rem; }
.card-servico p { color: var(--suave); margin: 0; font-size: .95rem; }

.painel {
  background: var(--papel); border: 1px solid var(--linha); border-radius: var(--raio);
  padding: 22px; box-shadow: var(--sombra); margin-bottom: 18px;
}
.painel-cab { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.duas-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.duas-col.iguais { align-items: stretch; }
@media (max-width: 900px) { .duas-col { grid-template-columns: 1fr; } }

/* ---------- Formulários ---------- */
label { display: block; font-size: .88rem; font-weight: 500; margin-bottom: 12px; color: var(--tinta); }
label small { color: var(--suave); font-weight: 400; }
input[type=text], input[type=url], input[type=number], input[type=date], input[type=search], select, textarea {
  display: block; width: 100%; margin-top: 5px; padding: 10px 12px;
  border: 1px solid #d6d0c3; border-radius: 9px; background: #fdfcfa;
  font: inherit; font-size: .95rem; color: var(--tinta);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--pri-2); outline-offset: 0; border-color: transparent; }
textarea { resize: vertical; }
textarea.mono { font-family: ui-monospace, Consolas, monospace; font-size: .85rem; }
fieldset { border: none; padding: 0; margin: 0 0 14px; }
legend { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; margin-bottom: 10px; }
.linha { display: flex; gap: 12px; flex-wrap: wrap; }
.linha > label { flex: 1 1 130px; }
.radios { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.radios label, .check { display: flex; align-items: center; gap: 7px; font-weight: 400; margin-bottom: 8px; cursor: pointer; }
.check.alto { align-self: flex-end; margin-bottom: 22px; }

.autor-linha { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: end; margin-bottom: 4px; }
.autor-linha label { margin-bottom: 8px; }
.remover { background: none; border: 1px solid var(--linha); border-radius: 8px; width: 38px; height: 41px; margin-bottom: 8px; cursor: pointer; color: var(--suave); font-size: 1.1rem; }
.remover:hover { color: var(--perigo); border-color: var(--perigo); }
@media (max-width: 480px) { .autor-linha { grid-template-columns: 1fr auto; } .autor-linha label:first-child { grid-column: 1 / -1; } }

.seg { display: inline-flex; background: #efece5; border-radius: 999px; padding: 4px; margin-bottom: 18px; }
.seg-btn { border: none; background: none; padding: 8px 18px; border-radius: 999px; font: inherit; font-weight: 500; cursor: pointer; color: var(--suave); }
.seg-btn.ativo { background: var(--papel); color: var(--tinta); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 20px; border-radius: 999px; font: inherit; font-weight: 600; font-size: .95rem;
  text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background .15s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn-pri { background: var(--pri); color: #fff; }
.btn-pri:hover { background: var(--pri-2); }
.btn-sec { background: transparent; color: var(--pri); border-color: #c9c2b3; }
.btn-sec:hover { background: #ebe7dd; }
.btn-link { background: none; border: none; padding: 4px 0; font: inherit; font-size: .9rem; color: var(--pri-2); cursor: pointer; font-weight: 500; }
.btn-link:hover { text-decoration: underline; }
.btn-link.perigo { color: var(--perigo); }
.acoes { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.mini-acoes { display: flex; gap: 14px; flex-wrap: wrap; }
.dica { color: var(--suave); font-size: .85rem; margin: 4px 0 12px; }
.nota { color: var(--suave); font-size: .9rem; margin-top: 20px; }

/* ---------- Referências ---------- */
.resultado { border-color: #d9c39c; background: linear-gradient(180deg, #fffdf8, #fff); }
.ref-saida {
  font-family: "Times New Roman", Times, serif; font-size: 1.08rem; line-height: 1.5;
  padding: 16px; background: var(--acento-claro); border-radius: 10px; min-height: 70px;
  word-break: break-word;
}
.ref-saida .vazio { color: var(--suave); font-family: var(--sans); font-size: .95rem; }
.avisos { margin: 10px 0 0; padding-left: 18px; color: #8a5a12; font-size: .85rem; }
.avisos:empty { display: none; }
.contador { display: inline-grid; place-items: center; min-width: 26px; height: 22px; border-radius: 999px; background: var(--pri); color: #fff; font-family: var(--sans); font-size: .78rem; padding: 0 7px; vertical-align: middle; }
.lista-refs { padding-left: 0; list-style: none; margin: 0; }
.lista-refs li {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--linha);
  font-family: "Times New Roman", Times, serif; font-size: 1rem;
}
.lista-refs li > span { flex: 1; word-break: break-word; }
.lista-refs .vazio { font-family: var(--sans); color: var(--suave); font-size: .9rem; }
.lista-refs .ic { background: none; border: none; cursor: pointer; color: var(--suave); font-size: .82rem; font-family: var(--sans); padding: 2px 4px; }
.lista-refs .ic:hover { color: var(--pri-2); }
.modelos summary { cursor: pointer; font-weight: 600; }
.modelos p { font-size: .92rem; margin: 10px 0 0; }

/* ---------- Normas ---------- */
.grade-regras { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.regra { background: #faf8f3; border: 1px solid var(--linha); border-radius: 10px; padding: 12px 14px; }
.regra b { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--suave); font-weight: 600; }
.regra span { font-weight: 600; }
.busca-normas { margin: 26px 0 16px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.chip { border: 1px solid #cfc8b9; background: var(--papel); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: .87rem; cursor: pointer; color: var(--suave); }
.chip.ativo { background: var(--tinta); color: #fff; border-color: var(--tinta); }
.grade-normas { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
@media (max-width: 400px) { .grade-normas { grid-template-columns: 1fr; } }
.norma { margin: 0; display: flex; flex-direction: column; }
.norma .cod { font-family: var(--serif); font-weight: 700; color: var(--pri); font-size: 1.25rem; }
.norma .cat { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--acento); font-weight: 600; }
.norma h3 { font-size: 1.02rem; font-family: var(--sans); font-weight: 600; margin: 4px 0 8px; }
.norma p { color: var(--suave); font-size: .92rem; margin: 0 0 10px; }
.norma ul { margin: 0; padding-left: 18px; font-size: .9rem; }
.norma li { margin-bottom: 4px; }
.norma details summary { cursor: pointer; color: var(--pri-2); font-weight: 500; font-size: .9rem; margin-top: auto; }
.norma details[open] summary { margin-bottom: 8px; }
.sem-resultado { color: var(--suave); grid-column: 1 / -1; text-align: center; padding: 30px; }
mark { background: #fde7b4; padding: 0 2px; border-radius: 3px; }

/* ---------- Formatador ---------- */
.formatador { display: grid; grid-template-columns: 390px minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 980px) { .formatador { grid-template-columns: minmax(0, 1fr); } }
.editor-col { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow-y: auto; }
@media (max-width: 980px) { .editor-col { position: static; max-height: none; } }
.editor-col details { border-bottom: 1px solid var(--linha); padding: 10px 0; }
.editor-col summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.editor-col details[open] summary { margin-bottom: 10px; }
.externos { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--linha); font-size: .9rem; }
.externos p { margin: 0 0 8px; }
.externos a { display: inline-block; margin-right: 14px; font-weight: 600; }
.preview-barra { font-size: .85rem; color: var(--suave); margin-bottom: 10px; }
.preview { background: #d9d4c8; border-radius: var(--raio); padding: 20px; overflow: hidden; }
#docPreview { zoom: var(--zoom, 1); }

/* folhas do documento (tela + impressão) */
.folha {
  width: 21cm; min-height: 29.7cm; margin: 0 auto 20px; background: #fff; color: #000;
  padding: 3cm 2cm 2cm 3cm; box-shadow: 0 4px 18px rgba(0,0,0,.18);
  font-family: var(--doc-fonte, "Times New Roman"), serif; font-size: 12pt; line-height: 1.5;
  display: flex; flex-direction: column;
}
.folha p { margin: 0; text-align: justify; text-indent: 1.25cm; }
.folha .centro { text-align: center; text-indent: 0; }
.folha .maiusc { text-transform: uppercase; }
.folha .neg { font-weight: bold; }
.capa, .rosto { justify-content: space-between; text-align: center; }
.capa p, .rosto p { text-indent: 0; text-align: center; }
.natureza { margin-left: 8cm; text-align: justify !important; font-size: 10pt; line-height: 1.15; }
.natureza p { text-align: justify !important; }
.folha h1.sec, .folha .tit-sem { font-size: 12pt; font-weight: bold; text-transform: uppercase; margin: 0 0 1.5em; font-family: inherit; }
.folha .tit-sem { text-align: center; }
.folha h2.sec { font-size: 12pt; font-weight: normal; text-transform: uppercase; margin: 1.5em 0; font-family: inherit; }
.folha h3.sec { font-size: 12pt; font-weight: bold; margin: 1.5em 0; font-family: inherit; }
.folha blockquote { margin: 1.5em 0 1.5em 4cm; font-size: 10pt; line-height: 1; text-align: justify; }
.folha .resumo-txt { text-indent: 0; }
.folha .kw { text-indent: 0; margin-top: 1.5em; }
.folha .sumario div { display: flex; gap: 6px; }
.folha .sumario .s1 { font-weight: bold; text-transform: uppercase; }
.folha .sumario .s2 { text-transform: uppercase; }
.folha .sumario .s3 { font-weight: bold; }
.folha .sumario .s-num { min-width: 2.2cm; }
.folha .refs-doc p { text-indent: 0; text-align: left; line-height: 1; margin-bottom: 12pt; }
.folha .placeholder { color: #999; font-style: italic; }

/* ---------- Scholar ---------- */
.busca-scholar label.grande { font-size: 1rem; font-weight: 600; }
.busca-scholar label.grande input { font-size: 1.1rem; padding: 14px 16px; }
.grade-dicas { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.ops { padding-left: 18px; margin: 0; }
.ops li { margin-bottom: 8px; font-size: .94rem; }
#sqPreviewUrl { word-break: break-all; margin-top: 12px; }

/* ---------- Enem ---------- */
.enem-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: center;
  background: linear-gradient(135deg, #1f3a68, #2c5499); color: #fff; border-radius: 20px;
  padding: 36px; margin-bottom: 22px;
}
.enem-hero h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.enem-hero .lead { color: #dbe4f5; }
.enem-hero a:not(.btn) { color: #ffd28a; }
.enem-hero .sobre-titulo { color: #ffd28a; }
.enem-hero .btn-pri { background: #ffd28a; color: #1c2333; }
.enem-hero .btn-pri:hover { background: #ffe0aa; }
.enem-hero .btn-sec { color: #fff; border-color: rgba(255,255,255,.5); }
.enem-hero .btn-sec:hover { background: rgba(255,255,255,.1); }
.relogio-face {
  width: 170px; height: 170px; border-radius: 50%; border: 6px solid rgba(255,255,255,.25);
  display: grid; place-content: center; text-align: center; background: rgba(255,255,255,.06);
}
.relogio-face span { font-size: 1.8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.relogio-face small { color: #dbe4f5; }
@media (max-width: 700px) { .enem-hero { grid-template-columns: 1fr; padding: 24px; } .relogio { display: none; } }
.lista-check { list-style: none; padding: 0; }
.lista-check li { padding-left: 28px; position: relative; margin-bottom: 8px; }
.lista-check li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: #e3f1e8; color: var(--ok); display: grid; place-items: center; font-size: .75rem; font-weight: 700; }
.destaque { background: var(--acento-claro); border-color: #ecd6b0; }
.areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.areas div { background: #faf8f3; border: 1px solid var(--linha); border-radius: 10px; padding: 14px; }
.areas b { display: block; font-family: var(--serif); font-size: 1.05rem; }
.areas span { color: var(--suave); font-size: .88rem; }

/* ---------- Rodapé / toast ---------- */
.rodape { text-align: center; color: var(--suave); font-size: .85rem; padding: 24px 16px 40px; border-top: 1px solid var(--linha); }
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--tinta); color: #fff; padding: 10px 20px; border-radius: 999px; font-size: .92rem;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Impressão ---------- */
@page { size: A4; margin: 3cm 2cm 2cm 3cm; }
@media print {
  body { background: #fff; }
  .no-print, .topo, .rodape, .toast { display: none !important; }
  main { padding: 0; max-width: none; }
  .formatador { display: block; }
  .preview { background: none; padding: 0; border-radius: 0; }
  #docPreview { zoom: 1 !important; }
  .folha { width: auto; min-height: 0; padding: 0; margin: 0; box-shadow: none; break-after: page; }
  .folha:last-child { break-after: auto; }
  .capa, .rosto { height: 24.5cm; }
  .painel { box-shadow: none; }
}

/* =========================================================
   MONETIZAÇÃO, PÁGINAS INTERNAS E GUIAS
   ========================================================= */
.abas a.aba-cta { background: var(--acento-claro); color: #8a5a12; border: 1px solid #ecd6b0; }
.abas a.aba-cta:hover { background: #f6e3c3; color: #6d460d; }

.cta-servico {
  margin-top: 28px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: linear-gradient(135deg, #1f3a68, #2c5499); color: #fff; border-radius: 20px; padding: 28px 32px;
}
.cta-servico h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: .3em; }
.cta-servico p { margin: 0; color: #dbe4f5; max-width: 60ch; }
.cta-servico .sobre-titulo { color: #ffd28a; }
.cta-servico .btn-pri { background: #ffd28a; color: #1c2333; }
.cta-servico .btn-pri:hover { background: #ffe0aa; }
.guias-home { margin-top: 20px; }
.lista-guias { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px 20px; }
.lista-guias a { display: block; padding: 8px 0; border-bottom: 1px solid var(--linha); text-decoration: none; font-weight: 500; }
.lista-guias a:hover { color: var(--acento); }

.link-afiliado { display: inline-block; margin-top: 14px; font-size: .9rem; font-weight: 600; text-decoration: none; }
.link-afiliado:hover { text-decoration: underline; }
.mini-cta { margin-top: 18px; padding: 14px; border-radius: 10px; background: var(--acento-claro); border: 1px solid #ecd6b0; font-size: .9rem; }
.mini-cta p { margin: 4px 0; color: var(--suave); }
.bloco-afiliado {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 18px; padding: 16px 18px;
  background: var(--papel); border: 1px dashed #d9c39c; border-radius: var(--raio);
}
.bloco-afiliado > div { flex: 1 1 200px; }
.bloco-afiliado p { margin: 2px 0 0; color: var(--suave); font-size: .9rem; }
.pub-tag { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--suave); border: 1px solid var(--linha); border-radius: 999px; padding: 2px 8px; }

.rodape-links { display: flex; gap: 8px 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }
.rodape-links a { color: var(--tinta); text-decoration: none; font-weight: 500; }
.rodape-links a:hover { text-decoration: underline; }

.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 760px; margin: 0 auto;
  background: var(--papel); border: 1px solid var(--linha); border-radius: var(--raio); box-shadow: 0 10px 40px rgba(28,35,51,.2);
  padding: 16px 18px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; font-size: .9rem;
}
.cookie-banner p { margin: 0; flex: 1 1 320px; }
.cookie-acoes { display: flex; gap: 8px; }
.cookie-acoes .btn { padding: 8px 16px; }

/* Páginas internas */
.conteudo { max-width: 780px; margin: 0 auto; }
.conteudo h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.conteudo h2 { font-size: 1.45rem; margin-top: 1.8em; }
.conteudo h3 { margin-top: 1.4em; }
.conteudo p, .conteudo li { font-size: 1.03rem; }
.conteudo li { margin-bottom: 6px; }
.migalhas { font-size: .85rem; color: var(--suave); margin-bottom: 16px; }
.migalhas a { color: var(--suave); }
.exemplo {
  font-family: "Times New Roman", Times, serif; font-size: 1.06rem; background: var(--acento-claro);
  border-left: 4px solid var(--acento); padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 14px 0; word-break: break-word;
}
.exemplo small { display: block; font-family: var(--sans); color: var(--suave); font-size: .78rem; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .05em; }
.caixa-ferramenta {
  display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: var(--papel); border: 1px solid var(--linha); border-radius: var(--raio); padding: 18px 20px; margin: 26px 0; box-shadow: var(--sombra);
}
.caixa-ferramenta p { margin: 0; flex: 1 1 260px; }
.tabela { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: .95rem; background: var(--papel); }
.tabela th, .tabela td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--linha); vertical-align: top; }
.tabela th { background: #efece5; font-weight: 600; }
.tabela-wrap { overflow-x: auto; }
.faq details { border-bottom: 1px solid var(--linha); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 8px 0 0; }
.relacionados { list-style: none; padding: 0; }
.relacionados a { font-weight: 500; }
.cartoes-guias { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 20px; }
.cartoes-guias a { text-decoration: none; color: inherit; }
.cartoes-guias .painel { height: 100%; margin: 0; transition: border-color .15s, transform .15s; }
.cartoes-guias a:hover .painel { border-color: var(--pri-2); transform: translateY(-2px); }
.cartoes-guias p { color: var(--suave); font-size: .93rem; margin: 0; }

/* Serviço */
.planos { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin: 24px 0; }
.plano { position: relative; background: var(--papel); border: 1px solid var(--linha); border-radius: var(--raio); padding: 24px; box-shadow: var(--sombra); display: flex; flex-direction: column; }
.plano-destaque { border: 2px solid var(--pri); }
.plano .selo { position: absolute; top: -12px; left: 24px; background: var(--pri); color: #fff; font-size: .75rem; font-weight: 600; padding: 3px 12px; border-radius: 999px; }
.plano .preco { font-family: var(--serif); font-size: 1.9rem; font-weight: 700; margin: 4px 0 12px; color: var(--pri); }
.plano .preco small { font-family: var(--sans); font-size: .85rem; color: var(--suave); font-weight: 400; }
.plano ul { padding-left: 18px; margin: 0 0 18px; flex: 1; font-size: .95rem; }
.passos { counter-reset: p; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.passos li { counter-increment: p; background: var(--papel); border: 1px solid var(--linha); border-radius: var(--raio); padding: 18px; }
.passos li::before { content: counter(p); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--acento-claro); color: #8a5a12; font-weight: 700; margin-bottom: 8px; }
.btn.desativado { opacity: .55; cursor: not-allowed; }

/* Acessibilidade: atalho para o conteúdo e foco visível no teclado */
.pular { position: absolute; left: 8px; top: -60px; z-index: 1000; background: var(--pri); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.pular:focus { top: 8px; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--acento); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }
