/* Mobile presentation layer for the public landing page. */
.mobile-burger-btn,
.mobile-menu-panel {
    display: none;
}

@media (max-width: 768px) {
    :root {
        --nav-height: 0px;
    }

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    body .container,
    .s2-modern-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .main-content {
        margin-top: 0;
    }

    /* Closed mobile header: only the burger remains visible. */
    .site-header {
        height: 0 !important;
        min-height: 0 !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        pointer-events: none;
    }

    .site-header__container {
        height: 0;
        padding: 0 !important;
    }

    .site-header .logo-block,
    .site-header .header-actions {
        display: none !important;
    }

    .mobile-burger-btn {
        position: fixed;
        top: 14px;
        right: 14px;
        z-index: 1003;
        width: 48px;
        height: 48px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 14px;
        background: rgba(12, 12, 18, 0.88);
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        pointer-events: auto;
    }

    .mobile-burger-btn span {
        width: 22px;
        height: 2px;
        display: block;
        border-radius: 99px;
        background: #fff;
        transition: transform 0.25s ease, opacity 0.2s ease;
    }

    .mobile-burger-btn.is-open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .mobile-burger-btn.is-open span:nth-child(2) {
        opacity: 0;
    }

    .mobile-burger-btn.is-open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .mobile-menu-panel {
        position: fixed;
        inset: 0;
        z-index: 1002;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 10px;
        padding: 88px 24px 32px;
        background: rgba(8, 8, 12, 0.98);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
        pointer-events: none;
    }

    .mobile-menu-panel.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .mobile-menu-panel__eyebrow {
        margin-bottom: 16px;
        color: var(--accent-light);
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

    .mobile-menu-panel__link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 58px;
        padding: 14px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        color: var(--text-primary);
        font-size: 1.12rem;
        font-weight: 700;
    }

    .mobile-menu-panel__link::after {
        content: '→';
        color: var(--accent-light);
    }

    .mobile-menu-panel__cta {
        width: 100%;
        min-height: 54px;
        margin-top: 22px;
        border-radius: 14px;
        background: var(--gradient-main);
        color: #050507;
        font-size: 1rem;
        font-weight: 800;
    }

    body.mobile-menu-open {
        overflow: hidden;
    }

    /* Hero: shorter copy measure, two-line headline and unobstructed portrait. */
    #section-screen1 {
        min-height: auto;
        padding: 72px 0 48px;
    }

    .s1-modern {
        min-height: 0;
        padding: 0;
        overflow: visible;
    }

    .s1-modern-grid {
        gap: 32px;
    }

    .s1-modern-text {
        width: 100%;
    }

    .voice-ripple-container {
        display: none;
    }

    .s1-modern-badge {
        max-width: 100%;
        margin-bottom: 20px;
        padding: 8px 12px;
        gap: 8px;
    }

    .s1-modern-badge__text {
        font-size: 0.66rem;
        line-height: 1.35;
    }

    .s1-modern-headline {
        width: 100%;
        margin: 0 0 18px;
        font-size: clamp(1.55rem, 7vw, 1.75rem) !important;
        line-height: 1.12 !important;
        letter-spacing: -0.035em !important;
    }

    .s1-modern-headline__white {
        white-space: nowrap;
    }

    .s1-modern-subtitle {
        width: 100%;
        max-width: 340px !important;
        margin: 0 auto 24px;
        font-size: 0.92rem;
        line-height: 1.55;
    }

    .s1-modern-cta-row {
        width: 100%;
    }

    .s1-modern-cta-primary {
        min-height: 54px;
    }

    .s1-modern-cta-secondary {
        display: none;
    }

    .s1-modern-visual {
        margin-top: 0;
    }

    .s1-cashier-wrapper {
        max-width: 280px;
    }

    .s1-cashier-img {
        transform: scale(1.04);
    }

    .glass-notif {
        display: none !important;
    }

    #s1LiveConsole {
        width: 210px !important;
        bottom: 1% !important;
        padding: 9px 12px !important;
    }

    /* Industries: concise cards with cover before the action button. */
    .s2-modern-section {
        padding: 64px 0;
    }

    .s2-modern-header {
        margin-bottom: 32px;
    }

    .s2-modern-title {
        font-size: clamp(1.65rem, 7vw, 2rem);
    }

    .s2-modern-subtitle {
        font-size: 0.9rem;
    }

    .s2-offers-stack {
        gap: 22px;
    }

    .s2-offer-card {
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto auto auto auto;
        min-height: 0;
        border-radius: 24px;
    }

    .s2-offer-info {
        display: contents;
    }

    .s2-offer-title {
        grid-row: 1;
        margin: 24px 20px 0;
        font-size: 1.2rem;
        text-align: left;
    }

    .s2-offer-desc {
        grid-row: 2;
        margin: 10px 20px 0;
        font-size: 0.86rem;
        line-height: 1.55;
        text-align: left;
    }

    .s2-offer-meta-row {
        grid-row: 3;
        margin: 18px 20px 0;
        padding-top: 16px;
        gap: 18px;
    }

    .s2-meta-num {
        font-size: 1.1rem;
    }

    .s2-meta-lbl {
        font-size: 0.58rem;
    }

    .s2-offer-visual,
    .s2-offer-card:nth-child(even) .s2-offer-visual {
        grid-row: 4;
        order: initial !important;
        margin: 18px 0 16px;
        padding: 0 20px !important;
        background: transparent;
    }

    .s2-video-frame {
        width: 100%;
        max-width: none;
        aspect-ratio: 1.5;
        border-radius: 16px;
    }

    .s2-offer-btn-primary {
        grid-row: 5;
        width: auto;
        min-height: 50px;
        margin: 0 20px 22px;
        justify-content: center;
    }

    /* Simulator: retain the interaction but remove unnecessary empty height. */
    #how-it-works {
        min-height: auto;
        padding: 68px 0 56px;
    }

    .s2-header {
        margin-bottom: 32px;
    }

    .s2-title {
        font-size: 1.9rem;
    }

    .s2-subtitle {
        margin-top: 12px;
        font-size: 0.92rem;
        line-height: 1.5;
    }

    .s2-simulator-grid {
        gap: 18px;
    }

    .s2-panel {
        min-height: 0;
        padding: 20px;
        gap: 16px;
        border-radius: 18px;
    }

    .s2-chat-area {
        height: 220px;
        max-height: 220px;
    }

    .s2-bubble {
        max-width: 100%;
        font-size: 0.78rem;
    }

    .s2-bubble__privacy-badge {
        display: none;
    }

    .s2-bubble--symbolic {
        gap: 8px;
    }

    .s2-receipt-container {
        padding: 16px;
    }

    /* Lead capture: one readable column with no horizontal clipping. */
    #section-lead-form {
        min-height: auto;
        padding: 64px 0 !important;
    }

    .s-lead-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 32px !important;
    }

    .s-lead-info {
        text-align: center;
    }

    .s-lead-title {
        font-size: 1.9rem !important;
        margin-bottom: 14px !important;
    }

    .s-lead-desc {
        max-width: 100% !important;
        margin-bottom: 24px !important;
        font-size: 0.92rem !important;
    }

    .s-lead-benefits {
        max-width: 330px;
        margin: 0 auto;
        text-align: left;
    }

    .s-lead-card {
        width: 100%;
        min-width: 0;
        padding: 24px !important;
        border-radius: 20px !important;
    }

    .lead-form__input {
        min-width: 0;
    }

    .footer {
        padding-top: 48px;
        padding-bottom: 28px;
    }
}

@media (max-width: 374px) {
    body .container,
    .s2-modern-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .s1-modern-headline {
        font-size: 1.55rem !important;
    }

    .s1-modern-badge__text {
        font-size: 0.61rem;
    }

    .s2-offer-title {
        font-size: 1.12rem;
    }
}

/* Operations: /home/roman/agents-mdm/projects/4sell-site.md */
