/* ════════════════════════════════════════════════════════════════════
   AlejandrIA — plataforma de materiais técnicos (livros e, em breve, cursos).
   Identidade herdada de _brand.yml (teal / laranja / creme) + a tipografia
   do próprio livro (Source Serif 4) nos títulos: a plataforma lê como
   biblioteca técnica, não como banner de marketing.

   Arquitetura escalável:
   · index.html ............ landing da PLATAFORMA (hero + catálogo de materiais)
   · fundamentos-llm.html .. página de DETALHE de um material (o livro)
   · cada novo material = 1 card no catálogo + 1 página de detalhe.

   Princípios visuais: cor chapada (sem gradiente), sem borda-caixa nem
   sombra decorativa, espaço usado com intenção, movimento sóbrio.
   ════════════════════════════════════════════════════════════════════ */

:root {
  --teal:        #052f35;
  --teal-deep:   #041f24;   /* faixas escuras de maior profundidade */
  --teal-line:   #14474e;   /* divisórias sobre teal */
  --teal-link:   #0b5d68;
  --cream:       #f5f1e8;
  --cream-deep:  #e8e2d4;   /* cards claros */
  --cream-press: #ddd5c2;   /* hover / filetes sobre creme */
  --cream-soft:  #cfc9ba;   /* texto suave SOBRE teal */
  --orange:      #ff6900;   /* preenchimentos e texto SOBRE teal (≈5:1) */
  --orange-ink:  #9c4000;   /* raro: laranja-texto SOBRE creme (AA ✓) */
  --ink:         #1a1a1a;
  --ink-soft:    #4f4f4d;   /* texto suave SOBRE creme (AA ✓, sem opacity) */

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans:  Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, monospace;

  --wrap: min(1240px, 92vw);
  --r: 10px;

  /* Escala z-index semântica. */
  --z-nav: 100;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);   /* ease-out-quint, sem bounce */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; }

.wrap { width: var(--wrap); margin-inline: auto; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }
h1 { text-wrap: balance; }
p { text-wrap: pretty; }

.kicker {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 1rem;
}
.kicker--accent { color: var(--orange); }

/* Foco visível — teal no claro, creme no escuro. */
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 3px; }
.on-teal :focus-visible, .dark :focus-visible { outline-color: var(--cream); }

/* ── Barra de topo ───────────────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.top.is-scrolled { border-bottom-color: var(--cream-press); }
.top-bar { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 0; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand img { height: 30px; width: auto; display: block; }
.top-bar nav { display: flex; gap: 0.2rem; align-items: center; }
.top-bar nav a {
  font-size: 0.9rem; font-weight: 500; text-decoration: none; color: var(--ink-soft);
  padding: 0.55rem 0.8rem; border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}
.top-bar nav a:hover { color: var(--ink); background: var(--cream-deep); }
.top-bar nav a.nav-cta { color: var(--cream); background: var(--teal); }
.top-bar nav a.nav-cta:hover { background: var(--teal-deep); }

/* ── Dropdown "Edições" da navbar ─────────────────────────────────────
   Mostra a edição atual do livro (Edição 2) e um caminho para abrir a
   Edição 1 arquivada ou ver o changelog. Clique para abrir (não hover),
   para funcionar igual em desktop e touch. */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font: inherit; font-size: 0.9rem; font-weight: 500; color: var(--ink-soft);
  background: none; border: none; cursor: pointer;
  padding: 0.55rem 0.8rem; border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-dropdown-toggle:hover,
