/* ═══ PB (2026-11-01 Fable, docs/coupon-2026-11/02_fable/spec.md F1~F9): 빼빼로데이 쿠폰 띠. 홈 본문 첫 요소(hvNotice 앞), 고정 아님.
   색은 home-real.css 와 같은 값(검정 #0b0b0f · 형광연두 #c8f03c · 흰색). 틴트 · 그라데이션 없음. 구현 때 css/sections/promo-band.css 로 옮긴다 ═══ */
.pb { background: #0b0b0f; color: #fff; }
.pb-in { display: flex; align-items: center; gap: 12px; height: 44px; }
.pb-img { flex: none; width: 40px; height: 40px; }
.pb-track { position: relative; flex: 1 1 auto; min-width: 0; height: 44px; overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 20px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 20px), transparent); }
.pb-run { display: flex; align-items: center; width: max-content; height: 44px; animation: pb-marquee var(--pb-dur, 30s) linear infinite; }
.pb-msg { flex: none; margin: 0; padding-right: 64px; font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.pb-msg b { color: #c8f03c; font-weight: 800; }
.pb-sep { margin: 0 9px; color: rgba(255, 255, 255, .45); font-style: normal; }
.pb:hover .pb-run, .pb:focus-within .pb-run, .pb.is-paused .pb-run { animation-play-state: paused; }
.pb-cta { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 150px; height: 32px; padding: 0 14px; border-radius: 8px;
    background: #c8f03c; color: #0b0b0f; font-size: 13.5px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.pb-cta:hover { background: #fff; color: #0b0b0f; }
.pb-cta .pb-short { display: none; }
.pb-terms { flex: none; height: 32px; padding: 0 6px; border: 0; background: none; color: #fff; font: inherit; font-size: 13.5px; font-weight: 700;
    text-decoration: underline; text-underline-offset: 3px; cursor: pointer; white-space: nowrap; }
.pb-terms:hover { color: #c8f03c; }
.pb-ic { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 0; border-radius: 8px;
    background: none; color: rgba(255, 255, 255, .78); font-size: 14px; cursor: pointer; }
.pb-ic:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.pb-x { margin-right: -8px; font-size: 19px; }
.pb :focus-visible { outline: 3px solid #c8f03c; outline-offset: 2px; }
.pb-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* 지급 뒤(로그인 + 쿠폰 보유): 움직이지 않는 한 줄 */
.pb--mine .pb-run { animation: none; }
.pb--mine .pb-msg + .pb-msg { display: none; }
.pb--mine .pb-track { -webkit-mask-image: none; mask-image: none; }
.pb--mine .pb-pause { display: none; }
/* 출시 가격 띠(hv-notice)가 같이 켜지면 두 검정 띠 사이 1px 선 */
.pb + .hv-notice:not([hidden]) { border-top: 1px solid rgba(255, 255, 255, .16); }
@keyframes pb-marquee { to { transform: translateX(-50%); } }
@media (max-width: 600px) {
    .pb-in { gap: 8px; }
    .pb-img { order: 0; } .pb-track { order: 1; } .pb-pause { order: 2; } .pb-cta { order: 3; } .pb-x { order: 4; }
    .pb-img { width: 28px; height: 28px; }
    .pb-msg { font-size: 13px; padding-right: 40px; }
    .pb-cta { min-width: 0; height: 30px; padding: 0 10px; font-size: 12.5px; }
    .pb-cta .pb-long { display: none; }
    .pb-cta .pb-short { display: inline; }
    .pb-terms { display: none; }
    .pb-ic { width: 32px; height: 32px; }
    .pb-x { margin-right: -6px; }
}
@media (prefers-reduced-motion: reduce) {
    .pb-run { animation: none; display: block; width: auto; }
    .pb-msg { display: block; overflow: hidden; text-overflow: ellipsis; padding-right: 0; }
    .pb-msg + .pb-msg { display: none; }
    .pb-track { -webkit-mask-image: none; mask-image: none; }
    .pb-pause { display: none; }
}
@media (forced-colors: active) { .pb-cta { border: 1px solid CanvasText; } }

/* 조건 창(F7): 띠 「조건 보기」 · 휴대폰 CTA 가 연다. enroll-flow.css 와 같은 창 문법(흰 창 · 18px · 보라 주 단추) */
.pb-sheet { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(10, 22, 40, .55); }
.pb-sheet[hidden] { display: none; }
.pb-box { position: relative; width: 100%; max-width: 520px; max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain;
    padding: 24px 26px 20px; border-radius: 18px; background: #fff; color: #14151a; clip-path: inset(0 round 18px); }
.pb-box-x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 10px; background: #f3f4f6; color: #3d404a; font-size: 18px; cursor: pointer; }
.pb-box-h { display: flex; gap: 12px; align-items: center; padding-right: 44px; }
.pb-box-h img { flex: none; width: 48px; height: 48px; }
.pb-box-h p { margin: 0; color: #553ae7; font-size: 13px; font-weight: 800; }
.pb-box-h h2 { margin: 2px 0 0; font-size: 21px; font-weight: 800; letter-spacing: -.02em; line-height: 1.3; }
.pb-lead { margin: 14px 0 0; font-size: 15px; line-height: 1.6; color: #3d404a; word-break: keep-all; }
.pb-lead b { color: #14151a; }
.pb-dl { margin: 14px 0 0; }
.pb-dl > div { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-top: 1px solid #e4e5e9; font-size: 14.5px; line-height: 1.55; }
.pb-dl dt { color: #6b6f7a; font-weight: 700; }
.pb-dl dd { margin: 0; color: #3d404a; word-break: keep-all; }
.pb-dl dd b { color: #14151a; }
.pb-courses { width: 100%; margin: 14px 0 0; border-collapse: collapse; font-size: 14px; }
.pb-courses caption { padding: 0 0 6px; text-align: left; font-size: 13.5px; font-weight: 800; color: #14151a; }
.pb-courses th, .pb-courses td { padding: 7px 0; border-top: 1px solid #e4e5e9; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pb-courses th:first-child, .pb-courses td:first-child { text-align: left; white-space: normal; word-break: keep-all; padding-right: 10px; }
.pb-courses th { color: #6b6f7a; font-weight: 700; font-size: 13px; }
.pb-courses td:last-child { color: #553ae7; font-weight: 800; }
.pb-courses tfoot td { border-top: 0; padding-top: 4px; color: #6b6f7a; font-size: 12.5px; text-align: left; white-space: normal; font-weight: 500; }
.pb-go { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; margin-top: 18px; border: 0; border-radius: 12px;
    background: #553ae7; color: #fff; font: inherit; font-size: 16px; font-weight: 800; text-decoration: none; cursor: pointer; }
.pb-go:hover { background: #4128c9; color: #fff; }
.pb-go2 { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; margin-top: 8px; border: 0; border-radius: 12px;
    background: #f3f4f6; color: #3d404a; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.pb-box :focus-visible { outline: 3px solid #553ae7; outline-offset: 2px; }
#pbSheetTitle:focus { outline: none; }
@media (max-width: 480px) {
    .pb-sheet { align-items: flex-end; padding: 0; }
    .pb-box { max-width: none; max-height: 92dvh; border-radius: 18px 18px 0 0; clip-path: inset(0 round 18px 18px 0 0); padding: 22px 18px calc(16px + env(safe-area-inset-bottom)); }
    .pb-dl > div { grid-template-columns: 76px minmax(0, 1fr); font-size: 14px; }
}

/* 가입 직후 알림(F10, .cp- 는 쿠폰 화면 공통 접두어. 구현 때 css/sections/lms/coupon.css) */
.cp-toast { position: fixed; left: 50%; bottom: 24px; z-index: 1900; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px);
    padding: 12px 14px 12px 12px; border-radius: 14px; background: #0f1a4b; color: #fff; box-shadow: 0 16px 40px rgba(11, 11, 15, .28); font-size: 14.5px; line-height: 1.45; }
.cp-toast img { flex: none; width: 36px; height: 36px; }
.cp-toast b { color: #c8f03c; font-weight: 800; }
.cp-toast a { color: #fff; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.cp-toast button { flex: none; width: 32px; height: 32px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 16px; cursor: pointer; }
@media (max-width: 480px) { .cp-toast { bottom: 12px; font-size: 13.5px; } }

