/* Black Friday landing page. Sits on styles.css. The hero is a Mac display whose
   notch opens into the clipboard panel, using the native card geometry from
   mac-demo.css (18px cards, #222 fill, #548dff selection ring). */
:root {
  --bf-night: #0b1631;
  --bf-dusk: #26346a;
  --bf-ring: #548dff;
  --bf-card: #222;
  --bf-card-line: #303030;
}

/* Hero */
.bf-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 150px 0 0;
  color: #fff;
  background:
    radial-gradient(90% 60% at 50% 100%, #4a5fae 0%, transparent 70%),
    linear-gradient(180deg, var(--bf-night) 0%, var(--bf-dusk) 100%);
  overflow: hidden;
}
.bf-hero-copy {
  text-align: center;
}
.bf-when {
  color: #b9c4e8;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 18px;
}
.bf-hero h1 {
  font-size: clamp(54px, 9.4vw, 128px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  color: #fff;
}
.bf-sub {
  max-width: 40ch;
  margin: 26px auto 0;
  color: #d3daf2;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.5;
}
.bf-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}
.bf-button-light {
  background: #fff;
  color: #131313;
}
.bf-button-ghost {
  background: transparent;
  color: #fff;
  border-color: #ffffff4d;
  box-shadow: none;
}
.bf-button-ghost:hover {
  border-color: #fff;
  box-shadow: none;
}

/* The Mac display */
.bf-display {
  order: 3;
  margin-top: 22px;
}
.bf-screen {
  position: relative;
  aspect-ratio: 1672 / 820;
  border: 12px solid #101113;
  border-bottom-width: 0;
  border-radius: 30px 30px 0 0;
  overflow: hidden;
  background: #234a90;
  box-shadow: 0 -20px 80px #04081a80;
}
.bf-wallpaper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 70%;
  filter: brightness(0.62) saturate(1.15) hue-rotate(-8deg);
}
.bf-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0b163199 0%, #0b163100 45%);
  pointer-events: none;
}
.bf-notch {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 3;
  width: 184px;
  height: 30px;
  translate: -50% 0;
  border-radius: 0 0 12px 12px;
  background: #000;
}
.bf-notch::after {
  content: "";
  position: absolute;
  top: 11px;
  left: 50%;
  width: 7px;
  height: 7px;
  translate: -50% 0;
  border: 1px solid #20262b;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #294659, #0c1720 55%, #030506);
}

