/* Quali-D PBX page (EN + AR). Everything is scoped to .pbx-page so it cannot affect other pages.
   Product mockups (.px-ui*) are illustrations built in HTML/CSS/SVG. Each one can be swapped for a
   real screenshot: replace the mockup block with <img src="resources/pbx/..." alt="..."> inside the same frame. */

.pbx-page {
    --px-blue: #3B82F6;
    --px-blue-2: #60A5FA;
    --px-indigo: #6366F1;
    --px-green: #10B981;
    --px-amber: #F59E0B;
    --px-red: #EF4444;
    --px-violet: #A78BFA;
    --px-surface: rgba(30, 41, 59, .55);
    --px-surface-solid: #111a2e;
    --px-line: rgba(148, 163, 184, .18);
    --px-glow: 0 30px 80px -20px rgba(59, 130, 246, .45);
    /* Product UI palette: mockups always render as the dark product UI, in both site themes */
    --ui-bg: #0b1222;
    --ui-panel: #111b30;
    --ui-panel-2: #16223b;
    --ui-line: #22314f;
    --ui-text: #e6edf8;
    --ui-muted: #8a9bb8;
}
[data-theme="light"].pbx-page {
    --px-surface: rgba(255, 255, 255, .8);
    --px-surface-solid: #ffffff;
    --px-line: rgba(15, 23, 42, .10);
    --px-glow: 0 30px 70px -25px rgba(37, 99, 235, .35);
}
.pbx-page { overflow-x: hidden; }
.pbx-page[dir="rtl"], .pbx-page :lang(ar) { font-family: "Cairo", "Inter", system-ui, sans-serif; }

