@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,800;0,900;1,700&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --terracota: #8B2500;
  --ouro: #D4A017;
  --verde: #1A5E3A;
  --azul: #1A6B8A;
  --bege: #F5F0E8;
  --borda-bege: #E5DED2;
  --texto: #2E2A24;
  --texto-suave: #6B6459;
  --branco: #FFFFFF;
  --vermelho: #B23A1A;
  --sombra: 0 8px 24px rgba(46, 42, 36, 0.08);

  /* Sistema imersivo — neutros escuros de apoio (não são cores novas de marca,
     só o preto/creme que já fazem parte da identidade ao lado das 4 cores) */
  --preto: #0A0806;
  --preto-suave: #15100B;
  --creme: #F5F0E8;
  --ouro-claro: #E8C34C;
  --terracota-escuro: #5E1A00;
  --linha-dourada: rgba(212, 160, 23, 0.35);
  --sombra-dourada: 0 0 40px rgba(212, 160, 23, 0.15);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --fs-hero: clamp(2.75rem, 7vw, 6rem);
  --fs-h1: clamp(2.1rem, 4.5vw, 3.25rem);
  --fs-h2: clamp(1.7rem, 3.2vw, 2.4rem);
  --fs-h3: 1.3rem;
  --fs-lead: clamp(1.05rem, 1.6vw, 1.3rem);
  --fs-eyebrow: 0.8rem;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 100px;
  --space-7: 148px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Fundo contínuo escuro em todo o site — inclusive nas páginas de texto
   corrido (Sobre, Privacidade, Termos, Suporte). A separação entre seções
   vem da tipografia e do espaçamento, não de blocos de cor alternados
   (isso fica reservado à seção "As Cores da Nossa Raiz" da Home). */
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--creme);
  background: var(--preto-suave);
  line-height: 1.7;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

a { color: var(--ouro-claro); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header.site-header {
  background: var(--branco);
  border-bottom: 1px solid var(--borda-bege);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}

/* Sobre o hero imersivo: header nasce transparente com texto claro,
   e ganha fundo sólido escuro assim que o usuário rola (classe .is-scrolled
   via js/reveal.js), pra nunca perder contraste de leitura do menu. */
header.site-header.transparent {
  background: transparent;
  border-bottom-color: transparent;
  position: fixed;
  top: 0;
  width: 100%;
}
header.site-header.transparent .brand,
header.site-header.transparent nav.main-nav a,
header.site-header.transparent .nav-toggle {
  color: var(--creme);
}
header.site-header.transparent nav.main-nav a:hover,
header.site-header.transparent nav.main-nav a.active {
  color: var(--ouro-claro);
}
header.site-header.transparent.is-scrolled {
  background: rgba(10, 8, 6, 0.86);
  backdrop-filter: blur(10px);
  border-bottom-color: rgba(212, 160, 23, 0.18);
}
@media (max-width: 760px) {
  header.site-header.transparent nav.main-nav.open {
    background: var(--preto);
  }
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--texto);
}

.brand img { width: 38px; height: 38px; border-radius: 50%; }

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  color: var(--texto);
  font-weight: 600;
  font-size: 0.95rem;
}

nav.main-nav a:hover, nav.main-nav a.active {
  color: var(--terracota);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--texto);
  cursor: pointer;
}

@media (max-width: 760px) {
  nav.main-nav {
    display: none;
    width: 100%;
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
  }
  nav.main-nav li { border-top: 1px solid var(--borda-bege); }
  nav.main-nav a { display: block; padding: 12px 0; }
  .nav-toggle { display: block; }
  .nav-wrap { flex-wrap: wrap; }
  header.site-header:not(.transparent) { position: static; }
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--bege) 0%, #EFE7D8 100%);
  padding: 72px 0 56px;
  text-align: center;
}

