/* =====================================================================
   DG Vestibular - Estilos complementares ao Tailwind
   ===================================================================== */

:root {
  --brand: #4f46e5;
  --brand-dark: #4338ca;
  --danger: #dc2626;
  --ok: #16a34a;
}

body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* =====================================================================
   MARCA DGV
   ===================================================================== */

.brand-mark {
  width: 2.2rem;
  height: 2.2rem;
  flex-shrink: 0;
  display: inline-block;
  border-radius: 0.65rem;
  box-shadow: 0 6px 14px -6px rgba(79, 70, 229, 0.5);
}
.brand-mark-sm {
  width: 1.7rem;
  height: 1.7rem;
  box-shadow: none;
}
.brand-mark svg, .brand-mark > svg { display: block; width: 100%; height: 100%; }

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.brand-lockup:hover .brand-mark { transform: scale(1.05); }
.brand-mark { transition: transform 0.15s ease; }

.brand-name {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}
.brand-name::first-line { color: #0f172a; }
.brand-lockup:hover .brand-name { color: #4f46e5; }

/* Timer fixo */
.timer-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(6px);
}

.timer-tick {
  font-variant-numeric: tabular-nums;
}

.timer-danger {
  color: var(--danger);
  animation: pulse-red 1s infinite;
}

@keyframes pulse-red {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* Cartões de estatística */
.stat-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12);
}

/* Barra de progresso disciplinar */
.bar-track {
  height: 10px;
  border-radius: 9999px;
  background: #e5e7eb;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 9999px;
  background: var(--brand);
  transition: width 0.4s ease;
}

/* Botões (sobrescreve Tailwind default para consistência) */
.btn-primary {
  background: var(--brand);
  color: #fff;
  transition: background 0.15s ease;
}
.btn-primary:hover { background: var(--brand-dark); }

