:root {
  --color-bg-primary: #f1eee6;
  --color-text-dark: #050b1a;
  --color-text-medium: #1b182e;
  --color-text-light: #403c5e;
  --color-green-dark: #2d5934;
  --color-green-primary: #2c7444;
  --color-blue-primary: #284cad;
  --color-red-light: rgba(206, 53, 53, 0.36);
  --color-red-dark: #680101;
  --color-footer-bg: #0a1633;
  --color-footer-text: #afabcd;
  --color-white: #ffffff;

  --font-primary: "Outfit", sans-serif;
  --font-secondary: "Plus Jakarta Sans", sans-serif;
}

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

.pagina-com-sidebar {
  display: flex;
  min-height: 100vh;
  margin: 0;
}

.pagina-com-sidebar verifica-sidebar {
  flex-shrink: 0;
}

.pagina-com-sidebar .main {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  flex: 1;
  min-width: 0;
}

/* A tela de carregamento (components/carregando-pagina) precisa ocupar o
   mesmo espaço que o .main ocuparia, senão fica espremida do lado da
   sidebar em vez de centralizada no restante da tela. */
.pagina-com-sidebar > .carregando-pagina {
  flex: 1;
  min-width: 0;
}

.pagina-com-sidebar .main[hidden] {
  display: none;
}

/* Acessibilidade: Respeita a preferência de tamanho de fonte do navegador do usuário */
html {
  font-size: 100%;
}

body {
  background-color: var(--color-bg-primary);
  font-family: var(--font-secondary);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-text-medium);
  line-height: 1.5;
  overflow-x: hidden;

  padding-bottom: env(safe-area-inset-bottom);
  text-align: center;
}

a {
  text-decoration: none;
}

a:focus,
button:focus {
  outline: 3px solid #f59e0b;
  outline-offset: 3px;
}

:focus {
  outline: 3px solid #f59e0b;
  outline-offset: 3px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* Para navegação moderna */
a:focus-visible,
button:focus-visible {
  outline: 4px solid #f59e0b;
}

/* Acessibilidade: Link de salto para teclado e leitor de tela */
.skip-link {
  position: absolute;
  left: 20px;
  top: -100px;
  z-index: 1000;
  background: var(--color-blue-primary);
  color: var(--color-white);
  min-height: 56px;
  padding: 15px 20px;
  border-radius: 15px;
  font-family: var(--font-primary);
  font-weight: 700;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 20px;
  outline: 3px solid var(--color-green-primary);
  outline-offset: 4px;
}

/* Acessibilidade: Foco visível para navegação por teclado */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--color-green-primary);
  outline-offset: 4px;
}

.btn:active {
  transform: scale(0.98);
}

.text-green {
  color: var(--color-green-primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-primary);
  font-weight: 700;
  border-radius: 15px;
  cursor: pointer;
  transition: transform 0.2s ease;

  /* Acessibilidade e Mobile: Alvo mínimo de 56px e largura total */
  width: 100%;
  min-height: 56px;
  padding: 16px 24px;
  font-size: 20px;
}

.btn:hover {
  transform: scale(1.05);
  /* Mantido do antigo */
}

.btn-primary {
  background-color: var(--color-blue-primary);
  color: var(--color-white);
}

.btn-secondary {
  background-color: var(--color-bg-primary);
  color: var(--color-blue-primary);
}

/* Containers responsivos que substituem os antigos 'max-width: 1440px' fixos */
.header,
.hero-section,
.stats-section,
.features-section,
.demo-section,
.sources-section {
  width: min(100% - 40px, 1440px);
  margin-left: auto;
  margin-right: auto;
}

/* HEADER */
.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 30px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
}

.logo-text {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 28px;
  color: var(--color-green-dark);
}

.logo-icon {
  width: 50px;
  height: 50px;
}

.icon-verified {
  width: 24px;
  height: 24px;
}

/* SEÇÃO HERO */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.hero-content {
  text-align: center;
}

