/* =========================================================
   Método 1% — Design tokens v2 (Missão 11D)
   Identidade unificada nas 4 telas: azul-marinho profundo +
   verde-limão, inspirada na animação aprovada em
   experimentos/scroll-conhecimento/ — NÃO copia paleta,
   imagem ou código do AiVerso.
   ========================================================= */

:root {
  /* cor de marca: verde-limão sobre fundo escuro */
  --brand: #c9ff3d;
  --brand-dark: #b8f23a;   /* usado em hover de botões/preenchimentos */
  --brand-soft: rgba(201, 255, 61, 0.14);
  --on-brand: #0a1206;     /* texto escuro sobre fundo de marca (contraste) */

  /* status (reservadas — nunca usadas como decoração) */
  --status-today: #ffcf4d;
  --status-today-soft: rgba(255, 207, 77, 0.14);
  --status-alert: #ff6b5e;
  --status-alert-soft: rgba(255, 107, 94, 0.14);

  /* tinta / neutros — fundo azul-marinho profundo */
  --ink: #f2f5ff;
  --ink-soft: #c7cfe0;
  --muted: #8c97b8;
  --paper: #070b14;
  --surface: #0e1626;
  --navy-mid: #16213a;
  --border: #1c2740;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 40px rgba(0, 0, 0, 0.45);
  --container: 1120px;

  --font: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-head: "Montserrat", var(--font);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
img { max-width: 100%; display: block; }

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- eyebrow / headline mecanismo ---------- */
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}
.hl-accent { color: var(--brand); }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 11, 20, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
}
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--brand);
  display: flex; align-items: center; justify-content: center;
  color: var(--on-brand); font-size: 0.85rem; font-weight: 800;
}
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.nav-links a.active, .nav-links a:hover { color: var(--brand); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-toggle {
  display: none;
  border: none;
  background: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  margin: 4px 0;
  border-radius: 2px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-dark); box-shadow: 0 10px 26px rgba(201, 255, 61, 0.28); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }

/* ---------- trust badges ---------- */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}
.trust-row span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- sections ---------- */
.section { padding: 80px 0; position: relative; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 640px; margin: 0 0 40px; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); font-weight: 800; letter-spacing: -0.01em; }
.section-head p { margin-top: 12px; color: var(--ink-soft); font-size: 1.02rem; }

