/* ==================================================
   1. VARIÁVEIS GLOBAIS
================================================== */

:root {
  /* Cores principais */
  --fundo: #FAF8F4;
  --bege: #EAE2D6;
  --bege-escuro: #E6DDCF;
  --bege-forma-1: #D6CAB6;
  --bege-forma-2: #C4B8A3;
  --borda: #D8CEBD;

  /* Tipografia e textos */
  --grafite: #2B2D30;
  --grafite-botao: #2F3235;
  --grafite-suave: #55585C;
  --grafite-destaque: #4A4D52;

  /* Fontes */
  --serifa: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;

  /* Layout */
  --largura-maxima: 1160px;
  --raio-padrao: 20px;
}


/* ==================================================
   2. RESET E CONFIGURAÇÕES GERAIS
================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--fundo);
  color: var(--grafite);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
}

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


/* ==================================================
   3. ELEMENTOS GERAIS
================================================== */

a {
  color: var(--grafite);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--grafite-destaque);
}

/* Links dentro de textos ficam sublinhados (mais fácil de perceber) */
p a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--grafite-destaque);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serifa);
  font-weight: 500;
  line-height: 1.2;
}

p,
ul {
  margin: 0 0 14px;
}

ul {
  padding-left: 22px;
}

li {
  padding: 3px 0;
}


/* ==================================================
   4. ELEMENTOS DECORATIVOS
================================================== */

.grain {
  height: 14px;
  background:
    repeating-linear-gradient(90deg,
      rgba(43, 45, 48, 0.10) 0 2px,
      transparent 2px 9px),
    linear-gradient(var(--bege-forma-1),
      var(--bege-forma-2));
}


/* ==================================================
   5. PÁGINAS DE TEXTO (Política de Privacidade etc.)
   Use <main class="pagina-texto"> nessas páginas.
================================================== */

.wrap {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 22px;
}

.pagina-texto {
  padding: 48px 0 32px;
}

.pagina-texto h1 {
  margin-bottom: 8px;
  font-size: clamp(1.9rem, 5vw, 2.5rem);
}

.pagina-texto h2 {
  margin: 36px 0 10px;
  font-size: 1.35rem;
}

.updated {
  margin-bottom: 28px;
  color: var(--grafite-suave);
  font-size: 0.95rem;
}

.rodape-simples {
  padding: 32px 0 48px;
  border-top: 1px solid var(--borda);
  color: var(--grafite-suave);
  font-size: 14px;
  text-align: center;
}


/* ==================================================
   6. BOTÕES
================================================== */

.btn {
  display: inline-flex;
  min-height: 44px;
  padding: 0 24px;
  align-items: center;
  justify-content: center;

  border-radius: 999px;

  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;

  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

/* Botão escuro */

.btn-escuro {
  min-height: 48px;
  padding: 0 28px;

  background: var(--grafite-botao);
  border: 1px solid var(--grafite-botao);

  color: var(--fundo);
  font-size: 16px;
}

.btn-escuro:hover {
  background: var(--grafite-destaque);
  color: var(--fundo);
}

/* Botão com contorno */

.btn-contorno {
  background: transparent;
  border: 1px solid var(--grafite-botao);

  color: var(--grafite-botao);
}

.btn-contorno:hover {
  background: var(--grafite-botao);
  color: var(--fundo);
}

/* Botões do Hero */

.hero-botoes .btn-contorno {
  min-height: 48px;
  padding: 0 28px;
  font-size: 16px;
}


/* ==================================================
   7. CABEÇALHO
================================================== */

.topo {
  display: flex;
  max-width: var(--largura-maxima);
  margin: 0 auto;
  padding: 24px;

  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-family: var(--serifa);
  font-size: 26px;
  font-weight: 600;
}

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;

  font-size: 15px;
}


/* ==================================================
   8. SEÇÃO PRINCIPAL - HERO
================================================== */

.hero {
  display: grid;
  max-width: var(--largura-maxima);
  margin: 0 auto;
  padding: 56px 24px 72px;

  grid-template-columns: repeat(auto-fit,
      minmax(min(100%, 300px), 1fr));

  align-items: center;
  gap: 48px;
}

.hero-texto {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero h1 {
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1.08;
}

.hero p {
  max-width: 480px;
  margin: 0;

  color: var(--grafite-suave);
  font-size: 18px;
  line-height: 1.6;
}

.hero-botoes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}


/* ==================================================
   9. ELEMENTO VISUAL DO HERO
================================================== */

.hero-visual {
  position: relative;
  min-height: 340px;

  background: var(--bege-escuro);
  border-radius: 28px;

  overflow: hidden;
}

.forma {
  position: absolute;
  display: block;
}

