/* ============================================================
   Hero — mockup animado do produto (agente de IA agendando).
   Substitui o print estático. Namespaced com .hm- para não
   colidir com o CSS do site. Pode ser removido sem efeitos.
   O "quadro" (janela de vidro girada) continua vindo do site
   (.glass-window / .hero-window em site.css).
   ============================================================ */

.hm-chat {
  padding: 16px;
  min-height: 410px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  background:
    radial-gradient(120% 80% at 80% 0, #fff6f2 0, transparent 55%),
    #fbfcfe;
}

.hm-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.hm-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd9cc, var(--coral-light));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-family: var(--font-display);
}
.hm-who { font-weight: 700; font-size: 0.9rem; color: var(--ink); }
.hm-st { font-size: 0.72rem; color: #25d366; font-weight: 700; display: flex; align-items: center; gap: 5px; }
.hm-st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #25d366; }
.hm-tag {
  margin-left: auto;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--coral-action); background: var(--soft);
  padding: 0.3rem 0.6rem; border-radius: var(--radius-pill);
}

.hm-stream { display: flex; flex-direction: column; gap: 9px; flex: 1; padding-top: 12px; }

.hm-row {
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.hm-row.is-in { opacity: 1; transform: none; }
.hm-row.hm-me { align-items: flex-end; }
.hm-row.hm-them { align-items: flex-start; }

.hm-bubble {
  max-width: 82%;
  padding: 0.62rem 0.8rem;
  border-radius: 14px;
  font-size: 0.86rem;
  line-height: 1.4;
  box-shadow: var(--shadow-card);
}
.hm-them .hm-bubble { background: #fff; color: var(--ink); border-bottom-left-radius: 4px; }
.hm-me .hm-bubble { background: #dcf8c6; color: #0f2e1a; border-bottom-right-radius: 4px; }
.hm-time { display: block; font-size: 0.62rem; opacity: 0.5; margin-top: 3px; text-align: right; }

.hm-ia-label {
  font-size: 0.64rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--coral-action); margin-bottom: 3px;
  display: flex; align-items: center; gap: 4px;
}

.hm-action {
  align-self: flex-start;
  display: flex; align-items: center; gap: 7px;
  background: #eef3ff; border: 1px dashed #b9ccf5; border-radius: 12px;
  padding: 0.5rem 0.7rem; font-size: 0.78rem; color: var(--void);
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.4s, transform 0.4s;
}
.hm-action.is-in { opacity: 1; transform: none; }
.hm-action .hm-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--coral); animation: hm-blink 1s infinite; }
@keyframes hm-blink { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

.hm-crm {
  margin-top: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 0.7rem 0.8rem; display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-card);
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.hm-crm.is-in { opacity: 1; transform: none; }
.hm-crm .hm-ic { width: 34px; height: 34px; border-radius: 9px; background: var(--soft); display: grid; place-items: center; font-size: 1rem; }
.hm-lbl { font-size: 0.68rem; color: var(--body); }
.hm-val { font-family: var(--font-display); font-size: 1rem; line-height: 1.15; color: var(--ink); }
.hm-badge { margin-left: auto; background: #e7f7ed; color: #1a8f4c; font-weight: 700; font-size: 0.7rem; padding: 0.3rem 0.55rem; border-radius: var(--radius-pill); white-space: nowrap; }

.hm-replay {
  position: absolute; right: 12px; bottom: 10px;
  font-family: var(--font-body); font-size: 0.68rem; color: var(--body);
  background: rgba(255, 255, 255, 0.85); border: 1px solid var(--line);
  border-radius: var(--radius-pill); padding: 0.25rem 0.6rem; cursor: pointer; opacity: 0.7;
}
.hm-replay:hover { opacity: 1; }

/* janela reta e parada (sobrescreve o giro -1.4deg do site) */
.hero-window.has-mock,
.hero-window.has-mock:hover {
  transform: none;
}

/* quem prefere menos movimento vê o desfecho, sem transições */
@media (prefers-reduced-motion: reduce) {
  .hm-row, .hm-crm, .hm-action { opacity: 1; transform: none; }
  .hm-action { display: none; }
}
