/* NP Booking premium experience layer
   Scoped polish for public React/marketing pages. Keeps existing brand colors. */
:root {
    --np-premium-ink: #090d16;
    --np-premium-paper: #f5f2eb;
    --np-premium-gold: #d4af37;
    --np-premium-mint: #d8efdf;
    --np-premium-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

body.np-premium-experience {
    text-rendering: geometricPrecision;
    -webkit-font-smoothing: antialiased;
    background: var(--np-premium-paper);
}

body.np-premium-experience::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    pointer-events: none;
    opacity: 0.024;
    background-image: radial-gradient(rgba(9, 13, 22, 0.72) 0.65px, transparent 0.65px);
    background-size: 3px 3px;
    mix-blend-mode: multiply;
}

#home-app,
#pricing-app,
#business-page-app,
#how-it-works-app,
#download-page-app {
    isolation: isolate;
}

#home-app section,
#pricing-app section,
#business-page-app section,
#how-it-works-app section,
#download-page-app section {
    scroll-margin-top: 96px;
}

.np-premium-hero {
    box-shadow: inset 0 -1px 0 rgba(255,255,255,0.08);
}

.np-premium-hero::after {
    content: '';
    position: absolute;
    inset: auto 0 -1px;
    height: 120px;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent, rgba(245,242,235,0.08));
}

.np-premium-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.np-premium-trust-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 999px;
    padding: 8px 12px;
    background: linear-gradient(135deg, rgba(255,255,255,0.14), rgba(255,255,255,0.06));
    color: rgba(255,255,255,0.78);
    font-size: 12px;
    font-weight: 850;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 14px 38px rgba(0,0,0,0.18);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.np-premium-trust-pill svg {
    width: 14px;
    height: 14px;
    color: var(--np-premium-gold);
}

.np-premium-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #41d88f;
    box-shadow: 0 0 0 4px rgba(65,216,143,0.14), 0 0 24px rgba(65,216,143,0.46);
}

.np-premium-card,
[data-np-spotlight='true'] {
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

[data-np-spotlight='true']::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.28s var(--np-premium-ease);
    background: radial-gradient(420px circle at var(--np-spotlight-x, 50%) var(--np-spotlight-y, 50%), rgba(255,255,255,0.24), transparent 42%);
}

[data-np-spotlight='true']:hover::before {
    opacity: 1;
}

[data-np-spotlight='true'] > * {
    position: relative;
    z-index: 2;
}

#home-app a[href],
#home-app button,
#pricing-app a[href],
#pricing-app button,
#business-page-app a[href],
#business-page-app button,
#how-it-works-app a[href],
#how-it-works-app button,
#download-page-app a[href],
#download-page-app button {
    transition-timing-function: var(--np-premium-ease) !important;
}

#home-app a[href]:active,
#home-app button:active,
#pricing-app a[href]:active,
#pricing-app button:active,
#business-page-app a[href]:active,
#business-page-app button:active,
#how-it-works-app a[href]:active,
#how-it-works-app button:active,
#download-page-app a[href]:active,
#download-page-app button:active {
    transform: translateY(1px) scale(0.985);
}

.np-premium-reveal {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.995);
    transition: opacity 0.68s var(--np-premium-ease), transform 0.68s var(--np-premium-ease), filter 0.68s var(--np-premium-ease);
    filter: blur(6px);
    will-change: opacity, transform, filter;
}

.np-premium-reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
}

.pricing-shell,
#business-page-app,
#how-it-works-app,
#download-page-app {
    background-image:
        radial-gradient(circle at 12% 8%, rgba(212,175,55,0.11), transparent 28%),
        radial-gradient(circle at 86% 18%, rgba(216,239,223,0.30), transparent 25%);
}

#pricing-app .pricing-hover,
#business-page-app article,
#how-it-works-app article,
#download-page-app article {
    backface-visibility: hidden;
}

#pricing-app .pricing-hover:hover,
#business-page-app article:hover,
#how-it-works-app article:hover,
#download-page-app article:hover {
    border-color: rgba(212,175,55,0.34) !important;
    box-shadow: 0 28px 90px rgba(15,23,42,0.13), 0 1px 0 rgba(255,255,255,0.72) inset !important;
}

.page-loader {
    background: rgba(245, 242, 235, 0.78) !important;
    backdrop-filter: blur(18px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(150%) !important;
}

.page-loader .text-center {
    min-width: 186px;
    border: 1px solid rgba(255,255,255,0.62);
    border-radius: 24px;
    padding: 22px 24px;
    background: rgba(255,255,255,0.78);
    box-shadow: 0 28px 90px rgba(15,23,42,0.16), inset 0 1px 0 rgba(255,255,255,0.86);
}

.loader-spinner {
    width: 34px !important;
    height: 34px !important;
    border-width: 3px !important;
    border-color: rgba(9,13,22,0.10) !important;
    border-top-color: var(--np-premium-gold) !important;
}

body.np-route-leaving main,
body.np-route-leaving #home-app,
body.np-route-leaving #pricing-app,
body.np-route-leaving #business-page-app,
body.np-route-leaving #how-it-works-app,
body.np-route-leaving #download-page-app {
    transition: opacity 0.18s var(--np-premium-ease), transform 0.18s var(--np-premium-ease);
    opacity: 0.985;
    transform: translateY(-2px);
}

@media (min-width: 768px) {
    #home-app section,
    #pricing-app section,
    #business-page-app section,
    #how-it-works-app section,
    #download-page-app section {
        content-visibility: auto;
        contain-intrinsic-size: 720px;
    }

    #home-app section:first-child,
    #pricing-app section:first-child,
    #business-page-app section:first-child,
    #how-it-works-app section:first-child,
    #download-page-app section:first-child {
        content-visibility: visible;
        contain-intrinsic-size: auto;
    }
}

@media (max-width: 767px) {
    .np-premium-trust-row {
        gap: 7px;
        margin-top: 16px;
    }

    .np-premium-trust-pill {
        min-height: 32px;
        padding: 7px 10px;
        font-size: 11px;
    }

    #home-app section,
    #pricing-app section,
    #business-page-app section,
    #how-it-works-app section,
    #download-page-app section {
        scroll-margin-top: 74px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .np-premium-reveal,
    .np-premium-reveal.is-visible,
    body.np-route-leaving main,
    body.np-route-leaving #home-app,
    body.np-route-leaving #pricing-app,
    body.np-route-leaving #business-page-app,
    body.np-route-leaving #how-it-works-app,
    body.np-route-leaving #download-page-app {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }

    [data-np-spotlight='true']::before {
        display: none !important;
    }
}
