/* ═══════════════════════════════════════════════════════════════════
   LOCALI BUILDERS - Mobile-First Overlay
   Loaded AFTER main.css. Fixes global mobile issues without
   touching the 3210-line legacy stylesheet.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Tokens: dramatically smaller on mobile, scale up ───────────── */
:root {
    --lc-section-gap: clamp(48px, 9vw, 120px);
    --lc-section-gap-tight: clamp(32px, 6vw, 80px);
    --lc-wrap-pad: clamp(16px, 4vw, 32px);
    --lc-stack-gap: clamp(16px, 3vw, 32px);
    --tap-min: 44px;
}

/* ── Reset overflow hazards ─────────────────────────────────────── */
html, body { overflow-x: hidden; max-width: 100vw; }
img, video, iframe, svg { max-width: 100%; height: auto; }

/* ── Wrapper: fluid padding instead of fixed 20px ──────────────── */
.lc-wrapper { padding-left: var(--lc-wrap-pad); padding-right: var(--lc-wrap-pad); }

/* ── Sections: cut vertical waste on mobile ─────────────────────── */
.lc-section { padding-top: var(--lc-section-gap); padding-bottom: var(--lc-section-gap); }

/* ── Touch targets ───────────────────────────────────────────────── */
.lc-btn,
.lc-header__ai-btn,
.lc-mega__phone,
.lc-link-arrow,
.lc-announce__close,
.lc-mobile-nav__close,
.lc-mobile-nav__toggle {
    min-height: var(--tap-min);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.lc-hamburger,
.lc-mobile-nav__close,
.lc-announce__close { min-width: var(--tap-min); }

/* ── Forms: 16px font prevents iOS auto-zoom ───────────────────── */
input, textarea, select {
    font-size: 16px !important;
    min-height: 48px;
}
textarea { min-height: 96px; }
button[type="submit"], .lc-btn[type="submit"] {
    min-height: var(--tap-min);
    font-size: 15px;
}

/* ═══════════════════════════════════════════════════════════════════
   HEADER & NAVIGATION
   ═══════════════════════════════════════════════════════════════════ */

/* Mobile (< 1024px): show hamburger, hide desktop nav + actions */
@media (max-width: 1023px) {
    .lc-header { padding: 12px 0; }
    .lc-header__logo { height: 38px !important; }
    .lc-nav { display: none; }
    .lc-header__actions { display: none; }
    .lc-hamburger {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        margin-left: auto;
        padding: 10px;
        background: transparent;
        border: 0;
        cursor: pointer;
    }
    .lc-hamburger span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--text-primary);
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
    .lc-header--transparent .lc-hamburger span { background: #fff; }
    .lc-header.lc-header--scrolled .lc-hamburger span { background: var(--text-primary); }
    .lc-header__inner { gap: 12px; }
    .lc-header__brand { margin-right: auto; }
}

/* Desktop (>= 1024px): hide hamburger + mobile-nav, show desktop chrome */
@media (min-width: 1024px) {
    .lc-hamburger { display: none !important; }
    .lc-mobile-nav, .lc-mobile-nav__overlay { display: none !important; }
}

/* Mobile Nav: full-screen drawer */
.lc-mobile-nav {
    position: fixed;
    top: 0; right: 0;
    width: min(360px, 88vw);
    height: 100vh;
    height: 100dvh;
    background: #fff;
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: -10px 0 40px rgba(0,0,0,0.15);
}
.lc-mobile-nav.lc-mobile-nav--open,
.lc-mobile-nav.is-open { transform: translateX(0); }
.lc-mobile-nav__overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.lc-mobile-nav__overlay.lc-mobile-nav__overlay--visible,
.lc-mobile-nav__overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}
.lc-mobile-nav__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-light);
    flex-shrink: 0;
}
.lc-mobile-nav__close {
    background: transparent; border: 0;
    font-size: 30px; line-height: 1;
    color: var(--text-primary);
    padding: 4px 10px;
    cursor: pointer;
}
.lc-mobile-nav__body { padding: 14px 0; flex: 1; }
.lc-mobile-nav__list {
    list-style: none; margin: 0; padding: 0;
}
.lc-mobile-nav__list li a,
.lc-mobile-nav__submenu li a {
    display: flex; align-items: center;
    padding: 14px 22px;
    font-size: 17px;
    font-weight: 500;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(0,0,0,0.04);
    min-height: var(--tap-min);
}
.lc-mobile-nav__list li a:hover,
.lc-mobile-nav__list li.current-menu-item > a { color: var(--green-primary); background: var(--bg-secondary); }
.lc-mobile-nav__toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 22px;
    font-size: 17px;
    font-weight: 500;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    color: var(--text-primary);
    cursor: pointer;
}
.lc-mobile-nav__toggle i { transition: transform 0.3s ease; }
.lc-mobile-nav__toggle[aria-expanded="true"] i,
.lc-mobile-nav__toggle.lc-mobile-nav__toggle--open i { transform: rotate(180deg); }
.lc-mobile-nav__submenu {
    list-style: none; margin: 0; padding: 0;
    max-height: 0; overflow: hidden;
    transition: max-height 0.4s ease;
    background: var(--bg-secondary);
}
.lc-mobile-nav__submenu.lc-mobile-nav__submenu--open,
.lc-mobile-nav__submenu.is-open { max-height: 1200px; }
.lc-mobile-nav__submenu li a { padding-left: 38px; font-size: 15px; }
.lc-mobile-nav__all-services { color: var(--green-primary) !important; font-weight: 600; }
.lc-mobile-nav__footer {
    padding: 18px 22px;
    border-top: 1px solid var(--border-light);
    display: flex; flex-direction: column; gap: 10px;
    flex-shrink: 0;
    background: #fff;
}
.lc-mobile-nav__footer .lc-btn { width: 100%; justify-content: center; }
body.lc-nav-open { overflow: hidden; }

