/* AssistPro, site v1. Preto e branco, minimalista. */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --ink: #0a0a0a;
  --ink-2: #4a4a4f;
  --ink-3: #86868b;
  --line: #e4e4e7;
  --inv-bg: #000000;
  --inv-ink: #f5f5f7;
  --inv-ink-2: #a1a1a6;
  --inv-line: #2a2a2d;
  --font-body: "Google Sans Flex", "Google Sans", "Product Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Lexend", "Google Sans Flex", system-ui, sans-serif;
  --maxw: 1120px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
.wrap { width: min(var(--maxw), calc(100% - 48px)); margin-inline: auto; }

/* Marca */
.brand { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: -0.02em; display: inline-flex; align-items: baseline; gap: 0; }
.brand .a { font-weight: 300; }
.brand .b { font-weight: 700; }

/* Navegação */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { height: 56px; display: flex; align-items: center; justify-content: space-between; }
.nav ul { list-style: none; display: flex; gap: 32px; font-size: 0.875rem; color: var(--ink-2); }
.nav ul a { transition: color 0.2s; }
.nav ul a:hover { color: var(--ink); }
.nav .actions { display: flex; align-items: center; gap: 20px; font-size: 0.875rem; }
.nav .actions .login { color: var(--ink-2); }
.nav .actions .login:hover { color: var(--ink); }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 0.95rem/1 var(--font-body);
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform 0.25s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-solid { background: var(--ink); color: #fff; }
.btn-solid:hover { background: #2b2b2b; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-inv { background: #fff; color: #000; }
.btn-inv:hover { background: #e8e8ea; }
.btn-ghost-inv { border-color: #fff; color: #fff; }
.btn-ghost-inv:hover { background: #fff; color: #000; }
.btn-block { width: 100%; }

/* Hero */
.hero { padding: 168px 0 72px; text-align: center; }
.eyebrow { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.hero h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: 1.04; letter-spacing: -0.035em;
  margin: 20px auto 0; max-width: 14ch;
}
.hero .sub { font-size: clamp(1.05rem, 2vw, 1.4rem); color: var(--ink-2); max-width: 36em; margin: 26px auto 0; }
.hero .cta { display: flex; gap: 14px; justify-content: center; margin-top: 38px; flex-wrap: wrap; }
.hero .logo-line { margin-top: 56px; font-size: 0.85rem; color: var(--ink-3); }

/* Demonstração animada */
.demo { margin: 56px auto 0; max-width: 880px; display: grid; grid-template-columns: 1fr 64px 1fr; align-items: center; gap: 0; text-align: left; }
.card { background: var(--bg-soft); border-radius: 22px; padding: 22px; min-height: 250px; }
.card .cap { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; font-weight: 500; }
.bubble { font-size: 0.9rem; padding: 10px 14px; border-radius: 16px; max-width: 88%; margin-bottom: 8px; opacity: 0; transform: translateY(8px); animation: pop 9s infinite; }
.bubble.in { background: #fff; border: 1px solid var(--line); border-top-left-radius: 4px; }
.bubble.out { background: var(--ink); color: #fff; margin-left: auto; border-top-right-radius: 4px; }
.bubble:nth-of-type(1) { animation-delay: 0.3s; }
.bubble:nth-of-type(2) { animation-delay: 1.6s; }
.bubble:nth-of-type(3) { animation-delay: 3.2s; }
.flow { height: 2px; background: var(--line); position: relative; overflow: hidden; border-radius: 2px; }
.flow::after { content: ""; position: absolute; inset: 0 auto 0 -40%; width: 40%; background: var(--ink); animation: run 3s var(--ease) infinite; }
.row { display: flex; justify-content: space-between; gap: 12px; font-size: 0.88rem; padding: 10px 0; border-bottom: 1px solid var(--line); opacity: 0; animation: pop 9s infinite; }
.row:last-child { border-bottom: 0; }
.row span:first-child { color: var(--ink-3); }
.row:nth-of-type(1) { animation-delay: 1.2s; }
.row:nth-of-type(2) { animation-delay: 2.2s; }
.row:nth-of-type(3) { animation-delay: 3.4s; }
.row:nth-of-type(4) { animation-delay: 4.4s; }
@keyframes pop {
  0%, 4% { opacity: 0; transform: translateY(8px); }
  10%, 88% { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; transform: translateY(0); }
}
@keyframes run { to { left: 100%; } }

/* Seções */
section { padding: 120px 0; }
.soft { background: var(--bg-soft); }
.inv { background: var(--inv-bg); color: var(--inv-ink); }
.inv .eyebrow { color: var(--inv-ink-2); }
.head { text-align: center; max-width: 44rem; margin: 0 auto 64px; }
.head h2, .split h2, .final h2 {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em; line-height: 1.08;
  font-size: clamp(2rem, 4.6vw, 3.4rem); margin-top: 14px;
}
.head p { color: var(--ink-2); font-size: 1.15rem; margin-top: 18px; }
.inv .head p { color: var(--inv-ink-2); }

/* Três pilares */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { padding: 34px; border-radius: 24px; background: var(--bg-soft); }
.pillar .n { font-family: var(--font-display); font-size: 2.6rem; font-weight: 600; letter-spacing: -0.03em; }
.pillar h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; margin-top: 10px; }
.pillar p { color: var(--ink-2); margin-top: 8px; font-size: 0.97rem; }

/* Passos */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.step .k { font-family: var(--font-display); font-weight: 300; font-size: 4rem; line-height: 1; color: var(--line); letter-spacing: -0.04em; }
.step h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; margin-top: 16px; }
.step p { color: var(--ink-2); margin-top: 10px; }

/* Recursos */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.feat { background: var(--bg); padding: 34px 30px; transition: background 0.3s; }
.feat:hover { background: var(--bg-soft); }
.feat svg { width: 28px; height: 28px; stroke: var(--ink); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.feat h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; margin-top: 18px; }
.feat p { color: var(--ink-2); font-size: 0.95rem; margin-top: 8px; }

/* Segurança (invertida) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split p.lead { color: var(--inv-ink-2); font-size: 1.15rem; margin-top: 20px; }
.checks { list-style: none; display: grid; gap: 0; }
.checks li { padding: 20px 0; border-bottom: 1px solid var(--inv-line); display: flex; gap: 16px; align-items: flex-start; }
.checks li:first-child { border-top: 1px solid var(--inv-line); }
.checks svg { flex: none; width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.checks b { display: block; font-weight: 500; }
.checks span { color: var(--inv-ink-2); font-size: 0.95rem; }

/* Planos */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 880px; margin: 0 auto; }
.plan { border: 1px solid var(--line); border-radius: 28px; padding: 40px; background: var(--bg); display: flex; flex-direction: column; }
.plan.dark { background: var(--inv-bg); color: var(--inv-ink); border-color: var(--inv-bg); }
.plan .tag { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.plan.dark .tag { color: var(--inv-ink-2); }
.plan h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; margin-top: 10px; letter-spacing: -0.02em; }
.price { font-family: var(--font-display); font-size: 3rem; font-weight: 600; letter-spacing: -0.035em; margin-top: 22px; }
.price small { font-size: 1rem; font-weight: 400; color: var(--ink-3); letter-spacing: 0; }
.plan.dark .price small { color: var(--inv-ink-2); }
.plan ul { list-style: none; margin: 24px 0 32px; display: grid; gap: 12px; font-size: 0.97rem; flex: 1; }
.plan li { padding-left: 26px; position: relative; color: var(--ink-2); }
.plan.dark li { color: var(--inv-ink-2); }
.plan li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 10px; height: 6px; border-left: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(-45deg); }
.note { text-align: center; color: var(--ink-3); font-size: 0.9rem; margin-top: 28px; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 24px 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 300; font-size: 1.6rem; line-height: 1; transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--ink-2); margin-top: 14px; max-width: 60ch; }

/* Chamada final e rodapé */
.final { text-align: center; }
.final h2 { max-width: 16ch; margin-inline: auto; }
.final p { color: var(--inv-ink-2); font-size: 1.15rem; margin: 20px auto 0; max-width: 34em; }
.final .cta { display: flex; gap: 14px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
footer { padding: 36px 0 48px; font-size: 0.85rem; color: var(--ink-3); border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
footer nav { display: flex; gap: 24px; }
footer a:hover { color: var(--ink); }

/* Página de entrada */
.gate { min-height: 100vh; display: grid; place-items: center; padding: 96px 24px 48px; }
.gate .box { width: min(440px, 100%); text-align: center; }
.gate h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 5vw, 2.8rem); letter-spacing: -0.03em; line-height: 1.1; margin-top: 18px; }
.gate p { color: var(--ink-2); margin-top: 14px; }
.gate .stack { display: grid; gap: 12px; margin-top: 36px; }
.gate .or { color: var(--ink-3); font-size: 0.85rem; margin: 6px 0; }
.gate .small { font-size: 0.85rem; color: var(--ink-3); margin-top: 28px; }
.gate .small a { text-decoration: underline; text-underline-offset: 3px; }

/* Revelar ao rolar */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.1s; } .d2 { transition-delay: 0.2s; } .d3 { transition-delay: 0.3s; }

/* Responsivo */
@media (max-width: 880px) {
  section { padding: 84px 0; }
  .nav ul { display: none; }
  .demo { grid-template-columns: 1fr; gap: 14px; }
  .flow { width: 2px; height: 40px; margin-inline: auto; }
  .flow::after { inset: -40% 0 auto 0; width: 100%; height: 40%; animation-name: runv; }
  @keyframes runv { to { top: 100%; } }
  .pillars, .steps, .features, .split, .plans { grid-template-columns: 1fr; }
  .split { gap: 40px; }
  .steps { gap: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bubble, .row, .reveal { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .flow::after { animation: none; }
}

/* ===== V2: comercial ===== */
.hero h1 { max-width: 18ch; font-size: clamp(2.4rem, 6.2vw, 4.8rem); }

/* Tela do Bitrix24 */
.b24 { margin: 64px auto 0; max-width: 940px; border: 1px solid var(--line); border-radius: 18px; background: #fff; overflow: hidden; text-align: left; }
.b24-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: var(--bg-soft); border-bottom: 1px solid var(--line); font-size: 0.75rem; color: var(--ink-3); }
.b24-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d4d4d8; }
.b24-bar span { margin-left: 12px; }
.b24-body { display: grid; grid-template-columns: 150px 1fr; }
.b24-side { background: var(--bg-soft); border-right: 1px solid var(--line); padding: 18px 14px; display: grid; align-content: start; gap: 4px; font-size: 0.82rem; color: var(--ink-2); }
.b24-side b { font-family: var(--font-display); font-size: 0.7rem; letter-spacing: 0.12em; color: var(--ink-3); margin-bottom: 6px; }
.b24-side span { padding: 8px 10px; border-radius: 8px; }
.b24-side span.on { background: var(--ink); color: #fff; }
.b24-main { padding: 22px 24px 26px; }
.b24-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.b24-title small { color: var(--ink-3); font-size: 0.75rem; }
.b24-title h4 { font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; margin-top: 2px; }
.b24-title em { font-style: normal; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; white-space: nowrap; }
.stages { display: flex; gap: 4px; margin: 18px 0 16px; }
.stages span { flex: 1; text-align: center; font-size: 0.72rem; padding: 8px 4px; background: var(--bg-soft); color: var(--ink-3); clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%, 8px 50%); }
.stages span.done { background: #d4d4d8; color: var(--ink); }
.stages span.now { background: var(--ink); color: #fff; animation: pulse 2.6s ease-in-out infinite; }
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); font-size: 0.82rem; color: var(--ink-3); }
.tabs span { padding: 0 0 10px; }
.tabs span.on { color: var(--ink); border-bottom: 2px solid var(--ink); margin-bottom: -1px; }
.thread { padding-top: 16px; display: grid; gap: 8px; }
.msg { font-size: 0.86rem; padding: 9px 13px; border-radius: 14px; max-width: 74%; opacity: 0; transform: translateY(8px); animation: pop 10s infinite; }
.msg small { display: block; font-size: 0.66rem; margin-top: 3px; opacity: 0.6; }
.msg.in { background: var(--bg-soft); border-top-left-radius: 4px; }
.msg.out { background: var(--ink); color: #fff; margin-left: auto; border-top-right-radius: 4px; }
.msg:nth-child(1) { animation-delay: 0.6s; } .msg:nth-child(2) { animation-delay: 2.2s; }
.msg:nth-child(3) { animation-delay: 3.8s; } .msg:nth-child(4) { animation-delay: 5.4s; }
@keyframes pulse { 50% { opacity: 0.72; } }

/* Faixa de confiança */
.strip { padding: 0; border-block: 1px solid var(--line); }
.strip-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 22px 0; font-size: 0.85rem; color: var(--ink-2); }
.strip-in span::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--ink); border-radius: 50%; margin-right: 10px; vertical-align: middle; }

