:root {
  --fundo: #3b4057;
  --balao: #f5f6fc;
  --texto: #23263a;
  --cliente: #2e3247;
  --primaria: #5b4ff5;
  --primaria-escura: #4a3fe0;
  --laranja: #f07b2c;
  --cinza: #f0f1f4;
  --borda: #d4d6e0;
  --suave: #8d90a6;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--fundo);
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--texto);
  -webkit-font-smoothing: antialiased;
}
.topo {
  position: sticky; top: 0; z-index: 5;
  height: 64px; background: #eef0f4;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
}
.fechar {
  position: absolute; left: 12px; top: 8px;
  width: 48px; height: 48px; border: 0; background: none;
  font-size: 38px; line-height: 1; color: #2e3247; cursor: pointer;
}
.marca { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.marca-nome { font-weight: 800; font-size: 24px; color: #2e3247; letter-spacing: -.5px; }
.marca-sub { font-size: 11px; font-weight: 600; color: var(--primaria); letter-spacing: 3px; text-transform: uppercase; margin-top: 2px; }

/* Coluna de celular tambem no computador: o anuncio leva quase todo mundo
   pelo celular, e a conversa fica igual nos dois. */
.palco { max-width: 440px; margin: 0 auto; padding: 20px 16px 40px; }

/* banner */
.banner {
  position: relative; background: #fff; border-radius: 16px;
  display: flex; align-items: center; min-height: 140px; overflow: hidden;
  margin: 24px 0 28px; padding: 16px 16px 16px 28px;
}
.banner-faixa { position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
  background: linear-gradient(#5b4ff5, #2ec5f0, #f07b2c); }
.banner-texto { flex: 1; font-size: 18px; font-weight: 600; color: #2e3247; line-height: 1.3;
  transition: opacity .4s ease; }
.banner-arte { width: 92px; color: var(--primaria); flex-shrink: 0; margin-left: 8px; }
.banner.compacto { display: none; }

/* baloes */
.conversa { display: flex; flex-direction: column; gap: 12px; }
.grupo-bot { position: relative; padding-left: 44px; display: flex; flex-direction: column; gap: 12px; }
.grupo-bot .avatar {
  position: absolute; left: 0; bottom: 4px; width: 34px; height: 34px; border-radius: 50%;
  background: #fff; color: var(--fundo); font-weight: 800; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.balao {
  background: var(--balao); border-radius: 10px; padding: 14px 18px;
  font-size: 17px; line-height: 1.4; max-width: 100%; width: fit-content;
  animation: entra .25s ease-out;
}
.balao b { font-weight: 700; }
.balao.cliente {
  align-self: flex-end; background: var(--cliente); color: #fff;
  font-size: 17px; padding: 14px 22px;
}
.balao.cliente.botao-eco { text-transform: uppercase; letter-spacing: .3px; }
.digitando { display: inline-flex; gap: 5px; padding: 18px 20px; }
.digitando i { width: 8px; height: 8px; border-radius: 50%; background: #b3b6c6; animation: pula 1s infinite; }
.digitando i:nth-child(2) { animation-delay: .15s; }
.digitando i:nth-child(3) { animation-delay: .3s; }
@keyframes pula { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
@keyframes entra { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* area de acao */
.area-acao { margin-top: 14px; }
.area-acao:empty { display: none; }
.btn-primario {
  display: block; width: calc(100% - 44px); max-width: 400px; margin-left: 44px;
  background: var(--primaria); color: #fff; border: 0; border-radius: 10px;
  padding: 18px; font: 700 16px 'Montserrat', sans-serif; text-transform: uppercase; cursor: pointer;
}
.btn-primario:hover { background: var(--primaria-escura); }
.btn-primario:disabled { background: #4b4f8a; color: #8e92c4; cursor: default; }
/* botao do fim da conversa: verde do WhatsApp, e' um link (abre o app) */
.btn-zap { background: #25d366; color: #fff; text-align: center; text-decoration: none; margin-top: 14px; }
.btn-zap:hover { background: #1ebe5b; }
.btn-largo { max-width: none; margin-left: 0; width: 100%; }

.caixa-texto { background: #fff; border-radius: 10px; padding: 20px; margin-left: 44px; }
.campo { display: flex; align-items: center; border: 2px solid #6c62e8; border-radius: 10px; padding: 0 8px 0 18px; }
.campo input { flex: 1; border: 0; outline: 0; font: 400 18px 'Montserrat', sans-serif; padding: 16px 0; min-width: 0; color: var(--texto); background: transparent; }
.campo input::placeholder { color: var(--suave); }
.campo button { border: 0; background: none; cursor: pointer; padding: 8px; color: #7d74ee; }
.campo button svg { width: 30px; height: 30px; }
.dica { font-size: 13px; color: #555; margin-top: 8px; }
.erro-campo { font-size: 14px; color: #c62828; margin-top: 8px; }

/* Respostas do cadastro em conversa */
.escolhas { display: flex; flex-wrap: wrap; gap: 10px; margin-left: 44px; }
.chip {
  border: 2px solid var(--primaria); background: #fff; color: var(--primaria);
  border-radius: 999px; padding: 12px 20px; cursor: pointer;
  font: 600 15px 'Montserrat', sans-serif;
}
.chip:hover { background: var(--primaria); color: #fff; }
/* profissao: os botoes ficam dentro da caixa da busca, mais compactos */
.escolhas-lista { margin: 12px 0 0; gap: 8px; }
.escolhas-lista .chip { padding: 9px 14px; font-size: 14px; }
.chip-outro { border-style: dashed; }
.btn-pular {
  border: 0; background: none; color: var(--primaria); cursor: pointer;
  padding: 6px 0; margin-top: 4px; font: 600 14px 'Montserrat', sans-serif;
  text-decoration: underline;
}
/* O anexo nao tem campo de digitar: o botao ocupa a caixa inteira */
.caixa-anexo .btn-primario { margin-left: 0; }

/* carrossel de categorias */
.carrossel { position: relative; margin-left: 44px; }
.trilho { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-right: 30px; }
.trilho::-webkit-scrollbar { display: none; }
.cartao-cat {
  flex: 0 0 88%; scroll-snap-align: start; background: #fff; border-radius: 18px;
  min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 24px 20px 50px; border: 3px solid transparent; cursor: pointer; text-align: center;
}
.cartao-cat:hover, .cartao-cat:focus-visible { border-color: var(--primaria); outline: 0; }
.cartao-cat svg { width: 80%; max-width: 260px; height: auto; color: #2e3247; margin-bottom: 30px; }
.cartao-cat h3 { margin: 0; font-size: 28px; font-weight: 700; color: #2e3247; }
.cartao-cat p { margin: 4px 0 0; font-size: 17px; color: #555; }
.seta {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 56px; height: 56px; border-radius: 8px; border: 0; cursor: pointer;
  background: var(--primaria); color: #fff; display: flex; align-items: center; justify-content: center;
}
.seta svg { width: 30px; height: 30px; }
.seta:disabled { background: #e0e0e4; color: #fff; cursor: default; }
.seta.esq { left: -30px; }
.seta.dir { right: 0; }

/* planos */
.cartao-plano { background: #fff; border-radius: 16px; padding: 20px 18px; }
.cab-plano { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 20px; }
.cab-plano .seta { position: static; transform: none; flex-shrink: 0; }
.cab-centro { text-align: center; }
.cab-centro small { display: block; font-size: 14px; color: #333; }
.cab-centro strong { display: block; font-size: 26px; font-weight: 700; color: #2e3247; white-space: nowrap; }
.cab-centro span { font-size: 15px; color: #333; }
.cab-centro span b { font-size: 17px; }
.contador { text-align: center; font-size: 12px; color: var(--suave); margin: -12px 0 14px; }
.opcao {
  display: grid; grid-template-columns: 30px 1fr; gap: 0 14px; align-items: center;
  background: var(--cinza); border-radius: 10px; padding: 16px 18px; margin-top: 12px;
  border: 2px solid transparent; cursor: pointer;
}
.opcao.sel { border-color: var(--primaria); background: #eeedff; }
.opcao.bloq { opacity: .55; cursor: not-allowed; }
.opcao .check { width: 26px; height: 26px; border: 2px solid #8a8d99; border-radius: 4px; background: #fff; display: flex; align-items: center; justify-content: center; }
.opcao.sel .check { background: var(--primaria); border-color: var(--primaria); }
.opcao.sel .check::after { content: ''; width: 7px; height: 13px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-1px,-2px); }
.opcao-corpo { grid-column: 2; }
.etiqueta { display: inline-block; color: #fff; font-size: 15px; padding: 4px 12px; border-radius: 4px; margin-bottom: 8px; }
.etiqueta.integral { background: var(--primaria); }
.etiqueta.metade { background: var(--laranja); }
.valor { font-size: 24px; font-weight: 700; color: #23263a; }
.valor small { font-size: 17px; font-weight: 500; color: #555; }
.taxa { font-size: 15px; margin: 6px 0; color: #333; }
.expl { font-size: 16px; line-height: 1.35; color: #333; }
.fora { font-size: 13px; color: #c62828; font-weight: 600; margin-top: 6px; }
.btn-continuar { margin-top: 20px; }

.resumo { background: #fff; border-radius: 12px; padding: 16px 18px; margin-left: 44px; font-size: 15px; line-height: 1.6; }
.resumo b { color: #2e3247; }

.aviso-priv { font-size: 14px; color: #b6b9cb; margin: 20px 0 0 44px; }
.aviso-priv a { color: #b6b9cb; }

@media (max-width: 420px) {
  .palco { padding: 12px 12px 30px; }
  .balao { font-size: 16px; }
  .cab-centro strong { font-size: 22px; }
  .seta { width: 48px; height: 48px; }
  .btn-primario, .caixa-texto, .carrossel, .resumo, .aviso-priv { margin-left: 44px; }
  .cartao-plano { margin-left: -4px; }
}

/* ── cadastro do cliente ── */
.palco.largo { max-width: 920px; }
.caixa-cadastro { margin-left: 44px; scroll-margin-top: 80px; }
.cd-form { background: #fff; border-radius: 14px; padding: 22px 22px 18px; color: var(--texto); }
.cd-topo h2 { margin: 0 0 6px; font-size: 20px; font-weight: 800; color: #2e3247; text-transform: uppercase; letter-spacing: .3px; }
.cd-topo p { margin: 0 0 18px; font-size: 14px; color: #555; line-height: 1.45; }
.cd-bloco { border: 1px solid #e6e7ef; border-radius: 12px; padding: 14px 16px 6px; margin: 0 0 14px; }
.cd-bloco legend { padding: 0 6px; font-size: 13px; font-weight: 700; color: var(--primaria); text-transform: uppercase; letter-spacing: .5px; }
.cd-grade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; }
.cd-inteiro { grid-column: 1 / -1; }
.cd-duplo { grid-column: span 2; }
.cd-campo { display: flex; flex-direction: column; margin-bottom: 12px; min-width: 0; }
.cd-campo label { font-size: 13px; font-weight: 600; color: #3a3d52; margin-bottom: 5px; }
.cd-campo input, .cd-campo select {
  font: 400 16px 'Montserrat', sans-serif; color: var(--texto); background: #fafbff;
  border: 1.5px solid var(--borda); border-radius: 9px; padding: 11px 12px; width: 100%; min-width: 0;
}
.cd-campo input:focus, .cd-campo select:focus { outline: 0; border-color: var(--primaria); background: #fff; box-shadow: 0 0 0 3px rgba(91,79,245,.12); }
.cd-campo.com-erro input, .cd-campo.com-erro select, .cd-campo.com-erro .cd-zona { border-color: #d93025; background: #fff8f7; }
.cd-erro { font-size: 12.5px; color: #c62828; margin-top: 4px; }
.cd-dica { font-size: 12.5px; color: var(--suave); margin-top: 4px; min-height: 0; }
.cd-dica.ok { color: #2e7d32; }
.cd-dica.aviso { color: #b45309; }
.cd-sugestao { font-size: 13px; background: #fff8e6; border: 1px solid #f5d98b; color: #6b4e00; border-radius: 9px; padding: 9px 12px; margin: 0 0 12px; }
.cd-link { background: none; border: 0; color: var(--primaria); font: 600 13px 'Montserrat', sans-serif; cursor: pointer; padding: 0 4px; text-decoration: underline; }
.cd-link.perigo { color: #c62828; }
.cd-zona { border: 2px dashed #b9b4f7; border-radius: 12px; background: #f6f5ff; padding: 20px 16px; text-align: center; cursor: pointer; transition: background .15s, border-color .15s; }
.cd-zona:hover, .cd-zona:focus-visible, .cd-zona.arrastando { background: #ecebff; border-color: var(--primaria); outline: 0; }
.cd-zona.cheia { border-style: solid; text-align: left; cursor: default; background: #f3fbf4; border-color: #9fd3a5; }
.cd-zona-vazia strong { color: var(--primaria); font-size: 15px; }
.cd-zona-vazia span { font-size: 14px; color: #555; }
.cd-zona-vazia small { display: block; margin-top: 6px; font-size: 12.5px; color: var(--suave); }
.cd-zona-arquivo { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.cd-arq-nome { font-weight: 600; font-size: 14px; word-break: break-all; }
.cd-arq-status { font-size: 13px; color: var(--suave); }
.cd-arq-status.ok { color: #2e7d32; }
.cd-arq-barra { flex-basis: 100%; height: 6px; background: #e3e2f5; border-radius: 3px; overflow: hidden; }
.cd-arq-barra i { display: block; height: 100%; width: 0; background: var(--primaria); transition: width .2s; }
.cd-arq-acoes { margin-left: auto; }
.cd-aviso { border-radius: 9px; padding: 10px 14px; font-size: 14px; margin: 4px 0 12px; }
.cd-aviso.ok { background: #e8f5e9; color: #1b5e20; }
.cd-aviso.erro { background: #fdecea; color: #b71c1c; }
.cd-aviso.info { background: #eef2ff; color: #3730a3; }
.cd-botoes { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cd-btn { border: 0; border-radius: 10px; padding: 13px 20px; font: 700 14px 'Montserrat', sans-serif; text-transform: uppercase; cursor: pointer; }
.cd-btn.pri { background: var(--primaria); color: #fff; }
.cd-btn.pri:disabled { opacity: .6; cursor: default; }
.cd-btn.sec { background: #eef0f6; color: #3a3d52; }
.cd-btn.ok { background: #16a34a; color: #fff; }
.cd-botoes [data-acao="voltar"] { margin-right: auto; }

@media (max-width: 720px) {
  .cd-grade { grid-template-columns: 1fr; }
  .cd-duplo, .cd-inteiro { grid-column: auto; }
  .caixa-cadastro { margin-left: 0; }
  .cd-form { padding: 18px 14px 14px; }
  .cd-btn { flex: 1 1 100%; }
  .cd-botoes [data-acao="voltar"] { margin-right: 0; order: 3; }
}

[hidden] { display: none !important; }

/* ── assistente: avatar e cartao de saudacao com a imagem dela ── */
.grupo-bot { padding-left: 50px; }
.grupo-bot .avatar { width: 40px; height: 40px; background: #fff; overflow: hidden; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.grupo-bot .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.btn-primario, .caixa-texto, .carrossel, .resumo, .aviso-priv { margin-left: 50px; }
.btn-primario { width: calc(100% - 50px); }
.balao.saudacao {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 18px 14px 10px;
  background: linear-gradient(135deg, #1f2a6b 0%, #2c3a8c 55%, #3b4cb0 100%); color: #fff;
  border: 2px solid #d9b450; box-shadow: 0 10px 28px rgba(0,0,0,.28); overflow: hidden; position: relative;
}
.balao.saudacao::after { content: ''; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(255,215,120,.35), transparent 70%); }
.saud-img { width: 40%; max-width: 200px; max-height: 280px; object-fit: cover; border-radius: 12px; background: #1f2a6b; flex-shrink: 0; animation: acena 2.4s ease-in-out 1s 2; transform-origin: 50% 90%; }
.saud-txt h1 { margin: 6px 0 8px; font-size: 22px; line-height: 1.2; font-weight: 800; color: #fff; }
.saud-txt p { margin: 0; font-size: 15.5px; line-height: 1.45; color: #e9ecff; }
.saud-txt p b { color: #ffd77a; }
.saud-selo { display: inline-block; background: #d9b450; color: #1f2a6b; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; padding: 4px 10px; border-radius: 20px; }
@keyframes acena { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-3deg); } 75% { transform: rotate(3deg); } }
@media (max-width: 420px) {
  /* celular: a Santy no topo do cartao, larga, como na arte da campanha */
  .balao.saudacao { flex-direction: column; align-items: stretch; gap: 10px; padding: 0 0 14px; }
  .saud-img { width: 100%; max-width: none; height: 210px; max-height: none; object-fit: cover; object-position: 50% 18%;
              border-radius: 0; animation: none; }
  .saud-txt { padding: 0 14px; }
  .saud-txt h1 { font-size: 20px; margin: 6px 0 6px; }
  .saud-txt p { font-size: 14.5px; line-height: 1.42; }
  .saud-selo { font-size: 10.5px; padding: 3px 9px; }
}
@media (prefers-reduced-motion: reduce) { .saud-img { animation: none; } }
