/* =========================================================================
   PALACIO SYSTEMS · Demonstração conversacional
   Identidade do post: preto puro, grade sutil, azul #1F5FE8,
   Montserrat (títulos e texto) + JetBrains Mono (rótulos).
   ========================================================================= */

:root {
  color-scheme: dark;
  --bg: #000;
  --grid: rgba(255, 255, 255, 0.042);
  --line: #1c1d21;
  --line-2: #2a2c31;
  --chip: #3b3b3b;
  --card: rgba(8, 8, 9, 0.94);
  --user: #1a1d24;
  --blue: #1f5fe8;
  --blue-2: #3b7bff;
  --blue-ink: #0a2a78;
  --text: #f4f6fa;
  --text-2: #c9cfdb;
  --text-3: #9aa3b5;
  --text-4: #6b7385;
  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html,
body {
  height: 100%;
  overscroll-behavior: none; /* evita o "puxar para atualizar", que apagaria a conversa */
}

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

button,
a,
input { touch-action: manipulation; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}

/* grade do post */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 44px 44px;
  background-position: -1px -1px;
}

/* brilho azul no canto, como no post */
.glow {
  position: fixed;
  top: -28vh;
  right: -30vw;
  width: 95vw;
  height: 80vh;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(31, 95, 232, 0.3), rgba(31, 95, 232, 0.1) 50%, transparent 80%);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--blue-2);
  outline-offset: 2px;
}

/* ------------------------------------------------------------------ estrutura (celular primeiro) */
.app {
  position: relative;
  z-index: 1;
  height: 100vh;
  height: var(--app-h, 100dvh);
  display: flex;
  flex-direction: column;
}

.topbar,
.intro { display: none; }

.layout {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.chat {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

/* ------------------------------------------------------------------ cabeçalho da conversa */
.chat-hd {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left));
  padding-top: max(12px, env(safe-area-inset-top));
  border-bottom: 1px solid var(--line);
  background: rgba(4, 4, 5, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.avatar {
  position: relative;
  flex: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #0a0a0c;
  border: 1px solid var(--line-2);
}

.avatar img { width: 24px; height: 30px; display: block; }

.avatar.biz {
  border-radius: 50%;
  border-color: transparent;
  background: linear-gradient(140deg, var(--blue), var(--blue-ink));
}

.avatar .ini {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.avatar .badge {
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #121318;
  border: 2px solid #050506;
  font-size: 11px;
  line-height: 1;
}

.who {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.who strong {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-3);
  white-space: nowrap;
}

#hd-status {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-hd.is-typing .status { color: var(--blue-2); }

.dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse 2.2s infinite;
}

.tag {
  flex: none;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--text-3);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 5px 9px 5px 11px;
}

.tag[hidden],
.sair[hidden] { display: none; }

/* botão de sair da simulação (no lugar da etiqueta, enquanto o visitante é o cliente) */
.sair {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid #2b3a63;
  border-radius: 999px;
  background: rgba(31, 95, 232, 0.12);
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.sair span { font-size: 11px; letter-spacing: 0; }

@media (hover: hover) {
  .sair:hover { border-color: var(--blue); background: rgba(31, 95, 232, 0.22); color: #fff; }
}

.chat-hd::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue-2), transparent);
  transform: scaleX(0);
  opacity: 0;
}

.chat-hd.swap::after { animation: scan 1s var(--ease); }
.chat-hd.swap .avatar,
.chat-hd.swap .who,
.chat-hd.swap .tag,
.chat-hd.swap .sair { animation: swapIn 0.6s var(--ease); }

/* ------------------------------------------------------------------ área de mensagens */
.scroller {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 16px max(14px, env(safe-area-inset-right)) 12px max(14px, env(safe-area-inset-left));
  scrollbar-width: thin;
  scrollbar-color: #26282e transparent;
}

.log {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.log > * + * { margin-top: 12px; }
.log > .cont { margin-top: 4px; }

/* perfil e recorte do post (fixos no topo da conversa) */
.profile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(10, 10, 12, 0.72);
}

.profile img { flex: none; width: 34px; height: 42px; }
.profile div { min-width: 0; flex: 1; }

.profile h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.profile p {
  margin: 2px 0 0;
  color: var(--text-3);
  font-size: 13px;
}

.profile .mono {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--blue-2);
}

.profile-link {
  flex: none;
  align-self: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 7px 11px;
  transition: border-color 0.2s, color 0.2s;
}

.profile-link:hover { border-color: var(--blue); color: #fff; }

.recap {
  margin-top: 14px !important;
  padding: 14px;
  border: 1px solid #262626;
  border-radius: 18px;
  background: #080808;
}

.recap .lbl {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--text-3);
}