/* ═══════════════════════════════════════════════════════════════════
   HERO (front-page + LP heros)
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
    .lc-hero { min-height: auto; padding: 88px 0 56px; }
    .lc-hero__grid {
        display: flex !important;
        flex-direction: column;
        gap: 28px;
    }
    .lc-hero__grid-left, .lc-hero__grid-right { width: 100%; }
    .lc-hero__title {
        font-size: clamp(2rem, 8vw, 2.6rem) !important;
        line-height: 1.15;
    }
    .lc-hero__subtitle {
        font-size: 16px !important;
        line-height: 1.55;
    }
    .lc-hero__ctas {
        display: flex; flex-direction: column; gap: 12px;
    }
    .lc-hero__ctas .lc-btn { width: 100%; }
    .lc-hero__phone-line { font-size: 15px; text-align: center; }
    .lc-hero__form-card {
        padding: 22px 18px !important;
        border-radius: 12px;
    }
    .lc-trust-pills {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .lc-trust-pill {
        padding: 10px 12px !important;
        font-size: 12px;
    }
    .lc-trust-pill strong { font-size: 13px; }
    .lc-trust-pill span { font-size: 11px; }
    .lc-trust-pill i { font-size: 14px; }
}

/* ═══════════════════════════════════════════════════════════════════
   GRIDS — force single column mobile, scale up
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
    .lc-services-grid,
    .lc-projects-grid,
    .lc-blog-grid,
    .lc-team-grid,
    .lc-testimonials-grid,
    .lc-features-grid,
    .lc-stats-grid,
    .lc-gallery-grid,
    .lc-process-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: var(--lc-stack-gap) !important;
    }

    /* Stats counter: 2 cols not 4 */
    .lc-stats-counter,
    .lc-stats-row {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 14px !important;
    }

    /* Trust badges: 2 cols */
    .lc-trust-badges {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .lc-services-grid,
    .lc-projects-grid,
    .lc-blog-grid,
    .lc-team-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 24px;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   SECTION HEADERS — tighter mobile
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
    .lc-section__header { margin-bottom: 28px; padding: 0 4px; }
    .lc-section__header h2 {
        font-size: clamp(1.5rem, 6vw, 2rem) !important;
        line-height: 1.2;
    }
    .lc-section__header p { font-size: 15px !important; line-height: 1.55; }
    .lc-label { font-size: 10px; letter-spacing: 3px; margin-bottom: 12px; }
}

/* ═══════════════════════════════════════════════════════════════════
   FOOTER — stacked mobile
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
    .lc-footer { padding: 48px 0 24px; }
    .lc-footer__grid,
    .lc-footer__cols,
    .lc-footer__inner {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }
    .lc-footer__col h4 { font-size: 15px; margin-bottom: 12px; }
    .lc-footer__col ul li a { padding: 8px 0; display: block; min-height: var(--tap-min); }
    .lc-footer__bottom {
        flex-direction: column !important;
        gap: 16px;
        text-align: center;
        padding-top: 24px;
    }
    .lc-footer__social { justify-content: center; gap: 14px; }
    .lc-footer__social a {
        min-width: var(--tap-min);
        min-height: var(--tap-min);
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   GALLERY STRIP — mobile-friendly
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
    .lc-gallery-strip { padding: 24px 0; }
    .lc-gallery-strip__track img {
        height: 140px !important;
        width: auto !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   ANNOUNCE BAR
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
    .lc-announce {
        padding: 8px 36px 8px 12px;
        font-size: 12px;
        line-height: 1.4;
    }
    .lc-announce__close { right: 8px; padding: 6px 10px; }
}

/* ═══════════════════════════════════════════════════════════════════
   FORMS (inline + cards) — single column mobile
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
    .lc-lead-form .lc-form-row,
    .lc-form,
    .lead-form,
    form .form-row,
    form .form-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .lc-form-group { width: 100%; }
    .lc-form-group label {
        font-size: 13px;
        font-weight: 600;
        margin-bottom: 6px;
        display: block;
    }
    .lc-form-group label span { color: #c44; }
    .lc-form-radios {
        display: flex !important;
        flex-direction: column;
        gap: 10px;
    }
    .lc-form-radios label {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 12px;
        border: 1px solid var(--border-light);
        min-height: var(--tap-min);
        cursor: pointer;
    }
    .lc-form-submit,
    .lc-lead-form button[type="submit"] {
        width: 100% !important;
        margin-top: 8px;
    }
    .lc-form-privacy {
        font-size: 11.5px;
        line-height: 1.4;
        color: var(--text-light);
        margin-top: 12px;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
    .lc-cta { padding: var(--lc-section-gap-tight) 0; text-align: center; }
    .lc-cta h2 {
        font-size: clamp(1.6rem, 6vw, 2.2rem) !important;
        margin-bottom: 12px;
    }
    .lc-cta p { font-size: 15px; }
    .lc-cta__buttons,
    .lc-cta__ctas {
        display: flex !important;
        flex-direction: column;
        gap: 12px;
        margin-top: 24px;
    }
    .lc-cta__buttons .lc-btn,
    .lc-cta__ctas .lc-btn { width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════════
   STICKY MOBILE CTA BAR (.lc-mobile-bar — already exists in footer.php)
   ═══════════════════════════════════════════════════════════════════ */

.lc-mobile-bar { display: none; }

