/* ==========================================================================
   Service landing pages  —  /services/<slug>
   Generated pages: public/services/*.html (see scripts/build_services.py)

   Everything here is namespaced `sp-` except the four primitives at the top,
   which are copied from the inline <style> block on services.html so the
   contact form and the glow read identically on both pages.

   The page is dir="rtl", so components use logical properties
   (inline-start / inline-end) rather than left / right.
   ========================================================================== */

/* --------------------------------------------------- shared primitives --- */

/* style2-base.css hides the native pointer for the team page's custom cursor,
   which this page does not load. Restore it, as on the other static pages. */
body {
    cursor: auto;
}

.premium-center-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at center,
        rgba(179, 102, 255, 0.15) 0%,
        rgba(126, 34, 206, 0.09) 40%,
        transparent 75%
    );
    pointer-events: none;
    z-index: 0;
}

.vintage-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(179, 102, 255, 0.4);
    padding: 0.5rem 0;
    color: #ffffff;
    transition:
        border-color 0.3s,
        box-shadow 0.3s;
}
.vintage-input::placeholder {
    color: rgba(179, 102, 255, 0.5);
}
.vintage-input:focus {
    outline: none;
    border-bottom-color: #b366ff;
    box-shadow: 0 1px 0 0 #b366ff;
}

.btn-premium-submit {
    background: linear-gradient(135deg, #3b0764, #2e1065);
    color: #d8b4fe;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
    border: 1px solid rgba(168, 85, 247, 0.2);
}
.btn-premium-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: skewX(-25deg);
    transition: left 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}
.btn-premium-submit:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 15px 30px rgba(126, 34, 206, 0.6),
        0 0 25px rgba(179, 102, 255, 0.4);
    background: linear-gradient(135deg, #b366ff, #a855f7);
    color: #06020b;
    border-color: #d8b4fe;
}
.btn-premium-submit:hover::before {
    left: 150%;
}
.arrow-icon {
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-premium-submit:hover .arrow-icon {
    transform: translateX(-6px);
}

/* ------------------------------------------------------------- layout --- */

.sp-main {
    position: relative;
    z-index: 10;
    padding: 7rem 1.5rem 0;
}
@media (min-width: 768px) {
    .sp-main {
        padding-top: 9rem;
    }
}

.sp-section {
    position: relative;
    z-index: 10;
    max-width: 64rem;
    margin: 0 auto;
    padding: 3.5rem 0;
    border-top: 1px solid rgba(126, 34, 206, 0.22);
}
@media (min-width: 768px) {
    .sp-section {
        padding: 5rem 0;
    }
}

.sp-h2 {
    color: #f3e8ff;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
}
@media (min-width: 768px) {
    .sp-h2 {
        font-size: 2.25rem;
    }
}

.sp-lede {
    color: rgba(233, 213, 255, 0.6);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.9;
    max-width: 44rem;
    margin-bottom: 2.25rem;
}

/* ------------------------------------------------------ breadcrumb + hero */

.sp-crumbs {
    position: relative;
    z-index: 10;
    max-width: 64rem;
    margin: 0 auto 1.5rem;
    font-size: 0.875rem;
    color: rgba(216, 180, 254, 0.45);
}
.sp-crumbs a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}
.sp-crumbs a:hover {
    color: #d8b4fe;
}
.sp-crumbs span {
    margin: 0 0.4rem;
}
.sp-crumb-current {
    color: rgba(216, 180, 254, 0.85);
}

/* style2-base.css hides every <header> on the site (`header { display: none }`)
   to suppress a legacy site header. The hero here is a real page header, so it
   has to opt back in — the type+class selector outranks the bare element. */
header.sp-hero {
    display: block;
}
.sp-hero {
    position: relative;
    z-index: 10;
    max-width: 64rem;
    margin: 0 auto;
    padding-bottom: 3rem;
}

.sp-hero-badge {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}
.sp-hero-icon {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #d8b4fe;
    border: 1px solid rgba(179, 102, 255, 0.45);
    background: radial-gradient(
        circle at 30% 30%,
        rgba(126, 34, 206, 0.45) 0%,
        rgba(10, 3, 20, 0.9) 70%
    );
    box-shadow:
        0 0 25px rgba(126, 34, 206, 0.45),
        inset 0 0 18px rgba(179, 102, 255, 0.25);
}
.sp-hero-num {
    font-weight: 900;
    font-size: 2.75rem;
    letter-spacing: 0.05em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(179, 102, 255, 0.55);
}

