/* Site institucional do Mês Cheio: mesma paleta do app (web/style.css), fontes do sistema, claro e escuro. */
:root {
  --nav1: #0c2563; --nav2: #1a4bc4; --nav-text: #d6e0f7;
  --bg: #f3f6fc; --bg-alt: #e9eef8; --panel: #ffffff; --text: #18213a; --muted: #5d6a84; --line: #e3e8f2;
  --primary: #1d4ed8; --primary-d: #1b3fae; --primary-ink: #ffffff; --soft: #eaf0fe; --field: #cfd8ea;
  --amarelo: #f4c430; --pos: #157a34; --neg: #c0392b;
  --sombra: 0 1px 2px #1a2b5a0f, 0 8px 28px #1a2b5a14; --raio: 14px; --foco: #1d4ed866;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --nav1: #0a1430; --nav2: #12307a; --nav-text: #c3d0f0;
  --bg: #0f1626; --bg-alt: #131c30; --panel: #172033; --text: #e6ecf8; --muted: #9aa7c2; --line: #2a3652;
  --primary: #7ea6ff; --primary-d: #2c4fc0; --primary-ink: #0c1530; --soft: #1f2c4d; --field: #3a4766;
  --pos: #4cc577; --neg: #ff7b6e; --sombra: 0 1px 2px #0006, 0 8px 28px #0005; --foco: #7ea6ff80;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --nav1: #0a1430; --nav2: #12307a; --nav-text: #c3d0f0;
    --bg: #0f1626; --bg-alt: #131c30; --panel: #172033; --text: #e6ecf8; --muted: #9aa7c2; --line: #2a3652;
    --primary: #7ea6ff; --primary-d: #2c4fc0; --primary-ink: #0c1530; --soft: #1f2c4d; --field: #3a4766;
    --pos: #4cc577; --neg: #ff7b6e; --sombra: 0 1px 2px #0006, 0 8px 28px #0005; --foco: #7ea6ff80;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text); line-height: 1.6;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 1.0625rem;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--foco); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6rem; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1rem; }

.pular { position: absolute; left: -999px; top: .5rem; z-index: 100; background: var(--panel); color: var(--text); padding: .5rem .8rem; border-radius: 8px; }
.pular:focus { left: .5rem; }

/* ---------- cabeçalho fixo ---------- */
.topo { position: sticky; top: 0; z-index: 50; background: linear-gradient(90deg, var(--nav1), var(--nav2)); color: var(--nav-text); box-shadow: 0 2px 12px #0c256333; }
.topo-in { max-width: 1180px; margin: 0 auto; padding: .6rem 1rem; display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.marca { display: inline-flex; align-items: center; gap: .55rem; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.2rem; white-space: nowrap; }
.marca b { color: #9ec0ff; font-weight: 700; }
.menu { display: flex; align-items: center; gap: .2rem; margin-left: auto; }
.menu > a { color: var(--nav-text); text-decoration: none; padding: .45rem .65rem; border-radius: 9px; font-size: .95rem; font-weight: 600; }
.menu > a:hover { background: #ffffff1a; color: #fff; }
.menu > a.atual { background: #ffffff26; color: #fff; }
.menu-acoes { display: inline-flex; align-items: center; gap: .5rem; margin-left: .6rem; }
.menu-botao { display: none; margin-left: auto; background: transparent; border: 1px solid #ffffff40; color: #fff; border-radius: 10px; padding: .35rem .45rem; cursor: pointer; }
.tema { background: transparent; border: 1px solid #ffffff40; color: #fff; border-radius: 10px; width: 40px; height: 40px; display: inline-grid; place-items: center; cursor: pointer; }
.tema:hover { background: #ffffff1a; }
.ico-lua { display: none; }
:root[data-theme="dark"] .ico-sol { display: none; }
:root[data-theme="dark"] .ico-lua { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ico-sol { display: none; }
  :root:not([data-theme="light"]) .ico-lua { display: block; }
}
.topo .botao { padding: .5rem .9rem; font-size: .95rem; }
.topo .botao:not(.fantasma) { background: #fff; color: #1d4ed8; }
.topo .botao:not(.fantasma):hover { background: #eaf0fe; }
.topo .botao.fantasma { color: #fff; border-color: #ffffff66; }
.topo .botao.fantasma:hover { background: #ffffff1a; }

@media (max-width: 980px) {
  .menu-botao { display: inline-grid; place-items: center; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: .15rem;
          background: var(--nav1); padding: .6rem 1rem 1rem; box-shadow: 0 12px 24px #0006; }
  .menu.aberto { display: flex; }
  .menu > a { padding: .7rem .8rem; }
  .menu-acoes { margin: .5rem 0 0; flex-wrap: wrap; }
  .menu-acoes .botao { flex: 1; text-align: center; }
}

/* ---------- botões ---------- */
.botao { display: inline-block; background: var(--primary); color: var(--primary-ink); border: 1px solid transparent; border-radius: 11px;
         padding: .6rem 1.1rem; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.3; }
.botao:hover { background: var(--primary-d); color: #fff; }
.botao.fantasma { background: transparent; color: var(--primary); border-color: var(--field); }
.botao.fantasma:hover { background: var(--soft); color: var(--primary); }
.botao.grande { padding: .8rem 1.4rem; font-size: 1.05rem; }
.botao[disabled] { opacity: .6; cursor: progress; }

/* ---------- topo da página ---------- */
.heroi { background: radial-gradient(1200px 500px at 85% -10%, #1a4bc433, transparent 60%), var(--bg); padding: clamp(1.25rem, 3vw, 2.5rem) 1rem; }
.heroi-in { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 3rem; align-items: center; }
.selo { display: inline-block; background: var(--soft); color: var(--primary); border: 1px solid var(--field); border-radius: 999px; padding: .2rem .8rem; font-size: .85rem; font-weight: 700; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46rem; }
.acoes { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.4rem 0 1rem; }
.nota { font-size: .92rem; color: var(--muted); }
.tela { margin: 0; border-radius: var(--raio); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--sombra); background: var(--panel); }
.heroi-tela { transform: perspective(1600px) rotateY(-6deg); }
@media (max-width: 900px) {
  .heroi-in { grid-template-columns: 1fr; gap: 2rem; }
  .heroi-tela { transform: none; }
}

/* ---------- seções ---------- */
.secao { padding: clamp(1.5rem, 3.5vw, 2.75rem) 1rem; scroll-margin-top: 64px; }
.secao.alt { background: var(--bg-alt); }
.secao-in { max-width: 1180px; margin: 0 auto; }
.secao-in.estreito { max-width: 760px; }
.sobre-titulo { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 800; color: var(--primary); margin-bottom: .4rem; }
.centro { text-align: center; margin-top: 2rem; }

.grade { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.grade li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--raio); padding: 1.2rem 1.25rem; box-shadow: 0 1px 2px #1a2b5a0a; }
.grade li p { color: var(--muted); font-size: .97rem; margin: 0; }
.grade svg { width: 30px; height: 30px; fill: none; stroke: var(--primary); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
             background: var(--soft); border-radius: 9px; padding: 5px; margin-bottom: .7rem; box-sizing: content-box; }
.grade.compacta li h3 { margin-bottom: .35rem; }

.vitrine { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; margin-top: 2.5rem; }
.vitrine figcaption { padding: .7rem .9rem; font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); }
@media (max-width: 900px) { .vitrine { grid-template-columns: 1fr; } }

.passos { list-style: none; padding: 0; margin: 2rem 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; counter-reset: none; }
.passos li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--raio); padding: 1.3rem; }
.passos span { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--amarelo); color: #3a2a00; font-weight: 800; margin-bottom: .7rem; }
.passos p { color: var(--muted); margin: 0; }
@media (max-width: 800px) { .passos { grid-template-columns: 1fr; } }
.porque { background: var(--panel); border: 1px solid var(--line); border-left: 5px solid var(--primary); border-radius: var(--raio); padding: 1.3rem 1.5rem; }
.porque ul { margin: 0; padding-left: 1.2rem; }
.porque li { margin: .35rem 0; }

.planos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin-top: 2rem; }
.plano { background: var(--panel); border: 1px solid var(--line); border-radius: var(--raio); padding: 1.5rem 1.6rem; }
.plano.destaque { border: 2px solid var(--primary); box-shadow: var(--sombra); }
.plano h3 { font-size: 1.4rem; display: flex; align-items: center; gap: .6rem; }
.breve { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; background: var(--amarelo); color: #3a2a00; border-radius: 999px; padding: .15rem .6rem; }
.plano-desc { color: var(--muted); }
.plano ul { margin: 0; padding: 0; list-style: none; }
.plano li { padding: .4rem 0 .4rem 1.7rem; position: relative; border-top: 1px solid var(--line); }
.plano li::before { content: ""; position: absolute; left: .2rem; top: .85rem; width: .7rem; height: .38rem; border-left: 2.5px solid var(--pos); border-bottom: 2.5px solid var(--pos); transform: rotate(-45deg); }
@media (max-width: 760px) { .planos { grid-template-columns: 1fr; } }

details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: .2rem 1.1rem; margin: .6rem 0; }
summary { cursor: pointer; font-weight: 700; padding: .8rem 0; list-style-position: inside; }
summary::marker { color: var(--primary); }
details p { color: var(--muted); }

/* ---------- formulário ---------- */
.formulario { background: var(--panel); border: 1px solid var(--line); border-radius: var(--raio); padding: 1.5rem; box-shadow: var(--sombra); margin-top: 1.5rem; }
.campo { margin-bottom: 1rem; }
.campo label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: .3rem; }
.opcional { color: var(--muted); font-weight: 400; }
.campo input, .campo textarea { width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--field); border-radius: 10px; padding: .65rem .8rem; }
.campo input:focus, .campo textarea:focus { outline: 3px solid var(--foco); border-color: var(--primary); }
.campo [aria-invalid="true"] { border-color: var(--neg); }
.isca { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.desafio { min-height: 0; margin: .3rem 0 1rem; }
.desafio:not(:empty) { min-height: 65px; }
.aviso-dados { font-size: .88rem; color: var(--muted); }
.resultado { margin: 1rem 0 0; font-weight: 600; }
.resultado.ok { color: var(--pos); }
.resultado.erro { color: var(--neg); }
.alternativa { text-align: center; color: var(--muted); margin-top: 1.2rem; }

/* ---------- textos legais ---------- */
.texto { max-width: 820px; margin: 0 auto; padding: clamp(1rem, 2.5vw, 1.75rem) 1rem 2rem; }
.texto article { background: var(--panel); border: 1px solid var(--line); border-radius: var(--raio); padding: clamp(1.3rem, 4vw, 2.6rem); }
.texto h1 { font-size: clamp(1.7rem, 3.6vw, 2.3rem); }
.texto h2 { font-size: 1.35rem; margin-top: 2.2rem; scroll-margin-top: 80px; }
.texto h3 { margin-top: 1.5rem; }
.texto li { margin: .3rem 0; }
.texto blockquote { margin: 1rem 0; padding: .8rem 1rem; background: var(--soft); border-left: 4px solid var(--primary); border-radius: 8px; }
.texto blockquote p { margin: 0; }
.texto code { font-family: Consolas, "SFMono-Regular", Menlo, monospace; font-size: .9em; background: var(--soft); padding: .05rem .35rem; border-radius: 5px; }
.tabela { overflow-x: auto; margin: 1rem 0 1.4rem; border: 1px solid var(--line); border-radius: 10px; }
.texto table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: .94rem; }   /* no celular a tabela rola de lado em vez de espremer */
.texto th, .texto td { text-align: left; vertical-align: top; padding: .6rem .75rem; border-bottom: 1px solid var(--line); }
.texto th { background: var(--bg-alt); font-size: .85rem; }
.texto tr:last-child td { border-bottom: 0; }
.voltar { margin-top: 1.5rem; color: var(--muted); font-size: .95rem; }

/* ---------- 404 ---------- */
.nao-achou { max-width: 640px; margin: 0 auto; padding: 2.5rem 1rem; text-align: center; }
.nao-achou .codigo { font-size: 5rem; font-weight: 900; color: var(--primary); line-height: 1; margin-bottom: .5rem; }
.nao-achou .acoes { justify-content: center; }

/* ---------- rodapé ---------- */
.rodape { background: linear-gradient(90deg, var(--nav1), var(--nav2)); color: var(--nav-text); padding: 3rem 1rem 1.5rem; }
.rodape-in { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.rodape h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: .8rem; }
.rodape nav a { display: block; color: var(--nav-text); text-decoration: none; padding: .2rem 0; }
.rodape nav a:hover { color: #fff; text-decoration: underline; }
.rodape p { margin-top: .6rem; }
.direitos { max-width: 1180px; margin: 2rem auto 0; padding-top: 1.2rem; border-top: 1px solid #ffffff26; font-size: .88rem; }
@media (max-width: 760px) { .rodape-in { grid-template-columns: 1fr; } }
