/* Black Friday page. Builds on base.css + home.css (hero, Mac, panel, FAQ). */

/* The Mac only needs room for the Codes tab, and here the panel takes clicks */
.stage--bf { --h: 540; }
.mac--bf .sw-panel { pointer-events: auto; user-select: text; }
.mac--bf .sw-tabs__hl { width: calc((100% - 10px) / 3); }

/* The sale row: the Switchy icon, the code, and a ring for the days left */
.sw-svc--app { background: none; overflow: hidden; }
.sw-svc--app img { width: 34px; height: 34px; }
.sw-code--sale { cursor: pointer; box-shadow: inset 0 0 0 1px rgb(10 132 255 / 0.55); }
.sw-code--sale:hover { background: rgb(10 132 255 / 0.12); }
.sw-code--sale:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.sw-code--sale .sw-code__otp { font-size: 16px; letter-spacing: 0.02em; color: #fff; }
.sw-code--sale .sw-code__copied { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif; font-size: 12px; letter-spacing: 0; }
.sw-code--sale .sw-code__detail { color: rgb(255 255 255 / 0.7); }
.sw-code__was { font-size: 13px; color: var(--sec); text-decoration: line-through; }
.sw-svc svg { width: 18px; height: 18px; }

.bf-hint { margin: 12px auto 0; padding: 0 24px; text-align: center; font-size: 14px; color: var(--muted); min-height: 1.5em; }
.bf-hint.is-copied { color: var(--green); font-weight: 600; }

/* ---------- The deal cards ---------- */
.bf-deals { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; }
.bf-deal {
  display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
  padding: clamp(24px, 4vw, 40px); border-radius: 28px;
  background: var(--card); box-shadow: 0 0 0 1px var(--line);
}
.bf-deal--main { background: #111214; color: #fff; box-shadow: none; }
[data-theme="dark"] .bf-deal--main { background: #1f1a3a; box-shadow: 0 0 0 1px rgb(201 188 255 / 0.18); }
.bf-deal__name { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.bf-deal__name img { border-radius: 10px; }
.bf-deal__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; font-size: 18px; color: var(--muted); }
.bf-deal__price span { font-size: 72px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--ink); }
.bf-deal__price s { font-size: 28px; font-weight: 600; }
.bf-deal--main .bf-deal__price { color: rgb(255 255 255 / 0.66); }
.bf-deal--main .bf-deal__price span { color: #fff; }
.bf-deal--main .bf-deal__price s { color: rgb(255 255 255 / 0.45); }
.bf-deal__body { font-size: 17px; line-height: 1.5; color: var(--muted); }
.bf-deal--main .bf-deal__body { color: rgb(255 255 255 / 0.72); }
.bf-deal__list { display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.bf-deal__list li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.4; }
.bf-deal__list svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--green); }
.bf-deal--main .bf-deal__list svg { color: #32d74b; }
.bf-deal .btn { margin-top: auto; }

/* The code with its own Copy button */
.bf-code {
  display: flex; align-items: center; gap: 12px; width: 100%; max-width: 360px;
  padding: 8px 8px 8px 18px; border-radius: 16px;
  border: 1.5px dashed rgb(255 255 255 / 0.35);
}
.bf-code code { flex: 1; font-family: var(--mono); font-size: 18px; font-weight: 600; letter-spacing: 0.04em; }
.bf-code__copy {
  min-height: 38px; padding: 0 18px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgb(255 255 255 / 0.14); color: #fff; font-size: 14px; font-weight: 600;
  transition: background-color 0.2s;
}
.bf-code__copy:hover { background: rgb(255 255 255 / 0.22); }
.bf-code__copy.is-copied { background: #1f9d55; }

/* ---------- Countdown ---------- */
.bf-countdown {
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
  padding: clamp(32px, 6vw, 64px) 24px; border-radius: 32px;
  background: var(--card); box-shadow: 0 0 0 1px var(--line);
}
.bf-countdown__title { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 700; text-wrap: balance; }
.bf-countdown__note { font-size: 16px; color: var(--muted); }
.bf-countdown__clock { display: flex; gap: 12px; margin-top: 10px; }
.bf-countdown__clock[hidden] { display: none; }
.bf-countdown__clock > div {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  min-width: 104px; padding: 18px 12px; border-radius: 20px; background: var(--chip);
  font-size: 14px; color: var(--muted);
}
.bf-countdown__clock span { font-size: 48px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- Footer: one row ---------- */
.footer .footer__bottom { padding-top: 28px; }
.footer .footer__legal { margin-right: auto; align-items: center; }

@media (max-width: 760px) {
  .stage--bf { --h: 520; }
  /* The slim Mac is 440 wide: nudge the panel left so its right edge stays on screen */
  .mac--bf .sw-panel--hero { margin-left: -204px; }
  .bf-deals { grid-template-columns: minmax(0, 1fr); }
  .bf-deal__price span { font-size: 60px; }
  .bf-countdown__clock > div { min-width: 0; flex: 1; padding: 14px 8px; }
  .bf-countdown__clock span { font-size: 36px; }
}
