@media (max-width: 1199px) {
    .tabs_inner .nav-tabs {
        gap: 0.45rem;
        padding: 0.7rem;
    }

    .tabs_inner .nav-tabs .nav-link {
        font-size: 0.85rem;
        padding: 0.55rem 0.95rem;
    }
}

@media (max-width: 991px) {
    .lp-header__link {
        display: none;
    }

    .lp-header__link span {
        display: none;
    }

    .lp-header__link i {
        font-size: 1.05rem;
    }

    .lp-header .row {
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .lp-header .col-lg-6 {
        width: auto;
        flex: 0 1 auto;
    }

    .lp-header .col-lg-6:last-child {
        flex: 1 1 auto;
    }

    .lp-header__actions {
        justify-content: flex-end;
    }

    .lp-hero {
        min-height: auto;
        padding: 2.75rem 0 3rem;
        text-align: center;
    }

    .lp-hero__content {
        max-width: none;
        margin-inline: auto;
    }

    .lp-hero__lead {
        margin-inline: auto;
    }

    .lp-hero__ctas {
        justify-content: center;
    }

    .lp-hero-form {
        text-align: left;
        max-width: 400px;
        margin-inline: auto;
    }

    .lp-mid-cta__inner,
    .lp-bottom-banner__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .lp-mid-cta__copy .lp-hero__ctas,
    .lp-expertise__content .lp-hero__ctas,
    .global_btn {
        justify-content: center;
    }

    .lp-ready__list {
        grid-template-columns: 1fr;
        max-width: 34rem;
    }

    .lp-ready__lead {
        max-width: 36rem;
    }

    .author_tabs_content {
        text-align: center;
    }

    .author_tabs_content h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .author_tabs_content p {
        margin-inline: auto;
    }

    .lp-footer__top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .lp-footer__contacts {
        justify-content: center;
    }

    .lp-footer__contact {
        text-align: left;
    }
}

@media (max-width: 767px) {
    .lp-header .row {
        min-height: 72px;
    }

    .lp-header__brand img {
        height: 40px;
    }

    .lp-header .lp-btn {
        padding-inline: 0.9rem;
        min-height: 40px;
        font-size: 0.85rem;
    }

    .lp-hero-form__row {
        grid-template-columns: 1fr;
    }

    .lp-hero-form__checks {
        grid-template-columns: 1fr;
    }

    .lp-expertise,
    .lp-services-tabs,
    .lp-testimonials,
    .lp-ready,
    .lp-dual,
    .lp-faq,
    .lp-final-cta {
        padding: 3.25rem 0;
    }

    .tabs_inner .nav-tabs {
        gap: 0.4rem;
        margin-bottom: 1.75rem;
        padding: 0.6rem;
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .tabs_inner .nav-tabs .nav-link {
        font-size: 0.8rem;
        padding: 0.5rem 0.85rem;
        white-space: nowrap;
    }

    .author_tabs_img img {
        max-width: 360px;
        margin-inline: auto;
    }

    .lp-bottom-banner__inner {
        gap: 1rem;
    }

    .lp-footer__bottom .container {
        flex-direction: column;
        text-align: center;
    }

    body {
        padding-bottom: 72px;
    }

    .lp-final-form__row {
        grid-template-columns: 1fr;
    }

    .lp-final-cta__copy {
        text-align: center;
        max-width: none;
    }

    .lp-final-cta__points {
        text-align: left;
        max-width: 22rem;
        margin-inline: auto;
    }
}

@media (max-width: 480px) {
    .lp-hero__ctas .lp-btn,
    .global_btn .lp-btn,
    .lp-final-form .lp-btn {
        width: 100%;
    }
}

/* Zendesk chat - half height on mobile + allow page scroll */
@media (max-width: 767px) {
    html.st-zendesk-chat-open,
    body.st-zendesk-chat-open {
        overflow: auto !important;
        overflow-x: clip;
        position: static !important;
        height: auto !important;
        touch-action: pan-y;
    }

    body.st-zendesk-chat-open #Embed,
    body.st-zendesk-chat-open [data-product="web_widget"] {
        pointer-events: none !important;
        background: transparent !important;
    }

    /* Only style chat window AFTER it opens — never while closed */
    body.st-zendesk-chat-open iframe[title="Messaging window"],
    body.st-zendesk-chat-open #webWidget,
    body.st-zendesk-chat-open #webWidget iframe {
        width: min(380px, calc(100vw - 1rem)) !important;
        max-width: calc(100vw - 1rem) !important;
        height: 50vh !important;
        max-height: 50vh !important;
        min-height: 220px !important;
        bottom: calc(72px + env(safe-area-inset-bottom)) !important;
        right: 0.5rem !important;
        left: auto !important;
        top: auto !important;
        position: fixed !important;
        border-radius: 14px 14px 0 0 !important;
        box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.18) !important;
        pointer-events: auto !important;
        z-index: 9997 !important;
    }

    /* Default Zendesk launcher above mobile call bar */
    iframe[title="Button to launch messaging window"],
    iframe#launcher,
    #launcher,
    div[data-testid="launcher"],
    button[data-testid="launcher"] {
        bottom: calc(72px + env(safe-area-inset-bottom) + 0.5rem) !important;
        right: 0.75rem !important;
        top: auto !important;
        left: auto !important;
        position: fixed !important;
        pointer-events: auto !important;
        z-index: 99999 !important;
    }
}