.rb {
  margin: 0;
  max-width: 84%;
  padding: 9px 13px;
  font-size: 14px;
  line-height: 1.4;
  border-radius: 14px;
}

.rb-in { background: var(--user); color: var(--text); }
.rb-out { margin: 8px 0 0 auto; background: var(--blue); color: #fff; }

/* bolhas */
.msg {
  display: flex;
  animation: msgIn 0.34s var(--ease) both;
}

.msg.agent { justify-content: flex-start; }
.msg.user { justify-content: flex-end; }

.bubble {
  position: relative;
  max-width: min(84%, 440px);
  padding: 9px 13px 8px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.bubble strong { font-weight: 700; }

.agent .bubble {
  background: var(--blue);
  color: #fff;
  border-top-left-radius: 6px;
}

.agent.cont .bubble { border-top-left-radius: 18px; }

.user .bubble {
  background: var(--user);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-top-right-radius: 6px;
}

.user.cont .bubble { border-top-right-radius: 18px; }

.meta {
  float: right;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin: 8px -4px -3px 12px;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--text-4);
}

.agent .meta { color: rgba(255, 255, 255, 0.72); }

.ticks {
  width: 17px;
  height: 11px;
  color: var(--text-4);
  transition: color 0.35s;
}

.read .ticks { color: var(--blue-2); }

/* digitando */
.typing .bubble {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 13px 15px;
}

.typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  animation: blink 1.2s infinite;
}

.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }

/* divisores e notas */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px !important;
  margin-bottom: 4px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--blue-2);
  animation: msgIn 0.4s var(--ease) both;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #2b3a63);
}

.divider::after { background: linear-gradient(90deg, #2b3a63, transparent); }
.divider span { text-align: center; }

.note {
  margin-bottom: 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-3);
  animation: msgIn 0.4s var(--ease) both;
}

/* escolha do ramo */
.tiles {
  align-self: flex-start;
  width: min(100%, 360px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  animation: msgIn 0.4s var(--ease) both;
}

.tile {
  appearance: none;
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: #0e0f12;
  color: var(--text);
  font: 600 14px/1.2 var(--font);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s, opacity 0.3s;
}

.tile .em { font-size: 18px; line-height: 1; }
.tile.wide { grid-column: 1 / -1; justify-content: center; }

@media (hover: hover) {
  .tile:hover { border-color: var(--blue); background: #0f1734; }
}

.tile:active { transform: scale(0.98); }
.tiles.done .tile { opacity: 0.32; cursor: default; }

.tiles.done .tile.sel {
  opacity: 1;
  border-color: var(--blue);
  background: rgba(31, 95, 232, 0.18);
}

/* cartões (configuração, bastidores, resultado) */
.card {
  align-self: flex-start;
  width: min(100%, 380px);
  padding: 14px 16px 16px;
  border: 1px solid #262626;
  border-radius: 18px;
  background: var(--card);
  animation: msgIn 0.38s var(--ease) both;
}

.card-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--text-3);
}

.card-hd time { margin-left: auto; letter-spacing: 0.06em; color: var(--text-4); }

.pulse {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse 1.6s infinite;
}

.complete .pulse { animation: none; background: var(--blue-2); }

.card-sub {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: var(--text-3);
}

.checks {
  list-style: none;
  display: grid;
  gap: 9px;
  margin: 12px 0 0;
  padding: 0;
}

.checks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-3);
  animation: msgIn 0.28s var(--ease) both;
}

.checks li.done { color: var(--text); }

.checks .ic {
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.checks .pending .ic {
  border: 2px solid var(--line-2);
  border-top-color: var(--blue-2);
  animation: spin 0.7s linear infinite;
}

.checks .done .ic {
  background: var(--blue);
  animation: pop 0.3s var(--ease);
}

.checks .done .ic::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 3px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.setup .bar {
  height: 3px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--line);
}

.setup .bar i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--blue-2));
  transition: width 0.45s var(--ease);
}

.backstage {
  border-style: dashed;
  border-color: #2b3a63;
  background: rgba(8, 13, 30, 0.86);
}

.backstage .card-hd { color: var(--blue-2); }

.result dl { margin: 10px 0 0; }

.result dl > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px dashed #24262c;
  font-size: 13.5px;
}

.result dt { color: var(--text-3); }

.result dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

.result .ok { color: var(--blue-2); }

.zero {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 12px 16px;
  border: 1px solid rgba(59, 123, 255, 0.38);
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(31, 95, 232, 0.24), rgba(31, 95, 232, 0.05));
}

