/* ============================================================
   MÉTODO SEI · PROTOCOLO PACE — identidade visual
   Tinta profunda + papel + dourado (as "setas douradas" do Ciclo)
   Dados DISC: Executor · Comunicador · Planejador · Analista
   ============================================================ */
:root {
  --ink: #0f1d2b;
  --ink-2: #16283a;
  --ink-3: #22374d;
  --paper: #f5f7f4;
  --card: #ffffff;
  --line: #dde3dc;
  --text: #1c2833;
  --muted: #5b6b76;
  --gold: #c29b2c;
  --gold-soft: #f3e8c8;
  --exec: #c0392b;
  --comu: #d98e04;
  --plan: #2e7d4f;
  --anal: #2a5d9f;
  --ok: #2e7d4f;
  --warn: #b96a00;
  --err: #b3261e;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 29, 43, 0.08);
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.55;
}
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
a { color: var(--anal); }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.mono { font-family: var(--font-mono); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20; background: rgba(245, 247, 244, 0.92);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}
.site-header.scrolled { box-shadow: 0 6px 20px rgba(15, 29, 43, 0.1); }
.site-header-inner {
  max-width: 1100px; margin: 0 auto; padding: 0.7rem 1.5rem;
  display: flex; align-items: center; gap: 1.5rem;
}
.brand-mark { display: flex; align-items: center; flex-shrink: 0; }
.brand-mark img { height: 44px; width: auto; display: block; }
.site-nav { display: flex; gap: 1.4rem; margin-right: auto; }
.site-nav a { color: var(--text); font-weight: 600; font-size: 0.92rem; text-decoration: none; position: relative; padding-bottom: 2px; }
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
.site-nav a:hover { color: var(--gold); }
.site-nav a:hover::after { transform: scaleX(1); }

/* Menu sanduíche "Acessar" — dropdown com as 3 trilhas (ENEM/Faculdades,
   ITA/IME/Esc.Militares, ESPBA/UNEF), no lugar dos 3 botões separados que
   quebravam linha no header. */
.menu-acessos { position: relative; flex-shrink: 0; }
.btn-acessar {
  display: flex; align-items: center; gap: 0.5rem; background: var(--ink); color: #fff;
  border: none; border-radius: 999px; padding: 0.55rem 1.1rem; font-weight: 700; font-size: 0.88rem;
  cursor: pointer; white-space: nowrap;
}
.btn-acessar:hover { background: var(--gold); color: var(--ink); }
.icone-sanduiche { font-size: 1rem; line-height: 1; }
.dropdown-acessos {
  position: absolute; top: calc(100% + 0.5rem); right: 0; min-width: 260px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 0.4rem; display: flex; flex-direction: column; gap: 0.15rem; z-index: 30;
}
/* [hidden] tem a mesma especificidade da classe acima — sem isso, o
   "display: flex" da regra de cima vence e o menu nunca some de verdade,
   mesmo com o atributo hidden alternando certo no DOM via JS. */
.dropdown-acessos[hidden] { display: none; }
.dropdown-acessos button {
  display: block; width: 100%; text-align: left; background: none; border: none; border-radius: 8px;
  padding: 0.65rem 0.8rem; font: inherit; font-weight: 600; font-size: 0.88rem; color: var(--text); cursor: pointer;
}
.dropdown-acessos button:hover { background: var(--gold-soft); color: var(--ink); }

/* ---------- Landing ---------- */
.landing { min-height: 88vh; background: var(--ink); color: #e9eef2; display: grid; position: relative; overflow: hidden; }
.landing-grid {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: center;
  max-width: 1140px; margin: auto; padding: 4rem 1.5rem; position: relative; z-index: 1;
}
.hero-side { display: flex; flex-direction: column; gap: 1.4rem; position: relative; }
.hero-cta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.landing h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 800; color: #fff; }
.landing h1 .gold { color: var(--gold); }
.landing .lead { color: #b9c6d0; max-width: 46ch; }

/* Blobs decorativos animados no fundo da hero */
.hero-blob {
  position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; z-index: 0;
}
.hero-blob-a {
  width: 460px; height: 460px; top: -140px; right: -100px;
  background: radial-gradient(circle, rgba(194,155,44,0.4), transparent 70%);
  animation: derivaA 16s ease-in-out infinite;
}
.hero-blob-b {
  width: 380px; height: 380px; bottom: -160px; left: -110px;
  background: radial-gradient(circle, rgba(42,93,159,0.4), transparent 70%);
  animation: derivaB 20s ease-in-out infinite;
}
@keyframes derivaA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 25px) scale(1.08); }
}
@keyframes derivaB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(25px, -20px) scale(1.06); }
}