/* ---------- cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 255, 61, 0.35);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 24px 50px rgba(0, 0, 0, 0.5);
}
.icon-badge {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 14px;
  background: var(--brand-soft);
  color: var(--brand);
}
.icon-badge.alert { background: var(--status-alert-soft); color: var(--status-alert); }
.icon-badge.today { background: var(--status-today-soft); color: var(--status-today); }

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

.card h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- numbered steps ---------- */
.step {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }
.step-num {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-family: var(--font-head);
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 1.02rem; font-weight: 800; margin-bottom: 4px; }
.step p { color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- quote ---------- */
.quote {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

/* ---------- hero (impacto visual: glow radial de profundidade) ---------- */
.hero { padding: 72px 0 60px; position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 680px;
  background: radial-gradient(ellipse at 50% 15%, rgba(201, 255, 61, 0.12), transparent 62%);
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.015em; }
.hero-sub { margin-top: 16px; color: var(--ink-soft); font-size: 1.05rem; max-width: 46ch; }
.hero-actions { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }

.hero-visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 22px;
}
.hero-visual .mini-label { font-size: 0.75rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------- offer / price card ---------- */
.offer-card {
  background: var(--surface);
  border: 2px solid var(--brand);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 20px 50px rgba(201, 255, 61, 0.08);
  padding: 32px;
  max-width: 420px;
  margin: 0 auto;
}
.offer-price { font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; }
.offer-price small { font-size: 1rem; font-weight: 700; color: var(--muted); }
.offer-list { margin: 18px 0 24px; display: flex; flex-direction: column; gap: 10px; }
.offer-list li { display: flex; gap: 10px; font-size: 0.92rem; color: var(--ink-soft); }
.offer-list li::before { content: "✓"; color: var(--brand); font-weight: 800; }

.notice {
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }

/* =========================================================
   App (dashboard / plano / estudar)
   ========================================================= */
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.app-main { flex: 1; padding: 32px 0 64px; }
.page-head { margin-bottom: 28px; }
.page-head h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; }
.page-head p { color: var(--ink-soft); margin-top: 6px; }

/* stat tiles */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.stat-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.stat-tile:hover { transform: translateY(-3px); border-color: rgba(201, 255, 61, 0.3); }
.stat-tile .label { font-size: 0.78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.stat-tile .value { font-family: var(--font-head); font-size: 1.9rem; font-weight: 800; margin-top: 6px; }
.stat-tile .value small { font-size: 1rem; color: var(--muted); font-weight: 700; }
.stat-tile .hint { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }

/* barra de progresso */
.bar-track {
  position: relative;
  height: 10px;
  background: var(--brand-soft);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.bar-fill {
  position: absolute; inset: 0 auto 0 0;
  background: var(--brand);
  border-radius: var(--radius-pill);
  transition: width 0.6s cubic-bezier(.16,.84,.44,1);
}
.bar-label { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--ink-soft); margin-top: 8px; font-weight: 600; }

/* mini barras por disciplina */
.subject-bars { display: flex; flex-direction: column; gap: 14px; }
.subject-bar-row { display: grid; grid-template-columns: 140px 1fr 48px; align-items: center; gap: 12px; font-size: 0.86rem; }
.subject-bar-row .name { font-weight: 700; color: var(--ink); }
.subject-bar-row .pct { text-align: right; color: var(--muted); font-weight: 700; }

/* anel de progresso */
.ring-wrap { position: relative; width: 132px; height: 132px; margin: 0 auto; }
.ring-wrap svg { transform: rotate(-90deg); }
.ring-track { stroke: var(--brand-soft); fill: none; }
.ring-fill { stroke: var(--brand); fill: none; stroke-linecap: round; transition: stroke-dashoffset 0.7s cubic-bezier(.16,.84,.44,1); }
.ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-center .big { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; }
.ring-center .small { font-size: 0.72rem; color: var(--muted); font-weight: 700; }

/* calendário de 30 dias */
.cal-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 8px; }
.cal-cell {
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 700; color: var(--muted);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.cal-cell.done { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.cal-cell.today { background: var(--status-today-soft); border-color: var(--status-today); color: var(--status-today); }
.cal-cell:hover { border-color: var(--brand); transform: translateY(-2px); }

/* lista do plano de 30 dias */
.plan-week { margin-bottom: 28px; }
.plan-week h2 { font-size: 1rem; font-weight: 800; margin-bottom: 12px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.04em; }
#plano-lista { transition: opacity 0.22s ease; }
#plano-lista.fading { opacity: 0; }
.plan-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 10px;
  transition: transform 0.18s ease, border-color 0.18s ease, opacity 0.2s ease;
}
.plan-item:hover { transform: translateY(-3px); border-color: rgba(201, 255, 61, 0.3); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4); }
.plan-item.done { opacity: 0.6; }
.plan-item .day-num {
  flex: none;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-family: var(--font-head);
}
.plan-item.done .day-num { background: var(--brand); color: var(--on-brand); }
.plan-item-body { flex: 1; }
.plan-item .tema { font-weight: 700; font-size: 0.95rem; }
.plan-item .meta { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.plan-item .check {
  flex: none;
  width: 28px; height: 28px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--brand);
  font-weight: 800;
  transition: transform 0.15s ease;
}
.plan-item .check:hover { transform: scale(1.1); }
.plan-item.done .check { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--brand-soft);
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.tag.notebook { background: var(--status-today-soft); color: var(--status-today); }

.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.filter-chip {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.filter-chip:hover { border-color: var(--brand); color: var(--brand); }
.filter-chip.active { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

/* estudar agora */
.study-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.study-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-card); }
.study-command {
  background: var(--brand-soft);
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 0.92rem;
  color: var(--ink);
  margin: 16px 0;
  position: relative;
  transition: box-shadow 0.2s ease;
}
.copy-btn {
  position: absolute; top: 10px; right: 10px;
  border: none; background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 0.75rem; font-weight: 700;
  cursor: pointer; color: var(--brand);
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease;
}
.copy-btn:hover { transform: translateY(-1px); }
.routine-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.routine-item { display: flex; gap: 10px; align-items: center; font-size: 0.9rem; transition: color 0.15s ease; }
.routine-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: none; }
.sidebar-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 16px; transition: border-color 0.2s ease; }
.sidebar-card h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 10px; }
.day-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }

/* =========================================================
   Animação / microinteração (compartilhado nas 4 telas)
   ========================================================= */

/* fade-up ao entrar na viewport (IntersectionObserver em app.js) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(.16,.84,.44,1), transform 0.6s cubic-bezier(.16,.84,.44,1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* pulso discreto: usado quando um valor REAL muda (progresso, conclusão) */
@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(201, 255, 61, 0.55); }
  70% { box-shadow: 0 0 0 14px rgba(201, 255, 61, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 255, 61, 0); }
}
.pulse-once { animation: pulseGlow 900ms ease-out; }

/* flash sutil quando um dia é marcado/desmarcado no plano */
@keyframes flashDone {
  0% { background: var(--brand-soft); border-color: var(--brand); }
  100% { background: var(--surface); border-color: var(--border); }
}
.just-toggled { animation: flashDone 900ms ease; }

/* =========================================================
   Responsivo (mobile-first checks)
   ========================================================= */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; flex-direction: column; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .study-layout { grid-template-columns: 1fr; }
  .cal-grid { grid-template-columns: repeat(6, 1fr); }
  .section { padding: 56px 0; }
}

@media (max-width: 480px) {
  .stat-row { grid-template-columns: 1fr 1fr; }
  .offer-card { padding: 22px; }
  .plan-item { flex-wrap: wrap; }
}

