/* Funcionalmente — base de todas as páginas: tokens, tipografia, botões, topo em pílula, gaveta, rodapé, cortina, entradas */
:root {
  --tinta: #15201a;
  --tinta-2: #1f2d25;
  --musgo: #2f4a3a;
  --papel: #f4efe5;
  --papel-2: #ebe4d6;
  --brasa: #e2552c;
  --brasa-escura: #b8401d;
  --sol: #f2c14e;
  --linha: rgba(21, 32, 26, 0.14);
  --suave: #5b675f;
  --raio: 22px;
  --larg: 1180px;
  --margem: clamp(16px, 5vw, 56px);
  --saida: cubic-bezier(0.2, 0.7, 0.2, 1);
  --mola: cubic-bezier(0.34, 1.4, 0.64, 1);
  --texto: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --titulo: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--brasa) var(--papel-2);
}
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--papel-2);
}
::-webkit-scrollbar-thumb {
  background: var(--brasa);
  border-radius: 8px;
}
body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--texto);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
img,
svg,
video {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
h1,
h2,
h3,
h4 {
  font-family: var(--titulo);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0;
  text-wrap: pretty;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--brasa);
  outline-offset: 3px;
  border-radius: 8px;
}
.caixa {
  width: min(100% - 2 * var(--margem), var(--larg));
  margin-inline: auto;
}
.olho {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brasa-escura);
}
.olho::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brasa);
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Botões */
.bt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--brasa);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.35s var(--mola), background 0.25s, box-shadow 0.25s;
  box-shadow: 0 10px 24px -12px rgba(226, 85, 44, 0.7);
}
.bt:hover {
  background: var(--brasa-escura);
}
.bt:active {
  transform: scale(0.97);
}
.bt-linha {
  background: transparent;
  color: var(--tinta);
  box-shadow: inset 0 0 0 1.5px var(--tinta);
}
.bt-linha:hover {
  background: var(--tinta);
  color: var(--papel);
}
.bt-escuro {
  background: var(--tinta);
  box-shadow: none;
}
.bt-escuro:hover {
  background: var(--musgo);
}
.bt .seta {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--saida);
}
.bt:hover .seta {
  transform: translateX(4px);
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--tinta);
  text-decoration: none;
}
.logo svg {
  width: 34px;
  height: 34px;
  flex: none;
}
.logo b {
  font-family: var(--titulo);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.logo b i {
  font-style: normal;
  color: var(--brasa);
}

/* Topo em pílula (igual em todas as páginas) */
.topo {
  position: fixed;
  inset: 14px 0 auto;
  z-index: 50;
  pointer-events: none;
}
.topo-barra {
  pointer-events: auto;
  width: min(100% - 2 * var(--margem), 1100px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 8px 8px 8px 20px;
  border-radius: 999px;
  background: rgba(244, 239, 229, 0.82);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: inset 0 0 0 1px var(--linha);
  transition: box-shadow 0.3s, background 0.3s;
}
.topo.rolou .topo-barra {
  background: rgba(244, 239, 229, 0.95);
  box-shadow: inset 0 0 0 1px var(--linha), 0 18px 40px -24px rgba(21, 32, 26, 0.45);
}
.topo-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.topo-links a {
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.2s;
}
.topo-links a:hover {
  background: var(--papel-2);
}
.topo .bt {
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
}
.topo-menu {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--tinta);
  cursor: pointer;
  position: relative;
}
.topo-menu i {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--papel);
  transition: transform 0.35s var(--saida), top 0.35s var(--saida);
}
.topo-menu i:first-child {
  top: 17px;
}
.topo-menu i:last-child {
  top: 25px;
}
.menu-aberto .topo-menu i:first-child {
  top: 21px;
  transform: rotate(45deg);
}
.menu-aberto .topo-menu i:last-child {
  top: 21px;
  transform: rotate(-45deg);
}
.gaveta {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--tinta);
  color: var(--papel);
  padding: 110px var(--margem) 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  clip-path: circle(0 at calc(100% - 44px) 40px);
  transition: clip-path 0.6s var(--saida);
  visibility: hidden;
}
.menu-aberto .gaveta {
  clip-path: circle(150% at calc(100% - 44px) 40px);
  visibility: visible;
}
.gaveta nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.gaveta nav a {
  font-family: var(--titulo);
  font-size: clamp(30px, 9vw, 46px);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 12px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.4s, transform 0.5s var(--saida);
  transition-delay: calc(0.12s + var(--i) * 0.05s);
}
.gaveta nav a small {
  font-family: var(--texto);
  font-size: 13px;
  color: var(--sol);
}
.menu-aberto .gaveta nav a {
  opacity: 1;
  transform: none;
}
.gaveta-base {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* Rodapé */
.rodape {
  background: var(--tinta);
  color: var(--papel);
  padding: 72px 0 28px;
  margin-top: 0;
}
.rodape .logo {
  color: var(--papel);
}
.rodape-grade {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.rodape-lema {
  margin-top: 16px;
  max-width: 30ch;
  color: rgba(244, 239, 229, 0.7);
}
.rodape h3 {
  font-family: var(--texto);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sol);
  margin-bottom: 14px;
}
.rodape ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.rodape ul a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  text-decoration: none;
  color: rgba(244, 239, 229, 0.85);
}
.rodape ul a:hover {
  color: #fff;
}
.rodape ul svg {
  width: 18px;
  height: 18px;
}
.rodape-fim {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid rgba(244, 239, 229, 0.14);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: rgba(244, 239, 229, 0.6);
}
.rodape-fim a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(244, 239, 229, 0.85);
  text-decoration: none;
}
.rodape-fim svg {
  width: 16px;
  height: 16px;
}