@media (max-width: 767px) {
    .lc-mobile-bar {
        display: flex !important;
        position: fixed;
        left: 0; right: 0; bottom: 0;
        z-index: 990;
        background: #fff;
        border-top: 1px solid var(--border-light);
        box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
        padding: 8px 8px env(safe-area-inset-bottom, 8px);
        gap: 6px;
    }
    .lc-mobile-bar__btn {
        flex: 1;
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        min-height: 56px;
        padding: 8px 4px;
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--text-primary);
        background: transparent;
        text-align: center;
        line-height: 1.1;
    }
    .lc-mobile-bar__btn i {
        font-size: 18px;
        color: var(--green-primary);
    }
    .lc-mobile-bar__btn--call i { color: var(--green-primary); }
    .lc-mobile-bar__btn--ai i { color: var(--lc-accent); }
    .lc-mobile-bar__btn--quote {
        background: var(--green-primary);
        color: #fff;
        border-radius: 4px;
    }
    .lc-mobile-bar__btn--quote i { color: #fff; }
    body { padding-bottom: 72px; }
    /* Push back-top above mobile bar */
    .lc-back-top { bottom: 84px !important; }
}

/* ═══════════════════════════════════════════════════════════════════
   MODALS / POPUPS — full-screen on mobile
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
    .lc-popup__content,
    .lc-modal,
    .lp-ai-modal,
    .vizFlowPopup,
    .locali-ai-designer-modal {
        padding: 0 !important;
    }
    .lc-popup__content {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-height: 100vh !important;
        max-height: 100dvh !important;
        border-radius: 0 !important;
        margin: 0 !important;
        padding: 60px 18px 90px !important;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .lc-popup__close {
        position: fixed !important;
        top: 12px; right: 12px;
        min-width: var(--tap-min);
        min-height: var(--tap-min);
        background: rgba(255,255,255,0.95);
        border-radius: 50%;
        font-size: 26px;
        z-index: 10;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    .lc-modal__inner,
    .lp-ai-modal__inner,
    .vizFlowPopup__inner,
    .locali-ai-designer-modal__inner {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-height: 100vh !important;
        max-height: 100dvh !important;
        border-radius: 0 !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column;
        overflow: hidden;
    }
    .lc-modal__header,
    .lp-ai-modal__header,
    .vizFlowPopup__header {
        position: sticky;
        top: 0;
        background: #fff;
        z-index: 5;
        padding: 14px 18px;
        border-bottom: 1px solid var(--border-light);
        flex-shrink: 0;
    }
    .lc-modal__body,
    .lp-ai-modal__body,
    .vizFlowPopup__body {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 18px;
    }
    .lc-modal__footer,
    .lp-ai-modal__footer,
    .vizFlowPopup__footer {
        position: sticky;
        bottom: 0;
        background: #fff;
        padding: 12px 18px env(safe-area-inset-bottom, 12px);
        border-top: 1px solid var(--border-light);
        flex-shrink: 0;
    }
    .lc-modal__close,
    .lp-ai-modal__close,
    .vizFlowPopup__close {
        min-width: var(--tap-min);
        min-height: var(--tap-min);
        font-size: 26px;
    }
    body.lc-modal-open,
    body.lc-popup-open { overflow: hidden; }
}

/* ═══════════════════════════════════════════════════════════════════
   BREADCRUMBS
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {
    .lc-breadcrumbs,
    .lc-breadcrumb {
        font-size: 12px !important;
        padding: 8px var(--lc-wrap-pad) !important;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   IMAGES — prevent layout shift
   ═══════════════════════════════════════════════════════════════════ */

img[loading="lazy"] { background: var(--bg-secondary); }

/* ═══════════════════════════════════════════════════════════════════
   ACCESSIBILITY: focus visible
   ═══════════════════════════════════════════════════════════════════ */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--green-primary);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ═══════════════════════════════════════════════════════════════════
   PHASE 3 — STANDARD PAGES (About / Services / Projects / Contact / 404 / Search)
   ═══════════════════════════════════════════════════════════════════ */

/* Page hero (used on non-front pages) */
@media (max-width: 767px) {
    .lc-page-hero {
        padding: 96px 0 40px !important;
        text-align: center;
    }
    .lc-page-hero h1 {
        font-size: clamp(1.8rem, 7vw, 2.4rem) !important;
        line-height: 1.2;
    }
    .lc-page-hero__sub,
    .lc-page-hero p {
        font-size: 15px !important;
        max-width: 100%;
    }
    .lc-page-hero--sm { padding: 88px 0 32px !important; }
}

/* About: split layouts + values/why grids */
@media (max-width: 767px) {
    .lc-split,
    .lc-split__inner {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px !important;
    }
    .lc-split__media,
    .lc-split__content { width: 100%; }
    .lc-split__media img { width: 100%; height: auto; }

    .lc-values-grid,
    .lc-why-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .lc-value-card,
    .lc-why-card {
        padding: 22px 18px !important;
    }
    .lc-value-card__icon,
    .lc-why-card__icon {
        font-size: 28px !important;
        margin-bottom: 12px;
    }
}

/* Services page */
@media (max-width: 767px) {
    .lc-services-page-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }
    .lc-service-page-card { padding: 0; }
    .lc-service-page-card__body { padding: 18px !important; }

    .lc-action-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }
    .lc-action-grid__item { padding: 12px !important; font-size: 13px !important; }
    .lc-action-grid__caption { font-size: 12px !important; }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .lc-services-page-grid { grid-template-columns: 1fr 1fr !important; }
}