.hero img.hero-logo {
  width: 140px;
  height: 140px;
  margin: 0 auto 28px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--terracota);
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--texto-suave);
  max-width: 620px;
  margin: 0 auto 32px;
}

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--terracota);
  color: var(--branco);
}
.btn-primary:hover { background: #6e1d00; text-decoration: none; box-shadow: 0 10px 24px rgba(139,37,0,0.35); }

.btn-secondary {
  background: transparent;
  color: var(--terracota);
  border-color: var(--terracota);
}
.btn-secondary:hover { background: var(--terracota); color: var(--branco); text-decoration: none; }

.btn-outline-light {
  background: transparent;
  color: var(--branco);
  border-color: var(--branco);
}

.btn-gold {
  background: var(--ouro);
  color: var(--preto);
  border-color: var(--ouro);
}
.btn-gold:hover {
  background: transparent;
  color: var(--ouro);
  border-color: var(--ouro);
  box-shadow: var(--sombra-dourada);
}

.btn-gold-outline {
  background: transparent;
  color: var(--ouro-claro);
  border-color: var(--linha-dourada);
}
.btn-gold-outline:hover {
  background: var(--ouro);
  color: var(--preto);
  border-color: var(--ouro);
  box-shadow: var(--sombra-dourada);
}

.badge-soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--branco);
  border: 1px solid var(--borda-bege);
  color: var(--texto-suave);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 20px;
}

.badge-soon .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ouro);
}

.badge-soon.dark {
  background: rgba(245,240,232,0.06);
  border-color: rgba(212,160,23,0.35);
  color: rgba(245,240,232,0.85);
}
.badge-soon.dark .dot { background: var(--ouro-claro); }

/* Sections */
section { padding: 64px 0; }

.section-title {
  text-align: center;
  margin-bottom: 12px;
  color: var(--verde);
}

.section-sub {
  text-align: center;
  color: var(--texto-suave);
  max-width: 640px;
  margin: 0 auto 48px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

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

.card {
  background: var(--branco);
  border: 1px solid var(--borda-bege);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--sombra);
}

.card .icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: var(--branco);
}

.icon.bg-terracota { background: var(--terracota); }
.icon.bg-verde { background: var(--verde); }
.icon.bg-azul { background: var(--azul); }

.card h3 { font-size: 1.15rem; color: var(--texto); margin-bottom: 8px; }
.card p { color: var(--texto-suave); font-size: 0.95rem; margin: 0; }

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 8px;
}

@media (max-width: 700px) {
  .feature-list { grid-template-columns: 1fr; }
}

.feature-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--branco);
  border: 1px solid var(--borda-bege);
  border-radius: 14px;
  padding: 18px 20px;
}

.feature-item .dot-num {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--bege);
  border: 2px solid var(--ouro);
  color: var(--terracota);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
}

.feature-item h4 { margin: 0 0 4px; font-size: 1rem; font-family: 'Inter'; font-weight: 700; }
.feature-item p { margin: 0; font-size: 0.9rem; color: var(--texto-suave); }

.section-alt {
  background: var(--branco);
  border-top: 1px solid var(--borda-bege);
  border-bottom: 1px solid var(--borda-bege);
}

.section-dark {
  background: var(--verde);
  color: var(--bege);
}
.section-dark h2 { color: var(--branco); }
.section-dark .section-sub { color: rgba(245,240,232,0.85); }

.cta-final {
  text-align: center;
  padding: 64px 0;
}

/* Content pages (texto corrido) — fundo contínuo, sem cartão nem troca de
   cor de fundo. A separação entre seções vem só de tipografia (h2 grandes,
   serifados, dourados, funcionando como âncoras) e espaçamento generoso. */
.legal-page {
  margin: 0 auto;
  max-width: 720px;
  padding: var(--space-4) 24px var(--space-6);
}

@media (max-width: 600px) {
  .legal-page { padding: var(--space-3) 20px var(--space-5); }
}

