/* Black Friday (shop/blackfriday.py, docs/101-black-friday-bundle.md): loaded only while the bundle is on sale, by its page, the strip
   of every page, the Pro home's pill and band. Black ground, the logo's yellow for the price and the sale tape, its red for the discount
   tag; solid colours, no glow. Motion is transform and opacity only, and stops for prefers-reduced-motion. */
:root { --bf-ground:#09090b; --bf-raise:#131317; --bf-line:#ffffff1c; --bf-text:#f3f4f6; --bf-muted:#a7abb5; --bf-yellow:#FBE335;
  --bf-on-yellow:#111112; --bf-red:#EB3337; --bf-paper:#f2f0e8; --bf-paper-ink:#18181b; --bf-paper-muted:#5d5b55; }
@font-face { font-family:Anton; src:url('./assets/fonts/Anton-gk.woff2') format('woff2'); font-weight:400; font-display:swap; }

/* ---------- the strip on every page, the pill on the Pro home ---------- */
.bf-strip { position:relative; z-index:5; display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:6px 14px;
  margin:0 0 16px; padding:10px 16px; border-radius:14px; background:var(--bf-ground); border:1px solid var(--bf-line);
  color:var(--bf-text) !important; text-decoration:none; font-size:14px; line-height:1.6; }
.bf-strip b { font:400 18px/1 Anton, Arial, sans-serif; letter-spacing:.06em; color:var(--bf-yellow); }
.bf-strip s { color:var(--bf-muted); }
.bf-strip-up { padding:2px 10px; border-radius:999px; background:var(--bf-red); color:#fff; font-weight:800; font-size:12.5px; }
.bf-strip-go { color:var(--bf-yellow); transition:transform .2s; }
.bf-strip:hover .bf-strip-go, .bf-strip:focus-visible .bf-strip-go { transform:translateX(-4px); }
.bf-strip:focus-visible { outline:2px solid var(--bf-yellow); outline-offset:2px; }
.bf-strip.is-pill { position:fixed; z-index:60; margin:0; inset-inline-start:max(16px, env(safe-area-inset-right, 0px));
  bottom:calc(16px + env(safe-area-inset-bottom, 0px)); max-width:calc(100vw - 32px); padding:10px 18px; border-radius:999px;
  border-color:#ffffff33; box-shadow:0 12px 30px #0009; }
@media (max-width:640px) { .bf-strip { font-size:13px; } .bf-strip.is-pill .bf-strip-text { display:none; } }

/* ---------- the sale tape: yellow, black type, running slowly ---------- */
.bf-tape { overflow:hidden; background:var(--bf-yellow); color:var(--bf-on-yellow); transform:rotate(-1.2deg); margin:0 -8px;
  border-block:2px solid var(--bf-on-yellow); }
.bf-tape-run { display:flex; width:max-content; gap:28px; padding:7px 0; animation:bf-run 38s linear infinite; }
.bf-tape-run span { white-space:nowrap; font-weight:900; font-size:14px; }
.bf-tape-run span[dir="ltr"] { font:400 17px/1.25 Anton, Arial, sans-serif; letter-spacing:.08em; }
@keyframes bf-run { from { transform:translateX(0); } to { transform:translateX(50%); } }

/* the wordmark */
.bf-word { display:flex; flex-wrap:wrap; gap:0 .22em; margin:0; font:400 clamp(54px, 12vw, 132px)/.9 Anton, Arial, sans-serif;
  justify-content:flex-end; letter-spacing:.02em; text-transform:uppercase; }  /* dir=ltr: flush with the right-to-left copy */
.bf-word span:first-child { color:transparent; -webkit-text-stroke:1.5px var(--bf-yellow); }
.bf-word span:last-child { color:var(--bf-yellow); }
.bf-kicker { margin:0; color:var(--bf-yellow); font-weight:800; font-size:14px; letter-spacing:.01em; }
.bf-tag { display:inline-block; padding:3px 12px; border-radius:999px; background:var(--bf-red); color:#fff; font-style:normal;
  font-weight:800; font-size:14px; line-height:1.6; }

/* the button: solid yellow, black type */
.bf-cta { display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:52px; padding:0 26px; border:0;
  border-radius:14px; background:var(--bf-yellow); color:var(--bf-on-yellow) !important; font:inherit; font-weight:900; font-size:16px;
  text-decoration:none; cursor:pointer; transition:transform .15s ease, background-color .2s; }
.bf-cta .ic { width:20px; height:20px; }
.bf-cta:hover { background:#fff06a; }
.bf-cta:active { transform:scale(.97); }
.bf-cta:focus-visible { outline:3px solid #fff; outline-offset:3px; }
.bf-cta[aria-busy="true"] { opacity:.7; }

/* ---------- the bundle's page ---------- */
body[data-page="store"]:has(.bf) { --st-bg:var(--bf-ground); background:var(--bf-ground); }
.bf { display:flex; flex-direction:column; gap:clamp(36px, 6vw, 72px); color:var(--bf-text); }
.bf h2 { margin:0 0 18px; font-size:clamp(22px, 2.6vw, 30px); line-height:1.45; text-wrap:balance; }
.bf h3 { margin:0; font-size:17px; line-height:1.6; }
.bf p { margin:0; }
.bf-hero { display:grid; grid-template-columns:minmax(0, 1fr); gap:24px; align-items:center; }
.bf-hero-copy { display:flex; flex-direction:column; gap:14px; min-width:0; }
.bf-hero h1 { margin:6px 0 0; font-size:clamp(32px, 4.6vw, 54px); font-weight:900; line-height:1.3; text-wrap:balance; }
.bf-lead { max-width:34em; color:#d6d8de; font-size:clamp(16px, 1.6vw, 18px); line-height:1.95; }
.bf-price { display:flex; flex-direction:column; gap:4px; margin-top:6px; }
.bf-was { display:flex; gap:8px; align-items:baseline; color:var(--bf-muted); font-size:15px; }
.bf-was s { text-decoration-thickness:2px; text-decoration-color:var(--bf-red); }
.bf-now { display:flex; flex-wrap:wrap; align-items:baseline; gap:6px 12px; }
.bf-now b { font-size:clamp(40px, 6vw, 64px); font-weight:900; line-height:1.1; color:var(--bf-yellow); }
.bf-now > span { font-size:18px; font-weight:700; }
.bf-save { color:var(--bf-text); font-weight:700; font-size:15px; }
.bf-buy { display:flex; flex-wrap:wrap; align-items:center; gap:12px 16px; margin-top:4px; }
/* the stock bar (owner 2026-11-26 14:34 UTC): the shown count left; fills from the right (start), drains with each sale */
.bf-stock { display:grid; gap:8px; width:100%; max-width:460px; margin-top:6px; }
.bf-stock-top { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:baseline; gap:4px 12px; margin:0; }
.bf-stock-top b { color:var(--bf-yellow); font-size:17px; font-weight:900; }
.bf-stock-top span { color:var(--bf-muted); font-size:13.5px; }
.bf-meter { position:relative; height:16px; padding:3px; border-radius:999px; background:var(--bf-raise); box-shadow:inset 0 0 0 1px var(--bf-line); }
.bf-meter i { display:block; height:100%; width:var(--w); border-radius:999px; transform-origin:right center;
  background:repeating-linear-gradient(-45deg, #0000 0 7px, #00000024 7px 14px) 0 0 / 19.8px 19.8px, var(--bf-yellow);
  box-shadow:0 0 14px #fbe33559; animation:bf-fill 1.1s cubic-bezier(.2,.8,.2,1) both, bf-stripes .9s linear infinite; }
.bf-stock.is-low b { color:#ff6b6e; }
.bf-stock.is-low .bf-meter i { background-color:var(--bf-red); box-shadow:0 0 16px #eb333773; }
.bf-stock-note { margin:0; color:var(--bf-muted); font-size:13px; }
@keyframes bf-fill { from { transform:scaleX(0); } }
@keyframes bf-stripes { to { background-position:-19.8px 0, 0 0; } }
.bf-ship { display:flex; gap:8px; align-items:flex-start; max-width:34em; color:var(--bf-muted); font-size:14px; line-height:1.85; }
.bf-ship .ic { flex:none; width:18px; height:18px; margin-top:3px; }
.bf-over { padding:14px 16px; border-radius:14px; background:var(--bf-raise); border:1px solid var(--bf-line); font-weight:700; }
.bf-hero-media { position:relative; margin:0; min-width:0; }
.bf-hero-media img { display:block; width:100%; max-width:520px; height:auto; aspect-ratio:1; margin-inline:auto; object-fit:contain; }
.bf-hero-media figcaption { display:flex; justify-content:center; flex-wrap:wrap; gap:6px 14px; margin-top:10px; color:var(--bf-muted);
  font:400 13px/1 Anton, Arial, sans-serif; letter-spacing:.14em; }

.bf-items { display:grid; grid-template-columns:minmax(0, 1fr); gap:0; margin:0; padding:0; list-style:none; border-top:1px solid var(--bf-line); }
.bf-item { display:grid; grid-template-columns:auto minmax(0, 1fr); gap:16px; align-items:start; padding:18px 0; border-bottom:1px solid var(--bf-line); }
.bf-n { font:400 34px/1 Anton, Arial, sans-serif; color:var(--bf-yellow); min-width:1.6em; }
.bf-item p { margin-top:4px; color:var(--bf-muted); font-size:15px; line-height:1.9; }

.bf-split { display:grid; grid-template-columns:minmax(0, 1fr); gap:36px; }
.bf-receipt { padding:24px clamp(18px, 3vw, 28px) 22px; border-radius:6px; background:var(--bf-paper); color:var(--bf-paper-ink);
  box-shadow:0 18px 40px #0007;
  -webkit-mask:radial-gradient(circle 7px at 50% 0, #0000 98%, #000) top / 22px 51% repeat-x,
               radial-gradient(circle 7px at 50% 100%, #0000 98%, #000) bottom / 22px 51% repeat-x;
          mask:radial-gradient(circle 7px at 50% 0, #0000 98%, #000) top / 22px 51% repeat-x,
               radial-gradient(circle 7px at 50% 100%, #0000 98%, #000) bottom / 22px 51% repeat-x; }
body[data-page="store"] .bf-receipt h2 { margin-bottom:12px; color:var(--bf-paper-ink); }  /* store.css paints every store h2 white */
.bf-receipt dl { margin:0; }
.bf-receipt dl > div { display:flex; justify-content:space-between; gap:12px; padding:10px 0; border-bottom:1px dashed #00000033; font-size:15.5px; }
.bf-receipt dt { color:var(--bf-paper-muted); }
.bf-receipt dd { margin:0; font-weight:800; font-variant-numeric:tabular-nums; white-space:nowrap; }
.bf-receipt .is-off dd { color:#b3191d; }
.bf-receipt .is-total { border-bottom:0; font-size:18px; }
.bf-receipt .is-total dt { color:var(--bf-paper-ink); font-weight:800; }
.bf-receipt > p { margin-top:10px; color:var(--bf-paper-muted); font-size:13.5px; line-height:1.85; }
.bf-steps { display:grid; gap:0; margin:0; padding:0; list-style:none; counter-reset:bf; }
.bf-steps li { position:relative; display:flex; flex-direction:column; gap:2px; padding:0 44px 22px 0; counter-increment:bf; }
.bf-steps li::before { content:counter(bf, persian); position:absolute; inset-inline-start:0; top:0; display:grid; place-items:center;
  width:30px; height:30px; border-radius:50%; background:var(--bf-yellow); color:var(--bf-on-yellow); font-weight:900; font-size:15px; }
.bf-steps li:not(:last-child)::after { content:""; position:absolute; inset-inline-start:14px; top:34px; bottom:4px; width:2px; background:var(--bf-line); }
.bf-steps b { font-size:16.5px; }
.bf-steps span { color:var(--bf-muted); font-size:15px; line-height:1.9; }

.bf-terms { display:grid; gap:10px; margin:0; padding:0; list-style:none; }
.bf-terms li { position:relative; padding-inline-start:22px; color:#d6d8de; font-size:15.5px; line-height:1.9; }
.bf-terms li::before { content:""; position:absolute; inset-inline-start:2px; top:.8em; width:8px; height:8px; border-radius:2px; background:var(--bf-yellow); }

.bf-end { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:14px 24px; padding:22px clamp(18px, 3vw, 30px);
  border-radius:18px; background:var(--bf-raise); border:1px solid var(--bf-line); }
.bf-end p { display:flex; flex-direction:column; gap:2px; }
.bf-end b { font-size:20px; }
.bf-end p span { color:var(--bf-yellow); font-weight:800; }

@media (min-width:900px) {
  .bf-hero { grid-template-columns:minmax(0, 1.1fr) minmax(0, .9fr); gap:40px; }
  .bf-items { grid-template-columns:repeat(2, minmax(0, 1fr)); column-gap:40px; }
  .bf-split { grid-template-columns:minmax(0, .95fr) minmax(0, 1.05fr); gap:56px; align-items:start; }
}

/* ---------- the Pro home's band ---------- */
.bf-band { position:relative; margin:clamp(40px, 6vw, 80px) 0; padding-bottom:clamp(34px, 5vw, 60px); background:var(--bf-ground);
  border-block:1px solid var(--bf-line); color:var(--bf-text); overflow:hidden; }
.bf-band .bf-tape { margin-top:-1px; }
.bf-band-in { display:grid; grid-template-columns:minmax(0, 1fr); gap:20px 48px; align-items:end; padding-top:clamp(28px, 4vw, 48px); }
.bf-band-copy { display:flex; flex-direction:column; align-items:flex-start; gap:10px; min-width:0; }
.bf-band h2 { margin:0; font-size:clamp(28px, 3.6vw, 44px); font-weight:900; line-height:1.3; }
.bf-band-copy > p { margin:0; color:#d6d8de; font-size:16px; line-height:1.9; }
.bf-band-price { display:flex; flex-wrap:wrap; align-items:baseline; gap:6px 14px; margin:4px 0 8px !important; }
.bf-band-price s { color:var(--bf-muted); text-decoration-color:var(--bf-red); text-decoration-thickness:2px; }
.bf-band-price b { color:var(--bf-yellow); font-size:clamp(26px, 3vw, 36px); font-weight:900; }
@media (min-width:900px) { .bf-band-in { grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); } .bf-band .bf-word { font-size:clamp(80px, 9vw, 150px); } }

@media (prefers-reduced-motion:reduce) {
  .bf-tape-run { animation:none; }
  .bf-strip-go, .bf-cta { transition:none; }
  .bf-meter i { animation:none; }
}


/* ---------- quick jump bar (5G modems) ---------- */
.bf-jump { display:flex; justify-content:flex-start; margin:20px 0 0; }
.bf-jump-link { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; max-width:460px; min-height:46px; padding:10px 18px;
  border-radius:14px; background:var(--bf-raise); border:1px solid var(--bf-line); color:var(--bf-text) !important;
  text-decoration:none; font-size:14.5px; font-weight:700; transition:border-color .18s, transform .18s; }
.bf-jump-link b { color:var(--bf-yellow); font-weight:900; font-variant-numeric:tabular-nums; white-space:nowrap; }
.bf-jump-link.is-modems { border-color:#fbe33566; }
.bf-jump-link:hover, .bf-jump-link:focus-visible { border-color:var(--bf-yellow); transform:translateY(-1px); }
.bf-jump-link:focus-visible { outline:2px solid var(--bf-yellow); outline-offset:2px; }

/* ---------- Pro home band actions ---------- */
.bf-band-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px 16px; }
.bf-band-sub { display:inline-flex; align-items:center; gap:6px; min-height:44px; padding:0 14px; border-radius:12px;
  border:1px solid var(--bf-line); color:var(--bf-text) !important; text-decoration:none; font-size:14.5px; font-weight:700;
  transition:border-color .18s, color .18s; }
.bf-band-sub:hover, .bf-band-sub:focus-visible { border-color:var(--bf-yellow); color:var(--bf-yellow) !important; }

/* ---------- Black Friday 5G modems section (no progress bars, single price) ---------- */
.bf-modems, #buy { scroll-margin-top:calc(var(--site-nav-height, 68px) + 20px); }
.bf-modems-head { display:flex; flex-direction:column; gap:8px; margin-bottom:22px; }
.bf-modems-head h2 { margin:0; font-size:clamp(24px, 3.2vw, 36px); font-weight:900; line-height:1.3; }
.bf-modems-note { margin:0; max-width:46em; color:var(--bf-muted); font-size:15px; line-height:1.85; }
.bf-mgrid { display:grid; grid-template-columns:minmax(0, 1fr); gap:18px; }
@media (min-width:700px) { .bf-mgrid { grid-template-columns:repeat(2, minmax(0, 1fr)); gap:20px; } }
@media (min-width:1120px) { .bf-mgrid { grid-template-columns:repeat(3, minmax(0, 1fr)); gap:22px; } }

.bf-mcard { display:flex; flex-direction:column; min-width:0; border-radius:20px; background:var(--bf-raise);
  border:1px solid var(--bf-line); overflow:hidden; transition:border-color .2s, transform .2s; }
.bf-mcard:hover { border-color:#ffffff38; transform:translateY(-2px); }
.bf-mcard.is-out { opacity:.72; }

.bf-mcard-media { position:relative; display:flex; align-items:center; justify-content:center; aspect-ratio:4 / 3; padding:20px;
  background:radial-gradient(64% 64% at 50% 48%, #fbe33514, #ffffff06 55%, transparent 100%), linear-gradient(180deg, #13131a 0%, #0b0b10 100%);
  overflow:hidden; border-bottom:1px solid var(--bf-line); }
.bf-mcard-media::after { content:""; position:absolute; left:24%; right:24%; bottom:10%; height:10%; border-radius:50%;
  background:radial-gradient(closest-side, #000c, transparent); pointer-events:none; }
.bf-mcard-media img { position:relative; z-index:1; display:block; width:100%; height:100%; object-fit:contain;
  filter:drop-shadow(0 16px 18px #000a); transition:transform .32s cubic-bezier(.2,.7,.2,1); }
.bf-mcard:hover .bf-mcard-media img { transform:translateY(-5px) scale(1.04); }

.bf-mcard-body { display:flex; flex:1; flex-direction:column; gap:12px; padding:18px; min-width:0; }
.bf-mcard-top { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; }
.bf-mchip { display:inline-flex; align-items:center; padding:3px 10px; border-radius:999px; background:var(--bf-red);
  color:#fff; font-size:12px; font-weight:800; line-height:1.4; }
.bf-mstock { display:inline-flex; align-items:center; gap:6px; padding:3px 10px; border-radius:999px; background:#ffffff10;
  color:#d9fbe5; font-size:12.5px; font-weight:700; font-variant-numeric:tabular-nums; }
.bf-mstock::before { content:""; width:7px; height:7px; border-radius:50%; background:#34d399; flex:none; }
.bf-mstock.is-out { color:var(--bf-muted); }
.bf-mstock.is-out::before { background:var(--bf-muted); }

.bf-mtitle { margin:0; font-size:18px; font-weight:900; line-height:1.45; }
.bf-mtitle a { color:var(--bf-text) !important; text-decoration:none; }
.bf-mtitle a:hover, .bf-mtitle a:focus-visible { color:var(--bf-yellow) !important; }
.bf-mspec { margin:0; color:var(--bf-muted); font-size:13.5px; line-height:1.75; }

.bf-vpick { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:8px; margin-top:2px; }
.bf-vopt { display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:2px; min-height:48px;
  padding:8px 10px; border-radius:12px; background:#0d0d11; border:1px solid var(--bf-line); color:var(--bf-text);
  font:inherit; text-align:start; cursor:pointer; transition:border-color .16s, background .16s; }
.bf-vopt:hover:not(:disabled) { border-color:#ffffff4d; }
.bf-vopt.is-on { border-color:var(--bf-yellow); background:#fbe33518; }
.bf-vopt:focus-visible { outline:2px solid var(--bf-yellow); outline-offset:2px; }
.bf-vopt:disabled, .bf-vopt.is-out { opacity:.45; cursor:not-allowed; }
.bf-vopt-lbl { font-size:13px; font-weight:800; line-height:1.35; }
.bf-vopt-meta { font-size:12px; color:var(--bf-muted); font-variant-numeric:tabular-nums; }
.bf-vopt.is-on .bf-vopt-meta { color:var(--bf-yellow); }

.bf-mcond { margin:2px 0 0; min-height:48px; display:flex; align-items:center; gap:6px; padding:8px 12px; border-radius:12px;
  background:#0d0d11; border:1px solid var(--bf-line); color:var(--bf-muted); font-size:13.5px; }
.bf-mcond b { color:var(--bf-text); font-weight:800; }

.bf-mcard-foot { margin-top:auto; padding-top:12px; border-top:1px solid var(--bf-line); display:flex; flex-direction:column; gap:12px; }
.bf-mprice { margin:0; display:flex; align-items:baseline; gap:6px; }
.bf-mprice b { color:var(--bf-yellow); font-size:26px; font-weight:900; line-height:1.1; font-variant-numeric:tabular-nums; }
.bf-mprice span { color:var(--bf-muted); font-size:14px; font-weight:700; }

.bf-mactions { display:flex; flex-direction:column; gap:8px; }
.bf-mform { margin:0; }
.bf-mcta { width:100%; min-height:48px; justify-content:center; font-size:15px; }
.bf-mcta:disabled { opacity:.45; cursor:not-allowed; }
.bf-mlink { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:44px; border-radius:12px;
  color:var(--bf-muted) !important; text-decoration:none; font-size:13.5px; font-weight:700; transition:color .16s, background .16s; }
.bf-mlink:hover, .bf-mlink:focus-visible { color:var(--bf-text) !important; background:#ffffff0d; }
.bf-mlink:focus-visible { outline:2px solid var(--bf-yellow); outline-offset:2px; }

@media (max-width:360px) {
  .bf-vpick { grid-template-columns:minmax(0, 1fr); }
  .bf-mprice b { font-size:23px; }
}
@media (prefers-reduced-motion:reduce) {
  .bf-jump-link, .bf-mcard, .bf-mcard-media img, .bf-vopt, .bf-mlink { transition:none; }
  .bf-mcard:hover, .bf-jump-link:hover { transform:none; }
  .bf-mcard:hover .bf-mcard-media img { transform:none; }
}
