/* Promo banner shared by the MLS checker and the $240 offer page; content comes from assets/js/promo.js. */
.promo { position: relative; overflow: hidden; background: radial-gradient(130% 160% at 100% 0%, #1f44b8 0%, #0c1a68 52%, #070f45 100%); color: #fff; font-family: 'Lato', sans-serif; }
.promo[hidden] { display: none; }
.promo-in { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 12px 36px; max-width: 1040px; margin: 0 auto; padding: 14px 20px; }
.promo-lead { display: flex; align-items: center; gap: 14px; min-width: 0; }
.promo-icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(135deg, #ffc01f, #ff8a1f); color: #0c1a68; }
.promo-eyebrow { margin: 0 0 2px; color: #ffc01f; font-size: .74rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.promo-main { margin: 0; font-size: 1.3rem; font-weight: 700; line-height: 1.25; }
.promo-main strong { color: #ffc01f; font-weight: 900; }
.promo-main s { color: rgba(255,255,255,.62); font-weight: 400; text-decoration-thickness: 2px; }
.promo-code { margin: 5px 0 0; font-size: .86rem; color: rgba(255,255,255,.86); }
.promo-pill { display: inline-block; margin: 0 6px 0 4px; padding: 1px 9px; border: 1px dashed rgba(255,192,31,.8); border-radius: 6px; background: rgba(255,192,31,.12); color: #fff; font-weight: 900; letter-spacing: .08em; }
.promo-terms { white-space: nowrap; }

/* Countdown: one box per unit, filled every second by promo.js */
.promo-clock { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.promo-clock-label { color: rgba(255,255,255,.8); font-size: .7rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.promo-digits { display: flex; gap: 6px; }
.promo-digits span { display: flex; flex-direction: column; align-items: center; min-width: 46px; padding: 5px 6px 4px; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; background: rgba(255,255,255,.1); }
.promo-digits b { font-size: 1.3rem; font-weight: 900; line-height: 1.05; font-variant-numeric: tabular-nums; }
.promo-digits i { color: rgba(255,255,255,.72); font-size: .6rem; font-style: normal; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

/* Snowflakes drift down behind the copy. Each span is a full-height column with one flake at its top, so translating it by 100% carries the flake the height of the banner. */
.promo-snow { position: absolute; inset: 0; pointer-events: none; }
.promo-snow span { position: absolute; top: 0; height: 100%; color: #fff; line-height: 1; }
.promo-snow span::before { content: "\2744"; display: block; }
@media (prefers-reduced-motion: no-preference) {
  .promo-snow span { animation: promo-fall linear infinite; will-change: transform; }
}
@media (prefers-reduced-motion: reduce) {
  .promo-snow span { top: calc(var(--rest, 30) * 1%); }
  .promo-snow span:nth-child(odd) { --rest: 62; }
  .promo-snow span:nth-child(3n) { --rest: 12; }
}
@keyframes promo-fall {
  from { transform: translate3d(0, -28px, 0) rotate(0deg); }
  50% { transform: translate3d(10px, 50%, 0) rotate(90deg); }
  to { transform: translate3d(0, 100%, 0) rotate(180deg); }
}

/* Offer page checkout card: regular price struck through beside the sale price */
.buy-card .top .p .p-was { font-size: 1.7rem; font-weight: 700; line-height: 1; color: rgba(255,255,255,.7); text-decoration-thickness: 2px; }
/* Offer page hero: the same pairing, smaller and muted, ahead of the sale price */
.hero-price .amount .p-was { font-size: 1.25rem; font-weight: 700; letter-spacing: 0; color: #8a94a6; text-decoration-thickness: 2px; }
.p-was[hidden], .promo-field[hidden] { display: none; }

@media (max-width: 760px) {
  .promo-in { flex-direction: column; gap: 8px; padding: 10px 12px 12px; text-align: center; }
  .promo-icon { display: none; }
  .promo-main { font-size: 1.02rem; }
  .promo-code { font-size: .82rem; }
  .promo-clock { flex-direction: row; gap: 10px; }
  .promo-digits span { flex-direction: row; align-items: baseline; gap: 3px; min-width: 0; padding: 3px 7px; }
  .promo-digits b { font-size: 1.02rem; }
}

/* MLS checker on phones: the banner sits on the navy intro, so it switches to a light treatment */
@media (max-width: 767px) {
  .promo-light { background: #fff6dc; color: #0c1a68; border-bottom: 1px solid #f1d27f; }
  .promo-light .promo-eyebrow { color: #b4410a; }
  .promo-light .promo-main strong { color: #c2410c; }
  .promo-light .promo-main s { color: #6b7280; }
  .promo-light .promo-code { color: #33415c; }
  .promo-light .promo-pill { border-color: #c2410c; background: #fff; color: #0c1a68; }
  .promo-light .promo-clock-label { color: #33415c; }
  .promo-light .promo-digits span { border-color: #e6c877; background: #fff; }
  .promo-light .promo-digits i { color: #5b6478; }
  .promo-light .promo-snow span { color: #d99a2b; }
}