/* mobile nav drawer */
.nav-drawer {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0 16px;
  border-top: 1px solid var(--border);
}
.nav-drawer.open { display: flex; }
.nav-drawer a { padding: 10px 4px; font-weight: 700; color: var(--ink-soft); }
.nav-drawer a.active { color: var(--brand); }

/* =========================================================
   Seção "O conhecimento se formando" — animação 11C integrada à landing
   (reusa os tokens do site; não precisa de paleta própria aqui, já que
   o site inteiro agora é azul-marinho + verde-limão)
   ========================================================= */
#knowledgeSection .stage-wrap { position: relative; height: 220vh; }
#knowledgeSection .stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 40%, var(--navy-mid) 0%, var(--paper) 70%);
}
#knowledgeSection .stage svg { width: min(94vw, 820px); height: auto; max-height: 88vh; overflow: visible; }
#knowledgeSection .stage-caption {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); text-align: center; pointer-events: none;
}
#knowledgeSection #core { fill: var(--brand); }
#knowledgeSection .shell { fill: none; stroke: var(--brand-dark); stroke-width: 3; }
#knowledgeSection .link { fill: none; stroke: var(--brand-soft); stroke-width: 2.2; }
#knowledgeSection .node { cursor: pointer; }
#knowledgeSection .node circle { fill: var(--surface); stroke: var(--brand); stroke-width: 2.4; transition: filter 0.15s ease, stroke 0.15s ease; }
#knowledgeSection .node .icon { stroke: var(--brand); stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
#knowledgeSection .node text { fill: var(--ink); font-family: var(--font-head); font-weight: 700; font-size: 16px; }
#knowledgeSection .node:hover circle, #knowledgeSection .node:focus-visible circle { stroke: #ffffff; filter: drop-shadow(0 0 10px var(--brand)); }
#knowledgeSection .node:focus-visible { outline: 3px solid var(--brand); outline-offset: 8px; border-radius: 50%; }
#knowledgeSection .node[aria-expanded="true"] circle { fill: var(--brand); }
#knowledgeSection .node[aria-expanded="true"] .icon { stroke: var(--on-brand); }
#knowledgeSection .node[aria-expanded="true"] text { fill: var(--brand); }
#knowledgeSection #closingLabel { fill: var(--ink); font-family: var(--font-head); font-weight: 800; }
#knowledgeSection #closingLabel tspan.accent { fill: var(--brand); }
#knowledgeSection .panel-backdrop { position: absolute; inset: 0; background: rgba(7, 11, 20, 0.55); backdrop-filter: blur(2px); z-index: 5; }
#knowledgeSection .node-panel {
  position: absolute; left: 50%; bottom: 64px; transform: translateX(-50%); z-index: 6;
  width: min(92vw, 420px); background: var(--surface); border: 1px solid rgba(201, 255, 61, 0.35);
  border-radius: 18px; padding: 26px 24px 24px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
#knowledgeSection .node-panel h3 { font-size: 1.15rem; font-weight: 800; color: var(--brand); margin-bottom: 10px; padding-right: 20px; }
#knowledgeSection .node-panel p { font-size: 0.94rem; color: var(--ink); line-height: 1.5; }
#knowledgeSection .node-panel-close {
  position: absolute; top: 14px; right: 16px; background: none; border: none; color: var(--muted);
  font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 4px;
}
#knowledgeSection .node-panel-close:hover, #knowledgeSection .node-panel-close:focus-visible { color: var(--ink); }
#knowledgeSection .node-panel-cta {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; padding: 10px 18px;
  border-radius: 999px; background: var(--brand); color: var(--on-brand); font-weight: 800;
  font-size: 0.86rem; text-decoration: none;
}
#knowledgeSection .node-panel-cta:hover { filter: brightness(1.08); }
.scroll-hint { margin-top: 36px; font-size: 0.78rem; color: var(--muted); letter-spacing: 0.04em; text-align: center; }
.scroll-hint .chevron {
  display: block; margin: 10px auto 0; width: 18px; height: 18px;
  border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(45deg); animation: kdBob 1.6s ease-in-out infinite;
}
@keyframes kdBob {
  0%, 100% { transform: rotate(45deg) translate(0, 0); }
  50% { transform: rotate(45deg) translate(4px, 4px); }
}
@media (max-width: 640px) {
  #knowledgeSection .stage svg { width: 96vw; }
  #knowledgeSection .node-panel { bottom: 24px; width: min(94vw, 360px); padding: 22px 20px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  #knowledgeSection .stage-wrap { height: auto; }
  #knowledgeSection .stage { position: relative; height: auto; min-height: 70vh; padding: 48px 0; }
  .scroll-hint { display: none; }
}

/* =========================================================
   prefers-reduced-motion — desliga toda a camada de animação
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .pulse-once, .just-toggled { animation: none !important; }
  .card, .plan-item, .stat-tile, .cal-cell, .btn, .filter-chip, .check, .copy-btn, .bar-fill, .ring-fill, #plano-lista {
    transition: none !important;
  }
  html { scroll-behavior: auto !important; }
}
