/* Chat do Marvin compartilhado pela home e pela página de trial. */

:is(.th-cap,.sc-caso,.th-casos-cards li){--af-c:200,208,232}
:is(.th-cap,.sc-caso,.th-casos-cards li)[data-area="receita"]{--af-c:57,114,253}
:is(.th-cap,.sc-caso,.th-casos-cards li)[data-area="operacao"]{--af-c:250,152,0}
:is(.th-cap,.sc-caso,.th-casos-cards li)[data-area="tecnologia"]{--af-c:163,100,255}
:is(.th-cap,.sc-caso,.th-casos-cards li)[data-area="pessoas"]{--af-c:250,61,133}
:is(.th-cap,.sc-caso,.th-casos-cards li)[data-area="backoffice"]{--af-c:0,183,180}
.th-chat{position:fixed;right:24px;bottom:24px;z-index:60;display:flex;flex-direction:column;align-items:flex-end;gap:12px;pointer-events:none}
.th-chat[hidden]{display:none}
.th-chat>*{pointer-events:auto}
.th-chat-abre{
  position:relative;isolation:isolate;display:grid;place-items:center;width:64px;height:64px;padding:0;border:0;border-radius:50%;
  background:none;cursor:pointer;
  transition:transform .3s var(--ease-soft);
}
.th-chat-abre::before{
  content:"";position:absolute;z-index:-1;inset:-5px;border-radius:50%;pointer-events:none;
  background:conic-gradient(from 0deg,#3972FD,#A364FF,#FA9800,#34D399,#5BC0BE,#3972FD);
  filter:blur(12px);opacity:.55;animation:thAura 9s linear infinite;
  transition:opacity .3s var(--ease-soft),inset .3s var(--ease-soft);
}
.th-chat-abre::after{
  content:"";position:absolute;z-index:0;inset:0;border-radius:50%;pointer-events:none;
  background:radial-gradient(circle at 50% 28%,#fff 0%,#F4F6FC 60%,#E6EBF7 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.95),inset 0 -5px 10px -6px rgba(40,60,120,.3),
    0 1px 2px rgba(4,8,31,.3),0 14px 30px -12px rgba(4,8,31,.7);
}
.th-chat-abre .mv-vivo{position:relative;z-index:1}
.th-chat-abre .mv-olho{fill:#141B33}
.th-chat-abre:hover{transform:translateY(-2px) scale(1.05)}
.th-chat-abre:hover::before{opacity:.85;inset:-8px}
.th-chat-abre:focus-visible{outline:2px solid #fff;outline-offset:6px}
.th-chat-abre .mv-vivo{--mv:34px}
.mv-vivo{position:relative;display:block;width:var(--mv,30px);aspect-ratio:1272/912;animation:mvRespira 4.8s ease-in-out infinite}
.mv-vivo>img,.mv-vivo>svg{position:absolute;inset:0;display:block;width:100%;height:100%}
.mv-olhos{animation:mvOlha 9s ease-in-out infinite;transition:transform .35s var(--ease-soft)}
.mv-olho{fill:#fff;transform-box:fill-box;transform-origin:50% 50%;animation:mvPisca 4.6s ease-in-out infinite}
.th-chat-abre:hover .mv-olhos{animation:none;transform:translate(0,-34px)}
@keyframes mvPisca{0%,41%,49%,100%{transform:scaleY(1)}45%{transform:scaleY(.1)}}
@keyframes mvOlha{0%,26%{transform:translate(0,0)}32%,48%{transform:translate(48px,-10px)}54%,70%{transform:translate(-42px,4px)}76%,100%{transform:translate(0,0)}}
@keyframes mvRespira{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-3%) rotate(-2deg)}}
.th-chat.is-aberto .th-chat-abre{display:none}
.th-chat-ping{
  position:absolute;z-index:2;top:-5px;right:-5px;display:grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:11px;
  background:#FF4D5E;color:#fff;font-size:12px;font-weight:700;line-height:1;border:2px solid #fff;
  box-shadow:0 4px 12px -2px rgba(255,77,94,.7);
  opacity:0;scale:.4;transition:opacity .3s var(--ease-soft),scale .45s cubic-bezier(.34,1.56,.64,1);
}
.th-chat.tem-ping .th-chat-ping{opacity:1;scale:1}
.th-chat.cutuca .th-chat-abre{animation:thChatCutuca .9s var(--ease-soft)}
@keyframes thChatCutuca{
  0%,100%{transform:none}
  20%{transform:translateY(-6px) rotate(-8deg)}
  40%{transform:translateY(0) rotate(6deg)}
  60%{transform:translateY(-3px) rotate(-4deg)}
  80%{transform:translateY(0) rotate(2deg)}
}
.th-chat-balao{
  position:relative;isolation:isolate;max-width:290px;margin:0 0 -6px;padding:12px 18px 29px;
  color:var(--light-tx);font-size:16.5px;font-weight:500;line-height:1.4;
  cursor:pointer;
  opacity:0;translate:0 10px;scale:.96;transform-origin:100% 100%;pointer-events:none;
  transition:opacity .4s var(--ease-soft),translate .4s var(--ease-soft),scale .4s var(--ease-soft);
}
.th-chat-balao::before{
  content:"Marvin";display:block;margin-bottom:3px;font-size:12px;font-weight:600;letter-spacing:.02em;color:#3972FD;
}
.th-chat-balao-forma{
  position:absolute;z-index:-1;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;
  filter:drop-shadow(0 1px 2px rgba(4,8,31,.12)) drop-shadow(0 14px 22px rgba(4,8,31,.34)) drop-shadow(0 0 26px rgba(57,114,253,.16));
}
.th-chat-balao-forma path{fill:#F8FAFE;stroke:#fff;stroke-width:1}
.th-chat.tem-balao:not(.is-aberto) .th-chat-balao{opacity:1;translate:0 0;scale:1;pointer-events:auto}
.th-chat.is-aberto .th-chat-balao{display:none}
.th-chat-janela{
  display:none;flex-direction:column;width:390px;height:min(680px,calc(100vh - 48px));overflow:hidden;
  border-radius:28px;border:1px solid rgba(255,255,255,.14);text-align:left;
  background:
    radial-gradient(420px 260px at 0% 110%,rgba(91,192,190,.12),transparent 66%),
    radial-gradient(420px 260px at 100% 110%,rgba(163,100,255,.12),transparent 66%),
    var(--bg);
  box-shadow:0 40px 90px -24px rgba(0,0,0,.92),0 0 120px -20px rgba(57,114,253,.5);
  transform-origin:100% 100%;
}
.th-chat.is-aberto .th-chat-janela{display:flex;animation:thChatEntra .32s var(--ease-soft)}
.th-chat.is-aberto{right:0;bottom:0}
.th-chat.is-aberto .th-chat-janela{height:min(700px,calc(100vh - 110px));border-radius:24px 0 0 0;border-right:0;border-bottom:0}
@keyframes thChatEntra{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}
.th-chat-topo{display:flex;align-items:center;gap:13px;padding:18px 16px 16px 18px;border-bottom:1px solid var(--line);background:linear-gradient(180deg,rgba(57,114,253,.16),rgba(57,114,253,.04))}
.th-chat-av{
  position:relative;display:grid;place-items:center;flex:none;width:46px;height:46px;border-radius:14px;
  background:linear-gradient(150deg,rgba(255,255,255,.13),rgba(255,255,255,.04));border:1px solid rgba(255,255,255,.14);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 8px 20px -10px rgba(0,0,0,.8);
}
.th-chat-av .mv-vivo{--mv:30px}
.th-chat-on{position:absolute;right:-3px;bottom:-3px;width:12px;height:12px;border-radius:50%;background:#22C55E;border:2px solid #0B1230;box-shadow:0 0 0 3px rgba(34,197,94,.18)}
.th-chat-nome{display:flex;flex-direction:column;gap:2px;line-height:1.25}
.th-chat-nome b{font-size:16px;font-weight:600;color:#fff}
.th-chat-nome small{font-size:12.5px;color:#9aa0bd}
.th-chat .sc-msg+.sc-msg::before{display:none}
.th-chat .sc-apres b{display:block;margin-bottom:2px;font-weight:600;color:#fff}
.th-chat-x{
  margin-left:auto;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;cursor:pointer;
  color:#fff;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);
}
.th-chat-x:hover{background:rgba(255,255,255,.12)}
.th-chat-x:focus-visible{outline:2px solid #fff;outline-offset:2px}
.th-chat-x svg{width:16px;height:16px}
.th-conv{flex:1;min-width:0;min-height:0;display:flex;flex-direction:column}
.th-chat .sc-log{
  flex:1;min-height:0;overflow-y:auto;padding:16px 14px 10px 50px;gap:10px;
  scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.3) transparent;
}
.th-chat .sc-log>*{flex:none;scroll-margin:10px 0}
.th-chat .mv-bar{margin:10px 14px 14px;padding:10px 12px 10px 14px;border-radius:16px;background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.12);box-shadow:inset 0 1px 0 rgba(255,255,255,.05)}
.th-chat .mv-bar-tx{font-size:14px}
.th-chat .mv-bar-send{width:28px;height:28px;background:#3972FD;color:#fff}
.th-chat .sc-msg{
  text-wrap:pretty;
  font-size:15px;padding:10px 14px;border-radius:4px 18px 18px 18px;color:#E7EAF6;
  background:linear-gradient(150deg,rgba(255,255,255,.11),rgba(255,255,255,.06));border-color:rgba(255,255,255,.1);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
}
.th-chat .sc-msg::before{left:-36px;width:26px;height:26px;top:5px}
.th-chat .sc-eu{font-size:15px;padding:9px 14px;border-radius:18px 18px 4px 18px;background:linear-gradient(135deg,#3972FD,#4F86FF);box-shadow:0 10px 24px -14px rgba(57,114,253,.9)}
.th-chat .sc-eu:hover{background:linear-gradient(135deg,#2F64EA,#3972FD);border-color:transparent}
.th-chat .sc-opts{gap:6px}
.th-chat .sc-log .af-btn{font-size:14px;font-weight:500;padding:8px 14px;min-height:38px;color:#fff;background:rgba(57,114,253,.18);border-color:rgba(111,150,255,.5);box-shadow:inset 0 1px 0 rgba(255,255,255,.06)}
.th-chat .sc-log .af-btn:hover{color:#fff;background:rgba(57,114,253,.36);border-color:rgba(130,170,255,.95)}
.th-chat .sc-log .af-btn:focus-visible{outline:2px solid rgba(130,170,255,.75);outline-offset:2px}
.th-chat .sc-dica{font-size:12.5px;color:#9aa0bd}
.th-chat .sc-opts.is-areas{grid-template-columns:1fr}
.th-chat .sc-opts.is-areas .af-btn{display:grid;grid-template-columns:auto 1fr;column-gap:12px;row-gap:2px;align-items:center;padding:8px 12px;border-radius:12px}
.th-chat .sc-opts.is-areas .sc-opt-ic{grid-row:1/span 2;margin-bottom:0;width:18px;height:18px;padding:6px}
.th-chat .sc-opt-d{font-size:13px}
.th-chat .sc-casos{grid-template-columns:1fr;gap:8px}
.th-chat .sc-fim{flex-direction:column;align-items:stretch;gap:10px}
.th-chat .sc-cta{text-align:center;font-size:15px;min-height:44px}
.th-chat .sc-nota{flex:none;max-width:none;font-size:13px}
.th-chat .sc-outras{padding-top:12px;row-gap:10px}
.th-chat .sc-outras-l{flex-basis:100%;font-size:13px}
.th-chat .sc-log .sc-outras .af-btn{min-height:34px;padding:6px 13px;font-size:13.5px}
.th-chat .sc-mudar{margin-left:auto;font-size:13px}
@media(max-width:600px){
  .th-chat{right:16px;bottom:16px}
  .th-chat.is-aberto{inset:0;align-items:stretch}
  .th-chat.is-aberto .th-chat-janela{width:auto;height:auto;flex:1;border-radius:0;border:0}
  .th-chat-balao{max-width:230px;font-size:15px}
  .th-chat-abre{width:58px;height:58px}
  .th-chat-abre .mv-vivo{--mv:31px}
}
@media(prefers-reduced-motion:reduce){
  .th-chat.is-aberto .th-chat-janela{animation:none}
  .th-chat-balao{transition:none}
  .th-chat.cutuca .th-chat-abre,.th-chat-abre::before{animation:none}
  .th-chat-ping{transition:none}
  .mv-vivo,.mv-olhos,.mv-olho{animation:none}
}

.sc-log{display:flex;flex-direction:column;gap:14px}
.sc-log>*{scroll-margin:var(--lp-safe-top,96px) 0 24px}
.sc-msg{
  align-self:flex-start;max-width:min(640px,94%);margin:0;padding:13px 17px;
  border-radius:4px 14px 14px 14px;
  background:rgba(255,255,255,.05);border:1px solid var(--line);
  color:#D7DBEA;font-size:16px;line-height:1.5;text-wrap:pretty;
}
.sc-eu{
  align-self:flex-end;max-width:80%;margin:0;padding:11px 17px;
  display:inline-flex;align-items:center;gap:9px;
  border-radius:14px;
  background:#232B4D;border:1px solid transparent;
  color:#fff;font-family:inherit;font-size:16px;font-weight:500;line-height:1.4;text-align:left;
  cursor:pointer;transition:background .25s var(--ease-soft),border-color .25s var(--ease-soft);
}
.sc-eu::after{
  content:"";flex:none;width:14px;height:14px;background:currentColor;opacity:.55;
  -webkit-mask:var(--sc-lapis) center/contain no-repeat;mask:var(--sc-lapis) center/contain no-repeat;
  transition:opacity .25s var(--ease-soft);
  --sc-lapis:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z'/%3E%3C/svg%3E");
}
.sc-eu:hover{background:#2B3560;border-color:rgba(255,255,255,.14)}
.sc-eu:hover::after,.sc-eu:focus-visible::after{opacity:1}
.sc-msg{position:relative}
.sc-msg::before{
  content:"";position:absolute;left:-38px;top:5px;width:28px;height:28px;
  background:url(/site/icons/marvin.svg) center/contain no-repeat;
}
.sc-digitando{display:inline-flex;gap:5px;padding:16px 18px}
.sc-digitando span{
  width:7px;height:7px;border-radius:50%;background:#9aa0bd;
  animation:scPisca 1s ease-in-out infinite;
}
.sc-digitando span:nth-child(2){animation-delay:.15s}
.sc-digitando span:nth-child(3){animation-delay:.3s}
@keyframes scPisca{0%,80%,100%{opacity:.3;transform:none}40%{opacity:1;transform:translateY(-3px)}}
.sc-opts{display:flex;flex-wrap:wrap;gap:8px}
.sc-log .af-btn{
  font-family:inherit;font-size:16px;font-weight:600;padding:10px 16px;color:#fff;
  background:rgba(57,114,253,.14);border:1px solid rgba(57,114,253,.5);
  -webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:none;
  transition:background .25s var(--ease-soft),border-color .25s var(--ease-soft),translate .25s var(--ease-soft);
}
.sc-log .af-btn:hover{color:#fff;background:rgba(57,114,253,.32);border-color:rgba(111,168,255,.9);translate:0 -1px}
.sc-log .af-btn:active{translate:0 0}
.sc-dica{flex-basis:100%;grid-column:1/-1;display:flex;align-items:center;gap:8px;font-size:14px;font-weight:500;color:var(--white);margin-top:2px}
.sc-dica::before{
  content:"";flex:none;width:16px;height:16px;background:#9DBEFF;
  -webkit-mask:var(--sc-brilho) center/contain no-repeat;mask:var(--sc-brilho) center/contain no-repeat;
  --sc-brilho:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M12 3c.6 4.9 3.1 8.4 9 9-5.9.6-8.4 4.100-9 9-.6-4.900-3.100-8.400-9-9 5.900-.6 8.400-4.100 9-9Z'/%3E%3C/svg%3E");
}
.sc-opts.is-areas{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px}
.sc-opts.is-areas .af-btn{
  flex-direction:column;align-items:flex-start;gap:3px;
  border-radius:14px;padding:13px 16px;text-align:left;
}
.sc-opt-ic{box-sizing:content-box;width:20px;height:20px;padding:7px;margin-bottom:5px;border-radius:10px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.06)}
.sc-opt-n{font-weight:600;color:#fff}
.sc-opt-d{font-size:14px;color:#9aa0bd;line-height:1.35}
.sc-resp{display:flex;flex-direction:column;gap:16px}
.sc-resp>.sc-msg:focus,.sc-resp>.sc-msg:focus-visible{outline:none}
.sc-casos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.sc-caso{
  /* coluna: os cards da fileira ficam da mesma altura e os ícones dos apps
     pousam no pé */
  position:relative;overflow:hidden;display:flex;flex-direction:column;padding:13px 14px 12px;border-radius:14px;
  background:
    radial-gradient(120% 90% at 0% 0%,rgba(var(--af-c),.09),transparent 62%),
    linear-gradient(145deg,rgba(255,255,255,.065),rgba(255,255,255,.018));
  border:1px solid rgba(255,255,255,.08);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07);
  -webkit-backdrop-filter:blur(14px) saturate(1.2);backdrop-filter:blur(14px) saturate(1.2);
  transition:border-color .25s var(--ease-soft),background .25s var(--ease-soft);
}
.sc-caso:hover,.sc-caso.is-open{
  border-color:rgba(255,255,255,.13);
  background:
    radial-gradient(120% 90% at 0% 0%,rgba(var(--af-c),.14),transparent 64%),
    linear-gradient(145deg,rgba(255,255,255,.08),rgba(255,255,255,.025));
}
.sc-caso-t{margin:0}
.sc-caso-bt{
  display:flex;align-items:flex-start;gap:10px;width:100%;padding:0;border:0;background:none;cursor:pointer;text-align:left;
  font-family:var(--font);font-size:15px;font-weight:600;letter-spacing:-.01em;line-height:1.3;color:var(--white);
}
.sc-caso-bt span{flex:1;text-wrap:balance}
.sc-caso-bt::after{
  content:"";flex:none;width:8px;height:8px;margin:4px 3px 0 0;border:solid var(--muted);border-width:0 2px 2px 0;rotate:45deg;
  transition:rotate .25s var(--ease-soft),translate .25s var(--ease-soft);
}
.sc-caso.is-open .sc-caso-bt::after{rotate:225deg;translate:0 4px}
.sc-caso-bt:focus-visible{outline:2px solid rgb(var(--af-c));outline-offset:4px;border-radius:4px}
.sc-apps{display:flex;flex-wrap:wrap;gap:5px;margin:auto 0 0;padding:10px 0 0;list-style:none}
.sc-apps li{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.05)}
.sc-apps img{width:16px;height:16px;display:block}
.sc-caso-mais{display:none}
.sc-caso.is-open .sc-caso-mais{display:block}
.sc-caso-d{font-size:14px;color:var(--muted);line-height:1.45;margin:10px 0 0;text-wrap:pretty}
.sc-caso-d b{color:#cfd3e6;font-weight:600}
.sc-caso-ia{
  display:flex;gap:7px;align-items:flex-start;margin:9px 0 0;padding:8px 9px;
  border-radius:10px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.06);
  font-size:14px;line-height:1.45;color:#D7DBEA;text-wrap:pretty;
}
.sc-caso-ia img{width:18px;height:18px;flex:none;display:block;margin-top:1px}
.th-conv{position:relative}
.sc-role{
  position:absolute;left:50%;bottom:74px;z-index:2;translate:-50% 6px;opacity:0;pointer-events:none;
  display:inline-flex;align-items:center;gap:6px;padding:6px 12px 6px 9px;border-radius:999px;white-space:nowrap;
  font-size:13px;font-weight:600;color:#fff;background:rgba(35,43,77,.96);border:1px solid rgba(255,255,255,.16);
  box-shadow:0 10px 24px -10px rgba(0,0,0,.8);
  transition:opacity .3s var(--ease-soft),translate .3s var(--ease-soft);
}
.sc-role svg{width:14px;height:14px;animation:scDesce 1.6s ease-in-out infinite}
@keyframes scDesce{0%,100%{translate:0 -1px}50%{translate:0 2px}}
.th-conv::after{
  content:"";position:absolute;left:0;right:0;bottom:64px;height:72px;z-index:1;pointer-events:none;opacity:0;
  background:linear-gradient(180deg,rgba(4,8,31,0),rgba(4,8,31,.92));transition:opacity .3s var(--ease-soft);
}
.th-conv.tem-mais::after{opacity:1}
.th-conv.tem-mais .sc-role{opacity:1;translate:-50% 0}
@media(prefers-reduced-motion:reduce){.sc-role svg{animation:none}}
.sc-fim{display:flex;align-items:center;gap:14px 22px;flex-wrap:wrap;margin-top:6px}
.sc-cta{flex:none}
.sc-nota{flex:1 1 280px;max-width:46ch;font-size:14px;color:var(--muted);line-height:1.5;margin:0}
.sc-outras{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding-top:16px;margin-top:4px;border-top:1px solid var(--line)}
.sc-outras-l{font-size:14px;color:var(--muted)}
.sc-outras .sc-opts{display:contents}
.sc-log .sc-outras .af-btn{font-size:14px;padding:7px 13px}
.sc-mudar{
  background:none;border:0;padding:7px 4px;cursor:pointer;
  font-family:var(--font);font-size:14px;color:#cfd3e6;
  text-decoration:underline;text-underline-offset:3px;
}
.sc-mudar:hover{color:#fff}
.sc-mudar:focus-visible{outline:2px solid #fff;outline-offset:2px;border-radius:4px}
@media(prefers-reduced-motion:no-preference){
  .sc-log>:not(.sc-resp),.sc-resp>:not(.sc-casos),.sc-caso{
    transition:opacity .36s var(--ease-soft),translate .36s var(--ease-soft);
  }
  .sc-log>.sc-eu{transition:opacity .36s var(--ease-soft),translate .36s var(--ease-soft),background .25s var(--ease-soft),border-color .25s var(--ease-soft)}
  .sc-caso:nth-child(2){transition-delay:.05s}
  .sc-caso:nth-child(3){transition-delay:.1s}
  .sc-caso:nth-child(4){transition-delay:.15s}
  .sc-caso:nth-child(5){transition-delay:.2s}
  .sc-caso:nth-child(6){transition-delay:.25s}
  @starting-style{
    .sc-log>:not(.sc-resp),.sc-resp>:not(.sc-casos),.sc-caso{opacity:0;translate:0 8px}
  }
}
@media(max-width:600px){
  .sc-log .sc-outras .af-btn{min-height:40px}
}
@media(prefers-reduced-motion:reduce){
  .sc-digitando span{animation:none}
}