/* Black Friday 2026 (docs/specs/2026-11-09_black-friday-2026.md, addendum 4 = palette B "red", three cards).
   Hero countdown on pricing/index, the sale in the announcement strip, header chip, pop-up, teaser strips.
   html.bf-ended is set after the deadline (bf-countdown.js and a first-paint guard): sale content hides,
   the regular content shows again. */

:root {
    --bf-red: #ff3b30;
    --bf-red-glow: rgba(255, 59, 48, 0.35);
    --bf-gold: #FFD400;
    --bf-gold-2: #f5b300;
    --bf-green: #22c55e;
    --bf-grey: #9ca3af;
    --bf-bg: #070707;
    --bf-panel: #101010;
    --bf-panel-2: #161616;
    --bf-line: #262626;
    --bf-text: #f3f4f6;
    --bf-mono: 'Share Tech Mono', 'JetBrains Mono', ui-monospace, Consolas, 'Courier New', monospace;
}

/* Sale content is the default; the regular content shows again by itself after the deadline. */
html:not(.bf-ended) [data-sale="regular"] { display: none !important; }
html.bf-ended [data-sale="bf"] { display: none !important; }

/* ---------- hero ---------- */
.bf-hero {
    position: relative;
    margin: 0 0 1.4rem;
    padding: 2.1rem 1.5rem 1.9rem;
    border-radius: 18px;
    border: 1px solid var(--bf-line);
    background: radial-gradient(900px 300px at 50% -10%, var(--bf-red-glow), transparent 60%), linear-gradient(180deg, #121212, #0a0a0a);
    text-align: center;
    color: var(--bf-text);
    scroll-margin-top: 90px;
}
.bf-hero-tag {
    display: inline-block;
    font: 900 0.75rem/1 'Inter', system-ui, sans-serif;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #fff;
    background: var(--bf-red);
    padding: 0.45rem 0.8rem;
    border-radius: 6px;
}
.bf-hero-title {
    margin: 1rem 0 0.5rem;
    font-size: clamp(2rem, 4.2vw, 3rem);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--bf-text);
}
.bf-hero-title em { font-style: normal; color: var(--bf-red); }
.bf-hero-sub { margin: 0 0 1.4rem; font-size: 1.06rem; color: var(--bf-grey); }
.bf-clock {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 0 auto 0.65rem;
}
.bf-cell {
    min-width: 108px;
    padding: 14px 10px 10px;
    border-radius: 12px;
    background: #000;
    border: 1px solid var(--bf-line);
    box-shadow: 0 0 40px var(--bf-red-glow);
}
.bf-cell b {
    display: block;
    font: 700 44px/1 var(--bf-mono);
    color: var(--bf-red);
    text-shadow: 0 0 18px var(--bf-red-glow);
    font-variant-numeric: tabular-nums;
}
.bf-cell span {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--bf-grey);
}
.bf-ends { margin: 0 0 0.9rem; font-size: 0.9rem; font-weight: 700; color: var(--bf-red); }
.bf-lock { margin: 0 auto; max-width: 720px; font-size: 0.95rem; line-height: 1.5; color: var(--bf-text); }
.bf-lock b { color: var(--bf-red); }
.bf-cta {
    display: inline-block;
    margin-top: 1.1rem;
    min-height: 44px;
    line-height: 44px;
    padding: 0 1.4rem;
    border-radius: 12px;
    font-weight: 900;
    text-decoration: none;
    color: #000;
    background: var(--bf-gold);
}

