/* Black Friday, round 2. Ink, cream and lime only. Mobile first. */
.bf { font-family: inherit; }
.bf a, a.bf { text-decoration: none; }
.bf-cd { font-variant-numeric: tabular-nums; }
.bf .l { color: var(--lime-bright); }
.bf s { text-decoration-thickness: 2px; }

/* Bar: option 1 on every screen, option 2 on phones, option 4 on every screen */
.bf-bar { background: var(--ink); color: var(--cream); position: relative; z-index: 6; animation: bf-in 420ms var(--ease-out) both; }
.bf-bar .in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gut); min-height: 72px; }
.bf-bar .tx { display: grid; gap: 3px; min-width: 0; }
.bf-bar .dt { display: none; }
.bf-bar h2 { margin: 0; font-size: 20px; line-height: 1.05; font-weight: 700; letter-spacing: -0.025em; }
.bf-bar p { margin: 0; font-size: 14px; line-height: 1.25; font-weight: 520; }
.bf-bar p b { color: var(--lime-bright); font-weight: 700; }
.bf-bar .go { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--lime-bright); color: var(--ink); font-weight: 680; font-size: 15px; transition: transform 160ms var(--ease-out); -webkit-tap-highlight-color: transparent; }
.bf-bar .go:active { transform: scale(0.97); }
.bf-bar.slim .in { min-height: 56px; }
.bf-bar.slim h2 { font-size: 20px; }
.bf-bar.slim p { display: none; }