/* Projects page + filter + single project */
@media (max-width: 767px) {
    .lc-filter-bar {
        display: flex !important;
        gap: 8px;
        padding: 8px 0 16px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        white-space: nowrap;
    }
    .lc-filter-bar::-webkit-scrollbar { display: none; }
    .lc-filter-btn {
        flex-shrink: 0;
        min-height: var(--tap-min);
        padding: 10px 16px !important;
        font-size: 13px;
    }

    .lc-project-info-grid,
    .lc-project-info-grid--filterable {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }
    .lc-project-info-card { display: flex !important; flex-direction: column; }
    .lc-project-info-card__img { width: 100% !important; aspect-ratio: 4/3; object-fit: cover; }
    .lc-project-info-card__body { padding: 16px !important; }
    .lc-project-info-card__name { font-size: 18px !important; }
    .lc-project-info-card__meta {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }
    .lc-project-info-card__investment {
        display: flex; justify-content: space-between; align-items: baseline;
        margin-top: 12px; padding-top: 12px;
        border-top: 1px solid var(--border-light);
    }

    .lc-project-layout,
    .lc-project-details {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px !important;
    }
    .lc-project-featured img { width: 100%; }
    .lc-project-meta {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .lc-project-info-grid { grid-template-columns: 1fr 1fr !important; }
}

/* Contact page */
@media (max-width: 767px) {
    .lc-contact-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px !important;
    }
    .lc-contact-info,
    .lc-contact-form-card { width: 100%; padding: 22px 18px !important; }
    .lc-contact-list li,
    .lc-contact-list__icon { font-size: 15px; }
    .lc-contact-list li {
        padding: 12px 0;
        border-bottom: 1px solid var(--border-light);
        display: flex; align-items: flex-start; gap: 12px;
    }
    .lc-contact-list li a {
        min-height: var(--tap-min);
        display: inline-flex;
        align-items: center;
    }
    .lc-contact-map iframe {
        width: 100% !important;
        height: 280px !important;
    }
    .lc-contact-areas { font-size: 14px; }
    .lc-area-tags {
        display: flex !important;
        flex-wrap: wrap;
        gap: 6px;
    }
    .lc-area-tag {
        padding: 6px 12px !important;
        font-size: 12px !important;
    }
    .lc-contact-ai__inner {
        flex-direction: column !important;
        gap: 16px !important;
        text-align: center;
    }
}

/* Search / Archive / Blog */
@media (max-width: 767px) {
    .lc-blog-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px !important;
    }
    .lc-blog-main { width: 100%; }
    .lc-blog-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }
    .lc-pagination {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        padding: 24px 0;
    }
    .lc-pagination a,
    .lc-pagination span {
        min-width: var(--tap-min);
        min-height: var(--tap-min);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 10px;
    }
    .lc-no-results {
        padding: 32px 18px !important;
        text-align: center;
        font-size: 15px;
    }
}

/* 404 page */
@media (max-width: 767px) {
    .lc-404 { padding: 80px 0 40px !important; text-align: center; }
    .lc-404__inner { padding: 0; }
    .lc-404__icon { font-size: 60px !important; margin-bottom: 16px; }
    .lc-404__grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        margin: 24px 0;
    }
    .lc-404__actions {
        display: flex !important;
        flex-direction: column;
        gap: 10px;
    }
    .lc-404__actions .lc-btn { width: 100%; }
    .lc-404__search input { font-size: 16px; }
    .lc-404__links {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
}

/* AI CTA Banner — used on multiple pages */
@media (max-width: 767px) {
    .lc-ai-cta-banner {
        padding: 28px 18px !important;
        text-align: center;
    }
    .lc-ai-cta-banner__inner {
        flex-direction: column !important;
        gap: 16px !important;
    }
    .lc-ai-cta-banner__text h3 { font-size: 20px !important; }
    .lc-ai-cta-banner__text p { font-size: 14px !important; }
}

