/* ============================================================
   IARA — Squad Aura · Desafio dos Dados 2026
   Folha de estilo única para todo o site.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --roxo: #5B21B6;
  --roxo-escuro: #3B1568;
  --terracota: #C2703D;
  --ambar: #B8860B;
  --teal: #0F766E;

  --fundo: #FAFAF8;
  --texto: #1C1B1F;
  --texto-sec: #6E6B63;

  --surface: #FFFFFF;
  --tint: #F3EFFA;            /* lavanda bem clara, p/ seções alternadas */
  --line: #E7E3DB;            /* fio quente sobre fundo claro */
  --lavanda: #C9B8F0;         /* destaque sobre fundo escuro */

  --terracota-wash: #F9EFE7;
  --ambar-wash: #F7F1DE;
  --teal-wash: #E3F0EE;

  --dark-texto: #F5F1FC;
  --dark-texto-sec: rgba(245, 241, 252, 0.72);
  --dark-line: rgba(245, 241, 252, 0.16);

  --font-display: "Fraunces", Cambria, Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", Consolas, monospace;

  --radius: 14px;
  --radius-lg: 22px;
  --container: 1120px;
  --shadow: 0 1px 2px rgba(28, 27, 31, 0.05), 0 10px 30px rgba(59, 21, 104, 0.07);
}

/* ---------- Reset básico ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--texto);
  background: var(--fundo);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--roxo); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--roxo-escuro); }

:focus-visible {
  outline: 3px solid var(--roxo);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* ---------- Layout ---------- */
.container {
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
}

.container--narrow { max-width: 760px; }

.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section--tint { background: var(--tint); }
.section--dark {
  background: var(--roxo-escuro);
  color: var(--dark-texto);
}
.section--dark a { color: var(--lavanda); }

.section-head { max-width: 640px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--texto-sec); font-size: 1.1rem; }
.section--dark .section-head p { color: var(--dark-texto-sec); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--roxo);
  margin-bottom: 1rem;
}
.section--dark .eyebrow { color: var(--lavanda); }

/* ---------- Sinal (motivo visual) ---------- */
.signal {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
}
.signal span {
  width: 5px;
  border-radius: 2px;
  background: var(--roxo);
  transform-origin: bottom;
}
.signal span:nth-child(1) { height: 8px; }
.signal span:nth-child(2) { height: 13px; }
.signal span:nth-child(3) { height: 18px; }

/* variação tricolor: cada barra = um caminho */
.signal--paths span:nth-child(1) { background: var(--terracota); }
.signal--paths span:nth-child(2) { background: var(--ambar); }
.signal--paths span:nth-child(3) { background: var(--teal); }

.signal--light span { background: var(--lavanda); }

.signal--lg { gap: 6px; }
.signal--lg span { width: 10px; }
.signal--lg span:nth-child(1) { height: 22px; }
.signal--lg span:nth-child(2) { height: 36px; }
.signal--lg span:nth-child(3) { height: 50px; }

/* barras "acendendo" em sequência quando entram na tela
   (estado inicial oculto só existe com JS ativo — classe .js no <html>) */
.js .signal.animate span { opacity: 0.25; transform: scaleY(0.4); }
.signal.animate.is-visible span {
  animation: signal-on 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.signal.animate.is-visible span:nth-child(2) { animation-delay: 0.18s; }
.signal.animate.is-visible span:nth-child(3) { animation-delay: 0.36s; }

@keyframes signal-on {
  to { opacity: 1; transform: scaleY(1); }
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--roxo);
  color: #fff;
  box-shadow: 0 6px 18px rgba(91, 33, 182, 0.28);
}
.btn--primary:hover { background: var(--roxo-escuro); color: #fff; }

.btn--ghost {
  border-color: var(--line);
  color: var(--texto);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--roxo); color: var(--roxo); }

.btn--light {
  background: #fff;
  color: var(--roxo-escuro);
}
.btn--light:hover { background: var(--tint); color: var(--roxo-escuro); }

.btn--xl {
  padding: 1.15rem 2.4rem;
  font-size: 1.15rem;
}

.btn .btn-icon { width: 1.2em; height: 1.2em; }

