/*
 * Dedicated landing pages (inc/landing-pages.php).
 * Loaded after css/real_estate_promotion.css, which provides the hero,
 * section, steps, FAQ, CTA and Google button styles. Only the blocks that
 * exist solely on landing pages are styled here.
 */

/* Hero: gradient instead of a photo, so no image asset is needed per page. */
.template-landing .hero-section .hero_bg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1700px;
    height: 100%;
    border-radius: 5px;
    z-index: 1;
    background:
        radial-gradient(60% 80% at 85% 20%, rgba(0, 66, 255, 0.55) 0%, rgba(0, 66, 255, 0) 70%),
        radial-gradient(50% 60% at 10% 90%, rgba(0, 200, 255, 0.25) 0%, rgba(0, 200, 255, 0) 70%),
        linear-gradient(160deg, #0B1220 0%, #0F1F4A 55%, #12285F 100%);
}

.template-landing .hero-section .hero_shade {
    background: linear-gradient(90deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.08) 50%, rgba(0,0,0,0) 100%);
}

.template-landing .hero-section .inner .inner_wrapper .video_wrapper .video {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.template-landing .hero-section .inner h2 {
    max-width: 600px;
}

/*
 * Hero video experiment (views_hero_video): variant b is a silent auto-playing
 * loop; a tap anywhere on it swaps in the full explainer with sound. The play
 * badge is hidden on the loop and comes back with the poster when the visitor
 * prefers reduced motion (.is-static, also enforced by the media query below).
 */
.template-landing .hero-section .video--loop .lp_loop {
    display: block;
    object-fit: cover;
    background: #0f1f4a;
}

.template-landing .hero-section .video--loop .lp_explainer,
.template-landing .hero-section .video--loop .lp_explainer[hidden] {
    display: none;
}

.template-landing .hero-section .video--loop .video_overlay .play,
.template-landing .hero-section .video--loop .video_overlay .duration {
    display: none;
}

.template-landing .hero-section .video--loop.is-playing .lp_loop,
.template-landing .hero-section .video--loop.is-static .lp_loop {
    display: none;
}

.template-landing .hero-section .video--loop.is-playing .lp_explainer,
.template-landing .hero-section .video--loop.is-static .lp_explainer {
    display: block;
}

.template-landing .hero-section .video--loop.is-static .video_overlay .play {
    display: flex;
}

.template-landing .hero-section .video--loop.is-static .video_overlay .duration {
    display: block;
}

@media (prefers-reduced-motion: reduce) {
    .template-landing .hero-section .video--loop .lp_loop {
        display: none;
    }

    .template-landing .hero-section .video--loop .lp_explainer {
        display: block;
    }

    .template-landing .hero-section .video--loop .video_overlay .play {
        display: flex;
    }

    .template-landing .hero-section .video--loop .video_overlay .duration {
        display: block;
    }
}

/* Three short points under the CTA (price, mechanism, guarantee). */
.template-landing .hero_points {
    list-style: none;
    margin: 22px 0 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
    text-align: left;
}

.template-landing .hero_points li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #FFFFFF;
    font-family: "Founders Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 400;
}

.template-landing .hero_points .lp_icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    color: #7FFFC1;
}

/* Guarantee links inside hero points and checklist cells keep the cell colour. */
.template-landing .hero_points a,
.template-landing .checklist_row .b a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.template-landing .hero-section .inner .reviews {
    margin-top: 26px;
}

/* Proof strip right under the hero. */
.template-landing .section-proof {
    margin-top: 54px;
    text-align: center;
}

.template-landing .section-proof .proof_intro {
    color: #3B3B3B;
    font-size: 20px;
    font-weight: 300;
    letter-spacing: -0.3px;
    margin: 0 0 18px 0;
}