/* Gallery grid (used on multiple pages) */
@media (max-width: 767px) {
    .lc-gallery__grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .lc-gallery__item img {
        width: 100% !important;
        height: 220px !important;
        object-fit: cover;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .lc-gallery__grid { grid-template-columns: 1fr 1fr !important; }
}

/* Tall placeholder elements */
@media (max-width: 767px) {
    .lc-placeholder--tall { min-height: 200px !important; }
}

/* ═══════════════════════════════════════════════════════════════════
   PHASE 3.5 — LANDING PAGES (Backyard / ADU / K&B / Pools / AI Design)
   All LPs share backyard.css; overrides target lc-by-* prefixes.
   ═══════════════════════════════════════════════════════════════════ */

/* LP Hero */
@media (max-width: 767px) {
    .lc-by-hero {
        min-height: auto !important;
        padding: 88px 0 48px !important;
    }
    .lc-by-hero__inner,
    .lc-by-hero__content {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px !important;
        text-align: center;
    }
    .lc-by-hero h1 {
        font-size: clamp(1.9rem, 7.5vw, 2.5rem) !important;
        line-height: 1.18 !important;
    }
    .lc-by-hero__sub {
        font-size: 16px !important;
        line-height: 1.55 !important;
    }
    .lc-by-hero__form-wrap,
    .lc-by-hero__form-card {
        width: 100% !important;
        padding: 22px 18px !important;
    }
    .lc-by-hero__phone-line {
        font-size: 14px !important;
        text-align: center;
    }
    .lc-by-hero__ai-btn {
        width: 100% !important;
        min-height: 50px;
    }
}

/* LP About / split intro */
@media (max-width: 767px) {
    .lc-by-about { padding: var(--lc-section-gap) 0 !important; }
    .lc-by-about__intro {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px !important;
    }
    .lc-by-about__intro-image,
    .lc-by-about__intro-text { width: 100% !important; }
    .lc-by-about__placeholder-img {
        width: 100% !important;
        aspect-ratio: 4/3;
        height: auto !important;
    }
    .lc-by-about__values-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
    .lc-by-about__value-card {
        padding: 20px 18px !important;
    }
    .lc-by-about__value-icon {
        font-size: 28px !important;
        margin-bottom: 10px;
    }
}

/* LP AI Promo (split before/after card) */
@media (max-width: 767px) {
    .lc-by-ai-promo__grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px !important;
    }
    .lc-by-ai-promo__visual,
    .lc-by-ai-promo__content {
        width: 100% !important;
    }
    .lc-by-ai-promo__mockup {
        flex-direction: row !important;
        gap: 8px;
    }
    .lc-by-ai-promo__card {
        flex: 1;
        min-height: 180px;
    }
    .lc-by-ai-promo__features {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    .lc-by-ai-promo__feat {
        font-size: 14px !important;
        padding: 10px 12px !important;
    }
}

/* LP Calculator */
@media (max-width: 767px) {
    .lc-by-calc {
        padding: 24px 18px !important;
    }
    .lc-by-calc__header h2 { font-size: 22px !important; }
    .lc-by-calc__form,
    .lc-by-calc__form-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
    .lc-by-calc__sizes,
    .lc-by-calc__finishes {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }
    .lc-by-calc__size,
    .lc-by-calc__finish {
        padding: 14px 10px !important;
        min-height: 64px;
        font-size: 13px !important;
        text-align: center;
    }
    .lc-by-calc__price {
        text-align: center;
    }
    .lc-by-calc__price-range {
        font-size: 26px !important;
    }
    .lc-by-calc__features {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        margin-top: 16px;
    }
    .lc-by-calc__feature {
        font-size: 13px !important;
    }
    .lc-by-calc__disclaimer {
        font-size: 11px !important;
        line-height: 1.4;
    }
}

/* LP Before/After Demo */
@media (max-width: 767px) {
    .lc-by-ba-demo {
        height: 280px !important;
        max-height: 60vh;
    }
    .lc-by-ba-demo__before-wrap,
    .lc-by-ba-demo__before,
    .lc-by-ba-demo__after { height: 100% !important; }
    .lc-by-ba-demo__handle {
        width: 44px !important;
        height: 44px !important;
    }
    .lc-by-ba-demo__tag {
        padding: 6px 12px !important;
        font-size: 11px !important;
    }
}

/* LP FAQ Accordion */
@media (max-width: 767px) {
    .lc-by-faq-section { padding: var(--lc-section-gap) 0 !important; }
    .lc-by-faq__item {
        padding: 0 !important;
        margin-bottom: 8px;
    }
    .lc-by-faq__question {
        padding: 16px 18px !important;
        font-size: 15px !important;
        min-height: 52px;
        line-height: 1.35;
    }
    .lc-by-faq__answer {
        padding: 0 18px 16px !important;
        font-size: 14px !important;
        line-height: 1.55;
    }
}

/* LP CTA section */
@media (max-width: 767px) {
    .lc-by-cta { padding: 48px 18px !important; text-align: center; }
    .lc-by-cta__inner h2 {
        font-size: clamp(1.5rem, 6vw, 2rem) !important;
        margin-bottom: 12px;
    }
    .lc-by-cta__buttons {
        display: flex !important;
        flex-direction: column;
        gap: 12px;
        margin-top: 22px;
    }
    .lc-by-cta__buttons .lc-by-btn,
    .lc-by-cta__buttons .lc-btn { width: 100% !important; }
}

/* LP Carousel */
@media (max-width: 767px) {
    .lc-by-carousel-viewport {
        margin: 0 calc(-1 * var(--lc-wrap-pad));
        padding: 0 var(--lc-wrap-pad);
    }
    .lc-by-carousel-arrow {
        display: none !important; /* Use swipe on mobile */
    }
    .lc-by-carousel-dots {
        display: flex !important;
        justify-content: center;
        gap: 8px;
        margin-top: 16px;
    }
    .lc-by-carousel-dots button {
        width: 10px; height: 10px;
        min-width: 10px; min-height: 10px;
        border-radius: 50%;
    }
}

/* LP Mobile Bar (separate from main lc-mobile-bar) */
@media (max-width: 767px) {
    .lc-by-mobile-bar {
        display: flex !important;
        position: fixed;
        left: 0; right: 0; bottom: 0;
        z-index: 990;
        background: #fff;
        border-top: 1px solid var(--border-light);
        box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
        padding: 8px env(safe-area-inset-bottom, 8px);
        gap: 6px;
    }
    .lc-by-mobile-bar__btn {
        flex: 1;
        min-height: 50px;
        font-size: 12px;
        padding: 10px 6px;
        text-align: center;
    }
}

/* LP Footer */
@media (max-width: 767px) {
    .lc-by-footer { padding: 36px 0 80px !important; }
    .lc-by-footer__inner {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px !important;
        text-align: center;
    }
    .lc-by-footer__brand,
    .lc-by-footer__details,
    .lc-by-footer__legal { width: 100% !important; }
    .lc-by-footer__legal { font-size: 12px; }
}

/* LP Buttons (lc-by-btn family) */
@media (max-width: 767px) {
    .lc-by-btn {
        min-height: var(--tap-min);
        padding: 14px 20px !important;
        font-size: 14px !important;
        white-space: normal !important;
        line-height: 1.3;
    }
    .lc-by-btn--block,
    .lc-by-btn--lg { width: 100%; }
}

/* LP Gallery Strip */
@media (max-width: 767px) {
    .lc-by-gallery-strip { padding: 24px 0 !important; }
    .lc-by-gallery-track img {
        height: 140px !important;
        width: auto !important;
    }
}

/* AI Studio wizard (front-page + ai-design page) */
@media (max-width: 767px) {
    .lc-ai-studio { padding: var(--lc-section-gap) 0 !important; }
    .lc-ai-studio__wizard {
        padding: 18px !important;
    }
    /* AI Designer plugin output */
    .locali-ai-designer,
    .locali-ai-designer__container,
    .locali-ai-cost-calc {
        padding: 16px !important;
        max-width: 100% !important;
    }
    .locali-ai-designer__step,
    .locali-ai-designer__option-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .locali-ai-designer__upload {
        padding: 24px 16px !important;
        min-height: 160px !important;
    }
    .locali-ai-designer__btn,
    .locali-ai-designer__cta {
        width: 100% !important;
        min-height: var(--tap-min) !important;
    }
    .locali-ai-designer__progress {
        gap: 4px !important;
    }
    .locali-ai-designer__progress-step {
        font-size: 11px !important;
    }
    .locali-ai-designer__result-img,
    .locali-ai-designer__output {
        width: 100% !important;
        height: auto !important;
    }
}

/* Viz Inline Result (Backyard AI output) */
@media (max-width: 767px) {
    .viz-ir,
    #vizInlineResult {
        padding: 18px !important;
    }
    .viz-ir__compare,
    .viz-ir__images {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }
    .viz-ir__before,
    .viz-ir__after {
        width: 100% !important;
        aspect-ratio: 4/3;
    }
    .viz-ir__actions {
        display: flex !important;
        flex-direction: column;
        gap: 10px;
    }
    .viz-ir__actions button { width: 100%; }
}

