/* BLACK FRIDAY 2026 (the owner, 25 Nov 2026; his words are in assets/promo-config.js). The banner on Home, the promo
   annual card and the offer terms on Pricing, the flag at sign-up and on the card step. Lifted from the approved mock
   (design-spec.md sections 1 to 3; the mock's card-step rules are illustrative and are NOT here).

   THE FOUR --bf-* SHADES are the owner's graphic (warm paper, sage satin), outside the 10 Sep palette. This is the only
   file allowed them (scripts/check-brand-palette.js approvedMarketingShades). No hex in main.jsx, home.html or
   pricing.html: the ribbons are inline SVG whose paths carry the bf-r-* classes below.

   THE GATE. The regular page is the HTML's default. assets/promo.js adds .bf-on to <html> only when the server says the
   offer is announced (netlify/lib/promo-state.js: its own clock AND the promo_announce switch). A failed read, or no
   JavaScript, leaves the regular page. The open-sign-up gate (.os-only / .os-off-only) is in assets/public-header.css.
   Gate only plain block or inline elements with .bf-only: display:revert gives them the browser's own display, which
   would drop a button's inline-flex (a gated control goes inside a gated wrapper instead). */
:root{
  --bf-paper:#f7f3ea;      /* the graphic's warm off-white. Navy on it: 11.0:1 */
  --bf-sage-light:#c3cdb9; /* ribbon highlight. Decoration only */
  --bf-sage:#a3b29a;       /* ribbon face, the card tab, the chip, the flag. Navy on it: 5.5:1 */
  --bf-sage-deep:#7c8f74;  /* ribbon shadow, the annual card's border. Decoration and 1px rules only, never text */
}
.bf-only{display:none}
html.bf-on .bf-only{display:revert}
html.bf-on .bf-off-only{display:none}
/* After the reveal, so a dismissed banner stays hidden (same weight, later rule). */
html.bf-dismissed .bf{display:none}

.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* ---- 1. the banner (Home, between the sticky header and <main>) ---- */
.bf{position:relative;overflow:hidden;background:var(--bf-paper);color:var(--brand-navy);border-bottom:1px solid var(--line);
  font-family:var(--font-body)}
.bf-in{position:relative;z-index:1;max-width:1344px;margin:0 auto;padding:30px 104px 30px 136px;
  display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:20px 36px}
.bf-logo{width:60px;height:auto;display:block}
.bf-kicker{margin:0 0 2px;font-family:var(--font-display);font-style:italic;font-weight:500;font-size:20px;line-height:1.2}
.bf-title{margin:0;font-family:var(--font-display);font-weight:500;font-size:clamp(26px,2.6vw,36px);line-height:1.12;
  letter-spacing:-.02em;text-wrap:balance}
.bf-deal{margin:10px 0 0;font-size:15px;line-height:1.55}
.bf-deal s{text-decoration-thickness:1.5px;color:var(--ink-soft)}
.bf-deal b{font-weight:700}
.bf-ends{margin:6px 0 0;font-size:13px;line-height:1.5;font-weight:600;letter-spacing:.01em}
.bf-figure{text-align:center;padding:0 8px;line-height:1}
.bf-figure b{display:block;font-family:var(--font-display);font-weight:500;font-size:92px;line-height:.86;letter-spacing:-.04em}
.bf-figure em{display:block;margin-top:6px;font-family:var(--font-display);font-style:italic;font-weight:500;font-size:19px}
.bf-actions{display:flex;flex-direction:column;align-items:center;gap:8px}
.bf-cta{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:12px 26px;border-radius:999px;
  background:var(--brand-navy);color:#ffffff;border:1px solid var(--brand-navy);font-size:14px;font-weight:700;
  text-decoration:none;white-space:nowrap}
.bf-cta:hover{background:var(--brand-black);border-color:var(--brand-black)}
.bf-terms{display:inline-flex;align-items:center;min-height:44px;padding:0 6px;font-size:13px;font-weight:600;color:var(--brand-navy);
  text-decoration:underline;text-underline-offset:4px}
.bf-close{position:absolute;z-index:2;top:8px;right:8px;width:44px;height:44px;display:flex;align-items:center;justify-content:center;
  border:0;border-radius:999px;background:transparent;color:var(--brand-navy);cursor:pointer;font:inherit}
