/* The product's screens, redrawn. Everything here belongs to the windows and carries its own
   prefixes (ps-, app-, ib-, kb-, lz-, wa-), so nothing mixes with the rest of the site.
   Layout and controls follow the product. These illustrations use the campaign palette. A window is a size container and its frame takes the type size from the window's
   width, so the whole window scales like a picture. Everything inside is in em. */

.ps-window {
  --p-orange: var(--action-coral);
  --p-pink: var(--action-pink);
  --p-brand: var(--action-pink);
  --p-pink-50: var(--demo-rose-wash);
  --p-pink-200: color-mix(in srgb, var(--action-pink) 26%, white);
  --p-ink: #1a1a1a;
  --p-text: #3d3d3d;
  --p-soft: #6d6d6d;
  --p-line: #e7e7e7;
  --p-fill: #f7f7f7;
  --p-chat: var(--demo-thread);
  --p-bubble: var(--demo-reply);
  --p-green: var(--action-wine);
  /* Stage colours of the funnel in the site's own demos. */
  --color-stage-novos: #b48596;
  --color-stage-qualificados: var(--action-coral);
  --color-stage-proposta: #c67466;
  --color-stage-negociacao: #a55777;
  --color-stage-fechados: var(--action-wine);
  container-type: inline-size;
  height: 100%;
  overflow: hidden;
  background: #fff;
  color: var(--p-ink);
}
.ps-frame {
  display: flex;
  flex-direction: column;
  height: 100%;
  font: 500 clamp(6.5px, 0.98cqw, 13.5px) / 1.45 var(--leadzy-font);
}
.ps-frame p,
.ps-frame dl,
.ps-frame dd {
  margin: 0;
  color: inherit;
}
.ps-frame small {
  font-size: 0.86em;
  color: var(--p-soft);
}
.ps-frame b {
  font-weight: 600;
}
.ps-frame .i {
  width: 1.3em;
  height: 1.3em;
}
.ps-logo {
  flex: none;
  width: 7.6em;
  height: 1.82em;
  color: var(--p-ink);
}
.ps-face {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.7em;
  height: 2.7em;
  border-radius: 50%;
  background: #ececec;
  font-weight: 600;
  font-size: 0.82em;
  color: #4f4f4f;
  object-fit: cover;
}
img.ps-face {
  width: 2.2em;
  height: 2.2em;
  font-size: 1em;
}
.ps-face[data-tone="4"] { background: #1a1a1a; color: #fff; }
/* Skeleton: the parts of a screen that do not explain the feature keep their shape only. */
.sk {
  display: block;
  width: var(--w, 60%);
  height: 0.72em;
  border-radius: 0.4em;
  background: #e9e9e9;
}
.sk-thin {
  height: 0.56em;
  background: #f0f0f0;
}
.sk-face {
  flex: none;
  width: 2.2em;
  height: 2.2em;
  border-radius: 50%;
}
.is-ghost > div {
  display: flex;
  flex-direction: column;
  gap: 0.55em;
}
.ib-conv.is-ghost {
  align-items: center;
}
.kb-card.is-ghost {
  gap: 0.6em;
  outline: 1px solid #ededed;
}
/* Tags are neutral: only the brand colours carry colour inside a window. */
.pill {
  padding: 0.12em 0.6em;
  border-radius: 2em;
  background: #f0f0f0;
  font-weight: 600;
  font-size: 0.76em;
  color: #4f4f4f;
  white-space: nowrap;
}
.pill-deal {
  background: var(--p-pink-50);
  color: var(--action-wine);
}

/* ---------------------------------------------------------------- the app's top bar */

.app-top {
  display: flex;
  flex: none;
  align-items: center;
  gap: 1.2em;
  height: 4.6em;
  padding-right: 1.4em;
  border-bottom: 1px solid var(--p-line);
}
/* The Chat cabin, with the values of LzHeaderChatCabin.vue: pale gradient, diagonal cut. */
.app-cabin {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.8em;
  align-self: stretch;
  padding-inline: 1.1em 3.1em;
  background: linear-gradient(115deg, #fff 0%, #faeef4 55%, #faefe7 100%);
  clip-path: polygon(0 0, 100% 0, calc(100% - 1.7em) 100%, 0 100%);
  color: var(--p-text);
  line-height: 1;
}
.app-cabin.is-idle {
  opacity: 0.8;
  filter: saturate(0.55);
}
.ps-crm {
  flex: none;
  width: 2.15em;
  height: 2.15em;
  margin-inline: 0.45em;
}
.app-cabin > span {
  display: flex;
  flex-direction: column;
  gap: 0.35em;
}
.app-cabin b {
  display: flex;
  align-items: center;
  gap: 0.45em;
  font-weight: 700;
  font-size: 1.16em;
  letter-spacing: -0.02em;
}
.app-cabin i {
  width: 0.72em;
  height: 0.72em;
  border: 0.16em solid #fff;
  border-radius: 50%;
  background: var(--action-wine);
}
.app-cabin i + i {
  margin-left: -0.75em;
  background: var(--action-coral);
}
.app-cabin small {
  display: flex;
  align-items: center;
  gap: 0.2em;
  font-size: 0.85em;
  color: var(--p-soft);
  white-space: nowrap;
}
.app-cabin u {
  width: 0.2em;
  height: 0.2em;
  border-radius: 50%;
  background: var(--p-pink);
}
.app-cabin u:first-of-type {
  margin-left: 0.25em;
}
.app-top nav {
  display: flex;
  gap: 0.3em;
  margin-right: auto;
}
.app-top nav span,
.app-sub span {
  padding: 0.5em 0.9em;
  border-radius: 0.7em;
  color: var(--p-soft);
}
/* The lit module: a faint pink fill and an inset ring (LzHeaderNavGroupV2.vue). */
.app-top nav .is-on,
.app-sub .is-on {
  background: rgb(237 3 115 / 5%);
  outline: 1px solid rgb(237 3 115 / 14%);outline-offset: -1px;
  color: var(--p-ink);
}
.app-search,
.app-find {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.6em 1em;
  border: 1px solid var(--p-line);
  border-radius: 0.8em;
  color: #757575;
}
.app-search {
  width: 15em;
}
.app-tool {
  display: grid;
  place-items: center;
  color: var(--p-soft);
}
.app-sub {
  display: flex;
  flex: none;
  gap: 0.3em;
  padding: 0.7em 1.4em;
  border-bottom: 1px solid var(--p-line);
}

/* ---------------------------------------------------------------- a conversation */

.wa-chat-head {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.9em;
  min-height: 4.6em;
  padding-inline: 1.4em;
  border-bottom: 1px solid var(--p-line);
  background: #fff;
  line-height: 1.25;
}
.wa-chat-head small {
  display: block;
}
.wa-chat-head > :nth-child(2) {
  margin-right: auto;
}
.ib-ctl {
  display: flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.5em 0.9em;
  border: 1px solid var(--p-line);
  border-radius: 0.8em;
  color: var(--p-text);
  white-space: nowrap;
}
.ib-ctl .i {
  width: 1.05em;
  height: 1.05em;
}
.ib-ctl.is-ai {
  border-color: var(--p-pink-200);
  background: var(--p-pink-50);
  color: var(--action-wine);
}
.wa-thread {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.7em;
  min-height: 0;
  padding: 1.4em 1.6em;
  overflow: hidden;
  background: var(--p-chat);
}
.msg {
  position: relative;
  max-width: 72%;
  padding: 0.75em 1em;
  border-radius: 1em;
  line-height: 1.45;
}
.msg time {
  margin-left: 0.8em;
  font-size: 0.8em;
  color: #757575;
}
.msg-in {
  align-self: flex-start;
  border-bottom-left-radius: 0.25em;
  background: #fff;
  outline: 1px solid rgb(16 16 16 / 6%);
}
.msg-ai,
.msg-out {
  align-self: flex-end;
  border-bottom-right-radius: 0.25em;
  background: var(--p-bubble);
}
.ps-frame :is(.msg-ai, .msg-out) {
  color: var(--demo-reply-ink);
}
.ps-frame :is(.msg-ai, .msg-out) :is(em, time, small, .msg-voice) {
  color: var(--demo-reply-meta);
}
.msg-ai em,
.sug b {
  display: flex;
  align-items: center;
  gap: 0.35em;
  margin-bottom: 0.25em;
  font-style: normal;
  font-weight: 600;
  font-size: 0.8em;
  color: var(--p-pink);
}
.msg-ai em .i,
.sug b .i,
.ai-banner .i {
  width: 1.1em;
  height: 1.1em;
}
.ai-banner {
  display: flex;
  align-items: center;
  align-self: center;
  gap: 0.4em;
  padding: 0.35em 0.9em;
  border-radius: 2em;
  background: #fff;
  font-size: 0.86em;
  color: var(--action-wine) !important;
  outline: 1px solid rgb(16 16 16 / 6%);
}
.msg-stack {
  display: grid;
}
.msg-stack > * {
  grid-area: 1 / 1;
}
.msg-stack .msg-ai {
  justify-self: end;
}
.msg-stack .ai-banner {
  justify-self: center;
  align-self: end;
  opacity: 0;
}
.day {
  align-self: center;
  padding: 0.3em 0.9em;
  border-radius: 0.6em;
  background: #fff;
  font-size: 0.82em;
  color: var(--p-soft);
}
.wa-composer {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.9em;
  min-height: 4.2em;
  margin: 0 1.4em 1.2em;
  padding: 0.7em 1.2em;
  border: 1px solid var(--p-line);
  border-radius: 1em;
  background: #fff;
  color: #757575;
}
.wa-composer span {
  flex: 1;
}
.sug {
  flex: none;
  margin: 0 1.4em 0.8em;
  padding: 1em 1.2em;
  border: 1px solid var(--p-pink-200);
  border-radius: 1em;
  background: #fff;
  line-height: 1.45;
}
.sug p:first-child {
  display: flex;
  justify-content: space-between;
  color: #757575 !important;
}

/* ---------------------------------------------------------------- 1. Extensão no WhatsApp Web */

.lz-bar {
  display: flex;
  flex: none;
  align-items: center;
  gap: 1.4em;
  height: 5em;
  padding-inline: 1.6em;
  border-bottom: 1px solid #eae6e3;
}
.lz-filter,
.lz-chip {
  display: flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.55em 1em;
  border: 1px solid #eae6e3;
  border-radius: 0.8em;
  background: #f6f5f4;
  color: #636261;
  white-space: nowrap;
}
.lz-tools {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-left: auto;
}
.lz-tools i {
  display: grid;
  place-items: center;
  width: 2.8em;
  height: 2.8em;
  border-radius: 0.8em;
  background: #f6f5f4;
  color: #636261;
}
.lz-tools hr {
  width: 1px;
  height: 2em;
  margin: 0 0.4em;
  border: 0;
  background: #eae6e3;
}
.wa {
  display: grid;
  flex: 1;
  grid-template-columns: 28em minmax(0, 1fr);
  /* One row as tall as the window: the list is cut at the bottom, like a list that goes on. */
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
}
.wa-list {
  min-height: 0;
  overflow: hidden;
  padding: 1.4em 1.2em;
  border-right: 1px solid var(--p-line);
}
.wa-list-head {
  font-size: 1.5em;
}
.wa-search {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-block: 1em 0.8em;
  padding: 0.7em 1em;
  border-radius: 2em;
  background: #f5f5f5;
  color: #6b6b6b;
}
.wa-contact {
  display: flex;
  align-items: center;
  gap: 0.9em;
  padding: 0.9em 0.8em;
  border-radius: 0.9em;
  line-height: 1.3;
}
.wa-contact.is-on {
  background: #f3f1ef;
}
.wa-contact > div {
  flex: 1;
  min-width: 0;
}
.wa-contact small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wa-contact time {
  font-size: 0.8em;
  color: #6b6b6b;
}
.wa-chat,
.ag-chat,
.ib-chat,
.ct {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: var(--p-chat);
}
.wa-own,
.wa-chat {
  background: var(--demo-thread);
}

.lz-contact {
  position: absolute;
  z-index: 1;
  top: 5.6em;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.5em;
  border-radius: 1.2em;
  background: #fff;
  outline: 1px solid #e7e7e7;
  transform: translateX(-50%);
  white-space: nowrap;
}
.lz-crm,
.lz-deal {
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.lz-crm > i {
  position: relative;
  display: grid;
  place-items: center;
  color: #636261;
}
.lz-crm u {
  position: absolute;
  top: -0.7em;
  right: -0.8em;
  display: grid;
  place-items: center;
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
  background: var(--p-pink);
  font-size: 0.7em;
  text-decoration: none;
  font-style: normal;
  color: #fff;
}
.lz-deal {
  margin-left: 0.5em;
  padding: 0.5em 0.9em;
  border-radius: 0.8em;
  background: #f0f0f0;
  color: var(--p-text);
}
.lz-deal .i {
  width: 1.1em;
  height: 1.1em;
  color: var(--p-soft);
}
.msg-audio {
  display: flex;
  align-items: center;
  gap: 0.8em;
  width: 23em;
}
.msg-voice {
  color: var(--p-pink);
}
.wave {
  flex: 1;
  height: 1.6em;
  background: repeating-linear-gradient(90deg, #9a9a9a 0 0.18em, transparent 0.18em 0.5em);
  mask: linear-gradient(#000 0 0) center / 100% 40% no-repeat, radial-gradient(closest-side, #000 60%, transparent) 20% 50% / 34% 100% no-repeat, radial-gradient(closest-side, #000 60%, transparent) 70% 50% / 40% 100% no-repeat;
}
.wa-quick {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.6em;
  margin: 0 1.4em 0.7em;
  overflow: hidden;
}
.lz-grid {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.7em;
  height: 2.7em;
  border-radius: 50%;
  background: #fff;
  color: var(--p-soft);
}
.lz-pill {
  display: inline-grid;
  flex: none;
  grid-auto-flow: column;
  align-items: center;
  gap: 0.45em;
  height: 2.7em;
  padding-inline: 1em;
  border: 1px solid var(--p-line);
  border-radius: 2em;
  background: #fff;
  color: var(--p-text);
  white-space: nowrap;
}
.lz-pill .i {
  width: 1.15em;
  height: 1.15em;
  color: var(--p-soft);
}
.lz-pill b,
.lz-pill em {
  display: flex;
  grid-area: 1 / 1;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  font-weight: 500;
  font-style: normal;
}
.lz-pill em {
  color: var(--p-pink);
  opacity: 0;
}
.lz-pill em .i {
  color: var(--p-pink);
}
.wa-plain {
  border-radius: 2em;
}
/* The extension's popups, one per view of the scene (LzTopbarPopupShell: white, 12px
   corners, a bold title). Only the view picked under the window is shown. */
.lz-pop {
  position: absolute;
  z-index: 2;
  top: 5.6em;
  right: 1.4em;
  display: none;
  flex-direction: column;
  gap: 0.7em;
  width: 27em;
  padding: 1.1em;
  border-radius: 1em;
  background: #fff;
  outline: 1px solid var(--p-line);
}
[data-view="lib"] .v-lib,
[data-view="trig"] .v-trig,
[data-view="sched"] .v-sched {
  display: flex;
}
.lz-pop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.1em;
}
.lz-pop-head .i {
  color: var(--p-soft);
}
.lz-seg {
  display: flex;
  padding: 0.25em;
  border-radius: 2em;
  background: var(--p-fill);
}
.lz-seg span {
  flex: 1;
  padding: 0.4em;
  border-radius: 2em;
  text-align: center;
  color: var(--p-soft);
}
.lz-seg .is-on {
  background: #fff;
  outline: 1px solid var(--p-line);
  color: var(--p-ink);
}
.lz-row,
.lz-field {
  display: flex;
  align-items: center;
  gap: 0.8em;
  padding: 0.7em 0.9em;
  border: 1px solid var(--p-line);
  border-radius: 0.8em;
  line-height: 1.3;
}
.lz-row span {
  flex: 1;
  min-width: 0;
}
.lz-row small {
  display: block;
}
.lz-row > .i {
  color: var(--p-soft);
}
.lz-rule {
  display: flex;
  align-items: center;
  gap: 0.6em;
}
.lz-rule span,
.lz-rule b {
  padding: 0.5em 0.9em;
  border: 1px solid var(--p-line);
  border-radius: 0.8em;
}
.lz-ok {
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.7em 0.9em;
  border-radius: 0.8em;
  background: var(--p-pink-50);
  font-weight: 600;
  color: var(--action-wine) !important;
}
.msg-doc {
  display: none;
  align-items: center;
  gap: 0.8em;
}
.msg-doc small {
  display: block;
}
[data-view="lib"] .o-doc {
  display: flex;
}
/* With a popup open the conversation keeps clear of it, so what was sent stays in view. */
[data-view]:not([data-view="audio"], [data-view="crm"]) .wa-own {
  padding-right: 30em;
}
[data-view="lib"] .o-audio,
[data-view="sched"] .cue-sent,
[data-view="crm"] .cue-sent,
[data-view]:not([data-view="audio"], [data-view="crm"]) .lz-contact {
  display: none;
}
/* "CRM no WhatsApp": the contact bar is the subject, so it is the one thing marked. */
[data-view="crm"] .lz-contact {
  outline: 2px solid var(--p-pink-200);
}
[data-cue="wait"][data-view="crm"] .lz-contact {
  opacity: 0;
}
[data-cue="play"][data-view="crm"] .lz-contact {
  animation: cue-fade-in 0.45s ease 0.35s both;
}

/* ---------------------------------------------------------------- 2. Negociações */

.kb {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1.2em;
  min-height: 0;
  padding: 1.4em 1.6em 1.6em;
  background: #fff;
}
.kb-head {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.8em;
}
.kb-head > p {
  margin-right: auto;
  line-height: 1.25;
}
.kb-head > p b {
  display: block;
  font-size: 1.35em;
}
.kb-head .app-find {
  width: 17em;
}
.kb-btn {
  display: flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.6em 1em;
  border: 1px solid var(--p-line);
  border-radius: 0.8em;
  color: var(--p-text);
  white-space: nowrap;
}
.kb-btn .i {
  width: 1.1em;
  height: 1.1em;
}
.kb-btn.is-primary,
.ib-actions .is-primary {
  border-color: transparent;
  background: var(--p-brand);
  font-weight: 600;
  color: #fff;
}
.kb-cols {
  display: grid;
  flex: 1;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1em;
  min-height: 0;
}
.kb-col {
  display: flex;
  flex-direction: column;
  gap: 0.8em;
  padding: 1em;
  border-radius: 1.1em;
  background: var(--p-fill);
}
.kb-col.is-won {
  background: var(--p-pink-50);
}
.kb-col.is-lost {
  background: var(--p-fill);
}
.kb-col-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.1em 0.6em;
  line-height: 1.3;
}
.kb-col-head i {
  width: 0.7em;
  height: 0.7em;
  border-radius: 50%;
  background: var(--stage, #ed0373);
}
.kb-col.is-won .kb-col-head i {
  background: var(--p-green);
}
.kb-col.is-lost .kb-col-head i {
  background: #888;
}
.kb-col-head span {
  color: var(--p-soft);
}
.kb-col-head small {
  grid-column: 2 / -1;
}
.kb-card {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  padding: 0.9em 1em;
  border-radius: 0.8em;
  background: #fff;
  outline: 1px solid #e7e7e7;
  line-height: 1.3;
}
.kb-card small {
  display: block;
}
.kb-who {
  display: flex;
  align-items: center;
  gap: 0.5em;
  color: var(--p-text) !important;
}
.kb-who .ps-face {
  width: 2em;
  height: 2em;
  font-size: 0.7em;
}
.kb-value {
  font-weight: 600;
}
.kb-card.is-won {
  outline: 1px solid var(--p-green);
}
.kb-ghost {
  height: 3.4em;
  border: 1px dashed #dcdcdc;
  border-radius: 0.8em;
}
.kb-toast,
.ph-toast {
  position: absolute;
  right: 1.6em;
  bottom: 1.6em;
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.9em 1.3em;
  border-radius: 0.9em;
  background: #fff;
  font-weight: 600;
  outline: 1px solid var(--p-line);
}
.kb-toast .i,
.ph-toast .i {
  color: var(--p-green);
}
/* Disparos, Métricas and Time de IA: the other screens of the app the page demonstrates. */
.view {
  height: 100%;
}
.bc {
  display: flex;
  flex-direction: column;
  gap: 0.7em;
  padding: 1.3em 1.4em;
  border: 1px solid var(--p-line);
  border-radius: 1em;
}
.bc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  font-size: 1.1em;
}
.bc-status {
  display: inline-grid;
  font-size: 0.72em;
}
.bc-status i {
  grid-area: 1 / 1;
  font-style: normal;
  text-align: center;
}
.cue-swap-a {
  opacity: 0;
}
.bc-stats,
.mx-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8em;
  margin-top: 0.4em;
}
.mx-kpis {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}
.bc-stats p,
.mx-kpis p {
  display: flex;
  flex-direction: column;
  padding: 0.9em 1em;
  border-radius: 0.8em;
  background: var(--p-fill);
  line-height: 1.3;
}
.bc-stats b,
.mx-kpis b {
  font-size: 1.5em;
  letter-spacing: -0.02em;
}
.mx-tabs {
  justify-content: flex-start;
  gap: 1.6em;
  font-size: 1em;
}
.mx-chart {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.8em;
  min-height: 0;
  padding: 1.2em 1.4em;
  border: 1px solid var(--p-line);
  border-radius: 1em;
}
.mx-chart div {
  display: flex;
  flex: 1;
  align-items: flex-end;
  gap: 1.4em;
  min-height: 6em;
}
.mx-chart span {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4em;
  height: 100%;
  font-size: 0.86em;
  color: var(--p-soft);
}
.mx-chart i {
  width: 100%;
  height: var(--h);
  border-radius: 0.5em 0.5em 0 0;
  background: #e7e7e7;
  transform-origin: bottom;
}
.mx-chart span:last-child i {
  background: var(--p-brand);
}
.tm {
  display: flex;
  flex: 1;
  align-items: center;
  min-height: 0;
}
.tm-col {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.7em;
}
.tm-node {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.9em 1em;
  border: 1px solid var(--p-line);
  border-radius: 0.8em;
  font-weight: 600;
}
.tm-node i {
  flex: none;
  width: 0.7em;
  height: 0.7em;
  border-radius: 50%;
}
.tm-line {
  flex: none;
  width: 5em;
  height: 2px;
  margin-top: 1.4em;
  background: var(--p-pink);
  transform-origin: left;
}
/* The card that is on its way out exists only while the scene plays. */
.kb-card.cue-leave {
  display: none;
}

/* ---------------------------------------------------------------- 3. Conversas + Contato */

.ag {
  display: grid;
  flex: 1;
  grid-template-columns: 25em minmax(0, 1fr) 21em;
  min-height: 0;
}
.ib {
  display: grid;
  flex: 1;
  grid-template-columns: 26em minmax(0, 1fr);
  min-height: 0;
}
.ib-list {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
  padding: 1.2em 1em;
  border-right: 1px solid var(--p-line);
  overflow: hidden;
}
.ib-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 0.4em;
  font-size: 1.3em;
}
.ib-filters {
  display: flex;
  align-items: center;
  gap: 0.4em;
  margin-block: 0.6em 0.4em !important;
}
.ib-filters span {
  padding: 0.35em 0.9em;
  border-radius: 2em;
  background: var(--p-fill);
  color: var(--p-soft);
}
.ib-filters .is-on {
  background: var(--p-ink);
  color: #fff;
}
.ib-filters em {
  display: flex;
  align-items: center;
  gap: 0.3em;
  margin-left: auto;
  font-style: normal;
  color: var(--p-soft);
}
.ib-filters .i {
  width: 1.05em;
  height: 1.05em;
}
.ib-conv {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.9em;
  padding: 0.8em 0.7em;
  border-radius: 0.9em;
  line-height: 1.3;
}
.ib-conv.is-on {
  background: var(--p-fill);
}
.ib-conv > div {
  flex: 1;
  min-width: 0;
}
.ib-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6em;
}
.ib-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ib-row time {
  flex: none;
  font-size: 0.8em;
  color: #757575;
}
.ib-ai {
  display: grid;
  flex: none;
  place-items: center;
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
  background: var(--p-brand);
  color: #fff;
}
.ib-ai .i {
  width: 0.9em;
  height: 0.9em;
}
.ib-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3em;
  margin-top: 0.3em !important;
}
.chan {
  position: absolute;
  top: 2.3em;
  left: 2.3em;
  display: grid;
  place-items: center;
  width: 1.2em;
  height: 1.2em;
  border-radius: 50%;
  color: #fff;
  outline: 0.15em solid #fff;
}
.chan .i {
  width: 0.8em;
  height: 0.8em;
}
.chan-wa, .chan-ig { background: white; color: var(--action-wine); }
.ag-panel {
  display: flex;
  flex-direction: column;
  gap: 0.9em;
  padding: 1.4em;
  border-left: 1px solid var(--p-line);
}
.ag-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 1.15em;
}
.ag-head small {
  font-size: 0.75em;
  color: var(--p-pink);
}
.ag-tabs {
  display: flex;
  justify-content: space-between;
  gap: 0.6em;
  font-size: 0.92em;
  white-space: nowrap;
  padding-bottom: 0.7em;
  border-bottom: 1px solid var(--p-line);
  color: var(--p-soft);
}
.ag-tabs .is-on {
  font-weight: 600;
  color: var(--p-ink);
}
.ag-deal {
  font-size: 1.1em;
}
.ag-panel dl {
  display: grid;
  gap: 0.8em;
}
.ag-panel dt {
  font-size: 0.86em;
  color: var(--p-soft);
}
.ag-panel dd {
  font-weight: 600;
}

