/* ==========================================================
   Animated product previews in the homepage products strip
   (EKIP, SalamAI, Saloma AI, MataAI, OnIT). Illustrations only:
   the scenes are driven by assets/js/px-stage.js and run only
   while the preview is on screen.
   ========================================================== */
.plist-image.px {
  position: relative; isolation: isolate; display: block; overflow: hidden;
  background: #060b1a; color: #e9edf7; text-decoration: none; container-type: size;
  font-size: clamp(8.5px, 1.45cqw, 13px); line-height: 1.35;
  --p: var(--product, #f06a2e); --p2: color-mix(in srgb, var(--p) 50%, #fff);
}
:where(.px) p { margin: 0; color: inherit; font-size: inherit; line-height: inherit; }
.px img { animation: none !important; }
.px:not(.is-live) *, .px:not(.is-live) *::before, .px:not(.is-live) *::after { animation-play-state: paused !important; }

.px-bg {
  position: absolute; inset: -15%; z-index: -2;
  background:
    radial-gradient(38% 48% at 75% 42%, color-mix(in srgb, var(--p) 55%, transparent), transparent 70%),
    radial-gradient(35% 40% at 12% 90%, color-mix(in srgb, var(--p) 30%, transparent), transparent 70%),
    linear-gradient(160deg, #0c1631, #060b1a 65%);
  animation: pxDrift 20s ease-in-out infinite alternate;
}
.px-grid {
  position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 32px 32px; animation: pxGrid 12s linear infinite;
  -webkit-mask-image: radial-gradient(70% 70% at 60% 50%, #000, transparent); mask-image: radial-gradient(70% 70% at 60% 50%, #000, transparent);
}
.px-card {
  background: rgba(14, 22, 46, .66); border: 1px solid rgba(255,255,255,.12); border-radius: 1.1em;
  box-shadow: 0 24px 50px -24px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.08);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.px-mono { display: block; font: 600 .76em/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--p2); }
.px-live { display: inline-flex; align-items: center; gap: .4em; padding: .3em .6em; border-radius: 999px; background: rgba(255,77,77,.14); color: #ff8a8a; font: 700 .7em/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; text-transform: uppercase; }
.px-live::before { content: ""; width: .6em; height: .6em; border-radius: 50%; background: #ff4d4d; box-shadow: 0 0 .6em #ff4d4d; animation: pxBlink 1.2s steps(1) infinite; }
.px-caret { display: inline-block; width: 2px; height: 1em; margin-left: 2px; background: var(--p2); vertical-align: -.15em; animation: pxBlink 1s steps(1) infinite; }
.px-dot { flex: none; width: .6em; height: .6em; border-radius: 50%; background: #5fe3a1; box-shadow: 0 0 .8em #5fe3a1; }
.px-chip { display: inline-flex; align-items: center; gap: .4em; padding: .45em .8em; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: .8em; font-weight: 600; color: #fff; }

/* ---------- EKIP: knowledge orbit + sourced answer ---------- */
.px-ekip-orbit { position: absolute; left: 70cqw; top: 50%; --r: min(36cqh, 20cqw); width: calc(var(--r) * 2.3); height: calc(var(--r) * 2.3); transform: translate(-50%, -50%); }
.px-ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; transform: translate(-50%, -50%); }
.px-ring--1 { width: calc(var(--r) * 2); height: calc(var(--r) * 2); border: 1px dashed rgba(255,255,255,.18); animation: pxSpinC 70s linear infinite; }
.px-ring--2 { width: calc(var(--r) * 2.7); height: calc(var(--r) * 2.7); border: 1px solid rgba(255,255,255,.06); }
.px-ring--3 { width: calc(var(--r) * 1.15); height: calc(var(--r) * 1.15); border: 1px solid color-mix(in srgb, var(--p) 45%, transparent); box-shadow: 0 0 3em -1em var(--p) inset; animation: pxSpinCR 30s linear infinite; border-top-color: var(--p2); }
.px-spin { position: absolute; inset: 0; animation: pxSpin 50s linear infinite; }
.px-node { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(var(--a)) translateX(var(--r)) rotate(calc(var(--a) * -1)); }
.px-node b {
  position: absolute; display: flex; align-items: center; gap: .45em; white-space: nowrap; padding: .5em .8em; border-radius: 999px;
  background: rgba(14,22,46,.88); border: 1px solid rgba(255,255,255,.14); font-weight: 600; font-size: .9em; color: #fff;
  animation: pxSpinCR 50s linear infinite; transition: background .4s, border-color .4s, box-shadow .4s;
}
.px-node b svg { flex: none; width: 1.15em; height: 1.15em; color: var(--p2); }
.px-node.is-hit b { background: var(--p); border-color: var(--p2); box-shadow: 0 0 0 .35em color-mix(in srgb, var(--p) 30%, transparent), 0 0 2em var(--p); }
.px-node.is-hit b svg { color: #fff; }
.px-beam {
  position: absolute; left: 0; top: -1px; width: var(--r); height: 2px; transform-origin: 0 50%; transform: rotate(calc(var(--a) + 180deg));
  background: linear-gradient(90deg, transparent, #fff, var(--p2), transparent) no-repeat; background-size: 45% 100%; opacity: 0; transition: opacity .4s;
}
.px-node.is-hit .px-beam { opacity: 1; animation: pxBeam .9s linear infinite; }
.px-core {
  position: absolute; left: 50%; top: 50%; width: calc(var(--r) * .66); height: calc(var(--r) * .66); transform: translate(-50%, -50%); border-radius: 50%;
  display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, var(--p2), var(--p) 55%, #140c4d);
  box-shadow: 0 0 4em color-mix(in srgb, var(--p) 70%, transparent), inset 0 0 2em rgba(255,255,255,.25);
}
.px-core img { width: 44%; height: auto; border-radius: 22%; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.px-core::before, .px-core::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--p2); animation: pxPulse 2.6s ease-out infinite; }
.px-core::after { animation-delay: 1.3s; }
.px.is-search .px-core { animation: pxThrob .5s ease-in-out infinite alternate; }
.px-ekip-chat { position: absolute; z-index: 2; left: 5cqw; top: 50%; transform: translateY(-50%); width: 44cqw; padding: 1.3em 1.4em; display: flex; flex-direction: column; gap: .75em; }
.px-ekip-q { font-size: 1.22em; font-weight: 600; color: #fff; min-height: 2.7em; }
.px-ekip-think { display: flex; align-items: center; gap: .35em; height: 0; overflow: hidden; opacity: 0; font-size: .85em; color: rgba(255,255,255,.65); transition: opacity .3s, height .3s; }
.px-ekip-think span { margin-left: .4em; }
.px-ekip-think i { width: .45em; height: .45em; border-radius: 50%; background: var(--p2); animation: pxDot 1s ease-in-out infinite; }
.px-ekip-think i:nth-child(2) { animation-delay: .15s; }
.px-ekip-think i:nth-child(3) { animation-delay: .3s; }
.px.is-search .px-ekip-think { height: 1.4em; opacity: 1; }
.px-ekip-a { min-height: 4.05em; color: rgba(233,237,247,.92); }
.px-ekip-src {
  display: flex; align-items: center; gap: .5em; padding: .6em .75em; border-radius: .75em; font-size: .86em; color: #fff;
  background: color-mix(in srgb, var(--p) 20%, transparent); border: 1px solid color-mix(in srgb, var(--p) 50%, transparent);
  opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .5s;
}
.px-ekip-src svg { flex: none; width: 1.2em; height: 1.2em; color: var(--p2); }
.px-ekip-src em { margin-left: auto; white-space: nowrap; font-style: normal; font-size: .9em; color: #5fe3a1; }
.px.is-cited .px-ekip-src { opacity: 1; transform: none; }

/* ---------- SalamAI: one speaker, many languages ---------- */
.px-salam-spk { position: absolute; z-index: 2; left: 5cqw; top: 50%; transform: translateY(-50%); width: 34cqw; padding: 1.3em; display: flex; flex-direction: column; gap: 1em; }
.px-salam-head { display: flex; align-items: center; gap: .8em; }
.px-salam-head b { display: block; color: #fff; font-size: 1.05em; margin-top: .2em; }
.px-salam-head .px-live { margin-left: auto; }
.px-salam-orb { position: relative; flex: none; width: 3.3em; height: 3.3em; border-radius: 50%; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 35% 30%, var(--p2), var(--p)); box-shadow: 0 0 1.6em color-mix(in srgb, var(--p) 70%, transparent); }
.px-salam-orb svg { width: 45%; height: 45%; }
.px-salam-orb::before, .px-salam-orb::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--p2); opacity: 0; }
.px.is-speaking .px-salam-orb::before, .px.is-speaking .px-salam-orb::after { animation: pxPulse 1.8s ease-out infinite; }
.px.is-speaking .px-salam-orb::after { animation-delay: .9s; }
.px-wave { display: flex; align-items: center; gap: .22em; height: 3.2em; }
.px-wave i { flex: 1; height: 100%; border-radius: 3px; background: linear-gradient(var(--p2), var(--p)); transform: scaleY(.12); transition: transform .3s; }
.px.is-speaking .px-wave i { animation: pxWave var(--w, .7s) ease-in-out var(--d, 0s) infinite alternate; }
.px-salam-src { min-height: 2.8em; font-size: 1.12em; font-weight: 600; color: #fff; }
.px-salam-flow { position: absolute; left: 40cqw; width: 8cqw; top: 20cqh; bottom: 24cqh; }
.px-salam-flow i { position: absolute; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.3), rgba(255,255,255,.05)); }
.px-salam-flow i:nth-child(1) { top: 0; } .px-salam-flow i:nth-child(2) { top: 33%; } .px-salam-flow i:nth-child(3) { top: 66%; } .px-salam-flow i:nth-child(4) { top: 100%; }
.px-salam-flow i::after { content: ""; position: absolute; top: -2.5px; left: 0; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px var(--p2), 0 0 4px #fff; opacity: 0; }
.px.is-speaking .px-salam-flow i::after { animation: pxFlow 1.3s linear infinite; }
.px-salam-flow i:nth-child(2)::after { animation-delay: .3s !important; } .px-salam-flow i:nth-child(3)::after { animation-delay: .6s !important; } .px-salam-flow i:nth-child(4)::after { animation-delay: .9s !important; }
.px-salam-list { position: absolute; right: 5cqw; top: 50%; transform: translateY(-50%); width: 47cqw; display: flex; flex-direction: column; gap: .7em; }
.px-salam-lang { position: relative; display: flex; align-items: center; gap: .9em; padding: .85em 1em; transition: border-color .3s, box-shadow .3s; }
.px-salam-lang.is-typing { border-color: color-mix(in srgb, var(--p2) 70%, transparent); box-shadow: 0 0 1.6em -0.4em var(--p), inset 0 1px 0 rgba(255,255,255,.08); }
.px-salam-lang p { flex: 1; min-height: 1.35em; color: #fff; font-size: 1.02em; }
.px-code { flex: none; min-width: 3.2em; text-align: center; padding: .4em .5em; border-radius: .55em; background: color-mix(in srgb, var(--p) 40%, transparent); color: #fff; font-weight: 700; font-size: .8em; }
.px-salam-more { padding-left: .4em; font-size: .84em; color: rgba(255,255,255,.55); }

/* ---------- Saloma AI: an AI agent answering a call ---------- */
.px-saloma-call { position: absolute; z-index: 2; left: 5cqw; top: 50%; transform: translateY(-50%); width: 34cqw; padding: 1.5em 1.2em 1.2em; display: flex; flex-direction: column; align-items: center; gap: .55em; text-align: center; }
.px-saloma-orb { position: relative; width: 12.5cqw; height: 12.5cqw; margin: .2em 0 .7em; }
.px-saloma-orb i { position: absolute; inset: 0; border-radius: 42% 58% 62% 38% / 48% 42% 58% 52%; mix-blend-mode: screen; opacity: .85; filter: blur(1px); animation: pxSpin 7s linear infinite; }
.px-saloma-orb i:nth-child(1) { background: radial-gradient(circle at 30% 30%, var(--p2), var(--p)); }
.px-saloma-orb i:nth-child(2) { background: radial-gradient(circle at 70% 40%, #3fd3ff, transparent 70%); animation-duration: 5s; animation-direction: reverse; }
.px-saloma-orb i:nth-child(3) { background: radial-gradient(circle at 40% 75%, #ff5fa2, transparent 65%); animation-duration: 9s; }
.px-saloma-orb b { position: absolute; inset: 22%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--p2) 45%, var(--p)); box-shadow: 0 0 2.5em var(--p); }
.px-saloma-orb::before, .px-saloma-orb::after { content: ""; position: absolute; inset: -6%; border-radius: 50%; border: 2px solid var(--p2); opacity: 0; }
.px.is-ring .px-saloma-orb::before, .px.is-ring .px-saloma-orb::after { animation: pxPulse 1.2s ease-out infinite; }
.px.is-ring .px-saloma-orb::after { animation-delay: .6s; }
.px.is-ring .px-saloma-orb { animation: pxShake .5s ease-in-out infinite; }
.px.is-talk .px-saloma-orb b { animation: pxThrob .28s ease-in-out infinite alternate; }
.px-saloma-status { display: flex; align-items: center; gap: .5em; font-weight: 700; font-size: 1.05em; color: #fff; }
.px.is-ring .px-dot { background: #ffb020; box-shadow: 0 0 .8em #ffb020; animation: pxBlink .6s steps(1) infinite; }
.px-saloma-num { font-size: .9em; color: rgba(255,255,255,.6); }
.px-saloma-time { font: 600 1.25em/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--p2); }
.px-saloma-btns { display: flex; gap: .5em; margin-top: .3em; }
.px-saloma-btns span { padding: .5em .9em; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); font-size: .8em; font-weight: 600; color: #fff; }
.px-saloma-btns .is-main { background: var(--p); border-color: transparent; }
.px-saloma-foot { margin-top: .5em; padding-top: .7em; border-top: 1px solid rgba(255,255,255,.1); width: 100%; font-size: .8em; color: rgba(255,255,255,.6); }
.px-saloma-foot b { color: #fff; font-variant-numeric: tabular-nums; }
.px-saloma-lang { position: absolute; right: 5cqw; top: 6cqh; }
.px-saloma-chat {
  position: absolute; right: 5cqw; top: 15cqh; bottom: 7cqh; width: 47cqw; display: flex; flex-direction: column; justify-content: flex-end; gap: .6em; overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 20%); mask-image: linear-gradient(transparent, #000 20%);
}
.px-msg { max-width: 86%; padding: .7em .95em; border-radius: 1em; font-size: .98em; color: #fff; animation: pxMsg .45s cubic-bezier(.2,.7,.2,1) both; }
.px-msg small { display: block; margin-bottom: .25em; font: 700 .7em/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; text-transform: uppercase; opacity: .65; }
.px-msg--in { align-self: flex-start; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-bottom-left-radius: .3em; }
.px-msg--out { align-self: flex-end; background: linear-gradient(135deg, var(--p), color-mix(in srgb, var(--p) 55%, #3fd3ff)); border-bottom-right-radius: .3em; box-shadow: 0 10px 30px -14px var(--p); }
.px-typing { display: inline-flex; gap: .3em; padding: .3em 0; }
.px-typing i { width: .45em; height: .45em; border-radius: 50%; background: #fff; animation: pxDot 1s ease-in-out infinite; }
.px-typing i:nth-child(2) { animation-delay: .15s; } .px-typing i:nth-child(3) { animation-delay: .3s; }

/* ---------- MataAI: camera feed with plain-language rules ---------- */
.px--mata { background: #000; }
.px-mata-feed { position: absolute; left: 50%; top: 50%; width: max(100cqw, 150cqh); aspect-ratio: 3 / 2; transform: translate(-50%, -50%); overflow: hidden; }
.px-mata-feed img { display: block; width: 100%; height: 100%; filter: saturate(.7) contrast(1.05) brightness(.78); }
.px-mata-feed::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(6,11,26,.1), rgba(6,11,26,.5)), repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 3px); }
.px-box {
  position: absolute; z-index: 1; --c: #ffd23f; border: 1.5px solid var(--c); border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.35), 0 0 1.2em color-mix(in srgb, var(--c) 45%, transparent), inset 0 0 1.5em color-mix(in srgb, var(--c) 15%, transparent);
  opacity: 0; transform: scale(1.18); transition: opacity .35s, transform .5s cubic-bezier(.2,.7,.2,1), border-color .3s;
}
.px-box em { position: absolute; left: -1.5px; bottom: 100%; margin-bottom: 3px; padding: .3em .45em; border-radius: 3px; white-space: nowrap; font: 700 .72em/1 ui-monospace, SFMono-Regular, Menlo, monospace; font-style: normal; background: var(--c); color: #111; }
.px-box.is-on { opacity: 1; transform: none; }
.px-box.is-alert { --c: #ff4d4d; animation: pxAlert .55s ease-in-out infinite alternate; }
.px-box.is-alert em { color: #fff; }
.px-box.is-ok { --c: #5fe3a1; }
.px-mata-scan { position: absolute; z-index: 1; left: 0; right: 0; top: -20%; height: 20%; background: linear-gradient(transparent, color-mix(in srgb, var(--p) 22%, transparent)); border-bottom: 1px solid color-mix(in srgb, var(--p) 75%, transparent); animation: pxScan 3.8s linear infinite; }
.px-mata-hud { position: absolute; z-index: 2; inset: 4cqh 3cqw; pointer-events: none; }
.px-mata-hud > i { position: absolute; width: 1.8em; height: 1.8em; border: 2px solid rgba(255,255,255,.7); }
.px-mata-hud > i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.px-mata-hud > i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.px-mata-hud > i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.px-mata-hud > i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.px-mata-tag, .px-mata-clock { position: absolute; top: .7em; display: inline-flex; align-items: center; gap: .6em; font: 600 .8em/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.px-mata-tag { left: 1em; } .px-mata-clock { right: 1em; padding: .35em .55em; border-radius: .4em; background: rgba(0,0,0,.45); }
.px-mata-rule { position: absolute; z-index: 3; left: 4cqw; bottom: 13cqh; width: 46cqw; padding: 1em 1.15em; display: flex; flex-direction: column; gap: .55em; background: rgba(8,12,26,.78); }
.px-mata-rule p { min-height: 2.7em; font-size: 1.08em; font-weight: 600; color: #fff; }
.px-mata-state { display: flex; align-items: center; gap: .5em; font-size: .84em; color: rgba(255,255,255,.75); }
.px.is-watch .px-mata-state .px-dot { background: var(--p); box-shadow: 0 0 .8em var(--p); animation: pxBlink .8s steps(1) infinite; }
.px.is-alerted .px-mata-state .px-dot { background: #ff4d4d; box-shadow: 0 0 .8em #ff4d4d; }
.px-mata-alert {
  position: absolute; z-index: 3; right: 4cqw; top: 13cqh; width: 38cqw; padding: .75em; display: flex; align-items: center; gap: .8em;
  background: rgba(8,12,26,.85); border-left: 3px solid #ff4d4d; opacity: 0; transform: translateX(30%); transition: opacity .45s, transform .55s cubic-bezier(.2,.7,.2,1);
}
.px-mata-alert b { display: block; color: #fff; font-size: .98em; }
.px-mata-alert span span { display: block; margin-top: .2em; font-size: .8em; color: rgba(255,255,255,.65); }
.px-mata-thumb { flex: none; width: 4.4em; height: 3.3em; border-radius: .45em; background: url("../img/mega/mata-restaurant-2026.webp") 62% 45% / 320% auto no-repeat; box-shadow: inset 0 0 0 1.5px #ff4d4d; }
.px.is-alerted .px-mata-alert { opacity: 1; transform: none; }

/* ---------- OnIT: operations dashboard with an AI insight ---------- */
.px-onit-app { position: absolute; inset: 6cqh 4cqw; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1em; }
.px-onit-side { display: flex; flex-direction: column; align-items: center; gap: .55em; padding: .8em .55em; border-radius: 1em; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.px-onit-side img { width: 2.4em; height: 2.4em; margin-bottom: .4em; border-radius: .6em; }
.px-onit-side span { display: grid; place-items: center; width: 2.6em; height: 2.6em; border-radius: .8em; color: rgba(255,255,255,.55); transition: background .4s, color .4s, box-shadow .4s; }
.px-onit-side span svg { width: 1.25em; height: 1.25em; }
.px-onit-side span.is-on { background: var(--p); color: #fff; box-shadow: 0 0 1.4em color-mix(in srgb, var(--p) 60%, transparent); }
.px-onit-main { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: .9em; min-width: 0; min-height: 0; }
.px-onit-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8em; }
.px-kpi { padding: .9em 1em; }
.px-kpi small { display: block; font-size: .78em; color: rgba(255,255,255,.62); }
.px-kpi b { display: block; margin: .15em 0; font-size: 1.75em; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.px-kpi em { font-style: normal; font-size: .74em; color: #5fe3a1; }
.px-onit-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: .8em; min-height: 0; }
.px-onit-chart { padding: 1em; display: flex; flex-direction: column; gap: .6em; min-height: 0; }
.px-onit-chart svg { flex: 1; width: 100%; min-height: 0; overflow: visible; }
.px-bar { fill: url(#pxOnitG); transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); }
.px.is-built .px-bar { transform: scaleY(1); transition: transform .9s cubic-bezier(.2,.7,.2,1) calc(var(--i) * 90ms); }
.px-line { stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 4px #7fd4ff); }
.px.is-built .px-line { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s ease .5s; }
.px-onit-tasks { padding: 1em; display: flex; flex-direction: column; gap: .6em; min-height: 0; overflow: hidden; }
.px-task { display: flex; align-items: center; gap: .6em; font-size: .88em; color: rgba(255,255,255,.85); }
.px-task i { position: relative; flex: none; width: 1.15em; height: 1.15em; border-radius: .35em; border: 1.5px solid rgba(255,255,255,.3); transition: background .3s, border-color .3s; }
.px-task i::after { content: ""; position: absolute; left: 32%; top: 12%; width: 28%; height: 50%; border: solid #0c1631; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .3s cubic-bezier(.2,.7,.2,1.4); }
.px-task.is-done i { background: #5fe3a1; border-color: #5fe3a1; }
.px-task.is-done i::after { transform: rotate(45deg) scale(1); }
.px-task span { transition: opacity .3s; }
.px-task.is-done span { opacity: .5; text-decoration: line-through; }
.px-onit-ai {
  position: absolute; z-index: 3; right: 3cqw; bottom: 5cqh; width: 42cqw; padding: 1em 1.1em;
  border-color: color-mix(in srgb, var(--p) 65%, transparent); background: rgba(16,14,36,.9);
  box-shadow: 0 0 3em -0.6em var(--p), 0 24px 50px -24px rgba(0,0,0,.8);
  opacity: 0; transform: translateY(14px) scale(.97); transition: opacity .5s, transform .6s cubic-bezier(.2,.7,.2,1);
}
.px.is-ai .px-onit-ai { opacity: 1; transform: none; }
.px-onit-ai p { min-height: 2.7em; margin: .5em 0 .75em; color: #fff; font-size: .98em; }
.px-onit-btns { display: flex; align-items: center; gap: .5em; }
.px-onit-btns span { padding: .5em .9em; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); font-size: .8em; font-weight: 600; color: #fff; transition: transform .2s, opacity .3s; }
.px-onit-btns .is-main { background: var(--p); border-color: transparent; }
.px-onit-btns b { display: none; font-size: .86em; color: #5fe3a1; }
.px.is-sent .px-onit-btns span { display: none; }
.px.is-sent .px-onit-btns b { display: block; animation: pxMsg .4s ease both; }
.px.is-press .px-onit-btns .is-main { transform: scale(.92); }

/* ---------- small screens: keep only the essentials ---------- */
@container (max-width: 560px) {
  .plist-image.px { font-size: clamp(8px, 2.3cqw, 11px); }
  .px-ekip-chat { width: 58cqw; left: 4cqw; padding: 1em; gap: .5em; }
  .px-ekip-chat .px-mono, .px-ekip-think span, .px-ekip-src em { display: none; }
  .px-ekip-orbit { left: 82cqw; }
  .px-node b span { display: none; }
  .px-salam-spk { width: 40cqw; left: 4cqw; padding: 1em; gap: .6em; }
  .px-salam-head .px-mono, .px-salam-head .px-live, .px-salam-flow, .px-salam-more, .px-salam-lang:nth-child(n+4) { display: none; }
  .px-salam-list { width: 50cqw; right: 3cqw; gap: .5em; }
  .px-salam-lang { padding: .6em .7em; gap: .6em; }
  .px-saloma-call { width: 38cqw; left: 4cqw; padding: 1em .8em; }
  .px-saloma-num, .px-saloma-btns, .px-saloma-foot { display: none; }
  .px-saloma-orb { width: 18cqw; height: 18cqw; }
  .px-saloma-chat { width: 54cqw; right: 3cqw; top: 14cqh; bottom: 5cqh; }
  .px-saloma-lang { display: none; }
  .px-mata-rule { width: 64cqw; left: 3cqw; bottom: 17cqh; padding: .75em .9em; gap: .35em; }
  .px-mata-rule .px-mono { display: none; }
  .px-mata-alert { width: 52cqw; right: 3cqw; top: 15cqh; }
  .px-mata-thumb, .px-mata-tag { display: none; }
  .px-onit-app { inset: 5cqh 3cqw; gap: .6em; }
  .px-onit-side { display: none; }
  .px-onit-kpis .px-kpi:nth-child(3), .px-onit-tasks, .px-kpi em { display: none; }
  .px-onit-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6em; }
  .px-onit-row { grid-template-columns: minmax(0, 1fr); }
  .px-onit-ai { width: 66cqw; }
}

@keyframes pxDrift { to { transform: translate(-3%, 2%) rotate(3deg); } }
@keyframes pxGrid { to { background-position: 32px 32px; } }
@keyframes pxBlink { 50% { opacity: 0; } }
@keyframes pxSpin { to { transform: rotate(360deg); } }
@keyframes pxSpinC { from { transform: translate(-50%, -50%) rotate(0); } to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes pxSpinCR { from { transform: translate(-50%, -50%) rotate(0); } to { transform: translate(-50%, -50%) rotate(-360deg); } }
@keyframes pxPulse { 0% { transform: scale(.85); opacity: .8; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes pxThrob { to { scale: 1.08; } }
@keyframes pxBeam { from { background-position: -50% 0; } to { background-position: 150% 0; } }
@keyframes pxDot { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
@keyframes pxWave { to { transform: scaleY(1); } }
@keyframes pxFlow { 0% { left: 0; opacity: 0; } 20% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes pxMsg { from { opacity: 0; transform: translateY(10px) scale(.96); } }
@keyframes pxShake { 0%, 100% { rotate: 0deg; } 25% { rotate: -6deg; } 75% { rotate: 6deg; } }
@keyframes pxScan { to { top: 100%; } }
@keyframes pxAlert { to { box-shadow: 0 0 0 1px rgba(0,0,0,.35), 0 0 2.4em rgba(255,77,77,.8), inset 0 0 2em rgba(255,77,77,.3); } }

@media (prefers-reduced-motion: reduce) {
  .px *, .px *::before, .px *::after { animation: none !important; transition: none !important; }
}

/* SalamAI: each translation card gets its own stream line from the speaker */
.px-salam-flow { display: none; }
.px-salam-lang::before { content: ""; position: absolute; right: 100%; top: 50%; width: 8cqw; height: 1px; background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.35)); }
.px-salam-lang::after { content: ""; position: absolute; top: calc(50% - 3px); right: calc(100% + 8cqw); width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px var(--p2), 0 0 4px #fff; opacity: 0; }
.px-salam-lang.is-typing::after { animation: pxStream .9s linear infinite; }
@keyframes pxStream { 0% { right: calc(100% + 8cqw); opacity: 0; } 25% { opacity: 1; } 100% { right: 100%; opacity: 0; } }
@container (max-width: 560px) { .px-salam-lang::before { width: 4cqw; } .px-salam-lang::after { display: none; } }

/* phones: keep the orbit fully inside the frame, and drop the caption that would sit on the cards */
@container (max-width: 560px) {
  .px-ekip-chat { width: 54cqw; }
  .px-ekip-orbit { left: 78cqw; --r: min(34cqh, 16cqw); }
  .px-node b { padding: .45em; }
  .px-node b svg { width: 1.3em; height: 1.3em; }
}
@media (max-width: 640px) { .plist-slide-shot:has(.px) figcaption { display: none; } }
