/* Pinpoint4: Local AI vs Cloud AI (products.html + pricing.html). 19-23 Nov 2026.
   Markup: src/shared/ai-modes.html (the two chooser cards), the .p4x-band banners above each package
   group (products #private-ai / #cloud-ai, pricing #onsite-builds). Background art: src/shared/
   art-synapse.html (local) + art-clouds.html (cloud).
   Local = green (your data stays in the building), cloud = blue: same icon + colour everywhere.
   Motion: the art keeps moving; it rests while off screen, and stops with the page's pause button
   (html.p4-motion-off) or "reduce motion" (assets/js/p4-motion.js). */

.p4x-mode, .p4x-band, .p4x-mode__icon { --c: #4ADE80; --c-rgb: 74, 222, 128; }
.p4x-mode--cloud, .p4x-band--cloud, .p4x-mode--cloud .p4x-mode__icon, .p4x-band--cloud .p4x-mode__icon { --c: #8FB3EC; --c-rgb: 125, 167, 234; }

/* ---------- chooser ---------- */
.p4x-modes { margin: 12px 0 72px; }
.p4x-modes__q { margin: 0 auto 30px !important; max-width: 780px; text-align: center; font-size: 18px; line-height: 1.55; color: rgba(255, 255, 255, .72); }
.p4x-modes__q b { display: block; margin-bottom: 6px; font-family: "Exo 2", sans-serif; font-size: 30px; font-weight: 700; letter-spacing: -.01em; color: #FFFFFF; }
.p4x-modes__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
/* "or" badge between the two cards */
.p4x-modes__grid::after {
    content: "or"; position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%);
    display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%;
    font: 700 15px/1 "Exo 2", sans-serif; letter-spacing: 1px; text-transform: uppercase; color: #FFFFFF;
    background: #12132C; border: 1.5px solid rgba(255, 255, 255, .2);
    box-shadow: 0 0 0 6px #12132C, -10px 0 24px -6px rgba(74, 222, 128, .45), 10px 0 24px -6px rgba(125, 167, 234, .5);
}

.p4x-mode {
    position: relative; overflow: hidden; isolation: isolate;
    display: flex; flex-direction: column; gap: 18px; padding: 36px 36px 32px; border-radius: 20px;
    background:
        radial-gradient(ellipse 70% 55% at 100% 0%, rgba(var(--c-rgb), .20), transparent 70%),
        radial-gradient(ellipse 80% 60% at 0% 100%, rgba(var(--c-rgb), .07), transparent 70%),
        linear-gradient(180deg, #1A1D3F 0%, #1F2658 100%);
    border: 1.5px solid rgba(var(--c-rgb), .45);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .75), 0 0 44px -18px rgba(var(--c-rgb), .6), inset 0 1px 0 rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .78); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.p4x-mode:hover { transform: translateY(-4px); border-color: rgba(var(--c-rgb), .85);
    box-shadow: 0 36px 64px -28px rgba(0, 0, 0, .8), 0 0 64px -14px rgba(var(--c-rgb), .75), inset 0 1px 0 rgba(255, 255, 255, .08); }
.p4x-mode__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.p4x-mode__icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 17px;
    color: var(--c); background: linear-gradient(160deg, rgba(var(--c-rgb), .26), rgba(var(--c-rgb), .08));
    border: 1px solid rgba(var(--c-rgb), .5); box-shadow: 0 0 26px -6px rgba(var(--c-rgb), .6), inset 0 1px 0 rgba(255, 255, 255, .1); }
.p4x-mode__icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.p4x-mode__pill { padding: 7px 15px; border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--c);
    background: linear-gradient(rgba(var(--c-rgb), .14), rgba(var(--c-rgb), .14)), #12132C;
    border: 1px solid rgba(var(--c-rgb), .4); box-shadow: 0 0 0 4px rgba(18, 19, 44, .6); }