.hero-content h1 {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 38px;
  color: var(--color-text-dark);
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-content p,
.section-subtitle,
.feature-card p {
  font-weight: 500;
}

.hero-content p {
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: 18px;
  color: var(--color-text-light);
  margin-bottom: 40px;
}

.hero-card {
  width: 100%;
  display: flex;
  justify-content: center;
}

.card-fake-news {
  background-color: var(--color-bg-primary);
  border-radius: 31px;
  padding: 30px;
  box-shadow: 0 10px 26px rgba(5, 11, 26, 0.12);
  width: 100%;
  max-width: 630px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-card,
.stat-box,
.source-card {
  padding: 1.25rem;
  /* antes 1rem */
}

.news-title {
  font-family: var(--font-primary);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-dark);
}

.news-quote {
  font-weight: 500;
  font-size: 16px;
  color: var(--color-text-medium);
}

.tag-fake {
  background-color: var(--color-red-light);
  color: var(--color-red-dark);
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 15px;
  align-self: flex-start;
}

.news-source {
  font-weight: 300;
  font-size: 14px;
  color: #3d3a53;
  margin-top: 10px;
}

/* DADOS / ESTATÍSTICAS */
.stats-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 40px;
  margin-top: 60px;
  margin-bottom: 60px;
}

.stat-box {
  width: 100%;
  max-width: 350px;
}

.stat-box h2 {
  font-family: var(--font-primary);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-green-primary);
  margin-bottom: 10px;
}

.stat-box p {
  font-family: var(--font-secondary);
  font-size: 16px;
  color: var(--color-text-medium);
}

/* FERRAMENTAS / CARDS INFORMATIVOS */
.features-section {
  text-align: center;
  margin-top: 80px;
  margin-bottom: 80px;
}

.section-title {
  font-family: var(--font-primary);
  font-size: 36px;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 20px;
  font-weight: 500;
  color: var(--color-text-light);
  margin-bottom: 40px;
}

.features-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.feature-card {
  background-color: var(--color-bg-primary);
  border-radius: 31px;
  padding: 30px;
  width: 100%;
  max-width: 410px;
  box-shadow: 0 10px 24px rgba(5, 11, 26, 0.12);
}

.feature-card-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.feature-card h3 {
  font-family: var(--font-primary);
  font-size: 22px;
  color: var(--color-green-primary);
}

.feature-card p {
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  color: var(--color-text-medium);
  margin-top: 20px;
}

/* Seção de Demonstração */
.demo-section {
  text-align: center;
  margin: 60px auto;
  padding: 0 20px; /* Ajuste crucial para o mobile não espremer o conteúdo */
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  overflow-x: hidden;
}

.demo-header {
  margin-bottom: 28px;
}

.demo-chat {
  /* Variáveis de cores de estado */
  --demo-false-bg: #fee2e2;
  --demo-false-border: #f87171;
  --demo-false-text: #7f1d1d;
  --demo-false-accent: #ef4444;

  --demo-true-bg: #dcfce7;
  --demo-true-border: #4ade80;
  --demo-true-text: #14532d;
  --demo-true-accent: #16a34a;

  --demo-unknown-bg: #fef9c3;
  --demo-unknown-border: #fde047;
  --demo-unknown-text: #713f12;
  --demo-unknown-accent: #ca8a04;

  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  background-color: var(--color-white);
  border-radius: 20px; /* Borda mais suave no mobile */
  box-shadow: 0 8px 24px rgba(5, 11, 26, 0.1);

  display: flex;
  flex-direction: column;
  text-align: left;

  padding: 24px 16px; /* Espaço interno menor para caber conteúdo no mobile */
  gap: 20px;
  box-sizing: border-box;
}

.demo-chat__log {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 120px;
}

.demo-chat__controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---------- Balões de conversa ---------- */
.demo-bubble {
  max-width: 92%; /* No mobile, o balão precisa ocupar quase toda a largura */
  padding: 14px 16px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.demo-bubble--user {
  align-self: flex-end;
  background-color: var(--color-blue-primary);
  color: var(--color-white);
  border-bottom-right-radius: 4px;
  box-shadow: 0 2px 8px rgba(40, 76, 173, 0.25);
}

.demo-bubble--user .demo-bubble__autor {
  color: rgba(255, 255, 255, 0.85);
}

.demo-bubble--bot {
  align-self: flex-start;
  background-color: var(--color-white);
  color: var(--color-text-medium);
  border-radius: 18px;
  border: 1.5px solid rgba(5, 11, 26, 0.07);
  border-left: 4px solid var(--demo-unknown-accent);
  box-shadow: 0 2px 16px rgba(5, 11, 26, 0.07);
  border-bottom-left-radius: 4px;
}

.demo-bubble--bot-falso {
  border-left-color: var(--demo-false-accent);
}

.demo-bubble--bot-enganoso {
  border-left-color: var(--demo-unknown-accent);
}

.demo-bubble--bot-verdadeiro {
  border-left-color: var(--demo-true-accent);
}

.demo-bubble__autor {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 14px;
  color: var(--color-text-light);
}

.demo-bubble__autor--bot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-dark);
}

