/* =========================================================
   Demonstracoes interativas (chat IA, painel, vitrine de site,
   depoimentos). Usa as mesmas variaveis do style.css.
   ========================================================= */

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

/* ---------- Servicos: botao de acao no lugar do "valor sob consulta" ---------- */
.servico-acao {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: .74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; white-space: nowrap;
  color: var(--ink); border: 1px solid var(--risco); padding: 8px 12px;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.servico-acao span { transition: transform .2s ease; }
.servico-acao:hover { background: var(--laranja); color: var(--preto); border-color: var(--laranja); }
.servico-acao:hover span { transform: translateY(2px); }
.lista-servicos li:hover .servico-acao { border-color: var(--laranja); }
@media (min-width: 1081px) {
  .lista-servicos li { grid-template-columns: 180px minmax(220px, .9fr) 1.4fr 172px; }
  .lista-servicos .servico-acao { justify-self: end; }
}
@media (max-width: 1080px) {
  .lista-servicos .servico-acao { grid-column: 2; grid-row: 2; }
}
@media (max-width: 860px) {
  .lista-servicos .servico-acao { grid-column: 1 / -1; grid-row: auto; justify-self: start; margin-top: 8px; }
}

/* ---------- Selo "ao vivo" ---------- */
.automacao-selo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  background: var(--preto); color: var(--ink); padding: 7px 12px;
}
.ponto-vivo { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: vivo 1.8s ease-out infinite; }
@keyframes vivo { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); } 100% { box-shadow: 0 0 0 10px rgba(61, 220, 132, 0); } }

/* ---------- Automacao: texto + celular ---------- */
.automacao-corpo {
  margin-left: auto;
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(300px, 380px);
  gap: 40px;
  align-items: center;
}
.automacao .produto-corpo { max-width: none; margin-left: 0; gap: 26px; }