.nav-dropdown.is-open .nav-dropdown-toggle { color: var(--ink); background: var(--cream-deep); }
.nav-dropdown-caret { font-size: 0.65em; transition: transform 0.15s ease; }
.nav-dropdown.is-open .nav-dropdown-caret { transform: rotate(180deg); }
.nav-dropdown-menu {
  display: none;
  position: absolute; top: calc(100% + 0.3rem); left: 0;
  min-width: 250px; background: var(--cream); border: 1px solid var(--cream-press);
  border-radius: var(--r); box-shadow: 0 10px 26px rgba(5, 47, 53, 0.16);
  padding: 0.5rem 0; z-index: calc(var(--z-nav) + 1);
}
.nav-dropdown.is-open .nav-dropdown-menu { display: block; }
.nav-dropdown-book {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-soft); padding: 0.4rem 1rem 0.5rem;
}
.nav-dropdown-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
  padding: 0.5rem 1rem; font-size: 0.9rem; text-decoration: none; color: var(--ink);
}
.nav-dropdown-menu a:hover { background: var(--cream-deep); }
.nav-dropdown-tag {
  font-family: var(--mono); font-size: 0.62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.02em; color: var(--ink-soft);
}
.nav-dropdown-sep { border: 0; border-top: 1px solid var(--cream-press); margin: 0.4rem 0; }
.nav-dropdown-changelog { font-weight: 600; color: var(--teal-link); }

/* Alternador de idioma — páginas PT e ES independentes. */
.lang { display: inline-flex; align-items: center; margin-left: 0.4rem; font-family: var(--mono); font-size: 0.78rem; }
.lang a { padding: 0.45rem 0.5rem; color: var(--ink-soft); text-decoration: none; border-radius: 5px; transition: color 0.15s ease, background 0.15s ease; }
.lang a:hover { color: var(--ink); background: var(--cream-deep); }
.lang a.is-active { color: var(--ink); font-weight: 600; }
.lang .sep { color: var(--cream-press); padding: 0 0.1rem; }
/* Bandeiras do seletor de idioma (SVG inline; rendem igual em todo SO,
   ao contrário de emoji de bandeira, que no Windows vira "BR"/"ES"). */
