:root {
  --navy: #0b1220;
  --navy-2: #141b2d;
  --accent: #3b2cff;
  --accent-2: #1e90ff;
  --glass: rgba(255, 255, 255, 0.92);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 18px;
}

/* Reset básico */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

/* 🔥 Regra de UX: a página NÃO rola. Quem rola é o chat */
body.acrisul-body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--navy);
  overflow: hidden;
}

/* ========================= Topbar ========================= */
.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 14px 0;
  background: transparent;
}

.logo {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
}

.topbar-badge {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.75rem;
}

/* ========================= Background / Shell ========================= */
.lp-hero {
  height: 100svh;
  position: relative;
  overflow: hidden;
  padding-top: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gradient-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(
      120% 120% at 20% 20%,
      rgba(59, 44, 255, 0.2),
      transparent
    ),
    radial-gradient(100% 100% at 80% 0%, rgba(30, 144, 255, 0.25), transparent),
    linear-gradient(160deg, var(--navy), var(--navy-2));
  z-index: 0;
}

/* Layout: copy em cima (compacto) + chat centralizado */
.lp-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px; /* 🔧 REDUZIDO de 20px */
  padding: 12px 16px 20px; /* 🔧 Menos padding no topo */
}

/* ========================= Copy compacta e centralizada ========================= */
.lp-copy {
  max-width: 720px;
  text-align: center;
  color: #fff;
  padding: 0 12px;
}

.lp-title {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin: 0;
}

.lp-subtitle {
  margin-top: 8px; /* 🔧 REDUZIDO de 10px */
  margin-bottom: 4px; /* 🔧 REDUZIDO de 6px */
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  line-height: 1.5;
}

.lp-disclaimer {
  margin-top: 6px; /* 🔧 REDUZIDO de 8px */
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: clamp(0.8rem, 1vw, 0.9rem);
  font-style: italic;
}

/* some quando o chat começa de verdade */
.lp-copy.is-hidden {
  display: none;
}

/* ========================= Chat centralizado ========================= */
.lp-chat {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0 12px;
}

/* Card do chat - altura fixa e centralizado */
.chat-card {
  width: min(580px, 100%); /* 🔧 Largura um pouco menor para centralizar melhor */
  height: 520px;
  background: var(--glass);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ========================= Header / Footer ========================= */
.chat-header,
.chat-footer {
  flex: 0 0 auto;
}

.chat-header {
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.chat-header p {
  margin: 0;
  font-size: 0.8rem; /* 🔧 Texto menor */
}

.chat-header h5 {
  margin: 4px 0 0;
  font-size: 1.05rem; /* 🔧 Título menor */
}

.chat-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 6px;
}

/* 🔧 evita "primeira fala grudada" no header */
.chat-body::before {
  content: "";
  display: block;
  height: 6px;
}

/* Footer */
.chat-footer {
  margin-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 10px;
  color: rgba(28, 39, 56, 0.65);
  font-size: 0.85rem;
}

/* Scrollbar (Chrome/Edge) */
.chat-body::-webkit-scrollbar {
  width: 10px;
}

.chat-body::-webkit-scrollbar-thumb {
  background: rgba(20, 27, 45, 0.18);
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.45);
}

.chat-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.35);
  border-radius: 999px;
}

/* ========================= bubbles ========================= */
.bubble {
  padding: 12px 14px;
  border-radius: 16px;
  max-width: 92%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.bubble.bot {
  align-self: flex-start;
  background: #f5f7fb;
  color: #1c2738;
}

.bubble.user {
  align-self: flex-end;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #fff;
}

/* ========================= pills ========================= */
.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  border: 1px solid rgba(20, 27, 45, 0.12);
  border-radius: 999px;
  padding: 10px 14px;
  background: #fff;
  color: #1c2738;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
  transition: all 0.15s ease;
  font-weight: 600;
}

.pill:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  box-shadow: 0 12px 24px rgba(59, 44, 255, 0.2);
}

/* quando você desabilita tudo após escolher */
.pill:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ========================= progress badge ========================= */
.progress-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(59, 44, 255, 0.08);
  color: var(--accent);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
}

/* ========================= input bubble ========================= */
.input-bubble {
  background: #f7f9fd;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 14px;
  padding: 14px;
}

.input-bubble .form-control {
  border-radius: 12px;
  border: 1px solid rgba(20, 27, 45, 0.12);
  padding: 10px 12px;
}

/* ========================= BOTÕES (garantir azul em tudo) ========================= */
.btn-accent,
a.btn-accent {
  background: linear-gradient(120deg, var(--accent), var(--accent-2)) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 10px 16px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  box-shadow: 0 10px 30px rgba(59, 44, 255, 0.25) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* CTA do WhatsApp dentro da bolha */
.bubble a.btn-accent,
.bubble a.btn {
  background: linear-gradient(120deg, var(--accent), var(--accent-2)) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 10px 16px !important;
  text-decoration: none !important;
  box-shadow: 0 10px 30px rgba(59, 44, 255, 0.25) !important;
  font-weight: 700 !important;
}

/* ========================= Mobile ========================= */
@media (max-width: 768px) {
  .lp-hero {
    padding-top: 58px;
    align-items: flex-start; /* 🔧 Alinha pro topo no mobile */
  }

  .lp-shell {
    gap: 16px;
    padding: 16px 12px 12px; /* 🔧 Menos padding embaixo */
  }

  .lp-title {
    font-size: 1.35rem;
    line-height: 1.2;
  }

  .lp-subtitle {
    font-size: 0.88rem;
    margin-top: 8px;
  }

  .lp-disclaimer {
    font-size: 0.78rem;
  }

  /* 🔧 Chat ocupa mais espaço no mobile e tem margem inferior */
  .chat-card {
    height: calc(100svh - 240px); /* Altura dinâmica baseada no viewport */
    min-height: 420px; /* Altura mínima */
    max-height: 600px; /* Altura máxima */
    margin-bottom: 16px; /* 🔧 MARGEM INFERIOR para ver a borda */
  }

  .bubble {
    max-width: 94%;
  }

  .pill {
    padding: 9px 12px;
  }

  .chat-header h5 {
    font-size: 0.95rem;
  }

  .chat-header p {
    font-size: 0.75rem;
  }
}

/* 🔧 Mobile muito pequeno (ex: iPhone SE) */
@media (max-width: 375px) {
  .chat-card {
    height: calc(100svh - 220px);
    padding: 14px;
    margin-bottom: 12px;
  }

  .lp-title {
    font-size: 1.2rem;
  }

  .lp-subtitle {
    font-size: 0.82rem;
  }
}