/* Landing do BudgetOne (#97). Cores dos tokens do design system (#56, tokens.css); fontes servidas daqui (a CSP
   só permite o próprio domínio). Mobile-first: 390 px sem rolagem horizontal, depois 768 e 1024+. */

@font-face {
  font-family: 'Bricolage Grotesque Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('/fontes/bricolage-grotesque.woff2') format('woff2-variations');
}

@font-face {
  font-family: 'Figtree Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url('/fontes/figtree.woff2') format('woff2-variations');
}

:root {
  --fonte-marca: 'Bricolage Grotesque Variable', 'Figtree Variable', system-ui, sans-serif;
  --fonte-texto: 'Figtree Variable', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --raio: 16px;
  --largura: 1180px;
}

*,
*::before,
*::after {
  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(--fundo);
  color: var(--texto);
  font-family: var(--fonte-texto);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  font-family: var(--fonte-marca);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 6vw + 0.6rem, 3.6rem);
  font-weight: 750;
}

h2 {
  font-size: clamp(1.6rem, 2.6vw + 0.9rem, 2.4rem);
  font-weight: 700;
}

h3 {
  font-size: 1.25rem;
  font-weight: 650;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--marca-forte);
}

:focus-visible {
  outline: 3px solid var(--foco);
  outline-offset: 3px;
  border-radius: 6px;
}

.pular {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--superficie);
  color: var(--texto);
}

.pular:focus {
  top: 12px;
}

.largura {
  width: min(100% - 32px, var(--largura));
  margin-inline: auto;
}

.estreita {
  max-width: 820px;
}

/* Topo */

.topo {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--fundo) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--borda);
}

.topo__barra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.marca {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--texto);
  text-decoration: none;
}

.marca__nome {
  font-family: var(--fonte-marca);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.marca__nome span {
  font-weight: 500;
}

.marca__nome strong {
  font-weight: 800;
}

.topo__menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topo__menu a:not(.botao) {
  display: none;
  color: var(--texto-suave);
  font-weight: 600;
  text-decoration: none;
}

.topo__menu a:not(.botao):hover {
  color: var(--texto);
}

@media (min-width: 768px) {
  .topo__menu a:not(.botao) {
    display: inline;
  }
}

/* Botões */

.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background-color 0.15s, transform 0.15s;
}

.botao--primario {
  background: var(--marca);
  color: var(--sobre-marca);
}

.botao--primario:hover {
  background: var(--marca-forte);
}

.botao--fantasma {
  min-height: 42px;
  padding: 8px 16px;
  border-color: var(--borda-controle);
  color: var(--texto);
}

.botao--fantasma:hover {
  background: var(--superficie);
}

.botao--claro {
  background: var(--superficie);
  color: var(--marca-forte);
}

.icone {
  width: 22px;
  height: 22px;
  flex: none;
}

.link-seta {
  font-weight: 600;
  color: var(--marca-forte);
}

/* Hero */

.hero {
  padding: 40px 0 56px;
  overflow: hidden;
}

.hero__grade {
  display: grid;
  gap: 40px;
}

.selo {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--marca-suave);
  color: var(--marca-forte);
  font-size: 0.875rem;
  font-weight: 700;
}

.hero__sub {
  font-size: 1.15rem;
  color: var(--texto-suave);
  max-width: 38em;
}

.acoes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 28px;
}

.hero__imagem {
  position: relative;
  margin: 0;
}

.tela {
  border-radius: var(--raio);
  border: 1px solid var(--borda);
  box-shadow: var(--sombra-flutuante);
  background: var(--superficie);
}

.tela--celular {
  position: absolute;
  right: -4px;
  bottom: -24px;
  width: 34%;
  max-width: 190px;
  border-radius: 22px;
  border: 6px solid var(--texto);
}

@media (min-width: 1024px) {
  .hero {
    padding: 72px 0 96px;
  }

  .hero__grade {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    align-items: center;
    gap: 56px;
  }

  .tela--desktop {
    width: 118%;
    max-width: none;
  }

  .tela--celular {
    right: auto;
    left: -36px;
    bottom: -40px;
    width: 30%;
  }
}

/* Seções */

.secao {
  padding: 64px 0;
}

.secao--problema {
  background: var(--superficie);
  border-block: 1px solid var(--borda);
}

.destaque-texto {
  font-family: var(--fonte-marca);
  font-size: 1.35rem;
  font-weight: 650;
  color: var(--marca-forte);
  margin-bottom: 0;
}

.cartao {
  background: var(--superficie);
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  box-shadow: var(--sombra-card);
  padding: 24px;
}

.passos {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.passo p {
  margin: 0;
  color: var(--texto-suave);
}

.passo__numero {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--destaque);
  color: var(--sobre-destaque);
  font-family: var(--fonte-marca);
  font-weight: 800;
  font-size: 1.15rem;
}

@media (min-width: 768px) {
  .passos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.duas-colunas {
  display: grid;
  gap: 20px;
}

@media (min-width: 1024px) {
  .duas-colunas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .duas-colunas--imagem {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 56px;
  }
}

.beneficios h2 {
  font-size: clamp(1.4rem, 1.6vw + 0.9rem, 1.9rem);
}

.lista-check {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.lista-check li {
  position: relative;
  padding-left: 32px;
}

.lista-check li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--marca-suave)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%231e7a55' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 16px no-repeat;
}

.secao--seguranca {
  background: var(--superficie-afundada);
}

/* Perguntas */

.perguntas {
  display: grid;
  gap: 12px;
}

.perguntas details {
  background: var(--superficie);
  border: 1px solid var(--borda);
  border-radius: 12px;
  padding: 0 20px;
}

.perguntas summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 28px 18px 0;
  position: relative;
  font-weight: 700;
}

.perguntas summary::-webkit-details-marker {
  display: none;
}

.perguntas summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--marca);
}

.perguntas details[open] summary::after {
  content: '−';
}

.perguntas details p {
  color: var(--texto-suave);
  padding-bottom: 18px;
  margin: 0;
}

/* Chamada final */

.secao--final {
  background: var(--marca);
  color: var(--sobre-marca);
}

.final {
  text-align: center;
}

.final p {
  font-size: 1.15rem;
  opacity: 0.92;
  margin-bottom: 28px;
}

/* Rodapé */

.rodape {
  padding: 32px 0;
  border-top: 1px solid var(--borda);
  color: var(--texto-suave);
  font-size: 0.95rem;
}

.rodape__barra {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: space-between;
  align-items: center;
}

.rodape p {
  margin: 0;
}

.rodape nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.rodape a {
  color: var(--texto-suave);
}

/* Política de privacidade */

.documento {
  padding: 48px 0 72px;
}

.documento h1 {
  font-size: clamp(1.9rem, 3vw + 1rem, 2.6rem);
}

.documento h2 {
  font-size: 1.35rem;
  margin-top: 2em;
}

.documento ul {
  padding-left: 1.2em;
}

.documento li {
  margin-bottom: 0.4em;
}

.documento .atualizado {
  color: var(--texto-suave);
}
