/* --- :root (Variáveis Globais) --- */
:root {
  --color-primary: #2e7d32;
  --color-primary-dark: #1b5e20;
  --color-bg: #f8faf7;
  --color-text: #1f2a2e;
  --color-muted: #5f6f76;
  --color-border: #dce5dd;
  --color-accent: #fdd835;
  --font-display: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* --- Reset Básico e Padrões --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-display);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
}
section[id] {
  /* Altere este valor para a altura exata do seu cabeçalho */
  scroll-margin-top: 80px; 
}

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

main {
  display: block;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.15;
}

p {
  margin: 0 0 1em;
}

/* --- Botões --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(46, 125, 50, 0.16);
}

.btn--primary {
  background-color: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.btn--primary:hover {
  background-color: var(--color-primary-dark);
}

.btn--ghost {
  background-color: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}

.btn--ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* --- Cabeçalho (Header) --- */
.topbar {
  background-color: #fff;
  border-bottom: 1px solid rgba(92, 118, 110, 0.12);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

/* --- Logótipo  --- */

.logo {
  
  display: inline-block;
}

.topbar .logo {
  /* Aqui resetamos os estilos de texto que ele possa herdar */
  font-weight: normal;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
}

/* Regra APENAS para o logo do rodapé (que é texto) */
.footer .logo {
  /* Aqui colocamos os estilos de texto que ele precisa */
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
/* Estilo para a imagem do logótipo no cabeçalho */
.logo__img {
  height: 30px; 
  width: auto;
  display: block;
}

/* --- Navegação (Desktop) --- */
.nav-list {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.nav-list a {
  display: inline-block;
  color: var(--color-muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-list a:hover {
  color: var(--color-primary);
  transform: translateY(-2px);
}

/* --- Secção Hero --- */
.hero {
  padding: 5rem 0 4rem;
}

.hero__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  align-items: center;
}

.hero__copy h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.hero__copy p {
  color: var(--color-muted);
  font-size: 1.05rem;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

/* Alinhamento corrigido do ícone com o texto */
.hero__trust {
  display: flex;
  align-items: baseline; 
  gap: 0.6rem;
  color: var(--color-muted);
}

.hero__trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: rgba(46, 125, 50, 0.12);
  color: var(--color-primary);
  font-size: 0.9rem;
  font-weight: 700;
  flex-shrink: 0;
}

.hero__card {
  display: flex;
  justify-content: center;
}

.card {
  background-color: #fff;
  border-radius: 14px;
  padding: 1.8rem;
  box-shadow: 0 20px 50px rgba(31, 42, 46, 0.12);
  width: min(320px, 100%);
}

.card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.card__stat {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  color: var(--color-muted);
}

.card__stat .value {
  font-weight: 600;
  color: var(--color-text);
}

.card__stat .value.positive {
  color: var(--color-primary);
}

.card__footer {
  margin-top: 1.5rem;
  padding: 0.6rem 1rem;
  background: rgba(46, 125, 50, 0.1);
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
  color: var(--color-primary-dark);
}

/* --- Secção Recursos --- */
.features {
  padding: 4rem 0;
}

.features h2 {
  text-align: center;
  margin-bottom: 2.5rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.feature {
  background-color: #fff;
  padding: 1.8rem;
  border-radius: 14px;
  border: 1px solid rgba(92, 118, 110, 0.08);
  box-shadow: 0 12px 30px rgba(31, 42, 46, 0.06);
}

.feature p {
  color: var(--color-muted);
}

/* --- Secção Showcase (Demo) --- */
.showcase {
  padding: 4rem 0;
}

.showcase .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  align-items: center;
}

.showcase__list {
  color: var(--color-muted);
  line-height: 1.8;
}

.showcase__list li::before {
  content: "•";
  color: var(--color-primary);
  margin-right: 0.6rem;
}

.preview {
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(31, 42, 46, 0.1);
  padding: 1.5rem;
}

.preview__header {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #e0e0e0;
}

.indicator--green {
  background-color: var(--color-primary);
}


.graph__bar {
  width: 100%;
  border-radius: 6px 6px 0 0;
  background-color: var(--color-primary);
}

.graph__bar--1 { height: 40%; } /* Ex: Alimentação */
.graph__bar--2 { height: 20%; } /* Ex: Transporte */
.graph__bar--3 { height: 70%; } /* Ex: Moradia/Aluguel */
.graph__bar--4 { height: 30%; } /* Ex: Lazer */
.graph__bar--5 { height: 15%; } /* Ex: Saúde */
.graph__bar--6 { height: 25%; } /* Ex: Outros */


.graph-labels {
  display: grid;
  /* Cria 6 colunas, tal como o gráfico */
  grid-template-columns: repeat(6, 1fr);
  /* Usa o MESMO espaçamento do gráfico */
  gap: 0.6rem;
  /* Adiciona um pequeno espaço entre as barras e as legendas */
  margin-top: 0.5rem;
}

.graph-labels span {
  font-size: 0.75rem; /* 12px (bem pequeno, como pediu) */
  color: var(--color-muted);
  text-align: center;
  font-style: italic;
  /* Truque para evitar que textos longos quebrem o layout */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- Ajustes de espaçamento --- */
.graph {
  /* Remove a margem inferior antiga para dar lugar às legendas */
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.6rem;
  height: 160px; /* Isto é o que faz o gráfico ter altura */
  align-items: end;
  margin: 1.2rem 0 0;
}

.graph__caption {
  /* Adiciona um espaço acima da legenda principal */
  color: var(--color-muted);
  font-size: 0.9rem;
  margin-top: 0.5rem; 
}
/* --- Secção CTA (Intermediária) --- */
.cta-section {
  text-align: center;
  padding: 4rem 0;
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.12), rgba(46, 125, 50, 0));
}

.cta-section p {
  color: var(--color-muted);
  max-width: 580px;
  margin: 0.5rem auto 1.5rem;
}

/* --- Secção Planos (Removida e Substituída) --- */
/* Esta secção .pricing e .pricing__card não é mais usada no HTML, */
/* mas mantemos o CSS aqui para não quebrar nada se for reutilizado. */
.pricing {
  padding: 4rem 0;
}
.pricing h2 {
  text-align: center;
  margin-bottom: 2.5rem;
}
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
.pricing__card {
  background-color: #fff;
  border-radius: 16px;
  padding: 2rem 1.8rem;
  border: 1px solid rgba(92, 118, 110, 0.1);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.pricing__card ul {
  color: var(--color-muted);
  display: grid;
  gap: 0.6rem;
}
.pricing__card .price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
}
.pricing__card .price span {
  font-size: 1rem;
  color: var(--color-muted);
}
.pricing__card--highlight {
  border: 2px solid var(--color-primary);
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(46, 125, 50, 0.16);
}
.badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background-color: var(--color-accent);
  color: #2a2a2a;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* --- Secção Testemunhos (Removida) --- */
/* O HTML foi removido, mas mantemos o CSS */
.testimonials {
  padding: 4rem 0;
}
.testimonials h2 {
  text-align: center;
  margin-bottom: 2.5rem;
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
.testimonial {
  background-color: #fff;
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid rgba(92, 118, 110, 0.08);
  box-shadow: 0 18px 50px rgba(31, 42, 46, 0.08);
  color: var(--color-muted);
}
.testimonial blockquote {
  margin: 0 0 1.5rem;
  font-style: italic;
  color: var(--color-text);
}
.testimonial figcaption {
  font-weight: 600;
  color: var(--color-muted);
}

/* --- Secção Formulário (Signup) --- */
.signup {
  padding: 4rem 0;
  background-color: #fff;
}
.signup__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  align-items: center;
}
.signup__form {
  display: grid;
  gap: 0.9rem;
}
.signup__form label {
  font-weight: 600;
}
.signup__form input,
.signup__form select {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  font-family: inherit;
  font-size: 1rem;
  background-color: #f7fbf5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.signup__form input:focus,
.signup__form select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.08);
}
.fine-print {
  font-size: 0.85rem;
  color: var(--color-muted);
}
/* =================================================================== */
/* --- ESTILOS DO CHECKBOX DE CONSENTIMENTO LGPD --- */
/* =================================================================== */

.form-checkbox-group {
    display: flex;
    align-items: flex-start; /* Garante que o checkbox fica alinhado com o topo do texto */
    gap: 10px;
    margin-bottom: 1.5rem; /* Espaço entre o checkbox e o botão */
    margin-top: 0.5rem; /* Espaço do elemento acima */
}

.form-checkbox-group input[type="checkbox"] {
    /* Estilo básico do checkbox */
    width: 16px;
    height: 16px;
    flex-shrink: 0; /* Impede que o checkbox encolha */
    margin-top: 3px; /* Pequeno ajuste visual para descer um pouco (opcional) */
    border-color: var(--color-muted);
}

.form-checkbox-group .fine-print-lgpd {
    font-size: 0.8rem; /* Letras pequenas */
    line-height: 1.4;
    color: var(--color-muted);
}


.form-checkbox-group .fine-print-lgpd a {
    color: var(--color-primary); /* Força a cor principal (verde) */
    text-decoration: underline; /* Garante que o link é óbvio */
    font-weight: 600; /* Dá um pouco mais de peso à palavra "Política" */
    transition: color 0.2s ease;
}

/* Estilo de hover para o link */
.form-checkbox-group .fine-print-lgpd a:hover {
    color: var(--color-primary-dark); /* Escurece um pouco no hover */
}


/* --- Rodapé (Footer) --- */
.footer {
  background-color: #0f1a1d;
  color: #e7f0ea;
  padding: 3rem 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer h4 {
  color: #fff;
  margin-bottom: 0.8rem;
}
.footer ul li {
  margin-bottom: 0.6rem;
}
/* Prepara o link (a tag <a>) para a animação */
.footer ul li a {
  display: inline-block; /* Essencial para o 'transform' funcionar */
  transition: transform 0.2s ease, color 0.2s ease;
}

/* O efeito ao passar o mouse no link (a tag <a>) */
.footer ul li a:hover {
  transform: translateY(-2px); /* Faz o link "subir" */
  color: var(--color-primary); /* Muda a cor para o amarelo de destaque */
}
.footer__form {
  display: grid;
  gap: 0.8rem;
}
.footer__form input {
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border: none;
  font-family: inherit;
}
.footer__note {
  text-align: center;
  color: rgba(231, 240, 234, 0.6);
  font-size: 0.85rem;
}
.footer .logo__img {
  /* Este filtro CSS inverte a cor da imagem.
     (O seu logo escuro vai ficar branco) */
  filter: brightness(0) invert(1);
}

/* Classe de Acessibilidade */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* =================================================================== */
/* --- INÍCIO DA LÓGICA CORRIGIDA (Planos, Menu e Mobile) --- */
/* =================================================================== */

/* --- Estilos para a nova Secção de Planos (CTA Final) --- */
/* Estes estilos são para o seu novo plano "Gratuito" */
.cta-section--final {
  background: var(--color-bg); 
  padding: 5rem 0;
}
.cta-section--final h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}
.cta-section--final p {
  font-size: 1.1rem;
  max-width: 650px; 
}
.cta-section--final .btn--primary {
  transform: scale(1.1); 
  box-shadow: 0 12px 30px rgba(46, 125, 50, 0.2);
}
/* --- EFEITO HOVER DO BOTÃO --- */
.cta-section--final .btn--primary:hover {
  /* Mantém o scale(1.1) E sobe 2 pixels */
  transform: scale(1.1) translateY(-2px);
  /* Escurece o botão, como no outro botão */
  background-color: var(--color-primary-dark);
}
.cta-garantia {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  color: var(--color-muted);
  margin-top: 1.5rem;
  align-items: center; /* Alinha o ícone e o texto */
}
.cta-garantia__icone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: rgba(46, 125, 50, 0.12);
  color: var(--color-primary);
  font-size: 0.9rem;
  font-weight: 700;
}

/* --- TÓPICO B: ESTILOS GLOBAIS DO MENU HAMBURGER --- */
/* Define a aparência do ícone do hamburger */
.hamburger {
  display: none; /* Escondido por defeito no desktop */
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
}
.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
  background-color: var(--color-text);
}