.sp-h1 {
    color: #f3e8ff;
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}
@media (min-width: 768px) {
    .sp-h1 {
        font-size: 3.5rem;
    }
}

.sp-hero-lead {
    color: rgba(233, 213, 255, 0.8);
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.95;
    max-width: 48rem;
}
@media (min-width: 768px) {
    .sp-hero-lead {
        font-size: 1.25rem;
    }
}

.sp-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.25rem;
}
.sp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.9rem 1.75rem;
    border-radius: 0.6rem;
    font-weight: 700;
    text-decoration: none;
}
.sp-btn-primary {
    background: linear-gradient(135deg, #7e22ce, #a855f7);
    color: #ffffff;
    border: 1px solid rgba(216, 180, 254, 0.35);
    box-shadow: 0 12px 30px rgba(126, 34, 206, 0.4);
    transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.sp-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(126, 34, 206, 0.55);
}
.sp-btn-primary:hover .arrow-icon {
    transform: translateX(-6px);
}
.sp-btn-ghost {
    color: #d8b4fe;
    border: 1px solid rgba(179, 102, 255, 0.4);
    background: rgba(126, 34, 206, 0.08);
    transition:
        border-color 0.35s ease,
        color 0.35s ease,
        background-color 0.35s ease;
}
.sp-btn-ghost:hover {
    border-color: rgba(216, 180, 254, 0.8);
    color: #f3e8ff;
    background: rgba(126, 34, 206, 0.2);
}

/* ------------------------------------------------------------- signals --- */

.sp-signal-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}
@media (min-width: 768px) {
    .sp-signal-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.9rem 1.5rem;
    }
}
.sp-signal {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.9rem 1.1rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(126, 34, 206, 0.25);
    background: rgba(20, 8, 38, 0.5);
    color: rgba(233, 213, 255, 0.88);
    line-height: 1.7;
}
.sp-signal i {
    margin-top: 0.35rem;
    color: #b366ff;
    filter: drop-shadow(0 0 6px rgba(179, 102, 255, 0.7));
}

/* --------------------------------------------------------------- cards --- */

.sp-card-grid {
    display: grid;
    gap: 1.25rem;
}
@media (min-width: 768px) {
    .sp-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .sp-card-grid-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.sp-card {
    position: relative;
    overflow: hidden;
    padding: 1.75rem;
    border-radius: 1.1rem;
    border: 1px solid rgba(126, 34, 206, 0.3);
    background: linear-gradient(
        135deg,
        rgba(30, 12, 55, 0.6) 0%,
        rgba(12, 4, 24, 0.85) 100%
    );
    transition:
        border-color 0.45s ease,
        box-shadow 0.45s ease,
        transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.sp-card:hover {
    border-color: rgba(179, 102, 255, 0.6);
    box-shadow: 0 18px 45px rgba(126, 34, 206, 0.28);
    transform: translateY(-4px);
}
.sp-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.1rem;
    font-size: 1.15rem;
    color: #d8b4fe;
    border: 1px solid rgba(179, 102, 255, 0.35);
    background: rgba(126, 34, 206, 0.18);
}
.sp-card-h {
    color: #f3e8ff;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}
.sp-card-p {
    color: rgba(233, 213, 255, 0.68);
    font-size: 0.97rem;
    font-weight: 300;
    line-height: 1.85;
}

/* ------------------------------------------------------------- process --- */

.sp-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: none;
}
.sp-step {
    position: relative;
    display: flex;
    gap: 1.25rem;
    padding-bottom: 2rem;
}
.sp-step:last-child {
    padding-bottom: 0;
}
/* The connector runs down the centre of the number badge. inset-inline-start
   resolves to the right edge in RTL, which is where the badges sit. */
.sp-step:not(:last-child)::before {
    content: '';
    position: absolute;
    inset-inline-start: 27px;
    top: 60px;
    bottom: 8px;
    width: 1px;
    background: linear-gradient(
        180deg,
        rgba(179, 102, 255, 0.5),
        rgba(126, 34, 206, 0.08)
    );
}
.sp-step-num {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.05rem;
    color: #d8b4fe;
    border: 1px solid rgba(179, 102, 255, 0.4);
    background: radial-gradient(
        circle at 30% 30%,
        rgba(126, 34, 206, 0.4) 0%,
        rgba(10, 3, 20, 0.95) 70%
    );
    box-shadow: 0 0 18px rgba(126, 34, 206, 0.35);
}
.sp-step-body {
    padding-top: 0.35rem;
}
.sp-step-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}
.sp-step-h {
    color: #f3e8ff;
    font-size: 1.15rem;
    font-weight: 700;
}
.sp-step-when {
    font-size: 0.78rem;
    padding: 0.15rem 0.65rem;
    border-radius: 9999px;
    border: 1px solid rgba(126, 34, 206, 0.45);
    color: rgba(179, 102, 255, 0.9);
    white-space: nowrap;
}
.sp-step-p {
    color: rgba(233, 213, 255, 0.68);
    font-weight: 300;
    line-height: 1.85;
    max-width: 46rem;
}

