/* ==========================================================================
   Wise Funnel · scenes.css
   "Cenas de produto": UIs falsas da própria Wise Funnel, em HTML/CSS,
   desenhadas num palco de tamanho fixo e escaladas por JS (data-stage).
   As animações só rodam com .is-playing (cena visível na tela).
   ========================================================================== */

/* ---------- Palco escalável ---------- */
.stage-frame { position: relative; width: 100%; aspect-ratio: var(--w) / var(--h); overflow: hidden; }
.stage { position: absolute; left: 0; top: 0; width: calc(var(--w) * 1px); height: calc(var(--h) * 1px); transform: scale(var(--k, 1)); transform-origin: 0 0; }
@media (max-width: 719px) {
  .stage-frame[data-sm] { aspect-ratio: var(--w-sm) / var(--h-sm); }
  .stage-frame[data-sm] .stage { width: calc(var(--w-sm) * 1px); height: calc(var(--h-sm) * 1px); }
}
/* animações pausadas fora da tela */
[data-scene]:not(.is-playing) *, [data-scene]:not(.is-playing) *::before, [data-scene]:not(.is-playing) *::after { animation-play-state: paused !important; }

/* ---------- Peças comuns das cenas ---------- */
.ui-card { position: absolute; border-radius: 14px; background: rgb(28 28 31 / .92); border: 1px solid rgb(255 255 255 / .07); box-shadow: 0 20px 40px -20px rgb(0 0 0 / .6); color: var(--c-fg); }
.ui-card--light { background: #EDEDEA; border-color: #fff; color: var(--c-ink); }
.ui-row { display: flex; align-items: center; gap: 12px; }
.ui-ico { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 9px; background: rgb(255 255 255 / .06); color: var(--c-fg); }
.ui-ico .i { width: 16px; height: 16px; stroke-width: 2; }
.ui-ico--red { background: var(--c-red-600); color: #fff; }
.ui-ico--ok { background: rgb(87 199 138 / .16); color: var(--c-ok); }
.ui-title { font-size: 14px; font-weight: 500; line-height: 1.3; }
.ui-sub { font-size: 12px; color: rgb(244 244 242 / .5); line-height: 1.3; }
.ui-card--light .ui-sub { color: #5C5C62; }
.ui-time { white-space: nowrap; margin-left: auto; font-family: var(--font-mono); font-size: 10.5px; color: rgb(244 244 242 / .35); align-self: flex-start; }
.ui-card--light .ui-time { color: #5C5C62; }
.ui-micro { font-family: var(--font-mono); font-size: 10px; letter-spacing: .02em; color: rgb(244 244 242 / .45); }
.ui-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 5px; border: 1px solid rgb(255 255 255 / .1); font-family: var(--font-mono); font-size: 9.5px; color: rgb(244 244 242 / .7); white-space: nowrap; }
.ui-tag--red { background: rgb(243 51 61 / .16); border-color: rgb(243 51 61 / .35); color: var(--c-red-soft); }
.ui-tag--ok { background: rgb(87 199 138 / .14); border-color: rgb(87 199 138 / .35); color: var(--c-ok); }
.ui-tag--light { background: #fff; border-color: #fff; color: var(--c-ink); }
.ui-label { position: absolute; display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px; border-radius: 7px; background: #E9E9E5; color: var(--c-ink); font-size: 12.5px; font-weight: 500; white-space: nowrap; box-shadow: 0 8px 24px -8px rgb(0 0 0 / .6); }
.ui-label .i { width: 13px; height: 13px; color: var(--c-red-600); stroke-width: 2.2; }
.ui-cursor { position: absolute; width: 16px; height: 16px; color: #fff; filter: drop-shadow(0 2px 4px rgb(0 0 0 / .5)); }
.ui-skel { height: 8px; border-radius: 4px; background: linear-gradient(90deg, rgb(255 255 255 / .06) 0, rgb(255 255 255 / .14) 60px, rgb(255 255 255 / .06) 120px) no-repeat, rgb(255 255 255 / .06); background-size: 120px 100%, auto; animation: skel-shimmer 1.8s linear infinite; }
.ui-caret { display: inline-block; width: 1px; height: 12px; margin-left: 2px; background: currentColor; vertical-align: -2px; animation: caret-blink 1.1s step-end infinite; }

/* Linhas de conexão com brilho correndo */
.conn { position: absolute; background:
  linear-gradient(rgb(255 255 255 / .1), rgb(255 255 255 / .1)) center / 100% 1.4px no-repeat; overflow: hidden; }
.conn--h { height: 12px; }
.conn--v { width: 12px; background: linear-gradient(rgb(255 255 255 / .1), rgb(255 255 255 / .1)) center / 1.4px 100% no-repeat; }
.conn::before { content: ""; position: absolute; }
.conn--h::before { top: 50%; left: -40px; width: 40px; height: 2px; transform: translateY(-50%); background: linear-gradient(90deg, transparent, rgb(255 255 255 / .95) 50%, transparent); animation: conn-shimmer-h 2.6s var(--ease-shimmer) infinite; }
.conn--v::before { left: 50%; top: -40px; width: 2px; height: 40px; transform: translateX(-50%); background: linear-gradient(180deg, transparent, rgb(255 255 255 / .95) 50%, transparent); animation: conn-shimmer-v 2.6s var(--ease-shimmer) infinite; }
.conn--red::before { background: linear-gradient(90deg, transparent, var(--c-red-soft) 50%, transparent); }
.conn--delay::before { animation-delay: 1.3s; }

/* ==========================================================================
   HERO: orquestração da Wise Funnel (palco 1440x480, celular 520x860)
   ========================================================================== */
.hero-scene { position: relative; }
.hero-scene .stage { font-size: 13px; }
.hero-arcs { position: absolute; left: 0; top: 0; width: 520px; height: 480px; pointer-events: none; }
.hero-sources { position: absolute; inset: 0; }
.src {
  position: absolute; left: calc(var(--x) * 1px); top: calc(var(--y) * 1px);
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 14px 0 10px; border-radius: 90px;
  background: rgb(255 255 255 / .015); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgb(255 255 255 / .05);
  font-size: 13.5px; line-height: 1.4; color: var(--c-fg); white-space: nowrap;
  opacity: var(--o, 1); transform: translateY(-50%);
  animation: src-in 700ms var(--ease-expo) both; animation-delay: calc(200ms + var(--i) * 70ms);
}
.src .i { width: 16px; height: 16px; stroke-width: 1.9; transition: color var(--t-base) var(--ease-std); }
.src:hover .i { color: var(--c-red-soft); }
.hero-core { position: absolute; left: 720px; top: 240px; width: 0; height: 0; }
.ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; transform: translate(-50%, -50%); border: 1px solid rgb(255 255 255 / .07); animation: ring-in 1s var(--ease-expo) both; }
.ring--1 { width: 250px; height: 250px; border-color: rgb(255 255 255 / .1); }
.ring--2 { width: 400px; height: 400px; border-style: dashed; border-color: rgb(255 255 255 / .06); animation: ring-in 1.2s var(--ease-expo) both, ring-spin 90s linear infinite; }
.ring--3 { width: 560px; height: 560px; border-color: rgb(255 255 255 / .035); animation-delay: .1s; }
.ring__arc { position: absolute; inset: -1px; border-radius: 50%; border: 1px solid transparent; border-top-color: rgb(243 51 61 / .7); border-right-color: rgb(243 51 61 / .15); animation: ring-spin 7s linear infinite; }
.core {
  position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; transform: translate(-50%, -50%);
  display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #1E1E22, #0E0E10 70%);
  border: 1px solid rgb(255 255 255 / .1);
  box-shadow: 0 0 0 8px rgb(10 10 11 / .9), 0 0 80px -10px rgb(243 51 61 / .55);
}
.core svg { width: 50px; height: 40px; }
.core::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1px solid rgb(243 51 61 / .4); animation: core-pulse 3s var(--ease-out) infinite; }
.agent { animation: float-y 5s ease-in-out infinite; animation-delay: var(--fd, 0s); }
.agent .ui-cursor { left: -18px; top: -14px; }
.agent--a { left: 528px; top: 150px; }
.agent--b { left: 808px; top: 186px; --fd: -1.6s; }
.agent--c { left: 690px; top: 352px; --fd: -3.1s; }
.agent--b .ui-cursor { left: auto; right: -16px; transform: scaleX(-1); }
.hero-conn-in { left: 360px; top: 234px; width: 240px; }
.hero-conn-out { left: 842px; top: 234px; width: 186px; }

.notif-stack { position: absolute; left: 1040px; top: 240px; width: 340px; height: 0; }
.notif {
  position: absolute; left: 0; top: 0; width: 100%;
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  transform: translateY(calc(-50% + var(--ty, 0px))) scale(var(--s, .94));
  opacity: var(--op, 0);
  transition: transform 700ms var(--ease-expo), opacity 500ms var(--ease-out), background-color 500ms var(--ease-std), color 500ms var(--ease-std), border-color 500ms;
}
.notif[data-pos="0"] { --ty: -84px; --op: .6; }
.notif[data-pos="1"] { --ty: 0px; --op: 1; --s: 1.04; background: #EDEDEA; color: var(--c-ink); border-color: #fff; z-index: 2; box-shadow: 0 24px 48px -18px rgb(0 0 0 / .7); }
.notif[data-pos="1"] .ui-sub { color: #5C5C62; }
.notif[data-pos="1"] .ui-time { color: #5C5C62; }
.notif[data-pos="1"] .ui-ico { background: var(--c-red-600); color: #fff; }
.notif[data-pos="2"] { --ty: 84px; --op: .6; }
.notif[data-pos="out"] { --ty: -170px; --op: 0; }
.notif[data-pos="in"] { --ty: 170px; --op: 0; }

/* Celular: palco vertical */
@media (max-width: 719px) {
  .hero-scene .stage { font-size: 15px; }
  .hero-arcs { display: none; }
  .hero-sources { inset: 10px 20px auto; height: 230px; display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 10px; }
  .src { position: static; transform: none; opacity: 1; height: 40px; font-size: 16px; padding: 0 16px 0 12px; }
  .src .i { width: 18px; height: 18px; }
  .hero-conn-in { left: 254px; top: 250px; width: 12px; height: 110px; }
  .hero-core { left: 260px; top: 470px; }
  .ring--3 { display: none; }
  .ring--2 { width: 330px; height: 330px; }
  .agent--a { left: 40px; top: 360px; }
  .agent--b { left: 340px; top: 420px; }
  .agent--c { left: 150px; top: 560px; }
  .hero-conn-out { left: 254px; top: 590px; width: 12px; height: 60px; }
  .notif-stack { left: 30px; top: 750px; width: 460px; }
  .notif[data-pos="0"] { --ty: -62px; }
  .notif[data-pos="2"] { --ty: 62px; }
  .notif .ui-title { font-size: 16px; }
  .notif .ui-sub { font-size: 13.5px; }
  .ui-label { font-size: 15px; height: 34px; padding: 0 12px; }
}

/* ==========================================================================
   BENTO 1: Funis & Sites (construtor arrasta e solta) · palco 560x300
   ========================================================================== */
.bld-palette { left: 20px; top: 24px; width: 132px; padding: 10px; display: grid; gap: 6px; }
.bld-chip { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; border-radius: 8px; background: rgb(255 255 255 / .05); font-size: 12px; color: rgb(244 244 242 / .8); }
.bld-chip .i { width: 13px; height: 13px; stroke-width: 2; color: rgb(244 244 242 / .6); }
.bld-chip--ghost { opacity: .35; }
.bld-canvas { left: 168px; top: 18px; width: 332px; height: 300px; padding: 0; overflow: hidden; }
.bld-bar { display: flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-bottom: 1px solid rgb(255 255 255 / .06); }
.bld-bar i { width: 6px; height: 6px; border-radius: 50%; background: rgb(255 255 255 / .16); }
.bld-bar span { margin-left: 10px; font-family: var(--font-mono); font-size: 9.5px; color: rgb(244 244 242 / .4); }
.bld-page { padding: 16px; display: grid; gap: 9px; }
.bld-hero-t { height: 12px; width: 70%; border-radius: 3px; background: rgb(244 244 242 / .75); }
.bld-hero-s { width: 86%; }
.bld-form { margin-top: 6px; padding: 10px; border-radius: 8px; border: 1px solid rgb(255 255 255 / .08); display: grid; gap: 7px; }
.bld-input { height: 22px; border-radius: 5px; background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .06); }
.bld-drop { position: relative; height: 30px; border-radius: 6px; border: 1px dashed rgb(243 51 61 / .55); display: grid; place-items: center; font-family: var(--font-mono); font-size: 9.5px; color: rgb(243 51 61 / .8); }
.bld-drop::after { content: "Quero meu diagnóstico"; position: absolute; inset: -1px; display: grid; place-items: center; border-radius: 6px; background: var(--c-red-600); color: #fff; font-family: var(--font-sans); font-size: 11.5px; font-weight: 500; opacity: 0; animation: bld-filled 7s var(--ease-out) infinite; }
.bld-drag { position: absolute; left: 30px; top: 110px; z-index: 3; width: 116px; background: var(--c-red-600); color: #fff; box-shadow: 0 14px 30px -10px rgb(229 22 28 / .7); animation: bld-drag 7s var(--ease-std) infinite; }
.bld-drag .i { color: #fff; }
.bld-drag .ui-cursor { left: 88px; top: 18px; }
.bld-published { position: absolute; right: 30px; top: 28px; z-index: 4; animation: pop-in 7s var(--ease-out) infinite; }

/* ==========================================================================
   BENTO 2: CRM ilimitado (contatos) · palco 560x300
   ========================================================================== */
.crm-table { position: absolute; left: 20px; right: 20px; top: 16px; font-size: 12px; }
.crm-th, .crm-tr { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr .9fr; align-items: center; gap: 10px; height: 38px; padding: 0 4px; border-bottom: 1px solid rgb(255 255 255 / .06); }
.crm-th { height: 30px; font-family: var(--font-mono); font-size: 9.5px; color: rgb(244 244 242 / .45); }
.crm-tr { color: rgb(244 244 242 / .85); animation: row-in 8s var(--ease-out) infinite; animation-delay: calc(var(--i) * 450ms); }
.crm-name { display: flex; align-items: center; gap: 8px; }
.crm-av { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 9px; font-weight: 600; background: rgb(255 255 255 / .1); color: var(--c-fg); }
.crm-src { display: flex; align-items: center; gap: 6px; color: rgb(244 244 242 / .6); }
.crm-src .i { width: 12px; height: 12px; stroke-width: 2; }
.crm-skel .ui-skel { width: 80%; }
.crm-importing { position: absolute; left: 190px; top: 150px; z-index: 3; animation: float-y 4s ease-in-out infinite; }
.crm-search { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 14px; border-radius: 999px; background: rgb(28 28 31 / .96); border: 1px solid rgb(255 255 255 / .08); font-size: 12px; white-space: nowrap; }
.crm-search .i { width: 14px; height: 14px; color: rgb(244 244 242 / .6); }
.crm-search b { font-weight: 400; font-family: var(--font-mono); font-size: 10.5px; color: rgb(244 244 242 / .45); }

/* ==========================================================================
   BENTO 3: Agendamento · palco 560x300
   ========================================================================== */
.cal { left: 20px; top: 18px; width: 270px; padding: 14px; }
.cal-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 500; margin-bottom: 10px; }
.cal-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 12px; }
.cal-day { display: grid; justify-items: center; gap: 2px; padding: 6px 0; border-radius: 8px; font-size: 10px; color: rgb(244 244 242 / .45); }
.cal-day b { font-size: 14px; font-weight: 500; color: rgb(244 244 242 / .85); }
.cal-day--on { background: rgb(255 255 255 / .07); }
.cal-day--on b { color: #fff; }
.cal-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.cal-slot { height: 32px; display: grid; place-items: center; border-radius: 8px; border: 1px solid rgb(255 255 255 / .08); font-family: var(--font-mono); font-size: 11px; color: rgb(244 244 242 / .8); }
.cal-slot--busy { color: rgb(244 244 242 / .25); text-decoration: line-through; }
.cal-slot--pick { position: relative; overflow: hidden; }
.cal-slot--pick::after { content: "14:00"; position: absolute; inset: 0; display: grid; place-items: center; background: var(--c-red-600); color: #fff; opacity: 0; animation: slot-pick 7s var(--ease-out) infinite; }
.cal-cursor { left: 96px; top: 182px; animation: cal-cursor 7s var(--ease-std) infinite; }
.cal-confirm { left: 300px; top: 72px; width: 200px; padding: 14px; animation: confirm-in 7s var(--ease-expo) infinite; }
.cal-confirm .ui-tag { margin-top: 10px; }
.cal-remind { position: absolute; left: 306px; top: 168px; animation: confirm-in 7s var(--ease-expo) infinite; animation-delay: .35s; }

/* ==========================================================================
   BENTO 4: Treinamentos (área de membros) · palco 560x300
   ========================================================================== */
.course { left: 20px; top: 18px; width: 300px; padding: 8px; display: grid; gap: 4px; }
.mod { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; }
.mod--on { background: rgb(255 255 255 / .05); }
.mod .ui-ico { width: 30px; height: 30px; }
.mod-bar { position: relative; height: 4px; margin-top: 8px; border-radius: 2px; background: rgb(255 255 255 / .08); overflow: hidden; }
.mod-bar span { position: absolute; inset: 0 auto 0 0; width: var(--p); border-radius: 2px; background: #E9E9E5; overflow: hidden; }
.mod--on .mod-bar span { animation: bar-grow 6s var(--ease-out) infinite; }
.mod-bar span::after { content: ""; position: absolute; top: 0; bottom: 0; left: -50px; width: 50px; background: linear-gradient(90deg, transparent, rgb(255 255 255 / .9), transparent); animation: bar-sheen 3.4s linear infinite; }
.mod--lock { opacity: .45; }
.course-cert { left: 300px; top: 196px; width: 200px; padding: 12px 14px; animation: confirm-in 6s var(--ease-expo) infinite; animation-delay: .6s; }
.course-stat { left: 340px; top: 30px; width: 160px; padding: 12px 14px; }
.course-stat .mono { display: block; margin-top: 4px; font-size: 22px; color: var(--c-fg); }

/* ==========================================================================
   ABAS DE AGENTES · palco 560x460
   ========================================================================== */
.panel-frame { position: relative; border-radius: var(--r-lg); border: 1px solid var(--c-hairline); background: var(--c-frost); overflow: hidden; }
/* Só dentro das abas o quadro ocupa a altura do painel; em grids ele mede pelo palco */
.vtabs__panel > .panel-frame { height: 100%; }
.panel-frame::before { content: ""; position: absolute; inset: 3px; border-radius: 13px; background: var(--tex-grain), radial-gradient(80% 100% at 50% 50%, transparent, rgb(0 0 0 / .45)); background-size: 160px, auto; opacity: .5; pointer-events: none; }

/* Booking Bot */
.bk-head { left: 40px; top: 36px; width: 300px; padding: 12px 14px; }
.bk-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-ok); box-shadow: 0 0 0 3px rgb(87 199 138 / .2); }
.bk-slots { position: absolute; left: 40px; top: 120px; width: 480px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.bk-slots .ui-micro { width: 100%; margin-bottom: 2px; }
.bk-slot { height: 34px; padding: 0 12px; display: inline-flex; align-items: center; gap: 8px; border-radius: 9px; border: 1px solid rgb(255 255 255 / .1); background: rgb(28 28 31 / .9); font-size: 12.5px; color: rgb(244 244 242 / .85); }
.bk-slot--busy { color: rgb(244 244 242 / .3); text-decoration: line-through; }
.bk-slot--pick { animation: bk-pick 8s var(--ease-out) infinite; }
.bk-reason { left: 120px; top: 200px; width: 330px; padding: 14px; display: grid; gap: 10px; animation: seq-in 8s var(--ease-out) infinite; animation-delay: .5s; }
.bk-reason p { font-size: 13px; line-height: 1.45; }
.bk-done { left: 120px; top: 340px; width: 330px; padding: 14px; animation: seq-in 8s var(--ease-out) infinite; animation-delay: 1.4s; }

/* Conversation AI: chat estilo WhatsApp */
.chat { left: 70px; top: 26px; width: 420px; height: 408px; display: flex; flex-direction: column; overflow: hidden; }
.chat-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid rgb(255 255 255 / .06); }
.chat-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 16px 14px; }
.msg { max-width: 82%; padding: 10px 13px; border-radius: 14px; font-size: 13px; line-height: 1.45; opacity: 0; }
.msg--1 { animation: chat-1 10s linear infinite; } .msg--2 { animation: chat-2 10s linear infinite; } .msg--3 { animation: chat-3 10s linear infinite; } .msg--4 { animation: chat-4 10s linear infinite; }
.msg--in { align-self: flex-start; background: rgb(255 255 255 / .07); border-bottom-left-radius: 4px; }
.msg--out { align-self: flex-end; background: var(--c-red-600); color: #fff; border-bottom-right-radius: 4px; }
.msg__who { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; font-size: 11px; font-weight: 600; color: var(--c-red-soft); }
.msg__who .i { width: 12px; height: 12px; stroke-width: 2.2; }
.msg--done { align-self: center; display: inline-flex; align-items: center; gap: 8px; background: rgb(87 199 138 / .14); color: var(--c-ok); border: 1px solid rgb(87 199 138 / .3); border-radius: 999px; font-size: 12px; font-weight: 500; }
.msg--done .i { width: 14px; height: 14px; stroke-width: 2.2; }
.chat-foot { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border-top: 1px solid rgb(255 255 255 / .06); font-size: 11.5px; color: rgb(244 244 242 / .5); }
.typing { display: inline-flex; gap: 3px; }
.typing i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: typing 1.2s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }

/* ==========================================================================
   PIPELINE CRM (movimentação automática) · palco 560x420
   ========================================================================== */
.pipe { position: absolute; inset: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pipe-col { position: relative; border-radius: 12px; background: rgb(255 255 255 / .025); border: 1px solid rgb(255 255 255 / .06); padding: 10px; display: grid; align-content: start; gap: 8px; animation: col-glow 9s var(--ease-std) infinite; animation-delay: var(--cd); }
.pipe-col__head { display: flex; justify-content: space-between; align-items: center; padding: 2px 2px 6px; font-size: 12px; font-weight: 500; }
.pipe-col__head .mono { font-size: 10px; color: rgb(244 244 242 / .4); }
.pipe-card { padding: 10px; border-radius: 9px; background: rgb(28 28 31 / .92); border: 1px solid rgb(255 255 255 / .06); display: grid; gap: 6px; }
.pipe-card .ui-skel { width: 70%; height: 6px; }
.pipe-card .ui-skel + .ui-skel { width: 45%; }
.pipe-mover { position: absolute; left: 34px; top: 70px; z-index: 3; width: 143px; padding: 11px; border-radius: 10px; background: #EDEDEA; color: var(--c-ink); box-shadow: 0 20px 40px -16px rgb(0 0 0 / .8); animation: pipe-move 9s var(--ease-expo) infinite; }
.pipe-mover .ui-title { font-size: 12.5px; }
.pipe-mover__states { position: relative; height: 22px; margin-top: 7px; }
.pipe-mover__states span { position: absolute; left: 0; top: 0; opacity: 0; animation: pipe-state 9s linear infinite; animation-delay: var(--sd); }
.pipe-slot { height: 70px; border-radius: 9px; border: 1px dashed rgb(255 255 255 / .1); }
.pipe-auto { position: absolute; z-index: 4; opacity: 0; }
.pipe-auto--a { left: 110px; top: 186px; animation: chip-a 9s var(--ease-out) infinite; }
.pipe-auto--b { left: 250px; top: 236px; animation: chip-b 9s var(--ease-out) infinite; }

/* ==========================================================================
   WISE ATTRIBUTION · palco 560x440
   ========================================================================== */
.attr-node { position: absolute; top: 40px; width: 128px; display: grid; justify-items: center; gap: 10px; text-align: center; }
.attr-node .ui-ico { width: 56px; height: 56px; border-radius: 16px; border: 1px solid rgb(255 255 255 / .08); }
.attr-node .ui-ico .i { width: 24px; height: 24px; stroke-width: 1.6; }
.attr-node .ui-micro { color: rgb(244 244 242 / .65); }
.attr-node--a { left: 30px; } .attr-node--b { left: 216px; } .attr-node--c { left: 402px; }
.attr-node--b .ui-ico { position: relative; background: var(--c-red-600); color: #fff; border-color: transparent; box-shadow: 0 0 40px -6px rgb(243 51 61 / .7); }
.attr-node--b .ui-ico::after { content: ""; position: absolute; inset: -8px; border-radius: 20px; border: 1px solid rgb(243 51 61 / .5); animation: core-pulse 2.4s var(--ease-out) infinite; }
.attr-conn-1 { left: 130px; top: 62px; width: 112px; }
.attr-conn-2 { left: 318px; top: 62px; width: 112px; }
.packet { position: absolute; left: 130px; opacity: 0; top: 66px; width: 6px; height: 6px; margin-top: -1px; border-radius: 50%; background: var(--c-red-soft); box-shadow: 0 0 10px var(--c-red); animation: packet 2.4s linear infinite; animation-delay: var(--pd); }
.attr-bars { left: 30px; right: 30px; top: 186px; padding: 20px; display: grid; gap: 18px; }
.attr-bar__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 12.5px; margin-bottom: 8px; }
.attr-bar__row .mono { font-size: 12px; }
.attr-track { position: relative; height: 22px; border-radius: 6px; background: rgb(255 255 255 / .05); overflow: hidden; }
.attr-fill { position: absolute; inset: 0 auto 0 0; width: var(--p); border-radius: 6px; transform-origin: left center; animation: fill-grow 1.4s var(--ease-expo) both; }
.attr-fill--gray { background: rgb(255 255 255 / .16); }
.attr-fill--light { background: linear-gradient(90deg, #FFFFFF, #E2E2DD); overflow: hidden; }
.attr-fill--light::after { content: ""; position: absolute; top: 0; bottom: 0; left: -50px; width: 50px; background: linear-gradient(90deg, transparent, rgb(243 51 61 / .35), transparent); animation: bar-sheen 3.4s linear infinite; }
.attr-loss { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-family: var(--font-mono); font-size: 10px; color: var(--c-red-soft); }

/* ==========================================================================
   NA PRÁTICA: fluxo em passos (HTML normal, sem palco)
   ========================================================================== */
.flow { position: relative; display: grid; gap: 0; margin-top: 28px; padding: 0; list-style: none; }
.flow__step { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding-bottom: 22px; }
.flow__step:last-child { padding-bottom: 0; }
.flow__step::before { content: ""; position: absolute; left: 19.5px; top: 42px; bottom: 2px; width: 1px; background: var(--c-line-strong); }
.flow__step:last-child::before { display: none; }
.flow__dot { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--c-hairline); background: var(--c-surface); color: var(--c-fg-2);
  animation: step-on calc(var(--n) * 1.2s) var(--ease-std) infinite; animation-delay: calc(var(--i) * 1.2s); }
.flow__dot .i { width: 18px; height: 18px; }
.flow__step h4 { font-size: var(--fs-sm); font-weight: 500; line-height: 1.35; padding-top: 2px; }
.flow__step p { font-size: var(--fs-xs); color: var(--c-muted); margin-top: 2px; }

/* ---------- Keyframes das cenas ---------- */
@keyframes conn-shimmer-h { 0% { left: -40px; } 58%, 100% { left: 100%; } }
@keyframes conn-shimmer-v { 0% { top: -40px; } 58%, 100% { top: 100%; } }
@keyframes skel-shimmer { 0% { background-position: -120px 0, 0 0; } 100% { background-position: calc(100% + 120px) 0, 0 0; } }
@keyframes bar-sheen { 0% { left: -50px; } 55%, 100% { left: 100%; } }
@keyframes caret-blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
@keyframes src-in { from { opacity: 0; transform: translateY(-50%) scale(.9); } to { opacity: var(--o, 1); transform: translateY(-50%) scale(1); } }
@keyframes ring-in { from { opacity: 0; transform: translate(-50%, -50%) scale(.5); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes ring-spin { to { rotate: 360deg; } }
@keyframes core-pulse { 0% { opacity: .9; transform: scale(.92); } 100% { opacity: 0; transform: scale(1.35); } }
@keyframes float-y { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes typing { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }
@keyframes pop-in { 0%, 60% { opacity: 0; transform: translateY(6px) scale(.85); } 66%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-4px); } }
@keyframes bld-drag {
  0%, 10% { transform: translate(0, 0) scale(1); opacity: 1; }
  45% { transform: translate(160px, 104px) rotate(-2deg) scale(1.04); opacity: 1; }
  55% { transform: translate(160px, 104px) scale(.96); opacity: 1; }
  60%, 100% { transform: translate(160px, 104px) scale(.9); opacity: 0; }
}
@keyframes bld-filled { 0%, 56% { opacity: 0; } 60%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes row-in { 0% { opacity: 0; transform: translateX(-8px); } 8%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
@keyframes slot-pick { 0%, 34% { opacity: 0; } 38%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes cal-cursor { 0% { transform: translate(150px, 80px); opacity: 0; } 8% { opacity: 1; } 30% { transform: translate(0, 0); } 33% { transform: translate(0, 0) scale(.85); } 36% { transform: translate(0, 0); } 70% { transform: translate(60px, 50px); opacity: 1; } 100% { transform: translate(150px, 80px); opacity: 0; } }
@keyframes confirm-in { 0%, 40% { opacity: 0; transform: translateY(14px) scale(.96); } 48%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes bar-grow { 0% { width: 8%; } 60%, 100% { width: var(--p); } }
@keyframes bk-pick { 0%, 20% { background: rgb(28 28 31 / .9); color: rgb(244 244 242 / .85); } 26%, 94% { background: var(--c-red-600); color: #fff; border-color: transparent; } 100% { background: rgb(28 28 31 / .9); } }
@keyframes seq-in { 0%, 25% { opacity: 0; transform: translateY(12px); } 33%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes chat-1 { 0% { opacity: 0; transform: translateY(8px); } 4%, 90% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; } }
@keyframes chat-2 { 0%, 15% { opacity: 0; transform: translateY(8px); } 19%, 90% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; } }
@keyframes chat-3 { 0%, 35% { opacity: 0; transform: translateY(8px); } 39%, 90% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; } }
@keyframes chat-4 { 0%, 50% { opacity: 0; transform: translateY(8px) scale(.96); } 54%, 90% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; } }
@keyframes chip-a { 0%, 22% { opacity: 0; transform: translateY(6px); } 26%, 40% { opacity: 1; transform: none; } 46%, 100% { opacity: 0; } }
@keyframes chip-b { 0%, 56% { opacity: 0; transform: translateY(6px); } 60%, 74% { opacity: 1; transform: none; } 80%, 100% { opacity: 0; } }
@keyframes col-glow { 0%, 30% { border-color: rgb(243 51 61 / .45); background: rgb(243 51 61 / .06); } 34%, 100% { border-color: rgb(255 255 255 / .06); background: rgb(255 255 255 / .025); } }
@keyframes pipe-move {
  0%, 26% { transform: translate(0, 0); }
  33%, 59% { transform: translate(175px, 0); }
  66%, 92% { transform: translate(350px, 0); }
  96% { transform: translate(350px, 0); opacity: 0; }
  97% { transform: translate(0, 0); opacity: 0; }
  100% { transform: translate(0, 0); opacity: 1; }
}
@keyframes pipe-state { 0% { opacity: 0; } 2%, 31% { opacity: 1; } 33%, 100% { opacity: 0; } }
@keyframes packet { 0% { left: 130px; opacity: 0; } 10% { opacity: 1; } 45% { left: 236px; opacity: 1; } 50% { left: 318px; opacity: 0; } 55% { opacity: 1; } 95% { left: 424px; opacity: 1; } 100% { left: 430px; opacity: 0; } }
@keyframes fill-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes step-on { 0% { border-color: rgb(243 51 61 / .6); color: #fff; background: var(--c-red-600); box-shadow: 0 0 24px -4px rgb(243 51 61 / .6); } 30% { border-color: rgb(243 51 61 / .6); color: #fff; background: var(--c-red-600); box-shadow: 0 0 24px -4px rgb(243 51 61 / .6); } 40%, 100% { border-color: var(--c-hairline); color: var(--c-fg-2); background: var(--c-surface); box-shadow: none; } }

/* ---------- Movimento reduzido: estado final estático e legível ---------- */
@media (prefers-reduced-motion: reduce) {
  [data-scene] *, [data-scene] *::before, [data-scene] *::after { animation: none !important; }
  .msg, .bk-reason, .bk-done, .cal-confirm, .cal-remind, .course-cert, .crm-tr, .pipe-auto, .bld-published { opacity: 1 !important; transform: none !important; }
  .bld-drag, .cal-cursor, .packet { display: none; }
  .bld-drop::after, .cal-slot--pick::after { opacity: 1; }
  .pipe-mover { transform: translate(175px, 0); }
  .pipe-auto--a { opacity: 1; }
  .pipe-mover__states span:nth-child(2) { opacity: 1; }
  .bk-slot--pick { background: var(--c-red-600); color: #fff; }
}