/* --- TÓPICO C: LÓGICA DO "ENTRAR" (DESKTOP) --- */
/* Esta regra esconde o link "Entrar" da *lista* no desktop. */
.nav-list .nav-item-mobile-login {
  display: none;
}

/* --- TÓPICO D: BLOCO ÚNICO DO MEDIA QUERY (MOBILE) --- */
/* Este é o ÚNICO bloco @media. Ele substitui o seu antigo. */
@media (max-width: 720px) {
  
  /* 1. Regras de layout mobile que já tinha */
  .topbar {
    position: static;
  }
  .hero {
    padding-top: 3.5rem;
  }
  .pricing__card--highlight {
    transform: none;
  }

  /* 2. Regra para esconder o botão "Entrar" (o botão de desktop) */
  .topbar .btn {
    display: none; 
  }

  /* 3. Regra para mostrar o ícone do hamburger */
  .hamburger {
    display: block; 
  }

  /* 4. Regras do painel do menu (como ele aparece) */
  .nav-list {
    position: fixed;
    left: -100%; 
    top: 70px; /* Altura do seu topbar (ajuste se for diferente) */
    flex-direction: column;
    background-color: #fff;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 9;
    display: flex; /* Obrigatório para o flex-direction funcionar */
  }

  /* 5. Regra que MOSTRA o painel quando tem a classe .active (via JS) */
  .nav-list.active {
    left: 0; 
  }

  /* 6. Estilos dos links dentro do painel mobile */
  .nav-list li {
    padding: 1rem 0;
  }
  .nav-list a {
    font-size: 1.1rem;
    color: var(--color-text);
  }
  
  /* 7. A LÓGICA DO "ENTRAR" (MOBILE) */
  /* Esta regra "ganha" da regra do desktop porque está dentro do @media */
  .nav-list .nav-item-mobile-login {
    display: block; /* Mostra o "Entrar" da lista SÓ no mobile */
  }

  /* 8. Regras da animação do "X" */
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

}