/* ---------------------------------------------------------------- 4. The sale, step by step */

.sale-window {
  border-radius: 14px;
  box-shadow: none;
}
.sale-window .ps-frame {
  font-size: clamp(8px, 1.22cqw, 13.5px);
}
.ib-deal {
  display: flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.35em 0.4em 0.35em 0.9em;
  border-radius: 0.8em;
  background: #f0f0f0;
  color: var(--p-text);
  white-space: nowrap;
}
.ib-deal i,
.ib-deal em {
  display: flex;
  align-items: center;
  gap: 0.35em;
  font-style: normal;
}
.ib-deal u {
  padding: 0.3em 0.8em;
  border: 1px solid var(--p-line);
  border-radius: 0.6em;
  background: #fff;
  font-weight: 600;
  text-decoration: none;
}
.ib-deal .is-win {
  border-color: transparent;
  background: var(--p-green);
  color: #fff;
}
.ib-deal em {
  padding: 0.3em 0.8em;
  border-radius: 0.6em;
  background: var(--p-pink-50);
  font-weight: 600;
  color: var(--action-wine);
}
.ib-deal em .i {
  width: 1.05em;
  height: 1.05em;
}
.ib-toast {
  position: absolute;
  right: 1.4em;
  top: 5.6em;
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.9em 1.3em;
  border-radius: 0.9em;
  background: #fff;
  font-weight: 600;
  outline: 1px solid var(--p-line);
}
.ib-toast .i {
  color: var(--p-green);
}
.ib-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5em;
  margin-top: 0.8em !important;
}
.ib-actions span {
  padding: 0.6em 1.3em;
  border: 1px solid var(--p-line);
  border-radius: 0.8em;
  font-weight: 600;
}
/* Steps: what has not happened yet is not there; what arrives, rises in. */
.ib :is([data-from], [data-until]) {
  animation: cue-rise 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.ib [data-off] {
  display: none;
}

/* ---------------------------------------------------------------- 5. The "Agente IA" levels */

.control-window {
  min-height: 420px;
}
.control-window .ps-frame {
  font-size: clamp(11px, 1.9cqw, 15px);
}
.ct {
  flex: 1;
}
.ct-semi {
  display: none;
}
[data-mode="1"] .ct-semi {
  display: flex;
  animation: cue-rise 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}
[data-mode="1"] .sug.ct-semi {
  display: block;
  animation-delay: 0.12s;
}
[data-mode="1"] :is(.ct-auto, [data-ct="auto"]),
[data-mode="2"] :is(.ct-auto, [data-ct="auto"]) {
  display: none;
}
[data-mode="0"] :is(.ct-auto, [data-ct="auto"]) {
  animation: cue-rise 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}
[data-mode="0"] [data-ct="auto"] {
  animation-delay: 0.12s;
}

/* ---------------------------------------------------------------- 6. On a phone */

.phone-window {
  aspect-ratio: 9 / 18.4;
  height: auto;
  border-radius: 34px;
}
.phone-window .ps-frame {
  font-size: clamp(10px, 3.9cqw, 13.5px);
}
.ph {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.3em;
  padding: 3em 1em 1em;
}
.ph-toast {
  right: 1em;
  bottom: 1.4em;
  left: 1em;
  justify-content: center;
}

/* ---------------------------------------------------------------- 7. Each segment's funnel */

.segment-window {
  height: auto;
}
.segment-window .ps-frame {
  font-size: clamp(10px, 1.55cqw, 14.5px);
}
.sg {
  padding: 2em 2em 1.4em;
}
.sg-vocab {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em 1.6em;
  margin-bottom: 1.4em !important;
  font-weight: 600;
  font-size: 1.25em;
}
.sg-vocab span + span::before {
  content: "·";
  margin-right: 1.6em;
  color: #b5b5b5;
}
.sg-thread {
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  margin-bottom: 1.4em;
  padding: 1.2em;
  border-radius: 1.1em;
  background: var(--p-chat);
}
.sg-cols .kb-col:nth-child(1) { --stage: var(--color-stage-novos); }
.sg-cols .kb-col:nth-child(2) { --stage: var(--color-stage-qualificados); }
.sg-cols .kb-col:nth-child(3) { --stage: var(--color-stage-proposta); }
.sg-cols .kb-col:nth-child(4) { --stage: var(--color-stage-negociacao); }
.sg-cols .kb-col:nth-child(5) { --stage: var(--color-stage-fechados); }
.sg-cols {
  display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  gap: 0.8em;
}
.sg-cols .kb-col {
  min-height: 8.6em;
}
.sg-cols .kb-col-head b {
  font-size: 0.92em;
  line-height: 1.25;
}

/* ---------------------------------------------------------------- narrow windows
   Below 720px the screen is rearranged as the product does on a phone: one panel at a time. */

@container (max-width: 720px) {
  /* One panel, in type a person can read on a phone: about 28em across instead of 100. */
  .ps-frame,
  .sale-window .ps-frame {
    font-size: clamp(11px, 3.55cqw, 14.5px);
  }
  .lz-contact,
  .wa-chat-head small,
  .app-top .ps-face,
  .kb-head > p small,
  .ib-deal i u:last-child {
    display: none;
  }
  .bc-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kb .is-ghost,
  .mx-tabs span:not(.is-on),
  .mx-chart small:last-child {
    display: none;
  }
  .tm {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0.5em;
  }
  .tm-col {
    flex: none;
  }
  .tm-line {
    width: 2px;
    height: 1.2em;
    margin: 0 0 0 1.4em;
  }
  /* A popup becomes a block above the conversation instead of floating over it. */
  .lz-pop {
    position: static;
    flex: none;
    width: auto;
    margin: 1em 1em 0;
  }
  [data-view]:not([data-view="audio"]) .wa-own {
    padding-right: 1em;
  }
  [data-view="crm"] .lz-contact {
    position: static;
    order: 1;
    display: flex;
    flex-wrap: wrap;
    margin: 1em 1em 0;
    transform: none;
    white-space: normal;
  }
  [data-view="crm"] .lz-crm {
    flex-wrap: wrap;
  }
  .wa-chat > .lz-pop {
    order: 1;
  }
  .wa-chat > .wa-thread {
    order: 2;
  }
  .wa-chat > .wa-quick {
    order: 3;
  }
  .wa-chat > .wa-composer {
    order: 4;
  }
  /* The popup and what it sent are the whole point here: the bars below give them the room. */
  [data-view]:not([data-view="audio"]) .wa-chat > :is(.wa-quick, .wa-composer) {
    display: none;
  }
  .v-lib .lz-seg,
  .v-lib .lz-row ~ .lz-row ~ .lz-row,
  .v-lib > small {
    display: none;
  }
  .wa-chat-head {
    flex-wrap: wrap;
    gap: 0.5em 0.8em;
    padding-block: 0.8em;
  }
  .ib-deal {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }
  .ib-toast {
    top: auto;
    right: 1em;
    bottom: 1em;
    min-height: 4.2em;
    left: 1em;
    justify-content: center;
  }
  .kb {
    padding: 1em;
  }
  .wa-thread {
    padding: 1em;
  }
  .wa-composer {
    margin: 0 1em 1em;
  }
  .segment-window .ps-frame {
    font-size: clamp(11px, 3.4cqw, 14px);
  }
  .app-top nav,
  .app-search,
  .app-tool,
  .app-sub,
  .wa-list,
  .ib-list,
  .ag-panel,
  .lz-filter,
  .lz-tools i:nth-child(n + 4),
  .lz-crm > .lz-chip,
  .kb-head .app-find,
  .kb-btn:not(.is-primary),
  .kb-col.is-lost,
  .kb-cols .kb-col:nth-child(-n + 2),
  .wa-chat-head .ib-ctl:not(.is-ai) {
    display: none;
  }
  .app-top {
    justify-content: space-between;
  }
  .wa,
  .ib,
  .ag {
    grid-template-columns: minmax(0, 1fr);
  }
  .kb-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .msg {
    max-width: 88%;
  }
  .lz-contact {
    top: 5.4em;
  }
  .sg {
    padding: 1.6em 1.4em 1em;
  }
  .sg-cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5em;
  }
  .sg-cols .kb-col {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 3.4em;
  }
  .sg-cols .kb-col-head {
    display: flex;
  }
  .sg-cols .kb-ghost {
    display: none;
  }
  .sg-cols .kb-card {
    padding: 0.5em 0.8em;
  }
}