.zero strong {
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.zero span {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.zero small {
  display: block;
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--blue-2);
}

/* chamada final, igual ao botão do post */
.cta {
  align-self: stretch;
  max-width: 400px;
  animation: msgIn 0.45s var(--ease) both;
}

.btn-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 19px 22px;
  border-radius: 16px;
  background: #fff;
  color: #07080b;
  text-decoration: none;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.015em;
  box-shadow: 0 12px 44px rgba(31, 95, 232, 0.38);
  transition: transform 0.15s, box-shadow 0.25s;
}

.btn-cta span { font-size: 24px; line-height: 1; }

@media (hover: hover) {
  .btn-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 54px rgba(31, 95, 232, 0.55); }
}

.cta-note {
  margin: 10px 2px 0;
  text-align: right;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-3);
}

/* ------------------------------------------------------------------ rodapé: sugestões + campo */
.chat-ft {
  padding: 10px max(12px, env(safe-area-inset-right)) 10px max(12px, env(safe-area-inset-left));
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(4, 4, 5, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.replies {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.replies:not(:empty) { margin-bottom: 10px; }

.chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--chip);
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font: 500 14px/1.2 var(--font);
  text-decoration: none;
  cursor: pointer;
  animation: chipIn 0.3s var(--ease) both;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

@media (hover: hover) {
  .chip:hover { border-color: var(--blue); background: rgba(31, 95, 232, 0.12); color: #fff; }
}

body.teclado .replies { display: none; }

.chip.ghost { border-style: dashed; color: var(--text-3); }
.chip.strong,
.chip.link { border-color: var(--blue); color: #fff; background: rgba(31, 95, 232, 0.14); }

.composer {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
}

.composer input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #0c0d10;
  color: var(--text);
  font: 500 16px var(--font);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.composer input::placeholder { color: var(--text-4); }

.composer input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31, 95, 232, 0.25);
}

.composer input.attn { animation: attn 1.4s var(--ease) 2; }

.composer button {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s;
}

.composer button:active { transform: scale(0.94); }

@media (hover: hover) {
  .composer button:hover { background: var(--blue-2); }
}

.noscript {
  position: fixed;
  inset: auto 16px 16px;
  z-index: 9;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff;
  color: #000;
  font-weight: 600;
}

/* ------------------------------------------------------------------ celular */

/* sugestões numa linha só, rolando para o lado (o degradê indica que tem mais) */
@media (max-width: 600px), (max-height: 500px) {
  .replies {
    flex-wrap: nowrap;
    max-width: none;
    margin-left: -12px;
    margin-right: -12px;
    padding: 2px 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding-inline: 12px;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent);
  }

  .replies::-webkit-scrollbar { display: none; }

  .replies.fim {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .chip {
    flex: none;
    white-space: nowrap;
  }
}

/* cartão de perfil: o link desce para a própria linha */
@media (max-width: 420px) {
  .profile { flex-wrap: wrap; row-gap: 12px; }
  .profile-link { flex: 1 0 100%; padding: 9px 12px; text-align: center; }
}

/* status mais curto: "online" em vez de "online · responde na hora" */
@media (max-width: 400px) {
  .st-extra { display: none; }
}

@media (max-width: 380px) {
  .chat-hd { gap: 10px; padding-left: 12px; padding-right: 12px; }
  .avatar { width: 38px; height: 38px; }
  .avatar img { width: 22px; height: 27px; }
  .who strong { font-size: 15px; }
  .tag,
  .sair { padding: 5px 9px; font-size: 9.5px; letter-spacing: 0.12em; }
  .scroller { padding-left: 12px; padding-right: 12px; }
  .bubble { font-size: 14.5px; }
  .tiles { gap: 6px; padding: 8px; }
  .tile { gap: 8px; padding: 10px; font-size: 13.5px; }
  .card { padding: 12px 14px 14px; }
  .btn-cta { padding: 17px 18px; font-size: 18px; }
  .cta-note { text-align: center; letter-spacing: 0.14em; }
}

/* celular deitado e telas baixas: cabeçalho e rodapé mais finos */
@media (max-height: 500px) {
  .chat-hd {
    padding-top: max(6px, env(safe-area-inset-top));
    padding-bottom: 6px;
  }
  .avatar { width: 34px; height: 34px; border-radius: 10px; }
  .avatar img { width: 20px; height: 25px; }
  .avatar .badge { width: 18px; height: 18px; font-size: 10px; }
  .who strong { font-size: 15px; }
  .scroller { padding-top: 10px; padding-bottom: 8px; }
  .chat-ft {
    padding-top: 8px;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }
  .replies:not(:empty) { margin-bottom: 8px; }
  .composer input { height: 40px; }
  .composer button { width: 40px; height: 40px; }
}

@media (min-width: 560px) and (max-height: 500px) {
  .tiles { grid-template-columns: repeat(3, 1fr); width: min(100%, 540px); }
}

/* ------------------------------------------------------------------ desktop: post à esquerda, conversa à direita */
@media (min-width: 1100px) {
  body { overflow: auto; }
  body::before { background-size: 60px 60px; }

  .glow {
    top: -30vh;
    right: -12vw;
    width: 70vw;
    height: 90vh;
  }

  .app {
    height: auto;
    min-height: 100vh;
  }

  .topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 36px clamp(32px, 5vw, 80px) 0;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
  }

  .brand img { width: 40px; height: 50px; }

  .brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
  }

  .brand-text b {
    font-size: 27px;
    font-weight: 600;
    letter-spacing: 0.01em;
  }

  .brand-text i {
    margin-top: 6px;
    font-style: normal;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.44em;
    color: #0068ff;
  }

  .kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0.3em;
    color: var(--text-3);
  }

  .layout {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 440px;
    align-items: center;
    gap: clamp(40px, 6vw, 110px);
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 28px clamp(32px, 5vw, 80px) 44px;
  }

  .intro { display: block; }

  .eyebrow {
    margin: 0 0 22px;
    font-family: var(--mono);
    font-size: 14px;
    letter-spacing: 0.3em;
    color: var(--blue-2);
  }

  .intro h1 {
    margin: 0;
    font-size: clamp(46px, 4.8vw, 76px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.035em;
  }

  .intro h1 .hl { color: var(--blue); }

  .lead {
    max-width: 33em;
    margin: 26px 0 0;
    font-size: clamp(17px, 1.3vw, 20px);
    line-height: 1.55;
    color: var(--text-2);
  }

  .steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    max-width: 660px;
    margin: 44px 0 0;
    padding: 0;
  }

  .steps li {
    padding-top: 14px;
    border-top: 2px solid var(--line-2);
    transition: border-color 0.5s var(--ease);
  }

  .steps .n {
    display: block;
    margin-bottom: 8px;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.22em;
    color: var(--text-4);
    transition: color 0.5s;
  }

  .steps strong {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.28;
    color: var(--text-3);
    transition: color 0.5s;
  }

  body[data-etapa='1'] .steps li:nth-child(1),
  body[data-etapa='2'] .steps li:nth-child(-n + 2),
  body[data-etapa='3'] .steps li,
  body[data-etapa='4'] .steps li { border-color: var(--blue); }

  body[data-etapa='1'] .steps li:nth-child(1) strong,
  body[data-etapa='2'] .steps li:nth-child(-n + 2) strong,
  body[data-etapa='3'] .steps li strong,
  body[data-etapa='4'] .steps li strong { color: #fff; }

  body[data-etapa='1'] .steps li:nth-child(1) .n,
  body[data-etapa='2'] .steps li:nth-child(-n + 2) .n,
  body[data-etapa='3'] .steps li .n,
  body[data-etapa='4'] .steps li .n { color: var(--blue-2); }

  .direct {
    margin: 40px 0 0;
    font-size: 14px;
    color: var(--text-3);
  }

  .direct a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid var(--blue);
    padding-bottom: 2px;
  }

  .chat {
    height: clamp(480px, calc(100vh - 160px), 860px);
    max-width: none;
    overflow: hidden;
    border: 1px solid var(--line-2);
    border-radius: 28px;
    background: rgba(3, 3, 4, 0.92);
    box-shadow:
      0 40px 120px rgba(0, 0, 0, 0.7),
      0 0 140px rgba(31, 95, 232, 0.14);
  }

  .chat-hd { padding: 14px 18px; }
  .scroller { padding: 18px 18px 14px; }
  .chat-ft { padding: 12px 14px 14px; }
  .profile-link { display: none; }
}

/* ------------------------------------------------------------------ animações */
@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

@keyframes chipIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@keyframes blink {
  0%, 80%, 100% { opacity: 0.35; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes pop {
  0% { transform: scale(0.6); }
  70% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(59, 123, 255, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(59, 123, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(59, 123, 255, 0); }
}

@keyframes swapIn {
  from { opacity: 0; transform: translateY(6px); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}

@keyframes scan {
  0% { transform: scaleX(0); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}

@keyframes attn {
  0%, 100% { box-shadow: 0 0 0 0 rgba(31, 95, 232, 0); }
  50% { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31, 95, 232, 0.35); }
}

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