/* =========================================================
   VibePass PWA Installation
   ========================================================= */

.vp-install-page {
    width: min(100% - 32px, 760px);
    margin: 0 auto;
    padding: 64px 0 80px;
    color: var(--text, #171717);
}

.vp-install-hero {
    text-align: center;
    padding: 28px 0 52px;
}

.vp-install-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
}

.vp-install-icon img,
.vp-install-popup-icon img {
    display: block;
    width: 88px;
    height: 88px;
    object-fit: contain;
    border-radius: 22px;
}

.vp-install-eyebrow {
    display: block;
    margin-bottom: 16px;
    color: #7c3aed;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.vp-install-hero h1 {
    margin: 0;
    font-size: clamp(42px, 8vw, 72px);
    line-height: 1.02;
    font-weight: 850;
    letter-spacing: -0.055em;
}

.vp-install-intro {
    max-width: 520px;
    margin: 22px auto 28px;
    color: var(--muted, #737373);
    font-size: 16px;
    line-height: 1.75;
}

.vp-install-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 52px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    background: #7c3aed;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
    transition: transform 160ms ease, opacity 160ms ease;
}

.vp-install-primary:hover {
    transform: translateY(-1px);
}

.vp-install-primary:active {
    transform: translateY(0);
}

.vp-install-primary:focus-visible,
.vp-install-popup-close:focus-visible,
.vp-install-popup-link:focus-visible {
    outline: 3px solid #a78bfa;
    outline-offset: 4px;
}

.vp-install-status {
    min-height: 22px;
    margin: 16px 0 0;
    color: var(--muted, #737373);
    font-size: 12px;
    line-height: 1.6;
}

.vp-install-benefits {
    display: grid;
    gap: 0;
    margin: 0 0 56px;
    border-top: 1px solid var(--border, #e5e5e5);
}

.vp-install-benefit {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 24px 0;
    border-bottom: 1px solid var(--border, #e5e5e5);
}

.vp-install-benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(124, 58, 237, 0.09);
    color: #7c3aed;
    font-size: 21px;
}

.vp-install-benefit h2 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 800;
}

.vp-install-benefit p {
    margin: 0;
    color: var(--muted, #737373);
    font-size: 14px;
    line-height: 1.7;
}

.vp-install-instructions {
    padding: 28px;
    border: 1px solid var(--border, #e5e5e5);
    border-radius: 22px;
    background: var(--surface, #fff);
}

.vp-install-instructions > h2 {
    margin: 0 0 24px;
    font-size: 24px;
    font-weight: 850;
    letter-spacing: -0.03em;
}

.vp-install-instruction-group + .vp-install-instruction-group {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border, #e5e5e5);
}

.vp-install-instruction-group h3 {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 800;
}

.vp-install-instruction-group ol {
    margin: 0;
    padding-left: 22px;
    color: var(--muted, #737373);
    font-size: 14px;
    line-height: 1.9;
}

.vp-install-instruction-group strong {
    color: var(--text, #171717);
}

/* Popup */

.vp-install-popup[hidden] {
    display: none !important;
}

.vp-install-popup {
    position: fixed;
    z-index: 99999;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.vp-install-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 10, 18, 0.62);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.vp-install-popup-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 420px);
    padding: 34px 28px 28px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 26px;
    background: var(--surface, #fff);
    color: var(--text, #171717);
    text-align: center;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
    animation: vp-install-popup-in 220ms ease-out;
}

.vp-install-popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: var(--surface-muted, #f5f5f5);
    color: var(--text, #171717);
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.vp-install-popup-icon {
    display: flex;
    justify-content: center;
    margin: 8px 0 24px;
}

.vp-install-popup-icon img {
    width: 64px;
    height: 64px;
    border-radius: 17px;
}

.vp-install-popup-panel h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 850;
    letter-spacing: -0.04em;
    line-height: 1.15;
}

.vp-install-popup-panel > p {
    margin: 14px 0 24px;
    color: var(--muted, #737373);
    font-size: 14px;
    line-height: 1.7;
}

.vp-install-popup-action {
    width: 100%;
}

.vp-install-popup-link {
    display: inline-block;
    margin-top: 18px;
    color: var(--muted, #737373);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.vp-install-popup-link:hover {
    color: #7c3aed;
}

@keyframes vp-install-popup-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 600px) {
    .vp-install-page {
        padding-top: 36px;
        padding-bottom: 56px;
    }

    .vp-install-hero {
        padding: 20px 0 40px;
    }

    .vp-install-intro {
        font-size: 14px;
    }

    .vp-install-instructions {
        padding: 22px 18px;
        border-radius: 18px;
    }

    .vp-install-popup-panel {
        padding: 32px 22px 24px;
        border-radius: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vp-install-primary,
    .vp-install-popup-panel {
        transition: none;
        animation: none;
    }
}
/* No purple backgrounds */
.vp-install-primary,
.vp-install-primary:hover {
    background: #fff;
    color: #17122b;
    box-shadow: inset 0 0 0 1.5px #17122b;
}
.vp-install-benefit-icon {
    background: #fff;
    box-shadow: inset 0 0 0 1.5px #e5e7eb;
}