.lang a { padding: 0.35rem 0.35rem; }
.lang a .flag { display: inline-block; width: 24px; height: 16px; border-radius: 3px; vertical-align: middle; background-size: cover; background-position: center; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12); opacity: 0.5; transition: opacity 0.15s ease; }
.lang a:hover .flag, .lang a.is-active .flag { opacity: 1; }
.flag-br { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 20'><rect width='28' height='20' fill='%23009b3a'/><path d='M14 2 26 10 14 18 2 10Z' fill='%23fedf00'/><circle cx='14' cy='10' r='3.7' fill='%23002776'/></svg>"); }
.flag-es { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 20'><rect width='28' height='20' fill='%23c60b1e'/><rect y='5' width='28' height='10' fill='%23ffc400'/></svg>"); }
.flag-us { background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 20'><rect width='28' height='20' fill='%23ffffff'/><rect y='1.54' width='28' height='1.54' fill='%23b22234'/><rect y='4.62' width='28' height='1.54' fill='%23b22234'/><rect y='7.69' width='28' height='1.54' fill='%23b22234'/><rect y='10.77' width='28' height='1.54' fill='%23b22234'/><rect y='13.85' width='28' height='1.54' fill='%23b22234'/><rect y='16.92' width='28' height='1.54' fill='%23b22234'/><rect width='11.2' height='9.23' fill='%233c3b6e'/></svg>"); }

/* ── Botões ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--sans); font-weight: 600; font-size: 0.95rem; text-decoration: none;
  padding: 0.78rem 1.4rem; border-radius: 7px; border: 1.5px solid transparent;
  transition: transform 0.18s var(--ease), background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn .seta { transition: transform 0.18s var(--ease); }
.btn:hover .seta { transform: translateX(4px); }
.btn-primary { background: var(--teal); color: var(--cream); }
.btn-primary:hover { background: var(--teal-deep); transform: translateY(-2px); }
.btn-accent { background: var(--orange); color: var(--teal); }
.btn-accent:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-outline { border-color: var(--teal); color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: var(--cream); transform: translateY(-2px); }
.on-teal .btn-outline { border-color: var(--cream-soft); color: var(--cream); }
.on-teal .btn-outline:hover { background: var(--cream); color: var(--teal); }

.txt-link { font-family: var(--mono); font-size: 0.8rem; color: var(--teal-link); text-decoration: none; display: inline-flex; gap: 0.4rem; align-items: center; }
.txt-link .seta { transition: transform 0.15s var(--ease); }
.txt-link:hover .seta { transform: translateX(4px); }

/* ── Hero (2 colunas: discurso da plataforma + grafo animado) ────────── */
.hero { padding: clamp(2.4rem, 5vw, 4.6rem) 0 clamp(2rem, 4vw, 3.6rem); }
.hero .wrap { display: grid; grid-template-columns: 1.04fr 0.96fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin: 0 0 1.1rem; }
.hero h1 .ac { color: var(--orange); }
.hero .lead { font-size: clamp(1.05rem, 1.4vw, 1.18rem); color: var(--ink-soft); max-width: 54ch; margin: 0 0 1.8rem; }
.hero .acoes { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* Grafo de conhecimento — eco das capas e do tema "atenção". */
.hero-art { position: relative; aspect-ratio: 11 / 10; }
.hero-art svg { width: 100%; height: 100%; display: block; overflow: visible; }
.hero-art .edge { stroke: var(--teal); stroke-width: 1.1; opacity: 0.22; }
.hero-art .edge-hot { stroke: var(--orange); stroke-width: 2; opacity: 0.85; }
.hero-art .nd { fill: var(--teal); transform-box: fill-box; transform-origin: center; }
.hero-art .nd-soft { fill: var(--teal); opacity: 0.45; transform-box: fill-box; transform-origin: center; }
.hero-art .core { fill: var(--orange); transform-box: fill-box; transform-origin: center; }
.hero-art .core-glow { fill: var(--orange); transform-box: fill-box; transform-origin: center; opacity: 0.35; }

/* ── Seções genéricas ────────────────────────────────────────────────── */
.sec { padding: clamp(2.6rem, 5vw, 4.4rem) 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; margin: 0 0 1.8rem; }
.sec-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: 0; }
.sec-head .conta { font-family: var(--mono); font-size: 0.8rem; color: var(--ink-soft); }
.divisor { border: 0; border-top: 1px solid var(--cream-press); margin: 0; }

/* ── Catálogo de materiais ───────────────────────────────────────────── */
.grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 1.3rem; }

.material {
  display: grid; grid-template-columns: minmax(220px, 320px) 1fr;
  text-decoration: none; color: inherit;
  background: var(--cream-deep); border-radius: var(--r); overflow: hidden;
  transition: transform 0.22s var(--ease), background 0.22s ease;
}
.material--destaque { grid-column: 1 / -1; }
.material:hover { transform: translateY(-4px); background: #ece6d6; }
.material .capa { background: var(--teal); overflow: hidden; min-height: 240px; }
.material .capa svg { display: block; width: 100%; height: 100%; }
.material .corpo { padding: clamp(1.6rem, 3vw, 2.4rem); display: flex; flex-direction: column; }
.material .tag { display: inline-flex; gap: 0.5rem; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--teal); margin: 0 0 0.9rem; }
.material h3 { font-size: clamp(1.4rem, 2.3vw, 1.9rem); margin: 0 0 0.7rem; }
.material .resumo { color: var(--ink-soft); font-size: 1.02rem; margin: 0 0 1.3rem; max-width: 56ch; }
.material .publico { font-size: 0.92rem; color: var(--ink); font-weight: 600; margin: 0 0 1rem; max-width: 56ch; border-left: 2px solid var(--orange); padding-left: 0.8rem; }
.material .meta { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-soft); margin: 0 0 1.5rem; }
.material .ver { margin-top: auto; font-weight: 600; color: var(--teal-link); display: inline-flex; gap: 0.5rem; align-items: center; }
.material .ver .seta { transition: transform 0.18s var(--ease); }
.material:hover .ver .seta { transform: translateX(5px); }

/* Tile de material futuro (vertical, capa no topo) — pronto para crescer. */
.material--tile { grid-template-columns: 1fr; }
.material--tile .capa { aspect-ratio: 16 / 10; min-height: 0; }
.material--tile .corpo { padding: 1.5rem 1.6rem; }

/* Faixa "próximos materiais": estado honesto de roadmap, não produto falso. */
.proximos {
  margin-top: 1.3rem; border: 1.5px dashed var(--cream-press); border-radius: var(--r);
  padding: 1.4rem 1.6rem; display: flex; align-items: center; gap: 1rem 1.4rem; flex-wrap: wrap;
}
.proximos .pts { display: inline-flex; gap: 0.4rem; }
.proximos .pts i { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); display: block; opacity: 0.4; }
.proximos b { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); font-weight: 600; }
.proximos span { color: var(--ink-soft); font-size: 0.95rem; }