.legal-page h1 { color: var(--ouro-claro); font-size: var(--fs-h1); }
.legal-page h2 {
  font-family: var(--font-display);
  color: var(--ouro-claro);
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
}
.legal-page h2:first-child { margin-top: 0; }

/* Cabeçalhos numerados ("1. Quem somos") — número grande e de destaque,
   título ao lado um pouco menor que o padrão de .legal-page h2 acima. */
.legal-page h2.numbered {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.legal-page h2.numbered .h2-num {
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--ouro);
  line-height: 1;
}
.legal-page h2.numbered .h2-title {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
}
.legal-page h3 { font-size: 1.05rem; color: var(--creme); margin-top: var(--space-3); }
.legal-page p, .legal-page li { color: rgba(245, 240, 232, 0.82); }
.legal-page strong { color: var(--creme); }
.legal-page ul, .legal-page ol { padding-left: 1.3em; }
.legal-page li { margin-bottom: 0.4em; }
.legal-page a { border-bottom: 1px solid var(--linha-dourada); }
.legal-page a:hover { border-bottom-color: var(--ouro-claro); text-decoration: none; }

/* "Última atualização" — discreta de propósito, nunca um destaque visual */
.updated-note {
  font-size: 0.78rem;
  color: rgba(245, 240, 232, 0.4);
  font-style: italic;
  margin: 0 0 var(--space-4);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2em 0;
  font-size: 0.9rem;
}
.legal-table th, .legal-table td {
  border: 1px solid rgba(212, 160, 23, 0.22);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  color: rgba(245, 240, 232, 0.82);
}
.legal-table th {
  background: rgba(212, 160, 23, 0.08);
  color: var(--ouro-claro);
  font-family: var(--font-body);
}

.placeholder {
  background: transparent;
  border: 1px dashed rgba(212, 160, 23, 0.6);
  color: var(--ouro-claro);
  padding: 1px 8px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.92em;
  white-space: nowrap;
}

.quote-box {
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--ouro);
  padding: 16px 20px;
  border-radius: 4px;
  font-style: italic;
  color: rgba(245, 240, 232, 0.82);
}

/* Sobre page specifics */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: var(--space-4) 0;
}
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } }

.pillar {
  text-align: center;
  padding: 32px 20px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background-color 0.4s var(--ease);
}
.pillar:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.34);
}
.pillar::before {
  content: '';
  display: block;
  width: 36px;
  height: 2px;
  background: var(--ouro);
  margin: 0 auto 16px;
}
.pillar .pillar-title {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ouro-claro);
  font-size: 1.1rem;
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}
.pillar p { color: rgba(245, 240, 232, 0.65); font-size: 0.92rem; }

.entity-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 160, 23, 0.2);
  border-radius: 14px;
  padding: 24px 28px;
  margin: var(--space-3) 0;
}
.entity-card dl { display: grid; grid-template-columns: 160px 1fr; gap: 8px 16px; margin: 0; }
.entity-card dt { font-weight: 700; color: var(--ouro-claro); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; }
.entity-card dd { margin: 0; color: var(--creme); }

@media (max-width: 560px) {
  .entity-card dl { grid-template-columns: 1fr; }
  .entity-card dt { margin-top: 10px; }
}

