/* Ad funnel trial register + paywall nudges, version: 1.4.3 */
.auth-trial-promo-lead {
    margin: 0 0 0.65rem;
    color: var(--text-secondary, #a1a1aa);
    font-size: 0.92rem;
    line-height: 1.45;
}
.auth-trial-promo-list {
    margin: 0 0 1rem 1.1rem;
    padding: 0;
    color: var(--text-secondary, #a1a1aa);
    font-size: 0.85rem;
    line-height: 1.5;
}
.auth-trial-promo-list li { margin-bottom: 0.25rem; }
.confirm-modal-trial-paywall .auth-trial-promo-list { margin-top: 0.75rem; }
.ad-funnel-phone-nudge {
    position: fixed;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 12000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: min(520px, calc(100vw - 24px));
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    background: rgba(24, 20, 32, 0.96);
    border: 1px solid rgba(200, 164, 92, 0.35);
    color: #e8e8f0;
    font-size: 0.88rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}
.ad-funnel-phone-nudge > span { min-width: 0; line-height: 1.35; }
.ad-funnel-phone-nudge-cta {
    color: #f472b6;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.ad-funnel-phone-nudge-dismiss {
    background: transparent;
    border: none;
    color: #a1a1aa;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 0.25rem;
    line-height: 1;
}
.ad-funnel-verify-banner {
    position: fixed;
    top: calc(12px + env(safe-area-inset-top, 0px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 12000;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    max-width: min(560px, calc(100vw - 24px));
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    background: rgba(24, 20, 32, 0.96);
    border: 1px solid rgba(200, 164, 92, 0.4);
    color: #e8e8f0;
    font-size: 0.88rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}
.ad-funnel-verify-banner-resend {
    background: transparent;
    border: 1px solid rgba(200, 164, 92, 0.55);
    color: var(--accent-light);
    border-radius: 8px;
    padding: 0.25rem 0.55rem;
    font-size: 0.82rem;
    cursor: pointer;
}
.ad-funnel-verify-banner-dismiss {
    background: transparent;
    border: none;
    color: #a1a1aa;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 0.25rem;
    line-height: 1;
    margin-left: auto;
}

.ad-funnel-activation-nudge {
    position: fixed;
    top: calc(12px + env(safe-area-inset-top, 0px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 11950;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: min(680px, calc(100vw - 24px));
    padding: 0.8rem;
    border: 1px solid rgba(214, 172, 92, 0.45);
    border-radius: 14px;
    background: rgba(20, 19, 22, 0.97);
    color: #f7f3eb;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
}
.ad-funnel-activation-copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 0.2rem;
}
.ad-funnel-activation-copy span {
    color: var(--text-secondary, #a1a1aa);
    font-size: 0.82rem;
    line-height: 1.35;
}
.ad-funnel-activation-cta {
    min-height: 44px;
    padding: 0.55rem 0.85rem;
    border: 1px solid rgba(214, 172, 92, 0.6);
    border-radius: 10px;
    background: #d6ac5c;
    color: #15120d;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}
.ad-funnel-activation-dismiss {
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: #aaa4a0;
    font-size: 1.35rem;
    cursor: pointer;
}

/* One unobtrusive funnel prompt at a time. Required/operational surfaces win. */
body.fs-modal-body-lock .ad-funnel-prompt,
body.scene-preview-open .ad-funnel-prompt,
body:has(.app-toast) .ad-funnel-prompt,
body:has(.sidebar-action-toast) .ad-funnel-prompt,
body:has(.confirm-modal-overlay) .ad-funnel-prompt,
body:has(.pay-modal-overlay.visible) .ad-funnel-prompt,
body:has(.extend-flow-overlay) .ad-funnel-prompt,
body:has(.step1-library-picker-overlay:not(.hidden)) .ad-funnel-prompt,
body:has(.create-folder-overlay) .ad-funnel-prompt,
body:has(.folder-select-overlay) .ad-funnel-prompt,
body:has(#cookieConsentBanner:not(.hidden)) .ad-funnel-prompt {
    display: none;
}
body:has(#adFunnelVerifyBanner) .ad-funnel-activation-nudge,
body:has(#adFunnelVerifyBanner) .ad-funnel-phone-nudge,
body:has(#adFunnelActivationNudge) .ad-funnel-phone-nudge {
    display: none;
}

body:has(#newSessionView:not(.hidden)) .ad-funnel-activation-nudge,
body:has(.modal:not(.hidden)) .ad-funnel-activation-nudge {
    display: none;
}
body:has(#newSessionView:not(.hidden)) .ad-funnel-phone-nudge,
body:has(.modal:not(.hidden)) .ad-funnel-phone-nudge {
    display: none;
}

@media (max-width: 640px) {
    .ad-funnel-phone-nudge {
        width: calc(100vw - 24px);
        max-width: none;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto 44px;
        gap: 0.5rem;
        padding: 0.65rem 0.7rem;
    }
    .ad-funnel-phone-nudge-cta {
        align-self: center;
    }
    .ad-funnel-phone-nudge-dismiss {
        width: 44px;
        height: 44px;
    }
    .ad-funnel-verify-banner {
        width: calc(100vw - 24px);
        max-width: none;
    }
    .ad-funnel-activation-nudge {
        top: auto;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        align-items: stretch;
        flex-wrap: wrap;
        max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px));
        overflow-y: auto;
    }
    .ad-funnel-activation-copy {
        flex-basis: calc(100% - 52px);
    }
    .ad-funnel-activation-cta {
        order: 3;
        width: 100%;
    }
}

.lander-pricing-highlight {
    outline: 2px solid rgba(200, 164, 92, 0.55);
    outline-offset: 6px;
    border-radius: 12px;
    transition: outline-color 0.35s ease;
}

body[data-funnel-brand="generic"] .sidebar-strip-logo img,
body[data-funnel-brand="generic"] .sidebar-header-logo img {
    opacity: 0.72;
}
