/* Nicholas's Nov 25 spec as reviewed in #164. Used by both the Next export and Fly. */
.bf-offer {
  --bf-bg: #0b0b0b;
  --bf-purple: #6559ff;
  --bf-muted: rgb(255 255 255 / 60%);
  font-family: inherit;
}
.bf-offer [hidden], [data-bf-wrapper]:empty { display: none !important; }
.bf-top, .bf-bottom, .bf-card, .bf-dialog { background: var(--bf-bg); color: white; }
.bf-offer s { color: rgb(255 255 255 / 50%); }
.bf-accent { color: var(--bf-purple); }
.bf-underline { position: relative; display: inline-block; white-space: nowrap; }
.bf-underline svg { position: absolute; left: 0; bottom: -4px; width: 100%; height: 6px; overflow: visible; color: white; pointer-events: none; }
.bf-card .bf-underline svg { bottom: -8px; height: 8px; }
.bf-dialog .bf-underline svg { bottom: -10px; height: 10px; }
.bf-cta {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  padding: 0 16px; border-radius: 8px; background: var(--bf-purple); color: white;
  white-space: nowrap; font-size: 14px; line-height: 1.25; font-weight: 600; text-decoration: none;
  box-shadow: inset 0 1px 0 #fff3, inset 0 -2px 0 #0002;
}
.bf-cta:hover { background: #5448e3; color: white; }
.bf-offer :is(button,a):focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.bf-row, .bf-ends, .bf-middle > div { display: flex; align-items: center; justify-content: center; }
.bf-ends { gap: 6px; color: var(--bf-muted); font-size: 11px; font-weight: 500; }
.bf-top { border-bottom: 1px solid #1f1f1f; }
.bf-top .bf-row { min-height: 43px; gap: 20px; }
.bf-top .bf-cta { min-height: 32px; }
.bf-badge {
  flex: none; border: 1px solid #6559ff99; border-radius: 999px; background: #6559ff33;
  padding: 2px 8px; font-size: 11px; font-weight: 800; line-height: 15px;
  letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.bf-top-term { font-size: 14px; font-weight: 500; }
.bf-top-term .bf-accent { font-weight: 700; }
.bf-trial-intro, .bf-top .bf-ends { color: rgb(255 255 255 / 70%); }
.bf-top .bf-ends { border-left: 1px solid #ffffff26; padding-left: 20px; font-size: 12px; }
.bf-clock { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 2.125rem; gap: 4px; align-items: center; white-space: nowrap; }
.bf-clock > span {
  display: grid; grid-template-columns: 1.3em .85em; column-gap: 1px; align-items: center; justify-content: center;
  height: 20px; text-align: center; border-radius: 4px; background: white; color: #111827;
  font-size: 12px; line-height: 1; font-variant-numeric: tabular-nums;
}
.bf-clock small { color: #535c69; font-size: 10px; line-height: 1; }
/* Center the visible unit beside the numerals. Lowercase m and s have no ascender. */
.bf-clock:not(.bf-boxes) small { transform: translateY(-.08em); }
.bf-clock:not(.bf-boxes) :is([data-unit="minutes"], [data-unit="seconds"]) + small { transform: translateY(-.16em); }
.bf-bottom {
  position: fixed; inset: auto 0 0; z-index: 40; border-top: 1px solid #27272a;
  padding-bottom: env(safe-area-inset-bottom); animation: bf-slide .24s ease-out;
}
.bf-bottom .bf-row {
  display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 32px; min-height: 63px;
}
.bf-bottom-copy { min-width: 0; line-height: 1.25; }
.bf-bottom-copy strong { font-size: 15px; text-transform: uppercase; letter-spacing: -.025em; }
.bf-bottom-copy p { margin-top: 2px; color: var(--bf-muted); font-size: 13px; }
.bf-middle { text-align: center; font-size: 14px; line-height: 1.25; }
.bf-middle p > span { color: var(--bf-muted); }
.bf-middle > div { margin-top: 4px; gap: 8px; }
.bf-middle button { color: white; font-size: 12px; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.bf-bottom .bf-cta { min-height: 40px; padding-inline: 24px; justify-self: end; }
.bf-bottom .bf-cta .bf-footer-desktop { display: inline-flex; align-items: center; gap: 6px; }
.bf-footer-phone, .bf-popup-phone { display: none; }
[data-scroll-container]:has(.bf-bottom) [data-bf-spacer] { height: calc(64px + env(safe-area-inset-bottom)); }
.bf-home-line { text-align: center; font-size: 14px; color: #4b5563; }
.bf-home-line strong { color: #111827; font-weight: 600; }
.bf-home-line .bf-cta {
  padding: 0; background: transparent; box-shadow: none; color: #6559ff; text-decoration: underline; text-underline-offset: 2px;
}
.bf-card, .bf-dialog { text-align: center; }
.bf-card { border: 1px solid #1f1f1f; border-radius: 12px; padding: 20px 16px 16px; }
[data-black-friday-job].bf-offer { margin-top: 16px; }
.bf-eyebrow, .bf-deadline { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.bf-card .bf-eyebrow { color: rgb(255 255 255 / 70%); }
.bf-card .bf-heading { margin-top: 6px; font-size: 36px; line-height: 1; letter-spacing: -.025em; text-transform: uppercase; }
.bf-card .bf-heading strong { font-weight: 800; }
.bf-card-price { margin-top: 20px; color: rgb(255 255 255 / 70%); font-size: 13px; line-height: 1.375; }
.bf-card-price strong { color: white; }
.bf-card-price > :last-child { display: block; color: rgb(255 255 255 / 55%); }
.bf-card .bf-cta { margin-top: 12px; min-height: 44px; width: 100%; max-width: 320px; font-size: 16px; }
.bf-card .bf-ends, .bf-dialog .bf-ends { margin-top: 12px; }
.bf-dialog {
  position: fixed; inset: 0; margin: auto; width: min(448px, calc(100% - 32px)); max-height: calc(100dvh - 32px);
  overflow: auto; padding: 32px 32px 20px; border: 1px solid #27272a; border-radius: 16px;
  box-shadow: 0 10px 15px -3px #0002, 0 4px 6px -4px #0002;
  background: radial-gradient(ellipse 70% 128px at 50% 16px, #6559ff73, #6559ff1a 60%, transparent), #09090b;
}
.bf-dialog::backdrop { background: rgb(0 0 0 / 75%); backdrop-filter: blur(4px); }
.bf-dialog .bf-eyebrow, .bf-benefits li::before { color: #818cf8; }
.bf-dialog h2 { margin-top: 12px; font-family: inherit; font-weight: 800; font-size: 30px; line-height: 1.25; letter-spacing: -.025em; text-wrap: balance; }
.bf-dialog h2:focus { outline: none; }
.bf-price-card { margin-top: 20px; padding: 12px 16px; border: 1px solid #ffffff1a; border-radius: 12px; background: linear-gradient(#ffffff14,#ffffff05); }
.bf-price-card p:first-child { white-space: nowrap; color: #fffc; font-size: 14px; }
.bf-price-card strong { color: white; font-size: 24px; font-weight: 800; }
.bf-price-card s { font-size: 16px; }
.bf-price-card p + p { margin-top: 4px; color: var(--bf-muted); font-size: 13px; }
.bf-benefits { display: grid; gap: 8px; margin-top: 16px; padding: 0; list-style: none; text-align: left; font-size: 13px; line-height: 1.375; color: #ffffffd9; }
.bf-benefits li { display: flex; align-items: flex-start; gap: 8px; }
.bf-benefits li::before { content: ''; flex: none; margin-top: 2px; width: 16px; height: 16px; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m20 6-11 11-5-5'/%3E%3C/svg%3E") center / contain no-repeat; }
.bf-deadline { margin: 20px 0 8px; color: var(--bf-muted); letter-spacing: .15em; }
.bf-boxes { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.bf-boxes > span { grid-template-columns: 1fr; grid-auto-flow: row; height: auto; row-gap: 4px; border: 1px solid #ffffff1a; border-radius: 8px; padding: 8px 2px; background: #ffffff0d; color: white; }
.bf-boxes b { font-size: 24px; line-height: 1; }
.bf-boxes small { color: var(--bf-muted); font-size: 10px; font-weight: 600; line-height: 1.5; letter-spacing: .05em; text-transform: uppercase; }
.bf-dialog .bf-cta { margin-top: 20px; width: 100%; min-height: 48px; font-size: 15px; }
.bf-later { margin-top: 4px; width: 100%; min-height: 44px; border-radius: 8px; color: var(--bf-muted); font-size: 14px; font-weight: 500; }
.bf-later:hover { color: white; }
@keyframes bf-slide { from { transform: translateY(100%); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .bf-bottom { animation: none; } }
@media (max-width: 1279px) { .bf-trial-intro { display: none; } }
@media (max-width: 1023px) {
  .bf-keep-apply .bf-bottom, [data-scroll-container]:has(.bf-keep-apply) [data-bf-spacer] { display: none; }
  .bf-top-term, .bf-middle { display: none; }
  .bf-top .bf-ends { border: 0; padding: 0; }
  .bf-bottom .bf-row { display: flex; justify-content: space-between; gap: 12px; }
}
@media (max-width: 767px) {
  .bf-wide, .bf-footer-desktop, .bf-bottom .bf-cta .bf-footer-desktop, .bf-card-price { display: none; }
  .bf-footer-phone { display: block; }
  .bf-top .bf-row { justify-content: space-between; gap: 5px; }
  .bf-badge { padding: 2px 6px; font-size: 10px; line-height: 14px; letter-spacing: .04em; }
  .bf-clock { grid-auto-columns: 1.625rem; gap: 2px; }
  .bf-clock:not(.bf-boxes) > span { height: 18px; font-size: 11px; }
  .bf-clock:not(.bf-boxes) small { font-size: 9px; }
  .bf-top .bf-cta { padding-inline: 10px; font-size: 13px; }
  .bf-bottom .bf-row { min-height: 51px; }
  .bf-bottom-copy strong { display: flex; align-items: center; gap: 4px; font-size: 14px; letter-spacing: normal; text-transform: none; }
  .bf-bottom-copy svg { flex: none; width: 14px; height: 14px; fill: var(--bf-purple); }
  .bf-bottom-copy p { font-size: 11px; }
  .bf-bottom .bf-cta { min-height: 36px; padding-inline: 16px; }
  [data-scroll-container]:has(.bf-bottom) [data-bf-spacer] { height: calc(52px + env(safe-area-inset-bottom)); }
  .bf-card .bf-heading { font-size: 48px; }
  .bf-card .bf-cta { min-height: 48px; margin-top: 20px; }
}
@media (max-width: 639px) {
  .bf-top .bf-ends > span:first-child, .bf-popup-desktop { display: none; }
  .bf-popup-phone { display: block; }
  .bf-dialog { padding-inline: 20px; }
  .bf-dialog h2 { font-size: 60px; line-height: 1; text-transform: uppercase; }
  .bf-dialog .bf-cta { margin-top: 28px; font-size: 16px; }
}
@media (max-width: 359px) {
  /* Preserve the narrow-phone countdown and badge placement approved in #171. */
  .bf-top .bf-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 2px 8px; padding-block: 3px; }
  .bf-top .bf-badge { padding-block: 0; }
  .bf-top .bf-badge, .bf-top .bf-ends { justify-self: start; }
  .bf-top .bf-ends { grid-column: 1; grid-row: 2; }
  .bf-top .bf-cta { grid-column: 2; grid-row: 1 / span 2; }
}