/* ── Faixa teal (princípios da plataforma / conteúdo de detalhe) ─────── */
.banda { background: var(--teal); color: var(--cream); padding: clamp(2.8rem, 5vw, 4.6rem) 0; }
.banda--deep { background: var(--teal-deep); }
.banda h2 { color: var(--cream); }
.banda .sec-head .conta { color: var(--cream-soft); }
.banda .lead { color: var(--cream-soft); max-width: 62ch; font-size: 1.06rem; }

.principios { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: clamp(1.6rem, 3vw, 2.8rem); margin-top: 2.4rem; }
.principio { border-top: 2px solid var(--orange); padding-top: 1.1rem; }
.principio .num { font-family: var(--mono); font-size: 0.78rem; color: var(--orange); }
.principio h3 { color: var(--cream); font-size: 1.3rem; margin: 0.5rem 0 0.6rem; }
.principio p { color: var(--cream-soft); font-size: 0.98rem; margin: 0; }

/* ── Ajuda / Ayuda (seção sobre creme) ── */
.ajuda-lead { color: var(--ink-soft); max-width: 60ch; margin: 0.6rem 0 0; }
.ajuda-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: clamp(1.4rem, 3vw, 2.4rem); margin-top: 2.2rem; }
.ajuda-step { border-top: 2px solid var(--orange); padding-top: 1rem; }
.ajuda-step .num { font-family: var(--mono); font-size: 0.78rem; color: var(--orange); }
.ajuda-step h3 { color: var(--teal); font-size: 1.2rem; margin: 0.45rem 0 0.5rem; }
.ajuda-step p { color: var(--ink-soft); font-size: 0.98rem; line-height: 1.55; margin: 0; }
.ajuda-step a { color: var(--teal-link); }
.ajuda-step .mono { font-family: var(--mono); font-size: 0.92em; }
.ajuda-suporte { margin-top: 2.2rem; padding: 1.1rem 1.3rem; background: var(--cream-deep); border-radius: var(--r); color: var(--ink-soft); font-size: 0.98rem; line-height: 1.5; }
.ajuda-suporte b { color: var(--teal); }
.ajuda-suporte a { color: var(--orange-ink); font-weight: 600; }

/* ── Página de detalhe: hero do livro ────────────────────────────────── */
.obra-hero { padding: clamp(2.2rem, 4vw, 3.6rem) 0 clamp(1.6rem, 3vw, 2.6rem); }
.obra-hero .wrap { display: grid; grid-template-columns: minmax(240px, 360px) 1fr; gap: clamp(2rem, 4vw, 3.6rem); align-items: center; }
.obra-capa { border-radius: var(--r); overflow: hidden; background: var(--teal); aspect-ratio: 4 / 5; box-shadow: 0 6px 18px rgba(5, 47, 53, 0.16); }
.obra-capa svg { width: 100%; height: 100%; display: block; }
.voltar { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-soft); text-decoration: none; display: inline-flex; gap: 0.45rem; margin: 0 0 1.2rem; }
.voltar:hover { color: var(--ink); }
.voltar .seta { transition: transform 0.15s var(--ease); }
.voltar:hover .seta { transform: translateX(-4px); }
.obra-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin: 0 0 0.9rem; }
.obra-hero .sub { font-size: 1.1rem; color: var(--ink-soft); max-width: 52ch; margin: 0 0 1.4rem; }
.obra-hero .meta { font-family: var(--mono); font-size: 0.8rem; color: var(--ink-soft); margin: 0 0 0.7rem; }
.obra-hero .acoes { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* Selo de edição + aviso de atualização contínua (ponto "ao vivo"). */
.atualizacao { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--mono); font-size: 0.8rem; color: var(--ink-soft); margin: 0 0 1.7rem; }
.atualizacao .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex: 0 0 auto; }
@media (prefers-reduced-motion: no-preference) { .atualizacao .dot { animation: pulseDot 2s ease-in-out infinite; } }
@keyframes pulseDot { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 105, 0, 0.5); } 50% { box-shadow: 0 0 0 7px rgba(255, 105, 0, 0); } }

