/* ===========================================================
   Academia Spawncore — Design System
   Estilo: Moderno, apelativo, legível para todas as idades
   =========================================================== */

:root {
  /* Cores principais */
  --primary: #1e4d5c;
  --primary-dark: #143540;
  --primary-light: #2d6b7d;
  --accent: #ff7849;
  --accent-soft: #ffd4be;
  --accent-dark: #e85a28;

  /* Fundos */
  --bg: #faf6ee;
  --bg-elevated: #ffffff;
  --bg-muted: #f3ede1;

  /* Texto */
  --ink: #161c28;
  --ink-soft: #4a5468;
  --ink-muted: #6b7585;

  /* Linhas e sombras */
  --line: #e6dec9;
  --line-strong: #d6cbac;
  --shadow-sm: 0 2px 8px rgba(20, 53, 64, 0.04);
  --shadow-md: 0 8px 24px rgba(20, 53, 64, 0.08);
  --shadow-lg: 0 20px 50px rgba(20, 53, 64, 0.12);

  /* Estados */
  --success: #2d8659;
  --success-soft: #d8efde;
  --warning: #d4831f;
  --warning-soft: #fbe9cc;
  --danger: #c14545;
  --danger-soft: #f7dcdc;

  /* Tipografia */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Espaçamento */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* Layout */
  --container: 1180px;
  --container-narrow: 780px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ============== Tipografia ============== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-variation-settings: "SOFT" 50, "WONK" 0; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); font-weight: 500; }
h4 { font-size: 1.1rem; font-weight: 600; font-family: var(--font-body); }

p { color: var(--ink-soft); }
strong { color: var(--ink); font-weight: 600; }
a { color: var(--primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }

/* ============== Container ============== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============== Top bar ============== */
.topbar {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.92);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: -0.02em;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.btn-icon {
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  gap: 0.45rem;
}
.btn-icon svg { width: 18px; height: 18px; }
.btn-icon[data-fs="on"] { background: var(--accent); color: #fff; border-color: var(--accent); }
@media (max-width: 540px) {
  .btn-icon .fs-label { display: none; }
  .btn-icon { padding: 0.6rem 0.8rem; }
}

/* ============== Botões ============== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
}
.btn-ghost:hover {
  background: var(--bg-muted);
  color: var(--ink);
}
.btn-lg { padding: 1rem 1.75rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ============== Hero genérico ============== */
.hero {
  padding: 3rem 0 2rem;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  background: var(--bg-muted);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.25rem;
}
.lead {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 64ch;
  margin-top: 1.25rem;
}

/* ============== Cookie banner ============== */
.cookie-banner {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  max-width: 720px;
  margin: 0 auto;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  animation: slideUp 0.4s ease;
}
.cookie-banner p { color: #d4d8e0; flex: 1; min-width: 240px; font-size: 0.95rem; }
.cookie-banner strong { color: #fff; }
.cookie-banner .btn-primary { background: var(--accent); }
.cookie-banner .btn-primary:hover { background: var(--accent-dark); }
.cookie-banner.hidden { display: none; }

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ============== Login página ============== */
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 120, 73, 0.08), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(30, 77, 92, 0.08), transparent 50%),
    var(--bg);
  padding: 2rem 1rem;
}
.login-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.login-card .brand {
  font-size: 1.4rem;
  margin-bottom: 2rem;
}
.login-card h1 { font-size: 1.9rem; margin-bottom: 0.5rem; }
.login-card .lead { font-size: 1rem; margin-top: 0.25rem; margin-bottom: 1.75rem; }
.field { display: block; margin-bottom: 1.25rem; }
.field-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.field-input {
  width: 100%;
  padding: 0.95rem 1.1rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-md);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(30, 77, 92, 0.12);
}
.login-error {
  display: none;
  background: var(--danger-soft);
  color: var(--danger);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 1rem;
  border: 1px solid #efb6b6;
}
.login-error.show { display: block; }
.login-help {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--ink-muted);
  text-align: center;
}