.template-landing .proof_tiles {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.template-landing .proof_tiles li {
    border: 1px solid #E6E9F2;
    border-radius: 10px;
    background: #FFFFFF;
    padding: 22px 20px 20px 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.template-landing .proof_tiles strong {
    display: block;
    color: #0042FF;
    font-family: "Founders Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1;
}

.template-landing .proof_tiles span {
    color: #414141;
    font-size: 17px;
    line-height: 1.3;
    font-weight: 300;
    letter-spacing: -0.2px;
}

/* Benefit cards with an inline icon instead of a PNG. */
.template-landing .benefit-icon {
    padding: 24px 17px 20px 17px;
}

.template-landing .benefit_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #EAF0FF;
    color: #0042FF;
    margin-left: 10px;
}

.template-landing .benefit_icon .lp_icon {
    width: 28px;
    height: 28px;
}

/* Checklist: question / usual answer / Sprizzy. */
.template-landing .section-checklist .text_wrapper .h2_text {
    max-width: 720px;
}

.template-landing .checklist {
    margin: 44px auto 0 auto;
    max-width: 1100px;
}

.template-landing .checklist_row {
    display: grid;
    grid-template-columns: 1.05fr 1fr 1.15fr;
    gap: 24px;
    padding: 22px 0;
    border-bottom: 1px solid #E6E9F2;
    align-items: start;
}

.template-landing .checklist_head {
    padding: 0 0 12px 0;
    border-bottom: 2px solid #0042FF;
}

.template-landing .checklist_head > div {
    color: #6B6F7B;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.template-landing .checklist_row .q {
    color: #000000;
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.4px;
    line-height: 1.25;
}

.template-landing .checklist_row .a {
    color: #4A4A4A;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.35;
    letter-spacing: -0.2px;
}

.template-landing .checklist_row .b {
    color: #0B2A7A;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: -0.2px;
    background: #F3F6FF;
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.template-landing .checklist_row .b .lp_icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    color: #0042FF;
    margin-top: 2px;
}

.template-landing .checklist_head .b {
    background: none;
    padding: 0;
    color: #6B6F7B;
}

.template-landing .cell_label {
    display: none;
}

/* FAQ answers are plain paragraphs here (no ACF content filters). */
.template-landing .section-faq .faq .bottom p {
    color: #414141;
    font-size: 18px;
    line-height: 1.45;
    font-weight: 300;
}

.template-landing .section-faq .faq .bottom a {
    color: #0042FF;
    text-decoration: underline;
}

.template-landing .breadcrumbs_nav {
    margin-top: 90px;
}

@media screen and (max-width: 1050px) {
    .template-landing .proof_tiles strong {
        font-size: 34px;
    }
}

@media screen and (max-width: 980px) {
    .template-landing .checklist_row {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 20px 0;
    }

    .template-landing .checklist_head {
        display: none;
    }

    .template-landing .cell_label {
        display: block;
        color: #6B6F7B;
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        margin-bottom: 4px;
    }

    .template-landing .checklist_row .b .cell_label {
        flex-basis: 100%;
        margin-bottom: 0;
    }

    .template-landing .checklist_row .b {
        flex-wrap: wrap;
    }
}

@media screen and (max-width: 780px) {
    .template-landing .proof_tiles {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .template-landing .proof_tiles li {
        padding: 18px 16px;
    }

    .template-landing .proof_tiles strong {
        font-size: 32px;
    }

    .template-landing .proof_tiles span {
        font-size: 15px;
    }

    .template-landing .hero_points li {
        font-size: 16px;
    }
}

@media screen and (max-width: 540px) {
    .template-landing .section-proof {
        margin-top: 40px;
    }

    .template-landing .checklist_row .q {
        font-size: 19px;
    }

    .template-landing .checklist_row .a,
    .template-landing .checklist_row .b {
        font-size: 16px;
    }
}

/*
 * Mobile first screen (<= 767px). The rule: a visual, a headline of at most
 * two lines, a one sentence subhead and the CTA all inside the first screen,
 * with the headline starting in the top quarter. The hero markup stays the
 * same (inc/landing-pages.php); .left becomes display: contents so its
 * children and .video_wrapper share one column and the explainer poster with
 * its play badge can sit directly above the CTA. Desktop keeps the two
 * column layout from css/real_estate_promotion.css.
 */
@media screen and (max-width: 767px) {
    .template-landing .hero-section .inner {
        padding-top: 110px;
    }

    .template-landing .hero-section .inner .inner_wrapper {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .template-landing .hero-section .inner .inner_wrapper .left {
        display: contents;
    }

    /* Everything from the CTA down follows the video. */
    .template-landing .hero-section .inner .inner_wrapper .left > .google-button-wrap,
    .template-landing .hero-section .inner .inner_wrapper .left > .google-button-wrap ~ * {
        order: 2;
    }

    .template-landing .hero-section .inner .inner_wrapper .video_wrapper {
        order: 1;
        width: 100%;
        margin: 2px 0 20px 0;
    }

    .template-landing .hero-section .inner h2 {
        font-size: 36px;
        line-height: 1.04;
        letter-spacing: -0.8px;
        margin: 0 0 10px 0;
    }

    .template-landing .hero-section .inner .title_text {
        font-size: 18px;
        line-height: 1.35;
        margin: 0 0 18px 0;
    }

    .template-landing .hero-section .video_overlay .play {
        width: 70px;
        height: 70px;
    }

    .template-landing .hero-section .inner .continue_with_email {
        margin-top: 10px;
    }

    .template-landing .hero_points {
        margin-top: 18px;
        gap: 8px;
    }

    .template-landing .hero_points li {
        font-size: 16px;
    }

    .template-landing .hero-section .inner .reviews {
        margin-top: 18px;
        padding-top: 0;
    }
}