.sobre .lead { font-size: clamp(1.08rem, 1.5vw, 1.22rem); color: var(--ink); max-width: 64ch; }

/* ── Tópicos (faixa teal) ────────────────────────────────────────────── */
.topicos { list-style: none; margin: 2.2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 1rem 2.2rem; }
.topicos li { display: flex; gap: 0.8rem; align-items: baseline; }
.topicos .n { font-family: var(--mono); font-size: 0.82rem; color: var(--orange); flex: 0 0 auto; }
.topicos .t { font-size: 0.98rem; color: var(--cream); }

/* ── Diagramas ───────────────────────────────────────────────────────── */
.diagramas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 1.3rem; margin-top: 2.6rem; }
.diagrama { background: var(--cream); color: var(--ink); border-radius: var(--r); padding: 1.5rem 1.5rem 1.1rem; }
.diagrama svg { display: block; }
.diagrama .cap { font-family: var(--mono); font-size: 0.76rem; color: var(--ink-soft); margin: 0.8rem 0 0; }

/* ── Nuvem de conceitos (faixa teal): tags do livro flutuando ────────── */
.nuvem { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.4rem 1rem; max-width: 940px; margin: 2.4rem auto 0; }
.nuvem span { font-family: var(--sans); font-weight: 600; line-height: 1.05; color: var(--cream-soft); white-space: nowrap; cursor: default; transition: color 0.2s var(--ease); }
.nuvem .w-xl { font-size: clamp(2rem, 4.6vw, 3.3rem); color: var(--cream); }
.nuvem .w-lg { font-size: clamp(1.4rem, 3vw, 2.3rem); color: var(--cream); }
.nuvem .w-md { font-size: clamp(1.05rem, 2vw, 1.5rem); }
.nuvem .w-sm { font-size: clamp(0.88rem, 1.5vw, 1.1rem); }
.nuvem .hot { color: var(--orange); }                 /* laranja sobre teal ≈5:1 ✓ */
.nuvem span:hover { color: var(--orange); }

/* ── Programa do livro: índice real, em régua editorial ──────────────── */
.programa { list-style: none; margin: 2.2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr)); column-gap: 2.6rem; }
.programa li { display: grid; grid-template-columns: 2.2rem 1fr; gap: 0.9rem; align-items: baseline; padding: 0.8rem 0; border-top: 1px solid var(--cream-press); }
.programa .mod { font-family: var(--mono); font-size: 0.8rem; color: var(--orange-ink); }
.programa .ttl { font-family: var(--serif); font-size: 1.06rem; line-height: 1.3; color: var(--ink); }
.programa-extra { font-family: var(--mono); font-size: 0.8rem; color: var(--ink-soft); margin-top: 1.4rem; }

