/* Base: página, topo, botões, links, ritmo das seções, rodapé. Carrega depois dos tokens. */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--fundo-1);
  color: var(--texto);
  font-family: var(--f-texto);
  font-size: var(--t-16);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3,
h4 {
  font-family: var(--f-titulo);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0;
  text-wrap: pretty;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
a {
  color: inherit;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
:focus-visible {
  outline: 3px solid var(--k-verde-claro);
  outline-offset: 3px;
}
body:not(.dark) main :focus-visible {
  outline-color: var(--k-verde-escuro);
}
main .sempre-escuro :focus-visible,
body:not(.dark) main .sempre-escuro :focus-visible {
  outline-color: var(--k-verde-claro);
}

/* Largura: três medidas, para as seções não terem todas o mesmo corpo. */
.wrap {
  width: min(1200px, 100% - 2 * var(--e-5));
  margin-inline: auto;
}
.wrap-largo {
  width: min(1320px, 100% - 2 * var(--e-5));
  margin-inline: auto;
}
.wrap-estreito {
  width: min(960px, 100% - 2 * var(--e-5));
  margin-inline: auto;
}
@media (max-width: 520px) {
  .wrap,
  .wrap-largo,
  .wrap-estreito {
    width: calc(100% - 2 * var(--e-4));
  }
}

/* Fundos por seção (alternam o ritmo; no escuro viram preto e navy). */
.tom-1 {
  background: var(--fundo-1);
}
.tom-2 {
  background: var(--fundo-2);
}
.tom-3 {
  background: var(--fundo-3);
}
.tom-escuro {
  background: var(--k-preto);
}
.tom-navy {
  background: var(--k-navy);
}
/* Brilho verde fraco num canto da seção. */
.com-brilho {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.com-brilho::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 900px;
  height: 900px;
  inset: auto -280px -420px auto;
  background: radial-gradient(closest-side, var(--brilho), transparent);
  pointer-events: none;
}
.com-brilho.brilho-esquerda::before {
  inset: -420px auto auto -320px;
}

/* Texto de apoio e chamada curta da seção (sem caixa alta). */
.chamada {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: var(--e-2);
  font-family: var(--f-texto);
  font-weight: 600;
  font-size: var(--t-14);
  color: var(--verde-texto);
  letter-spacing: 0;
}
.apoio {
  color: var(--texto-2);
  font-size: var(--t-18);
  max-width: 34em;
}
.legenda {
  font-size: var(--t-12);
  color: var(--texto-2);
  display: flex;
  align-items: center;
  gap: var(--e-2);
}

/* Botões e links */
.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--e-3);
  min-height: 48px;
  padding: var(--e-3) var(--e-5);
  border: 0;
  border-radius: var(--r-cheio);
  background: var(--k-verde);
  color: var(--k-preto);
  font-family: var(--f-texto);
  font-weight: 600;
  font-size: var(--t-16);
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.botao:hover {
  transform: translateY(-1px);
}
.botao:active {
  transform: translateY(0);
}
.botao.contorno {
  background: transparent;
  color: inherit;
  outline: 1px solid currentColor;
  outline-offset: -1px;
}
.botao.contorno:focus-visible {
  outline: 3px solid var(--k-verde-claro);
  outline-offset: 3px;
}
.botao.navy {
  background: var(--k-navy);
  color: var(--k-creme);
}
.botao.claro {
  background: var(--fundo-3);
  color: var(--texto);
}
.botao.pequeno {
  min-height: 40px;
  padding: var(--e-2) var(--e-4);
  font-size: var(--t-14);
}
.botao .k-ic {
  width: 20px;
  height: 20px;
}
.link {
  display: inline-flex;
  align-items: center;
  gap: var(--e-2);
  font-weight: 600;
  color: var(--verde-texto);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.link .k-ic {
  width: 20px;
  height: 20px;
}
.botoes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--e-3) var(--e-5);
}

/* Topo: sempre escuro, com a arte creme do logo. */
header.topo {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(3, 11, 22, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--linha-escura);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--e-5);
  min-height: 84px;
  padding: var(--e-2) 0;
}
.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  text-decoration: none;
  color: var(--k-creme);
}
.logo img {
  width: 132px;
}
.pronuncia {
  font-size: var(--t-12);
  color: #b5bcc4;
  margin-top: var(--e-1);
}
.nav nav {
  display: flex;
  align-items: center;
  gap: var(--e-5);
}
.nav nav > a:not(.botao) {
  color: var(--k-creme);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--t-14);
  padding: var(--e-2) 0;
  border-bottom: 2px solid transparent;
}
.nav nav > a[aria-current="page"],
.nav nav > a:not(.botao):hover {
  border-bottom-color: var(--k-verde);
}
.tema {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--linha-escura);
  border-radius: var(--r-cheio);
  background: transparent;
  color: var(--k-creme);
  cursor: pointer;
}
.tema .k-ic {
  width: 22px;
  height: 22px;
}
@media (max-width: 640px) {
  .nav {
    min-height: 64px;
    gap: var(--e-3);
  }
  .logo img {
    width: 120px;
  }
  .nav nav {
    gap: var(--e-3);
  }
  .nav nav > a:not(.botao) {
    font-size: var(--t-14);
  }
  .nav .botao.pequeno {
    padding-inline: var(--e-3);
  }
  .nav .botao.pequeno .k-ic {
    display: none;
  }
}
@media (max-width: 400px) {
  .pronuncia {
    display: none;
  }
  .logo img {
    width: 104px;
  }
}

/* Revelar na rolagem (só com JS e sem pedido de menos movimento). */
.js .k-revela {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js .k-revela.is-visivel {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .k-revela {
    opacity: 1;
    transform: none;
    transition: none;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Faixa do Instagram e rodapé (sempre escuros). */
.instagram {
  padding: var(--e-8) 0;
  border-top: 1px solid var(--linha-escura);
}
.insta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--e-6);
}
.insta img {
  width: 72px;
  height: 72px;
  border-radius: var(--r-2);
}
.insta h2 {
  font-size: var(--t-28);
  margin-bottom: var(--e-2);
}
.insta p {
  color: var(--texto-2);
}
footer.rodape {
  padding: var(--e-7) 0 var(--e-8);
  border-top: 1px solid var(--linha-escura);
}
.rodape .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--e-5);
}
.rodape p {
  font-family: var(--f-titulo);
  font-weight: 600;
  font-size: var(--t-18);
}
.rodape small {
  color: var(--texto-2);
  font-size: var(--t-12);
}
/* Assinatura da plataforma, numa linha própria abaixo da razão social. */
.rodape .rodape-feito-por {
  flex-basis: 100%;
  text-align: right;
}
.rodape small a {
  color: inherit;
}
@media (max-width: 720px) {
  .insta {
    grid-template-columns: 1fr;
    gap: var(--e-4);
  }
}

/* Aviso curto (cópia de mensagem). */
#toast {
  position: fixed;
  left: 50%;
  bottom: var(--e-5);
  z-index: 50;
  transform: translateX(-50%);
  display: none;
  padding: var(--e-3) var(--e-5);
  border-radius: var(--r-cheio);
  background: var(--k-navy);
  color: var(--k-creme);
  font-weight: 600;
  font-size: var(--t-14);
  box-shadow: var(--s-1);
}
