
/* BEUP MOBILE V13 */

/* Header logo */
.beup-v13-brand {
    display: inline-flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    width: 118px !important;
    height: 44px !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
}

.beup-v13-brand svg {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    overflow: visible !important;
}

/* New card hidden on desktop */
.beup-v13-card {
    display: none;
}

/* Fullscreen viewer */
.beup-v13-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(8, 12, 35, .9);
    padding: 12px;
    align-items: center;
    justify-content: center;
}

.beup-v13-modal.open {
    display: flex;
}

.beup-v13-modal-content {
    width: min(100%, 1100px);
    max-height: 95dvh;
    min-height: 0;
    padding: 15px;
    border-radius: 16px;
    background: white;
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: #142044;
}

.beup-v13-modal-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.beup-v13-modal-top strong {
    font-size: 17px;
}

.beup-v13-modal-top button {
    border: 1px solid #dddded;
    background: #f5f5fc;
    border-radius: 9px;
    padding: 10px 13px;
    font-size: 15px;
}

.beup-v13-modal-image {
    flex: 1;
    min-height: 0;
    overflow: auto;
    border-radius: 10px;
    background: #f1f7fb;
    -webkit-overflow-scrolling: touch;
}

.beup-v13-modal-image img {
    display: block;
    width: max(900px, 100%);
    max-width: none;
    height: auto;
}

.beup-v13-modal-content > a {
    text-align: center;
    color: #5d48d3;
    font-size: 15px;
    padding: 8px;
}

/* Mobile */
@media (max-width: 768px) {

    .header .nav,
    .nav {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
    }

    .beup-v13-brand {
        width: 112px !important;
        height: 42px !important;
        max-width: 112px !important;
    }

    .nav-actions,
    .header .nav-actions {
        display: none !important;
    }

    .menu-toggle {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin-left: auto !important;
        min-width: 44px !important;
        min-height: 44px !important;
        flex-shrink: 0 !important;
    }

    /* Hide old screenshot and horizontal scrolling */
    .hero-v9-screenshot,
    .landing-mobile-v12-hint {
        display: none !important;
    }

    .hero-v2__right {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    /* Compact mobile analytics preview */
    .beup-v13-card {
        display: block !important;
        width: 100%;
        max-width: 480px;
        margin: 5px auto 0;
        box-sizing: border-box;
        padding: 15px;
        background: #f8fbff;
        border-radius: 18px;
        box-shadow: 0 12px 28px rgba(0,0,0,.12);
        color: #152242;
    }

    .beup-v13-card-head > span {
        display: block;
        color: #6551c8;
        font-size: 12px;
        letter-spacing: .06em;
        font-weight: 800;
        margin-bottom: 8px;
    }

    .beup-v13-card-head h3 {
        font-size: 21px !important;
        line-height: 1.25 !important;
        color: #152242 !important;
        margin: 0 0 9px !important;
    }

    .beup-v13-card-head p {
        font-size: 16px !important;
        line-height: 1.5 !important;
        color: #53617c !important;
        margin: 0 0 14px !important;
    }

    .beup-v13-preview {
        width: 100%;
        height: 190px;
        overflow: hidden;
        border: 1px solid #dde6f3;
        border-radius: 12px;
        background: #eaf6fb;
        box-sizing: border-box;
    }

    .beup-v13-preview img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        object-fit: cover !important;
        object-position: left top !important;
    }

    .beup-v13-button {
        display: block;
        width: 100%;
        min-height: 48px;
        margin-top: 14px;
        padding: 12px;
        border: 0;
        border-radius: 11px;
        background: #6250dc;
        color: white;
        font-size: 16px;
        font-weight: 700;
        cursor: pointer;
    }

    /* Small text adjustments */
    .hero-v2__text,
    .hero-copy > p {
        font-size: 18px !important;
        line-height: 1.6 !important;
    }

    .hero-v2__eyebrow,
    .hero-features span,
    .hero-v2__features span {
        font-size: 15px !important;
    }

    .section-title p,
    .scenario p,
    .lead-card p,
    .faq-grid p {
        font-size: 17px !important;
        line-height: 1.6 !important;
    }

    .footer-top a,
    .footer-bottom a {
        font-size: 16px !important;
    }
}

@media (max-width: 390px) {
    .beup-v13-brand {
        width: 103px !important;
        max-width: 103px !important;
    }

    .beup-v13-card {
        padding: 12px;
    }
}
