:root {
  --bg: #F5F0E8;
  --gold: #B8892A;
  --gold-border: rgba(184, 137, 42, 0.16);
  --gold-border-strong: rgba(184, 137, 42, 0.35);
  --text: #1A1A1A;
  --text-secondary: #9A8A72;
  --white: #FFFFFF;
  --success: #4CAF7D;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gold);
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 24px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand svg {
  flex-shrink: 0;
}

/* Arvore de galhos dourados, animacao oficial do brand book (secao 11): cresce em cerca de 0,8 s.
   O tronco sobe de baixo para cima (0 a 300 ms); depois cada par de galhos nasce do tronco, de baixo
   para o topo, um apos o outro. Ease-in-out, sem fade, sem bounce, sem rotacao. Roda uma vez, na
   troca de pagina (cabecalho); nao repete em rolagem nem em toque. */
@keyframes brCresce {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

/* A linha é desenhada traço a traço (dashoffset), então a espessura do traço nunca muda: ela
   acompanha a escala da árvore (viewBox) e o desenho final é idêntico ao logo oficial. */
.brand-tree .br {
  stroke-dasharray: 1 1;
  stroke-dashoffset: 0;
  animation: brCresce 140ms ease-in-out both;
}

/* Base: parada, sempre visível. */
.brand-tree .br-0 { opacity: 0.3; stroke-dasharray: none; animation: none; }

/* Tronco: sobe a partir do chão. */
.brand-tree .br-1 { animation-duration: 300ms; }

/* Pares de galhos: cada um cresce a partir do ponto em que sai do tronco. */
.brand-tree .br-2 { animation-delay: 300ms; }
.brand-tree .br-3 { animation-delay: 420ms; }
.brand-tree .br-4 { animation-delay: 540ms; }
.brand-tree .br-5 { animation-delay: 660ms; }

@media (prefers-reduced-motion: reduce) {
  .brand-tree .br {
    animation: none;
    stroke-dasharray: none;
  }
}


.wordmark {
  display: flex;
  align-items: baseline;
  gap: 1px;
  font-size: 20px;
}

.wordmark .wc {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  color: var(--text);
}

.wordmark .wf {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-style: italic;
  font-size: 23px;
  color: var(--gold);
}

.tagline {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 7px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 1px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--gold-border);
  border-radius: 10px;
  padding: 8px 12px;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
  margin: 0 0 8px;
}

main.home {
  text-align: center;
}

main.home .lede {
  margin-left: auto;
  margin-right: auto;
}

main.home .cta-row {
  justify-content: center;
}

main.home .section-label {
  text-align: center;
}

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  text-align: left;
}

.features .card {
  margin: 0;
}

.features .card + .card {
  margin-top: 0;
}

@media (max-width: 560px) {
  .features {
    grid-template-columns: 1fr;
  }
}

h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.2;
  margin: 0 0 14px;
  text-wrap: balance;
}

h1 em {
  font-style: italic;
  color: var(--gold);
}

.lede {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 60ch;
  margin: 0 0 36px;
}

.card {
  background: var(--white);
  border: 1px solid var(--gold-border);
  border-radius: 14px;
  padding: 24px;
}

.card + .card {
  margin-top: 16px;
}

.card h2 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 13px;
  margin: 0 0 6px;
}

.card p {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.7;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  border-radius: 14px;
  padding: 14px 22px;
}

.cta-row .btn {
  flex: 1 1 200px;
  max-width: 220px;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-secondary {
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--gold-border-strong);
}

.section-label {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
  margin: 48px 0 16px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--gold-border);
  border-radius: 14px;
  padding: 20px 22px;
}

.faq-item + .faq-item {
  margin-top: 12px;
}

.faq-item h3 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 14px;
  margin: 0 0 8px;
  color: var(--text);
}

.faq-item p {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.7;
}

.faq-item a {
  font-weight: 500;
  text-decoration: underline;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--gold-border-strong);
  border-radius: 14px;
  padding: 28px 24px;
  text-align: center;
  margin: 48px 0 8px;
}

.contact-card .icon {
  font-size: 22px;
  margin-bottom: 10px;
}

.contact-card h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 20px;
  margin: 0 0 6px;
}

.contact-card p {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 4px;
}