/* ---------------------------------------------------------------- movement
   A scene carries data-cue. Absent: motion is off and the scene shows its final state.
   "wait": motion is on and the scene has not been seen. "play": it is on screen.
   Within a scene the times are chained, one thing causing the next. */

@keyframes cue-rise {
  from {
    opacity: 0;
    transform: translateY(0.7em);
  }
}
@keyframes cue-slide {
  from {
    opacity: 0;
    transform: translateX(-0.9em);
  }
}
@keyframes cue-leave {
  to {
    opacity: 0;
    transform: translateX(1.4em);
  }
}
@keyframes cue-land {
  from {
    opacity: 0;
    transform: translateX(-1.4em);
  }
}
@keyframes cue-banner {
  0% {
    opacity: 0;
    transform: translateY(0.4em);
  }
  18%,
  82% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
  }
}
/* The shortcut: pressed once it arms ("Enviar"), pressed again it sends and goes back. */
@keyframes cue-arm {
  0%,
  20% {
    transform: none;
    border-color: #e7e7e7;
    background-color: #fff;
  }
  24% {
    transform: scale(0.96);
  }
  30%,
  68% {
    transform: none;
    border-color: var(--demo-copper);
    background-color: var(--demo-peach-wash);
  }
  73% {
    transform: scale(0.96);
    border-color: var(--demo-copper);
    background-color: var(--demo-peach-wash);
  }
  82%,
  100% {
    transform: none;
    border-color: #e7e7e7;
    background-color: #fff;
  }
}
@keyframes cue-arm-label {
  0%,
  24%,
  80%,
  100% {
    opacity: 1;
  }
  28%,
  76% {
    opacity: 0;
  }
}
@keyframes cue-arm-send {
  0%,
  24%,
  80%,
  100% {
    opacity: 0;
  }
  28%,
  76% {
    opacity: 1;
  }
}

