/* ============================================================
   Play For Free — banner and pop-up. Loaded on every page,
   so it cannot depend on home.css, which only the home page
   pulls in. That is why the old pop-up styles could not travel.

   Both components are injected by offer.js.
   ============================================================ */

:root { --plo-bar-h: 0px; }
.has-plo-bar { --plo-bar-h: 42px; }

/* ── top banner ─────────────────────────────────────────── */
.plo-bar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 500;
    min-height: var(--plo-bar-h);
    /* the bar itself owns the notch inset, so the text clears the status bar */
    padding: 0 2.6rem 0 1rem;
    padding-top: env(safe-area-inset-top, 0px);
    /* White, not navy. The nav and every hero behind it are navy, so a
       navy bar simply vanished into the page. */
    background: #ffffff;
    box-shadow: 0 1px 0 rgba(15,59,89,0.10);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Montserrat', system-ui, sans-serif;
}
.plo-bar-link {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    color: #0F3B59; text-decoration: none;
    font-size: 0.78rem; font-weight: 700; letter-spacing: 0.01em;
    line-height: 1.3; text-align: center; padding: 0.7rem 0;
}
.plo-bar-link:hover { color: #1E6F94; }
.plo-bar-arrow { color: #1E6F94; font-weight: 800; flex-shrink: 0; }
.plo-bar-x {
    position: absolute; right: 0.55rem; top: 50%; transform: translateY(-50%);
    background: none; border: 0; cursor: pointer; padding: 0.3rem 0.45rem;
    color: rgba(15,59,89,0.40); font-size: 1.15rem; line-height: 1;
}
.plo-bar-x:hover { color: #0F3B59; }
.plo-bar-x:focus-visible, .plo-bar-link:focus-visible { outline: 2px solid #1E6F94; outline-offset: 2px; }

@media (max-width: 560px) {
    .has-plo-bar { --plo-bar-h: 50px; }
    .plo-bar-link { font-size: 0.7rem; }
}

/* ── pop-up ─────────────────────────────────────────────── */
/* White card, photo led. The navy version sat on navy heroes behind a
   navy scrim and read as more of the same page instead of an offer. */
.plo-pop-overlay {
    position: fixed; inset: 0; z-index: 10000;
    background: rgba(8,28,44,0.66);
    display: flex; align-items: center; justify-content: center;
    padding: 1.2rem;
    opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
}
.plo-pop-overlay.open { opacity: 1; visibility: visible; }

.plo-pop {
    position: relative; width: 100%; max-width: 380px;
    background: #ffffff; border-radius: 10px; overflow: hidden;
    box-shadow: 0 26px 70px rgba(8,28,44,0.45);
    transform: translateY(14px); transition: transform 0.3s;
    max-height: calc(100vh - 2.4rem); overflow-y: auto;
}
.plo-pop-overlay.open .plo-pop { transform: translateY(0); }

.plo-pop-img { position: relative; aspect-ratio: 900 / 420; overflow: hidden; }
.plo-pop-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Only a touch of shade at the very top, so the close button stays
   legible whatever the photo is doing up there. */
.plo-pop-img::after {
    content: ''; position: absolute; inset: 0 0 auto; height: 38%;
    background: linear-gradient(to bottom, rgba(8,28,44,0.30), transparent);
}
.plo-pop-x {
    position: absolute; top: 0.6rem; right: 0.6rem; z-index: 3;
    width: 1.9rem; height: 1.9rem; border-radius: 50%;
    background: rgba(255,255,255,0.92); border: 0; cursor: pointer;
    color: #0F3B59; font-size: 1.15rem; line-height: 1;
    display: flex; align-items: center; justify-content: center;
}
.plo-pop-x:hover { background: #ffffff; }

.plo-pop-body { padding: 1.4rem 1.6rem 1.6rem; text-align: center; }
.plo-pop-eyebrow {
    font-family: 'Montserrat', system-ui, sans-serif;
    font-size: 0.6rem; font-weight: 700; letter-spacing: 0.24em;
    text-transform: uppercase; color: #1E6F94;
}
.plo-pop-title {
    font-family: 'Montserrat', system-ui, sans-serif;
    font-weight: 800; font-size: 1.42rem; line-height: 1.13;
    letter-spacing: -0.01em; color: #0F3B59; margin: 0.45rem 0 0.6rem;
}
.plo-pop-sub {
    font-size: 0.84rem; line-height: 1.62; color: #47586A; margin: 0 0 1.1rem;
}

.plo-pop-form { display: flex; flex-direction: column; gap: 0.55rem; }
.plo-pop-form input {
    width: 100%; padding: 0.78rem 0.9rem;
    border: 1px solid rgba(15,59,89,0.22); border-radius: 5px;
    background: #F4F7F9; color: #16293A;
    font-family: inherit; font-size: 0.88rem;
}
.plo-pop-form input::placeholder { color: #8698A8; }
.plo-pop-form input:focus { background: #ffffff; border-color: #1E6F94; }
.plo-pop-form input:focus-visible { outline: 2px solid #1E6F94; outline-offset: 1px; }
.plo-pop-form button {
    width: 100%; padding: 0.85rem; border: 0; border-radius: 5px; cursor: pointer;
    background: #0F3B59; color: #ffffff;
    font-family: 'Montserrat', system-ui, sans-serif;
    font-weight: 800; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase;
    transition: background 0.2s;
}
.plo-pop-form button:hover:not(:disabled) { background: #1E6F94; }
.plo-pop-form button:disabled { opacity: 0.55; cursor: default; }
.plo-pop-err {
    display: none; margin: 0.2rem 0 0;
    font-size: 0.74rem; color: #C0392B;
}
.plo-pop-fine {
    margin: 0.85rem 0 0; font-size: 0.66rem; line-height: 1.5; color: #7C8B98;
}

.plo-pop-success {
    display: none; color: #0F3B59;
    font-family: 'Montserrat', system-ui, sans-serif;
    font-weight: 700; font-size: 0.98rem; line-height: 1.5; padding: 1rem 0 0.4rem;
}
.plo-pop.done .plo-pop-form,
.plo-pop.done .plo-pop-fine,
.plo-pop.done .plo-pop-sub { display: none; }
.plo-pop.done .plo-pop-success { display: block; }

@media (prefers-reduced-motion: reduce) {
    .plo-pop-overlay, .plo-pop { transition: none; }
}

/* ── clearance ──────────────────────────────────────────────
   The banner is fixed, so it eats the top of the viewport and
   takes the nav down with it. The home page hero tucks under a
   nav that used to sit at y=0; on a short phone its eyebrow ran
   straight through the wordmark. Reserve the same height back.
   Inner pages already carry 10rem of hero padding and are clear. */
.has-plo-bar .hero-content { margin-top: var(--plo-bar-h); }