/* Card de números de resultado, no lugar do antigo acesso na hero */
.hero-stats {
  background: rgba(255,255,255,0.045); border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius); padding: 1.8rem; backdrop-filter: blur(6px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem;
}
.hero-stats-logo {
  grid-column: 1 / -1; display: block; height: 187px; width: 187px; margin: 0 auto 0.9rem;
  background: #fff; border-radius: 50%; padding: 18px; box-sizing: border-box;
  object-fit: contain; box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.hero-stats-title {
  grid-column: 1 / -1; text-align: center; font-family: var(--font-display); font-weight: 700;
  font-size: 1.05rem; color: #fff; margin: 0 0 0.6rem; padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.stat-item .stat-num {
  display: block; font-family: var(--font-display); font-weight: 800; font-size: 2.1rem; color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.stat-item .stat-label { color: #b9c6d0; font-size: 0.82rem; margin: 0.25rem 0 0; line-height: 1.35; }

.auth-card {
  background: var(--card); color: var(--text); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.8rem;
}
.auth-tabs { display: flex; gap: 0.4rem; margin-bottom: 1.2rem; }
.auth-tabs button {
  flex: 1; border: 1px solid var(--line); background: transparent; border-radius: 8px;
  padding: 0.55rem; font-weight: 600; color: var(--muted);
}
.auth-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.field { margin-bottom: 0.9rem; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.25rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.6rem 0.7rem; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; background: #fff;
}
.field textarea { resize: vertical; }
.btn {
  display: inline-block; border: none; border-radius: 10px; padding: 0.7rem 1.2rem;
  font-weight: 700; background: var(--gold); color: var(--ink); text-decoration: none;
  transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(194,155,44,0.3); }
.btn:active { transform: translateY(0); }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--text); font-weight: 600; }
.btn-ghost:hover { box-shadow: none; background: rgba(255,255,255,0.06); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { box-shadow: 0 10px 22px rgba(15,29,43,0.28); }
.form-erro { color: var(--err); font-size: 0.88rem; min-height: 1.2em; margin: 0.2rem 0 0.6rem; }
.link-esqueci {
  display: block; width: 100%; text-align: center; background: none; border: none;
  color: var(--anal); font-size: 0.85rem; font-weight: 600; padding: 0.7rem 0 0;
}
.link-esqueci:hover { text-decoration: underline; }

/* ---------- App shell ---------- */
.app { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.sidebar {
  background: var(--ink); color: #cfdae2; padding: 1.4rem 1rem; position: sticky; top: 0;
  height: 100vh; display: flex; flex-direction: column; gap: 0.3rem;
}
.sidebar-logo {
  background: #fff; border-radius: 10px; padding: 0.7rem; margin-bottom: 1.1rem;
  display: flex; justify-content: center;
}
.sidebar-logo img { height: 46px; width: auto; display: block; }
.brand { font-family: var(--font-display); font-weight: 800; color: #fff; margin-bottom: 1rem; }
.brand small { display: block; color: var(--gold); font-family: var(--font-mono); font-weight: 400; font-size: 0.68rem; letter-spacing: 0.2em; }
.nav-step {
  display: flex; align-items: center; gap: 0.6rem; width: 100%; text-align: left;
  background: none; border: none; color: inherit; padding: 0.6rem 0.7rem; border-radius: 9px;
  font-weight: 600; font-size: 0.92rem;
}
.nav-step:hover { background: var(--ink-2); }
.nav-step[aria-current="page"] { background: var(--ink-3); color: #fff; }
.nav-step .num {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--gold);
  border: 1px solid rgba(194,155,44,0.5); border-radius: 6px; padding: 0.1rem 0.35rem;
}
.nav-step .check { margin-left: auto; color: var(--ok); font-size: 0.85rem; }
.nav-grupo-titulo {
  color: var(--gold); font-family: var(--font-mono); font-size: 0.72rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  margin: 1rem 0 0.3rem; padding: 0 0.7rem;
}
.nav-grupo-titulo:first-child { margin-top: 0.4rem; }
.sidebar-mascote { display: block; width: 92px; height: auto; margin: auto auto 0.6rem; }
.sidebar-footer { border-top: 1px solid var(--ink-3); padding-top: 0.9rem; font-size: 0.85rem; text-align: center; }
.creditos-pill {
  display: inline-flex; align-items: center; gap: 0.4rem; background: var(--gold-soft);
  color: var(--ink); border-radius: 999px; padding: 0.25rem 0.7rem; font-weight: 700;
  font-family: var(--font-mono); font-size: 0.8rem;
}

.main { padding: 2rem clamp(1rem, 4vw, 3rem); max-width: 1050px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.5rem; margin-bottom: 1.4rem;
}
.card h2 { font-size: 1.35rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.hint { color: var(--muted); font-size: 0.9rem; }
.aviso {
  background: var(--gold-soft); border: 1px solid #e3cf8f; border-radius: 10px;
  padding: 0.8rem 1rem; font-size: 0.92rem;
}
.aviso-zero { background: var(--gold-soft); border-color: #e3cf8f; }
.aviso-pos { background: #e0f2e7; border-color: #a9d8ba; }
.aviso-neg { background: #fbe3e1; border-color: #f0b9b4; }

/* ---------- Histórico (análises, redações, fila admin) ---------- */
.item-analise, button.item-analise {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; text-align: left; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 0.8rem 1rem; font: inherit; cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.item-analise:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.item-analise-info { display: flex; flex-direction: column; gap: 0.15rem; }

/* Variante com botão de excluir separado (histórico de análises) */
div.item-analise { padding: 0.4rem 0.4rem 0.4rem 1rem; gap: 0.4rem; }
.item-analise-abrir {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex: 1;
  text-align: left; background: none; border: none; font: inherit; cursor: pointer; padding: 0.4rem 0;
}
.item-analise-excluir {
  flex-shrink: 0; background: none; border: 1px solid var(--line); border-radius: 8px;
  padding: 0.5rem 0.65rem; cursor: pointer; font-size: 0.95rem; color: var(--muted);
}
.item-analise-excluir:hover { border-color: var(--err); color: var(--err); background: #fbe3e1; }

/* ---------- Simulado objetivo: imagem de referência da questão ---------- */
.questao-imagem { max-width: 100%; border: 1px solid var(--line); border-radius: 8px; margin: 0.6rem 0; display: block; }

/* ---------- Carga horária ---------- */
.tabela-horas { width: 100%; border-collapse: collapse; }
.tabela-horas th, .tabela-horas td { padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--line); text-align: left; }
.tabela-horas input { width: 90px; padding: 0.4rem; border: 1px solid var(--line); border-radius: 8px; font-family: var(--font-mono); }
.total-linha td { font-weight: 800; font-family: var(--font-mono); }

/* ---------- Matérias ---------- */
.materias-intro { display: flex; gap: 1.5rem; align-items: center; margin-top: 1rem; }
.materias-intro-texto { flex: 1; min-width: 0; }
.materias-dica { flex-shrink: 0; width: 240px; text-align: center; }
.materias-dica-balao {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 0.8rem 1rem; margin-bottom: 0.8rem; font-size: 0.85rem; line-height: 1.5;
  color: var(--text); box-shadow: var(--shadow); text-align: left;
}
.materias-dica-balao::after {
  content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 8px solid transparent; border-top-color: #fff;
}
.materias-dica-img { width: 80px; height: auto; margin: 0 auto; display: block; }
@media (max-width: 900px) {
  .materias-intro { flex-direction: column; }
  .materias-dica { width: 100%; }
}

.glossario-fixo { display: flex; gap: 1.2rem; align-items: center; }
.glossario-mascote { width: 90px; height: auto; flex-shrink: 0; }
@media (max-width: 700px) {
  .glossario-fixo { flex-direction: column; align-items: center; text-align: center; }
}

.provas-busca { display: flex; gap: 0.6rem; margin-bottom: 0.8rem; }
.provas-busca input {
  flex: 1; min-width: 0; padding: 0.6rem 0.7rem; border: 1px solid var(--line);
  border-radius: 8px; font: inherit; background: #fff;
}
.provas { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1rem; }
.chip { border: 1.5px solid var(--line); border-radius: 999px; padding: 0.45rem 1rem; background: #fff; font-weight: 600; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tabela-materias { width: 100%; border-collapse: collapse; }
.tabela-materias th, .tabela-materias td { padding: 0.45rem 0.6rem; border-bottom: 1px solid var(--line); }
.tabela-materias select { padding: 0.35rem 0.5rem; border: 1px solid var(--line); border-radius: 8px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.9rem; margin-top: 1rem; }
.kpi { border: 1px solid var(--line); border-radius: 12px; padding: 0.9rem; }
.kpi .valor { font-family: var(--font-mono); font-size: 1.6rem; font-weight: 700; }
.kpi.saldo-pos .valor { color: var(--anal); }
.kpi.saldo-neg .valor { color: var(--err); }
.kpi.kpi-ok { background: #e0f2e7; border-color: #a9d8ba; }
.kpi.kpi-ok .valor { color: var(--ok); }
.kpi.kpi-erro { background: #fbe3e1; border-color: #f0b9b4; }
.kpi.kpi-erro .valor { color: var(--err); }

/* ---------- Simulado: revisão colorida (acerto/erro) ---------- */
.questao-revisao { border-left-width: 4px; }
.questao-revisao.correta { background: #e0f2e7; border-color: #a9d8ba; border-left-color: var(--ok); }
.questao-revisao.incorreta { background: #fbe3e1; border-color: #f0b9b4; border-left-color: var(--err); }
.questao-revisao .resultado-tag { font-weight: 700; }
.questao-revisao.correta .resultado-tag { color: var(--ok); }
.questao-revisao.incorreta .resultado-tag { color: var(--err); }

/* ---------- Perfil ---------- */
.contador { font-family: var(--font-mono); font-size: 0.85rem; padding: 0.35rem 0.7rem; border-radius: 8px; border: 1px solid var(--line); }
.contador.ok { border-color: var(--ok); color: var(--ok); }
.contador.pendente { border-color: var(--err); color: var(--err); }
.perfil-grid-2 { align-items: stretch; }
.perfil-coluna {
  display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem; background: var(--paper);
}
.perfil-coluna .contador { align-self: flex-start; margin-top: 0.8rem; }
.perfil-coluna .palavras-grid { flex: 1; }
.perfil-coluna.bloqueado .palavras-grid { opacity: 0.45; pointer-events: none; }
/* Altura reservada pro bloco de instruções — cobre o pior caso (mensagem
   de bloqueio + instrução mais longa) pra que a caixa de palavras sempre
   comece na mesma altura nas duas colunas, com qualquer texto/estado. */
.perfil-instrucoes { min-height: 9rem; }
#msg-bloqueio-ada { color: var(--warn); font-weight: 600; }
.palavras-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
  gap: 0.25rem; max-height: 420px; overflow: auto; border: 1px solid var(--line);
  border-radius: 10px; padding: 0.6rem; background: #fff;
}
.palavra { display: flex; gap: 0.35rem; align-items: center; padding: 0.2rem 0.3rem; border-radius: 6px; font-size: 0.76rem; line-height: 1.2; }
.palavra:hover { background: var(--paper); }
.palavra input { accent-color: var(--gold); width: 13px; height: 13px; flex-shrink: 0; }

/* ---------- Resultados ---------- */
.abas-resultados { display: flex; gap: 0.6rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.abas-resultados button {
  flex: 1; min-width: 150px; border: 1.5px solid var(--line); background: #fff; border-radius: 10px;
  padding: 0.75rem 1rem; font-weight: 700; color: var(--muted); font-family: var(--font-display); font-size: 0.92rem;
}
.abas-resultados button[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (max-width: 700px) {
  .abas-resultados { flex-direction: column; }
}

/* ---------- Guia ENEM (microtemas) ---------- */
.guia-temas { display: flex; flex-direction: column; gap: 1.4rem; margin-top: 1.2rem; }
.guia-tema h3 { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; font-size: 1rem; }
.guia-lista { columns: 2; column-gap: 1.6rem; margin: 0.5rem 0 0; padding-left: 1.1rem; }
.guia-lista li { break-inside: avoid; margin-bottom: 0.55rem; font-size: 0.88rem; line-height: 1.42; }
.tag-destaque, .tag-recorrente {
  display: inline-block; font-size: 0.68rem; font-weight: 700; padding: 0.15rem 0.55rem;
  border-radius: 999px; white-space: nowrap;
}
.tag-destaque { background: var(--gold-soft); color: var(--ink); border: 1px solid #e3cf8f; }
.tag-recorrente { background: #fdeeda; color: var(--warn); border: 1px solid #efce9a; }
.guia-resumo { columns: 2; column-gap: 2rem; padding-left: 1.2rem; margin-top: 0.8rem; }
.guia-resumo li { break-inside: avoid; margin-bottom: 0.6rem; font-weight: 600; font-size: 0.92rem; }
@media (max-width: 700px) {
  .guia-lista, .guia-resumo { columns: 1; }
}
.perfil-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.perfil-card { border-radius: 12px; padding: 1.1rem; color: #fff; }
.perfil-card .rotulo { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.15em; opacity: 0.85; }
.perfil-card .nome { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; }
.bg-EXECUTOR { background: var(--exec); } .bg-COMUNICADOR { background: var(--comu); }
.bg-PLANEJADOR { background: var(--plan); } .bg-ANALISTA { background: var(--anal); }

.barras { display: grid; gap: 0.55rem; margin-top: 1rem; }
.barra-linha { display: grid; grid-template-columns: 110px 1fr 1fr; gap: 0.6rem; align-items: center; font-size: 0.85rem; }
.barra-nome { font-family: var(--font-mono); font-size: 0.75rem; }
.trilho { background: var(--paper); border-radius: 6px; height: 18px; overflow: hidden; border: 1px solid var(--line); position: relative; }
.trilho .preenchido { height: 100%; border-radius: 6px 0 0 6px; display: flex; align-items: center; justify-content: flex-end; padding-right: 5px; color: #fff; font-family: var(--font-mono); font-size: 0.7rem; min-width: 1.4em; }
.pr-EXECUTOR { background: var(--exec); } .pr-COMUNICADOR { background: var(--comu); }
.pr-PLANEJADOR { background: var(--plan); } .pr-ANALISTA { background: var(--anal); }
.trilho.suave .preenchido { opacity: 0.55; }

/* ---------- Gráfico de Impacto Adaptativo (SVG) ---------- */
.legenda-grafico { display: flex; gap: 1.4rem; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.6rem; }
.legenda-grafico span { display: inline-flex; align-items: center; gap: 0.4rem; }
.legenda-grafico .leg-barra { width: 12px; height: 12px; border-radius: 3px; background: var(--ink-3); }
.legenda-grafico .leg-linha { width: 16px; height: 3px; border-radius: 2px; background: var(--gold); }
.grafico-impacto { max-width: 620px; margin: 0 auto; }

.indice-box { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.indice-num { font-family: var(--font-mono); font-size: 3rem; font-weight: 700; color: var(--ink); }
.faixa { font-weight: 700; padding: 0.3rem 0.8rem; border-radius: 999px; }
.faixa.ok { background: #e0f2e7; color: var(--ok); }
.faixa.medio { background: #fdeeda; color: var(--warn); }
.faixa.alto { background: #fbe3e1; color: var(--err); }

/* ---------- Ciclo serpenteado com setas douradas ---------- */
.ciclo { display: grid; gap: 0.7rem; }
.ciclo-linha { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0.7rem; align-items: stretch; }
.bloco {
  border-radius: 12px; padding: 0.7rem 0.6rem; text-align: center; color: #fff;
  background: var(--ink-2); display: flex; flex-direction: column; justify-content: center; gap: 0.2rem;
  min-height: 74px; position: relative;
}
.bloco .nome-bloco { font-weight: 700; font-size: 0.82rem; line-height: 1.2; }
.bloco .horas { font-family: var(--font-mono); font-size: 0.78rem; color: var(--gold); }
.bloco.revisao { background: repeating-linear-gradient(45deg, var(--ink-3), var(--ink-3) 8px, var(--ink-2) 8px, var(--ink-2) 16px); border: 1.5px dashed var(--gold); }
.seta { align-self: center; color: var(--gold); font-size: 2.2rem; font-weight: 700; text-align: center; line-height: 1; }
.seta-volta { text-align: right; padding-right: 1.2rem; }
.seta-ida { text-align: left; padding-left: 1.2rem; }

/* ---------- Mapa M.A.P.A. ---------- */
.mapa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.mapa-card { border-radius: 12px; border: 1px solid var(--line); padding: 1.1rem; background: #fff; }
.mapa-card h3 { display: flex; align-items: center; gap: 0.55rem; font-size: 1.02rem; }
.mapa-letra {
  font-family: var(--font-display); font-weight: 800; color: var(--ink); background: var(--gold-soft);
  border: 1px solid #e3cf8f; width: 34px; height: 34px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem;
}
.mapa-card p { white-space: pre-line; font-size: 0.92rem; }
.perfil-explica { display: flex; gap: 1rem; align-items: center; }
.perfil-explica-texto { flex: 1; min-width: 0; }
.perfil-explica-img { width: 90px; height: auto; flex-shrink: 0; }
@media (max-width: 700px) {
  .perfil-explica { flex-direction: column; }
}

.texto-planilha { white-space: pre-line; }

.portal-intro { display: flex; align-items: center; gap: 1.5rem; }
.portal-intro-texto { flex: 1; min-width: 0; }
.portal-mascote-wrap { position: relative; flex-shrink: 0; }
.portal-mascote { display: block; transition: opacity 0.5s ease; }
/* Larguras ~55% do tamanho nativo de cada imagem (vitia2.png 262px,
   vitia3.png 223px) — mesma proporção de redução pras duas, pra não
   dar salto de tamanho na transição do hover. */
.portal-mascote-base { width: 145px; }
.portal-mascote-hover { position: absolute; top: 0; left: 0; opacity: 0; width: 123px; }
.portal-mascote-wrap:hover .portal-mascote-hover { opacity: 1; }
.portal-mascote-wrap:hover .portal-mascote-base { opacity: 0; }

.portal-balao {
  position: absolute; top: 100%; left: 50%; transform: translate(-50%, -10px);
  width: min(260px, 78vw); margin-top: 0.8rem; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 0.8rem 1rem; font-size: 0.82rem; line-height: 1.45;
  color: var(--text); box-shadow: var(--shadow); opacity: 0; z-index: 5;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.portal-balao::after {
  content: ""; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  border: 8px solid transparent; border-bottom-color: #fff;
}
.portal-mascote-wrap:hover .portal-balao { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 700px) {
  .portal-intro { flex-direction: column; }
  .portal-mascote-wrap { order: -1; }
}

.carga-mascote { display: block; width: 123px; margin: 1.2rem auto 0; }

.bloqueio { text-align: center; padding: 2.5rem 1rem; }
.bloqueio .cadeado { font-size: 2.4rem; }

.neuro-quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.neuro-quote { border-left: 4px solid var(--gold); background: #fff; border-radius: 0 10px 10px 0; padding: 0.9rem 1rem; }
.neuro-quote .dor { font-weight: 700; }
.neuro-quote .resposta { color: var(--plan); font-weight: 600; margin-top: 0.4rem; }
.neuro-mascote-wrap { width: fit-content; margin: 1.4rem auto 0; }
.neuro-mascote { display: block; }

dialog {
  border: none; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.8rem;
  width: min(420px, 92vw); background: var(--card); color: var(--text); position: relative;
}
dialog::backdrop { background: rgba(15,29,43,0.55); }
.dlg-fechar {
  position: absolute; top: 0.8rem; right: 0.9rem; background: none; border: none;
  color: var(--muted); font-size: 1.1rem; line-height: 1; padding: 0.3rem;
}
.dlg-fechar:hover { color: var(--text); }
.dlg-logo { display: block; height: 52px; width: auto; margin: 0 auto 1.1rem; }
#dlg-acesso .auth-tabs { margin-top: 0.4rem; }

/* Vídeo do "Pod Falar em Direito" numa moldura de tablet — modal mais
   largo que o padrão (auth/recuperar) pra caber o vídeo confortavelmente. */
#dlg-podcast { width: min(720px, 94vw); background: transparent; box-shadow: none; padding: 2.2rem 0 0; }
#dlg-podcast .dlg-fechar { top: 0; right: 0.4rem; color: #fff; font-size: 1.3rem; }
#dlg-podcast .dlg-fechar:hover { color: var(--gold); }
.tablet-mockup {
  background: #1a1a1a; border-radius: 24px; padding: 1.4rem 1.4rem 1.8rem; box-shadow: 0 20px 50px rgba(0,0,0,0.45);
}
.tablet-tela { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 6px; overflow: hidden; }
.tablet-tela iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tablet-home-botao { width: 12px; height: 12px; border-radius: 50%; background: #3a3a3a; margin: 1rem auto 0; }

/* ---------- Seções institucionais (página de apresentação) ---------- */
.section-pad { padding: 4.5rem 1.5rem; }
.container { max-width: 1100px; margin: 0 auto; }
.container-narrow { max-width: 720px; margin: 0 auto; }
.section-ink { background: var(--ink); color: #e9eef2; }
.section-title { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.section-title.center, .eyebrow.center { text-align: center; }
.section-title.light { color: #fff; }

.problema-texto { font-size: 1.25rem; text-align: center; color: var(--ink-2); line-height: 1.6; }
.problema-texto strong { color: var(--ink); }

.fase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2.2rem; }
.fase-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.5rem; position: relative;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.fase-card:hover { transform: translateY(-6px); box-shadow: 0 18px 34px rgba(15,29,43,0.14); }
.fase-card h3 { font-size: 1.1rem; margin-top: 0.6rem; }
.fase-card p { color: var(--muted); font-size: 0.95rem; }
.fase-num {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: 9px; background: var(--gold-soft); color: var(--ink); font-family: var(--font-display);
  font-weight: 800; border: 1px solid #e3cf8f;
}
.fase-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.fase-tags span {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em;
  border: 1px solid var(--line); border-radius: 999px; padding: 0.25rem 0.65rem; color: var(--muted);
}
.fundamentacao { text-align: center; color: var(--muted); font-size: 0.92rem; margin-top: 2rem; }
.fase-card-ink { background: var(--ink-2); border-color: var(--ink-3); }
.fase-card-ink h3 { color: #fff; }
.fase-card-ink p { color: #b9c6d0; }

.depoimentos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2.2rem; }
.depoimento-card {
  background: var(--ink-2); border-radius: var(--radius); overflow: hidden; text-align: center; padding-bottom: 1.2rem;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.depoimento-card:hover { transform: translateY(-6px); box-shadow: 0 18px 34px rgba(0,0,0,0.3); }
.depoimento-card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; transition: transform 0.5s ease; }
.depoimento-card:hover img { transform: scale(1.06); }
.depoimento-card h3 { margin: 0.9rem 0 0.3rem; font-size: 1.05rem; color: #fff; }
.depoimento-card p { color: #b9c6d0; font-size: 0.88rem; padding: 0 1rem; margin: 0; }

.voz-destaque {
  margin-top: 2.5rem; display: grid; grid-template-columns: 140px 1fr; gap: 1.6rem; align-items: center;
  background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: var(--radius); padding: 1.6rem;
}
.voz-destaque img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; }
.voz-destaque blockquote { margin: 0.5rem 0; font-family: var(--font-display); font-size: 1.15rem; color: #fff; font-style: normal; border-left: 3px solid var(--gold); padding-left: 0.9rem; }
.voz-autor { color: var(--gold); font-weight: 700; margin: 0; }
.voz-autor span { color: #b9c6d0; font-weight: 400; }

.vertentes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2.2rem; }

.transparencia-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 2.2rem; }
.transparencia-card { border-radius: var(--radius); padding: 1.6rem; border: 1px solid var(--line); }
.transparencia-card h3 { font-size: 1.1rem; }
.transparencia-card ul { margin: 0; padding-left: 1.2rem; }
.transparencia-card li { margin-bottom: 0.6rem; font-size: 0.95rem; }
.transparencia-sim { background: #eef6f0; border-color: #cfe6d6; }
.transparencia-sim h3 { color: var(--plan); }
.transparencia-nao { background: #fbeeec; border-color: #f1cfc9; }
.transparencia-nao h3 { color: var(--exec); }

.mentor-grid { display: grid; grid-template-columns: 260px 1fr; gap: 2.5rem; align-items: center; }
.mentor-foto { width: 100%; border-radius: var(--radius); object-fit: cover; aspect-ratio: 4/5; }
.mentor-bio { font-size: 1.1rem; color: #d7dfe5; }
.mentor-credenciais { padding-left: 1.2rem; color: #b9c6d0; }
.mentor-credenciais li { margin-bottom: 0.5rem; }
.mentor-podcast {
  display: block; width: 100%; text-align: left; border: none; font-family: inherit;
  margin-top: 1.2rem; padding: 1rem; background: var(--ink-2); border-radius: 10px;
  color: #d7dfe5; font-size: 0.92rem; transition: background 0.2s ease;
}
.mentor-podcast:hover { background: var(--ink-3); }

.onde-passou-card {
  display: grid; grid-template-columns: 96px 1fr; gap: 1.4rem; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.4rem; margin-top: 2.2rem;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.onde-passou-card:hover { transform: translateY(-4px); box-shadow: 0 18px 34px rgba(15,29,43,0.14); }
.onde-passou-logo { width: 96px; height: 96px; object-fit: contain; border-radius: 10px; }
.onde-passou-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.onde-passou-card p { color: var(--muted); margin: 0; }
.midia-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 1.2rem; }
.midia-card {
  display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem;
  background: var(--card); text-decoration: none; color: var(--text);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.midia-card:hover { transform: translateY(-4px); box-shadow: 0 18px 34px rgba(15,29,43,0.14); border-color: var(--gold); }
.midia-card h3 { font-size: 1rem; margin: 0.3rem 0 0.8rem; }
.midia-link { color: var(--anal); font-weight: 700; font-size: 0.9rem; transition: transform 0.2s ease; display: inline-block; }
.midia-card:hover .midia-link { transform: translateX(4px); }

.passos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2.2rem; }

.cta-final { background: var(--gold-soft); }

.site-footer {
  background: var(--ink); color: #b9c6d0; text-align: center; padding: 2.2rem 1.5rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
}
.site-footer img {
  height: 44px; width: 44px; background: #fff; border-radius: 50%;
  padding: 6px; box-sizing: border-box; object-fit: contain;
}
.site-footer p { margin: 0; font-size: 0.85rem; }

/* ---------- Revelação ao rolar (progressive enhancement) ----------
   Usa a propriedade `translate` (independente de `transform`) para não
   conflitar com transforms de hover nos mesmos elementos. */
html.js-reveal-ready .reveal {
  opacity: 0; translate: 0 28px;
  transition: opacity 0.7s ease, translate 0.7s ease;
}
html.js-reveal-ready .reveal.is-visible { opacity: 1; translate: 0 0; }
html.js-reveal-ready .reveal-group > .reveal:nth-child(2) { transition-delay: 0.1s; }
html.js-reveal-ready .reveal-group > .reveal:nth-child(3) { transition-delay: 0.2s; }
html.js-reveal-ready .reveal-group > .reveal:nth-child(4) { transition-delay: 0.3s; }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .grid-2, .perfil-cards, .mapa-grid, .neuro-quotes { grid-template-columns: 1fr; }
  .app { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .sidebar nav { display: flex; flex-wrap: wrap; gap: 0.2rem; }
  .nav-step { width: auto; font-size: 0.8rem; padding: 0.45rem 0.6rem; }
  .sidebar-footer { margin: 0 0 0 auto; border: none; padding: 0; }
  .ciclo-linha { grid-auto-flow: row; grid-auto-columns: unset; }
  .seta-volta, .seta-ida { text-align: center; padding: 0; transform: rotate(90deg); }

  .site-header-inner { justify-content: space-between; }
  .site-nav { display: none; }
  .fase-grid, .depoimentos-grid, .vertentes-grid, .transparencia-grid, .midia-grid, .passos-grid { grid-template-columns: 1fr; }
  .voz-destaque, .mentor-grid, .onde-passou-card { grid-template-columns: 1fr; text-align: center; }
  .voz-destaque img, .onde-passou-logo { margin: 0 auto; }
  .mentor-foto { max-width: 260px; margin: 0 auto; }
  .mentor-credenciais { text-align: left; }

  .landing { min-height: 0; }
  .landing-grid { grid-template-columns: 1fr; padding: 3rem 1.5rem; }
  .hero-stats { grid-template-columns: 1fr 1fr; margin-top: 0.5rem; }
  .hero-blob-a, .hero-blob-b { width: 260px; height: 260px; filter: blur(50px); }
}

/* ============================================================
   FLASHCARDS — Ícone post-it + modal de pergunta/resposta
   ============================================================ */

/* --- Ícone de post-it nos cabeçalhos de tema (herda flex-wrap da regra em .guia-tema h3 acima) --- */
.flashcard-icon-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  flex-shrink: 0;
  position: relative;
  background: var(--gold-soft);
  border: none;
  border-radius: 2px;
  box-shadow: 0 3px 8px rgba(15, 29, 43, 0.2), 0 1px 2px rgba(15, 29, 43, 0.15);
  transform: rotate(-4deg);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.flashcard-icon-btn::after {
  /* Canto dobrado do post-it */
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 10px 10px 0;
  border-color: transparent rgba(255, 255, 255, 0.8) transparent transparent;
}
.flashcard-icon-btn:hover {
  background: var(--gold);
  transform: rotate(0deg) scale(1.1);
  box-shadow: 0 6px 16px rgba(15, 29, 43, 0.3);
}
.flashcard-icon-btn:hover .flashcard-badge,
.flashcard-icon-btn:hover .flashcard-icon-label {
  color: #fff;
}
.flashcard-badge {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--ink);
}
.flashcard-icon-label {
  font-family: var(--font-mono);
  font-size: 0.48rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.75;
  margin-top: 2px;
}

/* --- Modal overlay --- */
.flashcard-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 29, 43, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: flashcardFadeIn 0.2s ease;
}
.flashcard-overlay[hidden] {
  display: none !important;
}
@keyframes flashcardFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* --- Cartão do modal: post-it de verdade --- */
.flashcard-modal {
  background: #fdf3c7;
  border-radius: 4px 4px 18px 18px;
  box-shadow: 0 20px 60px rgba(15, 29, 43, 0.3);
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 2.8rem 2rem 1.5rem;
  position: relative;
  animation: flashcardSlideUp 0.25s ease;
}
.flashcard-modal::before {
  /* "Fita adesiva" prendendo o post-it */
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 84px;
  height: 26px;
  transform: translateX(-50%) rotate(-2deg);
  background: rgba(194, 155, 44, 0.3);
  border: 1px solid rgba(194, 155, 44, 0.45);
  box-shadow: 0 2px 4px rgba(15, 29, 43, 0.1);
}
.flashcard-modal::after {
  /* Canto dobrado */
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 30px 30px 0;
  border-color: transparent rgba(255, 255, 255, 0.55) transparent transparent;
}
@keyframes flashcardSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.flashcard-close {
  position: absolute;
  top: 0.7rem;
  right: 0.9rem;
  z-index: 2;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--muted);
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  line-height: 1;
}
.flashcard-close:hover {
  background: var(--paper);
  color: var(--text);
}

/* --- Top bar (contador + disciplina) --- */
.flashcard-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.4rem;
  padding-bottom: 0.8rem;
  padding-right: 1.8rem;
  border-bottom: 1px solid rgba(194, 155, 44, 0.35);
  flex-wrap: wrap;
  gap: 0.4rem;
}
.flashcard-counter {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
}
.flashcard-disciplina {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
  text-align: right;
}

/* --- Corpo: pergunta e resposta --- */
.flashcard-body {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.flashcard-pergunta {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  margin: 0;
}
.flashcard-resposta-wrapper {
  background: rgba(255, 255, 255, 0.72);
  border-left: 3px solid var(--gold);
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.2rem;
  box-shadow: 0 1px 3px rgba(15, 29, 43, 0.06);
  animation: flashcardFadeIn 0.3s ease;
}
.flashcard-resposta-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin: 0 0 0.4rem;
}
.flashcard-resposta {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.6;
  margin: 0;
}
.flashcard-pergunta sup, .flashcard-resposta sup,
.flashcard-pergunta sub, .flashcard-resposta sub {
  font-size: 0.72em;
}

/* --- Ações (botão revelar + navegação) --- */
.flashcard-actions {
  margin-top: 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}
.flashcard-btn-reveal {
  background: var(--ink);
  color: #fff;
  font-size: 0.95rem;
  padding: 0.7rem 2rem;
  border-radius: 12px;
}
.flashcard-btn-reveal:hover {
  box-shadow: 0 8px 20px rgba(15, 29, 43, 0.3);
}
.flashcard-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  width: 100%;
  justify-content: center;
}
.flashcard-nav .btn-ghost {
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 0.85rem;
  padding: 0.45rem 0.9rem;
}

/* --- Responsivo --- */
@media (max-width: 480px) {
  .flashcard-modal {
    padding: 1.4rem 1.2rem 1.2rem;
  }
  .flashcard-pergunta {
    font-size: 1rem;
  }
}