/* Dores */
.pains { display: grid; max-width: 820px; margin: 0 auto; }
.pain { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 34px 0; border-bottom: 1px solid var(--inv-line); }
.pain:first-child { border-top: 1px solid var(--inv-line); }
.pain span { font-family: var(--font-display); font-weight: 300; font-size: 2rem; color: var(--inv-ink-2); }
.pain p { font-size: clamp(1.1rem, 2.2vw, 1.5rem); line-height: 1.45; color: var(--inv-ink-2); }
.pain b { color: #fff; font-weight: 500; }
.turn { text-align: center; margin-top: 64px; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.3rem, 3vw, 2rem); letter-spacing: -0.02em; }

/* Antes e depois */
.vs { max-width: 720px; margin: 0 auto; }
.vs-tabs { display: flex; width: max-content; margin: 0 auto 28px; padding: 5px; background: var(--bg-soft); border-radius: 999px; }
.vs-tabs button { font: 500 0.9rem var(--font-body); padding: 11px 26px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); cursor: pointer; transition: all 0.3s var(--ease); }
.vs-tabs button.on { background: var(--ink); color: #fff; }
.vs-pane { display: none; border: 1px solid var(--line); border-radius: 24px; padding: 14px 34px; }
.vs[data-state="before"] .vs-pane.before, .vs[data-state="after"] .vs-pane.after { display: block; animation: fade 0.5s var(--ease); }
.vs-pane ul { list-style: none; }
.vs-pane li { padding: 20px 0 20px 34px; border-bottom: 1px solid var(--line); position: relative; font-size: 1.05rem; }
.vs-pane li:last-child { border-bottom: 0; }
.vs-pane.before li { color: var(--ink-3); }
.vs-pane.before li::before { content: "×"; position: absolute; left: 4px; top: 16px; font-size: 1.5rem; line-height: 1; }
.vs-pane.after li::before { content: ""; position: absolute; left: 4px; top: 29px; width: 12px; height: 7px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }

/* Kanban do Bitrix24 */
.kanban { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 980px; margin: 0 auto; }
.col { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; min-height: 250px; }
.col h5 { font-family: var(--font-display); font-weight: 500; font-size: 0.82rem; display: flex; justify-content: space-between; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 2px solid var(--ink); }
.col h5 em { font-style: normal; color: var(--ink-3); }
.kc { background: var(--bg-soft); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; font-size: 0.82rem; }
.kc b { display: block; font-weight: 500; }
.kc span { color: var(--ink-3); }
.kc.win { background: var(--ink); color: #fff; }
.kc.win span { color: #a1a1a6; }
.kc.mv { background: #fff; border: 1.5px solid var(--ink); animation: bump 6s var(--ease) infinite; }
@keyframes bump { 0%, 20% { transform: translateY(0); } 30%, 80% { transform: translateY(-4px); } 100% { transform: translateY(0); } }

/* Para quem */
.who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.who-card { background: #fff; border-radius: 24px; padding: 36px 32px; }
.who-card small { color: var(--ink-3); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; }
.who-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.02em; margin-top: 12px; }
.who-card p { color: var(--ink-2); margin-top: 14px; font-size: 0.97rem; }

/* Plano único */
.plans.one { grid-template-columns: 1.15fr 1fr; align-items: stretch; max-width: 920px; }
.ent { border: 1px solid var(--line); border-radius: 28px; padding: 40px; display: flex; flex-direction: column; align-items: flex-start; }
.ent .tag { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.ent h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; margin-top: 10px; letter-spacing: -0.02em; }
.ent p:not(.tag) { color: var(--ink-2); margin: 16px 0 28px; flex: 1; }

/* CTA fixo no celular */
.sticky-cta { display: none; }
@media (max-width: 880px) {
  .b24-body { grid-template-columns: 1fr; }
  .b24-side { display: none; }
  .msg { max-width: 90%; }
  .stages span { font-size: 0.6rem; }
  .kanban { grid-template-columns: 1fr 1fr; }
  .who, .plans.one { grid-template-columns: 1fr; }
  .pain { grid-template-columns: 40px 1fr; gap: 12px; }
  .sticky-cta { display: block; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; text-align: center; background: var(--ink); color: #fff; padding: 15px; border-radius: 999px; font-weight: 500; transition: transform 0.4s var(--ease); }
  .sticky-cta.hide { transform: translateY(140%); }
}
@media (prefers-reduced-motion: reduce) { .stages span.now, .kc.mv { animation: none; } }

/* ===== V3: chat do Bitrix24 (cores do Bitrix24 só dentro da tela) ===== */
.mx { --nav:#0c2a63; --sel:#00a9e0; --teal:#6fb0a4; --out:#e3f6c9; --lnk:#1b64c8;
  margin: 64px auto 0; max-width: 1040px; border-radius: 18px; overflow: hidden; text-align: left;
  background: var(--nav); font-family: "Open Sans", var(--font-body); font-size: 13px; color: #222;
  border: 1px solid #0a2150; }
.mx.tilt { transform: perspective(1400px) rotateX(var(--tilt, 9deg)) scale(var(--sc, 0.96)); transform-origin: center top; will-change: transform; transition: opacity 0.9s var(--ease); }
.mx-top { display: flex; gap: 6px; padding: 10px 14px; color: #c9d6f0; }
.mx-top span { padding: 6px 12px; border-radius: 8px; }
.mx-top .on { background: rgba(255,255,255,0.18); color: #fff; }
.mx-body { display: grid; grid-template-columns: 68px 290px 1fr; height: 560px; background: #fff; border-radius: 12px 12px 0 0; margin: 0 10px; overflow: hidden; }
.mx-rail { display: grid; align-content: start; gap: 4px; padding: 10px 6px; border-right: 1px solid #e6eaf0; background: #fff; }
.mx-rail div { position: relative; display: grid; justify-items: center; gap: 2px; padding: 8px 2px; border-radius: 10px; font-size: 9.5px; color: #6b7686; }
.mx-rail div.on { background: #eaf3fb; color: #1a6fb5; }
.mx-rail .ic { font-style: normal; width: 24px; height: 24px; display: grid; place-items: center; font-size: 16px; color: #4a90d9; }
.mx-rail b { position: absolute; top: 2px; right: 6px; background: #00a9e0; color: #fff; border-radius: 99px; font-size: 9px; padding: 1px 5px; font-weight: 600; }
.mx-list { border-right: 1px solid #e6eaf0; overflow: hidden; background: #fff; }
.mx-search { margin: 12px; padding: 9px 14px; background: #f1f4f8; border-radius: 99px; color: #9aa4b2; }
.mx-sec { color: #00a9e0; padding: 6px 14px; display: flex; align-items: center; gap: 8px; font-size: 12px; }
.mx-sec::after { content: ""; flex: 1; height: 1px; background: #00a9e0; opacity: .6; }
.mx-sec.ok { color: #7fb21f; } .mx-sec.ok::after { background: #7fb21f; }
.mx-day { color: #8a94a3; padding: 6px 14px 2px; font-size: 11px; }
.mx-item { position: relative; display: grid; grid-template-columns: 42px 1fr auto; gap: 10px; align-items: center; padding: 9px 12px; margin: 2px 6px; border-radius: 10px; }
.mx-item b { display: block; font-weight: 600; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 175px; }
.mx-item small { display: block; color: #8a94a3; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 175px; }
.mx-item em { font-style: normal; color: #8a94a3; font-size: 11px; align-self: start; }
.mx-item u { position: absolute; right: 12px; bottom: 10px; text-decoration: none; background: #00a9e0; color: #fff; font-size: 10px; min-width: 20px; text-align: center; padding: 2px 5px; border-radius: 99px; font-weight: 600; animation: badge 3s ease-in-out infinite; }
.mx-item.sel { background: #00a9e0; color: #fff; }
.mx-item.sel small, .mx-item.sel em { color: #e6f7fd; }
.av { width: 40px; height: 40px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 13px; }
@keyframes badge { 50% { transform: scale(1.18); } }
.mx-chat { display: flex; flex-direction: column; min-width: 0; background: var(--teal); }
.mx-head { display: flex; gap: 12px; align-items: center; padding: 11px 18px; background: #fff; border-bottom: 1px solid #e6eaf0; }
.mx-head .av { width: 36px; height: 36px; font-size: 12px; }
.mx-head b { display: block; font-weight: 600; }
.mx-head small { color: #8a94a3; }
.mx-msgs { flex: 1; padding: 16px 28px; display: flex; flex-direction: column; gap: 8px; overflow: hidden;
  background-image: radial-gradient(rgba(255,255,255,.10) 1.5px, transparent 1.6px); background-size: 26px 26px; }
.pill { align-self: center; background: rgba(40,80,75,.55); color: #fff; padding: 3px 14px; border-radius: 99px; font-size: 11.5px; }
.sys, .bub { border-radius: 10px; padding: 8px 12px; max-width: 62%; position: relative; font-size: 13px; line-height: 1.4; }
.sys { background: #b6d6d0; align-self: flex-start; }
.sys b { font-weight: 600; display: block; }
.sys a { color: var(--lnk); display: block; margin-top: 2px; }
.sys p { margin-top: 4px; }
.sys small, .bub small { display: block; text-align: right; font-size: 10px; color: #6c7a80; margin-top: 2px; }
.bub.in { background: #fff; align-self: flex-start; border-top-left-radius: 3px; }
.bub.in strong { display: block; color: #e08a1e; font-weight: 600; font-size: 12px; margin-bottom: 1px; }
.bub.out { background: var(--out); align-self: flex-end; border-top-right-radius: 3px; }
.bub.quote .q { border-left: 3px solid #4a9b2b; background: rgba(0,0,0,.05); border-radius: 4px; padding: 4px 8px; margin-bottom: 5px; font-size: 12px; color: #4a5a40; }
.bub.quote .q b { display: block; color: #3c8a22; font-weight: 600; font-size: 11px; }
.bub.audio { display: flex; align-items: center; gap: 10px; padding: 9px 14px; flex-wrap: wrap; min-width: 250px; }
.bub.audio small { width: 100%; }
.play { width: 30px; height: 30px; border-radius: 50%; background: #4a9b2b; color: #fff; display: grid; place-items: center; font-size: 11px; flex: none; }
.wave { display: inline-flex; align-items: center; gap: 3px; height: 26px; flex: 1; }
.wave i { width: 3px; border-radius: 2px; background: #7aa05f; height: 8px; animation: eq 1.1s ease-in-out infinite; }
.wave i:nth-child(3n) { height: 20px; animation-delay: .5s; }
.wave i:nth-child(3n+1) { height: 13px; }
.wave i:nth-child(4n) { height: 24px; }
.wave i:nth-child(5n) { height: 9px; }
.wave i:nth-child(odd) { animation-delay: .25s; }
@keyframes eq { 50% { transform: scaleY(.45); } }
.bub.audio em { font-style: normal; font-size: 11px; color: #5d6b52; }
.mx-comp { margin: 8px 28px 22px; background: #fff; border-radius: 14px; padding: 8px 12px 12px; }
.mx-acts { display: flex; gap: 22px; padding: 6px 4px 10px; border-bottom: 1px solid #edf0f4; margin-bottom: 8px; font-size: 12px; color: #4a5565; }
.mx-acts span { display: flex; align-items: center; gap: 8px; border-radius: 99px; }
.ico { font-style: normal; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 13px; }
.ico.mic { background: #b0816a; font-size: 9px; }
.ico.qt { background: #4cc233; font-size: 18px; line-height: 1; padding-top: 5px; }
.hot { animation: nudge 3.4s ease-in-out infinite; }
.hot:nth-child(2) { animation-delay: .4s; }
@keyframes nudge { 0%, 70%, 100% { transform: none; } 80% { transform: translateY(-3px); } 90% { transform: translateY(0); } }
.mx-comp p { color: #a2abb8; font-size: 12.5px; }

/* mensagens do chat entram em sequência (ciclo longo) */
.mx-msgs > * { opacity: 0; transform: translateY(10px); animation: mxin 22s infinite; }
.m1{animation-delay:.4s} .m2{animation-delay:1.6s} .m3{animation-delay:3s} .m4{animation-delay:4.6s}
.m5{animation-delay:6.4s} .m6{animation-delay:8.2s} .m7{animation-delay:10s} .m8{animation-delay:12s}
.l1{animation-delay:.6s} .l2{animation-delay:3s} .l3{animation-delay:5.4s}
.mini .mx-msgs > * { animation-duration: 12s; }
@keyframes mxin { 0%, 2% { opacity: 0; transform: translateY(10px); } 6%, 92% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
.mx.mini { margin: 0; max-width: none; }
.mx.mini .mx-chat.solo { border-radius: 0; min-height: 440px; }
.mx.mini .mx-msgs { padding: 14px 18px; }
.mx.mini .mx-comp { margin: 8px 16px 16px; }
.mx.mini .sys, .mx.mini .bub { max-width: 80%; }
.checks.tight { margin-top: 28px; }
.plan .trial { display: inline-block; align-self: flex-start; margin-top: 16px; padding: 6px 14px; border: 1px solid currentColor; border-radius: 999px; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.02em; }

@media (max-width: 880px) {
  .mx-rail, .mx-list { display: none; }
  .mx-body { grid-template-columns: 1fr; height: 520px; margin: 0 6px; }
  .mx { margin-top: 40px; }
  .sys, .bub { max-width: 88%; }
  .mx-msgs { padding: 12px; }
  .mx-comp { margin: 6px 10px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .mx.tilt { transform: none; }
  .mx-msgs > *, .wave i, .hot, .mx-item u { animation: none !important; opacity: 1 !important; transform: none !important; }
}