/* LP AI Modal (ADU / K&B / Pools entry) */
@media (max-width: 767px) {
    .lp-ai-modal__step,
    .lp-ai-modal__options {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .lp-ai-modal__option {
        padding: 16px !important;
        min-height: 64px;
        text-align: center;
    }
    .lp-ai-modal__cta { width: 100% !important; }
    .lp-ai-modal__nav {
        display: flex !important;
        justify-content: space-between;
        gap: 10px;
        margin-top: 16px;
    }
    .lp-ai-modal__nav button { flex: 1; min-height: var(--tap-min); }
}

/* When LP mobile bar is present, hide main mobile bar to avoid stacking */
.lc-by-mobile-bar + .lc-mobile-bar,
body:has(.lc-by-mobile-bar) .lc-mobile-bar { display: none !important; }

/* ═══════════════════════════════════════════════════════════════════
   AI DESIGNER — UPLOAD PHOTO STEP
   Desktop: keep "Drag & drop" + single "Choose File" button.
   Mobile: replace with TWO side-by-side buttons — "Take Photo" (camera)
           and "Choose from Gallery". Drag/drop hint hidden.
   ═══════════════════════════════════════════════════════════════════ */

/* Default (desktop ≥1024px): hide mobile-only elements, show desktop hints,
   hide TAKE PHOTO (no camera on desktop). */
.lai-upload__hint-mobile { display: none; }
.lai-upload__btn-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 8px 0 12px;
    flex-wrap: wrap;
}
.lai-upload__btn--camera { display: none !important; }

/* TABLET + MOBILE (≤1023px): show TAKE PHOTO button (devices with camera) */
@media (max-width: 1023px) {
    .lai-upload__btn--camera {
        display: inline-flex !important;
    }
}