/* ---------- Header / navegação ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--texto);
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
}

.brand-logo {
  height: 34px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.site-nav > a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--texto);
  text-decoration: none;
  padding-block: 0.3rem;
  border-bottom: 2px solid transparent;
}
.site-nav > a:hover { color: var(--roxo); }
.site-nav > a.is-active {
  color: var(--roxo);
  border-bottom-color: var(--roxo);
}
.site-nav .btn { padding: 0.55rem 1.2rem; font-size: 0.92rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--texto);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--fundo);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1.25rem;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav > a {
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }
  .site-nav > a.is-active { border-bottom-color: var(--line); }
  .site-nav .btn { margin-top: 1rem; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4.5rem, 11vw, 8.5rem);
  background:
    radial-gradient(52rem 30rem at 85% -10%, rgba(91, 33, 182, 0.09), transparent 65%),
    var(--fundo);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.hero h1 {
  font-size: clamp(4rem, 12vw, 7.5rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.35em;
}

.hero-sub {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.5;
  color: var(--texto-sec);
  max-width: 34em;
  margin-bottom: 2rem;
}
.hero-sub strong { color: var(--texto); font-weight: 600; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ---------- Par de botões do Telegram (app / navegador) ---------- */
.telegram-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
@media (max-width: 480px) {
  .telegram-actions { flex-direction: column; align-items: stretch; }
}

.hero-signal {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(0.8rem, 2vw, 1.4rem);
}
.hero-signal span {
  width: clamp(2.6rem, 6vw, 4.2rem);
  border-radius: 12px;
  transform-origin: bottom;
}
.hero-signal span:nth-child(1) { height: clamp(5rem, 12vw, 8rem); background: var(--terracota); }
.hero-signal span:nth-child(2) { height: clamp(8rem, 19vw, 13rem); background: var(--ambar); }
.hero-signal span:nth-child(3) { height: clamp(11rem, 26vw, 18rem); background: var(--teal); }

.hero-signal.is-visible span { animation: signal-on 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.hero-signal.is-visible span:nth-child(2) { animation-delay: 0.25s; }
.hero-signal.is-visible span:nth-child(3) { animation-delay: 0.5s; }
.js .hero-signal span { opacity: 0.2; transform: scaleY(0.35); }

.hero-signal-caption {
  margin-top: 1.2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--texto-sec);
}

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-signal { justify-content: flex-start; padding-top: 1rem; }
  .hero-signal span:nth-child(1) { height: 4rem; }
  .hero-signal span:nth-child(2) { height: 6.5rem; }
  .hero-signal span:nth-child(3) { height: 9rem; }
  .hero-signal span { width: 2.2rem; }
}

/* ---------- Estatísticas / contadores ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
}

.stat {
  border-top: 3px solid var(--roxo);
  padding-top: 1.5rem;
}
.stat-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4rem, 10vw, 6.5rem);
  line-height: 1;
  color: var(--roxo);
  letter-spacing: -0.02em;
}
.stat-number sup {
  font-size: 0.45em;
  font-weight: 600;
  vertical-align: 0.7em;
}
.stat-label {
  margin-top: 0.8rem;
  font-size: 1.05rem;
  color: var(--texto);
  max-width: 26em;
}
.stat-source {
  margin-top: 2.5rem;
  font-size: 0.88rem;
  color: var(--texto-sec);
}

/* ---------- Tese ("a ideia") ---------- */
.thesis { text-align: center; }
.thesis-line {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5.5vw, 3.8rem);
  font-weight: 500;
  line-height: 1.25;
  margin: 0;
  color: var(--dark-texto);
}
.thesis-line em {
  font-style: italic;
  font-weight: 500;
  color: var(--dark-texto-sec);
}
.thesis-line strong {
  font-style: italic;
  font-weight: 700;
  color: var(--lavanda);
}
.thesis-note {
  margin-top: 2rem;
  color: var(--dark-texto-sec);
  font-size: 1.05rem;
  max-width: 38em;
  margin-inline: auto;
}

/* ---------- Cards dos 3 caminhos ---------- */
.paths-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.path-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.path-card-bar { height: 5px; }
.path-card-body { padding: 1.8rem 1.6rem; }

.path-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}
.path-card h3 { margin: 0; }
.path-card p { color: var(--texto-sec); margin: 0; }

