/**
 * Landing page — full-bleed gradient separators via .landing-section-outer + .landing-separator.
 * Scoped to body.landing-page.
 */

body.landing-page {
    --landing-separator-gradient: linear-gradient(
        90deg,
        transparent 0%,
        rgba(200, 170, 190, 0.35) 15%,
        rgba(242, 2, 107, 0.22) 50%,
        rgba(147, 65, 212, 0.18) 72%,
        rgba(200, 170, 190, 0.35) 85%,
        transparent 100%
    );
    --landing-separator-height: clamp(2px, 0.32vw, 3.5px);
}

/* Outer wrapper: separator + section/footer */
body.landing-page .landing-section-outer {
    position: relative;
    width: 100%;
    overflow-x: hidden;
}

/* Full viewport width bar (same gradient as before, thicker) */
body.landing-page .landing-separator {
    display: block;
    width: 100vw;
    height: var(--landing-separator-height);
    margin: 0;
    margin-left: calc(50% - 50vw);
    max-width: none;
    border: 0;
    padding: 0;
    background: var(--landing-separator-gradient);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    flex-shrink: 0;
    pointer-events: none;
}

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

body.landing-page > section.hero {
    padding-bottom: clamp(6rem, 10vw, 11rem);
}

body.landing-page .landing-section-outer > section .container,
body.landing-page .landing-section-outer > footer.footer .container {
    padding-top: 0.25rem;
}