@media (max-width: 767px) {
    /* Mobile: hide drag-drop hint + "or" separator, show mobile hint */
    .lai-upload__hint-desktop,
    .lai-upload__or--desktop { display: none !important; }
    .lai-upload__hint-mobile {
        display: block !important;
        font-size: 15px !important;
        margin: 4px 0 14px !important;
        color: var(--text-secondary, #4A4A4A) !important;
    }

    /* Mobile: stack the buttons vertically full-width */
    .lai-upload__btn-row {
        display: flex !important;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        margin: 14px 0 12px !important;
    }
    .lai-upload__btn {
        width: 100% !important;
        min-height: 52px !important;
        padding: 14px 18px !important;
        font-size: 14px !important;
        letter-spacing: 1px !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
    .lai-upload__btn i {
        font-size: 17px;
    }
    /* Make Take Photo the primary visual choice */
    .lai-upload__btn--camera {
        background: var(--green-primary, #2D5E3F) !important;
        color: #fff !important;
        border-color: var(--green-primary, #2D5E3F) !important;
    }
    .lai-upload__btn--camera i { color: #fff; }

    /* Tighter dropzone on mobile (it's no longer the primary affordance) */
    .lai-upload__dropzone {
        padding: 28px 18px !important;
        text-align: center;
        cursor: default !important;
    }
    .lai-upload__dropzone > i.fas.fa-camera {
        font-size: 32px !important;
        color: var(--lc-accent, #C8A96E);
        margin-bottom: 6px;
    }
    .lai-upload__formats {
        display: block;
        font-size: 11px !important;
        color: var(--text-light, #7A7A7A) !important;
        margin-top: 6px;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   AI DESIGNER — RESULT STEP (mobile gating UX)
   Mobile flow:
     ┌──────────────────┐
     │ tiny step header │
     ├──────────────────┤
     │  IMAGE preview   │  ← visible, blurred (locked) AI design
     │   (~240px tall)  │
     ├──────────────────┤
     │  Compact form    │  ← Name / Phone / Email + REVEAL button
     │  (below image)   │
     └──────────────────┘
   Everything else (estimate, line items, CTA, action buttons, post-
   reveal form section) is HIDDEN until REVEAL MY DESIGN is clicked.
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {

    /* ── Compact step header on mobile ─────────────────────────── */
    .lai-step[data-step="result"] .lai-step-header {
        padding: 8px 0 14px !important;
        margin: 0 !important;
        text-align: center;
    }
    .lai-step[data-step="result"] .lai-step-header .lai-label {
        font-size: 10px !important;
        letter-spacing: 2px !important;
        margin-bottom: 6px !important;
    }
    .lai-step[data-step="result"] .lai-step-title {
        font-size: 22px !important;
        line-height: 1.2 !important;
        margin: 0 !important;
    }

    /* ── Render container: simple flex column, NO min-height that
          would cover form/loading ─────────────────────────────── */
    .lai-result__render {
        position: relative;
        margin: 0 0 16px !important;
        padding: 0 !important;
        min-height: 0 !important;
        overflow: visible;
    }

    /* ── During LOADING: gate is display:none (set by JS), placeholder
          may show. Hide placeholder if loading overlay is present so
          the loading spinner stands alone, no extra clutter behind. */
    .lai-result--visual.lai-locked.is-loading .lai-render-loading,
    .lai-render-loading {
        position: relative !important;
        margin: 0 !important;
        padding: 60px 20px !important;
        min-height: 280px;
        background: #1a3c2a !important;
        color: #fff !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    /* When loading is showing inside render, hide the placeholder */
    .lai-result__render:has(.lai-render-loading) .lai-render-placeholder {
        display: none !important;
    }

    /* ─────────────────────────────────────────────────────────────
       LOCKED STATE  (gate visible, AI just finished)
       Restructure the gate from absolute-overlay to vertical stack:
       BG image becomes a normal-flow block at top, card flows below.
       ───────────────────────────────────────────────────────────── */

    /* Reset the gate to normal block flow (was absolute fill) */
    .lai-result--visual.lai-locked .lai-gate {
        position: static !important;
        display: block !important;
        inset: auto !important;
        width: 100%;
        background: transparent !important;
    }

    /* The bg becomes the visible SPLIT-VIEW preview at top:
       BEFORE on left half | blurred AI on right half | gold seam center.
       Override the plugin's 720px breakpoint that stacks them vertically. */
    .lai-result--visual.lai-locked .lai-gate__bg {
        position: relative !important;
        inset: auto !important;
        display: block !important;
        width: 100% !important;
        height: 260px !important;
        background: #1A3C2A !important;
        background-image: none !important;
        filter: none !important;
        transform: none !important;
        border-radius: 8px 8px 0 0;
        overflow: hidden;
        border: 1px solid var(--border-light, #E5E2DC);
        border-bottom: 0;
    }
    /* Force horizontal split (override plugin's 720px vertical stack).
       z-index 4 = above seam(2), BEFORE-badge(3), and after-blur(1), so
       this half's pseudo-elements (lock + AI DESIGN badge) render on top. */
    .lai-result--visual.lai-locked .lai-gate__before {
        position: absolute !important;
        top: 0 !important; left: 0 !important;
        width: 50% !important;
        height: 100% !important;
        right: auto !important;
        background-size: cover !important;
        background-position: center right !important;
        z-index: 4 !important;
        overflow: visible !important;
    }
    .lai-result--visual.lai-locked .lai-gate__after-blur {
        position: absolute !important;
        top: 0 !important; right: 0 !important;
        width: 50% !important;
        height: 100% !important;
        left: auto !important;
        background-size: cover !important;
        background-position: center left !important;
        filter: blur(22px) brightness(0.6) saturate(0.7) !important;
        transform: scale(1.18) !important;
        z-index: 1;
    }
    /* Gold vertical seam between the halves */
    .lai-result--visual.lai-locked .lai-gate__bg::before {
        content: '' !important;
        position: absolute !important;
        top: 0 !important; bottom: 0 !important;
        left: 50% !important;
        width: 2px !important;
        margin-left: -1px !important;
        background: var(--lc-accent, #C8A96E) !important;
        box-shadow: 0 0 12px rgba(0, 0, 0, 0.45);
        display: block !important;
        z-index: 2;
    }
    /* BEFORE badge on left (the plugin already places "BEFORE" via ::after on bg).
       We retain it but reposition + style. z-index 6 to stack above the
       before-half (z=4) which carries the photo. */
    .lai-result--visual.lai-locked .lai-gate__bg::after {
        content: 'BEFORE' !important;
        font-family: var(--font-body, 'Inter'), sans-serif !important;
        font-weight: 700 !important;
        letter-spacing: 2px !important;
        font-size: 10px !important;
        position: absolute !important;
        top: 14px !important; left: 14px !important;
        background: var(--green-deep, #1A3C2A) !important;
        color: #fff !important;
        padding: 6px 12px !important;
        border-radius: 3px !important;
        width: auto !important; height: auto !important;
        transform: none !important;
        display: inline-block !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
        z-index: 6 !important;
    }
    /* AI DESIGN badge on right — added via the gate__before's pseudo so we
       don't depend on extra DOM. (before's ::after is rendered above the bg
       in stacking; we use it as the right-side label.) */
    .lai-result--visual.lai-locked .lai-gate__before::after {
        content: 'AI DESIGN' !important;
        position: absolute !important;
        top: 14px !important;
        right: -4px !important;          /* nudge so it sits in right half */
        transform: translateX(100%);
        background: var(--lc-accent, #C8A96E) !important;
        color: var(--green-deep, #1A3C2A) !important;
        font-family: var(--font-body, 'Inter'), sans-serif !important;
        font-weight: 700 !important;
        letter-spacing: 2px !important;
        font-size: 10px !important;
        padding: 6px 12px !important;
        border-radius: 3px !important;
        z-index: 3 !important;
        margin-right: 14px;
    }
    /* Center lock icon over the seam */
    .lai-result--visual.lai-locked .lai-gate__bg .lai-gate__before::before {
        content: "\f023" !important;     /* fa-lock */
        font-family: "Font Awesome 6 Free", "Font Awesome 5 Free" !important;
        font-weight: 900 !important;
        position: absolute !important;
        top: 50% !important;
        right: -28px !important;          /* center on the seam */
        transform: translateY(-50%);
        width: 56px !important; height: 56px !important;
        background: rgba(255, 255, 255, 0.97) !important;
        color: var(--lc-accent, #C8A96E) !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 22px !important;
        box-shadow: 0 4px 18px rgba(0,0,0,0.28) !important;
        z-index: 5 !important;
    }

    /* The overlay container becomes normal block (no flex centering) */
    .lai-result--visual.lai-locked .lai-gate__overlay {
        position: static !important;
        display: block !important;
        background: transparent !important;
        padding: 0 !important;
        width: 100%;
    }

    /* The card flows BELOW the image preview, with gold border */
    .lai-result--visual.lai-locked .lai-gate__card {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: -1px 0 0 !important;       /* tight to bg */
        padding: 22px 18px !important;
        border-radius: 0 0 10px 10px !important;
        background: #fff !important;
        text-align: center;
        box-shadow: 0 6px 20px rgba(0,0,0,0.08) !important;
        border: 2px solid var(--lc-accent, #C8A96E) !important;
        border-top: 0 !important;
    }

    /* Hide the in-card lock icon — it's already on the seam between halves */
    .lai-result--visual.lai-locked .lai-gate__lock {
        display: none !important;
    }
    /* Gold "YOUR DESIGN IS READY" label above the title */
    .lai-result--visual.lai-locked .lai-gate__card h3 {
        font-size: 18px !important;
        margin: 0 0 6px !important;
        line-height: 1.3;
        color: var(--text-primary, #1A1A1A);
    }
    .lai-result--visual.lai-locked .lai-gate__card h3::before {
        content: 'YOUR DESIGN IS READY';
        display: block;
        font-family: var(--font-body, 'Inter'), sans-serif;
        font-size: 10.5px !important;
        font-weight: 700;
        letter-spacing: 3px;
        color: var(--lc-accent, #C8A96E);
        margin-bottom: 8px;
    }
    /* Hide the original "Your Design is Ready!" text since we replaced it */
    .lai-result--visual.lai-locked .lai-gate__card h3 {
        font-size: 0 !important;
    }
    .lai-result--visual.lai-locked .lai-gate__card h3::after {
        content: 'Enter your info to unlock your AI design.';
        display: block;
        font-family: var(--font-heading, 'Playfair Display'), serif;
        font-size: 19px !important;
        line-height: 1.25;
        font-weight: 500;
        color: var(--text-primary, #1A1A1A);
        margin-top: 0;
    }
    .lai-result--visual.lai-locked .lai-gate__card p {
        display: none !important;          /* hide the redundant "Enter your info..." paragraph */
    }
    .lai-result--visual.lai-locked .lai-gate__card form { margin: 0; }
    .lai-result--visual.lai-locked .lai-gate__field { margin-bottom: 10px !important; }
    .lai-result--visual.lai-locked .lai-gate__field input {
        width: 100% !important;
        font-size: 16px !important;
        min-height: 48px !important;
        padding: 12px 14px !important;
        border: 1px solid var(--border-light, #E5E2DC) !important;
        border-radius: 4px !important;
        background: #fff;
    }
    .lai-result--visual.lai-locked #lai-gate-submit,
    .lai-result--visual.lai-locked .lai-gate__card .lai-btn--gold {
        width: 100% !important;
        min-height: 52px !important;
        margin-top: 6px !important;
        font-size: 14px !important;
        letter-spacing: 1.5px !important;
    }
    .lai-result--visual.lai-locked .lai-gate__privacy {
        font-size: 11px !important;
        line-height: 1.4 !important;
        margin: 12px 0 0 !important;
        color: var(--text-light, #7A7A7A);
    }
    .lai-result--visual.lai-locked .lai-gate__error {
        margin: 8px 0 !important;
        font-size: 13px !important;
        padding: 8px 12px !important;
        text-align: left;
    }

    /* HIDE everything below the gate while locked */
    .lai-result--visual.lai-locked .lai-result__render-actions,
    .lai-result--visual.lai-locked .lai-result__estimate,
    .lai-result--visual.lai-locked .lai-result__line-items,
    .lai-result--visual.lai-locked .lai-result__cta,
    .lai-result--visual.lai-locked .lai-result__form-section,
    .lai-result--visual.lai-locked .lai-result__adu-extras,
    .lai-result--visual.lai-locked .lai-render-placeholder,
    .lai-result--visual.lai-locked .lai-ba-slider {
        display: none !important;
    }

    /* :has() fallback — same behaviour for browsers that have :has() but
       (somehow) didn't get the JS class. Use a generic selector that
       matches the gate visible state. */
    .lai-result--visual:has(.lai-gate:not([style*="display: none"]):not([style*="display:none"])) .lai-result__render-actions,
    .lai-result--visual:has(.lai-gate:not([style*="display: none"]):not([style*="display:none"])) .lai-result__estimate,
    .lai-result--visual:has(.lai-gate:not([style*="display: none"]):not([style*="display:none"])) .lai-result__line-items,
    .lai-result--visual:has(.lai-gate:not([style*="display: none"]):not([style*="display:none"])) .lai-result__cta,
    .lai-result--visual:has(.lai-gate:not([style*="display: none"]):not([style*="display:none"])) .lai-result__form-section,
    .lai-result--visual:has(.lai-gate:not([style*="display: none"]):not([style*="display:none"])) .lai-result__adu-extras {
        display: none !important;
    }

    /* ─────────────────────────────────────────────────────────────
       UNLOCKED STATE  (gate hidden, slider + estimate visible)
       ───────────────────────────────────────────────────────────── */

    .lai-result--visual:not(.lai-locked) .lai-ba-slider {
        display: block;
        min-height: 280px;
        margin: 0 0 14px;
    }
    .lai-result__render-actions {
        display: flex !important;
        gap: 8px;
        margin-top: 12px;
        flex-wrap: wrap;
    }
    .lai-result__render-actions .lai-btn {
        flex: 1;
        min-width: 130px;
        min-height: var(--tap-min);
    }

    /* Estimate card */
    .lai-result__estimate-card {
        padding: 18px 16px !important;
        text-align: center;
        margin: 16px 0 !important;
    }
    .lai-result__range {
        font-size: 26px !important;
        line-height: 1.1;
        gap: 6px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .lai-result__range-low,
    .lai-result__range-high { font-size: 26px !important; }
    .lai-result__estimate-note {
        font-size: 12px !important;
        line-height: 1.45;
        margin-top: 8px !important;
    }

    /* Line items */
    .lai-result__line-items { padding: 16px 0 !important; }
    .lai-result__line-items-title {
        font-size: 15px !important;
        margin-bottom: 10px !important;
    }

    /* Post-reveal CTA */
    .lai-result__cta {
        padding: 20px 16px !important;
        text-align: center;
        margin-top: 16px !important;
    }
    .lai-result__cta-text {
        font-size: 14px !important;
        margin-bottom: 12px !important;
    }
    .lai-result__cta .lai-btn {
        width: 100%;
        min-height: 52px;
    }
    .lai-result__cta-phone {
        font-size: 12px !important;
        margin-top: 10px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   REDUCE MOTION
   ═══════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