.path-tag {
  display: inline-block;
  margin-top: 1.2rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

/* Guiado: mais espaçoso de propósito — mais devagar é mais cuidado */
.path-card--guiado .path-card-bar { background: var(--terracota); }
.path-card--guiado .path-card-body { padding: 2.4rem 1.9rem; }
.path-card--guiado p { line-height: 1.85; }
.path-card--guiado .path-tag { background: var(--terracota-wash); color: var(--terracota); }
.path-card--guiado .signal span:nth-child(1) { background: var(--terracota); }
.path-card--guiado .signal span:nth-child(2),
.path-card--guiado .signal span:nth-child(3) { background: var(--line); }

.path-card--inter .path-card-bar { background: var(--ambar); }
.path-card--inter .path-tag { background: var(--ambar-wash); color: var(--ambar); }
.path-card--inter .signal span:nth-child(1),
.path-card--inter .signal span:nth-child(2) { background: var(--ambar); }
.path-card--inter .signal span:nth-child(3) { background: var(--line); }

/* Direto: mais compacto — resolve numa mensagem */
.path-card--direto .path-card-bar { background: var(--teal); }
.path-card--direto .path-card-body { padding: 1.5rem 1.6rem; }
.path-card--direto p { line-height: 1.6; }
.path-card--direto .path-tag { background: var(--teal-wash); color: var(--teal); }
.path-card--direto .signal span { background: var(--teal); }

/* ---------- Antes / depois ---------- */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.compare-panel {
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem;
  border: 1px solid var(--line);
  background: var(--surface);
}
.compare-panel--iara {
  border-color: rgba(91, 33, 182, 0.35);
  box-shadow: 0 12px 34px rgba(91, 33, 182, 0.12);
}

.compare-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1.4rem;
  background: var(--line);
  color: var(--texto-sec);
}
.compare-panel--iara .compare-label { background: var(--tint); color: var(--roxo); }

.chat { display: flex; flex-direction: column; gap: 0.8rem; }
.bubble {
  max-width: 88%;
  padding: 0.8rem 1.1rem;
  border-radius: 16px;
  font-size: 0.98rem;
  line-height: 1.5;
}
.bubble--user {
  align-self: flex-end;
  background: var(--texto);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.bubble--system {
  align-self: flex-start;
  background: #EFEDE8;
  color: var(--texto-sec);
  border-bottom-left-radius: 4px;
}
.bubble--iara {
  align-self: flex-start;
  background: var(--tint);
  color: var(--texto);
  border: 1px solid rgba(91, 33, 182, 0.2);
  border-bottom-left-radius: 4px;
}
.bubble-who {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
  opacity: 0.7;
}

/* ---------- Demonstração sincronizada (vídeos) ---------- */
.sync-demo {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: center;
}
@media (max-width: 700px) {
  .sync-demo { grid-template-columns: 1fr; justify-items: center; }
  .sync-demo .frame--phone { width: min(240px, 80%); }
}

/* moldura de smartphone */
.frame--phone {
  position: relative;
  border-radius: 34px;
  background: #17161A;
  padding: 10px;
  box-shadow: 0 20px 50px rgba(28, 27, 31, 0.35);
}
.frame--phone .frame-screen {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 24px;
  overflow: hidden;
  background: var(--roxo-escuro);
}
.frame--phone .frame-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 14px;
  border-radius: 999px;
  background: #17161A;
  z-index: 3;
}