/* ---------- Chat (estilo WhatsApp, modo escuro) ---------- */
/* moldura de celular moderno: metal fino, tela de ponta a ponta e ilha da camera */
.celular {
  position: relative;
  border-radius: 54px;
  padding: 11px;
  background: linear-gradient(145deg, #3a3b40, #1a1a1d 30%, #0c0c0e 55%, #2c2d31 100%);
  box-shadow:
    0 0 0 1.5px #8d8f97,
    0 0 0 3px #1c1c1f,
    inset 0 0 0 1px rgba(255, 255, 255, .12),
    0 50px 80px -34px rgba(11, 11, 13, .7),
    0 20px 40px -24px rgba(11, 11, 13, .5);
}
.cel-botao { position: absolute; width: 4px; border-radius: 2px; background: linear-gradient(90deg, #6b6d74, #a7a9b0 50%, #5d5f66); }
.cel-acao { left: -6px; top: 112px; height: 30px; }
.cel-vol1 { left: -6px; top: 160px; height: 56px; }
.cel-vol2 { left: -6px; top: 228px; height: 56px; }
.cel-power { right: -6px; top: 182px; height: 86px; }
.chat {
  --wa-fundo: #0b141a; --wa-topo: #202c33; --wa-entrada: #202c33; --wa-in: #202c33; --wa-out: #005c4b;
  position: relative;
  display: flex; flex-direction: column;
  height: 600px; max-height: 80vh;
  background: var(--wa-fundo);
  color: #e9edef;
  border-radius: 44px;
  overflow: hidden;
  font-size: .92rem;
  line-height: 1.4;
}
.cel-status { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 12px 26px 6px; background: var(--wa-topo); color: #fff; font-size: .82rem; font-weight: 700; }
.cel-hora { letter-spacing: .01em; }
.cel-ilha { width: 104px; height: 30px; border-radius: 20px; background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04); position: relative; }
.cel-ilha::after { content: ""; position: absolute; right: 12px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #3a4a7a, #0b0e1a 60%); }
.cel-icones { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.cel-icones svg { height: 11px; width: auto; fill: #fff; }
.cel-bateria { width: 24px; height: 12px; border: 1.5px solid rgba(255, 255, 255, .55); border-radius: 4px; padding: 1.5px; position: relative; }
.cel-bateria::after { content: ""; position: absolute; right: -4px; top: 3px; width: 2px; height: 4px; border-radius: 0 1px 1px 0; background: rgba(255, 255, 255, .55); }
.cel-bateria i { display: block; height: 100%; width: 80%; border-radius: 1.5px; background: #fff; }
.cel-home { display: block; width: 120px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .55); margin: 0 auto 8px; flex: none; }
.chat-topo { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--wa-topo); }
.chat-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--laranja); color: var(--preto); display: flex; align-items: center; justify-content: center; flex: none; }
.chat-quem { display: flex; flex-direction: column; line-height: 1.2; }
.chat-quem strong { font-size: .95rem; font-weight: 700; }
.chat-status { font-size: .76rem; color: #8696a0; }
.chat-status.digitando { color: #3ddc84; }
.chat-msgs {
  flex: 1; overflow-y: auto; padding: 14px 12px 6px;
  display: flex; flex-direction: column; gap: 6px;
  background-color: var(--wa-fundo);
  background-image: radial-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 18px 18px;
  scroll-behavior: smooth;
}
.msg {
  max-width: 84%; padding: 7px 10px 6px; border-radius: 9px; position: relative;
  word-wrap: break-word; animation: msgEntra .55s cubic-bezier(.16, 1, .3, 1) both; transform-origin: left bottom;
}
.msg p { margin: 0; }
.msg p + p { margin-top: 6px; }
.msg-ia { align-self: flex-start; background: var(--wa-in); border-top-left-radius: 2px; }
.msg-eu { align-self: flex-end; background: var(--wa-out); border-top-right-radius: 2px; }
.msg-hora { display: block; text-align: right; font-size: .66rem; color: rgba(233, 237, 239, .55); margin-top: 2px; }
.msg-eu .msg-hora::after { content: ' ✓✓'; color: #53bdeb; }
.msg-acao {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 8px;
  background: #25d366; color: #0b141a; font-weight: 800; font-size: .8rem;
  padding: 9px 12px; border-radius: 8px;
}
.msg-acao:hover { background: #3ee07b; }
@keyframes msgEntra { from { opacity: 0; transform: translateY(14px) scale(.94); } 60% { opacity: 1; } to { opacity: 1; transform: none; } }
.msg-eu { transform-origin: right bottom; }
.msg.saindo { animation: msgSai .26s ease forwards; }
@keyframes msgSai { to { opacity: 0; transform: scale(.9); } }
.msg-eu.nao-lida .msg-hora::after { color: #8696a0; }
.msg-eu .msg-hora::after { transition: color .4s ease; }
.digitando-bolhas { display: inline-flex; gap: 4px; padding: 4px 2px; }
.digitando-bolhas i { width: 7px; height: 7px; border-radius: 50%; background: #8696a0; animation: pula 1.1s infinite ease-in-out; }
.digitando-bolhas i:nth-child(2) { animation-delay: .15s; }
.digitando-bolhas i:nth-child(3) { animation-delay: .3s; }
@keyframes pula { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

.chat-sugestoes { display: flex; gap: 6px; padding: 8px 10px 4px; overflow-x: auto; scrollbar-width: none; background: var(--wa-fundo); }
.chat-sugestoes::-webkit-scrollbar { display: none; }
.chat-sugestoes button {
  flex: none; font: inherit; font-size: .8rem; font-weight: 600;
  color: #e9edef; background: transparent;
  border: 1px solid rgba(233, 237, 239, .25); border-radius: 999px;
  padding: 8px 12px; min-height: 36px; cursor: pointer; white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease;
}
.chat-sugestoes button:hover { background: rgba(255, 122, 51, .16); border-color: var(--laranja); }
.chat-sugestoes button:disabled { opacity: .45; cursor: default; }
/* Convite pra interagir: aparece depois da saudacao e some no primeiro toque */
.chat-dica {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin: 0; padding: 0 10px; max-height: 0; overflow: hidden; opacity: 0;
  font-size: .74rem; font-weight: 500; color: #aebac1; background: var(--wa-fundo);
  transition: max-height .35s ease, opacity .35s ease, padding .35s ease;
}
.chat-dica svg { width: 15px; height: 15px; flex: none; color: var(--laranja); }
.chat.convidando .chat-dica { max-height: 40px; opacity: 1; padding-top: 10px; }
.chat.convidando .chat-dica svg { animation: dicaToque 1.8s ease-in-out infinite; }
@keyframes dicaToque { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(-3px); } 60% { transform: translateY(1px) scale(.94); } }
.chat.convidando .chat-sugestoes button:not(:disabled) { border-color: rgba(255, 122, 51, .55); }
.chat.convidando .chat-sugestoes button:not(:disabled):first-child { animation: chipConvite 2.2s ease-in-out infinite; }
@keyframes chipConvite { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 122, 51, 0); } 50% { box-shadow: 0 0 0 4px rgba(255, 122, 51, .22); background: rgba(255, 122, 51, .12); } }
.chat-entrada { display: flex; gap: 8px; padding: 8px 10px 10px; background: var(--wa-fundo); }
.chat-entrada input {
  flex: 1; min-width: 0; font: inherit; font-size: 16px; color: #e9edef;
  background: var(--wa-entrada); border: 0; border-radius: 999px; padding: 11px 16px;
}
.chat-entrada input::placeholder { color: #8696a0; }
.chat-entrada input:focus { outline: 2px solid var(--laranja); outline-offset: 0; }
.chat-entrada button {
  width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%;
  background: #00a884; color: #0b141a; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.chat-entrada button:hover { background: #06cf9c; }
.chat-nota { font-size: .72rem; color: #8696a0; text-align: center; padding: 0 12px 10px; background: var(--wa-fundo); }

/* ---------- Sistema: painel ---------- */
.sistema { display: flex; flex-direction: column; gap: 40px; }
.sistema-intro { max-width: 560px; display: flex; flex-direction: column; gap: 14px; }
.sistema-dica { font-family: var(--f-mono); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--laranja); }
.painel {
  background: #101013;
  border: 1px solid rgba(241, 241, 239, .1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8);
}
.painel-barra { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: #17171b; border-bottom: 1px solid rgba(241, 241, 239, .08); font-size: .75rem; }
.painel-bolinhas { display: inline-flex; gap: 6px; flex: none; }
.painel-bolinhas i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a42; }
.painel-url { font-family: var(--f-mono); color: var(--ink-mudo); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.painel-exemplo { margin-left: auto; font-family: var(--f-mono); font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mudo); border: 1px solid rgba(241, 241, 239, .14); padding: 3px 8px; white-space: nowrap; }
.painel-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid rgba(241, 241, 239, .08); }
.painel-kpis > div { padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; border-right: 1px solid rgba(241, 241, 239, .08); }
.painel-kpis > div:last-child { border-right: 0; }
.kpi-num { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.4rem, 2.4vw, 2.1rem); line-height: 1.1; font-variant-numeric: tabular-nums; transition: color .3s ease; }
.kpi-num.mudou { color: var(--laranja); }
.kpi-rot { font-size: .78rem; color: var(--ink-mudo); }
.kpi-imposto { margin-top: 4px; font-size: .72rem; color: var(--ink-mudo); opacity: .85; font-variant-numeric: tabular-nums; transition: color .3s ease; }
.kpi-imposto.mudou { color: var(--laranja); }
.lead-av { grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .8rem; color: var(--preto); }
.painel-aviso {
  position: absolute; right: 16px; bottom: 16px;
  display: flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--preto); font-weight: 700; font-size: .84rem;
  padding: 10px 14px; border-radius: 8px; box-shadow: 0 14px 30px rgba(0, 0, 0, .4);
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.painel { position: relative; }
.painel-aviso.ativo { opacity: 1; transform: none; }
.painel-aviso::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--laranja); flex: none; }

/* ---------- Projeto em destaque (site navegavel) ---------- */
.destaque-sec { display: flex; flex-direction: column; gap: 48px; }
.vitrine-site { display: flex; flex-direction: column; gap: 20px; }
.vs-topo { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.vs-segmento { font-family: var(--f-mono); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--laranja-escuro); }
.vs-nome { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.3rem, 2.4vw, 2rem); letter-spacing: -.02em; line-height: 1.1; }
.vs-controles { display: inline-flex; background: #e2e2de; padding: 4px; border-radius: 999px; }
.vs-modo { font: inherit; font-size: .8rem; font-weight: 700; color: var(--preto); background: transparent; border: 0; border-radius: 999px; padding: 10px 18px; min-height: 40px; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.vs-modo.ativo { background: var(--preto); color: var(--ink); }
.vs-palco { display: flex; justify-content: center; }
.vs-aparelho {
  width: 100%; max-width: 1180px;
  background: var(--preto); border-radius: 12px; padding: 0 0 8px;
  box-shadow: 0 50px 90px -40px rgba(11, 11, 13, .55);
  overflow: hidden;
  transition: max-width .55s cubic-bezier(.2, .7, .2, 1), border-radius .55s ease, padding .55s ease;
}
.vs-aparelho.mob { max-width: 390px; border-radius: 36px; padding: 0 10px 10px; }
.vs-barra { display: flex; align-items: center; gap: 14px; padding: 10px 14px; color: var(--ink-mudo); font-size: .75rem; }
.vs-url { font-family: var(--f-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs-tela { position: relative; height: min(70vh, 640px); background: #fff; border-radius: 4px; overflow: hidden; transition: height .55s ease; }
.vs-aparelho.mob .vs-tela { height: min(72vh, 700px); border-radius: 22px; }
.vs-tela iframe { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.vs-vazio {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 32px;
  background: repeating-linear-gradient(135deg, #f4f4f1 0 16px, #ecece8 16px 32px);
  color: #56575d; font-weight: 600;
}
.vs-vazio p { max-width: 360px; }
.vs-nota { text-align: center; font-size: .86rem; color: var(--mudo); }

/* ---------- Depoimentos ---------- */
.depoimentos { display: flex; flex-direction: column; gap: 32px; }
.depo-intro { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; font-size: clamp(.95rem, 1.35vw, 1.2rem); letter-spacing: -.01em; color: var(--ink-mudo); }
.grade-depo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 22px; align-items: start; max-width: 1100px; }
.depo { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.depo-print {
  position: relative; overflow: hidden;
  background: #0b141a; border: 1px solid rgba(241, 241, 239, .1); border-radius: 18px;
  padding: 32px 12px 14px; display: flex; justify-content: flex-start;
  box-shadow: 0 24px 48px -26px rgba(0, 0, 0, .8);
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), border-color .3s;
}
.depo-print img { display: block; max-width: 100%; height: auto; border-radius: 6px; }
.depo-print::after {
  content: 'WhatsApp'; position: absolute; right: 12px; top: 10px;
  font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #25d366; opacity: .8;
}
.depo:hover .depo-print { transform: translateY(-4px) rotate(-.5deg); border-color: rgba(37, 211, 102, .35); }
.depo figcaption { display: flex; flex-direction: column; padding-left: 4px; }
.depo figcaption strong { font-family: var(--f-display); font-size: .9rem; text-transform: uppercase; letter-spacing: -.01em; }
.depo figcaption span { font-size: .84rem; color: var(--ink-mudo); }

/* ---------- Responsivo ---------- */
@media (max-width: 1200px) {
  .automacao-corpo { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
  .chat { height: 560px; }
  .celular { max-width: 380px; width: 100%; justify-self: center; }
}
@media (max-width: 860px) {
  .automacao-corpo { margin-left: 0; max-width: none; gap: 32px; }
  .automacao .produto-corpo { gap: 22px; }
  .chat { height: 72vh; min-height: 480px; max-height: 620px; border-radius: 38px; }
  .celular { border-radius: 46px; padding: 9px; }
  .cel-status { padding: 10px 22px 6px; }
  .cel-ilha { width: 92px; height: 27px; }
  .sistema, .destaque-sec, .depoimentos { gap: 0; }
  .sistema-intro, .depo-intro { margin-bottom: 24px; }
  .painel-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .painel-kpis > div:nth-child(2) { border-right: 0; }
  .painel-kpis > div:nth-child(-n+2) { border-bottom: 1px solid rgba(241, 241, 239, .08); }
  .painel-exemplo { display: none; }
  .vs-topo { margin-bottom: 4px; }
  .vs-controles { width: 100%; }
  .vs-modo { flex: 1; }
  .vs-aparelho.mob { max-width: 100%; }
  .vs-tela { height: 64vh; }
  .vs-aparelho.mob .vs-tela { height: 68vh; }
}

/* =========================================================
   Rodada 2: CRM do atendimento (ao lado do chat),
   CRM de vendas (sistema) e orcamento no WhatsApp
   ========================================================= */

/* ---------- Automacao: texto + chat + CRM ---------- */
.automacao-corpo { grid-template-columns: minmax(0, 270px) minmax(300px, 360px) minmax(280px, 330px); gap: 28px; align-items: stretch; }
.automacao .produto-corpo { align-self: center; }
.msg-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: #ffb185; font-weight: 800; font-size: .84rem; text-decoration: underline; text-underline-offset: 3px;
}
.msg-link:hover { color: var(--laranja); }
.msg p + .msg-link { margin-top: 8px; }

/* ---------- Por que ter um atendente com IA ---------- */
.porque {
  align-self: center; display: flex; flex-direction: column; gap: 18px;
  background: var(--preto); color: var(--ink); border-radius: 18px; padding: 26px 24px;
  box-shadow: 0 30px 60px -36px rgba(11, 11, 13, .6);
}
.porque-titulo { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.15; letter-spacing: -.01em; }
.porque-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; counter-reset: pq; }
.porque-lista li { position: relative; padding-left: 42px; font-size: .9rem; line-height: 1.45; color: #c9cad0; counter-increment: pq; }
.porque-lista li::before {
  content: counter(pq, decimal-leading-zero); position: absolute; left: 0; top: 1px;
  font-family: var(--f-mono); font-size: .72rem; font-weight: 700; color: var(--preto);
  background: var(--laranja); border-radius: 6px; padding: 3px 6px;
}
.porque-lista strong { display: block; color: var(--ink); font-size: .96rem; margin-bottom: 2px; }
.porque-rodape { font-size: .8rem; color: var(--ink-mudo); border-top: 1px solid rgba(241, 241, 239, .12); padding-top: 14px; }

.crm-rot { font-family: var(--f-mono); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mudo); margin-bottom: 4px; }

/* ---------- CRM de vendas ---------- */
.crm-corpo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); min-height: 420px; }
.crm-esq { border-right: 1px solid rgba(241, 241, 239, .08); display: flex; flex-direction: column; min-width: 0; }
.crm-filtros { display: flex; gap: 6px; padding: 12px; border-bottom: 1px solid rgba(241, 241, 239, .08); overflow-x: auto; scrollbar-width: none; }
.crm-filtros::-webkit-scrollbar { display: none; }
.crm-filtros button {
  flex: none; font: inherit; font-size: .76rem; font-weight: 700; color: var(--ink-mudo);
  background: transparent; border: 1px solid rgba(241, 241, 239, .14); border-radius: 999px;
  padding: 7px 12px; min-height: 36px; cursor: pointer; transition: all .2s ease;
}
.crm-filtros button span { margin-left: 4px; opacity: .7; font-variant-numeric: tabular-nums; }
.crm-filtros button:hover { color: var(--ink); border-color: rgba(241, 241, 239, .35); }
.crm-filtros button.ativo { background: var(--ink); color: var(--preto); border-color: var(--ink); }
.crm-lista { display: flex; flex-direction: column; padding: 8px; gap: 4px; overflow-y: auto; max-height: 440px; }
.crm-vazio { padding: 24px; text-align: center; color: var(--ink-mudo); font-size: .86rem; }
.crm-linha {
  position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  width: 100%; text-align: left; font: inherit; color: var(--ink);
  background: transparent; border: 1px solid transparent; border-radius: 8px; padding: 10px; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}
.crm-linha .lead-av { grid-row: auto; }
.crm-linha:hover { background: #1a1a1f; }
.crm-linha.ativo { background: #1f1f24; border-color: rgba(255, 122, 51, .55); }
.crm-linha.chegou { animation: chegou 1.6s ease; }
@keyframes chegou { 0% { background: rgba(255, 122, 51, .35); transform: translateX(-8px); } 30% { transform: none; } 100% { background: transparent; } }
.crm-linha-txt { display: flex; flex-direction: column; min-width: 0; }
.crm-linha-txt strong { font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crm-linha-txt span { font-size: .74rem; color: var(--ink-mudo); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crm-linha-dir { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.crm-linha-dir strong { font-size: .84rem; font-variant-numeric: tabular-nums; }
.crm-lembrete { position: absolute; left: 34px; top: 6px; font-size: .7rem; }
.crm-etq { font-size: .66rem; font-weight: 800; padding: 3px 7px; border-radius: 999px; white-space: nowrap; }
.crm-etq.e0 { background: rgba(83, 189, 235, .16); color: #7fd0f2; }
.crm-etq.e1 { background: rgba(245, 196, 81, .16); color: #f5c451; }
.crm-etq.e2 { background: rgba(255, 122, 51, .18); color: #ff9a62; }
.crm-etq.e3 { background: rgba(61, 220, 132, .16); color: #3ddc84; }

.crm-ficha { padding: 20px; display: flex; flex-direction: column; gap: 16px; min-width: 0; animation: msgEntra .3s ease; }
.crm-ficha-topo { display: flex; align-items: center; gap: 12px; }
.lead-av.grande { width: 46px; height: 46px; font-size: 1.05rem; flex: none; }
.crm-ficha-quem { display: flex; flex-direction: column; min-width: 0; }
.crm-ficha-quem strong { font-size: 1.05rem; }
.crm-ficha-quem span { font-size: .78rem; color: var(--ink-mudo); }
.crm-ficha-valor { margin-left: auto; text-align: right; display: flex; flex-direction: column; }
.crm-ficha-valor span { font-size: .68rem; color: var(--ink-mudo); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.crm-ficha-valor strong { white-space: nowrap; font-family: var(--f-display); font-size: clamp(1rem, 1.6vw, 1.35rem); font-variant-numeric: tabular-nums; }
.crm-ficha-valor em { font-style: normal; font-size: .72rem; color: var(--ink-mudo); white-space: nowrap; font-variant-numeric: tabular-nums; }
.crm-passos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; list-style: none; margin: 0; padding: 0; }
.crm-passos li { display: flex; flex-direction: column; gap: 6px; font-size: .68rem; font-weight: 700; color: var(--ink-mudo); }
.crm-passos li span { height: 5px; border-radius: 99px; background: #2a2a31; transition: background-color .4s ease; }
.crm-passos li.feito span { background: #3ddc84; }
.crm-passos li.atual { color: var(--ink); }
.crm-passos li.atual span { background: var(--laranja); }
.crm-acoes { display: flex; flex-wrap: wrap; gap: 8px; }
.crm-btn {
  display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: .84rem; font-weight: 800;
  border: 0; border-radius: 10px; padding: 11px 14px; min-height: 44px; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, opacity .2s ease;
}
.crm-btn:hover { transform: translateY(-1px); }
.crm-btn:disabled { opacity: .6; cursor: default; transform: none; }
.crm-btn.zap { background: #25d366; color: #0b141a; box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); animation: chama 2.4s ease-out infinite; }
.crm-btn.zap:hover { background: #3ee07b; }
.crm-btn.fechar { background: var(--laranja); color: var(--preto); }
.crm-btn.sec { background: #24242a; color: var(--ink); }
@keyframes chama { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .45); } 70%, 100% { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); } }
.crm-ok { font-size: .86rem; color: #3ddc84; font-weight: 700; }
.crm-hist { list-style: none; margin: -6px 0 0; padding: 0 0 0 12px; border-left: 2px solid #2a2a31; display: flex; flex-direction: column; gap: 8px; }
.crm-hist li { font-size: .8rem; color: #c9cad0; position: relative; }
.crm-hist li::before { content: ''; position: absolute; left: -17px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: #3a3a42; }
.crm-hist li:first-child::before { background: var(--laranja); }
.crm-hist time { font-family: var(--f-mono); font-size: .68rem; color: var(--ink-mudo); margin-right: 8px; }
.painel.festa { animation: festa .9s ease; }
@keyframes festa { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); } 100% { box-shadow: 0 0 0 24px rgba(61, 220, 132, 0); } }

/* WhatsApp simulado do orcamento */
.crm-zap {
  position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(11, 11, 13, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .3s ease;
}
.crm-zap[hidden] { display: none; }
.crm-zap.aberto { opacity: 1; }
.crm-zap-cel {
  --wa-fundo: #0b141a; --wa-topo: #202c33; --wa-in: #202c33; --wa-out: #005c4b;
  width: min(340px, 100%); height: min(440px, 100%); display: flex; flex-direction: column;
  background: var(--wa-fundo); color: #e9edef; border: 7px solid #000; border-radius: 26px; overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .8); font-size: .88rem; line-height: 1.4;
  transform: translateY(24px) scale(.96); transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
.crm-zap.aberto .crm-zap-cel { transform: none; }
.crm-zap-av { color: var(--preto); font-weight: 800; }
.crm-zap-fechar { margin-left: auto; width: 36px; height: 36px; border: 0; background: transparent; color: #aebac1; font-size: 1.5rem; cursor: pointer; border-radius: 50%; }
.crm-zap-fechar:hover { background: rgba(255, 255, 255, .08); }
.crm-zap-msgs { flex: 1; }
.msg-eu.sem-ticks .msg-hora::after { content: none; }
.tick { font-style: normal; color: rgba(233, 237, 239, .6); }
.tick.lido { color: #53bdeb; }
.zap-orc { margin: 8px 0; background: rgba(0, 0, 0, .22); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.zap-orc p { display: flex; justify-content: space-between; gap: 12px; font-size: .8rem; }
.zap-orc-tit { font-family: var(--f-mono); font-size: .66rem !important; letter-spacing: .08em; text-transform: uppercase; color: #8fe3c7; }
.zap-orc-total { border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 6px; margin-top: 2px; font-weight: 800; font-size: .9rem !important; }
.zap-orc-obs { color: rgba(233, 237, 239, .7); font-size: .72rem !important; }

/* ---------- Vitrine do MH: pontos fortes ---------- */
.vs-pontos { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; }
.vs-pontos span { font-size: .8rem; font-weight: 700; padding: 7px 12px; border-radius: 999px; background: #e2e2de; color: var(--preto); }
.vs-pontos span::before { content: '✓ '; color: var(--laranja-escuro); }

@media (max-width: 1200px) {
  .automacao-corpo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: 760px; }
  .automacao .produto-corpo { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .automacao-corpo { grid-template-columns: minmax(0, 1fr); max-width: none; }
  .porque { align-self: stretch; }
  .crm-corpo { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .crm-esq { border-right: 0; border-bottom: 1px solid rgba(241, 241, 239, .08); }
  .crm-lista { max-height: 260px; }
  .crm-ficha { padding: 16px; }
  .crm-btn { flex: 1 1 100%; justify-content: center; }
}

/* ---------- Vitrine: escolher o projeto ---------- */
.vs-projetos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.vs-proj {
  font: inherit; font-size: .82rem; font-weight: 700; color: var(--preto);
  background: transparent; border: 1px solid rgba(11, 11, 13, .22); border-radius: 999px;
  padding: 9px 16px; min-height: 40px; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.vs-proj:hover { border-color: var(--laranja-escuro); }
.vs-proj.ativo { background: var(--laranja); border-color: var(--laranja); color: var(--preto); }
.vs-capa { position: absolute; inset: 0; display: block; background: #2b0d12; overflow: hidden; }
.vs-capa img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.vs-capa:hover img { transform: scale(1.03); }
.vs-capa-btn {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--preto); color: var(--ink); font-weight: 800; font-size: .9rem;
  padding: 13px 20px; border-radius: 999px; white-space: nowrap; box-shadow: 0 14px 30px rgba(0, 0, 0, .35);
}
.vs-capa:hover .vs-capa-btn { background: var(--laranja); color: var(--preto); }
.vs-aparelho.mob .vs-capa img { object-fit: contain; object-position: center; }

/* ---------- Chat: cara de IA (pensando, texto sendo escrito) ---------- */
.chat-avatar-ia {
  color: #fff; background: conic-gradient(from 210deg, #ff7a33, #ffb185, #ff4d2e, #ff7a33);
  box-shadow: 0 0 0 2px rgba(255, 122, 51, .25), 0 0 18px rgba(255, 122, 51, .45);
  animation: iaGlow 3s ease-in-out infinite;
}
@keyframes iaGlow { 50% { box-shadow: 0 0 0 2px rgba(255, 122, 51, .4), 0 0 26px rgba(255, 122, 51, .7); } }
.selo-ia {
  display: inline-block; vertical-align: 2px; margin-left: 6px;
  font-family: var(--f-mono); font-size: .64rem; font-weight: 700; letter-spacing: .08em;
  color: var(--laranja); border: 1px solid rgba(255, 122, 51, .5); border-radius: 4px; padding: 1px 5px;
}
.ia-pensa { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; }
.ia-brilho { color: var(--laranja); display: inline-block; animation: iaGira 1.6s linear infinite; }
@keyframes iaGira { to { transform: rotate(360deg); } }
.ia-pensa-txt {
  background: linear-gradient(90deg, #8696a0 0%, #e9edef 45%, #8696a0 90%); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: iaBrilho 1.4s linear infinite;
}
@keyframes iaBrilho { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.ia-pensa .digitando-bolhas { padding: 0; }
.escrevendo::after {
  content: ''; display: inline-block; width: 7px; height: 1em; margin-left: 2px; vertical-align: -2px;
  background: var(--laranja); border-radius: 1px; animation: cursorPisca .8s steps(1) infinite;
}
@keyframes cursorPisca { 50% { opacity: 0; } }

/* Abas do painel + estoque */
.painel-abas { display: flex; gap: 4px; padding: 8px 14px 0; background: #131317; border-bottom: 1px solid rgba(241, 241, 239, .08); }
.painel-abas button { position: relative; font: inherit; font-size: .85rem; font-weight: 600; color: var(--ink-mudo); background: none; border: 0; padding: 10px 16px; border-radius: 8px 8px 0 0; cursor: pointer; transition: color .2s ease, background .2s ease; }
.painel-abas button:hover { color: var(--ink); }
.painel-abas button.ativo { color: var(--ink); background: rgba(255, 255, 255, .05); box-shadow: inset 0 -2px 0 var(--laranja); }
.aba-alerta { display: inline-grid; place-items: center; width: 17px; height: 17px; margin-left: 4px; border-radius: 50%; background: #ff5a4f; color: #fff; font-size: .7rem; font-weight: 800; vertical-align: 1px; animation: alertaPulsa 1.6s ease-in-out infinite; }
@keyframes alertaPulsa { 50% { transform: scale(1.18); } }
.est-lista { display: flex; flex-direction: column; padding: 8px 14px; }
.est-item { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(80px, 1.2fr) 92px 96px 170px; align-items: center; gap: 16px; padding: 12px 6px; border-bottom: 1px solid rgba(241, 241, 239, .06); transition: background .4s ease; }
.est-item:last-child { border-bottom: 0; }
.est-item.mexeu { animation: estMexeu 1.2s ease; }
@keyframes estMexeu { 0% { background: rgba(255, 106, 0, .22); } 100% { background: transparent; } }
.est-nome { display: flex; flex-direction: column; min-width: 0; }
.est-nome strong { font-size: .92rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.est-nome span { font-size: .74rem; color: var(--ink-mudo); }
.est-barra { position: relative; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); }
.est-barra i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; background: #3ddc84; transition: width .8s cubic-bezier(.2, .7, .2, 1), background .3s ease; }
.est-barra b { position: absolute; top: -3px; bottom: -3px; width: 2px; background: rgba(255, 255, 255, .35); }
.st-atencao .est-barra i { background: #f5c451; }
.st-baixo .est-barra i { background: #ff5a4f; }
.st-pedido .est-barra i { background: #53bdeb; }
.est-qtd { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.est-qtd strong { font-family: var(--f-display); font-size: 1.1rem; }
.est-qtd span { font-size: .74rem; color: var(--ink-mudo); }
.est-st { justify-self: start; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(61, 220, 132, .14); color: #3ddc84; white-space: nowrap; }
.st-atencao .est-st { background: rgba(245, 196, 81, .14); color: #f5c451; }
.st-baixo .est-st { background: rgba(255, 90, 79, .16); color: #ff7a70; }
.st-pedido .est-st { background: rgba(83, 189, 235, .16); color: #53bdeb; }
.est-pedir { justify-self: end; white-space: nowrap; }
.est-dica { margin: 0; padding: 12px 20px 16px; font-size: .8rem; color: var(--ink-mudo); border-top: 1px solid rgba(241, 241, 239, .06); }
@media (max-width: 860px) {
  .est-item { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "nome qtd" "barra barra" "st acao"; gap: 8px 12px; }
  .est-nome strong { white-space: normal; }
  .est-pedir { flex: none; }
  .est-nome { grid-area: nome; } .est-qtd { grid-area: qtd; } .est-barra { grid-area: barra; } .est-st { grid-area: st; align-self: center; } .est-pedir, .est-vazio { grid-area: acao; justify-self: end; }
}
