/* ==========================================================================
   Site público (landing), no estilo do clickmax.io com a marca da Alega.
   Fundo cinza bem claro, Inter, títulos 600 com letras juntas, botões pílula
   com o degradê vinho → rosa da marca, cartões brancos de raio 16/20.
   Um visual só (claro), com cores explícitas: não segue o tema escuro.
   ========================================================================== */
.cx {
  --cx-bg: #f5f6f7;
  --cx-bg-2: #eef0f2;
  --cx-card: #ffffff;
  --cx-ink: #14171a;
  --cx-ink-2: #1f2123;
  --cx-muted: #5d6570;
  --cx-soft: #8a929c;
  --cx-line: #e5e7ea;
  --cx-brand: var(--marca-600, #b21e4b);
  --cx-brand-2: var(--marca-400, #e8577f);
  --cx-pink: var(--marca-400, #f06b92);
  --cx-blush: var(--marca-200, #ffd3df);
  --cx-blush-2: var(--marca-50, #fff0f4);
  --cx-wine: var(--marca-900, #4a0f25);
  --cx-grad: linear-gradient(90deg, var(--marca-600, #b21e4b) 0%, var(--marca-400, #e8577f) 100%);
  --cx-shadow: 0 1px 2px rgba(20, 23, 26, .04), 0 10px 30px -12px rgba(20, 23, 26, .12);
  color-scheme: light;
  background: var(--cx-bg);
  color: var(--cx-ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* O painel está em @layer e este arquivo não: regra solta aqui vence qualquer camada. Por isso o reset
   de link deixa de fora os botões do painel (.btn), senão o "Criar bot" perde o texto branco. */
:where(.cx a:not(.btn)) { color: inherit; text-decoration: none; }
:where(.cx-hero, .cx-head, .cx-demo-side, .cx-mod-title, .cx-doit, .cx-integ-head, .cx-plan, .cx-custom, .cx-faq) :is(h1, h2, h3, h4) { margin: 0; font-weight: 600; text-wrap: balance; }
.cx-hero h1, .cx-head h2, .cx-integ-head h2, .cx-faq h2, .cx-mod h3, .cx-demo-side h3, .cx-plan h3, .cx-custom h3 { color: var(--cx-ink); }
:where(.cx-hero, .cx-head, .cx-demo-side, .cx-prompt, .cx-mod, .cx-integ, .cx-plan, .cx-custom, .cx-faq, .cx-doit, .cx-video) p { margin: 0; }  /* só nas peças da landing, não nos componentes do painel */
.cx-wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding-inline: 32px; }

/* ---------- botões ---------- */
.cx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 999px; border: 0;
  font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1; white-space: nowrap; cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.cx-btn:active { transform: scale(.97); }
.cx-btn-lg { height: 48px; padding: 0 24px; font-size: 15px; }
.cx-btn-block { width: 100%; height: 46px; }
.cx-btn-grad { background: var(--cx-grad); color: #fff !important; box-shadow: 0 8px 20px -8px rgb(var(--marca-600-rgb, 178 30 75) / .55); }
.cx-btn-grad:hover { box-shadow: 0 10px 26px -8px rgb(var(--marca-600-rgb, 178 30 75) / .7); }
.cx-btn-white { background: #fff; color: var(--cx-ink) !important; box-shadow: 0 0 0 1px var(--cx-line), 0 1px 2px rgba(0, 0, 0, .04); }
.cx-btn-white:hover { box-shadow: 0 0 0 1px #d5d8dc, 0 4px 12px -4px rgba(0, 0, 0, .12); }
.cx-btn:focus-visible, .cx-round:focus-visible, .cx a:focus-visible, .cx button:focus-visible { outline: 2px solid var(--cx-brand); outline-offset: 2px; }
.cx-round {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 1px var(--cx-line); color: var(--cx-ink);
}
.cx-eyebrow { display: inline-block; font-size: 13px; font-weight: 500; color: var(--cx-muted); margin-bottom: 10px; }
.cx-badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--cx-grad); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.cx-badge.is-soft { background: var(--cx-blush); color: var(--cx-brand); text-transform: none; letter-spacing: 0; font-size: 12px; }

/* ---------- topo ---------- */
.cx-top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: rgba(245, 246, 247, .86); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.cx-top.is-scrolled { border-bottom-color: var(--cx-line); }
.cx-top-in { max-width: 1440px; margin: 0 auto; height: 64px; padding-inline: 32px; display: flex; align-items: center; gap: 24px; }
.cx-logo { display: block; width: 86px; color: var(--cx-brand) !important; flex: none; }
/* menu no formato do Clickmax: grupos que abrem um painel largo (landing.js) */
.cx-mega-groups { display: flex; align-items: center; gap: 4px; }
.cx-mega-trigger {
  display: inline-flex; align-items: center; gap: 5px; height: 40px; padding: 0 9px; border: 0; border-radius: 9px;
  background: transparent; color: #575c61; font-family: inherit; font-weight: 500; font-size: 12.5px; line-height: 1; cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s;
}
.cx-mega-trigger .ui-icon { transition: transform .2s; color: #8a929c; }
.cx-mega-trigger:hover, .cx-mega-trigger[aria-expanded="true"] { background: #eceef0; color: var(--cx-ink); }
.cx-mega-trigger[aria-expanded="true"] .ui-icon { transform: rotate(180deg); }
.cx-mega-trigger.is-link { color: var(--cx-ink); }
.cx-mega-pop {
  position: absolute; top: 64px; left: 50%; width: min(1000px, calc(100vw - 32px)); padding-top: 10px;
  transform: translateX(-50%); z-index: 45;
}
.cx-mega-pop:not([hidden]) .cx-mega-surface { animation: cx-mega-entra .18s ease-out; }
@keyframes cx-mega-entra { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
.cx-mega-surface {
  padding: 20px 22px 12px; background: #fff; border: 1px solid #e6e8e9; border-radius: 20px;
  box-shadow: 0 24px 64px -20px rgba(31, 33, 35, .22), 0 3px 8px rgba(31, 33, 35, .04);
}
.cx-mega-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 1px 14px 18px; border-bottom: 1px solid #eceef0; }
.cx-mega-head > span { font-size: 15px; font-weight: 700; letter-spacing: -0.025em; color: var(--cx-ink); }
.cx-mega-head a { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: #697077; }
.cx-mega-head a:hover { color: var(--cx-brand); }
.cx-mega-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 18px; margin: 0; padding: 14px 0; list-style: none; }
.cx-mega-item { display: flex; gap: 13px; padding: 12px 13px; border-radius: 12px; transition: background .15s; }
.cx-mega-item:hover { background: #f6f7f8; }
.cx-mega-icon { display: grid; place-items: center; flex: none; width: 39px; height: 39px; margin-top: 2px; border-radius: 10px; background: #f4f5f5; color: #555d62; transition: background .15s, color .15s; }
.cx-mega-item:hover .cx-mega-icon { background: var(--cx-blush-2); color: var(--cx-brand); }
.cx-mega-copy strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.4; letter-spacing: -0.015em; color: var(--cx-ink); }
.cx-mega-copy span { display: block; margin-top: 2px; font-size: 12px; line-height: 1.55; color: #697077; }
.cx-mega-foot { display: flex; align-items: center; gap: 12px; padding: 16px 14px 8px; border-top: 1px solid #eceef0; font-size: 12.5px; color: #697077; }
.cx-mega-foot strong { color: var(--cx-ink); font-size: 13.5px; font-weight: 600; }
.cx-mega-foot > .ui-icon:first-child { color: var(--cx-brand); }
.cx-mega-foot > .ui-icon:last-child { margin-left: auto; color: var(--cx-ink); transition: transform .15s; }
.cx-mega-foot:hover > .ui-icon:last-child { transform: translateX(3px); color: var(--cx-brand); }
/* idiomas: pílula com as siglas, a atual em destaque */
.cx-langs { display: flex; align-items: center; gap: 1px; height: 34px; padding: 2px; border: 1px solid #edeeef; border-radius: 999px; background: #fff; }
.cx-langs button { display: grid; place-items: center; width: 27px; height: 28px; padding: 0; border: 0; border-radius: 99px; background: transparent; color: #9aa1a9; font-family: inherit; font-size: 11px; font-weight: 500; line-height: 1; letter-spacing: .02em; cursor: pointer; transition: color .15s, background .15s; }
.cx-langs button:hover { color: var(--cx-ink); background: #f4f5f5; }
.cx-langs button[aria-current="true"] { color: var(--cx-ink); font-weight: 600; }
.cx-top-actions { margin-left: auto; display: flex; align-items: center; gap: 9px; }
.cx-top-actions .cx-btn { height: 37px; padding: 0 15px; font-size: 12.5px; }

/* ---------- hero ---------- */
.cx-hero { padding-top: 64px; }
.cx-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: center; }
.cx-hero-left { padding-right: 48px; }
.cx-hero-right { padding-left: 48px; border-left: 1px solid var(--cx-line); display: flex; flex-direction: column; gap: 22px; }
.cx-hero-kicker { font-size: 13px; font-weight: 500; color: var(--cx-muted); margin-bottom: 18px !important; }
.cx-hero h1 { font-size: clamp(34px, 4.2vw, 54px); line-height: 1.08; letter-spacing: -0.045em; }
.cx-hero-right > p { font-size: 17px; line-height: 1.6; color: var(--cx-muted); max-width: 52ch; }
.cx-hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.cx-hero-mods { display: flex; gap: 18px; flex-wrap: wrap; }
.cx-hero-mod { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--cx-muted); }
.cx-hero-mod span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--cx-line); color: var(--cx-ink); transition: background .2s, color .2s; }
.cx-hero-mod.is-on span, .cx-hero-mod:hover span { background: var(--cx-grad); color: #fff; box-shadow: 0 8px 18px -8px rgb(var(--marca-600-rgb, 178 30 75) / .6); }
.cx-hero-mod.is-on { color: var(--cx-brand); }

.cx-mosaic {
  margin-top: 56px; width: 100%; height: 38vh; min-height: 260px; overflow: hidden;
  display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 6px; align-content: start;
  mask-image: linear-gradient(to bottom, #000 62%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent);
}
.cx-tile { aspect-ratio: 1; border-radius: 10px; background: var(--cx-bg-2); transition: background .8s ease, transform .4s; }
.cx-tile.c1 { background: var(--cx-brand); }
.cx-tile.c2 { background: var(--cx-pink); }
.cx-tile.c3 { background: var(--cx-blush); }
.cx-tile.c4 { background: var(--cx-brand-2); }
.cx-tile.is-piece { background: #fff; box-shadow: inset 0 0 0 1px var(--cx-line); padding: 8px; display: flex; flex-direction: column; justify-content: space-between; color: var(--cx-soft); overflow: hidden; }
.cx-tile.is-piece .ui-icon { width: 18px; height: 18px; }
.cx-tile.is-piece small { font-size: 11px; line-height: 1.2; color: var(--cx-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-tile.is-empty { background: #eceef0; }

/* ---------- vídeo ---------- */
.cx-video { padding: 28px 0 72px; }
.cx-video .lp-player { max-width: min(880px, 78%); }
.cx-video-note { margin-bottom: 20px !important; text-align: center; font-size: clamp(14px, 1.25vw, 17px); font-weight: 500; line-height: 1.5; color: var(--cx-ink); display: flex; justify-content: center; align-items: center; gap: 10px; }
.cx-video-note svg { color: var(--cx-brand); flex: none; }

/* Hero animado (landing.js liga .is-anim só em tela grande, sem "reduzir movimento"):
   a seção vira 200vh com a parte de cima presa; o JS move as colunas, leva o texto
   para o centro e encurta a área presa, o que traz o vídeo para logo abaixo do texto. */
.cx-hero.is-anim { min-height: 200vh; padding-top: 0; }
.cx-hero.is-anim .cx-hero-pin {
  position: sticky; top: 64px; height: calc(100svh - 64px); overflow: hidden;
  display: flex; flex-direction: column;
}
.cx-hero.is-anim .cx-hero-grid { flex: 1; min-height: 0; }
.cx-hero.is-anim .cx-mosaic { flex: none; margin-top: 0; }
.cx-hero.is-anim [data-h="esq"], .cx-hero.is-anim [data-h="dir"], .cx-hero.is-anim [data-h="texto"] { will-change: transform, opacity; animation: none; }
.cx-hero.is-anim [data-h="texto"] { position: relative; z-index: 30; max-width: none; }
.cx-hero.is-anim .cx-tile { transition: background .8s ease; }
.cx-video.is-after-hero { position: relative; z-index: 20; margin-top: clamp(-112px, -12svh, -64px); }

/* ---------- seções ---------- */
.cx-sec { padding: 96px 0; }
.cx-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.cx-head.is-left { text-align: left; margin-left: 0; }
.cx-head h2, .cx-integ-head h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -0.035em; }
.cx-head p { margin-top: 16px !important; font-size: 17px; color: var(--cx-muted); line-height: 1.6; }

/* o que dá pra fazer: mosaico 6x3 do Clickmax. Cada bloco tem a cor de destaque por baixo do cartão;
   no hover o cartão desliza (--dx/--dy) e mostra a cor, e os quatro cinzas acendem na mesma cor. */
.cx-sec-doit { background: linear-gradient(#f4f5f6, #edeff1); }
.cx-doit-wrap { position: relative; max-width: 1120px; margin: 56px auto 0; }
.cx-doit-grid { display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(3, 1fr); aspect-ratio: 2 / 1; }
.cx-doit, .cx-filler { margin: 0 -1px -1px 0; }
.cx-doit { position: relative; display: block; background: var(--accent); }
.cx-doit:hover { z-index: 3; }
.cx-doit-in {
  display: flex; flex-direction: column; justify-content: space-between; width: 100%; height: 100%; padding: 20px;
  background: #fff; border: 1px solid #e6e8eb; transform-origin: right bottom;
  transition: transform .5s cubic-bezier(.4, 0, .2, 1), box-shadow .5s cubic-bezier(.4, 0, .2, 1);
}
.cx-doit:is(:hover, :focus-visible) .cx-doit-in {
  transform: translate(var(--dx), var(--dy));
  box-shadow: 0 1px 2px rgba(20, 20, 19, .05), 0 18px 40px -22px rgba(20, 20, 19, .28);
}
.cx-doit:not(.is-link) { cursor: default; }
.cx-doit-ico {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%;
  background: #fff; color: #8a8f98; box-shadow: 0 1px 2px rgba(20, 20, 19, .04), 0 8px 24px -16px rgba(20, 20, 19, .18);
}
.cx-doit-txt { display: flex; flex-direction: column; gap: 4px; }
.cx-doit h3 { margin: 0; font-size: 20px; font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; color: var(--cx-ink); }
.cx-doit p { margin: 0; max-width: 30ch; font-size: 13.5px; line-height: 1.45; color: #6b7280; }
.cx-filler { position: relative; overflow: hidden; background: linear-gradient(#e9ecef, #e1e5e9); }
.cx-filler::after { content: ""; position: absolute; inset: 0; background: var(--filler-accent, transparent); opacity: 0; transition: opacity .4s cubic-bezier(.4, 0, .2, 1); }
.cx-doit-wrap.is-lit .cx-filler::after { opacity: 1; }
.cx-diamond { position: absolute; width: 64px; height: 64px; border: 1px solid #e6e8eb; rotate: 45deg; pointer-events: none; }
.cx-doit-dot { position: absolute; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; background: var(--cx-ink); pointer-events: none; transition: opacity .6s ease-out .7s; }
/* o Bitrix24 é o único link: dá um pulinho a cada 7 s para chamar o clique */
.cx-doit-in.is-nudge { animation: cx-nudge 7s ease-in-out infinite paused; }
.cx-doit-wrap.is-in .cx-doit-in.is-nudge { animation-play-state: running; }
.cx-doit:is(:hover, :focus-visible) .cx-doit-in.is-nudge { animation-play-state: paused; }
@keyframes cx-nudge { 0%, 62%, 82%, 100% { translate: 0; } 72% { translate: 0 -3px; } }

/* queda: o JS arma (is-armed) e solta ao entrar na tela (is-in). Sem JS tudo aparece parado. */
.cx-doit-wrap.is-armed .cx-fall { opacity: 0; transform: translateY(-100px); transform-origin: center bottom; }
.cx-doit-wrap.is-armed .cx-fall-pop, .cx-doit-wrap.is-armed .cx-doit-dot { opacity: 0; }
.cx-doit-wrap.is-armed.is-in .cx-doit-dot { opacity: 1; }
.cx-doit-wrap.is-armed.is-in .cx-fall { animation: cx-fall .5s ease-in forwards; animation-delay: calc((var(--n) - var(--i)) * 60ms); }
.cx-doit-wrap.is-armed.is-in .cx-fall-pop { opacity: 1; animation: cx-fall-pop .5s ease-in backwards; animation-delay: calc((var(--n) - var(--i)) * 60ms); }
/* ao terminar a queda o JS tira o transform, senão o bloco em hover não sobe por cima dos vizinhos */
.cx-doit-wrap.is-done .cx-fall { opacity: 1; transform: none; animation: none; }
@keyframes cx-fall {
  0% { opacity: 0; transform: translateY(-300px); }
  50% { opacity: 1; transform: translateY(0) scaleY(1); }
  65% { opacity: 1; transform: translateY(0) scaleY(.95); }
  80% { opacity: 1; transform: translateY(0) scaleY(1.02); }
  100% { opacity: 1; transform: translateY(0) scaleY(1); }
}
@keyframes cx-fall-pop { 0% { opacity: 0; transform: scale(0); } 100% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .cx-doit-wrap .cx-fall, .cx-doit-wrap .cx-fall-pop, .cx-doit-wrap .cx-doit-dot { opacity: 1 !important; transform: none !important; }
}
/* abaixo de 1024: duas colunas de cartões arredondados, sem cinzas, losangos e pontos */
@media (max-width: 1023px) {
  .cx-doit-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: none; aspect-ratio: auto; gap: 12px; }
  .cx-doit-grid > * { grid-area: auto !important; }
  .cx-doit, .cx-filler { margin: 0; }
  .cx-filler, .cx-diamond, .cx-doit-dot { display: none; }
  .cx-doit { border-radius: 18px; background: transparent; }
  .cx-doit-in { border-radius: 18px; }
  .cx-doit:is(:hover, :focus-visible) .cx-doit-in { transform: none; box-shadow: none; }
  .cx-doit-txt { margin-top: 64px; }
}
@media (max-width: 640px) {
  .cx-doit-grid { gap: 10px; }
  .cx-doit-in { padding: 16px; }
  .cx-doit-txt { margin-top: 24px; }
  .cx-doit h3 { font-size: 17px; }
  .cx-doit p { font-size: 12.5px; }
}

/* ---------- demonstrações ---------- */
.cx-demo {
  max-width: 1440px; margin: 0 auto; padding: 14px 20px 40px;
  display: grid; grid-template-columns: 403px 1fr; grid-template-rows: minmax(0, 1fr) auto; gap: 12px 24px;
  height: clamp(640px, calc(100vh - 90px), 860px);  /* altura fixa: a conversa rola por dentro, como no Clickmax */
}
.cx-demo-side { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.cx-demo-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 8px 0; font-size: 11px; color: #7d858b; }
.cx-demo-meta span + span { font-size: 9px; }
.cx-demo-side h3 { margin: 14px 8px 8px; font-size: 31.7px; font-weight: 700; line-height: 1.12; letter-spacing: -0.035em; }
.cx-demo-desc { padding: 0 8px; font-size: 13px; line-height: 1.5; color: #747c83; min-height: 39px; }
.cx-demo-ctl { display: flex; align-items: center; gap: 2px; margin-top: 12px; padding: 0 6px 6px; border-bottom: 1px solid var(--cx-line); font-size: 12px; }
.cx-demo-who { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.cx-demo-who i { width: 7px; height: 7px; border-radius: 50%; background: #22b35e; }
.cx-demo-count { margin: 0 auto 0 6px; white-space: nowrap; font-size: 10px; color: #8a939a; font-variant-numeric: tabular-nums; }
.cx-play {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border: 0; border-radius: 999px;
  background: var(--cx-grad); color: #fff; font-family: inherit; font-size: 12px; font-weight: 700; line-height: 1; cursor: pointer;
  box-shadow: 0 10px 24px -12px rgb(var(--marca-600-rgb, 178 30 75) / .7);
}
.cx-play.is-sm { height: 32px; padding: 0 13px; }
/* tocando: continua na cor da marca, um tom mais fundo, e o rótulo vira "Pausar" */
.cx-demo.is-playing .cx-demo-ctl .cx-play { background: linear-gradient(90deg, var(--marca-800, #7d1233), var(--marca-600, #b21e4b)); box-shadow: 0 0 0 3px rgb(var(--marca-400-rgb, 232 87 127) / .22); }
.cx-play .is-toca { display: inline-flex; align-items: center; gap: 7px; }
.cx-play .is-pausa, .cx-demo.is-playing .cx-demo-ctl .cx-play .is-toca { display: none; }
.cx-demo.is-playing .cx-demo-ctl .cx-play .is-pausa { display: inline-flex; align-items: center; gap: 7px; }
.cx-speed { display: flex; gap: 2px; margin: 0 0 0 2px; padding: 2px; border: 1px solid #e2e5e8; border-radius: 999px; background: #f4f5f7; }
.cx-speed button { width: 30px; height: 26px; border: 0; border-radius: 999px; background: transparent; color: #6c7378; font-family: inherit; font-weight: 700; font-size: 10px; line-height: 1; cursor: pointer; }
.cx-speed button.is-on { background: var(--cx-brand); color: #fff; }
.cx-mini { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: #68727a; cursor: pointer; }
.cx-mini:hover, .cx-mini[aria-expanded="true"] { background: var(--cx-bg-2); color: var(--cx-ink); }

/* conversa: o prompt vira balão, e cada passo entra digitado com o sinal da Alega ao lado */
.cx-demo-talk { flex: 1; min-height: 0; overflow-y: auto; padding: 20px 8px 16px; scrollbar-width: thin; }
.cx-demo:not(.is-started) .cx-demo-talk { visibility: hidden; }
.cx-talk-me { margin: 0 0 12px 48px; padding: 12px 16px; border-radius: 14px; background: #eef0f2; font-size: 14px; line-height: 1.45; color: var(--cx-ink); }
.cx-talk-note { margin: 0 0 20px; font-size: 11px; line-height: 1.45; color: var(--cx-soft); }
.cx-talk-ai { display: grid; grid-template-columns: 20px 1fr; gap: 14px; margin-bottom: 6px; font-size: 15px; line-height: 1.6; color: var(--cx-ink); animation: cx-rise .35s ease both; }
.cx-talk-ai .ui-icon { margin-top: 3px; color: var(--cx-soft); }
.cx-talk-ok { display: flex; align-items: center; gap: 6px; margin: 0 0 18px 34px; font-size: 10px; color: var(--cx-soft); animation: cx-rise .35s ease both; }
.cx-talk-ok .ui-icon { color: #22b35e; }
.cx-caret { display: inline-block; width: 5px; height: 1em; margin-left: 2px; vertical-align: -2px; background: currentColor; opacity: .6; animation: cx-blink 1s steps(1) infinite; }
.cx-demo-steps:not([hidden]) { flex-shrink: 0; max-height: 40%; overflow-y: auto; margin: 12px 8px 0; padding: 12px 12px 12px 30px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--cx-line); font-size: 12.5px; line-height: 1.5; color: var(--cx-muted); }
.cx-demo-steps li.is-now { color: var(--cx-ink); font-weight: 600; }
@keyframes cx-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes cx-blink { 50% { opacity: 0; } }

.cx-prompt {
  margin-top: auto; padding: 14px 14px 9px; border: 1px solid #dce2e3; border-radius: 22px; background: #fff;
  box-shadow: 0 3px 9px rgba(20, 23, 26, .02);
}
.cx-prompt p { font-size: 16px; line-height: 1.5; color: #30383a; }
.cx-prompt > div { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 10px; color: var(--cx-soft); }
.cx-prompt > div span { display: inline-flex; gap: 5px; align-items: center; }
.cx-demo.is-started .cx-prompt { display: none; }
.cx-demo-hint { margin-top: 8px; text-align: center; font-size: 9px; line-height: 1.5; color: #9aa2a6; }

.cx-demo-stage {
  position: relative; border-radius: 16px; overflow: hidden; border: 1px solid #e5e7e9;
  background: #eceef1 radial-gradient(circle, rgba(20, 23, 26, .09) 1px, transparent 1.3px) 0 0 / 18px 18px;
}
.cx-demo-veil {
  position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 0 24px; background: rgba(20, 23, 26, .48); backdrop-filter: blur(3px); color: #fff; text-align: center;
  transition: opacity .35s, visibility .35s;
}
.cx-demo-mark .brand-logo { display: block; height: 30px; width: auto; }
.cx-demo-veil b { margin-top: 8px; font-size: 19px; font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; }
.cx-demo-veil small { max-width: 210px; font-size: 11.5px; line-height: 1.5; color: #e4e8ec; }
.cx-demo-veil .cx-play { box-shadow: 0 10px 30px rgba(10, 18, 24, .24); }
.cx-demo.is-started .cx-demo-veil { opacity: 0; visibility: hidden; }

/* linha do tempo: rótulo e % em cima, trilho de 6px que dá para clicar e arrastar */
.cx-demo-bar { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; column-gap: 8px; padding: 0 8px; font-size: 10px; font-weight: 500; line-height: 14px; color: #5d6570; }
.cx-seek { grid-column: 1 / -1; position: relative; height: 32px; cursor: pointer; touch-action: none; outline: none; }
.cx-seek i { position: absolute; left: 0; right: 0; top: 13px; height: 6px; border-radius: 99px; background: #e5e7ea; }
.cx-seek b { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: inherit; background: var(--cx-grad); transition: width .5s ease; }
.cx-seek em {
  position: absolute; top: 8px; left: 0; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%;
  background: var(--cx-brand); box-shadow: 0 0 0 3px #fff, 0 0 0 4px rgb(var(--marca-600-rgb, 178 30 75) / .35); transition: left .5s ease;
}
.cx-seek.is-drag b, .cx-seek.is-drag em { transition: none; }
.cx-seek:focus-visible em { box-shadow: 0 0 0 3px #fff, 0 0 0 6px rgb(var(--marca-600-rgb, 178 30 75) / .5); }

/* peças que entram a cada passo */
.cx-demo [data-s] { opacity: 0; transform: translateY(10px) scale(.98); transition: opacity .45s ease, transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .3s; }
.cx-demo [data-s].is-in { opacity: 1; transform: none; }
.cx-demo:not(.is-started) [data-s] { opacity: .9; transform: none; }  /* parado: mostra tudo atrás do véu */

.cx-mock { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 28px; padding: 32px; }




/* ---------- módulos ---------- */
.cx-mods-grid { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
.cx-mods-nav { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 2px; }
.cx-mods-nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; font-size: 14px; font-weight: 500; color: var(--cx-ink-2); transition: background .2s; }
.cx-mods-nav a .ui-icon { color: var(--cx-soft); }
.cx-mods-nav a:hover { background: var(--cx-bg-2); }
.cx-mods-nav a.is-on { background: #e9ebee; }
.cx-mods-nav a.is-on .ui-icon { color: var(--cx-brand); }
.cx-mods-list { display: flex; flex-direction: column; gap: 88px; max-width: 760px; }
.cx-mod { scroll-margin-top: 96px; }
.cx-mod-kicker { display: block; font-size: 12px; color: var(--cx-muted); margin-bottom: 10px; }
.cx-mod-title { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--cx-line); }
.cx-mod h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; letter-spacing: -0.035em; }
.cx-mod-sub { margin: 18px 0 20px !important; font-size: 17px; color: var(--cx-ink-2); }
.cx-mod-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; font-size: 14px; color: var(--cx-muted); }
.cx-mod-list li { position: relative; padding-left: 16px; line-height: 1.5; }
.cx-mod-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--cx-pink); }
.cx-mod-list b { color: var(--cx-ink); font-weight: 600; }
.cx-mod blockquote { margin: 22px 0 14px; padding-left: 12px; border-left: 2px solid var(--cx-ink); font-style: italic; font-weight: 500; color: var(--cx-ink); }
.cx-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.cx-tags span { font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--cx-muted); padding: 5px 9px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--cx-line); background: #fff; }

/* ---------- integrações ---------- */
.cx-integ { max-width: 1000px; }
.cx-integ-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--cx-line); }
.cx-integ-sub { margin: 18px 0 26px !important; font-size: 17px; color: var(--cx-ink-2); max-width: 60ch; }
.cx-integ-row { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.cx-integ-tile { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 6px 16px; background: #fff; border-radius: 14px; box-shadow: var(--cx-shadow); font-size: 12px; font-weight: 500; text-align: center; transition: transform .2s; }
.cx-integ-tile:hover { transform: translateY(-3px); }
.cx-integ-tile .cx-marca, .cx-integ-tile .ui-icon { display: block; width: 34px; height: 34px; }
.cx-integ-tile .is-b24 { color: #2fc6f6; }
.cx-integ-tile .is-hook { color: var(--cx-ink); }

/* ---------- planos ---------- */
.cx-plans { background: linear-gradient(to bottom, var(--cx-bg), #fff 30%, #fff); }
.cx-plans-grid { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 340px)); justify-content: center; gap: 18px; align-items: stretch; }
.cx-plan { position: relative; overflow: hidden; background: #fff; border-radius: 20px; padding: 26px; box-shadow: 0 0 0 1px var(--cx-line), var(--cx-shadow); display: flex; flex-direction: column; gap: 14px; }
.cx-plan.is-best { box-shadow: 0 0 0 1px var(--cx-line), 0 18px 40px -24px rgb(var(--marca-600-rgb, 178 30 75) / .28); }
.cx-plan.is-best::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--cx-grad); }  /* o overflow do card recorta nos cantos */
.cx-plan-top { display: flex; justify-content: space-between; align-items: center; }
.cx-plan h3 { font-size: 22px; letter-spacing: -0.02em; }
.cx-plan-desc { font-size: 14px; color: var(--cx-muted); }
.cx-plan-price b { font-size: 34px; font-weight: 700; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.cx-plan-price span { font-size: 13px; color: var(--cx-muted); }
.cx-plan ul { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--cx-line); display: flex; flex-direction: column; gap: 9px; font-size: 14px; flex: 1; }
.cx-plan li { display: flex; gap: 8px; align-items: center; }
.cx-plan li .ui-icon { color: #22a35a; flex: none; }
.cx-plan li.is-off { color: var(--cx-soft); text-decoration: line-through; text-decoration-color: rgba(138, 146, 156, .5); }
.cx-plan li.is-off .ui-icon { color: #c4c9cf; }
.cx-plan-foot { text-align: center; font-size: 12px; color: var(--cx-soft); }
.cx-custom { max-width: 1000px; margin: 40px auto 0; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 28px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px var(--cx-line); }
.cx-custom h3 { font-size: 22px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cx-custom p { margin-top: 8px !important; font-size: 15px; color: var(--cx-muted); max-width: 60ch; }

/* ---------- perguntas ---------- */
.cx-faq { background: #fff; padding-top: 40px; }
.cx-faq-in { max-width: 860px; }
.cx-faq h2 { margin-bottom: 22px; font-size: 34px; }
.cx-faq details { border-radius: 14px; background: var(--cx-bg); margin-bottom: 8px; }
.cx-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px; font-size: 15px; font-weight: 600; }
.cx-faq summary::-webkit-details-marker { display: none; }
.cx-faq summary .ui-icon { transition: transform .2s; flex: none; }
.cx-faq details[open] summary .ui-icon { transform: rotate(180deg); }
.cx-faq details p { padding: 0 18px 18px; font-size: 15px; line-height: 1.6; color: var(--cx-muted); max-width: 70ch; }

/* ---------- rodapé ---------- */
/* rodapé: marca e atalhos em cima, créditos embaixo, mosaico de pixels no canto como no Clickmax */
.cx-foot { position: relative; overflow: hidden; background: #111315; color: #c9cdd2; padding: 56px 0 36px; }
.cx-foot .cx-wrap { position: relative; }
.cx-foot-pixels {
  position: absolute; right: 0; bottom: 0; width: min(520px, 60vw); height: 260px; pointer-events: none;
  background:
    linear-gradient(to right, transparent 5px, #111315 5px) 0 0 / 9px 9px,
    linear-gradient(to bottom, transparent 5px, #111315 5px) 0 0 / 9px 9px,
    radial-gradient(ellipse at 100% 100%, rgb(var(--marca-400-rgb, 232 87 127) / .55), rgb(var(--marca-600-rgb, 178 30 75) / .18) 45%, transparent 72%);
  -webkit-mask-image: linear-gradient(to left, #000, transparent); mask-image: linear-gradient(to left, #000, transparent);
}
.cx-foot-top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.cx-foot-brand { max-width: 340px; display: flex; flex-direction: column; gap: 14px; }
.cx-foot-logo { display: block; width: 96px; color: #fff; }
.cx-foot-brand p { margin: 0; font-size: 14px; line-height: 1.55; color: #9aa1a9; }
.cx-foot-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.cx-btn-onDark { background: rgba(255, 255, 255, .06); color: #fff !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); gap: 8px; }
.cx-btn-onDark:hover { background: rgba(255, 255, 255, .1); }
.cx-foot-cols { display: grid; grid-template-columns: repeat(3, minmax(120px, auto)); gap: 32px 56px; }
.cx-foot-cols h4 { margin: 0 0 12px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #6f7780; }
.cx-foot-cols a { display: block; padding: 5px 0; font-size: 14px; color: #c9cdd2; transition: color .15s; }
.cx-foot-bottom { display: flex; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding-top: 22px; font-size: 13px; color: #8a929c; }
.cx-foot-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.cx-foot-legal a { color: #c9cdd2; }
.cx-foot-autoria { margin: 18px 0 0; text-align: center; font-size: 12px; color: #6f7780; }
.cx-foot-autor { color: #fff; font-weight: 500; text-decoration: underline; text-decoration-color: rgb(var(--marca-400-rgb, 232 87 127) / .6); text-underline-offset: 3px; }
.cx-foot a:hover { color: #fff; }
@media (max-width: 720px) {
  .cx-foot { padding: 44px 0 84px; }  /* embaixo, espaço para o botão "voltar ao topo" */
  .cx-foot-bottom { flex-direction: column; }
  .cx-foot-autoria { text-align: left; }
  .cx-foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; width: 100%; }
  .cx-foot-pixels { height: 180px; }
}

/* ---------- entrada ao rolar (landing.js põe data-reveal) ---------- */
@keyframes cx-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.cx-hero-left > *, .cx-hero-right > * { animation: cx-up .6s cubic-bezier(.2, .8, .2, 1) both; }
.cx-hero-right > * { animation-delay: .12s; }
.cx-hero-right > :nth-child(3) { animation-delay: .2s; }
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease var(--reveal-delay, 0ms), transform .6s cubic-bezier(.2, .8, .2, 1) var(--reveal-delay, 0ms); }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .cx *, .cx *::before, .cx *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- telas menores ---------- */
@media (max-width: 1100px) {
  .cx-mega-groups, .cx-mega-pop { display: none !important; }
  .cx-demo { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; }
  .cx-demo-stage { min-height: 520px; }
  .cx-prompt { margin-top: 8px; }
  .cx-demo-talk { max-height: 320px; }
  .cx-demo:not(.is-started) .cx-demo-talk { display: none; }
  .cx-integ-row { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 860px) {
  .cx-wrap { padding-inline: 20px; }
  .cx-hero { padding-top: 36px; }
  .cx-hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .cx-hero-left { padding-right: 0; }
  .cx-hero-right { padding-left: 0; border-left: 0; }
  .cx-mosaic { --cols: 7 !important; height: 30vh; min-height: 200px; margin-top: 36px; }
  .cx-mosaic > :nth-child(n+57) { display: none; }
  .cx-video .lp-player { max-width: 100%; }
  .cx-sec { padding: 64px 0; }
  .cx-mods-grid { grid-template-columns: 1fr; }
  .cx-mods-nav { position: static; flex-direction: row; overflow-x: auto; gap: 4px; padding-bottom: 6px; }
  .cx-mods-nav a { white-space: nowrap; }
  .cx-mods-list { gap: 64px; }
  .cx-mod-list { grid-template-columns: 1fr; }
  .cx-mod-title { flex-wrap: wrap; }
  .cx-plans-grid { grid-template-columns: minmax(0, 420px); }
  .cx-custom, .cx-integ-head { flex-direction: column; align-items: flex-start; }
  .cx-mock { padding: 12px !important; gap: 12px; }
  .cx-demo { padding-inline: 16px; }
}
@media (max-width: 560px) {
  .cx-top-in { padding-inline: 16px; gap: 12px; }
  .cx-round { display: none; }
  .cx-hero-mods { gap: 10px; justify-content: space-between; }
  .cx-hero-mod { font-size: 11px; }
  .cx-top-actions .cx-btn { height: 36px; padding: 0 14px; font-size: 13px; }
  .cx-top .cx-langs { display: none; }  /* no celular o seletor fica no rodapé */
  .cx-integ-row { grid-template-columns: repeat(2, 1fr); }
  .cx-demo-stage { min-height: 460px; }
  .cx-demo-ctl [data-list] { display: none; }
}

/* ==========================================================================
   Vídeo: player próprio no estilo do Clickmax. Caixa arredondada com sombra,
   play grande no meio enquanto parado, barra fina de progresso e controles
   brancos sobre um degradê escuro embaixo. Os controles somem tocando.
   ========================================================================== */
.lp-player {
  --p-accent: var(--ui-color-accent-main-primary);
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  overflow: hidden;
  background: var(--marca-950, #12040a);
  box-shadow: 0 30px 70px -30px rgb(var(--marca-900-rgb, 74 15 37) / .45), 0 0 0 1px rgba(0, 0, 0, .04);
  isolation: isolate;
}
.lp-player-video { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--marca-950, #12040a); cursor: pointer; }
.lp-player:fullscreen { border-radius: 0; max-width: none; aspect-ratio: auto; }
.lp-player:fullscreen .lp-player-video { object-fit: contain; }

.lp-player-big {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  width: 132px; height: 132px; margin: -66px 0 0 -66px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: var(--p-accent); color: #fff; cursor: pointer;
  box-shadow: 0 18px 50px -10px rgb(var(--marca-600-rgb, 178 30 75) / .6);
  transition: transform .25s cubic-bezier(.2, .9, .3, 1.3), opacity .2s, visibility .2s;
}
.lp-player-big svg { width: 58px; height: 58px; margin-left: 8px; }
.lp-player-big:hover { transform: scale(1.07); }
.lp-player-big::after {
  content: ""; position: absolute; inset: -10px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .55); animation: lp-pulse 2.2s ease-out infinite;
}
@keyframes lp-pulse { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.lp-player:not(.is-paused) .lp-player-big { opacity: 0; visibility: hidden; transform: scale(.8); }
.lp-player { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
/* baixando o vídeo depois do clique: o play vira um anel girando */
.lp-player.is-loading .lp-player-big svg { opacity: 0; }
.lp-player.is-loading .lp-player-big::before {
  content: ""; position: absolute; width: 40%; height: 40%; border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: lp-gira .8s linear infinite;
}
@keyframes lp-gira { to { transform: rotate(360deg); } }

.lp-player-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 60px 22px 14px;
  background: linear-gradient(to top, rgba(10, 6, 8, .82), rgba(10, 6, 8, .35) 55%, transparent);
  color: #fff;
  transition: opacity .3s, transform .3s;
}
.lp-player.is-idle:not(.is-paused) .lp-player-bar { opacity: 0; transform: translateY(12px); pointer-events: none; }
.lp-player.is-idle:not(.is-paused) .lp-player-video { cursor: none; }
.lp-player-track {
  position: relative; height: 5px; border-radius: 5px; margin: 0 0 12px;
  background: rgba(255, 255, 255, .28); cursor: pointer; touch-action: none;
  transition: height .15s;
}
.lp-player-track::before { content: ""; position: absolute; inset: -9px 0; }  /* área de toque maior */
.lp-player-track:hover, .lp-player-track.is-drag { height: 7px; }
.lp-player-track:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.lp-player-buffer, .lp-player-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; width: 0; }
.lp-player-buffer { background: rgba(255, 255, 255, .35); }
.lp-player-fill { background: var(--p-accent); }
.lp-player-fill i {
  position: absolute; right: -7px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .4);
  transform: scale(0); transition: transform .15s;
}
.lp-player-track:hover .lp-player-fill i, .lp-player-track.is-drag .lp-player-fill i { transform: scale(1); }

.lp-player-controls { display: flex; align-items: center; gap: 6px; }
.lp-pbtn {
  display: grid; place-items: center; flex: none;
  width: 48px; height: 48px; border: 0; border-radius: 999px;
  background: transparent; color: #fff; cursor: pointer;
  transition: background .15s, transform .15s;
}
.lp-pbtn svg { width: 30px; height: 30px; }
.lp-pbtn:hover { background: rgba(255, 255, 255, .14); }
.lp-pbtn:active { transform: scale(.92); }
.lp-pbtn:focus-visible, .lp-player-big:focus-visible, .lp-player-menu button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lp-player .i-pause, .lp-player .i-mute { display: none; }
.lp-player:not(.is-paused) .i-play { display: none; }
.lp-player:not(.is-paused) .i-pause { display: block; }
.lp-player.is-muted .i-vol { display: none; }
.lp-player.is-muted .i-mute { display: block; }

.lp-player-vol { display: flex; align-items: center; border-radius: 999px; transition: background .2s; }
.lp-player-vol:hover, .lp-player-vol:focus-within { background: rgba(255, 255, 255, .14); }
.lp-player-vol .lp-pbtn:hover { background: transparent; }
.lp-player-volrange { width: 0; opacity: 0; accent-color: #fff; transition: width .2s, opacity .2s, margin .2s; }
.lp-player-vol:hover .lp-player-volrange, .lp-player-vol:focus-within .lp-player-volrange { width: 86px; opacity: 1; margin-right: 16px; }

.lp-player-time { margin-left: 10px; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .85); white-space: nowrap; }
.lp-player-time b { color: #fff; font-weight: 700; }
.lp-player-grow { flex: 1; }

.lp-player-speed { position: relative; }
.lp-player-menu {
  position: absolute; right: 0; bottom: 58px;
  min-width: 150px; padding: 8px; border-radius: 14px;
  background: rgba(20, 12, 16, .92); backdrop-filter: blur(8px);
  display: flex; flex-direction: column; gap: 2px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
}
.lp-player-menu[hidden] { display: none; }
.lp-player-menu span { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .55); padding: 6px 10px 4px; }
.lp-player-menu button {
  border: 0; background: transparent; color: #fff; text-align: left;
  font: 600 15px/1 var(--ui-font-family-primary, inherit); padding: 10px; border-radius: 8px; cursor: pointer;
}
.lp-player-menu button:hover { background: rgba(255, 255, 255, .1); }
.lp-player-menu button.is-on { color: var(--lp-soft, var(--marca-200, #ffd3df)); }
.lp-player-menu button.is-on::after { content: " ✓"; }

@media (max-width: 760px) {
  .lp-player { border-radius: 18px; }
  .lp-player-big { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
  .lp-player-big svg { width: 28px; height: 28px; margin-left: 4px; }
  .lp-player-big::after { inset: -6px; }
  .lp-player-bar { padding: 36px 10px 6px; }
  .lp-pbtn { width: 38px; height: 38px; }
  .lp-pbtn svg { width: 24px; height: 24px; }
  .lp-player-time { font-size: 14px; margin-left: 4px; }
  .lp-player [data-p="back"], .lp-player [data-p="fwd"], .lp-player-volrange { display: none; }
}
@media (prefers-reduced-motion: reduce) { .lp-player-big::after { animation: none; } }



/* ==========================================================================
   Mockup do mensageiro do Bitrix24 (tema Air)
   ========================================================================== */
.b24 {
  --b24-blue: #0075ff;
  --b24-text: #151515;
  --b24-muted: #828b95;
  --b24-line: #edeef0;
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  background: radial-gradient(120% 90% at 100% 0%, #5dd2f3 0%, transparent 55%), linear-gradient(160deg, #0a4fa3 0%, #1677d8 55%, #29a8e6 100%);
  box-shadow: 0 24px 60px -24px rgb(10 40 90 / .45);
  font-size: 13px;
  line-height: 1.35;
  color: var(--b24-text);
  text-align: left;
}
.b24 .ui-icon { width: 18px; height: 18px; flex: none; }
.b24-top { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 14px; color: #fff; }
.b24-brand { display: inline-flex; align-items: center; gap: 2px; font-size: 17px; letter-spacing: -.01em; }
.b24-brand b { font-weight: 700; }
.b24-brand i { font-style: normal; font-weight: 700; color: #7fe3ff; }
.b24-brand-mark { display: grid; place-items: center; width: 26px; height: 26px; margin-right: 5px; border-radius: 50%; background: #fff; color: var(--b24-blue); }
.b24-search { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; margin-left: 8px; flex: 0 1 180px; border-radius: 99px; background: rgb(255 255 255 / .18); color: rgb(255 255 255 / .8); font-size: 12px; }
.b24-top-end { margin-left: auto; }
.b24-body { flex: 1; display: flex; gap: 6px; min-height: 0; padding: 0 6px 6px 0; }
.b24-rail { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 50px; padding-top: 4px; color: rgb(255 255 255 / .8); }
.b24-rail span { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; }
.b24-rail .ui-icon { width: 22px; height: 22px; }
.b24-rail span.is-active { background: rgb(255 255 255 / .22); color: #fff; }
.b24-rail em { position: absolute; top: 1px; right: 0; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: #ff5752; color: #fff; font-size: 10px; font-style: normal; font-weight: 700; line-height: 16px; text-align: center; }
.b24-list { display: none; flex: 0 0 196px; flex-direction: column; overflow: hidden; border-radius: 12px; background: #fff; }
@container (min-width: 520px) { .b24-list { display: flex; } }
.b24-list-head { padding: 12px 12px 8px; font-size: 14px; font-weight: 700; }
.b24-item { position: relative; display: flex; align-items: center; gap: 8px; margin: 0 6px; padding: 7px 6px; border-radius: 8px; }
.b24-item.is-active { background: #e5f1ff; }
.b24-item-text { flex: 1; min-width: 0; }
.b24-item-text strong { display: block; font-weight: 600; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b24-item-text small { display: block; color: var(--b24-muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b24-item time { position: absolute; top: 7px; right: 8px; color: var(--b24-muted); font-size: 10.5px; }
.b24-item em { position: absolute; right: 8px; bottom: 8px; min-width: 16px; height: 16px; border-radius: 99px; background: var(--b24-blue); color: #fff; font-size: 10px; font-style: normal; font-weight: 700; line-height: 16px; text-align: center; }
.b24-av { position: relative; display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--av, #2fc6f6); color: #fff; font-size: 14px; font-weight: 600; }
.b24-av.is-me { width: 30px; height: 30px; background: #fff; color: var(--b24-blue); box-shadow: 0 0 0 2px rgb(255 255 255 / .5); }
.b24-av b { position: absolute; right: -3px; bottom: -3px; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #25d366; box-shadow: 0 0 0 2px #fff; }
.b24-av b .ui-icon { width: 11px; height: 11px; color: #fff; }
.b24-chat { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; border-radius: 12px; background: #dfe8f0; }
.b24-chat-head { display: flex; align-items: center; gap: 9px; padding: 9px 12px; background: #fff; border-bottom: 1px solid var(--b24-line); }
.b24-chat-title { flex: 1; min-width: 0; }
.b24-chat-title strong { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.b24-chat-title small { display: block; color: var(--b24-muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b24-chip { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 9px; border-radius: 8px; border: 1px solid #dfe0e3; color: #525c69; font-size: 11.5px; font-weight: 500; white-space: nowrap; }
.b24-chip .ui-icon { width: 14px; height: 14px; }
.b24-chip.is-crm { border-color: transparent; background: #e5f1ff; color: var(--b24-blue); }
@container (max-width: 400px) { .b24-chip:not(.is-crm) { display: none; } }
.b24-feed {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 12px;
  background-image: radial-gradient(circle at 12px 12px, rgb(255 255 255 / .45) 1.5px, transparent 2px);
  background-size: 22px 22px;
}
.b24-date, .b24-system { align-self: center; padding: 3px 10px; border-radius: 99px; background: rgb(82 92 105 / .28); color: #fff; font-size: 11px; font-weight: 500; }
.b24-system { background: rgb(255 255 255 / .7); color: #525c69; font-weight: 400; }
.b24-msg { position: relative; align-self: flex-start; max-width: 82%; padding: 6px 10px 16px; border-radius: 12px 12px 12px 4px; background: #fff; }
.b24-msg small { display: flex; align-items: center; gap: 4px; margin-bottom: 1px; color: #e8a200; font-size: 11.5px; font-weight: 600; }
.b24-msg.is-own { align-self: flex-end; border-radius: 12px 12px 4px 12px; background: #d9f4c3; }
.b24-msg.is-own small { color: #2a8a1a; }
.b24-msg.is-bot small { color: #8e52ec; }
.b24-msg time { position: absolute; right: 8px; bottom: 3px; display: inline-flex; align-items: center; gap: 2px; color: var(--b24-muted); font-size: 10px; }
.b24-msg time .ui-icon { width: 13px; height: 13px; color: #1eae43; }
.b24-file { display: flex; align-items: center; gap: 8px; margin: 3px 0 5px; padding: 6px 8px; border-radius: 8px; background: rgb(255 255 255 / .6); }
.b24-file i { padding: 5px 5px; border-radius: 5px; background: #ff5752; color: #fff; font-size: 9.5px; font-style: normal; font-weight: 700; }
.b24-file span { font-size: 12px; font-weight: 600; }
.b24-file span small { display: block; margin: 0; color: var(--b24-muted) !important; font-weight: 400; font-size: 10.5px; }
.b24-input { display: flex; align-items: center; gap: 10px; margin: 0 10px 10px; padding: 7px 7px 7px 12px; border-radius: 12px; background: #fff; color: #a8adb4; }
.b24-input > span:not(.b24-send) { flex: 1; font-size: 12.5px; }
.b24-send { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--b24-blue); color: #fff; }
/* ícones de serviço do b24icons têm o desenho menor dentro da caixa */
.cx .ui-icon.cs { transform: scale(1.75); }


/* ==========================================================================
   Componentes reais do painel dentro da landing. O HTML é o mesmo do sistema
   (partials de home/, sla/, os blocos .bfe-n do editor, o chat .pg-* do
   playground, a gaveta .ui-drawer-panel das automações); aqui só a moldura
   que imita a tela do painel e o canvas do editor.
   ========================================================================== */
.cx-app {
  position: relative; overflow: hidden; text-align: left;
  padding: 20px; border-radius: 20px;
  background: var(--air-theme-bg-color, #f4f5f6);
  box-shadow: 0 0 0 1px var(--cx-line), var(--cx-shadow);
  font-family: var(--ui-font-family-primary); font-size: 14px; color: var(--ui-color-base-1);
  pointer-events: none; user-select: none;
}
.cx-app .page-header { margin-bottom: 16px; }
.cx-app .home-grid { margin-bottom: 0; }
.cx-app .card:last-child { margin-bottom: 0; }

/* editor de fluxos: grade de pontos e blocos com a mesma moldura do Drawflow */
.cx-app-canvas { padding: 0; height: 340px; }
.cx-app-canvas.is-tall { height: 420px; }
.cx-canvas {
  position: absolute; inset: 0; overflow: hidden;
  background: var(--air-theme-bg-color, #f4f5f6) radial-gradient(circle, rgb(0 32 64 / .13) 1px, transparent 1.3px) 0 0 / 20px 20px;
}
.cx-cena { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.cx-wires { position: absolute; left: 0; top: 0; overflow: visible; }
.cx-wires path { fill: none; stroke: var(--ui-color-base-5); stroke-width: 2; }
.cx-wires circle { fill: var(--ui-color-bg-content-primary); stroke: var(--ui-color-base-5); stroke-width: 2; }
.cx-demo .cx-wires [data-s] { transform: none; }
.cx-dfnode {
  position: absolute; width: 248px; z-index: 1;
  background: var(--ui-color-bg-content-primary); color: var(--ui-color-base-1);
  border: 1.5px solid var(--ui-color-base-7); border-radius: var(--ui-border-radius-md);
  box-shadow: 0 1px 2px rgb(0 32 64 / .06);
}
.cx-dfnode.is-pill { width: 158px; }
.cx-demo .cx-dfnode.is-now { border-color: var(--ui-color-accent-main-primary); box-shadow: 0 0 0 3px var(--ui-color-accent-soft-red-2), 0 6px 18px rgb(0 32 64 / .10); }

/* demonstrações: palco com os componentes */
.cx-mock-b24 { padding: 28px; }
.cx-mock-b24 .b24 { width: min(920px, 100%); height: min(500px, 100%); }
.cx-mock-split { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; align-items: stretch; padding: 24px; }
.cx-mock-split .cx-app-canvas { height: auto; }
.cx-app-pg { padding: 16px; display: flex; flex-direction: column; justify-content: flex-end; background: var(--ui-color-bg-content-primary); }
.cx-app-pg .pg-msgs { display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.cx-mock-drawer { padding: 24px; }
.cx-drawer { width: min(560px, 100%); height: auto; max-height: 100%; overflow: hidden; border-radius: 18px; border: 1px solid var(--ui-color-design-outline-stroke); box-shadow: 0 24px 64px -12px rgb(20 20 19 / .28); pointer-events: none; }
.cx-drawer .ui-drawer-body { overflow: hidden; scroll-behavior: smooth; }
.cx-app .ui-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cx-b24-wrap .b24 { height: 460px; }

@media (max-width: 860px) {
  .cx-mock-split { grid-template-columns: 1fr; }
  .cx-mock-split .cx-app-canvas { display: none; }
  .cx-app { padding: 14px; }
  .cx-app .ui-table-wrap { overflow: hidden; }
  .cx-app .ui-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cx-b24-wrap .b24 { height: 400px; }
}

/* ==========================================================================
   Voltar ao topo na landing: círculo escuro com um anel na cor da marca que
   enche conforme a página rola (--p, de 0 a 1, posto pelo js/ui.js). No hover
   sobe, ganha o degradê e a seta dá um pulinho para cima.
   ========================================================================== */
body:has(.cx) .back-top {
  width: 48px; height: 48px; border: 0; color: #fff; background: var(--marca-600, #b21e4b);
  box-shadow: 0 10px 28px -10px rgb(var(--marca-600-rgb, 178 30 75) / .6);
  transition: opacity .2s ease, transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease;
}
body:has(.cx) .back-top::before {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; pointer-events: none;
  background: conic-gradient(var(--marca-400, #e8577f) calc(var(--p, 0) * 1turn), rgb(var(--marca-600-rgb, 178 30 75) / .16) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
}
body:has(.cx) .back-top::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: linear-gradient(135deg, var(--marca-600, #b21e4b), var(--marca-400, #e8577f)); opacity: 0; transition: opacity .25s ease;
}
body:has(.cx) .back-top .ui-icon { position: relative; z-index: 1; }
body:has(.cx) .back-top:hover {
  background: var(--marca-600, #b21e4b); border: 0; color: #fff; transform: translateY(-4px);
  box-shadow: 0 16px 34px -10px rgb(var(--marca-600-rgb, 178 30 75) / .7);
}
body:has(.cx) .back-top:hover::after { opacity: 1; }
body:has(.cx) .back-top:hover .ui-icon { animation: cx-sobe .6s cubic-bezier(.2, .8, .2, 1); }
body:has(.cx) .back-top:active { transform: translateY(-1px) scale(.94); }
@keyframes cx-sobe {
  0% { transform: rotate(180deg) translateY(0); }
  45% { transform: rotate(180deg) translateY(5px); opacity: .35; }
  46% { transform: rotate(180deg) translateY(-5px); opacity: .35; }
  100% { transform: rotate(180deg) translateY(0); opacity: 1; }
}
@media (max-width: 639px) { body:has(.cx) .back-top { width: 44px; height: 44px; } }
@media (prefers-reduced-motion: reduce) { body:has(.cx) .back-top:hover .ui-icon { animation: none; } }

/* ==========================================================================
   Páginas legais (privacidade e termos), como as do Clickmax: fundo escuro,
   título grande, texto na largura do site, títulos numerados em negrito.
   ========================================================================== */
.cx-legal { background: #fff; color: var(--cx-ink); padding: 72px 0 104px; border-top: 1px solid var(--cx-line); }
.cx-legal-in { max-width: 1264px; margin: 0 auto; padding: 0 24px; }
.cx-legal .cx-eyebrow { color: var(--cx-soft); }
.cx-legal h1 { margin: 8px 0 12px; font-size: clamp(38px, 5vw, 60px); font-weight: 600; line-height: 1.05; letter-spacing: -0.035em; color: var(--cx-ink); }
.cx-legal-data { margin: 0; font-size: 13px; color: var(--cx-soft); }
.cx-legal-outros { display: flex; gap: 4px; margin: 28px 0 16px; padding: 4px; width: fit-content; border-radius: 999px; background: var(--cx-bg-2); }
.cx-legal-outros a:not(.cx-btn) { padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--cx-muted); }
.cx-legal-outros a[aria-current="page"] { background: #fff; color: var(--cx-ink) !important; box-shadow: 0 1px 2px rgba(20, 23, 26, .08); }
.cx-legal-texto { font-size: 16px; line-height: 1.65; color: #3a4148; }
.cx-legal-texto h2 { margin: 48px 0 14px; font-size: 24px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; color: var(--cx-ink); }
.cx-legal-texto p { margin: 0 0 16px; }
.cx-legal-texto ul { margin: 0 0 16px; padding-left: 22px; }
.cx-legal-texto li { margin: 8px 0; }
.cx-legal-texto li::marker { color: var(--cx-brand-2); }
.cx-legal-texto strong, .cx-legal-texto dt { color: var(--cx-ink); font-weight: 600; }
.cx-legal a:not(.cx-btn) { color: var(--cx-brand); text-underline-offset: 3px; }
.cx-legal-glossario { display: grid; grid-template-columns: 180px 1fr; gap: 12px 24px; margin: 0 0 16px; }
.cx-legal-glossario dd { margin: 0; }
.cx-legal-tabela { margin: 20px 0 16px; overflow-x: auto; border: 1px solid var(--cx-line); border-radius: 12px; }
.cx-legal-tabela table { width: 100%; border-collapse: collapse; font-size: 15px; }
.cx-legal-tabela th, .cx-legal-tabela td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--cx-line); }
.cx-legal-tabela thead th { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--cx-soft); background: var(--cx-bg); }
.cx-legal-tabela tbody th { width: 240px; color: var(--cx-ink); font-weight: 600; }
.cx-legal-tabela tr:last-child > * { border-bottom: 0; }
.cx-legal-contato { margin-top: 56px; padding: 22px 24px; border-radius: 16px; background: var(--cx-bg); box-shadow: inset 0 0 0 1px var(--cx-line); }
.cx-legal-contato strong { color: var(--cx-ink); }
.cx-legal-contato p { margin: 6px 0 0; font-size: 15px; color: var(--cx-muted); }
@media (max-width: 640px) {
  .cx-legal { padding: 44px 0 72px; } .cx-legal-in { padding: 0 16px; }
  .cx-legal-glossario { grid-template-columns: 1fr; gap: 2px; } .cx-legal-glossario dd { margin-bottom: 10px; }
  .cx-legal-tabela tbody th { width: auto; }
}

/* idiomas no rodapé (no celular é o único lugar onde aparecem) */
.cx-foot .cx-langs { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); width: fit-content; }
.cx-foot .cx-langs button { color: #8a929c; }
.cx-foot .cx-langs button:hover, .cx-foot .cx-langs button[aria-current="true"] { color: #fff; }
.cx-foot-copy { display: inline-flex; align-items: center; gap: 16px; flex-wrap: wrap; }