/* Notch panel: grows out of the notch like PanelController. */
.bf-panel {
  --notch-w: 184px;
  --notch-h: 30px;
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  width: min(1000px, 94%);
  translate: -50% 0;
  padding: 40px 18px 18px;
  background: #000;
  border-radius: 0 0 24px 24px;
  color: #eee;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  clip-path: inset(0 calc((100% - var(--notch-w)) / 2) calc(100% - var(--notch-h)) round 0 0 12px 12px);
  transition: clip-path 0.78s cubic-bezier(0.18, 0.88, 0.22, 1);
  filter: drop-shadow(0 16px 24px #0006);
}
.bf-panel.is-open {
  clip-path: inset(0 0 0 round 0 0 24px 24px);
}
.bf-panel > * {
  opacity: 0;
  transition: opacity 0.2s ease;
}
.bf-panel.is-open > * {
  opacity: 1;
  transition: opacity 0.35s 0.2s ease;
}
.bf-toolbar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 4px 12px;
  border-bottom: 1px solid #161616;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  color: #bdbdbd;
  overflow: hidden;
}
.bf-toolbar > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.bf-toolbar .pn-icon {
  width: 15px;
  height: 15px;
}
.bf-toolbar .bf-local {
  color: #ff941e;
  background: #141414;
  border-radius: 30px;
  padding: 6px 9px;
  margin-right: 14px;
}
.bf-toolbar .is-current {
  color: #fff;
  background: #1e1e1e;
  border-radius: 30px;
  padding: 6px 11px;
}
.bf-toolbar .bf-tools {
  margin-left: auto;
  gap: 16px;
}
.bf-toolbar .bf-tools b {
  font-weight: 600;
  margin-left: -10px;
}
.bf-cards {
  display: flex;
  gap: 12px;
  padding: 16px 6px 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.bf-card {
  position: relative;
  flex: 0 0 164px;
  height: 140px;
  display: flex;
  flex-direction: column;
  padding: 12px;
  border: 1px solid var(--bf-card-line);
  border-radius: 18px;
  background: var(--bf-card);
  color: #ddd;
  font: inherit;
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
  overflow: hidden;
}
button.bf-card,
a.bf-card {
  cursor: pointer;
}
.bf-card:hover:not([aria-pressed="true"]) {
  border-color: #666;
}
.bf-card[aria-pressed="true"] {
  outline: 2px solid var(--bf-ring);
  outline-offset: 2px;
}
.bf-card:focus-visible {
  outline: 2px solid var(--bf-ring);
  outline-offset: 2px;
}
.bf-card-code {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  color: #fff;
  white-space: nowrap;
}
.bf-card-title {
  color: #fff;
  font-size: 14px;
  font-weight: 650;
}
.bf-card-text {
  margin-top: 6px;
  color: #bbb;
}
.bf-card-url {
  margin-top: 4px;
  color: #888;
  font-weight: 600;
}
.bf-card-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 7px;
  font-size: 10px;
  color: #999;
  white-space: nowrap;
}
.bf-card .bf-source {
  width: 14px;
  height: 14px;
  border-radius: 3px;
}
.bf-card.has-image img:not(.bf-source) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bf-card.has-image::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 52px;
  background: linear-gradient(180deg, transparent, #00000026 45%, #0000008c);
}
.bf-card.has-image .bf-card-footer {
  color: #fff;
  text-shadow: 0 1px 4px #000;
}
.bf-card.is-copied .bf-card-footer {
  color: #8fb3ff;
}
.bf-hint {
  order: 2;
  margin: 56px auto 0;
  padding: 0 20px;
  text-align: center;
  color: #b9c4e8;
  font-size: 14px;
}