.contact-card .note {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 11.5px;
  color: #C0B098;
  margin: 0 0 18px;
}

.contact-email {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--gold-border-strong);
  border-radius: 10px;
  padding: 10px 18px;
  text-decoration: none;
}

.stats {
  display: flex;
  gap: 32px;
  margin: 8px 0 40px;
}

.stat b {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: var(--text);
}

.stat span {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 11px;
  color: var(--text-secondary);
}

/* Replica exata das telas legais do app (LegalScreenShell + LegalBlocks): mesmas cores, fontes,
   bordas tracejadas e tabela, pra ser a mesma identidade visual em cada etapa do material. */
main.legal {
  text-align: left;
}

.legal .legal-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--text);
  margin: 0 0 4px;
}

.legal .legal-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 11px;
  color: var(--text-secondary);
  margin: 0 0 8px;
}

.legal .version-badge {
  display: inline-block;
  background: rgba(184, 137, 42, 0.1);
  border: 1px solid rgba(184, 137, 42, 0.2);
  border-radius: 8px;
  padding: 4px 10px;
  margin: 0 0 20px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 9px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--gold);
}

.legal .intro {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--gold-border);
  padding: 16px;
  margin: 0 0 24px;
}

.legal .intro p {
  margin: 0;
}

.legal-section {
  margin: 0 0 24px;
}

.legal-heading {
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding-bottom: 6px;
  margin-bottom: 10px;
  border-bottom: 1.5px solid rgba(184, 137, 42, 0.15);
}

.legal-num {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: var(--gold);
}

.legal-heading h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  margin: 0;
}

.legal hr {
  border: none;
  height: 1px;
  background: rgba(184, 137, 42, 0.12);
  margin: 24px 0;
}

.legal p {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 13px;
  line-height: 1.7;
  color: #6B5E48;
  text-align: justify;
  margin: 0 0 10px;
}

.legal strong {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  color: var(--text);
}

.legal .pend {
  font-family: 'DM Sans', sans-serif;
  font-style: italic;
  color: var(--danger);
}

.legal ul {
  margin: 0 0 10px;
  padding-left: 0;
  list-style: none;
}

.legal li {
  position: relative;
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 13px;
  line-height: 1.7;
  color: #6B5E48;
  margin-bottom: 5px;
  padding-left: 14px;
}

.legal li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--gold);
}

.legal .callout {
  border-radius: 10px;
  border: 1px dashed;
  padding: 14px;
  margin: 10px 0;
}

.legal .callout p {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 13px;
  line-height: 1.65;
  color: #6B5E48;
  text-align: justify;
  margin: 0;
}

.legal .callout-highlight {
  background: rgba(184, 137, 42, 0.05);
  border-color: rgba(184, 137, 42, 0.25);
}

.legal .callout-warn {
  background: rgba(200, 75, 49, 0.04);
  border-color: rgba(200, 75, 49, 0.2);
}

.legal .callout-info {
  background: rgba(76, 175, 61, 0.04);
  border-color: rgba(76, 175, 61, 0.2);
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid rgba(184, 137, 42, 0.12);
  overflow: hidden;
  margin: 10px 0;
}

.legal th,
.legal td {
  text-align: left;
  padding: 10px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 11px;
  line-height: 1.45;
  color: #6B5E48;
  border-bottom: 1px solid rgba(184, 137, 42, 0.07);
  border-right: 1px solid rgba(184, 137, 42, 0.07);
}

.legal tr:last-child td {
  border-bottom: none;
}

.legal th:last-child,
.legal td:last-child {
  border-right: none;
}

.legal th {
  font-weight: 500;
  color: #8A6020;
  font-size: 10px;
  text-transform: uppercase;
  background: rgba(184, 137, 42, 0.05);
}

.legal-footer {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(184, 137, 42, 0.12);
  text-align: center;
}

.legal-footer p {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 10px;
  line-height: 1.6;
  color: #C0B098;
  text-align: center;
  margin: 0;
}

.legal-footer strong {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  color: var(--text-secondary);
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background: var(--text);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
  z-index: 40;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

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

footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px;
  border-top: 1px solid var(--gold-border);
  text-align: center;
}

footer p {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 10px;
  color: var(--text-secondary);
  margin: 4px 0;
}

footer .link-restrito svg {
  vertical-align: -1px;
}