/* Top takeover: option 3 */
.bf-top { background: var(--ink); color: var(--cream); position: relative; z-index: 6; padding: 20px var(--gut) 26px; }
.bf-top .wrap { display: grid; gap: 16px; }
.bf-top h2 { margin: 0; font-size: clamp(46px, 13.4vw, 120px); font-weight: 650; letter-spacing: -0.05em; line-height: 0.9; }
.bf-top h2 span { color: var(--lime-bright); }
.bf-top .sub { margin: 0; font-size: 18px; line-height: 1.35; font-weight: 520; }
.bf-top .meta { display: flex; align-items: baseline; gap: 12px; margin: 0 0 4px; }
.bf-top .end { margin: 0 0 14px; font-size: 15px; font-weight: 520; }
.bf-top .meta .pr { font-size: 34px; font-weight: 650; letter-spacing: -0.03em; color: var(--lime-bright); }
.bf-top .meta s { color: #b9b4a2; font-size: 18px; }
.bf-top .btn { --cta-bg: var(--lime-bright); --cta-text: var(--ink); min-height: 58px; font-size: 18px; }
.bf-top .q { animation: bf-rise 560ms var(--ease-out) both; animation-delay: calc(var(--d, 0) * 70ms); }

/* Corner sash: option 2 on desktop. It carries the offer, it is not decoration. */
.bf-sash { display: none; }
.bf-m { display: block; }
@media (min-width: 900px) {
  .bf-sash { display: block; position: absolute; top: 0; left: 0; width: 330px; height: 330px; overflow: hidden; z-index: 7; pointer-events: none; }
  .bf-sash a { pointer-events: auto; position: absolute; left: -104px; top: 66px; width: 470px; padding: 12px 0 13px; transform: rotate(-45deg); transform-origin: 50% 50%; background: var(--ink); color: var(--cream); text-align: center; display: grid; gap: 0; line-height: 1.05; animation: bf-sash 700ms var(--ease-out) both; transition: filter 200ms var(--ease-out); }
  .bf-sash b { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
  .bf-sash span { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; color: var(--lime-bright); }
  .bf-m { display: none; }
}

/* Big band: option 4 */
.bf-c { background: var(--ink); color: var(--cream); padding-block: 64px 72px; }
.bf-c .wrap { display: grid; gap: 28px; }
.bf-c h2 { margin: 0; font-size: clamp(46px, 13vw, 132px); font-weight: 650; letter-spacing: -0.05em; line-height: 0.9; }
.bf-c h2 span { color: var(--lime-bright); }
.bf-c .sub { margin: 14px 0 0; font-size: 19px; line-height: 1.45; max-width: 28em; }
.bf-c .price { display: flex; align-items: baseline; gap: 14px; font-size: clamp(46px, 11vw, 88px); font-weight: 650; letter-spacing: -0.04em; line-height: 1; }
.bf-c .price s { font-size: 0.5em; font-weight: 520; color: #b9b4a2; }
.bf-c .price b { color: var(--lime-bright); }
.bf-c .cd { display: flex; gap: 22px; margin: 22px 0 26px; }
.bf-c .cd div { display: grid; gap: 2px; }
.bf-c .cd strong { font-size: clamp(34px, 9vw, 56px); font-weight: 650; letter-spacing: -0.03em; line-height: 1; }
.bf-c .cd span { font-size: 14px; color: #b9b4a2; }
.bf-c .btn { --cta-bg: var(--lime-bright); --cta-text: var(--ink); min-height: 60px; font-size: 18px; }
.bf-c .fine { margin: 12px 0 0; font-size: 14px; color: #b9b4a2; }
.bf-c .q { animation: bf-rise 560ms var(--ease-out) both; animation-delay: calc(var(--d, 0) * 70ms); }

/* Sticky buy bar, sale state: the price first, then one lime line */
.buybar .t .bfk { display: block; margin-top: 1px; font-size: 13px; font-weight: 700; color: var(--lime-bright); }
.buybar .t s { font-weight: 500; opacity: 0.6; }

/* The round sticker, as a Black Friday sticker (option 2 on phones) */
.badge .bfs { position: relative; display: grid; justify-items: center; line-height: 0.9; color: var(--lime-bright); font-weight: 700; letter-spacing: -0.04em; }
.badge .bfs b { font-size: 30px; font-weight: 700; }
.badge .bfs i { font-style: normal; font-size: 16px; color: var(--cream); letter-spacing: -0.01em; }

@keyframes bf-in { from { transform: translateY(-100%); } }
@keyframes bf-rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes bf-sash { from { transform: rotate(-45deg) translateY(-60px); opacity: 0; } }

@media (hover: hover) and (pointer: fine) {
  .bf-bar .go:hover { transform: translateY(-1px); }
  .bf-sash a:hover { filter: brightness(1.15); }
}
@media (min-width: 900px) {
  .bf-bar .in { justify-content: center; gap: 36px; min-height: 76px; }
  .bf-bar .tx { display: flex; align-items: baseline; gap: 18px; }
  .bf-bar h2 { font-size: 26px; }
  .bf-bar .dt { display: inline; }
  .bf-bar p { font-size: 17px; }
  .bf-top { padding-block: 44px 52px; }
  .bf-top .wrap { grid-template-columns: 1.5fr 1fr; gap: 72px; align-items: center; }
  .bf-top h2 { font-size: clamp(64px, 6.6vw, 104px); }
  .bf-top .sub { font-size: 21px; }
  .bf-top .meta .pr { font-size: 48px; }
  .bf-top .meta s { font-size: 24px; }
  .bf-top .end { font-size: 17px; }
  .bf-top .btn { max-width: 26rem; min-height: 64px; font-size: 19px; }
  .bf-c { padding-block: 120px 130px; }
  .bf-c h2 { font-size: clamp(64px, 6.6vw, 104px); }
  .bf-c .wrap { grid-template-columns: 1.25fr 1fr; gap: 80px; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  .bf-bar, .bf-sash a { animation: none; }
  .bf-top .q, .bf-c .q { animation: none; }
}

/* Compact takeover (phone alternative): same look, a third of the height */
.bf-k { background: var(--ink); color: var(--cream); position: relative; z-index: 6; padding: 16px var(--gut) 18px; }
.bf-k .wrap { display: grid; grid-template-columns: 1fr auto; gap: 12px 14px; align-items: end; }
.bf-k h2 { margin: 0; white-space: nowrap; font-size: clamp(30px, 8.8vw, 40px); font-weight: 650; letter-spacing: -0.05em; line-height: 0.92; }
.bf-k h2 span { color: var(--lime-bright); }
.bf-k .pc { margin: 0; display: grid; gap: 4px; justify-items: end; text-align: right; }
.bf-k .pc .row { display: flex; align-items: baseline; gap: 8px; }
.bf-k .pc b { font-size: 32px; font-weight: 650; letter-spacing: -0.03em; line-height: 1; color: var(--lime-bright); }
.bf-k .pc s { font-size: 16px; color: #b9b4a2; }
.bf-k .pc .bf-cd { font-size: 13px; font-weight: 520; color: #d8d3c2; }
.bf-k .btn { grid-column: 1 / -1; --cta-bg: var(--lime-bright); --cta-text: var(--ink); min-height: 52px; font-size: 17px; }
.bf-k .q { animation: bf-rise 560ms var(--ease-out) both; animation-delay: calc(var(--d, 0) * 70ms); }
@media (prefers-reduced-motion: reduce) { .bf-k .q { animation: none; } }

/* Sticky buy bar on desktop: the green band turns ink for the sale, like the phone one */
.buybar .t .bfk { color: var(--lime-bright); }
@media (min-width: 700px) {
  .buybar.bf-sale { background: var(--ink); color: var(--cream); }
  .buybar.bf-sale .btn { --cta-bg: var(--lime-bright); --cta-text: var(--ink); }
  .buybar.bf-sale .t .bfk { display: inline; margin: 0; font-size: 16px; }
}

/* Sale price inside the buy buttons: new price, old price struck through */
.btn .price .was { margin-left: 7px; font-weight: 500; opacity: 0.6; text-decoration: line-through; text-decoration-thickness: 1.5px; }

/* Small phones (360 to 375px wide): keep the bar to two lines and the sale price on one line */
@media (max-width: 380px) {
  .bf-bar h2, .bf-bar.slim h2 { font-size: 18px; }
  .bf-bar .go { padding: 0 14px; }
  .btn:has(.was) .arr { display: none; }
}

/* Offer card: sale price big, old price struck beside it */
.price-big .bf-was { align-self: baseline; font-size: 30px; font-weight: 520; letter-spacing: -0.02em; opacity: 0.5; text-decoration: line-through; text-decoration-thickness: 2px; }
@media (max-width: 480px) { .cta-row .btn:has(.was) .arr { display: none; } }

/* Round 4: the code is the call to action */
.bf-bar .go { flex-direction: column; justify-content: center; align-items: center; gap: 0; padding: 0 16px; line-height: 1; min-height: 48px; }
.bf-bar .go small { font-size: 11.5px; font-weight: 600; letter-spacing: 0; }
.bf-bar .go b { font-size: 17px; font-weight: 750; letter-spacing: 0.06em; margin-top: 2px; }
.bf-top .meta { align-items: baseline; gap: 12px; }
.bf-top .meta .lbl { font-size: 18px; font-weight: 560; }
.bf-top .meta .pr { letter-spacing: 0.04em; }
.bf-hint { margin: 10px 0 0; font-size: 14px; line-height: 1.3; font-weight: 560; color: var(--ink); text-align: center; }
.bf-hint b { font-weight: 800; letter-spacing: 0.05em; }
.buybar .t .bfk { font-size: 12.5px; }
@media (min-width: 900px) {
  .bf-hint { text-align: left; font-size: 15px; }
  .bf-top .meta .lbl { font-size: 22px; }
}
@media (max-width: 380px) { .bf-bar .go { padding: 0 12px; } }
.bf-hint { order: 2; }
.v-C .bf-hint, .v-D .bf-hint, .v-E .bf-hint { order: 2; margin-top: -2px; }
html.bf-on .hero-promo { display: none !important; }
@media (min-width: 700px) { .buybar .t .bfk br { display: none; } }
.buybar.bf-sale .t b { display: block; }
@media (min-width: 700px) { .buybar.bf-sale .t b { display: inline; } }
[data-bf][hidden] { display: none !important; }

/* Phone mock-up: banner under the header */
.bf-bar.inset { margin: 2px var(--gut) 14px; border-radius: 18px; }
.bf-bar.inset .in { padding-inline: 16px; }

/* Round 5: sticky bar. Cover, the sale name in white, one lime line, and the code as the button. */
.buybar.bf-sale .t { line-height: 1.2; }
.buybar.bf-sale .t b.bft { display: block; font-size: 17px; font-weight: 700; letter-spacing: -0.015em; color: var(--cream); }
.buybar.bf-sale .t .bfk { display: block; margin: 1px 0 0; font-size: 14px; font-weight: 700; color: var(--lime-bright); }
.buybar.bf-sale .btn { white-space: nowrap; font-size: 16px; padding-inline: 18px; }
@media (min-width: 700px) {
  .buybar.bf-sale .t { display: flex; align-items: baseline; gap: 14px; }
  .buybar.bf-sale .t b.bft { font-size: 20px; }
  .buybar.bf-sale .t .bfk { display: inline; font-size: 17px; margin: 0; }
}
@media (max-width: 380px) { .buybar.bf-sale .btn { font-size: 15px; padding-inline: 14px; } .buybar.bf-sale .t b.bft { font-size: 16px; } }

/* Round 5: the code in the offer card. Plain (as before), coupon block, or corner ribbon. */
.code .l::after { content: ":"; }
.code[data-bf] { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "l c" "r c"; align-items: center; gap: 2px 16px; width: 100%; box-sizing: border-box; background: var(--ink); color: var(--cream); border-radius: 14px; padding: 16px 18px; font-size: 14.5px; font-weight: 520; }
.code[data-bf] .l { grid-area: l; font-size: 17px; font-weight: 700; color: var(--cream); letter-spacing: -0.01em; align-self: end; }
.code[data-bf] .l::after { content: none; }
.code[data-bf] .c { grid-area: c; font-size: 28px; font-weight: 750; letter-spacing: 0.05em; color: var(--lime-bright); }
.code[data-bf] .r { grid-area: r; align-self: start; color: #d8d3c2; }
.code[data-bf] .r b { color: var(--lime-bright); font-weight: 700; }
.code[data-bf] .r { font-size: 13.5px; white-space: nowrap; }
.code[data-bf] .c { font-size: 26px; }
@media (max-width: 380px) {
  .code[data-bf] { padding: 14px 14px; gap: 2px 10px; }
  .code[data-bf] .l { font-size: 15.5px; }
  .code[data-bf] .r { font-size: 12.5px; }
  .code[data-bf] .c { font-size: 22px; letter-spacing: 0.03em; }
}
/* On the glossary page the card is dark, so the code block there stays light */
.pk .code[data-bf] { background: var(--lime-tint); color: var(--ink); }
.pk .code[data-bf] .l { color: var(--ink); }
.pk .code[data-bf] .c { color: var(--lime-ink); }
.pk .code[data-bf] .r, .pk .code[data-bf] .r b { color: var(--ink); }