/* Contact / support page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(26, 94, 58, 0.4);
  border-left: 3px solid var(--verde);
  border-radius: 16px;
  padding: 32px;
}
.contact-info-card h3 { font-family: var(--font-display); color: var(--ouro-claro); }
.contact-info-card a { color: var(--ouro-claro); font-weight: 700; }
.contact-info-card .row { display: flex; gap: 12px; margin-bottom: 18px; align-items: flex-start; }
.contact-info-card .row .label { font-weight: 700; color: rgba(245, 240, 232, 0.5); display: block; margin-bottom: 2px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }
.contact-info-card p { color: rgba(245, 240, 232, 0.65); }

form.contact-form {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 160, 23, 0.2);
  border-radius: 16px;
  padding: 28px;
}

form.contact-form label {
  display: block;
  font-weight: 700;
  font-size: 0.82rem;
  margin: 16px 0 6px;
  color: rgba(245, 240, 232, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
form.contact-form label:first-child { margin-top: 0; }

form.contact-form input,
form.contact-form textarea,
form.contact-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(212, 160, 23, 0.25);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--creme);
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
form.contact-form input::placeholder,
form.contact-form textarea::placeholder { color: rgba(245, 240, 232, 0.35); }
form.contact-form input:focus,
form.contact-form textarea:focus,
form.contact-form select:focus {
  outline: none;
  border-color: var(--ouro);
  background: rgba(212, 160, 23, 0.06);
}
form.contact-form select option { background: var(--preto-suave); color: var(--creme); }
form.contact-form textarea { min-height: 120px; resize: vertical; }
form.contact-form button { margin-top: 20px; width: 100%; }

.form-note { font-size: 0.8rem; color: rgba(245, 240, 232, 0.45); margin-top: 12px; }

/* Footer */
footer.site-footer {
  background: var(--preto);
  color: #D9D0C3;
  padding: 0 0 24px;
  font-size: 0.88rem;
  position: relative;
}

footer.site-footer .footer-top { padding-top: 48px; }

footer.site-footer .footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

@media (max-width: 760px) {
  footer.site-footer .footer-top { grid-template-columns: 1fr; gap: 28px; }
}