[data-cue="wait"] :is(.cue-sent, .cue-land, .cue-toast, .kb-cols .kb-card, [data-reply]) {
  opacity: 0;
}
[data-cue] .kb-card.cue-leave {
  display: flex;
}
[data-cue="wait"] .kb-card.cue-leave {
  opacity: 1;
}

/* 1. Extensão: press, arm, press, the audio is in the conversation. */
[data-cue="play"] .cue-arm {
  animation: cue-arm 2.2s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}
[data-cue="play"] .cue-arm b {
  animation: cue-arm-label 2.2s linear 0.3s both;
}
[data-cue="play"] .cue-arm em {
  animation: cue-arm-send 2.2s linear 0.3s both;
}
[data-cue="play"] .cue-sent {
  animation: cue-rise 0.4s cubic-bezier(0.22, 1, 0.36, 1) 2s both;
}

/* 2. Negociações: the board fills column by column, then one deal leaves "Proposta",
      lands in "Ganho", and only then the notice appears. */
[data-cue="play"] .kb-cols .kb-card {
  animation: cue-slide 0.38s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0ms) both;
}
[data-cue="play"] .kb-cols .kb-card.cue-leave {
  animation:
    cue-slide 0.38s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0ms) backwards,
    cue-leave 0.26s cubic-bezier(0.32, 0, 0.67, 0) 1.3s forwards;
}
[data-cue="play"] .kb-cols .kb-card.cue-land {
  animation: cue-land 0.36s cubic-bezier(0.33, 1, 0.68, 1) 1.56s both;
}
[data-cue="play"] .cue-toast {
  animation: cue-rise 0.4s cubic-bezier(0.22, 1, 0.36, 1) 2.05s both;
}