/* ---------- Shared bits ---------- */
.px-wrap { max-width: 1240px; margin: 0 auto; padding: 0 2rem; position: relative; z-index: 2; }
.px-section { position: relative; padding: 120px 0; background: var(--bg-primary); overflow: hidden; }
.px-section.alt { background: var(--bg-secondary); }
[data-theme="light"] .px-section.alt { background: #f3f6fb; }
.px-eyebrow {
    display: inline-flex; align-items: center; gap: .55rem;
    margin-bottom: 1.25rem; padding: .4rem .95rem .4rem .45rem;
    border: 1px solid rgba(96, 165, 250, .4); border-radius: 999px;
    background: rgba(59, 130, 246, .10);
    color: var(--primary-light); font-size: .85rem; font-weight: 600; letter-spacing: .02em;
}
.px-eyebrow b {
    padding: .15rem .55rem; border-radius: 999px;
    background: var(--gradient-primary); color: #fff; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
}
[data-theme="light"] .px-eyebrow { color: var(--primary-dark); }
.px-h2 {
    margin: 0 0 1.1rem; color: var(--text-primary);
    font-size: clamp(2rem, 4.2vw, 3.3rem); font-weight: 800; line-height: 1.12; letter-spacing: -.02em;
}
[dir="rtl"] .px-h2 { letter-spacing: 0; line-height: 1.35; }
.px-lead { margin: 0 0 1.75rem; color: var(--text-secondary); font-size: 1.15rem; line-height: 1.8; max-width: 620px; }
.px-center { text-align: center; }
.px-center .px-lead { margin-inline: auto; }
.px-grad { background: linear-gradient(100deg, #60A5FA 0%, #818CF8 45%, #34D399 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.px-btns { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* Big feature number */
.px-kicker { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.px-num {
    font-size: 4.5rem; font-weight: 800; line-height: .9; letter-spacing: -.04em;
    color: transparent; -webkit-text-stroke: 1.5px rgba(96, 165, 250, .7);
}
[data-theme="light"] .px-num { -webkit-text-stroke-color: rgba(37, 99, 235, .55); }
.px-tag {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .45rem .9rem; border-radius: 999px;
    background: rgba(16, 185, 129, .12); border: 1px solid rgba(16, 185, 129, .35);
    color: #34D399; font-weight: 700; font-size: .85rem; letter-spacing: .05em; text-transform: uppercase;
}
[dir="rtl"] .px-tag { letter-spacing: 0; }
[data-theme="light"] .px-tag { color: #047857; }
.px-tag.blue { background: rgba(59, 130, 246, .12); border-color: rgba(59, 130, 246, .35); color: var(--primary-light); }
.px-tag.violet { background: rgba(167, 139, 250, .12); border-color: rgba(167, 139, 250, .38); color: #C4B5FD; }
[data-theme="light"] .px-tag.blue { color: var(--primary-dark); }
[data-theme="light"] .px-tag.violet { color: #6D28D9; }

/* Section glows */
.px-glow::before {
    content: ""; position: absolute; z-index: 0; pointer-events: none;
    width: 900px; height: 900px; border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, .16), transparent 60%);
    top: -300px; inset-inline-end: -300px;
}
.px-glow.green::before { background: radial-gradient(circle, rgba(16, 185, 129, .13), transparent 60%); inset-inline-end: auto; inset-inline-start: -320px; }
.px-glow.violet::before { background: radial-gradient(circle, rgba(129, 140, 248, .16), transparent 60%); top: auto; bottom: -380px; }

/* Ticked list */
.px-list { margin: 0 0 1.75rem; padding: 0; list-style: none; display: grid; gap: .85rem; }
.px-list li { display: flex; gap: .85rem; align-items: flex-start; color: var(--text-secondary); line-height: 1.7; }
.px-list li::before {
    content: ""; flex: 0 0 1.5rem; height: 1.5rem; margin-top: .1rem; border-radius: 50%;
    background: rgba(16, 185, 129, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334D399' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 62% no-repeat;
}
.px-list strong { color: var(--text-primary); }
.px-list a { color: var(--primary-light); }

/* ---------- Product UI frames ---------- */
.px-window {
    position: relative; border-radius: 18px; overflow: hidden;
    background: var(--ui-bg); border: 1px solid var(--ui-line);
    box-shadow: var(--px-glow), 0 0 0 1px rgba(255, 255, 255, .03) inset;
    color: var(--ui-text); font-family: "Inter", system-ui, sans-serif;
}
[dir="rtl"] .px-window { font-family: "Cairo", "Inter", system-ui, sans-serif; }
.px-bar {
    display: flex; align-items: center; gap: .45rem;
    padding: .65rem .9rem; background: #0e1729; border-bottom: 1px solid var(--ui-line);
}
.px-bar i { width: .65rem; height: .65rem; border-radius: 50%; background: #334155; display: block; flex: 0 0 auto; }
.px-bar i:nth-child(1) { background: #ef4444; } .px-bar i:nth-child(2) { background: #f59e0b; } .px-bar i:nth-child(3) { background: #10b981; }
.px-bar b {
    margin-inline-start: .75rem; padding: .25rem .8rem; border-radius: 8px;
    background: #0a1222; border: 1px solid var(--ui-line);
    color: var(--ui-muted); font-size: .74rem; font-weight: 500; direction: ltr;
    display: inline-flex; align-items: center; gap: .4rem;
}
.px-bar b::before { content: ""; width: .55rem; height: .55rem; border-radius: 2px; border: 1.5px solid #34D399; border-bottom-width: 3px; }
.px-window img { display: block; width: 100%; height: auto; }

/* ---------- HERO ---------- */
.pbx-page .px-hero { padding: 140px 0 110px; }
.px-hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 3.5rem; align-items: center; }
.px-hero h1 {
    margin: 0 0 1.4rem; color: var(--text-primary);
    font-size: clamp(2.5rem, 5.4vw, 4.4rem); font-weight: 800; line-height: 1.04; letter-spacing: -.035em;
    animation: fadeInUp .8s ease-out;
}
[dir="rtl"] .px-hero h1 { letter-spacing: 0; line-height: 1.3; }
.px-hero h1 .px-grad { display: inline-block; }
.px-hero .px-lead { font-size: 1.2rem; }
.px-formula {
    display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
    margin: 0 0 2rem; padding: 0; list-style: none;
}
.px-formula li {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .5rem .85rem; border-radius: 12px;
    background: var(--px-surface); border: 1px solid var(--px-line);
    color: var(--text-primary); font-weight: 600; font-size: .92rem;
    backdrop-filter: blur(8px);
}
.px-formula li.op { padding: 0 .1rem; background: none; border: 0; color: var(--text-light); font-weight: 400; }
.px-formula svg { width: 18px; height: 18px; flex: 0 0 auto; }
.px-proof { display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; margin-top: 2.25rem; padding-top: 1.75rem; border-top: 1px solid var(--px-line); }
.px-proof div { display: flex; flex-direction: column; gap: .2rem; }
.px-proof strong { color: var(--text-primary); font-size: 1.6rem; font-weight: 800; line-height: 1.1; }
.px-proof span { color: var(--text-secondary); font-size: .88rem; }

/* Hero stage (dashboard + floating phone + chips) */
.px-stage { position: relative; padding: 1rem 0 3rem; perspective: 1600px; }
.px-stage .px-window { transform: rotateY(-7deg) rotateX(3deg); transform-origin: center; animation: pxTilt 9s ease-in-out infinite; }
[dir="rtl"] .px-stage .px-window { transform: rotateY(7deg) rotateX(3deg); animation-name: pxTiltRtl; }
@keyframes pxTilt { 0%,100% { transform: rotateY(-7deg) rotateX(3deg); } 50% { transform: rotateY(-3deg) rotateX(1deg) translateY(-6px); } }
@keyframes pxTiltRtl { 0%,100% { transform: rotateY(7deg) rotateX(3deg); } 50% { transform: rotateY(3deg) rotateX(1deg) translateY(-6px); } }

.px-dash { display: grid; grid-template-columns: 150px 1fr; min-height: 360px; font-size: .78rem; }
.px-side { padding: .9rem .6rem; background: #0d1628; border-inline-end: 1px solid var(--ui-line); display: flex; flex-direction: column; gap: .2rem; }
.px-side .logo { display: flex; align-items: center; gap: .45rem; padding: .2rem .5rem .9rem; font-weight: 800; font-size: .85rem; color: #fff; }
.px-side .logo i { width: 1.4rem; height: 1.4rem; border-radius: 7px; background: var(--gradient-primary); display: grid; place-items: center; font-style: normal; font-size: .7rem; }
.px-side span { display: flex; align-items: center; gap: .5rem; padding: .45rem .55rem; border-radius: 8px; color: var(--ui-muted); white-space: nowrap; }
.px-side span::before { content: ""; width: .5rem; height: .5rem; border-radius: 3px; background: currentColor; opacity: .55; flex: 0 0 auto; }
.px-side span.on { background: rgba(59, 130, 246, .16); color: #cfe0ff; }
.px-side span.on::before { background: var(--px-blue-2); opacity: 1; }
.px-main { padding: .9rem 1rem 1rem; display: grid; gap: .75rem; align-content: start; }
.px-main-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.px-main-head h4 { margin: 0; font-size: .95rem; color: #fff; }
.px-pill { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .55rem; border-radius: 999px; font-size: .68rem; font-weight: 600; background: rgba(16, 185, 129, .14); color: #34D399; white-space: nowrap; }
.px-pill::before { content: ""; width: .42rem; height: .42rem; border-radius: 50%; background: currentColor; animation: pxBlink 1.6s infinite; }
.px-pill.blue { background: rgba(59, 130, 246, .16); color: #93C5FD; }
.px-pill.amber { background: rgba(245, 158, 11, .15); color: #FBBF24; }
.px-pill.violet { background: rgba(167, 139, 250, .16); color: #C4B5FD; }
@keyframes pxBlink { 50% { opacity: .3; } }
.px-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: .55rem; }
.px-kpi { padding: .6rem .65rem; border-radius: 10px; background: var(--ui-panel); border: 1px solid var(--ui-line); }
.px-kpi small { display: block; color: var(--ui-muted); font-size: .64rem; margin-bottom: .2rem; white-space: nowrap; }
.px-kpi b { font-size: 1.15rem; color: #fff; }
.px-kpi em { font-style: normal; font-size: .62rem; color: #34D399; margin-inline-start: .25rem; }
.px-split { display: grid; grid-template-columns: 1.25fr 1fr; gap: .55rem; }
.px-card { border-radius: 10px; background: var(--ui-panel); border: 1px solid var(--ui-line); padding: .65rem .7rem; }
.px-card h5 { margin: 0 0 .55rem; font-size: .72rem; color: var(--ui-muted); font-weight: 600; display: flex; justify-content: space-between; }
.px-calls { display: grid; gap: .4rem; }
.px-call { display: grid; grid-template-columns: auto 1fr auto; gap: .5rem; align-items: center; padding: .4rem .45rem; border-radius: 8px; background: var(--ui-panel-2); }
.px-av { width: 1.55rem; height: 1.55rem; border-radius: 50%; display: grid; place-items: center; font-size: .62rem; font-weight: 700; color: #fff; background: linear-gradient(135deg, #3B82F6, #6366F1); }
.px-av.g { background: linear-gradient(135deg, #10B981, #059669); }
.px-av.a { background: linear-gradient(135deg, #F59E0B, #EA580C); }
.px-call b { display: block; font-size: .7rem; color: #fff; font-weight: 600; }
.px-call small { color: var(--ui-muted); font-size: .62rem; }
.px-wave { display: inline-flex; gap: 2px; align-items: center; height: 14px; }
.px-wave i { width: 2px; border-radius: 2px; background: #60A5FA; animation: pxWave 1s ease-in-out infinite; }
.px-wave i:nth-child(1) { height: 6px; } .px-wave i:nth-child(2) { height: 12px; animation-delay: .15s; } .px-wave i:nth-child(3) { height: 8px; animation-delay: .3s; } .px-wave i:nth-child(4) { height: 13px; animation-delay: .45s; } .px-wave i:nth-child(5) { height: 5px; animation-delay: .6s; }
@keyframes pxWave { 50% { transform: scaleY(.35); } }
.px-bars { display: flex; align-items: flex-end; gap: 5px; height: 86px; padding-top: .2rem; }
.px-bars i { flex: 1; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, #60A5FA, rgba(59, 130, 246, .25)); transform-origin: bottom; animation: pxGrow 1.2s ease-out both; }
.px-bars i:nth-child(odd) { background: linear-gradient(180deg, #34D399, rgba(16, 185, 129, .2)); }
.px-bars i:nth-child(2) { animation-delay: .08s; } .px-bars i:nth-child(3) { animation-delay: .16s; } .px-bars i:nth-child(4) { animation-delay: .24s; } .px-bars i:nth-child(5) { animation-delay: .32s; } .px-bars i:nth-child(6) { animation-delay: .4s; } .px-bars i:nth-child(7) { animation-delay: .48s; }
@keyframes pxGrow { from { transform: scaleY(0); } }
.px-exts { display: grid; grid-template-columns: repeat(2, 1fr); gap: .35rem; margin-top: .55rem; }
.px-exts span { display: flex; align-items: center; gap: .35rem; font-size: .64rem; color: var(--ui-muted); }
.px-exts span::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: #34D399; }
.px-exts span.busy::before { background: #F59E0B; }
.px-exts span.off::before { background: #475569; }

/* Floating phone in hero */
.px-phone {
    position: relative; width: 250px; aspect-ratio: 9 / 19; border-radius: 38px; padding: 9px;
    background: linear-gradient(160deg, #2a3550, #0b1020); box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .08) inset;
    color: #fff; font-family: "Inter", system-ui, sans-serif;
}
[dir="rtl"] .px-phone { font-family: "Cairo", "Inter", system-ui, sans-serif; }
.px-phone-screen {
    position: relative; height: 100%; border-radius: 30px; overflow: hidden;
    background: radial-gradient(120% 70% at 50% 0%, #1d4ed8 0%, #0f1d44 45%, #070c1b 100%);
    display: flex; flex-direction: column; align-items: center; padding: 2.4rem 1rem 1.4rem; text-align: center;
}
.px-phone-screen::before { content: ""; position: absolute; top: 10px; left: 50%; width: 74px; height: 20px; border-radius: 12px; background: #000; transform: translateX(-50%); }
.px-phone .app { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; opacity: .7; margin-bottom: 1.4rem; }
[dir="rtl"] .px-phone .app { letter-spacing: 0; }
.px-ring { position: relative; width: 84px; height: 84px; margin-bottom: 1rem; }
.px-ring::before, .px-ring::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(96, 165, 250, .6); animation: pxRing 2.2s ease-out infinite; }
.px-ring::after { animation-delay: 1.1s; }
.px-ring span { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.5rem; background: linear-gradient(135deg, #60A5FA, #818CF8); }
@keyframes pxRing { from { transform: scale(1); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
.px-phone h6 { margin: 0 0 .2rem; font-size: 1.05rem; font-weight: 700; }
.px-phone p { margin: 0; font-size: .72rem; opacity: .75; }
.px-phone .via { margin-top: .8rem; padding: .3rem .7rem; border-radius: 999px; background: rgba(16, 185, 129, .18); color: #6EE7B7; font-size: .64rem; font-weight: 600; }
.px-phone .ivr { margin-top: .65rem; width: 100%; padding: .55rem .65rem; border-radius: 12px; background: rgba(255, 255, 255, .07); font-size: .64rem; text-align: start; line-height: 1.5; }
.px-phone .ivr b { color: #93C5FD; display: block; font-size: .58rem; text-transform: uppercase; letter-spacing: .08em; }
[dir="rtl"] .px-phone .ivr b { letter-spacing: 0; }
.px-phone .actions { margin-top: auto; display: flex; justify-content: space-around; width: 100%; }
.px-phone .actions span { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; }
.px-phone .actions span svg { width: 24px; height: 24px; fill: #fff; }
.px-phone .actions .no { background: #ef4444; }
.px-phone .actions .no svg { transform: rotate(135deg); }
.px-phone .actions .yes { background: #10b981; animation: pxBounce 1.2s ease-in-out infinite; box-shadow: 0 0 0 0 rgba(16, 185, 129, .6); }
@keyframes pxBounce { 0%,100% { transform: translateY(0); box-shadow: 0 0 0 0 rgba(16, 185, 129, .55); } 50% { transform: translateY(-5px); box-shadow: 0 0 0 12px rgba(16, 185, 129, 0); } }
.px-stage .px-phone { position: absolute; width: 168px; bottom: -34px; inset-inline-end: -40px; z-index: 3; animation: pxFloat 6s ease-in-out infinite; }
.px-stage .px-phone .px-phone-screen { padding-top: 2rem; }
.px-stage .px-phone .px-ring { width: 64px; height: 64px; }
.px-stage .px-phone .px-ring span { font-size: 1.15rem; }
.px-stage .px-phone .actions span { width: 42px; height: 42px; }
@keyframes pxFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.px-chip {
    position: absolute; z-index: 4; display: flex; align-items: center; gap: .6rem;
    padding: .6rem .85rem; border-radius: 14px;
    background: rgba(15, 23, 42, .88); border: 1px solid rgba(148, 163, 184, .22);
    color: #e6edf8; font-size: .78rem; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .6); backdrop-filter: blur(10px);
    animation: pxFloat 7s ease-in-out infinite;
}
.px-chip b { display: block; color: #fff; font-size: .8rem; }
.px-chip small { color: #94a3b8; font-size: .7rem; }
.px-chip .ic { width: 2rem; height: 2rem; border-radius: 10px; display: grid; place-items: center; flex: 0 0 auto; }
.px-chip .ic svg { width: 18px; height: 18px; }
.px-chip.c1 { top: -12px; inset-inline-start: -28px; animation-delay: -2s; }
.px-chip.c2 { bottom: 70px; inset-inline-start: -44px; animation-delay: -4s; }

/* ---------- ECOSYSTEM ---------- */
.px-eco { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3.5rem; }
.px-eco::before {
    content: ""; position: absolute; top: 58px; left: 16%; right: 16%; height: 2px; z-index: 0;
    background: repeating-linear-gradient(90deg, rgba(96, 165, 250, .7) 0 10px, transparent 10px 20px);
    background-size: 40px 2px; animation: pxDash 1.2s linear infinite;
}
[dir="rtl"] .px-eco::before { animation-direction: reverse; }
@keyframes pxDash { to { background-position: 40px 0; } }
.px-eco-card {
    position: relative; z-index: 1; padding: 2rem 1.6rem 1.8rem; border-radius: 22px; text-align: center;
    background: var(--px-surface); border: 1px solid var(--px-line); backdrop-filter: blur(10px);
    transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.px-eco-card:hover { transform: translateY(-6px); border-color: rgba(96, 165, 250, .5); box-shadow: var(--px-glow); }
.px-eco-ic { width: 72px; height: 72px; margin: 0 auto 1.2rem; border-radius: 22px; display: grid; place-items: center; background: var(--gradient-primary); box-shadow: 0 14px 30px -10px rgba(59, 130, 246, .7); }
.px-eco-ic svg { width: 34px; height: 34px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.px-eco-card:nth-child(2) .px-eco-ic { background: linear-gradient(135deg, #6366F1, #A78BFA); box-shadow: 0 14px 30px -10px rgba(99, 102, 241, .7); }
.px-eco-card:nth-child(3) .px-eco-ic { background: linear-gradient(135deg, #10B981, #34D399); box-shadow: 0 14px 30px -10px rgba(16, 185, 129, .6); }
.px-eco-card h3 { margin: 0 0 .5rem; color: var(--text-primary); font-size: 1.25rem; }
.px-eco-card p { margin: 0; color: var(--text-secondary); line-height: 1.7; }
.px-eco-card .step { position: absolute; top: 1rem; inset-inline-start: 1.1rem; font-size: .75rem; font-weight: 700; color: var(--text-light); }

/* ---------- FEATURE LAYOUT ---------- */
.px-feature { display: grid; grid-template-columns: 1fr 1.05fr; gap: 4.5rem; align-items: center; }
.px-feature.flip > .px-feature-text { order: 2; }

/* Feature 1: zero-config visual */
.px-install { position: relative; padding: 2rem 0 1rem; }
.px-term {
    position: absolute; top: 0; inset-inline-start: -10px; width: 62%; z-index: 0;
    padding: 1rem 1.1rem 1.3rem; border-radius: 14px; background: #05080f; border: 1px solid #1e293b;
    font: 500 .72rem/1.75 ui-monospace, "SFMono-Regular", Consolas, monospace; color: #64748b; direction: ltr; text-align: left;
    transform: rotate(-4deg); opacity: .8; filter: saturate(.6);
}
[dir="rtl"] .px-term { transform: rotate(4deg); }
.px-term code { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.px-term code b { color: #22c55e; font-weight: 500; }
.px-term::after {
    content: attr(data-label); position: absolute; inset: 0; display: grid; place-items: center;
    background: repeating-linear-gradient(-45deg, rgba(239, 68, 68, .0) 0 12px, rgba(239, 68, 68, .07) 12px 24px);
    color: #fca5a5; font: 800 1.05rem/1 "Inter", sans-serif; letter-spacing: .12em; text-transform: uppercase; border-radius: 14px;
}
[dir="rtl"] .px-term::after { font-family: "Cairo", "Inter", sans-serif; letter-spacing: 0; }
.px-term::before { content: ""; position: absolute; left: 6%; right: 6%; top: 50%; height: 3px; background: #ef4444; transform: rotate(-8deg); border-radius: 3px; z-index: 1; box-shadow: 0 0 12px rgba(239, 68, 68, .6); }
.px-install .px-window { position: relative; z-index: 1; margin-inline-start: 14%; margin-top: 5.5rem; }
.px-setup { display: grid; grid-template-columns: 1fr 1.1fr; min-height: 300px; }
.px-login { padding: 1.4rem 1.2rem; background: linear-gradient(180deg, #0f1a33, #0b1222); border-inline-end: 1px solid var(--ui-line); display: flex; flex-direction: column; gap: .65rem; }
.px-login .brand { display: flex; align-items: center; gap: .5rem; font-weight: 800; font-size: .9rem; margin-bottom: .4rem; }
.px-login .brand i { width: 1.6rem; height: 1.6rem; border-radius: 8px; display: grid; place-items: center; background: var(--gradient-primary); font-style: normal; font-size: .72rem; }
.px-login label { font-size: .64rem; color: var(--ui-muted); margin-bottom: -.35rem; }
.px-field { padding: .55rem .65rem; border-radius: 9px; background: #0a1222; border: 1px solid var(--ui-line); font-size: .74rem; color: #cbd5e1; direction: ltr; text-align: start; }
.px-field.focus { border-color: #3B82F6; box-shadow: 0 0 0 3px rgba(59, 130, 246, .2); }
.px-login .go { margin-top: .4rem; padding: .6rem; border-radius: 9px; text-align: center; font-size: .76rem; font-weight: 700; background: var(--gradient-primary); color: #fff; }
.px-auto { padding: 1.3rem 1.2rem; display: flex; flex-direction: column; gap: .55rem; }
.px-auto h5 { margin: 0 0 .3rem; font-size: .8rem; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: .4rem; }
.px-auto ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .45rem; }
.px-auto li { display: flex; align-items: center; gap: .55rem; padding: .45rem .55rem; border-radius: 9px; background: var(--ui-panel); font-size: .72rem; color: #cbd5e1; }
.px-auto li i { flex: 0 0 1.1rem; height: 1.1rem; border-radius: 50%; display: grid; place-items: center; background: #10b981; color: #fff; font-style: normal; font-size: .62rem; font-weight: 800; }
.px-progress { height: 6px; border-radius: 6px; background: var(--ui-panel-2); overflow: hidden; margin-top: .3rem; }
.px-progress i { display: block; height: 100%; width: 100%; border-radius: 6px; background: linear-gradient(90deg, #3B82F6, #34D399); transform-origin: left; }
[dir="rtl"] .px-progress i { transform-origin: right; }
.px-done { margin-top: .2rem; font-size: .7rem; color: #34D399; font-weight: 700; }
/* Animated version: ticks appear one after another once the section is in view */
.px-anim .px-auto li { opacity: 0; transform: translateX(-10px); }
[dir="rtl"] .px-anim .px-auto li { transform: translateX(10px); }
.px-anim .px-progress i { transform: scaleX(0); }
.px-anim .px-done { opacity: 0; }
.px-anim.in .px-auto li { animation: pxTick .5s ease forwards; }
.px-anim.in .px-auto li:nth-child(1) { animation-delay: .3s; } .px-anim.in .px-auto li:nth-child(2) { animation-delay: .75s; } .px-anim.in .px-auto li:nth-child(3) { animation-delay: 1.2s; } .px-anim.in .px-auto li:nth-child(4) { animation-delay: 1.65s; } .px-anim.in .px-auto li:nth-child(5) { animation-delay: 2.1s; }
.px-anim.in .px-progress i { animation: pxFill 2.4s ease forwards .2s; }
.px-anim.in .px-done { animation: pxFadeIn .5s ease forwards 2.7s; }
@keyframes pxTick { to { opacity: 1; transform: none; } }
@keyframes pxFill { to { transform: scaleX(1); } }
@keyframes pxFadeIn { to { opacity: 1; } }

/* 3-step timeline */
.px-steps { margin: 0 0 2rem; padding: 0; list-style: none; display: grid; gap: 0; counter-reset: pxs; }
.px-steps li { position: relative; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding-bottom: 1.4rem; counter-increment: pxs; }
.px-steps li::before {
    content: counter(pxs); width: 3rem; height: 3rem; border-radius: 14px; display: grid; place-items: center;
    background: var(--gradient-primary); color: #fff; font-weight: 800; font-size: 1.1rem; box-shadow: 0 10px 24px -10px rgba(59, 130, 246, .8);
}
.px-steps li:not(:last-child)::after { content: ""; position: absolute; top: 3.3rem; bottom: .2rem; inset-inline-start: 1.5rem; width: 2px; background: linear-gradient(180deg, rgba(96, 165, 250, .6), transparent); }
.px-steps li:last-child::before { background: var(--gradient-secondary); box-shadow: 0 10px 24px -10px rgba(16, 185, 129, .8); }
.px-steps strong { display: block; color: var(--text-primary); font-size: 1.08rem; margin: .25rem 0 .2rem; }
.px-steps span { color: var(--text-secondary); line-height: 1.65; }

/* Feature 2: flow builder */
.px-flowwrap { margin-top: 3.5rem; display: grid; grid-template-columns: 1.55fr 1fr; gap: 2rem; align-items: stretch; }
.px-tabs { display: inline-flex; gap: .3rem; padding: .3rem; border-radius: 12px; background: #0a1222; border: 1px solid var(--ui-line); }
.px-tabs button { all: unset; cursor: pointer; padding: .42rem .9rem; border-radius: 9px; font-size: .76rem; font-weight: 600; color: var(--ui-muted); transition: background .25s, color .25s; }
.px-tabs button[aria-selected="true"] { background: var(--gradient-primary); color: #fff; }
.px-tabs button:focus-visible { outline: 2px solid #93C5FD; outline-offset: 2px; }
.px-flowbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .75rem 1rem; border-bottom: 1px solid var(--ui-line); background: #0d1628; }
.px-flowbar .title { display: flex; align-items: center; gap: .6rem; font-size: .82rem; font-weight: 700; color: #fff; }
.px-canvas {
    position: relative; padding: 1rem;
    background-color: var(--ui-bg);
    background-image: radial-gradient(rgba(148, 163, 184, .16) 1px, transparent 1px);
    background-size: 18px 18px;
}
.px-canvas svg { display: block; width: 100%; height: auto; }
.px-flow[hidden] { display: none; }
.px-flow .edge { fill: none; stroke: #2f4370; stroke-width: 2; }
.px-flow .edge.live { stroke: #60A5FA; stroke-width: 2.4; stroke-dasharray: 7 7; animation: pxEdge 1s linear infinite; }
.px-flow .edge.live.b { stroke: #34D399; }
@keyframes pxEdge { to { stroke-dashoffset: -14; } }
.px-flow .node rect.box { fill: #111b30; stroke: #263a63; stroke-width: 1.2; }
.px-flow .node.hl rect.box { stroke: #3B82F6; }
.px-flow .node text { font-family: "Inter", system-ui, sans-serif; fill: #e6edf8; }
[dir="rtl"] .px-flow .node text { font-family: "Cairo", "Inter", system-ui, sans-serif; }
.px-flow .node .t { font-size: 13px; font-weight: 700; }
.px-flow .node .s { font-size: 10.5px; fill: #8a9bb8; }
.px-flow .node .k { font-size: 8.5px; font-weight: 700; letter-spacing: .08em; }
.px-flow .lbl { font-family: "Inter", system-ui, sans-serif; font-size: 10px; fill: #93C5FD; font-weight: 600; }
[dir="rtl"] .px-flow .lbl { font-family: "Cairo", "Inter", system-ui, sans-serif; }
.px-flow .token { fill: #fff; filter: drop-shadow(0 0 6px #60A5FA); }
.px-flow .node.pulse rect.box { animation: pxNode 3s ease-in-out infinite; }
@keyframes pxNode { 0%,100% { stroke: #263a63; } 50% { stroke: #60A5FA; } }
.px-flowside { display: grid; gap: 1rem; align-content: start; }
.px-mini {
    padding: 1.3rem 1.35rem; border-radius: 18px; background: var(--px-surface); border: 1px solid var(--px-line); backdrop-filter: blur(8px);
    transition: transform .3s, border-color .3s;
}
.px-mini:hover { transform: translateY(-4px); border-color: rgba(96, 165, 250, .45); }
.px-mini h3 { margin: 0 0 .35rem; display: flex; align-items: center; gap: .6rem; color: var(--text-primary); font-size: 1.08rem; }
.px-mini h3 i { width: 2.2rem; height: 2.2rem; border-radius: 11px; display: grid; place-items: center; flex: 0 0 auto; font-style: normal; }
.px-mini h3 i svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.px-mini p { margin: 0; color: var(--text-secondary); line-height: 1.65; font-size: .97rem; }

/* Integrations marquee */
.px-logos { margin-top: 3rem; position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.px-logos ul { display: flex; gap: .9rem; width: max-content; margin: 0; padding: .4rem 0; list-style: none; animation: pxMarquee 38s linear infinite; }
[dir="rtl"] .px-logos ul { animation-name: pxMarqueeRtl; }
.px-logos:hover ul { animation-play-state: paused; }
@keyframes pxMarquee { to { transform: translateX(-50%); } }
@keyframes pxMarqueeRtl { to { transform: translateX(50%); } }
.px-logos li {
    display: inline-flex; align-items: center; gap: .65rem; padding: .8rem 1.25rem; border-radius: 14px; white-space: nowrap;
    background: var(--px-surface); border: 1px solid var(--px-line); color: var(--text-primary); font-weight: 600; font-size: .98rem;
}
.px-logos li img, .px-logos li svg { width: 24px; height: 24px; object-fit: contain; flex: 0 0 auto; }
.px-logos-title { text-align: center; margin: 3.5rem 0 0; color: var(--text-light); font-size: .85rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
[dir="rtl"] .px-logos-title { letter-spacing: 0; }

/* Feature 3: anywhere */
.px-anywhere { position: relative; min-height: 560px; display: grid; place-items: center; }
.px-orbit { position: absolute; inset: 6% 2%; border-radius: 50%; border: 1px dashed rgba(96, 165, 250, .3); animation: pxSpin 60s linear infinite; }
.px-orbit.o2 { inset: 20% 16%; border-color: rgba(16, 185, 129, .25); animation-duration: 40s; animation-direction: reverse; }
@keyframes pxSpin { to { transform: rotate(360deg); } }
.px-anywhere .px-phone { z-index: 2; width: 240px; }
.px-loc {
    position: absolute; z-index: 3; display: flex; align-items: center; gap: .7rem;
    padding: .7rem .95rem; border-radius: 16px; background: var(--px-surface-solid); border: 1px solid var(--px-line);
    box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .55); animation: pxFloat 7s ease-in-out infinite;
}
.px-loc .ic { width: 2.3rem; height: 2.3rem; border-radius: 12px; display: grid; place-items: center; flex: 0 0 auto; }
.px-loc .ic svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.px-loc b { display: block; color: var(--text-primary); font-size: .9rem; }
.px-loc small { color: var(--text-secondary); font-size: .76rem; display: flex; align-items: center; gap: .3rem; }
.px-loc small::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: #10b981; }
.px-loc.l1 { top: 8%; inset-inline-start: 0; }
.px-loc.l2 { top: 56%; inset-inline-end: -6%; animation-delay: -2.5s; }
.px-loc.l3 { bottom: 6%; inset-inline-start: 4%; animation-delay: -5s; }
.px-novpn {
    position: absolute; z-index: 4; top: 2%; inset-inline-end: 6%;
    width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; text-align: center;
    background: linear-gradient(135deg, #10B981, #059669); color: #fff; font-weight: 800; font-size: .95rem; line-height: 1.15;
    box-shadow: 0 20px 40px -14px rgba(16, 185, 129, .7); transform: rotate(10deg);
}
.px-novpn::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 1.5px dashed rgba(255, 255, 255, .55); }

/* Desktop softphone mockup */
.px-soft { margin-top: 2rem; display: grid; grid-template-columns: 1fr 1.25fr; }
.px-soft-l { padding: 1rem; border-inline-end: 1px solid var(--ui-line); display: flex; flex-direction: column; gap: .6rem; }
.px-soft-l .who { display: flex; align-items: center; gap: .6rem; }
.px-soft-l .who b { display: block; font-size: .8rem; }
.px-soft-l .who small { font-size: .66rem; color: var(--ui-muted); }
.px-timer { font: 700 1.5rem/1 ui-monospace, Consolas, monospace; color: #fff; direction: ltr; text-align: start; }
.px-ctrls { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; }
.px-ctrls span { aspect-ratio: 1; border-radius: 10px; background: var(--ui-panel-2); display: grid; place-items: center; }
.px-ctrls span svg { width: 16px; height: 16px; fill: none; stroke: #cbd5e1; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.px-ctrls span.end { background: #ef4444; }
.px-ctrls span.end svg { stroke: #fff; }
.px-soft-r { padding: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.px-soft-r h5 { margin: 0; font-size: .72rem; color: #C4B5FD; display: flex; align-items: center; justify-content: space-between; }
.px-line { padding: .45rem .6rem; border-radius: 10px; font-size: .7rem; line-height: 1.5; background: var(--ui-panel); color: #cbd5e1; }
.px-line b { color: #93C5FD; font-weight: 700; margin-inline-end: .3rem; }
.px-line.agent b { color: #6EE7B7; }
.px-insight { margin-top: auto; padding: .55rem .65rem; border-radius: 10px; border: 1px solid rgba(167, 139, 250, .35); background: rgba(167, 139, 250, .1); font-size: .7rem; color: #e9e3ff; }
.px-meter { display: flex; align-items: center; gap: .5rem; font-size: .64rem; color: var(--ui-muted); }
.px-meter i { flex: 1; height: 5px; border-radius: 5px; background: linear-gradient(90deg, #ef4444, #f59e0b, #10b981); position: relative; }
.px-meter i::after { content: ""; position: absolute; top: -3px; inset-inline-start: 76%; width: 11px; height: 11px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(16, 185, 129, .5); }

/* App store buttons */
.pbx-stores { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1rem; }
.pbx-store {
    display: inline-flex; align-items: center; gap: .6rem; padding: .7rem 1.2rem; border-radius: 12px;
    background: #000; color: #fff; text-decoration: none; border: 1px solid #333; font-weight: 600; line-height: 1.2;
    transition: transform .25s, border-color .25s;
}
.pbx-store small { display: block; font-size: .7rem; font-weight: 400; opacity: .8; }
.pbx-store svg { width: 22px; height: 22px; fill: currentColor; flex: 0 0 auto; }
.pbx-store:hover { border-color: var(--primary-light); transform: translateY(-2px); }

/* ---------- Everything else grid ---------- */
.px-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3rem; }
.px-gcard {
    position: relative; padding: 1.75rem; border-radius: 20px; overflow: hidden;
    background: var(--px-surface); border: 1px solid var(--px-line);
    transition: transform .3s, border-color .3s, box-shadow .3s;
}
.px-gcard::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(400px 160px at 0% 0%, rgba(59, 130, 246, .12), transparent 70%); pointer-events: none; }
[dir="rtl"] .px-gcard::after { background: radial-gradient(400px 160px at 100% 0%, rgba(59, 130, 246, .12), transparent 70%); }
.px-gcard:hover { transform: translateY(-5px); border-color: rgba(96, 165, 250, .45); box-shadow: var(--px-glow); }
.px-gcard .ic { width: 3rem; height: 3rem; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.1rem; background: rgba(59, 130, 246, .14); color: var(--primary-light); }
.px-gcard .ic svg { width: 24px; height: 24px; fill: currentColor; }
.px-gcard h3 { margin: 0 0 .5rem; color: var(--text-primary); font-size: 1.15rem; }
.px-gcard p { margin: 0; color: var(--text-secondary); line-height: 1.7; }
.px-gcard a { color: var(--primary-light); }

/* ---------- Comparison ---------- */
.pbx-table-wrap { overflow-x: auto; margin-top: 3rem; border-radius: 20px; border: 1px solid var(--px-line); background: var(--px-surface); }
.pbx-compare { width: 100%; border-collapse: collapse; min-width: 620px; }
.pbx-compare th, .pbx-compare td { padding: 1.1rem 1.35rem; text-align: start; border-bottom: 1px solid var(--px-line); vertical-align: top; line-height: 1.6; }
.pbx-compare thead th { color: var(--text-primary); font-size: .95rem; }
.pbx-compare thead th:last-child { background: linear-gradient(135deg, rgba(59, 130, 246, .22), rgba(16, 185, 129, .14)); }
.pbx-compare tbody th { color: var(--text-primary); font-weight: 600; width: 24%; }
.pbx-compare td { color: var(--text-light); }
.pbx-compare td:not(.pbx-yes)::before { content: "✕"; margin-inline-end: .55rem; color: #f87171; font-weight: 700; }
.pbx-compare td.pbx-yes { color: var(--text-primary); background: rgba(59, 130, 246, .06); }
.pbx-compare td.pbx-yes::before { content: "✓"; margin-inline-end: .55rem; color: #34D399; font-weight: 800; }
.pbx-compare tr:last-child th, .pbx-compare tr:last-child td { border-bottom: 0; }

/* ---------- FAQ ---------- */
.pbx-faq { max-width: 860px; margin: 3rem auto 0; }
.pbx-faq details { margin-bottom: .9rem; border: 1px solid var(--px-line); border-radius: 16px; background: var(--px-surface); transition: border-color .25s; }
.pbx-faq details[open] { border-color: rgba(96, 165, 250, .45); }
.pbx-faq summary { cursor: pointer; padding: 1.2rem 1.45rem; color: var(--text-primary); font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.pbx-faq summary::-webkit-details-marker { display: none; }
.pbx-faq summary::after { content: "+"; color: var(--primary-light); font-size: 1.4rem; line-height: 1; flex: 0 0 auto; transition: transform .25s; }
.pbx-faq details[open] summary::after { transform: rotate(45deg); }
.pbx-faq details p { margin: 0; padding: 0 1.45rem 1.25rem; color: var(--text-secondary); line-height: 1.8; }
.pbx-faq a { color: var(--primary-light); }

/* ---------- Final CTA ---------- */
.px-cta { padding: 110px 0; background: var(--bg-primary); }
.px-cta-box {
    position: relative; overflow: hidden; padding: 4.5rem 2rem; border-radius: 32px; text-align: center;
    background: radial-gradient(80% 120% at 50% 0%, #2563EB 0%, #1e3a8a 45%, #0b1430 100%);
    box-shadow: 0 40px 100px -30px rgba(37, 99, 235, .6);
}
.px-cta-box::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(circle at 50% 30%, #000, transparent 70%); mask-image: radial-gradient(circle at 50% 30%, #000, transparent 70%); }
.px-cta-box > * { position: relative; }
.px-cta-box h2 { margin: 0 0 1rem; color: #fff; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.02em; }
[dir="rtl"] .px-cta-box h2 { letter-spacing: 0; }
.px-cta-box p { margin: 0 auto 2rem; max-width: 600px; color: #dbe6ff; font-size: 1.15rem; line-height: 1.7; }
.px-cta-box .px-btns { justify-content: center; }
.px-cta-box .btn-primary { background: #fff; color: #1d4ed8; }
.px-cta-box .btn-secondary { color: #fff; border-color: rgba(255, 255, 255, .6); }
.px-cta-box .btn-secondary:hover { background: rgba(255, 255, 255, .12); }

/* ---------- Scroll reveal ---------- */
.px-js .px-reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.px-js .px-reveal.in { opacity: 1; transform: none; }
.px-js .px-reveal.d1 { transition-delay: .1s; } .px-js .px-reveal.d2 { transition-delay: .2s; } .px-js .px-reveal.d3 { transition-delay: .3s; }

/* ---------- Light theme tweaks ---------- */
[data-theme="light"] .px-eco-card,
[data-theme="light"] .px-mini,
[data-theme="light"] .px-gcard,
[data-theme="light"] .px-logos li,
[data-theme="light"] .pbx-faq details,
[data-theme="light"] .pbx-table-wrap { background: #fff; box-shadow: 0 10px 30px -18px rgba(15, 23, 42, .25); }
[data-theme="light"] .px-formula li { background: #fff; }
[data-theme="light"] .px-chip { background: rgba(15, 23, 42, .92); }
[data-theme="light"] .px-gcard .ic { color: var(--primary-dark); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .px-chip.c2 { inset-inline-start: -10px; }
    .px-stage .px-phone { inset-inline-end: -6px; }
}
@media (max-width: 980px) {
    .px-hero-grid, .px-feature, .px-flowwrap { grid-template-columns: 1fr; gap: 3rem; }
    .px-feature.flip > .px-feature-text { order: 0; }
    .px-stage { max-width: 640px; margin: 0 auto; width: 100%; }
    .px-grid { grid-template-columns: repeat(2, 1fr); }
    .px-eco { grid-template-columns: 1fr; }
    .px-eco::before { top: 8%; bottom: 8%; left: 50%; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, rgba(96, 165, 250, .7) 0 10px, transparent 10px 20px); animation: none; }
    .px-install { max-width: 620px; margin: 0 auto; }
}
@media (max-width: 640px) {
    .px-wrap { padding: 0 1rem; }
    .px-section { padding: 80px 0; }
    .pbx-page .px-hero { padding: 110px 0 70px; }
    .px-hero .px-lead { font-size: 1.05rem; }
    .px-num { font-size: 3.4rem; }
    .px-dash { grid-template-columns: 1fr; min-height: 0; }
    .px-side { display: none; }
    .px-kpis { grid-template-columns: repeat(2, 1fr); }
    .px-split { grid-template-columns: 1fr; }
    .px-split .px-card:last-child { display: none; }
    .px-stage { padding-bottom: 7rem; }
    .px-stage .px-window { transform: none; animation: none; }
    .px-stage .px-phone { width: 150px; bottom: 0; inset-inline-end: 0; }
    .px-stage .px-phone .ivr, .px-stage .px-phone .via { display: none; }
    .px-chip.c1 { top: -18px; inset-inline-start: 0; }
    .px-chip.c2 { bottom: 1rem; inset-inline-start: 0; }
    .px-setup { grid-template-columns: 1fr; }
    .px-login { border-inline-end: 0; border-bottom: 1px solid var(--ui-line); }
    .px-install .px-window { margin-inline-start: 0; margin-top: 4.5rem; }
    .px-term { width: 88%; }
    .px-grid { grid-template-columns: 1fr; }
    .px-anywhere { min-height: 600px; }
    .px-anywhere .px-phone { width: 210px; }
    .px-loc { padding: .55rem .7rem; }
    .px-loc.l2 { inset-inline-end: 0; top: 46%; }
    .px-novpn { width: 84px; height: 84px; font-size: .8rem; inset-inline-end: 0; }
    .px-soft { grid-template-columns: 1fr; }
    .px-canvas { overflow-x: auto; padding: .75rem; }
    .px-canvas svg { min-width: 560px; }
    .px-soft-l { border-inline-end: 0; border-bottom: 1px solid var(--ui-line); }
    .px-cta-box { padding: 3.25rem 1.25rem; border-radius: 24px; }
    .px-proof strong { font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
    .pbx-page *, .pbx-page *::before, .pbx-page *::after { animation: none !important; transition: none !important; }
    .px-js .px-reveal { opacity: 1; transform: none; }
    .px-anim .px-auto li, .px-anim .px-done { opacity: 1; transform: none; }
    .px-anim .px-progress i { transform: none; }
}

/* Dark-on-dark logo fix (OpenAI mark is black) */
[data-theme="dark"] .px-logos img.inv { filter: invert(1); }
@media (prefers-reduced-motion: reduce) { .px-flow .token { display: none; } }

/* Real screenshot frame (desktop softphone) */
.px-shot { position: relative; margin: 0; }
.px-shot img {
    display: block; width: 100%; height: auto; border-radius: 14px;
    border: 1px solid rgba(52, 211, 153, .25);
    box-shadow: 0 40px 90px -30px rgba(16, 185, 129, .45), 0 30px 60px -30px rgba(0, 0, 0, .6);
}
.px-chip.c3 { bottom: -22px; inset-inline-start: -24px; animation-delay: -3s; }
@media (max-width: 640px) { .px-chip.c3 { inset-inline-start: 8px; bottom: -28px; } }

/* AI live call monitoring (supervisor view mockup) */
.px-mon { display: grid; grid-template-columns: 1fr 1.1fr; min-height: 330px; font-size: .76rem; }
.px-mon-list { padding: .9rem; border-inline-end: 1px solid var(--ui-line); display: flex; flex-direction: column; gap: .45rem; }
.px-mon-list h5, .px-mon-detail h5 { margin: 0 0 .3rem; font-size: .72rem; color: var(--ui-muted); font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: .4rem; }
.px-mcall { display: grid; grid-template-columns: auto 1fr auto; gap: .55rem; align-items: center; padding: .5rem .55rem; border-radius: 10px; background: var(--ui-panel); border: 1px solid transparent; }
.px-mcall b { display: block; font-size: .72rem; color: #fff; }
.px-mcall small { font-size: .62rem; color: var(--ui-muted); }
.px-mcall .t { font: 600 .66rem/1 ui-monospace, Consolas, monospace; color: var(--ui-muted); direction: ltr; }
.px-sent { display: block; height: 4px; border-radius: 4px; background: var(--ui-panel-2); margin-top: .35rem; overflow: hidden; }
.px-sent i { display: block; height: 100%; border-radius: 4px; background: #10b981; }
.px-mcall.warn .px-sent i { background: #f59e0b; }
.px-mcall.alert { border-color: rgba(239, 68, 68, .55); background: rgba(239, 68, 68, .08); animation: pxAlert 2s ease-in-out infinite; }
.px-mcall.alert .px-sent i { background: #ef4444; }
@keyframes pxAlert { 50% { box-shadow: 0 0 0 4px rgba(239, 68, 68, .15); } }
.px-flag { padding: .15rem .45rem; border-radius: 999px; background: #ef4444; color: #fff; font-size: .58rem; font-weight: 700; }
.px-mon-detail { padding: .9rem; display: flex; flex-direction: column; gap: .45rem; }
.px-mon-detail .px-line.hot { border: 1px solid rgba(239, 68, 68, .4); }
.px-alertbox { padding: .55rem .65rem; border-radius: 10px; background: rgba(239, 68, 68, .12); border: 1px solid rgba(239, 68, 68, .4); color: #fecaca; font-size: .7rem; line-height: 1.5; }
.px-alertbox b { color: #fff; }
.px-mon-detail .px-insight { margin-top: 0; }
@media (max-width: 640px) {
    .px-mon { grid-template-columns: 1fr; }
    .px-mon-list { border-inline-end: 0; border-bottom: 1px solid var(--ui-line); }
}

/* Dashboard 3D icons (from the Quali-D dashboard navigation) */
.px-icon3d { display: block; width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(37, 99, 235, .35)); }
.px-eco-ic.img { background: none !important; box-shadow: none !important; width: 96px; height: 96px; }
.px-eco-ic.img img { width: 96px; height: 96px; object-fit: contain; filter: drop-shadow(0 14px 22px rgba(37, 99, 235, .4)); transition: transform .35s ease; }
.px-eco-card:hover .px-eco-ic.img img { transform: translateY(-4px) scale(1.04); }
.px-kicker .px-icon3d { width: 72px; height: 72px; margin-inline-end: -.25rem; }
.px-gcard .ic.img { background: none; width: 56px; height: 56px; }
.px-gcard .ic.img img { width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(37, 99, 235, .3)); }
.px-side span.ico::before { display: none; }
.px-side span img { width: 16px; height: 16px; object-fit: contain; flex: 0 0 auto; }
.px-modules { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2.5rem; }
.px-modules span {
    display: inline-flex; align-items: center; gap: .55rem; padding: .5rem .95rem .5rem .55rem; border-radius: 999px;
    background: var(--px-surface); border: 1px solid var(--px-line); color: var(--text-primary); font-weight: 600; font-size: .9rem;
}
[dir="rtl"] .px-modules span { padding: .5rem .55rem .5rem .95rem; }
.px-modules img { width: 30px; height: 30px; object-fit: contain; }
.px-modules-title { text-align: center; margin: 3rem 0 0; color: var(--text-light); font-size: .85rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
[dir="rtl"] .px-modules-title { letter-spacing: 0; }
[data-theme="light"] .px-modules span { background: #fff; }

/* Supervisor listen + text whisper */
.px-sup { display: flex; flex-wrap: wrap; gap: .4rem; }
.px-sup span { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .6rem; border-radius: 8px; font-size: .66rem; font-weight: 700; background: var(--ui-panel-2); color: #cbd5e1; border: 1px solid var(--ui-line); }
.px-sup span.on { background: rgba(16, 185, 129, .15); color: #6EE7B7; border-color: rgba(16, 185, 129, .4); }
.px-sup span.wh { background: rgba(59, 130, 246, .16); color: #BFDBFE; border-color: rgba(59, 130, 246, .45); }
.px-whisper { display: grid; grid-template-columns: 1fr auto; gap: .4rem; align-items: center; padding: .4rem .4rem .4rem .6rem; border-radius: 10px; background: #0a1222; border: 1px solid #3B82F6; box-shadow: 0 0 0 3px rgba(59, 130, 246, .15); font-size: .68rem; color: #e2e8f0; }
.px-whisper i { font-style: normal; color: var(--ui-muted); font-size: .58rem; display: block; }
.px-whisper b { padding: .35rem .6rem; border-radius: 7px; background: var(--gradient-primary); color: #fff; font-size: .64rem; }
.px-sent-note { font-size: .62rem; color: #6EE7B7; }

/* 100% Legal callout (cloud calls) */
.px-legal {
    display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start;
    margin: 0 0 1.75rem; padding: 1.1rem 1.2rem; border-radius: 18px;
    background: linear-gradient(135deg, rgba(16, 185, 129, .14), rgba(59, 130, 246, .08));
    border: 1px solid rgba(16, 185, 129, .45);
    box-shadow: 0 18px 40px -24px rgba(16, 185, 129, .6);
}
.px-legal-badge {
    display: grid; place-items: center; width: 74px; height: 82px; text-align: center; color: #fff;
    background: linear-gradient(160deg, #10B981, #047857);
    clip-path: path("M37 0 L74 12 L74 44 C74 64 58 76 37 82 C16 76 0 64 0 44 L0 12 Z");
    font-weight: 800; line-height: 1.05;
}
.px-legal-badge b { display: block; font-size: 1.25rem; }
.px-legal-badge small { display: block; font-size: .7rem; letter-spacing: .1em; }
[dir="rtl"] .px-legal-badge small { letter-spacing: 0; font-size: .8rem; }
.px-legal h3 { margin: .1rem 0 .35rem; color: var(--text-primary); font-size: 1.12rem; }
.px-legal p { margin: 0 0 .75rem; color: var(--text-secondary); line-height: 1.65; font-size: .97rem; }
.px-route { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.px-route li { padding: .3rem .65rem; border-radius: 999px; font-size: .8rem; font-weight: 600; color: var(--text-primary); background: var(--px-surface); border: 1px solid var(--px-line); }
.px-route li.arrow { padding: 0; border: 0; background: none; color: #34D399; }
[dir="rtl"] .px-route li.arrow { transform: scaleX(-1); }
.px-route li.app { background: rgba(16, 185, 129, .16); border-color: rgba(16, 185, 129, .45); color: #6EE7B7; }
[data-theme="light"] .px-route li.app { color: #047857; }
[data-theme="light"] .px-legal { background: linear-gradient(135deg, #ecfdf5, #eff6ff); }
.px-legal-tag { position: absolute; z-index: 4; bottom: 22%; inset-inline-end: 4%; padding: .45rem .8rem; border-radius: 12px; background: #047857; color: #fff; font-weight: 800; font-size: .8rem; box-shadow: 0 14px 30px -12px rgba(16, 185, 129, .8); transform: rotate(-6deg); }
@media (max-width: 640px) { .px-legal { grid-template-columns: 1fr; } .px-legal-tag { bottom: 30%; } }
.px-delay-tag { position: absolute; z-index: 4; top: 30%; inset-inline-start: 2%; padding: .45rem .8rem; border-radius: 12px; background: linear-gradient(135deg, #F59E0B, #EA580C); color: #fff; font-weight: 800; font-size: .8rem; box-shadow: 0 14px 30px -12px rgba(245, 158, 11, .8); transform: rotate(5deg); }
.px-legal-badges { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .6rem; }
.px-legal-badges span { padding: .25rem .6rem; border-radius: 999px; font-size: .74rem; font-weight: 800; color: #fff; background: #047857; }
.px-legal-badges span.delay { background: linear-gradient(135deg, #F59E0B, #EA580C); }
.px-legal-badges span.vpn { background: #2563EB; }
@media (max-width: 640px) { .px-delay-tag { top: 24%; } }

/* ---------- PBX application form page ---------- */
.pbx-page .px-apply { position: relative; padding: 110px 0; background: var(--bg-secondary); overflow: hidden; scroll-margin-top: 70px; }
.pbx-page .px-apply::before { content: ""; position: absolute; width: 900px; height: 900px; border-radius: 50%; top: -360px; inset-inline-start: -300px; background: radial-gradient(circle, rgba(59, 130, 246, .18), transparent 60%); pointer-events: none; }
.px-apply-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3.5rem; align-items: start; }
.px-apply-side { position: sticky; top: 110px; }
.px-apply-back { display: inline-block; margin-bottom: 1.5rem; color: var(--text-secondary); text-decoration: none; font-size: .92rem; }
.px-apply-back:hover { color: var(--primary-light); }
.px-apply-side .px-apply-title { margin: 0 0 1rem; color: var(--text-primary); font-size: clamp(2.2rem, 4.4vw, 3.4rem); font-weight: 800; line-height: 1.08; letter-spacing: -.03em; }
[dir="rtl"] .px-apply-side .px-apply-title { letter-spacing: 0; line-height: 1.3; }
.px-apply-perks { margin: 0 0 2rem; padding: 0; list-style: none; display: grid; gap: .8rem; }
.px-apply-perks li { display: flex; align-items: center; gap: .9rem; padding: .7rem .9rem; border-radius: 16px; background: var(--px-surface); border: 1px solid var(--px-line); }
.px-apply-perks img { width: 48px; height: 48px; object-fit: contain; flex: 0 0 auto; filter: drop-shadow(0 8px 14px rgba(37, 99, 235, .3)); }
.px-apply-perks strong { display: block; color: var(--text-primary); font-size: 1rem; }
.px-apply-perks span { color: var(--text-secondary); font-size: .9rem; line-height: 1.5; }
.px-apply-next h2 { margin: 0 0 .75rem; color: var(--text-primary); font-size: 1.05rem; }
.px-apply-next ol { margin: 0; padding: 0; list-style: none; counter-reset: pxn; display: grid; gap: .55rem; }
.px-apply-next li { counter-increment: pxn; display: flex; align-items: center; gap: .7rem; color: var(--text-secondary); }
.px-apply-next li::before { content: counter(pxn); flex: 0 0 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center; background: var(--gradient-primary); color: #fff; font-weight: 700; font-size: .8rem; }
.pbx-page .lead-contact { scroll-margin-top: 100px; position: relative; z-index: 2; }
.pbx-page .contact-form-section { background: var(--px-surface-solid); border: 1px solid var(--px-line); border-radius: 24px; box-shadow: var(--px-glow); }
.lead-contact .form-group input, .lead-contact .form-group select, .lead-contact .form-group textarea { width: 100%; min-width: 0; box-sizing: border-box; }
.lead-contact #formStatus { color: var(--text-primary); line-height: 1.6; padding: 1rem; border: 1px solid var(--border-color); border-radius: 8px; }
.lead-contact [hidden] { display: none !important; }
.qualification-privacy { color: var(--text-secondary); font-size: .9rem; line-height: 1.6; }
.qualification-privacy a { color: var(--primary-color); text-decoration: underline; }
.lead-success { text-align: center; padding: 2rem 0; scroll-margin-top: 120px; }
.lead-success:focus { outline: none; }
.lead-success svg { width: 112px; height: 112px; display: block; margin: 0 auto 1.75rem; overflow: visible; }
.lead-success circle { fill: rgba(34, 197, 94, .12); stroke: #22c55e; stroke-width: 3; }
.lead-success path { fill: none; stroke: #22c55e; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; }
.lead-success h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); color: var(--text-primary); margin: 0 0 1rem; }
.lead-success p { color: var(--text-secondary); font-size: 1.1rem; line-height: 1.7; margin: 0; }
@media (max-width: 980px) {
    .px-apply-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .px-apply-side { position: static; }
    .px-apply-perks { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .pbx-page .px-apply { padding: 100px 0 70px; }
    .px-apply-perks { grid-template-columns: 1fr; }
    .pbx-page .contact-form-section { padding: 1.5rem; }
}
.pbx-page .contact-content.lead-contact { padding: 0; background: none; min-height: 0; }

/* Purple "Apply" CTA: sets the application apart from other buttons */
.pbx-page .px-purple,
.pbx-page .px-apply .form-submit {
    background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 10px 26px -10px rgba(124, 58, 237, .75);
}
.pbx-page .px-purple:hover,
.pbx-page .px-apply .form-submit:hover {
    background: linear-gradient(135deg, #A78BFA 0%, #7C3AED 100%) !important;
    box-shadow: 0 16px 34px -12px rgba(124, 58, 237, .9);
    transform: translateY(-2px);
}
.pbx-page .px-purple:focus-visible,
.pbx-page .px-apply .form-submit:focus-visible { outline: 2px solid #C4B5FD; outline-offset: 3px; }
.pbx-page .px-apply .wizard-progress li[aria-current="step"] span { background: #7C3AED; border-color: #7C3AED; }
.pbx-page .px-apply .wizard-choices label:has(input:checked) { border-color: #8B5CF6; background: rgba(139, 92, 246, .12); }
.pbx-page .px-apply .wizard-choices input { accent-color: #8B5CF6; }

/* Meta Business Partner badge (flows section, next to WhatsApp outputs) */
.px-meta { padding: 1rem 1.2rem; border-radius: 18px; background: var(--px-surface); border: 1px solid rgba(37, 211, 102, .35); }
.px-meta-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.px-meta-row img { height: 34px; width: auto; }
.px-meta-id { display: flex; flex-direction: column; padding-inline-start: 1rem; border-inline-start: 1px solid var(--px-line); }
.px-meta-id small { color: var(--text-secondary); font-size: .72rem; }
.px-meta-id b { color: var(--text-primary); font-size: .9rem; letter-spacing: .04em; direction: ltr; }
.px-meta p { margin: .6rem 0 0; color: var(--text-secondary); font-size: .88rem; line-height: 1.6; }
[data-theme="light"] .px-meta { background: #fff; }

/* Flow builder: card keeps its natural height; the partner badge sits under it */
.px-flowwrap { align-items: start; }
.px-flowmain { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }

/* One-step PBX application form */
.px-simple-form { gap: 1.25rem; }
.px-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.25rem; }
.px-form-grid .px-span { grid-column: 1 / -1; }
.px-simple-form .form-submit { width: 100%; min-height: 52px; margin-top: .25rem; }
.px-simple-form .wizard-error { color: #f87171; font-size: .85rem; line-height: 1.5; margin: .4rem 0 0; }
.px-simple-form [aria-invalid="true"] { border-color: #f87171; }
.px-simple-form [hidden] { display: none !important; }
.px-simple-form button:disabled { opacity: .65; cursor: wait; }
@media (max-width: 540px) { .px-form-grid { grid-template-columns: 1fr; } }
/* Disabled (incomplete form): visibly greyed out */
.pbx-page .px-apply .form-submit:disabled,
.pbx-page .px-apply .form-submit:disabled:hover {
    background: #475569 !important;
    color: #cbd5e1 !important;
    box-shadow: none !important;
    transform: none !important;
    opacity: .7;
    cursor: not-allowed;
}