/* ── Changelog / histórico de versões ────────────────────────────────── */
.versoes { display: flex; flex-direction: column; gap: clamp(2rem, 4vw, 3rem); margin-top: 2rem; }
.versao { border-top: 2px solid var(--orange); padding-top: 1.3rem; }
.versao-head { display: flex; align-items: baseline; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
.versao-head h3 { font-size: 1.4rem; margin: 0; }
.versao-tag {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; padding: 0.2rem 0.55rem; border-radius: 4px;
}
.versao-tag--atual { background: var(--teal); color: var(--cream); }
.versao-tag--arquivada { background: var(--cream-deep); color: var(--ink-soft); }
.versao-data { font-family: var(--mono); font-size: 0.8rem; color: var(--ink-soft); }
.versao-grupo { margin: 1rem 0 0; }
.versao-grupo h4 { font-family: var(--sans); font-size: 0.92rem; font-weight: 700; color: var(--teal); margin: 0 0 0.5rem; }
.versao-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.versao-lista li { padding-left: 1.1rem; position: relative; color: var(--ink-soft); line-height: 1.5; }
.versao-lista li::before { content: "—"; position: absolute; left: 0; color: var(--orange); }
.versao-acoes { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 1.3rem; }

@media (prefers-reduced-motion: no-preference) {
  .nuvem span { animation: floatY calc(var(--t, 5) * 1s) ease-in-out infinite; animation-delay: calc(var(--i, 0) * -0.37s); }
}
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ── CTA final ───────────────────────────────────────────────────────── */
.cta-final { text-align: center; }
.cta-final h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 0 0 1.4rem; }
.cta-final .acoes { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }

/* ── Rodapé ──────────────────────────────────────────────────────────── */
footer { padding: 2.4rem 0; font-size: 0.85rem; color: var(--ink-soft); }
.banda + footer, footer.dark { background: var(--teal-deep); color: var(--cream-soft); }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
footer .mono { font-family: var(--mono); font-size: 0.76rem; }
footer a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ════════ Movimento ════════════════════════════════════════════════ */

/* Revelação ao rolar: SÓ ativa quando o JS adiciona .js-anim (que por sua
   vez só ocorre com prefers-reduced-motion: no-preference). Sem JS ou com
   movimento reduzido, o conteúdo é visível por padrão — nunca embarca em
   branco. */
.js-anim .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.js-anim .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: no-preference) {
  .hero-art .nd { animation: gPulse 3.4s ease-in-out infinite; }
  .hero-art .nd:nth-of-type(2n) { animation-duration: 4.1s; animation-delay: -0.8s; }
  .hero-art .nd:nth-of-type(3n) { animation-duration: 3.8s; animation-delay: -1.6s; }
  .hero-art .nd-soft { animation: gPulse 5s ease-in-out infinite; animation-delay: -2s; }
  .hero-art .drift { animation: gFloat 7s ease-in-out infinite; }
  .hero-art .core-glow { animation: gCore 2.9s ease-in-out infinite; }
  .hero-art .edge-hot { stroke-dasharray: 5 9; animation: gFlow 1.2s linear infinite; }
  .proximos .pts i:nth-child(1) { animation: gBlink 1.4s ease-in-out infinite; }
  .proximos .pts i:nth-child(2) { animation: gBlink 1.4s ease-in-out infinite 0.2s; }
  .proximos .pts i:nth-child(3) { animation: gBlink 1.4s ease-in-out infinite 0.4s; }
}

@keyframes gPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.32); } }
@keyframes gCore { 0%, 100% { transform: scale(1); opacity: 0.32; } 50% { transform: scale(1.7); opacity: 0.6; } }
@keyframes gFlow { to { stroke-dashoffset: -28; } }
@keyframes gFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes gBlink { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ════════ Responsivo ═══════════════════════════════════════════════ */
@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 2rem; }
  .hero-art { max-width: 420px; margin-inline: auto; order: 2; }
  .obra-hero .wrap { grid-template-columns: 1fr; gap: 1.8rem; }
  .obra-capa { max-width: 300px; }
}
@media (max-width: 680px) {
  .material--destaque { grid-template-columns: 1fr; }
  .material--destaque .capa { aspect-ratio: 16 / 10; min-height: 0; }
  .top-bar nav > a:not(.nav-cta) { display: none; }   /* nav enxuto no celular; alternador e CTA permanecem */
}