/* moldura de navegador */
.frame--browser {
  border-radius: 14px;
  overflow: hidden;
  background: #17161A;
  box-shadow: 0 20px 50px rgba(28, 27, 31, 0.3);
  width: 100%;
}
.frame--browser .frame-titlebar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 1rem;
  background: #232127;
}
.frame-dots { display: flex; gap: 6px; }
.frame-dots span {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #4A4750;
}
.frame-dots span:nth-child(1) { background: #E5646B; }
.frame-dots span:nth-child(2) { background: #E0B14C; }
.frame-dots span:nth-child(3) { background: #58B77E; }
.frame-url {
  flex: 1;
  font-size: 0.75rem;
  color: #9B97A3;
  background: #17161A;
  border-radius: 6px;
  padding: 0.25rem 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.frame--browser .frame-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--roxo-escuro);
}

.frame-screen video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* placeholder enquanto os vídeos reais não existem */
.video-placeholder {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  background: linear-gradient(150deg, var(--roxo), var(--roxo-escuro));
  color: rgba(245, 241, 252, 0.85);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  padding: 1rem;
}
.video-placeholder svg { width: 52px; height: 52px; opacity: 0.9; }
.frame-screen.has-video .video-placeholder { display: none; }

/* botão único de play sobre os dois vídeos */
.sync-play {
  position: absolute;
  z-index: 10;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(250, 250, 248, 0.96);
  color: var(--roxo);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 40px rgba(28, 27, 31, 0.4);
  transition: transform 0.18s ease, opacity 0.25s ease;
}
.sync-play:hover { transform: translate(-50%, -50%) scale(1.06); }
.sync-play svg { width: 36px; height: 36px; margin-left: 4px; }
.sync-play .icon-pause { display: none; margin-left: 0; }

.sync-demo.is-playing .sync-play { opacity: 0; pointer-events: none; }
.sync-demo.is-playing:hover .sync-play,
.sync-demo.is-playing .sync-play:focus-visible {
  opacity: 1;
  pointer-events: auto;
}
.sync-demo.is-playing .sync-play .icon-play { display: none; }
.sync-demo.is-playing .sync-play .icon-pause { display: block; }

.sync-note {
  margin-top: 1.4rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--texto-sec);
}

/* moldura de terminal/console: vídeo standalone (sem sincronização),
   controles nativos — diferente das molduras de celular e navegador acima */
.frame--terminal {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #17161A;
  box-shadow: var(--shadow);
}
.frame--terminal .frame-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--roxo-escuro);
}

/* ---------- Impacto social (citação grande) ---------- */
.impact-quote {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
  max-width: 30em;
  margin: 0 auto;
  color: var(--texto);
}
.impact-quote strong {
  font-weight: 600;
  font-style: italic;
  color: var(--roxo);
}

/* ---------- Texto central de contexto ---------- */
.center-lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--texto-sec);
  max-width: 38em;
  margin-inline: auto;
}
.center-lead strong { color: var(--texto); }

/* ---------- Testes reais ---------- */
.testers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.tester-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow);
}
.tester-card .signal { margin-bottom: 1.1rem; }
.tester-card h3 { font-size: 1.25rem; }
.tester-card p { color: var(--texto-sec); font-size: 0.98rem; margin: 0; }

/* ---------- Ética (citação) ---------- */
.ethics-quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.6vw, 2.4rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.4;
  color: var(--dark-texto);
  max-width: 24em;
  margin: 0 auto 2rem;
  text-align: center;
  quotes: "\201C" "\201D";
}
.ethics-quote::before { content: open-quote; color: var(--lavanda); }
.ethics-quote::after { content: close-quote; color: var(--lavanda); }

.ethics-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.ethics-fact {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--dark-line);
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  font-size: 0.92rem;
  color: var(--dark-texto-sec);
}
.ethics-fact strong { color: var(--dark-texto); font-weight: 600; }

/* ---------- ODS ---------- */
.ods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.ods-card {
  display: flex;
  gap: 1.3rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow);
}
.ods-num {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: #fff;
}
.ods-num--10 { background: #DD1367; }  /* cor oficial ODS 10 */
.ods-num--9  { background: #FD6925; }  /* cor oficial ODS 9 */
.ods-card h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.ods-card p { color: var(--texto-sec); font-size: 0.98rem; margin: 0; }

.ods-pact {
  margin-top: 2rem;
  border-left: 3px solid var(--roxo);
  padding: 0.4rem 0 0.4rem 1.4rem;
  color: var(--texto-sec);
  max-width: 46em;
}

/* ---------- Faixa final de CTA ---------- */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 18em; margin-inline: auto; }
.cta-band .hero-actions { justify-content: center; margin-top: 2rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--roxo-escuro);
  color: var(--dark-texto-sec);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--dark-line);
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand .brand { color: var(--dark-texto); margin-bottom: 1rem; }
.footer-brand p { max-width: 28em; }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark-texto);
  margin-bottom: 1rem;
}
.footer-col nav { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a {
  color: var(--dark-texto-sec);
  text-decoration: none;
}
.footer-col a:hover { color: var(--dark-texto); text-decoration: underline; }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  padding-top: 1.6rem;
  font-size: 0.85rem;
}
.footer-base .footer-credit {
  flex-basis: 100%;
  margin: 0 0 0.4rem;
}