.forma-1 {
  top: -40px;
  right: -40px;

  width: 220px;
  height: 220px;

  background: var(--bege-forma-1);
  border-radius: 50%;
}

.forma-2 {
  bottom: 40px;
  left: 40px;

  width: 150px;
  height: 150px;

  background: var(--bege-forma-2);
  border-radius: 50%;
}

.forma-3 {
  top: 38%;
  left: 45%;

  width: 120px;
  height: 120px;

  background: var(--fundo);
  border-radius: 24px;
}


/* ==================================================
   10. PRODUTOS / GUIAS
================================================== */

.produtos {
  /* +48px dos paddings laterais, para alinhar com "How it works" */
  max-width: calc(var(--largura-maxima) + 48px);
  margin: 0 auto;
  padding: 24px 24px 72px;
}

.produtos h2 {
  margin-bottom: 28px;
  font-size: 34px;
}

.produtos-grade {
  display: grid;

  grid-template-columns: repeat(auto-fill,
      minmax(min(100%, 260px), 1fr));

  gap: 20px;
}

.produto {
  display: block;

  background: #FFFFFF;
  border: 1px solid #E2E2DE;
  border-radius: 12px;

  color: inherit;
  text-decoration: none;

  overflow: hidden;

  transition:
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.produto:hover {
  box-shadow: 0 6px 18px rgba(31, 35, 40, 0.10);
  transform: translateY(-2px);
}

.produto:focus-visible {
  outline: 3px solid #B7C4D1;
  outline-offset: 3px;
}

.produto-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;

  background: #ECECE8;

  object-fit: cover;
}

/* Para capas/caixas de produto: mostra a imagem inteira, sem cortar */
.produto-img-inteira {
  padding: 14px;
  background: #FFFFFF;
  object-fit: contain;
}

.produto-corpo {
  padding: 18px 20px 22px;
}

.produto-corpo h3 {
  margin: 0 0 6px;
  font-size: 1.25rem;
}

.produto-corpo p {
  margin: 0 0 12px;

  color: #5C636B;
  font-size: 0.98rem;
}

.produto-link {
  font-size: 0.95rem;
  font-weight: 600;
}


/* ==================================================
   11. COMO FUNCIONA - PASSOS
================================================== */

.passos {
  padding: 72px 24px;
  background: var(--bege);
}

.passos-conteudo {
  max-width: var(--largura-maxima);
  margin: 0 auto;
}

.passos h2 {
  margin-bottom: 32px;
  font-size: 34px;
}

.passos-grade {
  display: grid;

  grid-template-columns: repeat(auto-fit,
      minmax(min(100%, 240px), 1fr));

  gap: 32px;
}

.passo {
  display: flex;
  flex-direction: column;
  gap: 8px;

  color: var(--grafite-suave);
  line-height: 1.55;
}

.passo strong {
  color: var(--grafite);
  font-size: 18px;
}

.passo-numero {
  color: var(--grafite-destaque);
  font-family: var(--serifa);
  font-size: 40px;
  line-height: 1;
}


/* ==================================================
   12. SOBRE / CONTATO
================================================== */

.contato {
  padding: 72px 24px 40px;
}

.contato-conteudo {
  max-width: var(--largura-maxima);
  margin: 0 auto;
}

.contato h2 {
  margin-bottom: 20px;
  font-size: 34px;
}

.contato p {
  max-width: 640px;
  color: var(--grafite-suave);
}


/* ==================================================
   13. RODAPÉ
================================================== */

.rodape {
  display: flex;
  max-width: var(--largura-maxima);
  margin: 0 auto;
  padding: 40px 24px;

  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;

  border-top: 1px solid var(--borda);
  color: var(--grafite-suave);
  font-size: 14px;
}

.rodape p {
  flex: 1 1 260px;
  margin: 0;
}

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


/* ==================================================
   14. RESPONSIVIDADE
================================================== */

@media (max-width: 600px) {

  /* Cabeçalho */

  .topo {
    justify-content: center;
    text-align: center;
  }

  .menu {
    justify-content: center;
    gap: 16px;
  }

  /* Hero */

  .hero {
    padding-top: 24px;
    padding-bottom: 48px;
    gap: 32px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-visual {
    min-height: 280px;
  }

  .hero-botoes {
    flex-direction: column;
    align-items: stretch;
  }

  /* Títulos das seções */

  .produtos h2,
  .passos h2,
  .contato h2 {
    font-size: 28px;
  }

  /* Rodapé */

  .rodape {
    flex-direction: column;
    text-align: center;
  }
}


/* ==================================================
   15. ACESSIBILIDADE
================================================== */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  .btn,
  .produto {
    transition: none;
  }

  .produto:hover {
    transform: none;
  }

}