/* ------------------------------------------------------------ outcomes --- */

.sp-outcome-grid {
    display: grid;
    gap: 1.25rem;
}
@media (min-width: 768px) {
    .sp-outcome-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.sp-outcome {
    padding: 1.6rem 1.75rem;
    border-radius: 1.1rem;
    border: 1px solid rgba(126, 34, 206, 0.28);
    background: rgba(126, 34, 206, 0.07);
}
.sp-outcome-h {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: #f3e8ff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.55rem;
}
.sp-outcome-h i {
    color: #b366ff;
    font-size: 0.95rem;
    filter: drop-shadow(0 0 6px rgba(179, 102, 255, 0.7));
}

/* --------------------------------------------------------------- chips --- */

.sp-chips {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.sp-chip {
    padding: 0.5rem 1.1rem;
    border-radius: 9999px;
    font-size: 0.9rem;
    color: rgba(233, 213, 255, 0.85);
    border: 1px solid rgba(179, 102, 255, 0.3);
    background: rgba(20, 8, 38, 0.6);
    transition:
        border-color 0.35s ease,
        color 0.35s ease;
}
.sp-chip:hover {
    border-color: rgba(216, 180, 254, 0.7);
    color: #f3e8ff;
}

/* ----------------------------------------------------------------- faq --- */

.sp-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.sp-faq {
    border-radius: 0.9rem;
    border: 1px solid rgba(126, 34, 206, 0.3);
    background: rgba(20, 8, 38, 0.5);
    overflow: hidden;
    transition: border-color 0.35s ease;
}
.sp-faq[open] {
    border-color: rgba(179, 102, 255, 0.55);
}
.sp-faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.35rem;
    cursor: pointer;
    color: #f3e8ff;
    font-weight: 600;
    font-size: 1.02rem;
    list-style: none;
}
.sp-faq-q::-webkit-details-marker {
    display: none;
}
.sp-faq-chevron {
    flex-shrink: 0;
    font-size: 0.8rem;
    color: #b366ff;
    transition: transform 0.3s ease;
}
.sp-faq[open] .sp-faq-chevron {
    transform: rotate(180deg);
}
.sp-faq-a {
    padding: 0 1.35rem 1.35rem;
    color: rgba(233, 213, 255, 0.7);
    font-weight: 300;
    line-height: 1.9;
}

/* --------------------------------------------------------- link cards --- */

.sp-link-card {
    display: block;
    padding: 1.6rem;
    border-radius: 1.1rem;
    border: 1px solid rgba(126, 34, 206, 0.3);
    background: rgba(14, 4, 26, 0.6);
    text-decoration: none;
    transition:
        border-color 0.4s ease,
        box-shadow 0.4s ease,
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.sp-link-card:hover {
    border-color: rgba(179, 102, 255, 0.6);
    box-shadow: 0 12px 40px rgba(126, 34, 206, 0.28);
    transform: translateY(-4px);
}
.sp-link-card-h {
    color: #ffffff;
    font-size: 1.08rem;
    font-weight: 700;
    margin: 0.6rem 0 0.5rem;
}
.sp-tag {
    display: inline-block;
    font-size: 0.72rem;
    padding: 0.15rem 0.6rem;
    border-radius: 9999px;
    border: 1px solid rgba(126, 34, 206, 0.4);
    color: rgba(179, 102, 255, 0.85);
}

.sp-other-grid {
    display: grid;
    gap: 1rem;
}
@media (min-width: 768px) {
    .sp-other-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.sp-link-card-tight {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding: 1.35rem 1.5rem;
}
.sp-link-card-tight .sp-link-card-h {
    margin: 0 0 0.35rem;
}
.sp-other-num {
    font-weight: 900;
    font-size: 1.6rem;
    flex-shrink: 0;
    color: transparent;
    -webkit-text-stroke: 1px rgba(179, 102, 255, 0.55);
}
.sp-other-arrow {
    margin-inline-start: auto;
    flex-shrink: 0;
    color: rgba(179, 102, 255, 0.7);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.sp-link-card-tight:hover .sp-other-arrow {
    transform: translateX(-6px);
}

.sp-back {
    margin-top: 2rem;
    text-align: center;
}
.sp-back a {
    color: #b366ff;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.25s ease;
}
.sp-back a:hover {
    color: #f3e8ff;
}

/* ------------------------------------------------------------- contact --- */

.sp-contact {
    position: relative;
    z-index: 10;
    overflow: hidden;
    padding: 5rem 0 6rem;
    margin-top: 3rem;
}
@media (min-width: 768px) {
    .sp-contact {
        padding: 7rem 0 8rem;
    }
}
.sp-form-shell {
    position: relative;
    overflow: hidden;
    padding: 1.75rem;
    border-radius: 1rem;
    border: 1px solid rgba(179, 102, 255, 0.4);
    background: linear-gradient(180deg, rgba(35, 15, 65, 0.8) 0%, rgba(20, 8, 35, 0.95) 100%);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.5),
        inset 0 0 30px rgba(179, 102, 255, 0.15);
}
@media (min-width: 768px) {
    .sp-form-shell {
        padding: 4rem;
    }
}
.sp-form-h {
    font-size: 1.75rem;
    font-weight: 300;
    color: #ffffff;
    margin-bottom: 0.6rem;
}
@media (min-width: 768px) {
    .sp-form-h {
        font-size: 2.75rem;
    }
}
.sp-form-sub {
    color: #9ca3af;
    font-size: 0.95rem;
}
@media (min-width: 768px) {
    .sp-form-sub {
        font-size: 1.1rem;
    }
}
.sp-submit {
    width: 100%;
    font-weight: 700;
    padding: 0.9rem 2rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}
@media (min-width: 768px) {
    .sp-submit {
        width: auto;
        padding: 0.9rem 2.5rem;
    }
}

.sp-diamond {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #7e22ce;
    animation: sp-diamond-breathe 3s ease-in-out infinite;
}
.sp-diamond-tl {
    top: 1rem;
    left: 1rem;
}
.sp-diamond-tr {
    top: 1rem;
    right: 1rem;
    animation-delay: 0.75s;
}
.sp-diamond-bl {
    bottom: 1rem;
    left: 1rem;
    animation-delay: 1.5s;
}
.sp-diamond-br {
    bottom: 1rem;
    right: 1rem;
    animation-delay: 2.25s;
}
@keyframes sp-diamond-breathe {
    0%,
    100% {
        transform: rotate(45deg) scale(1);
        box-shadow: 0 0 5px rgba(126, 34, 206, 0.4);
        opacity: 0.6;
    }
    50% {
        transform: rotate(45deg) scale(1.5);
        box-shadow:
            0 0 15px rgba(179, 102, 255, 0.9),
            0 0 5px rgba(255, 255, 255, 0.4);
        opacity: 1;
        background-color: #d8b4fe;
    }
}

/* -------------------------------------------------------------- footer --- */

/* These pages add a fourth footer column listing the sibling services.
   style2-footer.css declares three tracks, and collapses to one below 768px —
   so widen the grid only above that breakpoint and leave the stack alone. */
@media (min-width: 769px) {
    #xpera-isolated-footer .xif-main {
        grid-template-columns: 1.8fr 1fr 1fr 1.3fr;
        gap: 2.5rem;
    }
}

#xpera-isolated-footer .xif-links-col a[aria-current='page'] {
    color: #d8b4fe;
}

/* --------------------------------------------------------------- a11y --- */

.sp-btn:focus-visible,
.sp-link-card:focus-visible,
.sp-faq-q:focus-visible,
.sp-crumbs a:focus-visible {
    outline: 2px solid #d8b4fe;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .sp-card,
    .sp-link-card,
    .sp-btn-primary,
    .sp-other-arrow,
    .arrow-icon,
    .sp-faq-chevron {
        transition: none;
    }
    .sp-diamond,
    .galaxy-spiral {
        animation: none;
    }
}

/* ------------------------------------------------------------- mobile --- */

@media (max-width: 767px) {
    .cursor-dot,
    .cursor-glow {
        display: none !important;
    }
    .sp-hero-icon {
        width: 60px;
        height: 60px;
        font-size: 1.35rem;
    }
    .sp-hero-num {
        font-size: 2.1rem;
    }
    .sp-step-num {
        width: 46px;
        height: 46px;
        font-size: 0.95rem;
    }
    .sp-step:not(:last-child)::before {
        inset-inline-start: 22px;
        top: 50px;
    }
    .sp-btn {
        width: 100%;
    }
    #xpera-isolated-footer {
        padding: 2rem 1rem !important;
    }
}