/* ---------- Hero de páginas internas ---------- */
.page-hero {
  padding-block: clamp(3.5rem, 8vw, 6rem);
  background:
    radial-gradient(40rem 22rem at 90% -20%, rgba(91, 33, 182, 0.08), transparent 65%),
    var(--fundo);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { max-width: 15em; }
.page-hero .lead {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--texto-sec);
  max-width: 36em;
}

/* ---------- Diagrama do pipeline (como funciona) ---------- */
.pipeline {
  display: grid;
  gap: 0.8rem;
  justify-items: center;
}
.pipe-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
  width: 100%;
}
.pipe-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  text-align: center;
  box-shadow: var(--shadow);
  width: 100%;
}
.pipe-box strong { display: block; font-size: 1rem; }
.pipe-box small { color: var(--texto-sec); font-size: 0.85rem; }
.pipe-box--accent { border-color: rgba(91, 33, 182, 0.4); }
.pipe-arrow {
  color: var(--roxo);
  font-size: 1.3rem;
  line-height: 1;
  padding: 0.1rem 0;
}
.pipe-caption { font-size: 0.85rem; color: var(--texto-sec); text-align: center; max-width: 40em; margin-top: 1rem; }

code, .code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--tint);
  color: var(--roxo-escuro);
  padding: 0.12em 0.45em;
  border-radius: 6px;
}
.section--dark code { background: rgba(245, 241, 252, 0.12); color: var(--lavanda); }

/* ---------- Cards de camadas de IA ---------- */
.layer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.layer-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow);
}
.layer-role {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--roxo);
  background: var(--tint);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  margin-bottom: 1.1rem;
}
.layer-card h3 { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.layer-model { font-size: 0.8rem; font-weight: 500; color: var(--texto-sec); font-family: var(--font-mono); }
.layer-card p { color: var(--texto-sec); }
.layer-card ul { margin: 0.8rem 0 0; padding-left: 1.2rem; color: var(--texto-sec); }
.layer-card li { margin-bottom: 0.35rem; }

/* ---------- Diagrama do fluxo técnico (SVG) ---------- */
.flow-diagram {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  max-width: 940px;
  margin-inline: auto;
}
.flow-diagram svg { width: 100%; height: auto; }
.flow-diagram svg.flow-diagram-desktop { display: block; }
.flow-diagram svg.flow-diagram-mobile { display: none; }
@media (max-width: 700px) {
  .flow-diagram svg.flow-diagram-desktop { display: none; }
  .flow-diagram svg.flow-diagram-mobile { display: block; }
}
.flow-diagram .flow-box-title { font-family: var(--font-display); font-weight: 600; }
.flow-diagram .flow-box-code { font-family: var(--font-mono); font-weight: 600; }
.flow-diagram .flow-box-sub { font-family: var(--font-body); }
.flow-diagram .flow-caption-text { font-family: var(--font-body); font-style: italic; }

/* ---------- Escala Inaf ---------- */
.inaf-scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.6rem;
  margin-top: 2rem;
}
@media (max-width: 700px) {
  .inaf-scale { grid-template-columns: 1fr; }
  .inaf-step { display: flex; align-items: center; gap: 1rem; }
  .inaf-step .inaf-fill { width: 46px; margin-bottom: 0 !important; }
}
.inaf-step { text-align: left; }
.inaf-fill {
  height: 10px;
  border-radius: 999px;
  background: var(--line);
  position: relative;
  overflow: hidden;
  margin-bottom: 0.7rem;
}
.inaf-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--roxo);
}
.inaf-step:nth-child(1) .inaf-fill::after { width: 20%; opacity: 0.45; }
.inaf-step:nth-child(2) .inaf-fill::after { width: 40%; opacity: 0.6; }
.inaf-step:nth-child(3) .inaf-fill::after { width: 60%; opacity: 0.75; }
.inaf-step:nth-child(4) .inaf-fill::after { width: 80%; opacity: 0.9; }
.inaf-step:nth-child(5) .inaf-fill::after { width: 100%; opacity: 1; }
.inaf-step strong { display: block; font-size: 0.92rem; }
.inaf-step small { color: var(--texto-sec); font-size: 0.8rem; }

