/* =====================================================================
   HP - Sticky mobile app-download banner.
   Hidden on desktop; on mobile it fixes to the bottom of the viewport as a
   blue bar: OneGold mark + copy ("Get Started… download now!") + dismiss.
   Tokens only.
   ===================================================================== */

/* Hidden by default (desktop ≥768); shown across the full mobile range (≤767.98).
   Restored from a phone-only (≤599.98) scope that the responsive overhaul
   introduced, which dropped the sticky banner on 600–767px. */
.app-banner { display: none; }

@media (max-width: 767.98px) {
  .app-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px var(--pad-mobile);
    background-image: linear-gradient(100deg, #2f80ed 0%, var(--og-blue) 55%, #0a6fd6 100%);
    color: var(--gray-0);
    border-top-left-radius: var(--radius-16, 16px);
    border-top-right-radius: var(--radius-16, 16px);
    box-shadow: 0 -6px 24px rgba(7, 31, 57, 0.28);
  }

  /* Dismissed state (set by main.js / persisted in localStorage). */
  .app-banner.is-dismissed { display: none; }

  /* OneGold bars mark, tinted white via mask. */
  .app-banner__mark {
    flex: none;
    width: 34px;
    height: 22px;
    background-color: var(--gray-0);
    -webkit-mask: url("../../img/logo-mark.svg") no-repeat center / contain;
            mask: url("../../img/logo-mark.svg") no-repeat center / contain;
  }

  .app-banner__text {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: var(--fs-14);
    line-height: 1.3;
  }
  .app-banner__lead { font-weight: var(--fw-bold); }
  .app-banner__sub { font-weight: var(--fw-regular); }
  .app-banner__link {
    color: var(--gray-0);
    font-weight: var(--fw-bold);
    text-decoration: underline;
    text-underline-offset: 2px;
  }

  /* Dismiss "×" */
  .app-banner__close {
    flex: none;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: none;
    border: 0;
    color: var(--gray-0);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.9;
  }
  .app-banner__close:hover { opacity: 1; }
}
