/**
 * Landing page — mobile & tablet refinements (body.landing-page only).
 * Tighter typography, horizontal inset, single-column grids, reduced spacing.
 */

@media (max-width: 991.98px) {
    /* Shared horizontal inset for hero + all main sections */
    body.landing-page section.hero.hero-2#hero .container,
    body.landing-page section.feature .container,
    body.landing-page .landing-section-outer > section.growth .container,
    body.landing-page .landing-section-outer > section.step .container,
    body.landing-page .landing-section-outer > section.questions .container,
    body.landing-page .landing-section-outer > section.screenshot .container,
    body.landing-page .landing-section-outer > footer.footer .container {
        padding-left: max(1.6rem, env(safe-area-inset-left, 0px));
        padding-right: max(1.6rem, env(safe-area-inset-right, 0px));
    }

    /* Section vertical rhythm — less airy on small screens */
    body.landing-page > section.hero {
        padding-bottom: clamp(4rem, 8vw, 6rem) !important;
    }

    body.landing-page .landing-section-outer > section,
    body.landing-page .landing-section-outer > footer.footer {
        padding-top: clamp(3.5rem, 7vw, 5.5rem) !important;
        padding-bottom: clamp(3.5rem, 7vw, 5.5rem) !important;
    }

    /* Headings & body copy */
    body.landing-page .section-heading {
        font-size: clamp(2.8rem, 6.5vw, 4.2rem) !important;
        line-height: 1.15 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: clamp(2.4rem, 5vw, 3.5rem) !important;
        padding-left: 0;
        padding-right: 0;
    }

    body.landing-page .hero .main-heading {
        font-size: clamp(3.4rem, 8.5vw, 5rem) !important;
        letter-spacing: -0.08rem !important;
        line-height: 1.15 !important;
        margin-top: clamp(1.5rem, 4vw, 3rem) !important;
        padding-left: 0.15rem;
        padding-right: 0.15rem;
    }

    body.landing-page .hero .paragraph,
    body.landing-page .hero .paragraph.landing-hero__text {
        font-size: clamp(1.55rem, 3.8vw, 1.85rem) !important;
        line-height: 1.55 !important;
        margin: clamp(1.8rem, 4vw, 2.4rem) 0 clamp(2rem, 4vw, 2.6rem) !important;
        padding-left: 0.15rem;
        padding-right: 0.15rem;
    }

    body.landing-page .paragraph.dark,
    body.landing-page .feature__box--content .paragraph,
    body.landing-page .growth__box .content .paragraph,
    body.landing-page .step__box .content .paragraph,
    body.landing-page .questions .card-body .paragraph {
        font-size: clamp(1.45rem, 3.5vw, 1.65rem) !important;
        line-height: 1.5 !important;
    }

    /* Hero phone image */
    body.landing-page .hero .hero-img,
    body.landing-page .hero .landing-hero__phone-wrap {
        margin-top: clamp(1rem, 2.5vw, 1.75rem) !important;
    }

    body.landing-page .hero .hero-img img {
        max-width: min(100%, 28rem);
        height: auto;
    }

    /* Download buttons — slightly compact */
    body.landing-page .hero .download-buttons a {
        height: auto;
        min-height: 4.8rem;
        padding: 0.6rem 1.2rem;
    }

    body.landing-page .hero .download-buttons a .button-content h6 {
        font-size: 0.75rem;
    }

    body.landing-page .hero .download-buttons a .button-content span {
        font-size: 1.35rem;
    }

    /* Vendor block — match hero inset (wrapper already padded in inline styles) */
    body.landing-page .landing-hero__vendor-block {
        margin-top: 2.2rem;
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100%;
    }

    body.landing-page .landing-hero__vendor-card {
        padding: 1.2rem 1.25rem 1.1rem;
    }

    body.landing-page .landing-hero__vendor-card-title {
        font-size: 1.35rem;
    }

    body.landing-page .landing-hero__vendor-card-sub {
        font-size: 1.2rem;
        margin-bottom: 0.85rem;
    }

    body.landing-page .landing-hero__vendor-card-btn {
        font-size: 1.25rem;
        min-height: 3.1rem;
        width: 100%;
        min-width: 0;
    }

    /* Feature — single column, reset staggered offsets */
    body.landing-page section.feature {
        width: 100%;
        max-width: 100%;
        padding-top: 0;
        padding-bottom: 0;
        overflow-x: hidden;
    }

    body.landing-page .feature .feature__box,
    body.landing-page .feature .feature__box--1,
    body.landing-page .feature .feature__box--2,
    body.landing-page .feature .feature__box--3,
    body.landing-page .feature .feature__box--4 {
        margin-top: 2.4rem !important;
    }

    body.landing-page .feature .row > div:first-child .feature__box {
        margin-top: 0 !important;
    }

    body.landing-page .feature .feature__box .icon {
        width: clamp(9rem, 22vw, 13rem);
        height: clamp(9rem, 22vw, 13rem);
    }

    body.landing-page .feature .feature__box .icon i {
        font-size: clamp(2.8rem, 7vw, 4rem);
    }

    body.landing-page .feature .feature__box__wrapper {
        padding: clamp(1.8rem, 4vw, 2.4rem) clamp(1.4rem, 3.5vw, 2rem);
        margin-top: clamp(1.6rem, 3.5vw, 2.4rem);
    }

    body.landing-page .feature .feature__box--content h3 {
        font-size: clamp(1.7rem, 4vw, 2rem);
        margin-bottom: 0.8rem;
    }

    /* Growth — single column list feel */
    body.landing-page .growth .row > div {
        flex: 0 0 100%;
        max-width: 100%;
    }

    body.landing-page .growth .row > div:nth-child(n+2) {
        margin-top: 2.4rem;
    }

    body.landing-page .growth__box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    body.landing-page .growth__box .icon {
        width: clamp(7.5rem, 18vw, 9rem);
        height: clamp(7.5rem, 18vw, 9rem);
    }

    body.landing-page .growth__box .icon i {
        font-size: clamp(2.8rem, 6vw, 3.6rem);
    }

    body.landing-page .growth__box .content {
        width: 100%;
        margin-top: 1.6rem;
        padding: clamp(1.6rem, 3.5vw, 2.2rem) clamp(1.4rem, 3vw, 1.8rem);
        text-align: center;
    }

    body.landing-page .growth__box .content h3 {
        width: 100%;
        font-size: clamp(1.6rem, 3.8vw, 1.9rem);
        margin-bottom: 0.5rem;
    }

    body.landing-page .growth__box .content::before,
    body.landing-page .growth__box .content::after {
        display: none !important;
    }

    body.landing-page .growth .button__wrapper {
        margin-top: 2.4rem;
    }

    /* Steps — single column */
    body.landing-page .step .row > div {
        flex: 0 0 100%;
        max-width: 100%;
    }

    body.landing-page .step .row > div:nth-child(n+2) {
        margin-top: 3rem;
    }

    body.landing-page .step__box .image img {
        max-width: min(100%, 22rem);
        width: auto !important;
        transform: none !important;
    }

    body.landing-page .step__box .content {
        margin-top: 1.4rem;
    }

    body.landing-page .step__box .content h3 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    body.landing-page .step__box .content h3 span {
        font-size: clamp(2.4rem, 6vw, 3rem);
    }

    body.landing-page .step__box .content .paragraph {
        width: 100% !important;
        margin: 0 auto;
    }

    /* FAQ accordion */
    body.landing-page .questions .card .card-header h5,
    body.landing-page .questions .card .btn-link {
        font-size: clamp(1.45rem, 3.5vw, 1.65rem) !important;
        line-height: 1.4 !important;
    }

    /* Footer copy */
    body.landing-page .footer .footer__contact-title,
    body.landing-page .footer .footer__download-title {
        font-size: 1.35rem;
    }

    body.landing-page .footer .footer__contact-line {
        font-size: 1.35rem;
    }
}