footer.site-footer h4 {
  color: var(--ouro);
  font-family: 'Inter';
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

footer.site-footer .footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
footer.site-footer .footer-brand img { width: 34px; height: 34px; border-radius: 50%; }
footer.site-footer .footer-brand span {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  color: var(--branco);
  font-size: 1.05rem;
}

footer.site-footer ul { list-style: none; padding: 0; margin: 0; }
footer.site-footer li { margin-bottom: 8px; }
footer.site-footer a { color: #D9D0C3; }
footer.site-footer a:hover { color: var(--ouro); }

footer.site-footer .legal-block dl { margin: 0; }
footer.site-footer .legal-block dt { color: #A79E8F; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 10px; }
footer.site-footer .legal-block dt:first-child { margin-top: 0; }
footer.site-footer .legal-block dd { margin: 2px 0 0; color: var(--branco); }

footer.site-footer .footer-bottom {
  padding-top: 20px;
  text-align: center;
  color: #A79E8F;
  font-size: 0.8rem;
}

/* ==========================================================================
   SISTEMA IMERSIVO — Home
   Mesma paleta e neutros definidos em :root. Nada de cor nova aqui.
   ========================================================================== */

/* --- Friso ornamental — divisor preto/dourado inspirado em padrões
   gráficos de matriz africana, usado entre blocos de cor cheios e como
   respiro entre seções. É um SVG tileável embutido via data URI, sem
   pedir nenhum arquivo externo. --- */
.friso {
  background-color: var(--preto);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Crect width='40' height='40' fill='%230A0806'/%3E%3Cpath d='M20 3 L30 20 L20 37 L10 20 Z' fill='none' stroke='%23D4A017' stroke-width='1.2' opacity='0.85'/%3E%3Ccircle cx='20' cy='20' r='2.2' fill='%23D4A017'/%3E%3Ccircle cx='20' cy='3' r='1.1' fill='%23D4A017' opacity='0.6'/%3E%3Ccircle cx='20' cy='37' r='1.1' fill='%23D4A017' opacity='0.6'/%3E%3C/svg%3E");
  background-repeat: repeat;
}
.friso-h { height: 22px; width: 100%; background-size: 22px 22px; }
.friso-v { width: 22px; background-size: 22px 22px; }

/* --- Header transparente: ver regras acima; aqui só o brand maior no hero --- */

/* --- Hero imersivo --- */
.hero-immersive {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 60% at 50% 15%, rgba(139,37,0,0.35) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 85% 85%, rgba(26,107,138,0.18) 0%, transparent 60%),
    var(--preto);
}

.hero-immersive .hero-symbol {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(900px, 140vw);
  height: auto;
  transform: translate(-50%, -50%);
  opacity: 0.08;
  filter: brightness(0) invert(1);
  pointer-events: none;
  will-change: transform;
}

.hero-immersive .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 24px;
}

/* --- O selo oficial do Aquilomba planando pela tela e voltando a pousar
   nele mesmo — MESMA arte usada no header e como marca d'água (nenhuma
   ilustração nova, nenhuma troca de elemento no meio do caminho).
   Repouso (sem .playing) já É a pose final e também o ponto de partida:
   translate3d(0,0,0) scale(var(--land-scale)) — o voo começa E termina
   exatamente nessa aparência, um "ida e volta" que sai do selo do
   header e pousa de volta nele. Base grande (bigSize, via JS) decodifica
   a imagem em alta resolução desde o início — encolher via scale() é
   sempre nítido, ampliar a partir de uma caixa pequena não seria. O
   logo real do header (#header-logo) fica invisível enquanto isso (ver
   html.hero-flight-pending) e reaparece no instante exato do pouso —
   script inline no <head> do index.html decide se isso tudo roda. */
html.hero-flight-pending #header-logo { visibility: hidden; }

.sankofa-flight {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 95;
  display: none;
  transform-origin: center center;
  transform: translate3d(0, 0, 0) scale(var(--land-scale, 0.06));
  filter: blur(0px);
  will-change: transform, filter;
}
.sankofa-flight.playing {
  display: block;
  animation-name: sankofa-planeio;
  animation-duration: 5.6s;
  animation-timing-function: cubic-bezier(0.45, 0, 0.15, 1);
  animation-fill-mode: both;
}

/* Trajetória: parte de dentro do selo (0%), decola em direção ao canto
   superior direito crescendo rápido, plana num arco largo e contínuo
   pela tela — corpo curvando suavemente, sem paradas bruscas, como uma
   águia fazendo uma volta ampla no ar — e desacelera de volta pro selo,
   com um "assentar" bem sutil no instante exato do pouso (100% = mesma
   pose do 0%, fechando o ciclo). Sem blur de movimento: é um planeio
   calmo e legível, não um rastro veloz. */
@keyframes sankofa-planeio {
  0%   { transform: translate3d(0, 0, 0)          rotate(0deg)   scale(var(--land-scale)); }
  10%  { transform: translate3d(16vw, -13vh, 0)    rotate(9deg)   scale(calc(var(--land-scale) * 7)); }
  26%  { transform: translate3d(42vw, -7vh, 0)     rotate(15deg)  scale(1); }
  44%  { transform: translate3d(23vw, 24vh, 0)     rotate(5deg)   scale(1.04); }
  62%  { transform: translate3d(3vw, 35vh, 0)      rotate(-9deg)  scale(0.8); }
  80%  { transform: translate3d(-6vw, 9vh, 0)      rotate(-4deg)  scale(0.28); }
  92%  { transform: translate3d(-0.8vw, -0.6vh, 0) rotate(2deg)   scale(calc(var(--land-scale) * 1.22)); }
  100% { transform: translate3d(0, 0, 0)          rotate(0deg)   scale(var(--land-scale)); }
}

/* --- Anel dourado "esperando" no header — aparece assim que o pássaro
   decola, pulsa bem suavemente, e se apaga no instante do pouso. --- */
.sankofa-ring-hint {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(212, 160, 23, 0.4);
  box-shadow: 0 0 16px rgba(212, 160, 23, 0.22);
  pointer-events: none;
  z-index: 94;
  display: none;
}
.sankofa-ring-hint.playing {
  display: block;
  animation: sankofa-anel 5.6s ease-in-out both;
}
@keyframes sankofa-anel {
  0%, 100% { opacity: 0; transform: scale(1); }
  15%  { opacity: 0.6; transform: scale(1.1); }
  50%  { opacity: 0.35; transform: scale(1); }
  85%  { opacity: 0.3; transform: scale(1.03); }
}

@media (prefers-reduced-motion: reduce) {
  .sankofa-flight,
  .sankofa-ring-hint {
    display: none !important;
    animation: none !important;
  }
  html.hero-flight-pending #header-logo { visibility: visible; }
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ouro-claro);
  margin-bottom: var(--space-3);
}