/* ---------- Placeholder de print (imagem) ---------- */
.print-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, var(--roxo), var(--roxo-escuro));
  color: rgba(245, 241, 252, 0.85);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Seções numeradas (segurança) ---------- */
.sec-block {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: clamp(1.2rem, 4vw, 2.5rem);
  padding-block: clamp(2.5rem, 6vw, 4rem);
  border-top: 1px solid var(--line);
}
.sec-block:first-of-type { border-top: none; }
@media (max-width: 700px) {
  .sec-block { grid-template-columns: 1fr; gap: 0.8rem; }
}
.sec-num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 3.8rem);
  font-weight: 700;
  color: var(--roxo);
  line-height: 1;
}
.sec-block h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.sec-block p { color: var(--texto-sec); max-width: 42em; }
.sec-block p strong { color: var(--texto); }

.story-box {
  background: var(--tint);
  border-left: 3px solid var(--roxo);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.3rem 1.5rem;
  margin: 1.4rem 0;
  color: var(--texto);
  font-size: 0.98rem;
}
.story-box .story-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--roxo);
  margin-bottom: 0.5rem;
}

/* ---------- Números de validação (contadores menores) ---------- */
.stats-grid--tight {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.stat--sm .stat-number { font-size: clamp(2.8rem, 6vw, 4.5rem); }
.stat--sm .stat-label { font-size: 0.98rem; }

.note-transparencia {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--texto-sec);
  max-width: 46em;
  margin-top: 2.5rem;
  border-left: 3px solid var(--line);
  padding: 0.3rem 0 0.3rem 1.3rem;
}

/* ---------- Quanto custa a Iara (card de custo) ---------- */
.cost-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 2.6rem);
  box-shadow: var(--shadow);
  max-width: 760px;
  margin-inline: auto;
}
.cost-table-wrap { overflow-x: auto; margin-bottom: 1.8rem; }
.cost-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.cost-table th,
.cost-table td { text-align: left; padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--line); }
.cost-table th {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--texto-sec);
  font-weight: 600;
}
.cost-table td:first-child { font-weight: 600; color: var(--texto); }
.cost-table td { color: var(--texto-sec); }
.cost-table tbody tr:last-child td { border-bottom: none; }

.cost-highlight {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  flex-wrap: wrap;
  padding: 1.1rem 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  margin-bottom: 1.4rem;
}
.cost-highlight-number {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 2.7rem);
  font-weight: 600;
  color: var(--roxo);
  line-height: 1;
}
.cost-highlight-label { color: var(--texto-sec); font-size: 0.95rem; margin: 0; }

.cost-calc {
  color: var(--texto-sec);
  font-size: 0.96rem;
  line-height: 1.7;
  margin: 0;
}
.cost-calc strong { color: var(--texto); }

.cost-decisao {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--texto);
  margin: 1.6rem 0 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

/* ---------- FAQ (acordeão nativo <details>) ---------- */
.faq-list {
  max-width: 760px;
  margin-inline: auto;
  display: grid;
  gap: 0.9rem;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  list-style: none;
  border-radius: var(--radius);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--roxo); }
.faq-icon {
  flex-shrink: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--roxo);
  transition: transform 0.2s ease;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-item[open] summary { color: var(--roxo); }
.faq-answer {
  padding: 0 1.4rem 1.3rem;
  color: var(--texto-sec);
  line-height: 1.7;
}
.faq-answer p { margin: 0; }

/* ---------- Fotos da equipe (placeholder quente — foto real ainda não existe) ---------- */
.photo-slot { margin: 2.4rem 0; }
.photo-slot-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 2;
}
.photo-slot-frame--wide { aspect-ratio: 21 / 8; }