@media (max-width: 575.98px) {
    body.landing-page section.hero.hero-2#hero .container,
    body.landing-page section.feature .container,
    body.landing-page .landing-section-outer > section.growth .container,
    body.landing-page .landing-section-outer > section.step .container,
    body.landing-page .landing-section-outer > section.questions .container,
    body.landing-page .landing-section-outer > section.screenshot .container,
    body.landing-page .landing-section-outer > footer.footer .container {
        padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
        padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
    }

    body.landing-page .hero .main-heading {
        font-size: clamp(3rem, 9vw, 3.8rem) !important;
    }

    body.landing-page .hero .paragraph {
        font-size: 1.5rem !important;
        line-height: 1.5 !important;
    }

    body.landing-page .section-heading {
        font-size: clamp(2.5rem, 7.5vw, 3.2rem) !important;
    }

    body.landing-page .feature .feature__box,
    body.landing-page .feature .feature__box--2,
    body.landing-page .feature .feature__box--4 {
        margin-top: 2rem !important;
    }

    body.landing-page .growth .row > div:nth-child(n+2),
    body.landing-page .step .row > div:nth-child(n+2) {
        margin-top: 2.2rem;
    }

    body.landing-page .landing-hero__vendor-divider-label {
        font-size: 1rem;
    }
}