.demo-bubble__avatar {
  width: 36px; /* Um pouco menor no celular */
  height: auto;
  display: block;
}

.demo-bubble__texto {
  font-size: 15px; /* Fonte ajustada para leitura no celular */
  line-height: 1.5;
  font-weight: 500;
}

/* ---------- Badge de classificação ---------- */
.demo-badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 13px; /* Fonte ligeiramente menor no celular */
  border: 1.5px solid transparent;
}

.demo-badge__icone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: var(--color-white);
  font-size: 11px;
  line-height: 1;
  flex-shrink: 0;
}

.demo-badge--falso {
  background-color: var(--demo-false-bg);
  color: var(--demo-false-text);
  border-color: var(--demo-false-border);
}
.demo-badge--falso .demo-badge__icone {
  background-color: var(--demo-false-accent);
}

.demo-badge--enganoso {
  background-color: var(--demo-unknown-bg);
  color: var(--demo-unknown-text);
  border-color: var(--demo-unknown-border);
}
.demo-badge--enganoso .demo-badge__icone {
  background-color: var(--demo-unknown-accent);
}

.demo-badge--verdadeiro {
  background-color: var(--demo-true-bg);
  color: var(--demo-true-text);
  border-color: var(--demo-true-border);
}
.demo-badge--verdadeiro .demo-badge__icone {
  background-color: var(--demo-true-accent);
}

/* ---------- Sinais para observar ---------- */
.demo-sinais {
  border-top: 1px solid rgba(5, 11, 26, 0.1);
  padding-top: 12px;
  margin-top: 4px;
}

.demo-sinais__titulo {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 14px;
  color: var(--color-text-dark);
  margin-bottom: 8px;
}

.demo-sinais ul {
  list-style: disc;
  padding-left: 18px; /* Reduzido para encaixar bem no mobile */
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.demo-sinais li {
  font-size: 14px;
  color: var(--color-text-medium);
  font-weight: 500;
}

/* ---------- Estado "analisando" ---------- */
.demo-analisando {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 20px;
  background-color: var(--color-white);
  border: 1.5px solid rgba(5, 11, 26, 0.07);
  color: var(--color-text-light);
  font-weight: 600;
  font-size: 14px;
}

.demo-spinner {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(40, 76, 173, 0.2);
  border-top-color: var(--color-blue-primary);
  border-radius: 50%;
  animation: demo-girar 0.9s linear infinite;
  flex-shrink: 0;
}

@keyframes demo-girar {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Chips de seleção (Estado 1) ---------- */
.demo-chips {
  display: flex;
  flex-direction: column; /* No mobile, eles ficam em formato de lista */
  gap: 8px;
}

.demo-chip {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1.5px solid rgba(40, 76, 173, 0.25);
  background-color: var(--color-white);
  color: var(--color-blue-primary);
  font-family: var(--font-secondary);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-align: left; /* Melhora a leitura no formato de lista vertical */
  transition:
    transform 0.15s ease,
    background-color 0.15s ease;
}

.demo-chip:hover {
  background-color: rgba(40, 76, 173, 0.08);
}

.demo-chip:active {
  transform: scale(0.98);
}

/* ---------- Botões de ação ---------- */
.demo-btn-enviar,
.demo-btn-reset {
  min-height: 56px;
  padding: 14px 24px;
  border: none;
  border-radius: 15px;
  background-color: var(--color-blue-primary);
  color: var(--color-white);
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 16px; /* Ajuste para o mobile */
  cursor: pointer;
  transition:
    transform 0.15s ease,
    filter 0.15s ease;
  width: 100%; /* Ocupa a largura toda no celular */
}

.demo-btn-enviar:hover,
.demo-btn-reset:hover {
  transform: scale(1.02);
  filter: brightness(1.06);
}

.demo-btn-trocar {
  min-height: 48px;
  padding: 10px 16px;
  border: none;
  background: none;
  color: var(--color-text-light);
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  align-self: center;
}

.demo-btn-trocar:hover {
  color: var(--color-blue-primary);
}

/* SEÇÃO DE ODS */
.ods-section {
  /* Alinha no mesmo sistema de containers das outras seções */
  width: min(100% - 40px, 1440px);
  margin-left: auto;
  margin-right: auto;

  text-align: center;
  margin-top: 80px;
  margin-bottom: 80px;
}

.ods-header {
  margin-bottom: 40px;
}

.ods-pills {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.ods-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  max-width: 40rem;

  min-height: 56px;
  padding: 14px 24px;
  border-radius: 100px;

  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
  color: var(--color-white);
  text-align: center;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  will-change: transform;
}

.ods-pill:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 24px rgba(5, 11, 26, 0.18);
}

.ods-pill:active {
  transform: scale(0.98);
}

.ods-pill:focus-visible {
  outline: 4px solid #f59e0b;
  outline-offset: 4px;
}

/* Variante azul — ODS 16 */
.ods-pill--blue {
  background-color: var(--color-blue-primary);
}

.ods-pill__text {
  line-height: 1.2;
}

.card-list {
  margin: 0;
  padding-left: 1.1rem;
}

.card-list li {
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-text-medium);
  list-style: none;
}

