/* White Label sale pop-up (Mike, 2026-11-27), on the homepage and from the alert bar on every page. Scoped to .hbf.
   It is built and opened by js/wl-popup.js, so without JavaScript nothing covers the page.
   To remove it after the sale, delete the SALE TAKEOVER block in index.html. */
.hbf { --hbf-y: #ffe500; --hbf-bar: 46px; --hbf-gap: clamp(16px, 4.5vh, 48px) clamp(16px, 5.5vw, 96px); display: none; position: fixed; inset: 0; z-index: 2147483600; font-family: inherit; }
.hbf.is-open { display: block; }
.hbf[hidden] { display: none !important; }
.hbf-backdrop { position: absolute; inset: 0; background: rgba(3, 3, 8, .46); -webkit-backdrop-filter: blur(1.5px); backdrop-filter: blur(1.5px); }
.hbf-panel { position: absolute; inset: var(--hbf-gap); display: flex; flex-direction: column; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; border-radius: 20px; background: #08080f; box-shadow: 0 30px 90px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08); outline: none; }
html.hbf-lock, html.hbf-lock body { overflow: hidden; }
.hbf a { -webkit-tap-highlight-color: transparent; }

/* Alert bar (same look as /white-label/), across the top of the pop-up */
.hbf-alert { position: relative; z-index: 2; flex: none; height: var(--hbf-bar); overflow: hidden; background: var(--hbf-y); color: #050505; border-bottom: 2px solid #050505; }
.hbf-alert-inner { display: flex; align-items: center; justify-content: center; gap: 10px 18px; height: 100%; padding: 0 16px; color: inherit; text-decoration: none; font-size: 15px; font-weight: 650; }
.hbf-alert-tag { padding: 4px 10px; border-radius: 6px; background: #050505; color: var(--hbf-y); font-family: "Geist Mono", ui-monospace, monospace; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.hbf-alert-msg b { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.hbf-alert-ends { white-space: nowrap; font-weight: 800; }
.hbf-alert-inner:focus-visible { outline: 3px solid #050505; outline-offset: -5px; }
.hbf-compact { font-family: "Geist Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; font-weight: 800; }

/* The full-screen takeover */
.hbf-hero { position: relative; box-sizing: border-box; display: flex; flex: 1 0 auto; flex-direction: column; padding: clamp(18px, 2.4vw, 28px) clamp(16px, 3vw, 40px) 14px; overflow: hidden; background: radial-gradient(ellipse 70% 55% at 50% 0%, rgba(255, 229, 0, .13), transparent 70%), #08080f; color: #f4f4f8; text-align: center; }
.hbf-logo { align-self: flex-start; display: inline-flex; border-radius: 8px; }
.hbf-logo img { display: block; width: auto; height: clamp(28px, 2.8vw, 36px); }
.hbf-x { position: absolute; top: clamp(10px, 1.6vw, 18px); right: clamp(10px, 1.6vw, 18px); z-index: 1; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px 0 18px; border: 2px solid #fff; border-radius: 999px; background: #fff; color: #050505; font: inherit; font-size: 15px; font-weight: 750; line-height: 1; white-space: nowrap; cursor: pointer; box-shadow: 0 6px 20px rgba(0, 0, 0, .45); transition: background-color 140ms ease, color 140ms ease; }
.hbf-x svg { flex: none; width: 20px; height: 20px; }
.hbf-x:hover { background: var(--hbf-y); border-color: var(--hbf-y); }
.hbf-x:focus-visible { outline: 3px solid var(--hbf-y); outline-offset: 2px; }
.hbf-body { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 0; width: min(100%, 980px); margin: 0 auto; padding: clamp(4px, 1.2vh, 20px) 0; }
.hbf-kicker { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border: 1px solid rgba(255, 229, 0, .55); border-radius: 999px; color: #fff; font-family: "Geist Mono", ui-monospace, monospace; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.hbf-kicker b { padding: 3px 9px; border-radius: 999px; background: #ff3b30; color: #fff; letter-spacing: .08em; }
.hbf-pre { margin: clamp(16px, 2.4vh, 24px) 0 0; color: #fff; font-size: clamp(20px, 1.8vw, 26px); font-weight: 550; line-height: 1.2; letter-spacing: -0.01em; }
.hbf-h { margin: clamp(8px, 1.2vh, 12px) 0 0; color: #fff; font-size: clamp(36px, 5.6vw, 80px); font-weight: 800; line-height: 1; letter-spacing: -0.045em; text-wrap: balance; }
.hbf-h span { display: block; margin-top: .06em; color: var(--hbf-y); }
.hbf-lede { margin: clamp(14px, 2vh, 20px) 0 0; font-size: clamp(18px, 1.8vw, 23px); font-weight: 600; line-height: 1.35; color: rgba(244, 244, 248, .9); }
.hbf-lede b { color: #fff; }

/* Countdown (same look as the /white-label/ hero timer) */
.hbf-count { display: grid; justify-items: center; gap: 10px; margin: clamp(18px, 3vh, 30px) 0 0; }
.hbf-count-label { margin: 0; color: var(--hbf-y); font-family: "Geist Mono", ui-monospace, monospace; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
/* The placeholder is the same height as the live boxes, so the timer swap does not move the page. */
.hbf-slot { box-sizing: border-box; display: grid; place-items: center; min-height: calc(clamp(30px, 4vw, 50px) + 40px); padding: 12px 18px; border: 2px dashed var(--hbf-y); border-radius: 12px; color: var(--hbf-y); font-family: "Geist Mono", ui-monospace, monospace; font-weight: 700; }
.hbf-live { display: flex; gap: clamp(8px, 1.2vw, 12px); }
.hbf-live span { display: grid; min-width: clamp(68px, 7.4vw, 92px); padding: 10px 8px 8px; border-radius: 14px; background: #fff; color: #050505; box-shadow: 0 0 0 3px var(--hbf-y), 0 18px 40px rgba(0, 0, 0, .35); }
.hbf-live b { font-family: "Geist Mono", ui-monospace, monospace; font-size: clamp(30px, 4vw, 50px); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.hbf-live small { margin-top: 5px; color: #5f5f5f; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

/* The button (same raised yellow button as /white-label/) */
.hbf-btn { --b-lip: 8px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5em; box-sizing: border-box; width: min(100%, 560px); min-height: clamp(64px, 6.4vw, 76px); margin: clamp(22px, 3.4vh, 34px) 0 var(--b-lip); padding: 10px 18px; border-radius: 16px; background: var(--hbf-y); color: #050505; font-size: clamp(17px, 4.9vw, 27px); font-weight: 800; letter-spacing: -0.01em; line-height: 1.1; text-decoration: none; white-space: nowrap; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .55), 0 var(--b-lip) 0 #a39100, 0 calc(var(--b-lip) + 12px) 26px rgba(255, 229, 0, .26); transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms; }
.hbf-btn:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .55), 0 calc(var(--b-lip) + 2px) 0 #a39100, 0 calc(var(--b-lip) + 18px) 32px rgba(255, 229, 0, .26); }
.hbf-btn:active { transform: translateY(6px); filter: none; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .55), 0 2px 0 #a39100, 0 6px 12px rgba(255, 229, 0, .26); }
.hbf-btn:focus-visible { outline: 3px solid #050505; outline-offset: 2px; box-shadow: 0 0 0 8px #fff, 0 var(--b-lip) 0 #a39100; }
.hbf-btn i { flex: none; width: .85em; height: .85em; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h15M13 5l7 7-7 7' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h15M13 5l7 7-7 7' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform 140ms ease; }
.hbf-btn:hover i { transform: translateX(4px); }
.hbf-link { margin: 14px 0 0; font-size: 17px; font-weight: 700; }
.hbf-link a { color: #fff; text-decoration-color: var(--hbf-y); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.hbf-link a:hover { color: var(--hbf-y); }
.hbf-scroll { align-self: center; min-height: 44px; padding: 6px 12px; border: 0; background: none; color: rgba(244, 244, 248, .62); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.hbf-scroll:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.hbf-scroll:focus-visible { outline: 3px solid var(--hbf-y); outline-offset: 2px; border-radius: 8px; }

@media (max-width: 720px) {
  .hbf { --hbf-bar: 58px; --hbf-gap: 10px; }
  .hbf-panel { border-radius: 16px; }
  .hbf-x { top: 10px; right: 10px; min-height: 44px; padding: 0 12px 0 14px; font-size: 14px; }
  .hbf-x-more { display: none; }
  .hbf-btn { padding-inline: 12px; font-size: clamp(15px, 4.3vw, 22px); }
  .hbf-alert-inner { flex-wrap: wrap; align-content: center; gap: 2px 10px; padding: 0 10px; font-size: 13px; }
  .hbf-alert-tag { padding: 2px 8px; font-size: 11px; }
  .hbf-alert-msg { order: 3; flex-basis: 100%; text-align: center; }
  .hbf-hero { padding-top: 16px; }
  .hbf-kicker { font-size: 11.5px; padding: 6px 12px; }
  .hbf-pre { font-size: 19px; }
  .hbf-h { font-size: clamp(31px, 9.6vw, 44px); }
  .hbf-lede { font-size: 17px; }
  .hbf-slot { min-height: 64.5px; }
  .hbf-live span { min-width: 64px; padding: 9px 4px 7px; }
  .hbf-live b { font-size: 28px; }
  .hbf-live small { font-size: 10px; letter-spacing: .08em; }
  .hbf-link { font-size: 16px; }
}
/* Entrance: the site shows first, then the backdrop fades in, the panel zooms in with a small
   overshoot, and the close button gives one short shake so it is easy to find. */
@keyframes hbf-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hbf-zoom { 0% { opacity: 0; transform: scale(.85); } 55% { opacity: 1; transform: scale(1.03); } 78% { transform: scale(.99); } 100% { opacity: 1; transform: scale(1); } }
@keyframes hbf-shake { 0%, 100% { transform: translateX(0) rotate(0); } 15% { transform: translateX(-5px) rotate(-3deg); } 30% { transform: translateX(5px) rotate(3deg); } 45% { transform: translateX(-4px) rotate(-2deg); } 60% { transform: translateX(4px) rotate(2deg); } 75% { transform: translateX(-2px) rotate(-1deg); } }
.hbf.is-open .hbf-backdrop { animation: hbf-fade 250ms ease-out both; }
.hbf.is-open .hbf-panel { transform-origin: 50% 45%; animation: hbf-zoom 450ms cubic-bezier(.2, .9, .3, 1.15) 60ms both; }
.hbf.is-open .hbf-x { animation: hbf-shake 480ms ease-in-out 620ms both; }

@media (prefers-reduced-motion: reduce) {
  .hbf-btn, .hbf-btn i { transition: none; }
  .hbf-btn:hover, .hbf-btn:hover i { transform: none; }
  .hbf.is-open .hbf-backdrop, .hbf.is-open .hbf-panel { animation: hbf-fade 200ms ease-out both; }
  .hbf.is-open .hbf-x { animation: none; }
}

/* Later phases rewrite the takeover before it is shown, so the Friday wording never paints. */
html.promo-pending .hbf { visibility: hidden; }
html[data-promo-phase="evergreen"] .hbf { display: none !important; }

/* The extension headlines are full sentences. Keep them on the yellow line without blowing the hero. */
html[data-promo-phase="bf-extended"] .hbf-h span,
.hbf.hbf--bfext .hbf-h span { font-size: .58em; line-height: 1.08; }
html[data-promo-phase="cyber-monday"] .hbf-h span,
.hbf.hbf--cyber .hbf-h span { font-size: .72em; line-height: 1.08; }
html[data-promo-phase="bfcm-extended"] .hbf-h span,
.hbf.hbf--bfcm .hbf-h span { font-size: .4em; line-height: 1.15; }
html[data-promo-phase="bf-extended"] .hbf-kicker,
html[data-promo-phase="bfcm-extended"] .hbf-kicker { flex-wrap: wrap; justify-content: center; max-width: 100%; letter-spacing: .06em; }
html[data-promo-phase="bf-extended"] .hbf-alert { height: auto; min-height: var(--hbf-bar); }
html[data-promo-phase="bf-extended"] .hbf-alert-inner { flex-wrap: wrap; height: auto; padding-top: 8px; padding-bottom: 8px; }

/* Cyber Monday keeps the yellow offer and adds a blue accent on the kicker, glow, and alert edge. */
html[data-promo-phase="cyber-monday"] .hbf-hero,
.hbf.hbf--cyber .hbf-hero { background: radial-gradient(ellipse 70% 55% at 50% 0%, rgba(94, 176, 255, .24), transparent 70%), #08080f; }
html[data-promo-phase="cyber-monday"] .hbf-kicker,
.hbf.hbf--cyber .hbf-kicker { border-color: rgba(94, 176, 255, .75); }
html[data-promo-phase="cyber-monday"] .hbf-kicker b,
.hbf.hbf--cyber .hbf-kicker b { background: #1a6fd4; }
html[data-promo-phase="cyber-monday"] .hbf-count-label,
.hbf.hbf--cyber .hbf-count-label { color: #9fd0ff; letter-spacing: .06em; }
html[data-promo-phase="cyber-monday"] .hbf-slot,
.hbf.hbf--cyber .hbf-slot { border-color: #5eb0ff; }
html[data-promo-phase="cyber-monday"] .hbf-alert,
.hbf.hbf--cyber .hbf-alert { box-shadow: inset 0 -3px 0 #1a6fd4; }
html[data-promo-phase="bfcm-extended"] .hbf-alert,
.hbf.hbf--bfcm .hbf-alert { box-shadow: inset 4px 0 0 #1a6fd4; }

/* The same stage rules by class, for pages other than the homepage (no data-promo-phase on <html>). */
.hbf.hbf--bfext .hbf-kicker,
.hbf.hbf--bfcm .hbf-kicker { flex-wrap: wrap; justify-content: center; max-width: 100%; letter-spacing: .06em; }
.hbf.hbf--bfext .hbf-alert { height: auto; min-height: var(--hbf-bar); }
.hbf.hbf--bfext .hbf-alert-inner { flex-wrap: wrap; height: auto; padding-top: 8px; padding-bottom: 8px; }
