/* =========================================================
   DEMO (video) SECTION
   Picture: images/demo-bg.png (light, grid band at its top). The torn paper of the section above lies over it.
========================================================= */

/* the dark section above ends in torn paper that lies over the top of this one */
/* flow-root: the paper's negative margin must not pull this dark ground down over the next section */
body.cyber-monday.cyber-monday .cm-whatsnew.th-dark.th-dark { z-index: 2; display: flow-root; overflow: visible; padding-bottom: 0; }
body.cyber-monday.cyber-monday.cyber-monday .cm-whatsnew.th-dark.th-dark::after { display: none !important; }
.cm-whatsnew .torn-edge {
  position: relative;
  z-index: 3;
  margin: 60px 0 calc(max(100.8vw, 900px) * -.0139);
  overflow: hidden;
  line-height: 0;
  pointer-events: none;
  /* dark behind the torn line; only the paper's flat white foot fades into the grid below */
  background: #05010f;
  -webkit-mask: linear-gradient(#000 80%, transparent 100%);
  mask: linear-gradient(#000 80%, transparent 100%);
}
.cm-whatsnew .torn-edge img { display: block; width: max(100.8%, 900px); max-width: none; height: auto; }

body.cyber-monday.cyber-monday.cyber-monday .dm.th-light.th-light {
  --ground-l: #f9fafd;
  z-index: 1;
  margin-top: 0 !important;
  padding-top: 120px;
  padding-bottom: 96px;
  background: #f9fafd url(../images/demo-bg.png) center top / cover no-repeat !important;
}
body.cyber-monday.cyber-monday.cyber-monday .dm.th-light.th-light::after { display: none !important; }
.dm > .container { position: relative; z-index: 1; }
.dm .cm-title { max-width: 1060px; }


/* ---------- keyword in -> out ---------- */
.dm-flow { display: flex; align-items: center; justify-content: center; max-width: 900px; margin: 38px auto 0; }
.dm-flow > span {
  display: grid;
  place-items: center;
  min-height: 70px;
  padding: 12px 30px 13px;
  font-family: var(--display);
  font-stretch: 108%;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.25;
  text-align: center;
  text-wrap: balance;
}
.dm-in {
  position: relative;
  padding-left: 54px !important;
  padding-right: 52px !important;
  border-radius: 20px 0 0 20px;
  background: radial-gradient(90% 140% at 0 0, rgba(138, 85, 247, .65), transparent 72%), linear-gradient(180deg, #1d0b40, #0b0318);
  color: #fff;
}
/* text cursor of the keyword box */
.dm-in::before { content: ""; position: absolute; left: 30px; top: 50%; width: 3px; height: 28px; margin-top: -14px; border-radius: 3px; background: #c9adff; box-shadow: 0 0 12px #9d6dff; }
.dm-arrow {
  position: relative;
  z-index: 1;
  flex: none;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 -31px;
  border: 5px solid #fff;
  border-radius: 50%;
  background: linear-gradient(140deg, #9d6dff, #5a1fd0 55%, #2c0085);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  box-shadow: 0 10px 24px -6px rgba(74, 18, 184, .7);
}
.dm-out {
  padding-left: 54px !important;
  border: 2px solid #d5c2fb;
  border-left: 0;
  border-radius: 0 20px 20px 0;
  background: linear-gradient(100deg, #fff, #f1e9ff);
  color: #3a0a9e;
}


/* ---------- video frame: thin light edge, soft glow under it ---------- */
.dm-stage { position: relative; max-width: 1000px; margin: 64px auto 0; }
.dm-stage::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -34px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(110, 50, 230, .55), transparent);
  filter: blur(14px);
}
.dm-film {
  position: relative;
  padding: 10px;
  border: 1.5px solid transparent;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(243, 237, 255, .92)) padding-box,
    linear-gradient(140deg, #fff, #c9adff 40%, #7d4bf0 75%, #c53ad8) border-box;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 40px 80px -36px rgba(58, 10, 158, .7);
}
.dm-screen { position: relative; overflow: hidden; border-radius: 19px; background: #05010f; }
.dm-screen wistia-player { display: block; }

/* ---------- call to action card ---------- */
.dm-cta {
  position: relative;
  max-width: 900px;
  margin: 78px auto 0;
  padding: 30px 32px 28px;
  border: 2px solid transparent;
  border-radius: 28px;
  background:
    radial-gradient(50% 80% at 0 0, #efe6ff, transparent 75%) padding-box,
    radial-gradient(50% 80% at 100% 100%, #f6e6fb, transparent 75%) padding-box,
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(120deg, #c9adff, #7d4bf0 45%, #c53ad8) border-box;
  box-shadow: 0 34px 70px -34px rgba(74, 18, 184, .65);
}
.dm-cta .cm-cta-note { margin-top: 18px; }
.dm-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 30px; margin-top: 22px; padding-top: 24px; border-top: 2px dashed #d5c2fb; }
body.cyber-monday.cyber-monday .dm-cta .cm-cta-pay.cm-cta-pay { width: 100%; max-width: 420px; margin: 0 auto; padding: 0; background: none; }
.dm-timer { text-align: center; }
.dm-hurry { color: #150533; font-size: 18px; font-weight: 700; line-height: 1.4; }
.dm-hurry b { display: inline-block; margin-right: 4px; padding: 1px 11px 2px; border-radius: 7px; background: linear-gradient(180deg, #8a4bff, #4a12b8); color: #fff; font-weight: 800; }
/* the countdown is an embed: shown through a window that fits its four boxes */
.dm-clock { position: relative; width: 292px; height: 84px; margin: 4px auto -8px; overflow: hidden; }
.dm-clock i { position: absolute; top: 12px; left: calc(50% - 136px); width: 60px; height: 60px; border: 1.5px solid #dccbff; border-radius: 12px; background: #fff; box-shadow: 0 5px 12px -6px rgba(74, 18, 184, .45); }
.dm-clock i:nth-child(2) { left: calc(50% - 65px); }
.dm-clock i:nth-child(3) { left: calc(50% + 6px); }
.dm-clock i:nth-child(4) { left: calc(50% + 77px); }
.dm-clock iframe { position: absolute; top: -22px; left: 50%; width: 340px; height: 150px; border: 0; transform: translateX(-50%); }


/* ---------- smaller screens ---------- */
@media (max-width: 1199px) {
  .dm-stage { max-width: 880px; }
}
@media (max-width: 991px) {
  .dm-flow > span { font-size: 18px; padding-top: 10px; padding-bottom: 11px; }
  .dm-foot { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}
@media (max-width: 767px) {
  body.cyber-monday.cyber-monday.cyber-monday .dm.th-light.th-light { padding-top: 74px; padding-bottom: 66px; }
  .dm-flow { flex-direction: column; margin-top: 28px; }
  .dm-flow > span { width: 100%; min-height: 0; padding: 15px 18px 16px !important; }
  .dm-flow > .dm-in { padding-bottom: 38px !important; border-radius: 20px 20px 0 0; }
  .dm-in::before { display: none; }
  .dm-flow > .dm-out { padding-top: 38px !important; border-left: 2px solid #d5c2fb; border-top: 0; border-radius: 0 0 20px 20px; }
  .dm-arrow { width: 52px; height: 52px; margin: -26px 0; font-size: 20px; transform: rotate(90deg); }
  .dm-stage { margin-top: 44px; }
  .dm-film { padding: 6px; border-radius: 20px; }
  .dm-screen { border-radius: 15px; }
  .dm-cta { margin-top: 48px; padding: 20px 16px 18px; border-radius: 22px; }
  .dm-clock { width: 292px; margin: 4px -20px -8px; left: 50%; transform: translateX(calc(-50% + 20px)) scale(.9); }
}