/* ============== Seleção de workshops ============== */
.workshops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0 4rem;
}
.workshop-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.workshop-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
  color: inherit;
}
.workshop-card.locked {
  opacity: 0.6;
  cursor: not-allowed;
}
.workshop-card.locked:hover { transform: none; box-shadow: none; }
.workshop-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}
.workshop-card.accent .workshop-icon { background: var(--accent); }
.workshop-card h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.workshop-card p {
  font-size: 0.98rem;
  margin-bottom: 1.5rem;
  flex: 1;
}
.workshop-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--ink-muted);
  margin-top: auto;
}
.tag {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.tag-new { background: var(--success-soft); color: var(--success); }
.tag-soon { background: var(--bg-muted); color: var(--ink-muted); }
.tag-locked { background: var(--danger-soft); color: var(--danger); }

.workshop-lock {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 1.4rem;
  opacity: 0.7;
}

/* Logo do cliente (topbar) */
.cliente-logo {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding-right: 0.6rem;
  margin-right: 0.4rem;
  border-right: 1px solid var(--line);
}
.cliente-logo img {
  height: 18px;
  max-height: 18px;
  width: auto;
  max-width: 90px;
  object-fit: contain;
  display: block;
}
.cliente-logo[hidden] { display: none; }

/* Logo do cliente no modo apresentação (canto superior direito) */
.pres-cliente-logo {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  z-index: 1001;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.55rem;
  box-shadow: var(--shadow-sm);
}
.pres-cliente-logo img {
  height: 24px;
  max-height: 24px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
  display: block;
}

/* ============== Workshop — cards de tópicos ============== */
.workshop-header {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--line);
  padding: 3rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}
.workshop-header::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 120, 73, 0.18), transparent 70%);
  pointer-events: none;
}
.workshop-header-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: center;
}
.workshop-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}
.stat {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-md);
}
.stat-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-top: 0.25rem;
}

.workshop-illustration {
  background: var(--primary);
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  display: grid;
  place-items: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.workshop-illustration::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 120, 73, 0.35), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.1), transparent 50%);
}
.workshop-illustration-shield {
  font-size: 5rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .workshop-header-inner { grid-template-columns: 1fr; }
  .workshop-illustration { aspect-ratio: 16/9; }
}

.topics-section {
  padding: 3.5rem 0 5rem;
}
.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.topic-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.topic-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
  color: inherit;
}
.topic-number {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--bg-muted);
  line-height: 1;
}
.topic-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--bg-muted);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  transition: background 0.2s ease;
}
.topic-card:hover .topic-icon {
  background: var(--accent-soft);
}
.topic-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  font-family: var(--font-display);
  margin-bottom: 0.5rem;
  line-height: 1.25;
}
.topic-card p {
  font-size: 0.95rem;
  line-height: 1.55;
  flex: 1;
}
.topic-card-cta {
  margin-top: 1.25rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.topic-card:hover .topic-card-cta { color: var(--accent-dark); }

/* ============== Tópico (detalhe) ============== */
.topic-page {
  padding: 2.5rem 0 5rem;
}
.topic-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
}
.topic-breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.topic-breadcrumb a:hover { color: var(--primary); }
.topic-breadcrumb-sep { opacity: 0.4; }

.topic-hero {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2rem;
}
.topic-hero-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 2.4rem;
}
.topic-hero h1 { margin-bottom: 0.5rem; }
.topic-hero .lead { font-size: 1.1rem; margin: 0; }

.topic-content {
  max-width: 720px;
}
.topic-content h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-soft);
  display: inline-block;
}
.topic-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary-dark);
}
.topic-content p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.7;
}
.topic-content ul, .topic-content ol {
  margin: 1rem 0 1.5rem 0;
  padding-left: 1.5rem;
}
.topic-content li {
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.6;
}
.topic-content li::marker { color: var(--accent); font-weight: 700; }

.callout {
  background: var(--bg-elevated);
  border-left: 4px solid var(--accent);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.75rem 0;
  box-shadow: var(--shadow-sm);
}
.callout-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.callout p { margin: 0; font-size: 1rem; }
.callout.warning { border-color: var(--warning); background: var(--warning-soft); }
.callout.warning .callout-title { color: var(--warning); }
.callout.danger { border-color: var(--danger); background: var(--danger-soft); }
.callout.danger .callout-title { color: var(--danger); }
.callout.success { border-color: var(--success); background: var(--success-soft); }
.callout.success .callout-title { color: var(--success); }

.signals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.75rem 0;
}
.signal-box {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}
.signal-box-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.signal-box.bad .signal-box-title { color: var(--danger); }
.signal-box.good .signal-box-title { color: var(--success); }
.signal-box ul { margin: 0; padding-left: 1.25rem; }
.signal-box li { font-size: 0.98rem; margin-bottom: 0.4rem; }

@media (max-width: 640px) {
  .signals { grid-template-columns: 1fr; }
  .topic-hero { grid-template-columns: 1fr; text-align: left; }
  .topic-hero-icon { width: 64px; height: 64px; font-size: 2rem; }
}

.topic-nav {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.topic-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  text-decoration: none;
  color: var(--ink);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}
.topic-nav a:hover { border-color: var(--primary); color: var(--primary); }
.topic-nav-spacer { flex: 1; }