/* ---------- pricing: three sale cards (mock-up B) ---------- */
.bf3-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 1.6rem 0 0.75rem; align-items: stretch; }
.bf3-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bf-panel);
    border: 1px solid var(--bf-line);
    border-radius: 18px;
    padding: 26px 22px 22px;
    color: var(--bf-text);
}
.bf3-card.best {
    border: 2px solid var(--bf-red);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 0 60px var(--bf-red-glow);
    transform: scale(1.04);
    background: linear-gradient(180deg, #1a1a1a, #0f0f0f);
    z-index: 1;
}
.bf3-ribbon {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bf-red);
    color: #fff;
    font: 900 11px/1 'Inter', system-ui, sans-serif;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 7px 14px;
    border-radius: 999px;
    white-space: nowrap;
}
.bf3-ribbon.outline { background: #000; color: var(--bf-red); border: 1.5px solid var(--bf-red); }
.bf3-badge {
    align-self: flex-start;
    background: var(--bf-red);
    color: #fff;
    font: 900 34px/1 'Inter', system-ui, sans-serif;
    padding: 10px 14px;
    border-radius: 10px;
}
.bf3-badge small { font-size: 14px; font-weight: 700; margin-left: 6px; opacity: 0.85; }
.bf3-period { margin: 18px 0 6px; font-size: 26px; font-weight: 900; letter-spacing: -0.01em; line-height: 1.15; text-transform: uppercase; }
.bf3-period s { color: var(--bf-grey); font-weight: 600; text-decoration-color: var(--bf-grey); text-decoration-thickness: 3px; }
.bf3-period .bf3-arrow { color: var(--bf-grey); margin: 0 6px; font-weight: 400; }
.bf3-period b { color: var(--bf-red); }
.bf3-period small { font-size: 14px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--bf-grey); }
.bf3-price { display: flex; align-items: baseline; gap: 12px; margin: 8px 0 2px; }
.bf3-price s { color: var(--bf-grey); font-size: 22px; text-decoration-color: var(--bf-grey); text-decoration-thickness: 3px; }
.bf3-price strong { font-size: 56px; font-weight: 900; line-height: 1; letter-spacing: -0.03em; color: var(--bf-text); }
.bf3-price span { color: var(--bf-grey); font-size: 13px; }
.bf3-was { color: var(--bf-grey); font-size: 12px; margin: 0 0 10px; }
.bf3-save {
    align-self: flex-start;
    display: inline-block;
    background: rgba(34, 197, 94, 0.12);
    color: var(--bf-green);
    border: 1px solid rgba(34, 197, 94, 0.35);
    font-weight: 700;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 12px;
}
.bf3-name { font-size: 15px; font-weight: 700; margin: 0 0 10px; color: var(--bf-text); }
.bf3-keys { list-style: none; padding: 0; margin: 0 0 18px; color: var(--bf-grey); font-size: 14px; line-height: 1.75; }
.bf3-keys li::before { content: "\2713  "; color: var(--bf-green); font-weight: 800; }
.bf3-cta {
    margin-top: auto;
    display: block;
    text-align: center;
    background: var(--bf-gold);
    color: #000 !important;
    font-weight: 900;
    font-size: 16px;
    padding: 15px 16px;
    min-height: 44px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.bf3-cta:hover { background: var(--bf-gold-2); }
.bf3-under { text-align: center; color: var(--bf-grey); font-size: 13px; margin: 10px 0 0; }
.bf3-under a { color: var(--bf-text); }
.bf-trust { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; color: var(--bf-grey); font-size: 13px; margin: 16px 0 0; }
.bf-trust b { color: var(--bf-text); }
.bf-trust a { color: var(--bf-text); }

/* ---------- one bar: the announcement strip above the nav shows the sale ---------- */
.bf-announce { display: none; }
html.bf-announce-on:not(.user-is-pro) .top-announcement-bar .announcement-inner { display: none !important; }
html.bf-announce-on:not(.user-is-pro) .top-announcement-bar .bf-announce {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.85rem;
    width: 100%; height: 100%; text-decoration: none; color: var(--bf-text); font: 600 0.86rem/1.2 'Inter', system-ui, sans-serif;
}
html.bf-announce-on:not(.user-is-pro) .top-announcement-bar { background: #000; border-bottom-color: var(--bf-line); }
.bf-announce-cta { color: var(--bf-text); white-space: nowrap; }
.bf-announce-cta b { color: var(--bf-red); }
.bf-announce:hover .bf-announce-cta { text-decoration: underline; }

/* fixed bar under the nav (only pages without the strip) */
.bf-bar {
    position: fixed; left: 0; right: 0; top: 70px; z-index: 9990;
    display: flex; align-items: center; justify-content: center; gap: 0.9rem;
    min-height: 44px; padding: 0.35rem 3rem 0.35rem 1rem;
    background: #000; border-bottom: 1px solid var(--bf-line);
    color: var(--bf-text); font: 600 0.86rem/1.3 'Inter', system-ui, sans-serif;
}
html.bf-bar-on body { padding-top: 44px; }
.bf-bar-tag { font: 800 0.7rem/1 'Inter', system-ui, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; background: var(--bf-red); padding: 0.32rem 0.58rem; border-radius: 4px; white-space: nowrap; }
.bf-bar-clock { font: 700 1rem/1 var(--bf-mono); color: var(--bf-red); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bf-bar-cta { color: var(--bf-text); text-decoration: none; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
.bf-bar-cta:hover { text-decoration: underline; }
.bf-bar-x { position: absolute; right: 0.35rem; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; background: transparent; color: var(--bf-grey); font-size: 1.3rem; cursor: pointer; }
.bf-bar-x:hover { color: var(--bf-text); }
html.user-is-pro .bf-bar { display: none !important; }
html.user-is-pro.bf-bar-on body { padding-top: 0; }

/* ---------- header chip in the gift button's slot ---------- */
.nav-promo-gift-btn.bf-chip-on { width: auto !important; min-width: 0 !important; padding: 0 10px !important; border-radius: 999px !important; background: #000 !important; border: 1.5px solid var(--bf-red) !important; box-shadow: none !important; animation: none !important; }
.nav-promo-gift-btn.bf-chip-on > svg, .nav-promo-gift-btn.bf-chip-on > :not(.bf-chip) { display: none !important; }
.bf-chip { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.bf-chip b { font: 800 0.74rem/1 'Inter', system-ui, sans-serif; color: var(--bf-red); letter-spacing: 0.02em; }
.bf-chip i { font: 600 0.78rem/1 var(--bf-mono); font-style: normal; color: var(--bf-text); }

/* ---------- paywall lock overlay: countdown under the Upgrade buttons ---------- */
.bf-lock-timer { margin: 0.6rem 0 0; font-size: 0.82rem; color: #cbd5e1; text-align: center; }
.bf-lock-timer b { font: 700 1rem var(--bf-mono); color: var(--bf-red); font-variant-numeric: tabular-nums; }

/* ---------- pop-up step 1 during the sale ---------- */
.bf-promo .promo-title-main { margin-top: 0.6rem; }
.bf-promo .promo-title-main em { font-style: normal; color: var(--bf-red); }
.bf-promo-tag { background: var(--bf-red) !important; border-color: var(--bf-red) !important; color: #fff !important; }
.bf-promo-tag .promo-pulse-dot { background: #fff !important; }
.bf-clock-sm { max-width: 380px; margin: 0.6rem auto 0.8rem; gap: 8px; }
.bf-clock-sm .bf-cell { min-width: 0; flex: 1; padding: 0.5rem 0.2rem 0.4rem; box-shadow: 0 0 22px var(--bf-red-glow); }
.bf-clock-sm .bf-cell b { font-size: 30px; }
.bf-promo-rows { display: grid; gap: 0.5rem; margin: 0.4rem 0 0.7rem; }
.bf-promo-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.7rem; padding: 0.6rem 0.7rem; border: 1px solid var(--bf-line); border-radius: 12px; background: var(--bf-panel); text-align: left; }
.bf-promo-row.best { border: 2px solid var(--bf-red); background: var(--bf-panel-2); box-shadow: 0 0 26px -6px var(--bf-red-glow); }
.bf-promo-badge { font: 900 1.05rem/1 'Inter', system-ui, sans-serif; color: #fff; background: var(--bf-red); border-radius: 8px; padding: 0.4rem 0.5rem; }
.bf-promo-period { font-size: 0.82rem; font-weight: 900; color: var(--bf-red); text-transform: uppercase; white-space: nowrap; }
.bf-promo-period s { color: var(--bf-grey); font-weight: 700; text-decoration-color: var(--bf-grey); text-decoration-thickness: 2px; }
.bf-promo-best { display: inline-block; margin-bottom: 0.2rem; font-size: 0.6rem; font-weight: 900; letter-spacing: 0.08em; color: #fff; background: var(--bf-red); border-radius: 999px; padding: 0.12rem 0.5rem; }
.bf-promo-price { font-size: 0.86rem; color: var(--bf-grey); }
.bf-promo-price s { color: var(--bf-grey); text-decoration-color: var(--bf-grey); text-decoration-thickness: 2px; }
.bf-promo-price b { font-weight: 900; color: var(--bf-text); font-size: 1.1rem; }
.bf-promo-buy { min-height: 44px; border: 0; border-radius: 10px; padding: 0 0.8rem; font-weight: 900; font-size: 0.82rem; color: #000; background: var(--bf-gold); cursor: pointer; white-space: nowrap; }
.bf-promo-buy:hover { background: var(--bf-gold-2); }
.bf-promo-lock { margin: 0.2rem 0 0.6rem; font-size: 0.82rem; line-height: 1.45; color: var(--bf-text); text-align: center; }
.bf-promo-lock b { color: var(--bf-red); }

/* ---------- COT / gamma dashboard teaser strip during the sale ---------- */
.bf-teaser-title { display: block; margin-top: 5px; color: var(--bf-text); font-size: 1.15rem; font-weight: 900; line-height: 1.4; }
.bf-teaser-title em { font-style: normal; color: var(--bf-red); }
.bf-teaser-sub { display: block; font-size: 0.86rem; color: #cbd5e1; margin-top: 4px; }
.bf-teaser-sub b { font: 700 1rem var(--bf-mono); color: var(--bf-red); }
.bf-teaser-btn { background: var(--bf-gold) !important; color: #000 !important; border: 0 !important; font-weight: 900 !important; }

@media (max-width: 768px) {
    .bf-hero { padding: 1.5rem 1rem 1.4rem; }
    .bf-hero-tag { font-size: 0.66rem; letter-spacing: 0.1em; }
    .bf-hero-title { font-size: 32px; }
    .bf-hero-sub { font-size: 15px; }
    .bf-clock { gap: 8px; }
    .bf-cell { min-width: 0; flex: 1; padding: 12px 6px 8px; }
    .bf-cell b { font-size: 30px; }
    .bf3-cards { grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 1.9rem; }
    .bf3-card.best { transform: none; order: -1; }
    .bf3-badge { font-size: 28px; }
    .bf3-period { font-size: 22px; }
    .bf3-price strong { font-size: 46px; }
    .bf-bar { top: auto; bottom: 0; border-bottom: 0; border-top: 1px solid var(--bf-line); flex-wrap: wrap; gap: 0.25rem 0.7rem; padding: 0.4rem 2.9rem 0.4rem 0.75rem; }
    html.bf-bar-on body { padding-top: 0; padding-bottom: 64px; }
    html.user-is-pro.bf-bar-on body { padding-bottom: 0; }
    .bf-bar .bf-bar-tag { display: none; }
    html.bf-announce-on:not(.user-is-pro) .top-announcement-bar .bf-announce { flex-wrap: wrap; gap: 0.1rem 0.6rem; font-size: 0.76rem; }
    .bf-announce-cta { flex-basis: 100%; text-align: center; }
    .bf-chip i { display: none; }
    .bf-promo-row { grid-template-columns: auto 1fr; }
    .bf-promo-buy { grid-column: 1 / -1; width: 100%; }
}
@media (min-width: 769px) and (max-width: 1100px) {
    .bf3-cards { gap: 14px; }
    .bf3-badge { font-size: 28px; }
    .bf3-period { font-size: 21px; }
    .bf3-price strong { font-size: 44px; }
}