.btn-ghost {
  color: var(--brand);
  border: 1px solid #c7d2fe;
  background: transparent;
}
.btn-ghost:hover { background: #eef2ff; }

/* Alternativas selecionadas */
.alt-option {
  cursor: pointer;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.alt-option:hover { border-color: #a5b4fc; }
.alt-option.selected {
  border-color: var(--brand);
  background: #eef2ff;
}

/* Slide de questão (uma por vez) */
.question-slide { display: none; }
.question-slide.active { display: block; animation: fade-in 0.25s ease; }

@keyframes fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Responsivo: tabelas rolam em telas pequenas */
.table-scroll { overflow-x: auto; }

@media (max-width: 640px) {
  .table-scroll table { min-width: 560px; }
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.5);
}
.modal.open { display: flex; }
.modal-card {
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
}

/* Toasts */
#toast-container { position: fixed; bottom: 1rem; right: 1rem; z-index: 999; display: flex; flex-direction: column; gap: 0.5rem; }
.toast {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  font-size: 0.875rem;
  animation: fade-in 0.2s ease;
}
.toast.success { background: var(--ok); }
.toast.error { background: var(--danger); }
.toast.info { background: var(--brand); }

/* =====================================================================
   LANDING PAGE
   ===================================================================== */

.landing { display: flex; flex-direction: column; }

.landing-wrap {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}
.landing-wrap-narrow { max-width: 52rem; }

.landing-section { padding: 4.5rem 0; }
.landing-section-alt {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 0;
  background:
    radial-gradient(1200px 500px at 85% -10%, #e0e7ff 0%, transparent 60%),
    radial-gradient(900px 400px at 0% 0%, #ede9fe 0%, transparent 55%),
    #f8fafc;
}

.hero-glow {
  position: absolute;
  border-radius: 9999px;
  filter: blur(90px);
  opacity: 0.5;
  pointer-events: none;
}
.hero-glow-a { width: 480px; height: 480px; background: #c7d2fe; top: -160px; right: -80px; }
.hero-glow-b { width: 420px; height: 420px; background: #ddd6fe; bottom: -200px; left: -120px; }

.hero-grid {
  position: relative;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  color: #4338ca;
  font-size: 0.8rem;
  font-weight: 600;
}

.hero-title {
  margin: 1.25rem 0 1rem;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}
.hero-title-grad {
  background: linear-gradient(90deg, #4f46e5, #7c3aed, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #475569;
  max-width: 34rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, #4f46e5, #6d28d9);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 12px 24px -8px rgba(79, 70, 229, 0.55);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px -10px rgba(79, 70, 229, 0.6);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  border-radius: 0.85rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.btn-hero-secondary:hover { border-color: #a5b4fc; background: #eef2ff; }

.hero-proof {
  margin-top: 2rem;
}
.hero-proof-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
}
.hero-proof-list li { display: inline-flex; align-items: center; }

/* ---------- Mock de prova (hero visual) ---------- */
.hero-card { position: relative; }
.hero-card .mock-window { position: relative; z-index: 1; }

.mock-window {
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 32px 64px -24px rgba(15, 23, 42, 0.35);
  border: 1px solid #e2e8f0;
  overflow: hidden;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.72rem;
  color: #64748b;
}
.mock-bar i {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 9999px;
  background: #cbd5e1;
}
.mock-bar i:nth-child(1) { background: #f87171; }
.mock-bar i:nth-child(2) { background: #fbbf24; }
.mock-bar i:nth-child(3) { background: #34d399; }
.mock-bar span { margin-left: 0.6rem; }

.mock-body { padding: 1.5rem; }

/* ---------- Card da aplicação (hero visual) ---------- */
.mock-app-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}
.mock-app-logo {
  width: 2.6rem;
  height: 2.6rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  box-shadow: 0 8px 18px -8px rgba(79, 70, 229, 0.55);
  overflow: hidden;
}
.mock-app-logo svg { width: 1.9rem; height: 1.9rem; }
.mock-app-info strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
}
.mock-app-info small {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.1rem;
}

.mock-app-feats {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.mock-app-feats li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.7rem;
  background: #f8fafc;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.mock-app-feats li:hover { border-color: #a5b4fc; background: #eef2ff; }
.mf-icon {
  font-size: 1rem;
  line-height: 1;
  margin-top: 0.1rem;
}
.mock-app-feats strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
}
.mock-app-feats small {
  display: block;
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 0.1rem;
  line-height: 1.4;
}

.mock-snapshot {
  border: 1px solid #c7d2fe;
  border-radius: 0.85rem;
  background: linear-gradient(180deg, #eef2ff 0%, #e0e7ff 100%);
  padding: 1rem 1.1rem;
}
.mock-snapshot-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #4338ca;
}
.mock-snapshot-head strong {
  font-size: 1.1rem;
  color: #0f172a;
  letter-spacing: 0;
}
.mock-snapshot-head small { font-size: 0.7rem; color: #64748b; font-weight: 600; }
.mock-snap-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr 2.2rem;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
}
.snap-track {
  height: 0.45rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.9);
  overflow: hidden;
}
.snap-track i {
  display: block;
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #4f46e5, #7c3aed);
}
.mock-snap-row b {
  font-variant-numeric: tabular-nums;
  font-size: 0.72rem;
  color: #0f172a;
  text-align: right;
}

.float-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border-radius: 9999px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 28px -10px rgba(15, 23, 42, 0.3);
  font-size: 0.8rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  animation: floaty 5s ease-in-out infinite;
}
.chip-a { top: -1.1rem; right: 1.25rem; }
.chip-b { bottom: -1.1rem; left: 1.25rem; animation-delay: 2.2s; }

.chip-icon {
  width: 1.4rem;
  height: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #4f46e5;
  color: #fff;
  font-size: 0.8rem;
}
.chip-icon.chip-green { background: #16a34a; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- Faixa de estatísticas ---------- */
.stats-band {
  position: relative;
  max-width: 72rem;
  margin: 4rem auto 0;
  padding: 0 1rem 3.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .stats-band { grid-template-columns: repeat(4, 1fr); }
}
.stat-item {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.25rem 1rem;
  text-align: center;
}
.stat-item strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.stat-item span {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 500;
}

/* ---------- Cabeçalhos de seção ---------- */
.eyebrow {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6366f1;
  margin-bottom: 0.75rem;
}
.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin-bottom: 0.6rem;
}
.section-sub {
  text-align: center;
  color: #64748b;
  max-width: 36rem;
  margin: 0 auto 2.75rem;
  line-height: 1.6;
}

/* ---------- Vestibulares ---------- */
.vest-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.vest-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.15rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.vest-pill:hover { border-color: #a5b4fc; transform: translateY(-2px); }
.vest-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
}
.vest-count {
  font-size: 0.72rem;
  font-weight: 700;
  color: #4f46e5;
  background: #eef2ff;
  border-radius: 9999px;
  padding: 0.15rem 0.6rem;
}

/* ---------- Cards de simulado ---------- */
.sim-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: stretch;
}
@media (min-width: 640px) { .sim-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .sim-grid { grid-template-columns: repeat(3, 1fr); } }

.sim-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  padding: 1.5rem;
  height: 100%;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.sim-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4f46e5, #7c3aed, #2563eb);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.sim-card:hover {
  transform: translateY(-6px);
  border-color: #c7d2fe;
  box-shadow: 0 20px 40px -16px rgba(79, 70, 229, 0.25);
}
.sim-card:hover::before { opacity: 1; }

.sim-card-featured {
  border-color: #c7d2fe;
  background:
    radial-gradient(400px 120px at 100% 0%, #eef2ff 0%, transparent 70%),
    #fff;
}

.sim-flag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.7rem;
  border-radius: 9999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.sim-card-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}
.sim-icon {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(79, 70, 229, 0.55);
}
.sim-icon svg { width: 1.25rem; height: 1.25rem; }

.sim-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.sim-title {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #0f172a;
  line-height: 1.3;
}
.sim-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 500;
}
.sim-meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.sim-meta svg { width: 0.95rem; height: 0.95rem; color: #818cf8; flex-shrink: 0; }
.sim-meta-avg { margin-left: auto; }
@media (max-width: 639px) { .sim-meta-avg { margin-left: 0; } }

.sim-divider {
  height: 1px;
  margin: 1.1rem 0;
  background: linear-gradient(90deg, transparent, #e2e8f0 20%, #e2e8f0 80%, transparent);
}

.sim-btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: #eef2ff;
  color: #4338ca;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.sim-btn:hover {
  background: linear-gradient(135deg, #4f46e5, #6d28d9);
  color: #fff;
  box-shadow: 0 10px 20px -8px rgba(79, 70, 229, 0.5);
}
.sim-btn span { transition: transform 0.15s ease; }
.sim-btn:hover span { transform: translateX(3px); }

/* ---------- Passos ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps-grid { grid-template-columns: repeat(4, 1fr); } }
.step-card {
  position: relative;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.75rem 1.5rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.step-card:hover {
  transform: translateY(-4px);
  border-color: #c7d2fe;
  box-shadow: 0 16px 32px -14px rgba(79, 70, 229, 0.2);
}
.step-num {
  display: inline-flex;
  width: 2.4rem;
  height: 2.4rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  font-weight: 800;
  margin-bottom: 1rem;
}
.step-card h3 { font-size: 1rem; font-weight: 700; color: #0f172a; margin-bottom: 0.4rem; }
.step-card p { font-size: 0.875rem; color: #64748b; line-height: 1.55; }

/* ---------- Features ---------- */
.feat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feat-grid { grid-template-columns: repeat(3, 1fr); } }
.feat-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.75rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.feat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -12px rgba(15, 23, 42, 0.18);
}
.feat-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.85rem;
  background: #eef2ff;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}
.feat-card h3 { font-size: 1rem; font-weight: 700; color: #0f172a; margin-bottom: 0.4rem; }
.feat-card p { font-size: 0.875rem; color: #64748b; line-height: 1.55; }

/* ---------- Demonstração da plataforma ---------- */

/* Janela única da aplicação */
.demo-window {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  box-shadow: 0 32px 64px -28px rgba(15, 23, 42, 0.35);
  overflow: hidden;
}
.demo-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.72rem;
  color: #64748b;
}
.demo-bar i {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 9999px;
  background: #cbd5e1;
}
.demo-bar i:nth-child(1) { background: #f87171; }
.demo-bar i:nth-child(2) { background: #fbbf24; }
.demo-bar i:nth-child(3) { background: #34d399; }
.demo-bar span { margin-left: 0.6rem; font-weight: 600; }

.demo-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 1024px) {
  .demo-body { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .demo-screen + .demo-screen { border-left: 1px dashed #e2e8f0; }
}
@media (max-width: 1023px) {
  .demo-screen + .demo-screen { border-top: 1px dashed #e2e8f0; }
}

.demo-screen {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Cabeçalho de cada tela */
.demo-screen-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3rem;
}
.demo-step {
  width: 2.3rem;
  height: 2.3rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 8px 18px -8px rgba(79, 70, 229, 0.55);
}
.demo-screen-head strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.demo-screen-head small {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.15rem;
  line-height: 1.35;
}

/* --- Tela 1: simulado --- */
.ds-exam {
  flex: 1;
  border: 1px solid #e2e8f0;
  border-radius: 0.9rem;
  padding: 1rem;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
}
.ds-exam-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #4338ca;
  margin-bottom: 0.75rem;
}
.ds-exam-top em { font-style: normal; color: #94a3b8; font-weight: 600; }
.ds-clock {
  font-variant-numeric: tabular-nums;
  background: #eef2ff;
  border-radius: 9999px;
  padding: 0.2rem 0.65rem;
}
.ds-q-text {
  margin: 0 0 0.9rem;
  font-size: 0.83rem;
  color: #334155;
  line-height: 1.55;
}
.ds-alts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}
.ds-alts li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.6rem;
  background: #fff;
  font-size: 0.78rem;
  color: #475569;
  min-height: 2.3rem;
}
.ds-alts li b {
  width: 1.4rem;
  height: 1.4rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.45rem;
  background: #f1f5f9;
  color: #64748b;
  font-size: 0.7rem;
}
.ds-alts li.sel {
  border-color: #4f46e5;
  background: #eef2ff;
  color: #312e81;
  font-weight: 600;
}
.ds-alts li.sel b { background: #4f46e5; color: #fff; }
.ds-exam-foot {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.9rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
}
.ds-exam-foot .snap-track { flex: 1; }

/* --- Tela 2: correção --- */
.ds-score {
  flex: 1;
  border: 1px solid #c7d2fe;
  border-radius: 0.9rem;
  padding: 1rem;
  background: linear-gradient(180deg, #eef2ff 0%, #e0e7ff 100%);
  display: flex;
  flex-direction: column;
}
.ds-score-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}
.ds-ring {
  width: 4.2rem;
  height: 4.2rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 10px 22px -10px rgba(79, 70, 229, 0.6);
}
.ds-ring small { font-size: 0.75rem; font-weight: 700; }
.ds-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
}
.ds-legend li { display: flex; align-items: center; gap: 0.45rem; }
.ds-legend i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 9999px;
  display: inline-block;
}
.dot-ok { background: #16a34a; }
.dot-miss { background: #dc2626; }
.dot-skip { background: #94a3b8; }

.ds-bar-row {
  display: grid;
  grid-template-columns: 1fr 6rem 2.4rem;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
}
.ds-bar-row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-bar-row b {
  font-variant-numeric: tabular-nums;
  font-size: 0.75rem;
  color: #0f172a;
  text-align: right;
}

/* --- Tela 3: plano IA --- */
.ds-plan {
  flex: 1;
  border: 1px solid #e2e8f0;
  border-radius: 0.9rem;
  padding: 1rem;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
}
.ds-plan-lead {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
}
.ds-plan-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.55rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.7rem;
  background: #fff;
}
.ds-pill {
  padding: 0.22rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.ds-pill-1 { background: #eef2ff; color: #4338ca; }
.ds-pill-2 { background: #ecfeff; color: #0e7490; }
.ds-pill-3 { background: #fef3c7; color: #92400e; }
.ds-plan-topic {
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ds-plan-row em {
  font-style: normal;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #dc2626;
  background: #fee2e2;
  border-radius: 9999px;
  padding: 0.18rem 0.5rem;
  white-space: nowrap;
}
.ds-plan-row:nth-child(3) em,
.ds-plan-row:nth-child(4) em { color: #b45309; background: #fef3c7; }
.ds-plan-note {
  margin: auto 0 0;
  padding-top: 0.75rem;
  border-top: 1px dashed #e2e8f0;
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.5;
}

.demo-cta { text-align: center; margin-top: 2.5rem; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.85rem;
  padding: 1.1rem 1.4rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.faq-item:hover { box-shadow: 0 8px 20px -12px rgba(15, 23, 42, 0.18); }
.faq-item[open] { border-color: #a5b4fc; box-shadow: 0 12px 28px -14px rgba(79, 70, 229, 0.25); }
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  color: #0f172a;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-list-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: #6366f1;
  font-weight: 700;
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.6;
}

/* ---------- CTA final ---------- */
.cta-final { padding: 5rem 0; }
.cta-box {
  position: relative;
  overflow: hidden;
  text-align: center;
  border-radius: 1.5rem;
  padding: 3.5rem 2rem;
  background: linear-gradient(135deg, #312e81 0%, #4f46e5 55%, #6d28d9 100%);
  color: #fff;
}
.cta-box::before {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  top: -220px;
  right: -120px;
}
.cta-box h2 {
  position: relative;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  margin-bottom: 0.6rem;
}
.cta-brand-mark {
  position: relative;
  width: 3.2rem;
  height: 3.2rem;
  margin: 0 auto 1.2rem;
  display: block;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.45);
}
.cta-box p {
  position: relative;
  color: #c7d2fe;
  margin-bottom: 2rem;
  font-size: 1rem;
}
.cta-box .btn-hero-primary { position: relative; background: #fff; color: #4338ca; }
.cta-box .btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 32px -10px rgba(0, 0, 0, 0.4); }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: auto;
  background: #0f172a;
  color: #94a3b8;
}
.footer-grid {
  max-width: 72rem;
  margin: 0 auto;
  padding: 3.5rem 1rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; } }
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.9rem;
}
.footer-brand p { font-size: 0.875rem; line-height: 1.65; max-width: 20rem; }
.footer-col { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col h4 {
  margin: 0 0 0.35rem;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer-col a, .footer-col span {
  font-size: 0.875rem;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: #c7d2fe; }
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 1.25rem 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: #64748b;
}

@media (max-width: 640px) {
  .chip-a { top: -0.75rem; right: 0.25rem; }
  .chip-b { bottom: 0.75rem; left: 0.25rem; }
  .mock-window { transform: none; }
}