/* ============== Quiz ============== */
.quiz-section {
  margin-top: 3.5rem;
  padding: 2.5rem 0 0;
  border-top: 2px dashed var(--line);
}
.quiz-section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.quiz-section-title .eyebrow { margin-bottom: 0; }
.quiz-section > p {
  margin-bottom: 2rem;
  font-size: 1rem;
}
.quiz {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.quiz-question {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1.25rem;
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
}
.quiz-q-num {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  flex-shrink: 0;
}
.quiz-options {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.quiz-options li { margin: 0; }
.quiz-options button {
  width: 100%;
  text-align: left;
  padding: 0.9rem 1.1rem;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s ease;
  font-weight: 500;
}
.quiz-options button:hover:not(:disabled) {
  border-color: var(--primary);
  background: var(--bg-elevated);
  transform: translateX(2px);
}
.quiz-options button:disabled { cursor: default; }
.quiz-options button.is-correct {
  background: var(--success-soft);
  border-color: var(--success);
  color: var(--success);
  font-weight: 600;
}
.quiz-options button.is-correct::before {
  content: "✓  ";
  font-weight: 700;
}
.quiz-options button.is-wrong {
  background: var(--danger-soft);
  border-color: var(--danger);
  color: var(--danger);
  text-decoration: line-through;
}
.quiz-options button.is-wrong::before {
  content: "✗  ";
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
}
.quiz-feedback {
  margin-top: 1.25rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: 0.98rem;
  line-height: 1.55;
}
.quiz-feedback.is-correct {
  background: var(--success-soft);
  color: var(--success);
  border-left: 3px solid var(--success);
}
.quiz-feedback.is-wrong {
  background: var(--warning-soft);
  color: var(--warning);
  border-left: 3px solid var(--warning);
}
.quiz-feedback strong { color: inherit; display: block; margin-bottom: 0.3rem; }

/* ============== Imagem ilustrativa ============== */
.topic-illustration {
  width: 100%;
  max-width: 720px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 1rem 0 2rem;
  box-shadow: var(--shadow-md);
  background: var(--bg-muted);
}
.topic-illustration img,
.topic-illustration svg { display: block; width: 100%; height: auto; }

/* ============== Notícia (referência) ============== */
.news-ref {
  display: block;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1rem 1.25rem;
  margin: 0.75rem 0;
  text-decoration: none;
  transition: all 0.15s ease;
}
.news-ref:hover {
  transform: translateX(2px);
  box-shadow: var(--shadow-sm);
  border-left-color: var(--accent);
}
.news-ref-source {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  margin-bottom: 0.3rem;
  font-weight: 600;
}
.news-ref-source::before {
  content: "📰";
  font-size: 1rem;
}
.news-ref-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
.news-ref-summary {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.93rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.news-list { margin: 1.5rem 0; }

/* ============== Testador de password ============== */
.pw-tester {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin: 1.5rem 0 2rem;
  box-shadow: var(--shadow-sm);
}
.pw-input-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  margin-top: 0.4rem;
}
.pw-input-row .field-input { flex: 1; }
.pw-toggle {
  background: var(--bg-muted);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-md);
  width: 52px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.15s ease;
}
.pw-toggle:hover { background: var(--accent-soft); }

.pw-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  height: 12px;
  margin-bottom: 0.85rem;
}
.pw-bar-seg {
  background: var(--bg-muted);
  border-radius: 6px;
  transition: background 0.25s ease;
}
.pw-bar[data-score="1"] .pw-bar-seg:nth-child(-n+1),
.pw-bar[data-score="2"] .pw-bar-seg:nth-child(-n+2),
.pw-bar[data-score="3"] .pw-bar-seg:nth-child(-n+3),
.pw-bar[data-score="4"] .pw-bar-seg:nth-child(-n+4),
.pw-bar[data-score="5"] .pw-bar-seg:nth-child(-n+5) { }
.pw-bar[data-score="1"] .pw-bar-seg:nth-child(-n+1) { background: #c14545; }
.pw-bar[data-score="2"] .pw-bar-seg:nth-child(-n+2) { background: #d4831f; }
.pw-bar[data-score="3"] .pw-bar-seg:nth-child(-n+3) { background: #d4c81f; }
.pw-bar[data-score="4"] .pw-bar-seg:nth-child(-n+4) { background: #2d8659; }
.pw-bar[data-score="5"] .pw-bar-seg:nth-child(-n+5) { background: #1a7048; }

.pw-stats {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.pw-strength {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
}
.pw-time {
  font-size: 0.92rem;
  color: var(--ink-muted);
  text-align: right;
}
.pw-strength[data-level="weak"] { color: #c14545; }
.pw-strength[data-level="fair"] { color: #d4831f; }
.pw-strength[data-level="good"] { color: #d4c81f; }
.pw-strength[data-level="strong"] { color: #2d8659; }
.pw-strength[data-level="excellent"] { color: #1a7048; }

.pw-checks {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.45rem 1rem;
}
.pw-checks li {
  font-size: 0.93rem;
  color: var(--ink-muted);
  padding-left: 1.5rem;
  position: relative;
}
.pw-checks li::before {
  content: "○";
  position: absolute;
  left: 0;
  color: var(--ink-muted);
  font-weight: 700;
}
.pw-checks li.is-ok {
  color: var(--success);
}
.pw-checks li.is-ok::before {
  content: "✓";
  color: var(--success);
}

.pw-privacy {
  font-size: 0.85rem;
  color: var(--ink-muted);
  background: var(--bg-muted);
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-md);
  margin: 0;
  text-align: center;
}

/* ============== Modo de Apresentação ============== */
body.is-presenting {
  overflow: hidden;
  background: var(--bg);
}
body.is-presenting .topbar,
body.is-presenting .topic-breadcrumb,
body.is-presenting .topic-nav,
body.is-presenting .site-footer,
body.is-presenting .cookie-banner {
  display: none !important;
}
body.is-presenting main.topic-page {
  padding: 2rem 0 5rem;
  min-height: 100vh;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
body.is-presenting .container-narrow {
  max-width: 1100px;
  width: 100%;
  max-height: calc(100vh - 7rem);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
body.is-presenting .topic-content {
  max-width: 100%;
}
body.is-presenting .is-hidden-slide {
  display: none !important;
}
body.is-presenting .is-active-slide {
  display: block;
  animation: slideIn 0.3s ease;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero + ilustração como primeiro slide — limitado à viewport */
body.is-presenting .topic-hero.is-active-slide,
body.is-presenting .topic-illustration.is-active-slide {
  margin: 0 auto;
}
body.is-presenting .topic-hero {
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  margin-bottom: 1rem;
}
body.is-presenting .topic-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 0.3rem;
}
body.is-presenting .topic-hero .lead {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  margin-top: 0.4rem;
  margin-bottom: 0;
}
body.is-presenting .topic-hero-icon {
  width: 72px;
  height: 72px;
  font-size: 2rem;
}

/* Ilustração limitada à altura disponível */
body.is-presenting .topic-illustration {
  max-width: 720px;
  max-height: 52vh;
  margin: 0.75rem auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
body.is-presenting .topic-illustration img,
body.is-presenting .topic-illustration svg {
  max-width: 100%;
  max-height: 52vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Estilo de slide para conteúdos */
body.is-presenting .topic-content h2 {
  margin-top: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
}
body.is-presenting .topic-content h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
}
body.is-presenting .topic-content p {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.7;
}
body.is-presenting .topic-content li {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}
body.is-presenting .signals {
  gap: 1.5rem;
}
body.is-presenting .quiz {
  padding: 2.5rem;
  max-width: 850px;
  margin: 0 auto;
}
body.is-presenting .quiz-question {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  margin-bottom: 1.75rem;
}
body.is-presenting .quiz-options button {
  font-size: 1.1rem;
  padding: 1.1rem 1.3rem;
}
body.is-presenting .news-list {
  max-width: 850px;
  margin: 0 auto;
}
/* Para slides com ilustração de exemplos (segundo+) */
body.is-presenting .topic-content .topic-illustration {
  max-width: 900px;
  max-height: 60vh;
  margin: 1rem auto;
}
body.is-presenting .topic-content .topic-illustration img {
  max-height: 60vh;
}

/* Overlay de navegação */
.pres-overlay {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 0.65rem 0.85rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
  opacity: 0.92;
  transition: opacity 0.2s ease;
}
.pres-overlay:hover { opacity: 1; }
.pres-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: background 0.15s ease;
  line-height: 1;
}
.pres-btn:hover:not(:disabled) {
  background: var(--accent);
}
.pres-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.pres-indicator {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  min-width: 200px;
  text-align: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  padding: 0 0.5rem;
}
.pres-topic-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pres-slide-num {
  font-size: 0.75rem;
  color: var(--accent-soft);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.pres-overlay.is-loading .pres-btn {
  opacity: 0.4;
  pointer-events: none;
}
.pres-overlay.is-loading .pres-indicator::after {
  content: " ⏳";
  margin-left: 0.4rem;
}

/* ============== Footer ============== */
.site-footer {
  background: var(--primary-dark);
  color: #d4d8e0;
  padding: 2.5rem 0;
  text-align: center;
  font-size: 0.92rem;
}
.site-footer a { color: var(--accent-soft); }

/* ============== Acessibilidade ============== */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Responsivo */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 1rem; }
  .login-card { padding: 1.75rem; }
  .cookie-banner { padding: 1rem; flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-banner .btn { width: 100%; }
}