.bf-close:hover{background:rgba(41,54,74,0.12)}
.bf-close svg{width:18px;height:18px;display:block}
:is(.bf-cta,.bf-terms,.bf-close,.plan-cta):focus-visible{outline:2px solid var(--brand-navy);outline-offset:3px}
/* the close button moves focus to <main> (tabindex -1): a container, so no ring around the whole page */
main#main[tabindex="-1"]:focus{outline:none}
/* the ribbons: decoration, never text. Two SVGs, one per corner. */
.bf-ribbon{position:absolute;z-index:0;pointer-events:none;width:230px;height:auto}
.bf-ribbon.tl{top:0;left:0}
.bf-ribbon.br{bottom:0;right:0;transform:rotate(180deg)}
.bf-r-deep{fill:var(--bf-sage-deep)}
.bf-r-face{fill:var(--bf-sage)}
.bf-r-light{fill:var(--bf-sage-light)}
@media (prefers-reduced-motion:no-preference){
  html.bf-on .bf{animation:bf-in .36s cubic-bezier(.23,1,.32,1) both}
  @keyframes bf-in{from{opacity:0}to{opacity:1}}
}
@media(max-width:1100px){
  .bf-in{grid-template-columns:auto minmax(0,1fr) auto;padding:26px 72px 26px 112px;gap:16px 24px}
  .bf-figure{display:none}                       /* the headline already says "Three months free" */
  .bf-ribbon{width:180px}
}
/* PHONES: compact. No logo, no figure, one ribbon behind the close button, the button and "Offer details" on one row. */
@media(max-width:700px){
  .bf-in{grid-template-columns:minmax(0,1fr);padding:16px 56px 18px 20px;gap:12px}
  .bf-logo{display:none}
  .bf-kicker{font-size:16px}
  .bf-title{font-size:23px}
  .bf-deal{margin-top:6px;font-size:14px}
  .bf-ends{font-size:12.5px}
  .bf-actions{flex-direction:row;justify-content:flex-start;gap:6px 14px;flex-wrap:wrap;margin-right:-36px}
  .bf-cta{min-height:48px;padding:10px 22px}
  .bf-ribbon{width:120px;opacity:.9}
  .bf-ribbon.tl{left:auto;right:0;transform:scaleX(-1)}   /* behind the close button, clear of the text */
  .bf-ribbon.br{display:none}
}

/* ---- 2. Pricing (pricing.html) ---- */
.plan{position:relative}
.plan-trial{margin:2px 0 0;font-size:15px;line-height:1.5}
.plan-trial b{font-weight:700}
.plan-was{font-family:var(--font-display);font-weight:500;font-size:clamp(26px,3.4vw,32px);line-height:1;color:var(--ink-soft);
  text-decoration-thickness:2px}
.plan-then{margin:0 0 4px;font-size:17px;line-height:1.5}
.plan-basis{margin:0 0 8px;font-size:14px;line-height:1.5;color:var(--ink-soft)}
.plan-ends{margin:10px 0 0;font-size:14px;line-height:1.5;font-weight:700}
/* not ".bf": that class is the banner's */
.plan-save.is-bf{display:inline-block;background:var(--bf-sage);color:var(--brand-navy)}
.plan-tab{position:absolute;top:-1px;right:24px;margin:0;padding:9px 16px 13px;background:var(--bf-sage);color:var(--brand-navy);
  font-family:var(--font-display);font-style:italic;font-weight:500;font-size:17px;line-height:1;
  clip-path:polygon(0 0,100% 0,100% 100%,50% calc(100% - 9px),0 100%)}   /* a ribbon tail */
html.bf-on .plan-annual{border-color:var(--bf-sage-deep);box-shadow:0 0 0 1px var(--bf-sage-deep),0 14px 34px rgba(41,54,74,.08)}
.plan-cta{display:flex;align-items:center;justify-content:center;min-height:48px;margin:22px 0 0;padding:12px 22px;border-radius:999px;
  background:var(--brand-navy);color:#ffffff;border:1px solid var(--brand-navy);font-size:14px;font-weight:700;text-decoration:none}
/* pricing.html's own <style> comes after this file: ".pricing a:not(.pub-btn)" (navy links) and ".plan ul{margin:20px 0 0}"
   would win a tie, so these carry one class more. */
.pricing .plans a.plan-cta{color:#ffffff;font-weight:700}
.plan-cta:hover{background:var(--brand-black)}
.plans .plan ul{margin-bottom:auto}   /* the call to action sits at the foot of both cards */
.terms-line{margin:20px 0 0;font-size:14px;line-height:1.65;color:var(--brand-navy)}
.bf-terms-box{margin:14px 0 0;border-top:1px solid var(--line)}
.bf-terms-box summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-size:14px;font-weight:700}
.bf-terms-box p{margin:0 0 14px;font-size:14px;line-height:1.7;max-width:760px}

/* ---- 3. the flag: the card step (account/onboarding.html, design-spec.md section 6) and the open sign-up form ---- */
.card-flag{display:inline-block;margin-left:8px;padding:2px 10px;border-radius:999px;background:var(--bf-sage);font-family:var(--font-display);font-style:italic;font-size:14px}
.signup-offer{margin:0 0 18px;padding:12px 14px;border-radius:12px;background:var(--bf-paper);border:1px solid var(--line);font-size:14px;line-height:1.6}
.signup-offer .card-flag{margin:0 8px 0 0}
/* the countdown under the offer's "Ends ..." line on the sign-up page, which has no strip (26 Nov 2026; REQUESTS.md BFC-1).
   Shown only with html.bfc-on (assets/bf-countdown.js); aria-hidden, the "Ends ..." sentence above it is what is read. */
.signup-offer .bfc{display:none}
html.bfc-on .signup-offer .bfc{display:block;margin:4px 0 0;font-weight:700}
.signup-offer .bfc-time{font-variant-numeric:tabular-nums}
.signup-offer .bfc-d{display:inline-block;width:.63em;text-align:center}   /* fixed-width digits: Gotham has no tabular figures */
