/* FinanceGPT PX5B — hero contrast and secure-session recovery.
   This layer is deliberately narrow. The cash-logistics animation is a later PX phase. */

/* PX2 reset the hero copy to the same stacking level as the white readability veil.
   Keep the veil between the network and all interactive/text content. */
.fg-px2-hero.fg-seo-hero-network .fg-seo-hero-content {
    position: relative;
    z-index: 5;
    opacity: 1;
    filter: none;
}

.fg-px2-hero.fg-seo-hero-network::after {
    z-index: 2;
    background: linear-gradient(90deg,
        rgba(250, 252, 255, .98) 0%,
        rgba(250, 252, 255, .96) 28%,
        rgba(250, 252, 255, .80) 50%,
        rgba(250, 252, 255, .34) 72%,
        rgba(250, 252, 255, .05) 100%);
}

.fg-px2-hero .fg-hero-network-background {
    z-index: 1;
    opacity: .76;
}

.fg-px2-hero .fg-seo-hero-content h1,
.fg-px2-hero .fg-seo-hero-content .fg-seo-lead,
.fg-px2-hero .fg-seo-hero-content .fg-eyebrow,
.fg-px2-hero .fg-seo-hero-content .fg-proof-row,
.fg-px2-hero .fg-seo-hero-content .fg-hero-actions {
    opacity: 1;
}

/* AJAX/fetch 419 recovery never silently replays a mutation. The user gets a
   compact, dismissible notice after the session token has been refreshed. */
.fg-session-recovery-notice {
    position: fixed;
    left: max(16px, env(safe-area-inset-left));
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 2147483000;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    max-width: 760px;
    margin-left: auto;
    padding: 15px 16px;
    border: 1px solid rgba(22, 49, 87, .18);
    border-radius: 14px;
    background: rgba(11, 24, 43, .97);
    color: #fff;
    box-shadow: 0 18px 48px rgba(10, 25, 48, .24);
}

.fg-session-recovery-notice strong {
    display: block;
    margin-bottom: 3px;
    font-size: .92rem;
}

.fg-session-recovery-notice span {
    display: block;
    color: rgba(255, 255, 255, .78);
    font-size: .82rem;
    line-height: 1.5;
}

.fg-session-recovery-notice button {
    appearance: none;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, .30);
    border-radius: 9px;
    background: transparent;
    color: #fff;
    padding: 7px 10px;
    font: inherit;
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
}

.fg-session-recovery-notice button:focus-visible {
    outline: 3px solid rgba(94, 176, 255, .56);
    outline-offset: 2px;
}

.fg-session-refresh-page {
    min-height: 68vh;
    display: flex;
    align-items: center;
    background: #f7f9fc;
}

.fg-session-refresh-card {
    max-width: 720px;
    margin: 0 auto;
    padding: 42px;
    border: 1px solid rgba(21, 42, 78, .12);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(19, 38, 74, .08);
    text-align: center;
}

.fg-session-refresh-card h1 {
    color: #13213d;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.fg-session-refresh-card p {
    max-width: 590px;
    margin: 16px auto 24px;
    color: #667085;
    line-height: 1.7;
}

@media (max-width: 991.98px) {
    .fg-px2-hero.fg-seo-hero-network::after {
        background: linear-gradient(180deg,
            rgba(250, 252, 255, .97) 0%,
            rgba(250, 252, 255, .90) 54%,
            rgba(250, 252, 255, .64) 100%);
    }
    .fg-px2-hero .fg-hero-network-background { opacity: .48; }
}

@media (max-width: 575.98px) {
    .fg-session-recovery-notice { flex-direction: column; gap: 10px; }
    .fg-session-recovery-notice button { width: 100%; }
    .fg-session-refresh-card { padding: 28px 22px; border-radius: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .fg-session-recovery-notice { scroll-behavior: auto; }
}