/* FONTES JORNALÍSTICAS */
.sources-section {
  text-align: center;
  margin-top: 80px;
  margin-bottom: 80px;
}

.sources-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.source-card {
  background-color: var(--color-bg-primary);
  border-radius: 31px;
  width: 100%;
  max-width: 300px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(5, 11, 26, 0.12);
  padding: 20px;
}

a.source-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  cursor: pointer;

  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
  will-change: transform;
}

a.source-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(5, 11, 26, 0.18);
}

a.source-card:focus-visible {
  outline: 4px solid #f59e0b;
  outline-offset: 4px;
}

a.source-card:active {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(5, 11, 26, 0.12);
}

.source-card img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.sources-footer-link {
  display: inline-flex;
  margin-top: 40px;
  font-size: 24px;
  font-weight: 700;
  color: var(--color-green-primary);
}

.sources-footer-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text-light);
  margin-top: 40px;
}

/* PARCEIROS */
.partners-section {
  width: min(100% - 40px, 1440px);
  margin-left: auto;
  margin-right: auto;

  text-align: center;
  margin-top: 80px;
  margin-bottom: 80px;
}

.partners-header {
  margin-bottom: 40px;
}

.partners-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  justify-items: center;
}

.partner-card {
  background-color: var(--color-blue-primary);
  border-radius: 31px;
  width: 100%;
  max-width: 25rem;
  height: 19.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  box-shadow: 0 10px 24px rgba(5, 11, 26, 0.12);
  text-decoration: none;

  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
  will-change: transform;
}

.partner-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(5, 11, 26, 0.18);
}

.partner-card:active {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(5, 11, 26, 0.12);
}

.partner-card:focus-visible {
  outline: 4px solid #f59e0b;
  outline-offset: 4px;
}