/* 3. Agentes: the AI says it is answering, then the answer takes its place. */
[data-cue="play"] .cue-typing {
  animation: cue-banner 1.25s ease 0.35s both;
}
[data-cue="play"] [data-reply] {
  animation: cue-rise 0.4s cubic-bezier(0.22, 1, 0.36, 1) 1.55s both;
}

/* 6 and 7. One card lands; on the phone, the notice follows. */
[data-cue="play"] .sg-cols .cue-land {
  animation: cue-land 0.36s cubic-bezier(0.33, 1, 0.68, 1) 0.45s both;
}
[data-cue="play"] .ph-toast {
  animation-delay: 0.7s;
}

/* The other views of the extension. Each is one cause and one effect.
   Mensagens prontas: the send arrow is pressed, the file is in the conversation.
   Gatilhos: the word matches, the trigger fires, the audio goes out.
   Agendamentos: the message is set and joins the pending ones. */
@keyframes cue-plane {
  0% {
    color: #6d6d6d;
    transform: none;
  }
  45% {
    color: var(--demo-copper);
    transform: scale(0.86);
  }
  100% {
    color: var(--demo-copper);
    transform: none;
  }
}
@keyframes cue-match {
  to {
    border-color: var(--demo-copper);
    background-color: var(--demo-peach-wash);
    color: var(--action-wine);
  }
}
[data-cue="wait"] .cue-fired {
  opacity: 0;
}

