/* CMM campaign (Black Friday + Cyber Monday 2026, cmm-marketing 0.6.13). Existing tokens only; Lemon only on dark.
   Loaded only while the campaign is switched on (Settings → Campaign). */

/* Announcement bar (top of every page except /black-friday/ and /scan/) */
.cmm-promo-bar { background: var(--ink); color: #fff; font-size: .9375rem; line-height: 1.4; }
.cmm-promo-bar__inner { display: flex; align-items: center; justify-content: center; gap: 10px 14px; min-height: 44px; padding-block: 8px; flex-wrap: wrap; text-align: center; }
.cmm-promo-bar__tag { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: var(--lemon); color: var(--ink); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.cmm-promo-bar__text { margin: 0; color: #fff; }
.cmm-promo-bar__text strong { font-weight: 600; }
.cmm-promo-bar__meta { color: var(--on-dark-2); }
.cmm-promo-bar__meta .mono { color: var(--lemon); font-weight: 600; }
.cmm-promo-bar__link:not(#cmm-guard) { display: inline-flex; align-items: center; gap: 6px; color: var(--lemon); font-weight: 600; text-decoration: none; white-space: nowrap; }
.cmm-promo-bar__link:not(#cmm-guard):hover { text-decoration: underline; text-underline-offset: 3px; }
.cmm-promo-bar__link .icon { width: 16px; height: 16px; }
.cmm-promo-bar__link:focus-visible { outline: 2px solid var(--lemon); outline-offset: 3px; border-radius: 4px; }
@media (max-width: 640px) {
  .cmm-promo-bar { font-size: .875rem; }
  .cmm-promo-bar__inner { justify-content: flex-start; text-align: left; gap: 6px 10px; padding-block: 10px; }
  .cmm-promo-bar__tag { display: none; }
  .cmm-promo-bar__meta { display: block; }
}

/* Offer price on a plan card (/pricing/ Agency card and the landing page card) */
.plan__promo-tag { display: flex; flex-wrap: wrap; gap: 6px; margin: 22px 0 0; font-size: .8125rem; font-weight: 700; }
.plan__promo-tag span { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; background: var(--ink); color: #fff; letter-spacing: .02em; }
.plan__promo-tag .plan__promo-off { background: var(--lemon); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.plan__price--promo .plan__was { align-self: baseline; }
/* The hidden attribute must win over .plan__price { display: flex } (pages.css), or both prices show. */
[data-cmm-campaign-during][hidden], [data-cmm-campaign-after][hidden] { display: none !important; }
.plan__was { font-size: 1.375rem; font-weight: 600; color: var(--text-3); }
.plan__was s { text-decoration-thickness: 2px; }
.plan__promo-terms { margin: 10px 0 0; font-size: var(--fs-meta); line-height: 1.45; color: var(--text-2); }
.plan__promo-terms .mono { font-weight: 600; color: var(--ink); }
.plan__promo-terms a:not(#cmm-guard) { color: var(--viridian-700); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* Landing page */
.bf-hero { position: relative; padding: clamp(40px, 6vw, 88px) 0 clamp(48px, 6vw, 88px); overflow-x: clip; }
.bf-hero::before { content: ""; position: absolute; inset: -20% -10% auto 40%; height: 120%; background: radial-gradient(closest-side, rgba(0,148,101,.10), transparent 70%); pointer-events: none; }
.bf-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(40px, 5vw, 80px); align-items: center; }
.bf-hero__title { margin: 18px 0 0; font-size: var(--fs-display-s); line-height: 1.04; font-weight: 700; letter-spacing: -.026em; color: var(--ink); max-width: 13em; text-wrap: balance; }
.bf-hero__lead { margin: 20px 0 0; max-width: 34em; font-size: var(--fs-lead); line-height: 1.55; color: var(--text-2); }
.bf-hero__lead strong { color: var(--ink); }
.bf-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 28px; }
.bf-hero__actions .btn { min-height: 52px; }
.bf-hero__actions .btn--primary .g-mark { box-sizing: content-box; width: 15px; height: 15px; padding: 4px; border-radius: 50%; background: #fff; }
.bf-hero__ends { display: flex; align-items: center; gap: 8px; margin: 22px 0 0; font-size: var(--fs-meta); color: var(--text-3); }
.bf-hero__ends .icon { width: 16px; height: 16px; flex: none; }
.bf-hero--ended .bf-hero__title { max-width: 16em; }

.bf-code { margin-top: 28px; max-width: 460px; }
.bf-code__box { display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 18px; border: 2px dashed var(--viridian); border-radius: var(--r-md); background: #fff; }
.bf-code__label { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.bf-code__value { flex: 1; font-size: 1.5rem; font-weight: 700; letter-spacing: .08em; color: var(--ink); }
.bf-code__copy { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 0; border-radius: var(--r-sm); background: var(--ink); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.bf-code__copy .icon { width: 18px; height: 18px; color: var(--lemon); }
.bf-code__copy:hover { background: var(--dusky); }
.bf-code__copy:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.bf-code__copy.is-copied { background: var(--viridian-700); }
.bf-code__status { min-height: 1.4em; margin: 8px 0 0; font-size: var(--fs-meta); color: var(--viridian-700); }

.bf-plan { max-width: 440px; width: 100%; justify-self: end; }
/* .plan uses a subgrid to align the three cards on /pricing/. On its own here it must keep its own rows, or it
   inherits the hero grid's rows and stretches. */
.bf-hero__grid > .bf-plan { grid-row: auto; grid-template-rows: auto auto auto 1fr auto; align-self: center; }

.bf-h2 { margin: 0; font-size: var(--fs-h3, 1.75rem); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.bf-steps { padding: clamp(48px, 6vw, 88px) 0; background: var(--paper); border-block: 1px solid var(--line); }
.bf-steps__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 28px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.bf-steps__list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 22px 24px 4px 0; }
.bf-steps__list li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.bf-steps__num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--lemon); font-weight: 700; }
.bf-steps__list strong { display: block; color: var(--ink); font-size: 1.0625rem; }
.bf-steps__list strong + span { display: block; margin-top: 6px; color: var(--text-2); line-height: 1.5; }

.bf-terms { padding: clamp(48px, 6vw, 88px) 0 clamp(64px, 8vw, 112px); }
.bf-terms__grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(32px, 5vw, 80px); }
.bf-terms__lead { margin: 12px 0 0; color: var(--text-2); line-height: 1.55; }
.bf-terms__list { margin: 0; border-top: 1px solid var(--line-strong); }
.bf-terms__list > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.bf-terms__list dt { font-weight: 700; color: var(--ink); }
.bf-terms__list dd { margin: 0; color: var(--text-2); line-height: 1.55; }
.bf-terms__list a:not(#cmm-guard) { color: var(--viridian-700); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 1023px) {
  .bf-hero__grid, .bf-terms__grid { grid-template-columns: minmax(0, 1fr); }
  .bf-plan { justify-self: start; }
  .bf-steps__list { grid-template-columns: minmax(0, 1fr); }
  .bf-steps__list li, .bf-steps__list li + li { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .bf-code__box { flex-wrap: wrap; }
  .bf-code__label { width: 100%; }
  .bf-code__copy { width: 100%; justify-content: center; }
  .bf-hero__actions .btn { width: 100%; }
  .bf-terms__list > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
