/* ============================================
   Conversion extras shared by landing-buyers and
   landing-sellers: secondary Google button, closing
   CTA block, and the mobile sticky CTA bar.
   Relies on the --gold / --ink / --slate tokens and
   .btn-primary defined in each page's own <style>.
   ============================================ */

/* --- "or" divider + Continue with Google (hero, dark background) --- */
.or-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 320px;
    margin: 0 auto 14px;
    font-size: 0.72rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.or-divider::before,
.or-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.22);
}

.btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 260px;
    padding: 14px 28px;
    background: #fff;
    color: #1f2937;
    border: none;
    border-radius: 6px;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.98rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    transition: background 0.2s ease;
}

.btn-google:hover {
    background: #f3f1ed;
}

.btn-google svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.google-note {
    max-width: 340px;
    margin: 10px auto 0;
    font-size: 0.7rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.55);
}

.google-note a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
}

.google-note a:hover {
    color: var(--gold);
}

/* The hero's "Already have an account?" line follows the note directly */
.google-note + .login-link {
    margin-top: 18px;
}

/* --- Closing CTA: the page used to end on the FAQ with nothing to click --- */
.final-cta {
    margin-top: 56px;
    padding: 40px 24px 36px;
    text-align: center;
    background: #fff;
    border: 1px solid rgba(160, 116, 53, 0.14);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(28, 26, 23, 0.04);
}

.final-cta h2 {
    margin-bottom: 22px;
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--slate);
}

/* Same components, light surface instead of the dark hero */
.final-cta .or-divider {
    color: var(--ink-45);
}

.final-cta .or-divider::before,
.final-cta .or-divider::after {
    background: rgba(160, 116, 53, 0.22);
}

.final-cta .btn-google {
    border: 1px solid #d9d4cc;
    box-shadow: none;
}

.final-cta .google-note {
    color: var(--ink-45);
}

.final-cta .google-note a {
    color: var(--ink-70);
}

/* --- Sticky CTA bar (mobile only; shown by landing-cta.js once the hero
       button has scrolled out of view) --- */
.sticky-cta {
    display: none;
}

@media (max-width: 768px) {
    .final-cta {
        margin-top: 44px;
        padding: 32px 18px 28px;
    }

    .final-cta h2 {
        font-size: 1.4rem;
    }

    /* The hero's 46px side padding makes longer labels wrap inside the card */
    .final-cta .btn-primary {
        padding-left: 16px;
        padding-right: 16px;
    }

    .btn-google {
        width: 100%;
    }

    .sticky-cta {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 997;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
        background: rgba(10, 9, 8, 0.96);
        border-top: 1px solid rgba(160, 116, 53, 0.35);
        transform: translateY(100%);
        visibility: hidden;
        transition: transform 0.25s ease, visibility 0s linear 0.25s;
    }

    .sticky-cta.visible {
        transform: translateY(0);
        visibility: visible;
        transition: transform 0.25s ease;
    }

    .sticky-cta .btn-primary {
        display: block;
        width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
        box-shadow: none;
    }

    /* Keep the footer text clear of the bar, and lift the WhatsApp button
       and its bubble above it while the bar is showing. */
    .footer-strip {
        padding-bottom: 84px;
    }

    body.sticky-cta-visible .wa-chat-btn {
        bottom: 88px;
        transition: transform 0.25s ease, box-shadow 0.25s ease, bottom 0.25s ease;
    }

    body.sticky-cta-visible .wa-bubble {
        bottom: 98px;
    }
}

@media (max-width: 576px) {
    body.sticky-cta-visible .wa-bubble {
        bottom: 150px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sticky-cta,
    .sticky-cta.visible,
    body.sticky-cta-visible .wa-chat-btn {
        transition: none;
    }
}