.photo-slot-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  background: linear-gradient(150deg, #FAF6ED, #EFEDE8);
  color: var(--texto-sec);
}
.photo-slot-placeholder svg {
  width: 40px;
  height: 40px;
  color: var(--terracota);
  opacity: 0.85;
}
.photo-slot-placeholder span {
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

.photo-slot-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.photo-slot-img.is-loaded { display: block; }

.photo-slot-caption {
  margin-top: 0.85rem;
  text-align: center;
  font-size: 0.88rem;
  font-style: italic;
  color: var(--texto-sec);
}

.video-slot { margin: 2.4rem 0; }
.video-slot-caption {
  margin-top: 0.85rem;
  text-align: center;
  font-size: 0.88rem;
  font-style: italic;
  color: var(--texto-sec);
}

/* ---------- Blog ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--texto);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(59, 21, 104, 0.14);
  color: var(--texto);
}
.post-card .signal { margin-bottom: 1.2rem; }
.post-card h3 { font-size: 1.35rem; }
.post-card p { color: var(--texto-sec); font-size: 0.98rem; flex: 1; }
.post-meta {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--texto-sec);
  margin-top: 1.4rem;
}
.post-card .post-read {
  margin-top: 0.6rem;
  font-weight: 600;
  color: var(--roxo);
  font-size: 0.95rem;
}

/* corpo do post */
.prose {
  max-width: 680px;
  margin-inline: auto;
  font-size: 1.1rem;
  line-height: 1.8;
}
.prose p { margin-bottom: 1.4em; }
.prose h2 {
  font-size: 1.5rem;
  margin-top: 2.2em;
  margin-bottom: 0.6em;
}
.prose .prose-lead {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--texto-sec);
}
.prose blockquote {
  margin: 2em 0;
  padding: 0.2em 0 0.2em 1.4em;
  border-left: 3px solid var(--roxo);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2em;
  color: var(--texto);
}

.post-header { text-align: center; max-width: 760px; margin-inline: auto; }
.post-header .signal { margin-bottom: 1.5rem; }
.post-header h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }

.post-nav {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 680px;
  margin: 3.5rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

/* ---------- Squad ---------- */
.squad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.member-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.6rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.member-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  margin: 0 auto 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tint);
  color: var(--roxo);
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
}
.member-card h3 { font-size: 1.2rem; margin-bottom: 0.3rem; }
.member-role { color: var(--texto-sec); font-size: 0.95rem; margin: 0; }

.school-line {
  text-align: center;
  color: var(--texto-sec);
  max-width: 40em;
  margin: 0 auto;
}
.school-line strong { color: var(--texto); }

/* ---------- Página testar ---------- */
.task-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.task-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow);
}
.task-card h3 { font-size: 1.2rem; }
.task-card > p { color: var(--texto-sec); font-size: 0.95rem; }
.task-suggestion {
  margin-top: 1.1rem;
  background: var(--tint);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: var(--roxo-escuro);
}
.task-suggestion::before {
  content: "Experimente mandar:";
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--roxo);
  margin-bottom: 0.3rem;
}

.telegram-cta { text-align: center; }
.telegram-cta .btn { margin-top: 1.5rem; }
.telegram-note { margin-top: 1.2rem; font-size: 0.9rem; color: var(--texto-sec); }

.ai-disclaimer { margin-top: 0.7rem; font-size: 0.8rem; color: var(--texto-sec); }

.video-embed-slot {
  max-width: 800px;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--line);
  background: var(--surface);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--texto-sec);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Apresentação (visualizador de slides) ---------- */
.slide-viewer { max-width: 920px; margin-inline: auto; }

.slide-stage { position: relative; }

.slide-frame {
  padding: clamp(0.6rem, 1.8vw, 1.1rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.slide-frame-inner {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--radius-lg) - 10px);
  overflow: hidden;
  background: var(--fundo);
}
.slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.slide-img.is-loaded { opacity: 1; }

.slide-fullscreen {
  position: absolute;
  top: clamp(1rem, 2.5vw, 1.7rem);
  right: clamp(1rem, 2.5vw, 1.7rem);
  z-index: 5;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(28, 27, 31, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
}
.slide-fullscreen:hover { background: rgba(28, 27, 31, 0.75); transform: scale(1.06); }
.slide-fullscreen svg { width: 20px; height: 20px; }
.slide-fullscreen .icon-exit { display: none; }
.slide-viewer.is-fullscreen .slide-fullscreen .icon-enter { display: none; }
.slide-viewer.is-fullscreen .slide-fullscreen .icon-exit { display: block; }

.slide-controlbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  margin-top: 1.4rem;
}