.hero-immersive h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-hero);
  line-height: 1.08;
  color: var(--creme);
  margin: 0 0 var(--space-3);
}
.hero-immersive h1 em {
  font-style: italic;
  font-weight: 700;
  background: linear-gradient(180deg, var(--ouro-claro) 0%, var(--ouro) 60%, #A47611 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-immersive .hero-lead {
  font-size: var(--fs-lead);
  color: rgba(245,240,232,0.78);
  max-width: 620px;
  margin: 0 auto var(--space-4);
}

.hero-immersive .hero-actions {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}

.scroll-cue {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(245,240,232,0.55);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  z-index: 2;
}
.scroll-cue .line {
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, var(--ouro), transparent);
  animation: scrollcue 1.8s var(--ease) infinite;
}
@keyframes scrollcue {
  0% { transform: scaleY(0.3); transform-origin: top; opacity: 0.4; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(0.3); transform-origin: bottom; opacity: 0.4; }
}

/* --- Page hero compacto (Sobre, Privacidade, Termos, Suporte) — a mesma
   linguagem do hero da Home (preto, serifado dourado, símbolo Sankofa em
   marca d'água), só que baixo, pra abrir caminho rápido pro conteúdo
   sóbrio e legível abaixo. --- */
.page-hero {
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(139,37,0,0.28) 0%, transparent 60%),
    var(--preto);
  padding: var(--space-6) 0 var(--space-5);
  text-align: center;
  overflow: hidden;
}
.page-hero .hero-symbol-sm {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(420px, 90vw);
  transform: translate(-50%, -50%);
  opacity: 0.06;
  filter: brightness(0) invert(1);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow { color: var(--ouro-claro); }
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-h1);
  color: var(--creme);
  margin: 0 0 var(--space-1);
}
.page-hero h1 em { font-style: italic; color: var(--ouro-claro); }
.page-hero .page-hero-sub {
  color: rgba(245,240,232,0.7);
  max-width: 560px;
  margin: 0 auto;
  font-size: var(--fs-lead);
}

/* --- Seção escura editorial (narrativa) --- */
.section-editorial {
  background: var(--preto-suave);
  color: var(--creme);
  padding: var(--space-7) 0;
  position: relative;
}

.section-editorial .eyebrow { color: var(--ouro-claro); }

.section-editorial h2 {
  font-size: var(--fs-h1);
  color: var(--creme);
  max-width: 780px;
}

.section-editorial h2 em {
  font-style: italic;
  color: var(--ouro-claro);
}

.editorial-lead {
  font-size: var(--fs-lead);
  color: rgba(245,240,232,0.72);
  max-width: 640px;
  margin-bottom: 0;
}

.editorial-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-6);
  align-items: center;
  margin-top: var(--space-5);
}
@media (max-width: 860px) {
  .editorial-grid { grid-template-columns: 1fr; gap: var(--space-4); }
}

.editorial-stats {
  display: grid;
  gap: var(--space-3);
}
.editorial-stat {
  border-left: 2px solid var(--linha-dourada);
  padding-left: var(--space-3);
}
.editorial-stat .num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--ouro-claro);
  font-weight: 800;
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}
.editorial-stat .label {
  color: rgba(245,240,232,0.68);
  font-size: 0.92rem;
}