.partner-logo {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

/* CTA BANNER */
.cta-banner {
  background-color: var(--color-blue-primary);
  color: var(--color-white);
  text-align: center;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 80px;
  border-radius: 2rem 2rem 0 0;
}

.cta-banner h2 {
  font-family: var(--font-primary);
  font-size: 32px;
  font-weight: 700;
}

.cta-banner p {
  font-size: 18px;
  font-weight: 500;
  color: #f4f3f7;
  margin-bottom: 20px;
}

/* FOOTER */
.footer {
  background-color: var(--color-footer-bg);
  color: var(--color-footer-text);
  text-align: center;
  padding: 50px 20px;
  font-size: 15px;
}

@media (min-width: 768px) {
  /* Retorna ao padding fixo e layout de linha do CSS original */
  .header {
    flex-direction: row;
    justify-content: space-between;
    padding: 40px 60px;
  }

  .btn {
    width: auto;
    padding: 20px 40px;
    font-size: 28px;
    min-height: 3.5rem;
    gap: 0.5rem;
  }

  .logo-text {
    font-size: 36px;
    white-space: nowrap;
  }

  .logo-icon {
    width: 72px;
    height: 72px;
  }

  .icon-verified {
    width: 32px;
    height: 32px;
  }

  /* HERO */
  .hero-section {
    flex-direction: row;
    justify-content: space-between;
    margin: 80px auto;
    padding: 0 60px;
    gap: 60px;
  }

  .hero-content {
    max-width: 600px;
    text-align: left;
  }

  .hero-content h1 {
    font-size: 64px;
  }

  .hero-content p {
    font-size: 20px;
  }

  .hero-card {
    flex: 1;
    justify-content: flex-end;
  }

  .card-fake-news {
    padding: 40px;
  }

  .news-title {
    font-size: 25px;
  }

  .news-quote {
    font-size: 19px;
  }

  .tag-fake {
    font-size: 16px;
  }

  .news-source {
    font-size: 16px;
  }

  /* DADOS / ESTATÍSTICAS */
  .stats-section {
    flex-direction: row;
    justify-content: space-around;
    margin: 80px auto;
    padding: 0 60px;
  }

  .stat-box h2 {
    font-size: 35px;
  }

  /* FERRAMENTAS */
  .features-section {
    margin: 120px auto;
    padding: 0 60px;
  }

  .section-title {
    font-size: 54px;
  }

  .section-subtitle {
    font-size: 24px;
    margin-bottom: 60px;
  }

  .features-grid {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
  }

  .feature-card h3 {
    font-size: 25px;
  }

  .feature-card p {
    font-size: 19px;
  }

  /* FONTES JORNALÍSTICAS */
  .sources-section {
    margin: 120px auto;
    padding: 0 60px;
  }

  .sources-grid {
    gap: 40px;
    margin-top: 60px;
  }

  .source-card {
    height: 160px;
  }

  .sources-footer-title {
    font-size: 32px;
    margin-top: 60px;
  }

  /* CTA BANNER */
  .cta-banner {
    padding: 80px 20px;
    margin-top: 100px;
    border-radius: 0;
    /* Assumindo visual de banner em toda a extensão do Desktop */
  }

  .cta-banner h2 {
    font-size: 48px;
  }

  .cta-banner p {
    font-size: 20px;
  }

  /* FOOTER */
  .footer {
    padding: 70px 20px;
    font-size: 17px;
    border-radius: 0;
  }

  /* Verifica AI em ação — composição horizontal */
  .demo-section {
    text-align: center;
    margin: 80px auto;
    padding: 0 40px;
  }

  .demo-header {
    margin-bottom: 32px;
  }

  .demo-chat {
    --demo-false-bg: #fee2e2;
    --demo-false-border: #f87171;
    --demo-false-text: #7f1d1d;
    --demo-false-accent: #ef4444;

    --demo-true-bg: #dcfce7;
    --demo-true-border: #4ade80;
    --demo-true-text: #14532d;
    --demo-true-accent: #16a34a;

    --demo-unknown-bg: #fef9c3;
    --demo-unknown-border: #fde047;
    --demo-unknown-text: #713f12;
    --demo-unknown-accent: #ca8a04;

    width: 100%;
    margin: 0 auto;
    background-color: var(--color-white);
    border-radius: 28px;
    box-shadow: 0 10px 26px rgba(5, 11, 26, 0.12);

    display: flex;
    flex-direction: column;

    text-align: left;

    max-width: 680px;
    padding: 32px;
    gap: 24px;
  }

  .demo-chat__log {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 120px;
  }

  .demo-chat__controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  /* ---------- Balões de conversa ---------- */
  .demo-bubble {
    max-width: 78%;
    padding: 16px 18px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-wrap: break-word;
  }

  .demo-bubble--user {
    align-self: flex-end;
    background-color: var(--color-blue-primary);
    color: var(--color-white);
    border-bottom-right-radius: 6px;
    box-shadow: 0 2px 8px rgba(40, 76, 173, 0.25);
  }

  .demo-bubble--user .demo-bubble__autor {
    color: rgba(255, 255, 255, 0.85);
  }

  .demo-bubble--bot {
    align-self: flex-start;
    background-color: var(--color-white);
    color: var(--color-text-medium);
    border-radius: 20px;
    border: 1.5px solid rgba(5, 11, 26, 0.07);
    border-left: 4px solid var(--demo-unknown-accent);
    box-shadow: 0 2px 16px rgba(5, 11, 26, 0.07);
  }

  .demo-bubble--bot-falso {
    border-left-color: var(--demo-false-accent);
  }

  .demo-bubble--bot-enganoso {
    border-left-color: var(--demo-unknown-accent);
  }

  .demo-bubble--bot-verdadeiro {
    border-left-color: var(--demo-true-accent);
  }

  .demo-bubble__autor {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 14px;
    color: var(--color-text-light);
  }

  .demo-bubble__autor--bot {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text-dark);
  }

  .demo-bubble__avatar {
    width: 44px;
    height: auto;
    display: block;
  }

  .demo-bubble__texto {
    font-size: 16px;
    line-height: 1.5;
    font-weight: 500;
  }

  /* ---------- Badge de classificação ---------- */
  .demo-badge {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 14px;
    border: 1.5px solid transparent;
  }

  .demo-badge__icone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: var(--color-white);
    font-size: 13px;
    line-height: 1;
    flex-shrink: 0;
  }

  .demo-badge--falso {
    background-color: var(--demo-false-bg);
    color: var(--demo-false-text);
    border-color: var(--demo-false-border);
  }
  .demo-badge--falso .demo-badge__icone {
    background-color: var(--demo-false-accent);
  }

  .demo-badge--enganoso {
    background-color: var(--demo-unknown-bg);
    color: var(--demo-unknown-text);
    border-color: var(--demo-unknown-border);
  }
  .demo-badge--enganoso .demo-badge__icone {
    background-color: var(--demo-unknown-accent);
  }

  .demo-badge--verdadeiro {
    background-color: var(--demo-true-bg);
    color: var(--demo-true-text);
    border-color: var(--demo-true-border);
  }
  .demo-badge--verdadeiro .demo-badge__icone {
    background-color: var(--demo-true-accent);
  }

  /* ---------- Sinais para observar ---------- */
  .demo-sinais {
    border-top: 1px solid rgba(5, 11, 26, 0.1);
    padding-top: 12px;
    margin-top: 4px;
  }

  .demo-sinais__titulo {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 14px;
    color: var(--color-text-dark);
    margin-bottom: 8px;
  }

  .demo-sinais ul {
    list-style: disc;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .demo-sinais li {
    font-size: 15px;
    color: var(--color-text-medium);
    font-weight: 500;
  }

  /* ---------- Estado "analisando" ---------- */
  .demo-analisando {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 20px;
    background-color: var(--color-white);
    border: 1.5px solid rgba(5, 11, 26, 0.07);
    color: var(--color-text-light);
    font-weight: 600;
    font-size: 15px;
  }

  .demo-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(40, 76, 173, 0.2);
    border-top-color: var(--color-blue-primary);
    border-radius: 50%;
    animation: demo-girar 0.9s linear infinite;
    flex-shrink: 0;
  }

  @keyframes demo-girar {
    to {
      transform: rotate(360deg);
    }
  }

  /* ---------- Chips de seleção (Estado 1) ---------- */
  .demo-chips {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }

  .demo-chip {
    flex: 1 1 auto;
    min-width: 160px;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 14px;
    border: 1.5px solid rgba(40, 76, 173, 0.25);
    background-color: var(--color-white);
    color: var(--color-blue-primary);
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition:
      transform 0.15s ease,
      background-color 0.15s ease;

    width: auto;
    text-align: center;
  }

  .demo-chip:hover {
    background-color: rgba(40, 76, 173, 0.08);
    transform: translateY(-2px);
  }

  .demo-chip:active {
    transform: translateY(0) scale(0.98);
  }

  /* ---------- Botões de ação ---------- */
  .demo-btn-enviar,
  .demo-btn-reset {
    min-height: 56px;
    padding: 14px 24px;
    border: none;
    border-radius: 15px;
    background-color: var(--color-blue-primary);
    color: var(--color-white);
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition:
      transform 0.15s ease,
      filter 0.15s ease;
  }

  .demo-btn-enviar:hover,
  .demo-btn-reset:hover {
    transform: scale(1.02);
    filter: brightness(1.06);
  }

  .demo-btn-trocar {
    min-height: 48px;
    padding: 10px 16px;
    border: none;
    background: none;
    color: var(--color-text-light);
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 15px;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    align-self: center;
  }

  .demo-btn-trocar:hover {
    color: var(--color-blue-primary);
  }

  /* ODS — Responsivo tablet/desktop */
  .ods-section {
    margin: 120px auto;
    padding: 0 60px;
  }

  .ods-pills {
    justify-content: center;
    gap: 24px;
  }

  .ods-pill {
    font-size: 1.25rem; /* 20px */
  }

  .ods-pill__icon {
    width: 40px;
    height: 40px;
  }

  /* Parceiros — Responsivo tablet/desktop */
  .partners-section {
    margin: 120px auto;
    padding: 0 60px;
  }

  .partners-header {
    margin-bottom: 60px;
  }

  /* 3 colunas iguais lado a lado em telas maiores */
  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
  }

  .partner-card {
    max-width: 100%; /* ocupa a célula do grid inteira */
    height: 180px;
  }
}

@media (min-width: 1024px) {
  .demo-section {
    margin: 120px auto;
    padding: 0 60px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