/* =================================================================== */
/* --- ESTILOS DA PÁGINA DE "OBRIGADO" --- */
/* =================================================================== */

/* Garante que a página ocupe 100% da altura da tela */
.obrigado-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--color-bg);
}

/* Centraliza o conteúdo principal */
.obrigado-main {
  flex-grow: 1; /* Faz esta secção ocupar o espaço restante */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

/* O "card" branco de agradecimento */
.obrigado-card {
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(31, 42, 46, 0.12); 
  text-align: center;
  max-width: 500px;
  width: 90%;
  padding: 2.5rem 3rem;
}

/* O ícone de "check" (✓) verde */
.obrigado-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: #fff;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.obrigado-card h1 {
  font-size: 2rem;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.obrigado-card p {
  color: var(--color-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Um separador horizontal simples */
.obrigado-divider {
  border: none;
  height: 1px;
  background-color: var(--color-border);
  margin: 2rem 0;
}

/* Ajuste para o botão "Criar conta" */
.obrigado-card .btn--ghost {
  margin-top: 1rem;
}

/* Estilos para o rodapé simplificado da pág. "Obrigado" */
.footer-obrigado {
  text-align: center;
  padding-bottom: 2rem; 
}

.footer-links-obrigado {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-links-obrigado a {
  color: var(--color-muted);
  font-size: 0.9rem;
  /* Adiciona o efeito de "subir" que fizemos antes */
  display: inline-block;
  transition: transform 0.2s ease, color 0.2s ease;
}

.footer-links-obrigado a:hover {
  color: var(--color-primary);
  /* Adiciona o efeito de "subir" que fizemos antes */
  transform: translateY(-2px);
}