/* ClosingBanner — plain scoped CSS (Webflow shadow root), mobile-first with tablet 768px / desktop 1280px. */

.closing-banner,
.closing-banner *,
.closing-banner *::before,
.closing-banner *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-family, 'IBM Plex Sans'), sans-serif;
}

/* Full-width clip so the glow canvas (it spills ~110px past the banner) never widens the page. */
.closing-banner-outer {
  width: 100%;
  overflow-x: clip;
  overflow-y: visible;
}

.closing-banner-host {
  position: relative;
  margin: 70px 16px 0;
}

/* The glow canvas spills ~110px past this box, so it sits outside the clipped banner. */
.closing-banner__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.closing-banner {
  --closing-banner-radius: 20px;
  --closing-banner-tab-radius: 20px;
  position: relative;
  z-index: 1;
  width: auto;
  aspect-ratio: 366 / 719;
  border-radius: var(--closing-banner-radius);
  overflow: hidden;
  color: #fff;
  background: #000;
}

@media (min-width: 768px) {
  .closing-banner {
    --closing-banner-radius: 32px;
    --closing-banner-tab-radius: 28px;
    aspect-ratio: 960 / 719;
  }

  .closing-banner-host {
    margin: 70px 32px 0;
  }
}

@media (min-width: 1280px) {
  .closing-banner {
    aspect-ratio: 1670 / 890;
  }

  .closing-banner-host {
    margin: 100px max(79px, calc((100% - 1670px) / 2)) 0;
  }
}

/* Photo + overlay layer. Once measured (closing-banner--shaped) it's clipped to the banner outline with the tab cut
   out, and the banner itself stops painting black, so the gold glow shows around the store/CTA tab too. */
.closing-banner__media {
  position: absolute;
  inset: 0;
  border-radius: var(--closing-banner-radius);
  overflow: hidden;
}

.closing-banner--shaped {
  overflow: visible;
  background: none;
}

.closing-banner--shaped .closing-banner__media {
  -webkit-clip-path: var(--closing-banner-shape);
  clip-path: var(--closing-banner-shape);
}

.closing-banner--shaped .closing-banner__tab {
  background: none;
}

.closing-banner--shaped .closing-banner__tab::before,
.closing-banner--shaped .closing-banner__tab::after {
  content: none;
}

.closing-banner__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% center;
  border-radius: var(--closing-banner-radius);
}

/* Phones show a narrow portrait slice of the landscape photo; 40% keeps both men in it. Wider frames centre it. */
@media (min-width: 768px) {
  .closing-banner__photo {
    object-position: center;
  }
}

.closing-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.6));
  pointer-events: none;
}

.closing-banner__headline {
  position: absolute;
  right: 20px;
  bottom: 104px;
  left: 23px;
  font-size: 42px;
  font-weight: 500;
  line-height: 42px;
  letter-spacing: -1.26px;
  color: #fff;
}

@media (min-width: 768px) {
  .closing-banner__headline {
    right: 40px;
    bottom: 110px;
    left: 23px;
  }
}

@media (min-width: 1280px) {
  .closing-banner__headline {
    bottom: 169px;
    left: 40px;
    font-size: 88px;
    line-height: 78px;
    letter-spacing: -2.64px;
  }
}

/* The buttons sit centred in the notch, nudged a little below the middle, and the left padding matches the gap to the
   25.7° slant measured at the buttons' mid-height (tab height / 2 × tan 25.7°, ≈16px on phones, ≈21px on desktop). */

.closing-banner__tab {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 12px 6px 3px 22px;
  border-top-right-radius: var(--closing-banner-tab-radius);
  background: #000;
}

.closing-banner__tab::before,
.closing-banner__tab::after {
  content: '';
  position: absolute;
  width: var(--closing-banner-tab-radius);
  height: var(--closing-banner-tab-radius);
  pointer-events: none;
}