/* --- As Cores da Nossa Raiz --- */
.raiz-section {
  background: var(--preto);
  padding: var(--space-6) 0 0;
}
.raiz-section .raiz-heading {
  text-align: center;
  padding: 0 24px var(--space-5);
}
.raiz-section h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  background: linear-gradient(180deg, var(--ouro-claro), var(--ouro) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
}
.raiz-section .raiz-sub {
  color: rgba(245,240,232,0.65);
  max-width: 560px;
  margin: var(--space-2) auto 0;
}

.raiz-blocks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 860px) {
  .raiz-blocks { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .raiz-blocks { grid-template-columns: 1fr; }
}

.raiz-block { position: relative; display: flex; flex-direction: column; }

.raiz-swatch {
  height: 300px;
  display: flex;
  align-items: flex-end;
  padding: var(--space-3);
  position: relative;
}
.raiz-swatch::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.35) 100%);
}
.raiz-swatch .raiz-tag {
  position: relative;
  z-index: 1;
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  text-transform: uppercase;
}

.raiz-block.b-terracota .raiz-swatch { background: var(--terracota); }
.raiz-block.b-ouro .raiz-swatch { background: var(--ouro); }
.raiz-block.b-ouro .raiz-tag { color: rgba(10,8,6,0.7); }
.raiz-block.b-verde .raiz-swatch { background: var(--verde); }
.raiz-block.b-azul .raiz-swatch { background: var(--azul); }

.raiz-text {
  background: var(--creme);
  padding: var(--space-3) var(--space-3) var(--space-4);
  flex: 1;
  border-right: 1px solid var(--borda-bege);
}
.raiz-block:last-child .raiz-text { border-right: none; }

.raiz-text h3 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--terracota);
  margin: 0 0 2px;
}
.raiz-text .raiz-hex {
  display: block;
  font-size: 0.78rem;
  color: var(--texto-suave);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.raiz-text p {
  color: #6E5A2E;
  font-size: 0.9rem;
  margin: 0;
}

/* friso vertical entre os blocos de cor, ecoando as bordas ornamentais
   da referência de marca ("As Cores da Nossa Raiz") */
.raiz-block:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 8px;
  background-color: var(--preto);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='40'%3E%3Crect width='8' height='40' fill='%230A0806'/%3E%3Cpath d='M4 4 L7 20 L4 36 L1 20 Z' fill='none' stroke='%23D4A017' stroke-width='0.8' opacity='0.9'/%3E%3C/svg%3E");
  background-repeat: repeat-y;
  background-size: 8px 40px;
  z-index: 2;
}
@media (max-width: 560px) {
  .raiz-block:not(:last-child)::after {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='8'%3E%3Crect width='40' height='8' fill='%230A0806'/%3E%3Cpath d='M4 4 L20 1 L36 4 L20 7 Z' fill='none' stroke='%23D4A017' stroke-width='0.8' opacity='0.9'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 40px 8px;
  }
}

/* --- Funcionalidades (cards v2) --- */
.section-features {
  background: var(--bege);
  padding: var(--space-7) 0;
}

.feature-list-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-5);
}
@media (max-width: 900px) { .feature-list-v2 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .feature-list-v2 { grid-template-columns: 1fr; } }

.feature-card-v2 {
  background: var(--branco);
  border: 1px solid var(--borda-bege);
  border-radius: 18px;
  padding: var(--space-3);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.feature-card-v2:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(46,42,36,0.12);
  border-color: var(--linha-dourada);
}
.feature-card-v2 .icon-badge {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-2);
  color: var(--branco);
}
.feature-card-v2 h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.02rem;
  margin: 0 0 6px;
}
.feature-card-v2 p { font-size: 0.9rem; color: var(--texto-suave); margin: 0; }