/* Landing hero app buttons: warm gradient pair */
body.landing-page .hero .download-buttons a.google-play {
    background: linear-gradient(0deg, #1fa463 0%, #45d27d 50%, #1fa463 100%);
    filter: drop-shadow(0 10px 10px rgba(31, 164, 99, 0.35));
    -webkit-filter: drop-shadow(0 10px 10px rgba(31, 164, 99, 0.35));
}

body.landing-page .hero .download-buttons a.apple-store {
    background: linear-gradient(0deg, #1369ec 0%, #65bef4 50%, #1369ec 100%);
    filter: drop-shadow(0 10px 10px rgba(33, 120, 237, 0.4));
    -webkit-filter: drop-shadow(0 10px 10px rgba(33, 120, 237, 0.4));
}

/* Footer — couples + vendor store buttons (compact; landing only) */
body.landing-page .footer .footer__downloads--landing {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem 4.5rem;
    justify-content: flex-end;
    align-items: flex-start;
    margin-right: 0;
    max-width: 100%;
}

body.landing-page .footer .footer__download-block {
    min-width: 0;
}

body.landing-page .footer .footer__download-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 1.2rem;
    letter-spacing: -0.02em;
}

body.landing-page .footer .download-buttons--footer-compact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

body.landing-page .footer .download-buttons--footer-compact a {
    width: 100%;
    max-width: 17.5rem;
    height: 5.4rem;
    min-height: 0;
    border-radius: 3.4rem;
    padding: 0 1.6rem;
    box-sizing: border-box;
}

body.landing-page .footer .download-buttons--footer-compact a:last-child {
    margin-top: 0.7rem;
}

body.landing-page .footer .download-buttons--footer-compact a i {
    font-size: 1.7rem;
}

body.landing-page .footer .download-buttons--footer-compact .button-content {
    margin-left: 0.9rem;
}

body.landing-page .footer .download-buttons--footer-compact .button-content h6 {
    font-size: 0.8rem;
    letter-spacing: 0.06em;
}

body.landing-page .footer .download-buttons--footer-compact .button-content span {
    font-size: 1.4rem;
    margin-top: 0.05rem;
}

/* Landing footer app buttons: same OS colors as global format */
body.landing-page .footer .download-buttons--footer-compact a.google-play {
    background: linear-gradient(0deg, #1fa463 0%, #45d27d 50%, #1fa463 100%);
    filter: drop-shadow(0 10px 10px rgba(31, 164, 99, 0.35));
    -webkit-filter: drop-shadow(0 10px 10px rgba(31, 164, 99, 0.35));
}

body.landing-page .footer .download-buttons--footer-compact a.apple-store {
    background: linear-gradient(0deg, #1369ec 0%, #65bef4 50%, #1369ec 100%);
    filter: drop-shadow(0 10px 10px rgba(33, 120, 237, 0.4));
    -webkit-filter: drop-shadow(0 10px 10px rgba(33, 120, 237, 0.4));
}

/* -------------------------------------------------------------------------
   Mobile: horizontal padding (no growth__/questions__ wrappers on landing),
   centered step images, centered footer — avoids 100vw overflow + edge hugging
   ------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    body.landing-page section.growth,
    body.landing-page section.step,
    body.landing-page section.questions,
    body.landing-page section.screenshot {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    body.landing-page .landing-section-outer > section.growth .container,
    body.landing-page .landing-section-outer > section.questions .container {
        padding-left: max(1.6rem, env(safe-area-inset-left, 0px));
        padding-right: max(1.6rem, env(safe-area-inset-right, 0px));
    }

    /* FAQ: extra horizontal inset (accordion was flush; +/- sits at left: -1.2rem in theme) */
    body.landing-page .landing-section-outer > section.questions .container {
        padding-left: max(2.25rem, env(safe-area-inset-left, 0px));
        padding-right: max(2.25rem, env(safe-area-inset-right, 0px));
    }

    body.landing-page .landing-section-outer > section.step .container {
        padding-left: max(1.6rem, env(safe-area-inset-left, 0px));
        padding-right: max(1.6rem, env(safe-area-inset-right, 0px));
    }

    body.landing-page .growth .growth__box .icon {
        margin-left: auto;
        margin-right: auto;
    }

    body.landing-page .growth .button__wrapper {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    body.landing-page .growth .section-heading {
        width: 100%;
        max-width: 100%;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        box-sizing: border-box;
    }

    body.landing-page .questions .section-heading {
        width: 100%;
        max-width: 100%;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        box-sizing: border-box;
    }

    body.landing-page .questions #accordion {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        box-sizing: border-box;
    }

    body.landing-page .questions .card .card-header h5 {
        position: relative;
        padding-left: 2.8rem;
    }

    body.landing-page .questions .card .card-header h5::before {
        left: 0;
    }

    body.landing-page .questions .card .card-body {
        margin-left: 0.25rem;
        margin-right: 0.25rem;
        padding-left: clamp(1.8rem, 4vw, 3rem) !important;
        padding-right: clamp(1.8rem, 4vw, 3rem) !important;
    }

    body.landing-page .questions .card .card-body::before {
        left: clamp(2rem, 5vw, 5rem);
    }

    /* Plan your wedding — center phone art (was drifting right) */
    body.landing-page .step .step__box .image {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    body.landing-page .step .step__box .image img {
        display: block;
        margin-left: auto !important;
        margin-right: auto !important;
        max-width: 100%;
        width: auto !important;
    }

    /* “Have a look” / screenshot carousel — center slides (theme uses 100vw + negative margin) */
    body.landing-page .landing-section-outer > section.screenshot .container {
        padding-left: max(1.6rem, env(safe-area-inset-left, 0px));
        padding-right: max(1.6rem, env(safe-area-inset-right, 0px));
    }

    body.landing-page .screenshot .screenshot-slider {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100%;
        box-sizing: border-box;
    }

    body.landing-page .screenshot .screenshot__info {
        justify-content: center;
        text-align: center;
        gap: 2rem;
    }

    body.landing-page .screenshot .screenshot__info .section-heading {
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    body.landing-page .screenshot .screenshot-nav {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    body.landing-page .screenshot .screenshot-nav-next {
        margin-left: 0;
    }

    body.landing-page .screenshot .swiper-slide.screenshot-slide {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    body.landing-page .screenshot .screenshot-slide img {
        display: block;
        margin-left: auto;
        margin-right: auto;
        max-width: min(100%, 34rem);
        width: auto;
        height: auto;
        transform-origin: center center;
    }

    body.landing-page .questions .questions-img {
        text-align: center;
        display: flex;
        justify-content: center;
    }

    body.landing-page .questions .questions-img img {
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    /* Footer — theme centers via .footer__wrapper; landing has no wrapper */
    body.landing-page .footer .footer__info,
    body.landing-page .footer .footer__info--content,
    body.landing-page .footer .footer__list,
    body.landing-page .footer .footer__list ul {
        text-align: center;
    }

    body.landing-page .footer .footer__list ul {
        padding-left: 0;
    }

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

    body.landing-page .footer .footer__info--content .paragraph {
        margin-left: auto;
        margin-right: auto;
    }

    body.landing-page .footer .footer__downloads--landing {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 2.5rem;
    }

    body.landing-page .footer .footer__download-block {
        width: 100%;
        max-width: 22rem;
        margin-left: auto;
        margin-right: auto;
    }

    body.landing-page .footer .download-buttons--footer-compact {
        align-items: center;
    }

    body.landing-page .footer .download-buttons--footer-compact a {
        margin-left: auto;
        margin-right: auto;
    }

    body.landing-page .footer .footer__copy {
        text-align: center;
        width: 100%;
    }

    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));
    }
}

@media (max-width: 575.98px) {
    body.landing-page .landing-section-outer > section.growth .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 .landing-section-outer > section.questions .container {
        padding-left: max(2rem, env(safe-area-inset-left, 0px));
        padding-right: max(2rem, env(safe-area-inset-right, 0px));
    }

    body.landing-page .questions #accordion {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* “Everything you need” — smaller circular icons + glyphs on mobile (landing only) */
@media (max-width: 991.98px) {
    body.landing-page .feature .feature__box .icon {
        width: clamp(11rem, 28vw, 17rem);
        height: clamp(11rem, 28vw, 17rem);
    }

    body.landing-page .feature .feature__box .icon i {
        font-size: clamp(3.4rem, 8.5vw, 5rem);
    }

    body.landing-page .feature .feature__box__wrapper {
        padding-top: clamp(2.8rem, 5vw, 4.5rem);
        margin-top: clamp(2rem, 4vw, 3.5rem);
    }

    body.landing-page .feature .feature__box .icon-1,
    body.landing-page .feature .feature__box .icon-2,
    body.landing-page .feature .feature__box .icon-3,
    body.landing-page .feature .feature__box .icon-4 {
        filter: drop-shadow(0 12px 14px rgba(75, 75, 90, 0.2));
        -webkit-filter: drop-shadow(0 12px 14px rgba(75, 75, 90, 0.2));
    }
}

@media (max-width: 575.98px) {
    body.landing-page .feature .feature__box .icon {
        width: clamp(9rem, 24vw, 12.5rem);
        height: clamp(9rem, 24vw, 12.5rem);
    }

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

    body.landing-page .feature .feature__box__wrapper {
        padding-top: clamp(2.2rem, 4vw, 3.5rem);
        margin-top: clamp(1.8rem, 3.5vw, 2.8rem);
    }
}
