/* Base: tipografia, botões, cabeçalho, rodapé, páginas internas e motion global. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topo-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fundo); color: var(--tinta); font: 400 16px/1.65 var(--font-texto); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--fundo); }
img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.04; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--violeta-texto); outline-offset: 3px; border-radius: 4px; }
.screen-reader-text, .sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pular { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--violeta); color: #fff; padding: 10px 14px; border-radius: var(--raio-sm); }
.pular:focus { top: 12px; }

.miolo { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.rotulo { font: 600 12.5px/1 var(--font-texto); letter-spacing: .12em; text-transform: uppercase; color: var(--violeta-texto); display: inline-flex; align-items: center; gap: 10px; }
.rotulo::before { content: ""; width: 8px; height: 8px; border-radius: var(--raio-total); background: var(--ambar); box-shadow: 0 0 0 4px rgba(255,181,71,.15); }
.num { font-family: var(--font-dados); color: var(--ambar); font-variant-numeric: tabular-nums; }
.nota { font-size: 12.5px; color: var(--tinta-suave); opacity: .85; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: var(--raio-total); font: 600 15.5px/1 var(--font-texto); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .25s, background .25s, border-color .25s, box-shadow .25s; white-space: nowrap; }
.btn-principal { background: var(--violeta); color: var(--sobre-violeta); box-shadow: 0 10px 40px -10px rgba(106,34,255,.7); }
.btn-principal:hover { background: var(--violeta-forte); transform: translateY(-2px); box-shadow: 0 16px 50px -12px rgba(106,34,255,.85); }
.btn-sec { background: transparent; color: var(--tinta); border-color: var(--linha); }
.btn-sec:hover { border-color: var(--violeta-texto); }
.btn svg { width: 18px; height: 18px; }
@media (max-width: 420px) { .btn { white-space: normal; text-align: center; line-height: 1.2; } }

/* Cabeçalho */
.topo { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.admin-bar .topo { top: calc(32px + env(safe-area-inset-top, 0px)); }
@media (max-width: 782px) { .admin-bar .topo { top: calc(46px + env(safe-area-inset-top, 0px)); } }
.topo.rolou, .topo.aberto { background: rgba(21,20,26,.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-color: var(--linha); }
.topo .miolo { display: flex; align-items: center; justify-content: space-between; height: var(--topo-h); gap: 24px; }
.marca { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 600 19px/1 var(--font-display); letter-spacing: -0.01em; }
/* O PNG do símbolo tem margem transparente: a moldura recorta e o filtro deixa branco. */
.simbolo { width: 40px; height: 21.6px; overflow: hidden; flex: none; }
.simbolo img { display: block; width: 43.2px; max-width: none; height: auto; margin: -8.3px 0 0 -0.95px; filter: brightness(0) invert(1); }
.simbolo--livre { width: auto; height: 32px; }
.simbolo--livre img { width: auto; height: 32px; margin: 0; filter: none; }
.marca { white-space: nowrap; }
.nav { display: flex; gap: clamp(16px, 2.2vw, 28px); font-size: 15px; color: var(--tinta-suave); }
.nav a { text-decoration: none; transition: color .2s; white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { color: var(--tinta); }
.topo .btn { min-height: 44px; padding: 0 18px; font-size: 14.5px; }
.menu-btn { display: none; background: none; border: 1px solid var(--linha); color: var(--tinta); width: 44px; height: 44px; border-radius: var(--raio-total); cursor: pointer; }
@media (max-width: 900px) {
  .nav, .topo .btn-principal { display: none; }
  .menu-btn { display: inline-grid; place-items: center; }
  .topo.aberto .nav { display: grid; position: absolute; top: var(--topo-h); left: 0; right: 0; padding: 20px var(--gutter-r) 28px var(--gutter-l); background: var(--fundo); border-bottom: 1px solid var(--linha); gap: 18px; font-size: 18px; }
}

/* Rodapé */
.rodape { padding-block: 56px 40px; color: var(--tinta-suave); font-size: 14.5px; border-top: 1px solid var(--linha); }
.rodape .miolo { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.rodape h4 { margin: 0 0 12px; color: var(--tinta); font: 600 14px/1 var(--font-texto); letter-spacing: 0; }
.rodape ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.rodape a { text-decoration: none; }
.rodape a:hover { color: var(--tinta); }
.rodape .marca { color: var(--tinta); }
.copy { grid-column: 1 / -1; border-top: 1px solid var(--linha); padding-top: 22px; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px) { .rodape .miolo { grid-template-columns: 1fr; } }

/* Páginas internas e posts */
.interna { padding-block: clamp(48px, 8vw, 96px); }
.interna-cab { max-width: 820px; margin: 0 auto 40px; display: grid; gap: 16px; }
.interna-cab h1 { font-size: clamp(34px, 5vw, 58px); }
.interna-cab .meta { color: var(--tinta-suave); font-size: 14px; }
.conteudo { max-width: 720px; margin: 0 auto; font-size: 17.5px; line-height: 1.75; }
.conteudo > * + * { margin-top: 1.1em; }
.conteudo h2 { font-size: 30px; margin-top: 1.8em; }
.conteudo h3 { font-size: 22px; margin-top: 1.5em; }
.conteudo a { color: var(--violeta-texto); }
.conteudo img { border-radius: var(--raio-md); }
.conteudo blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--violeta); color: var(--tinta-suave); }
.conteudo ul, .conteudo ol { padding-left: 1.2em; }
.lista-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.card-post { background: var(--superficie); border: 1px solid var(--linha); border-radius: var(--raio-md); overflow: hidden; text-decoration: none; display: grid; transition: border-color .3s, transform .3s; }
.card-post:hover { border-color: rgba(180,157,255,.5); transform: translateY(-3px); }
.card-post img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.card-post div { padding: 20px; display: grid; gap: 8px; }
.card-post h2 { font-size: 21px; }
.card-post span { color: var(--tinta-suave); font-size: 13.5px; }
.paginacao { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.paginacao .page-numbers { min-width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--linha); border-radius: var(--raio-total); text-decoration: none; padding: 0 12px; }
.paginacao .current { background: var(--violeta); border-color: var(--violeta); }

/* Formulário de lead */
.form-lead { display: grid; gap: 12px; }
.campo { display: grid; gap: 6px; font-size: 13.5px; color: var(--tinta-suave); }
.campo input, .campo select, .campo textarea { width: 100%; min-height: 50px; border-radius: 12px; border: 1px solid var(--linha); background: rgba(21,20,26,.7); color: var(--tinta); padding: 0 14px; font: 400 16px var(--font-texto); }
.campo input:focus, .campo select:focus { outline: none; border-color: var(--violeta-texto); box-shadow: 0 0 0 3px rgba(180,157,255,.2); }
.dupla { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lgpd { font-size: 12.5px; color: var(--tinta-suave); display: flex; gap: 10px; align-items: flex-start; }
.lgpd input { margin-top: 3px; accent-color: var(--violeta); width: 18px; height: 18px; flex: none; }
.isca { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-ok { background: rgba(63,207,142,.12); border: 1px solid rgba(63,207,142,.4); color: var(--tinta); border-radius: 12px; padding: 14px; font-size: 15px; }
.form-erro { background: rgba(255,114,98,.1); border: 1px solid rgba(255,114,98,.4); color: var(--tinta); border-radius: 12px; padding: 14px; font-size: 14.5px; }
@media (max-width: 480px) { .dupla { grid-template-columns: 1fr; } }

/* Motion: revelação guiada pela rolagem, feita pelo próprio navegador (compositor).
   Sem suporte ou com "reduzir movimento", tudo aparece parado: nada fica escondido em repouso. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .rv { animation: va-revela linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    .rv-2 { animation-range: entry 10% entry 85%; }
    .parallax { animation: va-sobe linear both; animation-timeline: view(); animation-range: cover; }
  }
}
@keyframes va-revela { from { opacity: 0; transform: translateY(40px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes va-sobe { from { transform: translateY(40px); } to { transform: translateY(-40px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
