/* The offer pop-up card — three designs the owner chooses from (lib/offer.js): washer, showroom, LED sign */
.ofc { position: relative; width: min(100%, 360px); color: #eef2f8; text-align: center; font-family: inherit; }
.ofc * { box-sizing: border-box; }
.ofc h2, .ofc p { margin: 0; }
.ofc__x { position: absolute; top: 12px; left: 12px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(190,210,240,.3); background: rgba(4,7,13,.6); color: #cfd6e2; display: grid; place-items: center; font-size: 12px; cursor: pointer; z-index: 3; }
.ofc__btn { display: block; width: 100%; padding: 14px; border: 0; border-radius: 14px; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; color: #fff; background: linear-gradient(135deg, #2b88ff, #0b4fc4); box-shadow: 0 10px 30px -10px rgba(30,123,255,.7); }
.ofc__text { color: #b9c3d1; font-size: 14px; line-height: 1.7; white-space: pre-line; }
.ofc__tag { font-size: 40px; line-height: 1; }
/* the discount code: a dashed coupon chip (all three designs) */
.ofc__code { display: inline-flex; align-items: center; gap: 8px; justify-self: center; width: fit-content; margin: 8px auto 12px; padding: 6px 13px; border-radius: 11px; border: 1.5px dashed rgba(255,255,255,.55); background: rgba(255,255,255,.08); color: #fff; font-size: 13px; }
.ofc__code b { font-family: 'Saira', sans-serif; font-size: 16px; letter-spacing: .08em; }
.ofc--washer .ofc__code { margin-bottom: 0; }
.ofc__pct { display: flex; justify-content: center; align-items: baseline; gap: 6px; }
.ofc__pct b { font-size: 44px; line-height: 1; font-weight: 800; letter-spacing: -.02em; }
.ofc__pct span { font-size: 15px; font-weight: 600; color: #cfe3ff; }

.ofc__later { display: block; margin: 8px auto 0; padding: 6px 14px; border: 0; background: none; color: #9aa4b2; font: inherit; font-size: 14px; cursor: pointer; }
.ofc__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ofc__big { font-family: var(--font-num, 'Saira'), sans-serif; font-weight: 800; font-style: italic; line-height: 1; letter-spacing: -.01em; padding-inline: .04em .14em; }

/* 1 — washer: wet glass after the wash; the soap and the worker are added by offer-washer.js */
.ofc__wet { position: relative; min-height: 380px; border-radius: 26px; overflow: hidden; display: grid; align-items: center;
  background: radial-gradient(90% 70% at 30% 0%, #1f5bb3, #0b2350 58%, #050d1f);
  box-shadow: 0 0 0 1.5px rgba(120,180,255,.55), 0 0 30px -6px rgba(30,123,255,.7), 0 40px 80px -30px #000, inset 0 0 40px rgba(0,0,0,.45); }
.ofc--washer .ofc__under { position: relative; z-index: 2; display: grid; justify-items: center; gap: 6px; padding: 34px 24px 40px; }
.ofc--washer .ofc__tag { font-size: 30px; }
.ofc--washer .ofc__big { font-size: 88px; color: #fff; text-shadow: 0 0 26px rgba(95,180,255,.75); }
.ofc--washer .ofc__big.is-long { font-size: 52px; }
.ofc--washer .ofc__title { font-size: 21px; line-height: 1.4; }
.ofc--washer .ofc__text { color: #c4d6ee; font-size: 15px; }
.ofc--washer .ofc__x { z-index: 6; }
.ofc--washer .ofc__btn { margin-top: 14px; }
/* drops sitting on the glass */
.ofc__wet::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(circle at 16% 20%, rgba(255,255,255,.7) 0 1.6px, rgba(190,220,255,.18) 2.5px 6px, transparent 7px),
    radial-gradient(circle at 82% 14%, rgba(255,255,255,.7) 0 2px, rgba(190,220,255,.16) 3px 8px, transparent 9px),
    radial-gradient(circle at 74% 80%, rgba(255,255,255,.6) 0 1.6px, rgba(190,220,255,.16) 2.5px 6px, transparent 7px),
    radial-gradient(circle at 10% 66%, rgba(255,255,255,.6) 0 1.2px, rgba(190,220,255,.14) 2px 5px, transparent 6px),
    radial-gradient(circle at 46% 90%, rgba(255,255,255,.6) 0 1.2px, rgba(190,220,255,.14) 2px 4px, transparent 5px),
    radial-gradient(circle at 92% 50%, rgba(255,255,255,.6) 0 1.6px, rgba(190,220,255,.14) 2.5px 5px, transparent 6px),
    radial-gradient(circle at 30% 42%, rgba(255,255,255,.5) 0 1px, rgba(190,220,255,.12) 2px 4px, transparent 5px),
    radial-gradient(circle at 62% 30%, rgba(255,255,255,.5) 0 1px, rgba(190,220,255,.12) 2px 3.5px, transparent 4.5px); }
/* once clean: a light sweep now and then, and drops running down leaving a wet trail */
.ofc__wet::after { content: ''; position: absolute; top: -20%; bottom: -20%; width: 45%; left: -60%; z-index: 1; pointer-events: none; transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.16), transparent); }
.ofc__wet.is-clean::after { animation: ofSweep 5s ease-in-out 1s infinite; }
@keyframes ofSweep { 0% { left: -60%; } 30%, 100% { left: 130%; } }
.ofc__drip { position: absolute; top: -12px; width: 7px; z-index: 1; pointer-events: none; opacity: 0; }
.ofc__wet.is-clean .ofc__drip { animation: ofDrip var(--d) cubic-bezier(.5,0,.8,.6) var(--w) infinite; }
.ofc__drip::before { content: ''; position: absolute; left: 2px; bottom: 7px; width: 3px; height: 70px; border-radius: 3px; background: linear-gradient(180deg, transparent, rgba(190,220,255,.22)); }
.ofc__drip::after { content: ''; position: absolute; left: 0; bottom: 0; width: 7px; height: 9px; border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%; background: radial-gradient(circle at 40% 35%, #fff 0 1.2px, rgba(200,228,255,.75) 2px, rgba(120,180,255,.35) 4px); box-shadow: 0 1px 2px rgba(0,0,0,.3); }
@keyframes ofDrip { 0% { transform: translateY(0); opacity: 0; } 6%, 70% { opacity: 1; } 100% { transform: translateY(420px); opacity: 0; } }
.ofc__soap { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.ofc__soap svg { display: block; }
/* the worker stays on the card: anything of him outside it is cut off */
.ofc__crew { position: absolute; inset: 0; z-index: 4; overflow: hidden; border-radius: inherit; pointer-events: none; }
.ofc__crew img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 70% 20.5%; will-change: transform; transform: translateY(200%); }
/* one picture cut in two: the body without the raised arm, and the arm with the towel (turns at the shoulder) */
.ofc__body { clip-path: polygon(0 0, 57% 0, 57% 19.5%, 100% 19.5%, 100% 100%, 0 100%); filter: drop-shadow(0 10px 14px rgba(0,0,0,.45)); }
.ofc__arm { clip-path: polygon(57% 0, 100% 0, 100% 22%, 57% 22%); }

/* 2 — showroom: the owner's car comes out of the card under a blue spotlight */
.ofc--showroom { display: grid; gap: 8px; margin-top: 74px; padding: 92px 22px 20px; border-radius: 26px; border: 1px solid rgba(160,190,230,.18);
  background: radial-gradient(70% 45% at 50% 0%, rgba(30,123,255,.45), transparent 70%), linear-gradient(180deg, #0c1526, #04070d); box-shadow: 0 40px 80px -30px #000; }
.ofc--showroom .ofc__car { position: absolute; top: -72px; left: 50%; transform: translateX(-50%); width: 232px; max-width: 72%; filter: drop-shadow(0 18px 18px rgba(0,0,0,.7)); pointer-events: none; }
.ofc--showroom .ofc__glow { position: absolute; top: 58px; left: 50%; transform: translateX(-50%); width: 230px; height: 26px; border-radius: 50%; background: radial-gradient(closest-side, rgba(95,180,255,.55), transparent); filter: blur(4px); }
.ofc--showroom .ofc__kicker { font-size: 11px; letter-spacing: .32em; color: #5fb4ff; font-weight: 700; }
.ofc--showroom .ofc__title { font-size: 23px; line-height: 1.35; background: linear-gradient(180deg, #fff 0%, #dfe4ec 40%, #8f99a8 75%, #e9edf3 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ofc--showroom .ofc__pct b { color: transparent; -webkit-text-stroke: 1.5px #5fb4ff; font-size: 48px; }
.ofc--showroom .ofc__text { color: #9aa4b2; }
.ofc--showroom .ofc__btn { margin-top: 6px; }
.ofc__foot { font-size: 10.5px; letter-spacing: .25em; color: #5b6576; margin-top: 2px; }

/* 3 — LED sign: a dot screen in a metal frame; the discount blinks, the title runs */
.ofc__panel { position: relative; padding: 14px; border-radius: 18px; background: linear-gradient(160deg, #c9ced6, #8a919c 40%, #d8dce2 60%, #7c838e); box-shadow: 0 40px 80px -30px #000, inset 0 1px 0 #fff; }
.ofc__panel > i { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f2f4f7, #5b626c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.3); }
.ofc__panel > i:nth-child(1) { top: 4px; right: 4px; } .ofc__panel > i:nth-child(2) { top: 4px; left: 4px; }
.ofc__panel > i:nth-child(3) { bottom: 4px; right: 4px; } .ofc__panel > i:nth-child(4) { bottom: 4px; left: 4px; }
.ofc__scr { position: relative; overflow: hidden; border-radius: 8px; padding: 18px 0 12px; background: #020409; box-shadow: inset 0 0 0 2px #000, inset 0 0 30px rgba(0,0,0,.9); }
.ofc__scr::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle, rgba(70,110,170,.16) 1.3px, transparent 1.6px) 0 0 / 5px 5px; }
/* everything lit is cut into dots */
.ofc__dots { position: relative; color: #9fd6ff; text-shadow: 0 0 6px #3d9dff, 0 0 18px #1e7bff;
  -webkit-mask: radial-gradient(circle, #000 1.5px, transparent 1.8px) 0 0 / 5px 5px; mask: radial-gradient(circle, #000 1.5px, transparent 1.8px) 0 0 / 5px 5px; }
.ofc--led .ofc__big { font-size: 100px; animation: ofBlink 1.2s steps(1) .4s 3; }
.ofc--led .ofc__big.is-long { font-size: 58px; padding: 14px 0; }
@keyframes ofBlink { 50% { opacity: .15; } }
/* the running line never widens the card (it was squeezing the sign in narrow spots like the owner's preview) */
.ofc__scr { contain: inline-size; }
.ofc__run { white-space: nowrap; font-weight: 700; font-size: 30px; line-height: 1.35; margin-top: 4px; }
.ofc__run span { display: inline-block; padding-inline-start: 100%; animation: ofRun 10s linear infinite; }
@keyframes ofRun { to { transform: translateX(100%); } }
.ofc__plate { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding: 0 4px; color: #1b1f26; font-size: 12.5px; font-weight: 800; }
.ofc--led .ofc__btn { margin-top: 14px; border-radius: 12px; background: linear-gradient(180deg, #2f8bff, #0b4fc4); box-shadow: 0 4px 0 #062f7a, 0 10px 20px -8px #000; }
.ofc--led .ofc__x { top: -44px; left: 0; }

@media (prefers-reduced-motion: reduce) {
  .ofc--led .ofc__big { animation: none; }
  .ofc__run span { animation: none; padding: 0; }
  .ofc__wet.is-clean .ofc__drip, .ofc__wet.is-clean::after { animation: none; }
}
/* owner's live preview while typing: the finished look, no replay on every letter */
.ofc.is-still .ofc__big { animation: none; }

/* the pop-up opens with a soft lift */
.offer .ofc { transform: translateY(24px) scale(.96); transition: transform .45s cubic-bezier(.22,.8,.2,1); }
.offer.is-on .ofc { transform: none; }