/* Disparos: the counts arrive in order, then the status closes. Métricas: the bars grow
   month by month. Time de IA: the team is drawn in the order a conversation travels. */
@keyframes cue-fade-out {
  to {
    opacity: 0;
  }
}
@keyframes cue-fade-in {
  from {
    opacity: 0;
  }
}
@keyframes cue-grow {
  from {
    transform: scaleY(0);
  }
}
@keyframes cue-draw {
  from {
    transform: scaleX(0);
  }
}
[data-cue="wait"] :is(.cue, .cue-swap-b) {
  opacity: 0;
}
[data-cue="wait"] .cue-swap-a {
  opacity: 1;
}
[data-cue="wait"] .mx-chart i {
  transform: scaleY(0);
}
[data-cue="wait"] .tm-line {
  transform: scaleX(0);
}
[data-cue="play"] .cue {
  animation: cue-rise 0.4s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0ms) both;
}
[data-cue="play"] .cue-swap-a {
  opacity: 1;
  animation: cue-fade-out 0.2s ease 1.55s forwards;
}
[data-cue="play"] .cue-swap-b {
  animation: cue-fade-in 0.25s ease 1.7s both;
}
[data-cue="play"] .mx-chart i {
  animation: cue-grow 0.55s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0ms) both;
}
[data-cue="play"] .tm-line {
  animation: cue-draw 0.4s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0ms) both;
}
[data-view]:not([data-view="audio"]) .cue-arm,
[data-view]:not([data-view="audio"]) .cue-arm :is(b, em) {
  animation: none;
}
[data-cue="play"] .cue-plane {
  animation: cue-plane 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}
[data-cue="play"][data-view="lib"] .cue-sent {
  animation-delay: 0.95s;
}
[data-cue="play"] .cue-match {
  animation: cue-match 0.3s ease 0.4s both;
}
[data-cue="play"] .cue-fired {
  animation: cue-rise 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.85s both;
}
[data-cue="play"][data-view="trig"] .cue-sent {
  animation-delay: 1.3s;
}

/* ---------------------------------------------------------------- 8. Workspace card on the home
   The inbox in the small window of the card. One take of about ten seconds: a conversation
   arrives, the pointer opens it, the AI works inside, the list comes back with the deal on the
   conversation. Everything in em; nothing changes the height of the window while it plays.
   Without data-cue (motion off) the list shows its final state. */