/* Deals */
.bf-deals {
  padding-top: 110px;
}
.bf-deals > h2 {
  max-width: 12ch;
}
.bf-deal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}
.bf-deal {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 32px;
  overflow: hidden;
  isolation: isolate;
}
.bf-deal-app {
  background: #eeece6;
}
.bf-deal-cloud {
  background: linear-gradient(180deg, #8fc0f2 0%, #cfe4f8 70%);
}
.bf-deal-sky {
  position: absolute;
  inset: auto -20% 30% -20%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.9;
}
.bf-deal-sky img {
  width: 100%;
  height: auto;
}
.bf-deal-body {
  padding: 40px 40px 32px;
}
.bf-deal h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
}
.bf-deal h3 img {
  border-radius: 10px;
}
.bf-cloud-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #fff;
  color: #2f6fd6;
}
.bf-cloud-mark .pn-icon {
  width: 22px;
  height: 22px;
}
.bf-price {
  margin: 28px 0 14px;
  color: #131313;
  font-size: clamp(48px, 5.4vw, 68px);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1;
}
.bf-price s {
  font-size: 0.42em;
  color: #8a877d;
  font-weight: 500;
  letter-spacing: -0.02em;
  vertical-align: 0.5em;
}
.bf-deal-cloud .bf-price s {
  color: #4f6c8f;
}
.bf-price span {
  font-size: 14px;
  color: #6b6b69;
  font-weight: 500;
  letter-spacing: 0;
}
.bf-deal-cloud .bf-deal-body > p:not(.bf-price),
.bf-deal-cloud .bf-price span {
  color: #34506f;
}
.bf-deal ul {
  list-style: none;
  padding: 0;
  margin: 22px 0 28px;
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: #4d4d4b;
}
.bf-deal-cloud ul {
  color: #264463;
}
.bf-deal li {
  display: flex;
  gap: 10px;
}
.bf-deal li::before {
  content: "✓";
  font-weight: 600;
  color: #8b947d;
}
.bf-deal-cloud li::before {
  color: #2f6fd6;
}
.bf-redeem {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.bf-redeem .button {
  flex: 1 1 160px;
  min-height: 52px;
  font-size: 15px;
}
.bf-code {
  flex: 1 1 200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 52px;
  padding: 0 8px 0 18px;
  border: 1.5px dashed #13131359;
  border-radius: 100px;
  background: #ffffffa6;
  font: inherit;
  cursor: pointer;
}
.bf-code code {
  font-family: inherit;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.06em;
  color: #131313;
}
.bf-code span {
  padding: 7px 13px;
  border-radius: 100px;
  background: #131313;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.bf-code.is-copied span {
  background: #2f6fd6;
}
.bf-deal-shot {
  display: block;
  width: calc(100% - 40px);
  height: 210px;
  margin: auto 0 0 40px;
  object-fit: cover;
  object-position: left top;
  border-radius: 18px 0 0 0;
  box-shadow: 0 -10px 30px #0000001f;
}

/* Countdown band */
.bf-clock {
  margin-top: 110px;
  padding: 72px 0;
  background: var(--bf-night);
  color: #fff;
}
.bf-clock-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.bf-clock h2 {
  color: #fff;
  font-size: clamp(34px, 4vw, 52px);
}
.bf-clock p {
  margin-top: 12px;
  color: #b9c4e8;
}
.bf-count {
  display: flex;
  gap: 14px;
}
.bf-count span {
  display: grid;
  justify-items: center;
  min-width: 96px;
  padding: 18px 10px 14px;
  border-radius: 20px;
  background: #ffffff12;
  color: #b9c4e8;
  font-size: 13px;
}
.bf-count b {
  color: #fff;
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

/* FAQ */
.bf-faq {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 70px;
  padding: 110px 0 40px;
}
.bf-faq h2 {
  font-size: clamp(38px, 4.5vw, 56px);
}
.bf-faq .faq-list details > p {
  padding-bottom: 22px;
  color: #646569;
}
.bf-faq a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

@media (max-width: 900px) {
  .bf-deal-grid,
  .bf-faq {
    grid-template-columns: 1fr;
  }
  .bf-faq {
    gap: 24px;
  }
  .bf-clock-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .bf-toolbar .bf-wide,
  .bf-toolbar .bf-tools {
    display: none;
  }
}
@media (max-width: 700px) {
  .bf-hero {
    padding-top: 120px;
  }
  .bf-display {
    width: calc(100% - 24px);
  }
  .bf-hint {
    margin-top: 40px;
  }
  .bf-screen {
    aspect-ratio: auto;
    height: 300px;
    border-width: 8px 8px 0;
    border-radius: 24px 24px 0 0;
  }
  .bf-panel {
    width: 100%;
    padding: 38px 10px 12px;
    border-radius: 0 0 18px 18px;
  }
  .bf-panel.is-open {
    clip-path: inset(0 0 0 round 0 0 18px 18px);
  }
  .bf-notch {
    width: 132px;
    height: 24px;
  }
  .bf-panel {
    --notch-w: 132px;
    --notch-h: 24px;
  }
  .bf-toolbar .bf-local {
    display: none;
  }
  .bf-deal-body {
    padding: 30px 24px 26px;
  }
  .bf-deal-shot {
    width: calc(100% - 24px);
    margin-left: 24px;
    height: 160px;
  }
  .bf-deals,
  .bf-faq {
    padding-top: 80px;
  }
  .bf-clock {
    margin-top: 80px;
    padding: 56px 0;
  }
  .bf-count span {
    min-width: 0;
    flex: 1;
  }
  .bf-count {
    width: 100%;
  }
  .bf-count b {
    font-size: 34px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bf-panel,
  .bf-panel > * {
    transition: none;
  }
}

/* Header over the dark hero, until the nav switches to its scrolled glass. */
.bf-page .islands-nav:not(.is-scrolled) .island-brand,
.bf-page .islands-nav:not(.is-scrolled) .island-signin {
  color: #fff;
}
.bf-page .islands-nav:not(.is-scrolled) .island-signin {
  background: #ffffff1f;
  box-shadow: inset 0 0 0 1px #ffffff40;
}
.bf-page .islands-nav:not(.is-scrolled) .island-cap {
  background: linear-gradient(#ffffffeb, #ffffffc9);
}
.bf-redeem .button {
  white-space: nowrap;
}
