/* Black Week and Cyber Monday 2026: the offer bar, the opening curtain and the offer prices.
   assets/offer-gate.js sets html[data-offer] before the page paints, so the bar's room is there from the first frame. */
html[data-offer] { --offer-h: 40px; }
html[data-offer] body { padding-top: var(--offer-h); }
html[data-offer] .nx-header, html[data-offer] .site-header { top: var(--offer-h); }
html[data-offer]:has(.nx-header) { scroll-padding-top: calc(72px + var(--offer-h)); }
html[data-offer]:has(.site-header) { scroll-padding-top: calc(var(--header) + 8px + var(--offer-h)); }

.offer-bar {
  position: fixed; inset: 0 0 auto; z-index: 45; height: var(--offer-h);
  display: flex; align-items: center; justify-content: center; gap: 14px; padding: 0 16px;
  background: linear-gradient(100deg, #c99a5b 0%, #f2d39c 30%, #e2b877 55%, #f6dcaa 75%, #c99a5b 100%);
  color: #120d06; font: 500 0.875rem/1 "Schibsted Grotesk", system-ui, sans-serif; white-space: nowrap; overflow: hidden;
}
.offer-bar a { color: inherit; text-decoration: none; }
.offer-bar strong { font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; margin-right: 4px; }
.offer-count { font-weight: 700; font-variant-numeric: tabular-nums; padding: 5px 9px; border-radius: 3px; background: rgba(0, 0, 0, 0.82); color: #f2d39c; }
.offer-more { font-weight: 700; text-decoration: underline !important; text-underline-offset: 3px; }
@media (max-width: 600px) {
  .offer-bar { font-size: 0.75rem; }
  .offer-bar strong { letter-spacing: 0.06em; }
  .offer-count, .offer-more { display: none; }
}

/* Homepage hero during the offer: a big gold number over the After Midnight film. The markup is in site/index.html,
   hidden until html[data-offer] is set, and each phase shows its own lines, so nothing shifts while the page loads. */
.bb-offer [data-for] { display: none; }
html[data-offer] .bb-offer { display: block; margin-bottom: 26px; }
html[data-offer-day="bw"] .bb-offer [data-for~="bw"],
html[data-offer-day="bf"] .bb-offer [data-for~="bf"], html[data-offer-day="cm"] .bb-offer [data-for~="cm"] { display: inline; }
html[data-offer] .billboard-offer, html[data-offer] .billboard-lede { display: none; }
html[data-offer] .billboard-title { font-size: clamp(1.35rem, 1rem + 1vw, 2rem); }
.bb-offer-kicker { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: #f2d39c; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7); }
.bb-offer-big {
  /* padding-bottom: the gold is clipped to the text box, and the italic f descenders reach below a 0.95 line. Margin takes the same back. */
  margin: 4px 0 calc(2px - 0.16em); padding: 0 0.08em 0.16em 0;
  font: italic 700 clamp(4.4rem, 2.2rem + 7.5vw, 9.5rem)/0.95 "Bodoni Moda", Didot, Georgia, serif; letter-spacing: -0.03em;
  background: linear-gradient(100deg, #b8894a 0%, #f6dcaa 30%, #e2b877 48%, #fff3d9 62%, #c99a5b 100%) 0 0 / 240% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 28px rgba(0, 0, 0, 0.55));
  animation: bb-shine 7s ease-in-out infinite alternate;
}
.bb-offer-sub { font: 500 clamp(1.35rem, 1rem + 1.2vw, 2.2rem)/1.1 "Bodoni Moda", Didot, Georgia, serif; color: #fff; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6); }
.bb-offer-example { margin-top: 14px; font-size: 0.9375rem; color: rgba(255, 255, 255, 0.9); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7); }
.bb-offer-example s { color: rgba(255, 255, 255, 0.55); margin-right: 2px; }
.bb-offer-example b { color: #f2d39c; }
.bb-offer-clock { display: flex; align-items: center; gap: 6px; min-height: 52px; margin-top: 16px; }
.bb-offer-when { margin-right: 6px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.75); }
.bb-offer-clock .bb-tile {
  display: grid; justify-items: center; min-width: 52px; padding: 7px 6px 6px; border-radius: 4px;
  background: rgba(0, 0, 0, 0.6); border: 1px solid rgba(226, 184, 119, 0.4);
  font: 700 1.375rem/1 "Schibsted Grotesk", system-ui, sans-serif; font-variant-numeric: tabular-nums; color: #fff;
}
.bb-offer-clock .bb-tile small { margin-top: 4px; font-size: 0.5625rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #e2b877; }
.btn-offer {
  display: inline-flex; margin-top: 18px; align-items: center; gap: 8px; padding: 0 22px; min-height: 44px; border-radius: 4px; text-decoration: none;
  font-weight: 700; color: #f2d39c; border: 1px solid #e2b877; background: rgba(0, 0, 0, 0.45);
}
.btn-offer:hover { background: #e2b877; color: #000; }
@keyframes bb-shine { to { background-position: 100% 0; } }
@media (max-width: 759px) {
  html[data-offer] .bb-offer { margin-bottom: 18px; }
  .bb-offer-clock { justify-content: center; }
  .bb-offer-example { font-size: 0.875rem; }
}
@media (prefers-reduced-motion: reduce) { .bb-offer-big { animation: none; } }

/* Plan cards during the offer: the list price struck through, the offer price, and what the offer covers. */
.plan-price s { color: #808080; font-weight: 400; font-size: 0.6em; margin-right: 0.3em; text-decoration-thickness: 1px; }
.plan-tiers s { color: #808080; margin-right: 2px; }
.plan-offer { display: block; margin-top: 4px; color: #e2b877; font-size: 0.8125rem; font-weight: 600; }
.offer-terms { margin-top: 18px; }

/* The curtain: two halves close over the page, light glows through the seam, and they part after 1.5 s.
   Pseudo-elements, so it needs no markup and is there before the first paint. A click, a key or the wheel opens it
   at once (assets/offer.js). Reduced motion skips it. */
html[data-offer-curtain]::before, html[data-offer-curtain]::after {
  content: ""; position: fixed; top: 0; bottom: 0; z-index: 2147483000; width: 50.5%; cursor: pointer;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.04) 40px, rgba(0, 0, 0, 0.36) 80px, rgba(255, 255, 255, 0) 124px),
    linear-gradient(180deg, #0e0c0a 0%, #050403 100%);
  will-change: transform;
  animation: offer-open 1.05s cubic-bezier(0.7, 0, 0.2, 1) 1.5s forwards;
}
html[data-offer-curtain]::before { left: 0; --offer-to: -102%; box-shadow: inset -2px 0 0 rgba(240, 200, 140, 0.6), inset -46px 0 70px -36px rgba(226, 184, 119, 0.5); }
html[data-offer-curtain]::after { right: 0; --offer-to: 102%; box-shadow: inset 2px 0 0 rgba(240, 200, 140, 0.6), inset 46px 0 70px -36px rgba(226, 184, 119, 0.5); }
html[data-offer-curtain] body::before, html[data-offer-curtain] body::after {
  position: fixed; inset: 0; z-index: 2147483001; display: grid; place-items: center; padding: 0 24px;
  text-align: center; pointer-events: none; animation: offer-words 1.75s ease forwards;
}
/* The dark patch behind the title hides the seam's light, so it never runs through the letters. */
html[data-offer-curtain] body::before {
  padding-bottom: 1.1em;
  background: radial-gradient(ellipse 36% 20% at 50% 48%, #070605 55%, rgba(7, 6, 5, 0) 100%);
  font: italic 700 clamp(54px, 10vw, 132px)/1 "Bodoni Moda", Didot, Georgia, serif; letter-spacing: -0.01em;
  color: #e2b877; text-shadow: 0 0 40px rgba(226, 184, 119, 0.35);
}
html[data-offer-curtain] body::after {
  padding-top: clamp(110px, 15vw, 190px);
  font: 600 clamp(15px, 1.8vw, 20px)/1.4 "Schibsted Grotesk", system-ui, sans-serif; color: rgba(255, 255, 255, 0.84);
}
html[data-offer-curtain][data-offer-day="bw"] body::before { content: "Black Week"; }
html[data-offer-curtain][data-offer-day="bf"] body::before { content: "Black Friday"; }
html[data-offer-curtain][data-offer-day="cm"] body::before { content: "Cyber Monday"; }
html[data-offer-curtain][data-offer-day="bw"] body::after { content: "30% off every plan for 6 months · until Nov 29"; }
html[data-offer-curtain][data-offer-day="bf"] body::after { content: "30% off every plan for 6 months · until Sunday"; }
html[data-offer-curtain][data-offer-day="cm"] body::after { content: "Monthly plans 50% off for 6 months · today only"; }
/* Opened early: a new animation name starts the parting from where the halves are, with no delay. */
html[data-offer-curtain="open"]::before, html[data-offer-curtain="open"]::after { animation: offer-open-now 0.7s cubic-bezier(0.7, 0, 0.2, 1) forwards; }
html[data-offer-curtain="open"] body::before, html[data-offer-curtain="open"] body::after { animation: offer-words-out 0.25s ease forwards; }
@keyframes offer-open { to { transform: translate3d(var(--offer-to), 0, 0); } }
@keyframes offer-open-now { to { transform: translate3d(var(--offer-to), 0, 0); } }
@keyframes offer-words {
  0% { opacity: 0; transform: scale(0.96); }
  18%, 80% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.04); }
}
@keyframes offer-words-out { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  html[data-offer-curtain]::before, html[data-offer-curtain]::after,
  html[data-offer-curtain] body::before, html[data-offer-curtain] body::after { display: none; }
}
/* "Was" and "now" for screen readers; the homepage and the industry pages name this class differently, so it lives here. */
.offer-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
