/* Raízes — landing PT-BR
   Identidade visual do app: theme-color #773c48, paleta de globals.css */

:root {
  --paper: #faf9f6;
  --white: #ffffff;
  --ink: #342c2b;
  --muted: #6b5f58;
  --wine: #773c48;
  --wine-dark: #62303b;
  --rose: #f1e2e0;
  --line: #eae5de;
  --green: #e6ece0;
  --yellow: #f6edd7;
  --blue: #e6ebed;
  --focus: #342c2b;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

/* 112,5% de 16 px = 18 px de corpo, e continua escalando com a
   preferência de tamanho de letra do navegador (1rem = 18 px). */
html {
  font-size: 112.5%;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

h1, h2, h3, p, ul, ol, figure, blockquote {
  margin: 0;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2rem, 6.5vw, 3rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.6rem, 5vw, 2.1rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

h3 {
  font-size: 1.25rem;
}

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

a {
  color: inherit;
}

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

/* Acessibilidade: foco visível */
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Sobre o fundo vinho da seção de oferta o anel precisa ser claro. */
.section-offer a:focus-visible {
  outline-color: #fff;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--wine);
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Cabeçalho */
.site-header {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  color: var(--wine);
  letter-spacing: -0.01em;
}

.brand span {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 0.95rem;
  color: var(--muted);
  margin-left: 0.4rem;
}

/* Herói */
.hero {
  padding: 2rem 0 0;
}

.hero-grid {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

.hero-copy h1 {
  color: var(--ink);
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 1.125rem;
  max-width: 30em;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
}

.hero-photo {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 2;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) sepia(0.06);
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

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

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

.btn-secondary {
  background: transparent;
  color: var(--wine);
  border: 1px solid var(--wine);
}

.btn-secondary:hover {
  background: var(--rose);
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}

/* Seções */
.section {
  padding: 3rem 0;
}

.section-tint {
  background: var(--rose);
}

.section-tint p,
.section-tint h2 {
  color: var(--ink);
}

.lead {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

/* Passos */
.steps {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 1.5rem;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 3.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-num {
  position: absolute;
  left: 1rem;
  top: 1.15rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--wine);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
}

.steps h3 {
  margin-bottom: 0.25rem;
}

.steps p {
  font-size: 1rem;
}

/* Capítulos */
.chapter-grid {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.chapter-grid li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
  color: var(--ink);
}

.sample-questions {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

/* As aspas tipográficas vêm no próprio HTML (o leitor de tela as anuncia),
   então aqui é só uma barra vinho como marcador visual. */
.sample-questions li {
  font-style: italic;
  color: var(--wine-dark);
  padding: 0.25rem 0 0.25rem 1rem;
  border-left: 3px solid var(--wine);
}

/* Lista de recursos (seções 4 e 7) */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  gap: 1rem;
}

.feature-list li {
  padding: 0.25rem 0 0.25rem 2rem;
  position: relative;
  color: var(--ink);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--green);
}

.feature-list li::after {
  content: "✓";
  position: absolute;
  left: 0.28rem;
  top: 0.42rem;
  color: #52664b;
  font-size: 0.9rem;
}

.feature-list strong {
  font-weight: 600;
}

/* Oferta */
.section-offer {
  background: var(--wine);
}

.offer-card {
  text-align: center;
  color: #fff;
  padding: 0.5rem 0;
}

.offer-card h2 {
  color: #fff;
}

.offer-card p {
  color: #eed9cf;
  margin-bottom: 1.5rem;
}

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

.offer-card .btn-primary:hover {
  background: var(--rose);
  border-color: var(--rose);
}

/* `[data-oferta-estado="indisponivel"]` é o gancho que o script marca quando a
   oferta não vem (hoje, o caminho planejado de quem está fora do Brasil). Ele
   fica no HTML para o CTO e para a versão EN, mas de propósito **não carrega
   estilo**: é uma experiência planejada e usa o mesmo fundo vinho e o mesmo
   título em serifa dos outros estados. Só o botão some, pelo script. */

/* Material gratuito (ímã da lista de e-mail) */
.material-form {
  margin-top: 1.5rem;
  max-width: 34rem;
}

.material-form label {
  display: block;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.material-form input[type="email"] {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
}

.material-form input[type="email"]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-color: var(--wine);
}

.material-form .btn {
  width: 100%;
}

.material-privacidade {
  font-size: 1rem;
  margin-top: 0.9rem;
}

.material-privacidade a {
  color: var(--wine);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.material-estado {
  margin-top: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.material-estado[hidden] {
  display: none;
}

/* FAQ */
.faq {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 2rem 1rem 0;
  position: relative;
  font-weight: 600;
  color: var(--ink);
  font-size: 1.05rem;
}

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

.faq summary::before {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 0.85rem;
  font-size: 1.4rem;
  color: var(--wine);
  line-height: 1;
}

.faq details[open] summary::before {
  content: "–";
}

.faq p {
  padding: 0 2rem 1.25rem 0;
  font-size: 1rem;
}

/* Depoimentos (bloco pronto, comentado no HTML) */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}

.testimonial {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 0;
}

.testimonial blockquote {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.testimonial figcaption {
  color: var(--muted);
  font-size: 1rem;
}

/* Rodapé */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 3rem 0 2rem;
}

.footer-cta {
  text-align: center;
  margin-bottom: 2rem;
}

.footer-cta .lead {
  margin-bottom: 1.25rem;
}

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

.footer-links a {
  color: var(--wine);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-meta {
  text-align: center;
  font-size: 1rem;
  color: var(--muted);
}

.footer-meta strong {
  font-weight: 600;
  color: var(--wine);
}

.footer-meta span {
  display: block;
  margin-top: 0.25rem;
}

/* Tablet e desktop */
@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
    align-items: center;
  }

  .material-form .btn {
    width: auto;
  }

  .steps {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .chapter-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .sample-questions {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 860px) {
  .hero {
    padding: 3rem 0 1rem;
  }

  .hero-grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 2.5rem;
  }

  .chapter-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