.tz {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  background: #fff;
}
/* Keep the channel mark legible at the lower edge of the portrait. */
.tz-who {
  position: relative;
  display: grid;
  flex: none;
}
.tz-who img.ps-face {
  width: 2.9em;
  height: 2.9em;
}
.tz .chan {
  top: auto;
  right: -0.3em;
  bottom: -0.25em;
  left: auto;
  width: 1.35em;
  height: 1.35em;
}
.tz .chan .i { width: 1.05em; height: 1.05em; }
/* The list: title and the app's own "Abertas / Fechadas". */
.tz-head {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.5em;
  height: 3.9em;
  padding-inline: 1.3em;
  border-bottom: 1px solid var(--p-line);
}
.tz-head b {
  margin-right: auto;
  font-size: 1.3em;
  letter-spacing: -0.01em;
}
.tz-head span {
  padding: 0.35em 0.9em;
  border-radius: 2em;
  background: var(--p-fill);
  color: var(--p-soft);
}
.tz-head .is-on {
  background: var(--action-wine);
  color: #fff;
}
.tz-rows {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
/* One conversation: who, last message, and who is answering. */
.tz-row {
  display: flex;
  align-items: center;
  gap: 1em;
  padding: 0.95em 1.3em;
  line-height: 1.3;
}
.tz-row > div {
  flex: 1;
  min-width: 0;
}
.tz-row p {
  display: flex;
  align-items: center;
  gap: 0.6em;
}
.tz-row p + p {
  margin-top: 0.28em;
}
.tz-row b {
  font-weight: 600;
  white-space: nowrap;
}
.tz-row time {
  flex: none;
  margin-left: auto;
  font-size: 0.82em;
  color: #757575;
}
.tz-row small {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--p-soft);
}
.tz-ai {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.3em;
  padding: 0.18em 0.65em;
  border-radius: 2em;
  background: var(--p-pink-50);
  font-weight: 600;
  font-size: 0.8em;
  color: var(--action-wine);
  white-space: nowrap;
}
.tz-ai .i {
  width: 1em;
  height: 1em;
}
.tz-agent {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.1em;
  height: 2.1em;
  border-radius: 50%;
  background: var(--c);
  font-weight: 600;
  font-size: 0.72em;
  color: var(--ink, #fff);
}
/* The conversation that has just arrived, and its two states in the list. */
.tz-fresh {
  overflow: hidden;
  background-image: linear-gradient(90deg, var(--p-pink-50), transparent 72%);
}
.tz-swap {
  display: inline-grid;
  flex: none;
  justify-items: end;
}
.tz-swap > * {
  grid-area: 1 / 1;
}
.tz-before {
  opacity: 0;
}

/* Let the conversation size both views, including while the list is on screen. */
.product-workspace .product-preview,
.product-workspace .teaser-window,
.product-workspace .teaser-window .ps-frame {
  height: auto;
}
.product-workspace .tz {
  display: grid;
  grid-template: auto 1fr / minmax(0, 1fr);
  min-height: 29em;
}
.product-workspace .tz-head { grid-area: 1 / 1; }
.product-workspace .tz-rows { grid-area: 2 / 1; contain: size; }
.tz-open {
  position: relative;
  z-index: 2;
  grid-area: 1 / 1 / 3 / 2;
  display: flex;
  flex-direction: column;
  background: #fff;
  visibility: hidden;
}
.tz-chat-head {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.9em;
  min-height: 3.9em;
  padding-inline: 1em 1.3em;
  border-bottom: 1px solid var(--p-line);
  line-height: 1.25;
}
.tz-chat-head .tz-back {
  width: 1.5em;
  height: 1.5em;
  color: var(--p-soft);
  transform: rotate(90deg);
}
.tz-chat-head .tz-who img.ps-face {
  width: 2.6em;
  height: 2.6em;
}
.tz-chat-head p {
  margin-right: auto;
}
.tz-chat-head small {
  display: block;
  font-size: 0.85em;
}
.tz-dealbar {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.7em;
  margin: 0.8em 1.2em 0 !important;
  padding: 0.5em 0.6em 0.5em 1em;
  border-radius: 0.8em;
  background: #f0f0f0;
  white-space: nowrap;
}
.tz-dealbar em {
  display: flex;
  align-items: center;
  gap: 0.35em;
  margin-left: auto;
  padding: 0.25em 0.75em;
  border-radius: 0.6em;
  background: var(--p-pink-50);
  font-style: normal;
  font-weight: 600;
  font-size: 0.86em;
  color: var(--action-wine);
}
.tz-dealbar em .i {
  width: 1.05em;
  height: 1.05em;
}
.tz-dealbar em i {
  font-style: normal;
}
.tz-open .tz-dealbar {
  flex-wrap: wrap;
  row-gap: .35em;
  margin-bottom: .55em !important;
}
@container (max-width: 420px) {
  .tz-open .tz-dealbar em i { display: none; }
}
@container (max-width: 345px) {
  .tz-open .wa-composer > .i:nth-child(2),
  .tz-open .wa-composer > .i:nth-last-child(2) { display: none; }
}
.tz-open .wa-thread {
  flex: 1 0 auto;
  gap: 0.6em;
  padding: 1em 1.3em;
}
.tz-open .msg {
  max-width: 82%;
}
/* A file the AI sends from the library. */
.tz-file {
  display: flex;
  align-items: center;
  gap: 0.8em;
  line-height: 1.3;
}
.tz-file > .i {
  flex: none;
  box-sizing: border-box;
  width: 2.6em;
  height: 2.6em;
  padding: 0.6em;
  border-radius: 0.6em;
  background: #fff;
  color: var(--action-wine);
}
.tz-file small {
  display: block;
}
.tz-open .wa-composer {
  min-height: 3.6em;
  margin: .75em 1.3em 1em;
}
.tz-open .wa-composer > span {
  white-space: nowrap;
}
.tz-cursor {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  width: 2.3em;
  height: 2.3em;
  opacity: 0;
  pointer-events: none;
  transform-origin: 8.3% 8.3%;
}
.tz-cursor svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* The take. Times from the start of the scene:
   0.7 s the conversation arrives · 1.5 s "IA respondendo" · 2.4 s the pointer goes to it and
   presses at 3.3 s · 3.5 s the conversation opens · 4.7 s the answer · 5.8 s the file ·
   6.9 s the deal · 9.7 s it closes · 10.3 s the list shows the deal on the conversation. */
[data-cue="wait"] .tz-fresh {
  max-height: 0;
  padding-block: 0;
  opacity: 0;
}
[data-cue="wait"] .tz :is(.tz-after, .tz-step) {
  opacity: 0;
}
[data-cue="play"] .tz-fresh {
  animation:
    tz-arrive 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.7s both,
    tz-press 0.5s ease 3.25s;
}
[data-cue="play"] .tz-before {
  opacity: 1;
  animation:
    cue-rise 0.4s cubic-bezier(0.22, 1, 0.36, 1) 1.5s both,
    cue-fade-out 0.25s ease 10.1s forwards;
}
[data-cue="play"] .tz-after {
  animation: cue-rise 0.4s cubic-bezier(0.22, 1, 0.36, 1) 10.3s both;
}
[data-cue="play"] .tz-cursor {
  animation: tz-point 1.5s cubic-bezier(0.45, 0, 0.2, 1) 2.3s both;
}
[data-cue="play"] .tz-open {
  animation:
    tz-open 0.5s cubic-bezier(0.22, 1, 0.36, 1) 3.5s both,
    tz-close 0.45s cubic-bezier(0.4, 0, 0.2, 1) 9.7s forwards;
}
[data-cue="play"] .tz-step {
  animation: cue-rise 0.4s cubic-bezier(0.22, 1, 0.36, 1) var(--at) both;
}
@keyframes tz-arrive {
  from {
    max-height: 0;
    padding-block: 0;
    opacity: 0;
  }
  to {
    max-height: 6em;
    opacity: 1;
  }
}
@keyframes tz-press {
  30%,
  70% {
    background-color: var(--p-fill);
  }
}
@keyframes tz-point {
  0% {
    opacity: 0;
    transform: translate(24em, 20em);
  }
  18% {
    opacity: 1;
  }
  58% {
    opacity: 1;
    transform: translate(13em, 6.4em);
  }
  66% {
    transform: translate(13em, 6.4em) scale(0.86);
  }
  76%,
  88% {
    opacity: 1;
    transform: translate(13em, 6.4em);
  }
  100% {
    opacity: 0;
    transform: translate(13em, 6.4em);
  }
}
@keyframes tz-open {
  from {
    visibility: visible;
    transform: translateX(100%);
  }
  to {
    visibility: visible;
    transform: none;
  }
}
@keyframes tz-close {
  from {
    visibility: visible;
    transform: none;
  }
  to {
    visibility: hidden;
    transform: translateX(100%);
  }
}

/* ---------------------------------------------------------------- Extensão card on the home
   The same WhatsApp Web screen as the Extensão page, with what makes it read as WhatsApp at
   this size: the receipt, the contact status and the shortcuts fading out at the edge. */
.product-extension .wa-chat-head b::after {
  content: "online";
  display: block;
  font-weight: 400;
  font-size: 0.85em;
  color: var(--p-soft);
}
.product-extension .msg-audio time::after {
  content: "✓✓";
  margin-left: 0.5em;
  font-size: 1.05em;
  letter-spacing: -0.3em;
  color: var(--demo-reply-meta);
}
.product-extension .msg-audio .wave {
  background: repeating-linear-gradient(90deg, var(--demo-reply-meta) 0 0.18em, transparent 0.18em 0.5em);
}
.product-extension .wa-quick {
  margin-right: 0;
  mask-image: linear-gradient(90deg, #000 80%, transparent);
}
/* The take of the card, about five seconds: the pointer presses the first shortcut twice (arm,
   send) and the audio goes; then the second one, and the price table goes. Each message opens
   its own room, so the conversation moves up as in WhatsApp. Times from the start:
   0.83 s and 1.9 s the first shortcut · 2.0 s the audio · 3.1 s and 4.18 s the second ·
   4.3 s the file. Without data-cue (motion off) both messages are there. */
.product-extension .ps-frame {
  position: relative;
}
.product-extension .wa-thread {
  gap: 0.5em;
  padding-block: 0.6em;
}
.product-extension .wa-composer {
  min-height: 3.7em;
}
.product-extension :is(.o-audio, .o-doc) {
  flex: none;
  overflow: hidden;
}
.product-extension .o-doc {
  display: flex;
}
.product-extension .o-doc span {
  display: flex;
  align-items: baseline;
  gap: 0.6em;
  white-space: nowrap;
}
.product-extension .o-doc small {
  display: inline;
}
.product-extension .o-doc small::after {
  content: "✓✓";
  margin-left: 0.5em;
  font-size: 1.05em;
  letter-spacing: -0.3em;
  color: var(--demo-reply-meta);
}
.xc-cursor {
  /* Where the two shortcuts are, from the left and from the bottom of the window. */
  --x1: 11.6em;
  --x2: 25em;
  --y: -4.6em;
  position: absolute;
  z-index: 5;
  bottom: 0;
  left: 0;
  width: 2.3em;
  height: 2.3em;
  opacity: 0;
  pointer-events: none;
  transform-origin: 8.3% 8.3%;
}
.xc-cursor svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.product-extension [data-cue="wait"] :is(.o-audio, .o-doc) {
  max-height: 0;
  margin-top: -0.5em;
  padding-block: 0;
}
.product-extension [data-cue="play"] .o-audio {
  animation: xc-send 0.4s cubic-bezier(0.22, 1, 0.36, 1) 2s both;
}
.product-extension [data-cue="play"] .o-doc {
  animation: xc-send 0.4s cubic-bezier(0.22, 1, 0.36, 1) 4.3s both;
}
.product-extension [data-cue="play"] .cue-arm2 {
  animation: cue-arm 2.2s cubic-bezier(0.22, 1, 0.36, 1) 2.572s both;
}
.product-extension [data-cue="play"] .cue-arm2 b {
  animation: cue-arm-label 2.2s linear 2.572s both;
}
.product-extension [data-cue="play"] .cue-arm2 em {
  animation: cue-arm-send 2.2s linear 2.572s both;
}
.product-extension [data-cue="play"] .xc-cursor {
  animation: xc-point 4.8s cubic-bezier(0.45, 0, 0.2, 1) 0.2s both;
}
@keyframes xc-send {
  from {
    max-height: 0;
    margin-top: -0.5em;
    padding-block: 0;
    opacity: 0;
  }
  to {
    max-height: 4em;
    opacity: 1;
  }
}
@keyframes xc-point {
  0% {
    opacity: 0;
    transform: translate(18em, -0.6em);
  }
  4% {
    opacity: 1;
  }
  12%,
  16%,
  33%,
  38.5% {
    opacity: 1;
    transform: translate(var(--x1), var(--y));
  }
  13.3%,
  35.6% {
    transform: translate(var(--x1), var(--y)) scale(0.86);
  }
  56%,
  63%,
  80.5%,
  85.5%,
  92% {
    opacity: 1;
    transform: translate(var(--x2), var(--y));
  }
  60.4%,
  82.9% {
    transform: translate(var(--x2), var(--y)) scale(0.86);
  }
  100% {
    opacity: 0;
    transform: translate(calc(var(--x2) + 1em), calc(var(--y) + 2em));
  }
}
/* On a phone the question stays on one line, and the shortcuts slide to the left before the
   second press, as a finger would do, so the second shortcut is whole when it is pressed. */
@container (max-width: 420px) {
  .product-extension .msg-in {
    max-width: 94%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  /* With both messages sent the question has moved up: it dissolves at the top, not cut. */
  .product-extension .wa-thread {
    mask-image: linear-gradient(180deg, transparent, #000 0.9em);
  }
  .xc-cursor {
    --x2: 15.8em;
  }
  .product-extension [data-cue="play"] .wa-quick > * {
    animation: xc-swipe 0.5s cubic-bezier(0.45, 0, 0.2, 1) 2.35s both;
  }
  .product-extension [data-cue="play"] .wa-quick > .cue-arm {
    animation:
      cue-arm 2.2s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both,
      xc-swipe 0.5s cubic-bezier(0.45, 0, 0.2, 1) 2.35s both;
  }
  .product-extension [data-cue="play"] .wa-quick > .cue-arm2 {
    animation:
      cue-arm 2.2s cubic-bezier(0.22, 1, 0.36, 1) 2.572s both,
      xc-swipe 0.5s cubic-bezier(0.45, 0, 0.2, 1) 2.35s both;
  }
}
@keyframes xc-swipe {
  to {
    translate: -9.2em 0;
  }
}

/* ---------------------------------------------------------------- Workspace page, the opening
   The inbox at night: the list beside the open conversation, under the Chat cabin. The pane is
   always open, so the steps of the conversation rise in place. The take, from the start:
   0.5 s Carlos arrives · 1.0 s "IA respondendo" · 1.6 s the answer · 2.6 s the file ·
   3.6 s the deal · 4.2 s the list shows the deal on his conversation. */
.tz-hero {
  flex-direction: row;
}
.tz-hero .tz-list {
  display: flex;
  flex: 0 0 44%;
  flex-direction: column;
  min-width: 0;
  border-right: 1px solid var(--p-line);
}
.tz-hero .tz-row {
  gap: 0.85em;
  padding: 0.85em 1.1em;
}
.tz-pane {
  container: conversa / inline-size;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  background: #fff;
}
.tz-pane .wa-thread {
  gap: 0.6em;
  padding: 1em 1.2em;
}
.tz-pane .msg {
  max-width: 86%;
}
.tz-pane .wa-composer {
  min-height: 3em;
  margin: .58em .8em .7em;
  padding: .45em .7em;
  gap: .55em;
}
.tz-compose span { min-width: 0; white-space: nowrap; line-height: 1.15; }
.tz-compose > .i { flex: none; }
.tz-pane .tz-dealbar {
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .3em .6em;
  margin: .55em .8em !important;
  padding: .45em .6em;
  line-height: 1.25;
}
.tz-pane .tz-deal-name { display: inline-flex; align-items: center; gap: .45em; }
.tz-pane .tz-dealbar em { margin: 0; }
@container conversa (max-width: 345px) {
  .tz-compose > .i:nth-child(2), .tz-compose > .i:nth-last-child(2) { display: none; }
}
@container conversa (max-width: 270px) {
  .tz-pane .tz-dealbar { align-items: start; flex-direction: column; }
  .tz-pane .tz-dealbar em { padding: 0; background: transparent; }
}
@container conversa (max-width: 245px) {
  .tz-compose > .i:nth-child(4) { display: none; }
}
[data-cue="play"] .tz-hero .tz-fresh {
  animation: tz-arrive 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}
[data-cue="play"] .tz-hero .tz-before {
  animation:
    cue-rise 0.4s cubic-bezier(0.22, 1, 0.36, 1) 1s both,
    cue-fade-out 0.25s ease 4s forwards;
}
[data-cue="play"] .tz-hero .tz-after {
  animation: cue-rise 0.4s cubic-bezier(0.22, 1, 0.36, 1) 4.2s both;
}
/* Keep the selected conversation beside its channel, even in a narrow window. */
@container (max-width: 560px) {
  .tz-hero .tz-list { flex-basis: 4.5em; }
  .tz-hero .tz-head { padding: 0; justify-content: center; }
  .tz-hero .tz-head b { margin: 0; font-size: .78em; }
  .tz-hero .tz-head span, .tz-hero .tz-row > div { display: none; }
  .tz-hero .tz-row { justify-content: center; padding: 1em 0; }
  .tz-hero .tz-fresh { background: var(--demo-wine-wash); }
  .tz-pane .wa-thread { padding: .9em .7em; }
  .tz-pane .msg { max-width: 95%; }
  .tz-pane .tz-chat-head { gap: .55em; padding-inline: .7em; }

}