.closing-banner__tab::before {
  bottom: 100%;
  left: 0;
  background: radial-gradient(
    circle at 100% 0,
    transparent calc(var(--closing-banner-tab-radius) - 0.5px),
    #000 var(--closing-banner-tab-radius)
  );
}

.closing-banner__tab::after {
  bottom: 0;
  left: 100%;
  background: radial-gradient(
    circle at 100% 0,
    transparent calc(var(--closing-banner-tab-radius) - 0.5px),
    #000 var(--closing-banner-tab-radius)
  );
}

.closing-banner__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Phones keep only Get Edge in the notch; the store buttons move to the footer. */
.closing-banner__stores {
  display: none;
}

@media (min-width: 768px) {
  .closing-banner__stores {
    display: contents;
  }
}

@media (min-width: 1280px) {
  .closing-banner__tab {
    padding: 20px 10px 6px 31px;
  }

  .closing-banner__actions {
    gap: 12px;
  }
}

.closing-banner__store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: inset 0 0 0 1.25px #f0dab1;
  color: #fff;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.closing-banner__store:hover {
  background: rgba(255, 255, 255, 0.08);
}

.closing-banner__store:focus-visible {
  outline: 2px solid #e0b25c;
  outline-offset: 3px;
}

@media (min-width: 1280px) {
  .closing-banner__store {
    width: 69px;
    height: 69px;
  }
}

.closing-banner__store-icon {
  display: block;
}

.closing-banner__store-icon--apple {
  width: 17px;
  height: 21px;
  translate: -0.5px -1px;
}

/* The play triangle's visual centre sits right of its box centre, so it is nudged right to look centred. */
.closing-banner__store-icon--play {
  width: 15px;
  height: 17px;
  translate: 1.5px 0;
}

@media (min-width: 1280px) {
  .closing-banner__store-icon--apple {
    width: 21px;
    height: 25px;
  }

  .closing-banner__store-icon--play {
    width: 18px;
    height: 20px;
    translate: 2px 0;
  }
}

.closing-banner__cta {
  min-width: 146px;
}

@media (min-width: 1280px) {
  .closing-banner__cta {
    width: 234px;
  }
}

/* The Edge pill CTA (Figma `button`): white, SemiBold, fully rounded; `--gold` is the nav gradient variant. */

a.edge-button,
button.edge-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 146px;
  margin: 0;
  padding: 18px 23px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-family: var(--font-family, 'IBM Plex Sans'), sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

a.edge-button:hover,
button.edge-button:hover {
  background: #f0dab1;
  box-shadow: 0 0 24px rgba(240, 218, 177, 0.35);
}

a.edge-button:active,
button.edge-button:active {
  transform: scale(0.98);
}

a.edge-button:focus-visible,
button.edge-button:focus-visible {
  outline: 2px solid #e0b25c;
  outline-offset: 3px;
}

a.edge-button--gold,
button.edge-button--gold {
  background: linear-gradient(100deg, #e6bc6c 0%, #ebcb8f 50%, #f0dab1 100%);
}

@media (min-width: 1280px) {
  a.edge-button,
  button.edge-button {
    min-width: 180px;
    padding: 22px 28px;
    font-size: 20px;
  }
}

/* Scroll-in: the section fades up the first time it enters the viewport. */
.closing-banner-host {
  opacity: 0;
  translate: 0 72px;
  transition:
    opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
    translate 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.closing-banner-host--in-view {
  opacity: 1;
  translate: 0 0;
}

@media (prefers-reduced-motion: reduce) {
  .closing-banner-host {
    opacity: 1;
    translate: none;
    transition: none;
  }
}

/* Parallax: the photo drifts with --parallax-y (useParallax.ts), over-scaled so its edges never show. */
@media (prefers-reduced-motion: no-preference) {
  .closing-banner__photo {
    scale: 1.1;
    translate: 0 var(--parallax-y, 0px);
    will-change: translate;
  }
}