.slide-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.3rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--texto);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
}
.slide-arrow svg { width: 1.1em; height: 1.1em; flex-shrink: 0; }
.slide-arrow:hover:not(:disabled) { border-color: var(--roxo); color: var(--roxo); }
.slide-arrow:active:not(:disabled) { transform: translateY(1px); }
.slide-arrow:disabled { opacity: 0.35; cursor: not-allowed; }

.slide-counter {
  justify-self: center;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--texto-sec);
  white-space: nowrap;
}
.slide-counter strong { color: var(--texto); font-weight: 600; }

.slide-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.6rem;
}
.slide-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--line);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.slide-dot:hover { background: var(--roxo); }
.slide-dot.is-active { background: var(--roxo); transform: scale(1.3); }

/* tela cheia: mantém os controles visíveis, expandidos pro tamanho da tela */
.slide-viewer:fullscreen,
.slide-viewer:-webkit-full-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  max-width: none;
  padding: clamp(1rem, 4vw, 3rem);
  background: var(--roxo-escuro);
}
.slide-viewer:fullscreen .slide-stage,
.slide-viewer:-webkit-full-screen .slide-stage {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
}
.slide-viewer:fullscreen .slide-frame,
.slide-viewer:-webkit-full-screen .slide-frame {
  flex: 1;
  min-height: 0;
  display: flex;
  box-shadow: none;
  border: none;
  background: transparent;
  padding: 0;
}
.slide-viewer:fullscreen .slide-frame-inner,
.slide-viewer:-webkit-full-screen .slide-frame-inner {
  flex: 1;
  min-height: 0;
  width: 100%;
  aspect-ratio: auto;
  background: transparent;
}
.slide-viewer:fullscreen .slide-controlbar,
.slide-viewer:-webkit-full-screen .slide-controlbar,
.slide-viewer:fullscreen .slide-dots,
.slide-viewer:-webkit-full-screen .slide-dots {
  flex-shrink: 0;
  width: 100%;
  max-width: 900px;
}
.slide-viewer:fullscreen .slide-arrow,
.slide-viewer:-webkit-full-screen .slide-arrow {
  background: rgba(245, 241, 252, 0.08);
  border-color: var(--dark-line);
  color: var(--dark-texto);
}
.slide-viewer:fullscreen .slide-arrow:hover:not(:disabled),
.slide-viewer:-webkit-full-screen .slide-arrow:hover:not(:disabled) {
  border-color: var(--lavanda);
  color: var(--lavanda);
}
.slide-viewer:fullscreen .slide-counter,
.slide-viewer:-webkit-full-screen .slide-counter { color: var(--dark-texto-sec); }
.slide-viewer:fullscreen .slide-dot,
.slide-viewer:-webkit-full-screen .slide-dot { background: var(--dark-line); }
.slide-viewer:fullscreen .slide-dot:hover,
.slide-viewer:-webkit-full-screen .slide-dot:hover,
.slide-viewer:fullscreen .slide-dot.is-active,
.slide-viewer:-webkit-full-screen .slide-dot.is-active { background: var(--lavanda); }

@media (max-width: 640px) {
  .slide-controlbar { grid-template-columns: 1fr 1fr; row-gap: 1rem; }
  .slide-counter { grid-column: 1 / -1; order: -1; justify-self: center; font-size: 1rem; }
  .slide-arrow { flex: 1; justify-content: center; padding: 1rem 0.8rem; min-height: 54px; font-size: 1rem; }
  .slide-fullscreen { width: 48px; height: 48px; }
  .slide-dot { width: 12px; height: 12px; }
}

/* ---------- Animações de entrada ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Acessibilidade / movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .signal.animate span,
  .js .hero-signal span { opacity: 1 !important; transform: none !important; animation: none !important; }
  .btn:hover, .post-card:hover { transform: none; }
  .slide-img { transition: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Utilidades ---------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
