/* The December 2026 promotional bar.
 *
 * TWO RULES GOVERN THIS FILE.
 *
 * 1. IT DEFAULTS TO HIDDEN. The bar is shown only when the inline gate in each page's <head> has
 *    set `data-offer="on"` on <html>. If the script does not run — JavaScript off, a parse error,
 *    a stale cached copy — the offer is simply absent. That is the safe direction: this site is
 *    static, deploys are a human uploading files, and nothing else here can make a promise stop.
 *    An offer that fails to appear costs a click; an offer still running in March is an Article 11
 *    problem.
 *
 * 2. IT USES ONLY THE ELEVEN TOKENS EVERY PAGE DEFINES. The homepage declares twenty-odd custom
 *    properties; pricing.html and the other inner pages declare eleven: --navy --navy-700
 *    --orange --orange-600 --ink --muted --line --bg --bg-soft --r --max. Anything else —
 *    --orange-700, --orange-ink, --navy-900, --line-soft, --r-sm, --tint, any --sh-* — resolves
 *    to nothing on those pages, and an unresolved var() in a background makes the declaration
 *    invalid, so the bar would render with no background and white-on-white text. Every colour
 *    below is either one of the eleven or a literal.
 */

:root[data-offer="on"] .offer-bar { display: block }
.offer-bar { display: none }

.offer-bar {
  background: linear-gradient(135deg, #233746 0%, #16222b 100%);
  color: #fff;
  font-size: 15px;
  line-height: 1.55;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.offer-bar__in {
  max-width: var(--max, 1120px);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  flex-wrap: wrap;
  text-align: center;
}
.offer-bar b { font-weight: 800; color: #ffb08c }
.offer-bar a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.offer-bar a:hover { color: #ffb08c }

/* The bar sits ABOVE a sticky header on the pages that have one, and must not be sticky itself —
   two stacked sticky elements leave the second pinned under the first and the content scrolling
   behind both. It scrolls away; the offer is repeated on the pricing page where it is binding. */
.offer-bar { position: relative; z-index: 90 }

@media (max-width: 640px) {
  .offer-bar { font-size: 14px; padding: 10px 0 }
  .offer-bar__in { padding: 0 16px; gap: 4px 10px }
}

/* ---- The offer block on the pricing page --------------------------------------------------
 * This one is NOT gated on the script. It is the contractual statement of the offer, it lives in
 * the document clause 2 of the terms incorporates, and it carries data-offer-ends so that
 * check-site.py fails loudly the day after it expires. Removing it is a deliberate edit to one
 * page per language, which is what a term of a contract should require.
 */
.offer-note {
  border: 1px solid var(--orange, #FA4D09);
  border-radius: var(--r, 16px);
  background: #fff8f5;
  padding: 22px 24px;
  margin: 26px 0;
}
.offer-note p:last-child { margin-bottom: 0 }
.offer-note__tag {
  display: inline-block;
  background: var(--orange, #FA4D09);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 12px;
}