/* --- CTA final imersivo --- */
.cta-immersive {
  position: relative;
  background: var(--preto);
  padding: var(--space-7) 0;
  text-align: center;
  overflow: hidden;
}
.cta-immersive::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(139,37,0,0.4), transparent 70%);
}
.cta-immersive .container { position: relative; z-index: 1; }
.cta-immersive h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  color: var(--creme);
  max-width: 700px;
  margin: 0 auto var(--space-2);
}
.cta-immersive h2 em {
  font-style: italic;
  color: var(--ouro-claro);
}
.cta-immersive p {
  color: rgba(245,240,232,0.7);
  max-width: 560px;
  margin: 0 auto var(--space-4);
}
.cta-immersive .hero-actions {
  display: flex; gap: 18px; justify-content: center; flex-wrap: wrap;
}

/* --- Scroll reveal utility (Intersection Observer via js/reveal.js) --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue .line { animation: none; }
  .hero-immersive .hero-symbol { transition: none !important; }
}


/* ------------------------------------------------------------------
   Sobre — pares que se completam ("A realidade / O que fazemos" e
   "O verbo / O símbolo"). Cada par é uma tensão proposital, por isso
   os dois cartões têm o mesmo peso visual e cores de marca distintas.
   ------------------------------------------------------------------ */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: var(--space-3) 0 var(--space-4);
}
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }

.duo-card {
  padding: 24px 22px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left-width: 3px;
  border-left-style: solid;
}
.duo-card.realidade { border-left-color: var(--terracota); }
.duo-card.solucao   { border-left-color: var(--verde); }
.duo-card.verbo     { border-left-color: var(--ouro); }
.duo-card.simbolo   { border-left-color: var(--azul); }

.duo-card h3 { margin: 0 0 8px; font-size: var(--fs-h3); color: var(--creme); }
.duo-card p  { margin: 0; }

.duo-eyebrow {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ouro);
  margin-bottom: 4px;
}

/* Rodapé — redes sociais */
.footer-social { margin-top: 14px; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #B7AE9F;
  font-size: 0.9rem;
  border-bottom: 1px solid transparent;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.footer-social a:hover { color: var(--ouro-claro); border-bottom-color: var(--linha-dourada); text-decoration: none; }
.footer-social svg { flex: none; }


/* ------------------------------------------------------------------
   Sobre — figuras do símbolo. Arte da marca, não ilustração genérica:
   entram em tamanho contido para não competir com o texto.
   ------------------------------------------------------------------ */
.sobre-figure { margin: var(--space-3) 0 var(--space-4); }
.sobre-figure img {
  display: block;
  margin: 0 auto;
  max-width: min(100%, 320px);
  height: auto;
}
.sobre-figure.adinkras img { max-width: min(100%, 440px); }
.sobre-figure figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: 0.78rem;
  font-style: italic;
  color: rgba(245, 240, 232, 0.45);
}

/* ------------------------------------------------------------------
   Página do aplicativo — um cartão por módulo, captura em cima e o
   problema que ele resolve embaixo. A moldura da captura mantém a
   proporção de tela de celular mesmo antes das imagens existirem.
   ------------------------------------------------------------------ */
.app-intro { max-width: 42rem; }

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: var(--space-5);
}
@media (max-width: 980px) { .app-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .app-grid { grid-template-columns: 1fr; } }

.app-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.app-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  color: var(--creme);
}
.app-card p { margin: 0; font-size: 0.95rem; color: rgba(245, 240, 232, 0.8); }

.eyebrow-min {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ouro);
}

.app-print {
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
}
.app-print img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* Enquanto a captura não existe, a moldura se explica em vez de quebrar */
.app-print.vazio { border-style: dashed; border-color: rgba(255, 255, 255, 0.14); }
.app-print.vazio::after {
  content: "captura em breve";
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.3);
}

.app-extras { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--space-3); }
.app-extra {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--linha-dourada);
  font-size: 0.88rem;
  color: rgba(245, 240, 232, 0.85);
}