/* Cortina + preloader do símbolo */
.cortina {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--tinta);
  display: grid;
  place-items: center;
  transition: transform 0.8s var(--saida);
}
.cortina svg {
  width: 76px;
  height: 76px;
  color: var(--papel);
}
.cortina .traco {
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
  animation: desenha 0.9s var(--saida) forwards;
}
.cortina .ponto {
  transform-origin: center;
  transform-box: fill-box;
  transform: scale(0);
  animation: pinga 0.5s 0.55s var(--mola) forwards;
}
@keyframes desenha {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes pinga {
  to {
    transform: scale(1);
  }
}
.pronto .cortina {
  transform: translateY(-101%);
}
.saindo .cortina {
  transform: none;
  transition-duration: 0.42s;
}
.saindo .cortina svg {
  opacity: 0;
}
html:not(.js) .cortina {
  display: none;
}

/* Entradas ao rolar */
.js [data-rev] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--saida), transform 0.8s var(--saida);
  transition-delay: calc(var(--d, 0) * 80ms);
}
.js [data-rev].visto {
  opacity: 1;
  transform: none;
}
.mascara {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}
.mascara > span {
  display: inline-block;
}
.js .mascara > span {
  transform: translateY(105%);
  transition: transform 0.9s var(--saida);
  transition-delay: calc(var(--d, 0) * 90ms + 0.15s);
}
.js .mascara.visto > span {
  transform: none;
}

/* Aviso de demonstração */
.demo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--sol);
  color: var(--tinta);
  font-size: 13px;
  font-weight: 700;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 80;
  transform: translate(-50%, 140%);
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: calc(100% - 32px);
  padding: 12px 12px 12px 20px;
  border-radius: 999px;
  background: var(--tinta);
  color: var(--papel);
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.5);
  transition: transform 0.45s var(--mola);
}
.toast.ver {
  transform: translate(-50%, 0);
}
.toast button {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--sol);
  color: var(--tinta);
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 900px) {
  .topo-links,
  .topo-barra > .bt {
    display: none;
  }
  .topo-menu {
    display: block;
    margin-left: auto;
  }
  .rodape-grade {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .rodape-lema {
    margin-inline: auto;
  }
  .rodape-fim {
    justify-content: center;
    text-align: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-rev],
  .js .mascara > span {
    opacity: 1;
    transform: none;
  }
}
.topo-barra > .logo,
.rodape .logo {
  min-height: 44px;
}