.p4p .p4x-mode h3 { margin-top: 4px; font-family: "Exo 2", sans-serif; font-size: 40px; font-weight: 700; line-height: 1.05; color: #FFFFFF; text-shadow: 0 2px 18px rgba(0, 0, 34, .6); }
.p4x-mode h3 span { display: block; margin-top: 8px; font-size: 18px; font-weight: 600; letter-spacing: .5px; color: var(--c); }
.p4x-mode__what { margin: 0 !important; max-width: 520px; font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, .88); text-shadow: 0 1px 12px rgba(0, 0, 34, .7); }
.p4x-mode__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.p4x-mode__facts div { padding: 13px 15px; border-radius: 12px; background: rgba(8, 9, 32, .62); border: 1px solid rgba(255, 255, 255, .07);
    -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.p4x-mode__facts dt { margin-bottom: 4px; font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--c); }
.p4x-mode__facts dd { margin: 0; font-size: 15px; line-height: 1.4; font-weight: 600; color: #FFFFFF; }
.p4x-mode__go { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 9px; min-height: 48px; padding: 0 24px; border-radius: 999px;
    font-weight: 700; font-size: 15.5px; text-decoration: none; color: #0B0C24 !important; background: var(--c);
    box-shadow: 0 10px 26px -10px rgba(var(--c-rgb), .9); transition: transform .2s ease, box-shadow .2s ease; }
.p4x-mode__go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.p4x-mode__go:hover, .p4x-mode__go:focus-visible { transform: translateY(-1px); box-shadow: 0 0 26px rgba(var(--c-rgb), .75); outline: none; }
.p4x-mode__go:hover svg { transform: translateY(2px); }
.p4x-mode__go:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 3px; }
.p4x-modes__help { margin: 26px 0 0 !important; text-align: center; font-size: 15.5px; color: rgba(255, 255, 255, .65); }
.p4x-modes__help a { color: #8FB3EC; font-weight: 600; }

/* ---------- banners above each package group ---------- */
.p4x-band {
    position: relative; overflow: hidden; isolation: isolate;
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px 30px; margin: 8px 0 32px; padding: 30px 30px 30px 32px; border-radius: 18px;
    background: radial-gradient(ellipse 50% 120% at 100% 50%, rgba(var(--c-rgb), .16), transparent 70%), linear-gradient(90deg, rgba(var(--c-rgb), .13), rgba(var(--c-rgb), .02) 60%), #15173A;
    border: 1.5px solid rgba(var(--c-rgb), .4); border-left: 6px solid var(--c);
    box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .7), 0 0 40px -22px rgba(var(--c-rgb), .6);
    scroll-margin-top: 130px;
}
.p4x-band--cloud { margin-top: 0; }
.p4x-band__eyebrow { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--c); }
.p4p .p4x-band h3 { font-family: "Exo 2", sans-serif; font-size: 32px; font-weight: 700; color: #FFFFFF; }
.p4x-band__body p { margin: 8px 0 0 !important; max-width: 640px; font-size: 16.5px; line-height: 1.6; color: rgba(255, 255, 255, .82); }
.p4x-band__body b { color: #FFFFFF; }
.p4x-band__facts { display: flex; flex-direction: column; gap: 11px; margin: 0; padding: 16px 20px; list-style: none; border-radius: 14px;
    background: rgba(8, 9, 32, .66); border: 1px solid rgba(var(--c-rgb), .22); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.p4x-band__facts li { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 15px; font-weight: 600; color: #FFFFFF; white-space: nowrap; }
.p4x-band__facts li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px rgba(var(--c-rgb), .9); }
.p4p .p4x-cvl__title { margin: 56px 0 18px; text-align: center; font-family: "Exo 2", sans-serif; font-size: 26px; color: #FFFFFF; }
.p4x-cvl { margin-bottom: 0; }

/* ---------- background art ---------- */
.p4x-mode > :not(.p4x-art), .p4x-band > :not(.p4x-art) { position: relative; z-index: 1; }
.p4x-art { position: absolute; inset: 0; z-index: 0; pointer-events: none; color: var(--c);
    -webkit-mask-image: radial-gradient(ellipse 100% 100% at 100% 0%, #000 38%, rgba(0, 0, 0, .4) 72%, transparent 100%);
            mask-image: radial-gradient(ellipse 100% 100% at 100% 0%, #000 38%, rgba(0, 0, 0, .4) 72%, transparent 100%); }
.p4x-art svg { display: block; width: 100%; height: 100%; overflow: visible; }
.p4x-band .p4x-art { -webkit-mask-image: linear-gradient(90deg, transparent 22%, rgba(0, 0, 0, .55) 52%, #000 80%); mask-image: linear-gradient(90deg, transparent 22%, rgba(0, 0, 0, .55) 52%, #000 80%); }

/* synapses: links, glowing nodes, signals running along the links */
.p4x-art__links line { stroke: currentColor; stroke-width: 1.3; stroke-opacity: .34; }
.p4x-art__nodes circle { fill: currentColor; fill-opacity: .8; }
.p4x-art__nodes .p4x-art__core { fill-opacity: 1; filter: drop-shadow(0 0 5px currentColor); }
.p4x-art__nodes .p4x-art__hub { fill-opacity: .14; stroke: currentColor; stroke-opacity: .5; stroke-width: 1.2; transform-box: fill-box; transform-origin: center;
    animation: p4x-hub 3.2s ease-in-out var(--o, 0s) infinite; }
.p4x-art__pulse { stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-dasharray: 9 100; stroke-dashoffset: 109;
    filter: drop-shadow(0 0 5px currentColor); animation: p4x-pulse var(--d, 2.4s) linear var(--o, 0s) infinite; }
@keyframes p4x-pulse { to { stroke-dashoffset: 0; } }
@keyframes p4x-hub { 0%, 100% { transform: scale(.75); fill-opacity: .06; stroke-opacity: .3; } 50% { transform: scale(1.3); fill-opacity: .24; stroke-opacity: .65; } }

/* clouds: three layers drifting at different speeds, data sparks rising into them */
.p4x-art__cl circle, .p4x-art__cl rect { fill: currentColor; }
.p4x-art__cl--back { opacity: .11; animation: p4x-drift 24s ease-in-out infinite alternate; }
.p4x-art__cl--mid { opacity: .17; animation: p4x-drift 18s ease-in-out -6s infinite alternate-reverse; }
.p4x-art__cl--front { opacity: .3; animation: p4x-drift 13s ease-in-out -3s infinite alternate; }
.p4x-art__cl--mid > g { filter: drop-shadow(0 -2px 0 rgba(255, 255, 255, .25)); }
.p4x-art__cl--front > g { filter: drop-shadow(0 -3px 0 rgba(255, 255, 255, .4)) drop-shadow(0 10px 18px rgba(0, 0, 0, .25)); }
@keyframes p4x-drift { from { transform: translateX(-34px); } to { transform: translateX(34px); } }
.p4x-art__spark { fill: #FFFFFF; filter: drop-shadow(0 0 4px currentColor); opacity: 0; transform-box: fill-box;
    animation: p4x-spark var(--d, 5s) ease-in var(--o, 0s) infinite; }
@keyframes p4x-spark { 0% { opacity: 0; transform: translateY(0); } 20% { opacity: .9; } 80% { opacity: .5; } 100% { opacity: 0; transform: translateY(-150px); } }

/* paused: off screen (p4-motion.js adds .p4x-art--rest), the page's pause button, or "reduce motion" */
.p4x-art--rest *, .p4-motion-off .p4x-art * { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
    html:not(.p4-motion-on) .p4x-art * { animation: none !important; }
    html:not(.p4-motion-on) .p4x-art__spark { opacity: .5; }
    .p4x-mode, .p4x-mode__go, .p4x-mode__go svg { transition: none; }
    .p4x-mode:hover { transform: none; }
}

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
    .p4x-band { grid-template-columns: auto 1fr; }
    .p4x-band__facts { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 10px 22px; }
}
@media (max-width: 860px) {
    .p4x-modes__grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 560px) {
    .p4x-modes__q b { font-size: 25px; }
    .p4x-modes__q { font-size: 16.5px; }
    .p4x-mode { padding: 28px 20px 24px; border-radius: 18px; }
    .p4p .p4x-mode h3 { font-size: 33px; }
    .p4x-mode__facts { gap: 8px; }
    .p4x-mode__facts div { padding: 10px 11px; }
    .p4x-mode__facts dt { font-size: 11px; letter-spacing: .8px; }
    .p4x-mode__facts dd { font-size: 13.5px; }
    .p4x-mode__go { align-self: stretch; justify-content: center; }
    .p4x-band { grid-template-columns: 1fr; padding: 24px 20px; }
    .p4p .p4x-band h3 { font-size: 26px; }
    .p4x-band__facts { flex-direction: column; }
    .p4x-band__facts li { white-space: normal; }
}
