/* Closing section layout. The book, panel, and cues are the public hero components. */

#action {
  overflow: clip;
}

#action::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  height: 210px;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(5, 3, 8, 0) 0%,
    rgba(5, 3, 8, 0) 18%,
    rgba(5, 3, 8, 0.42) 48%,
    rgba(5, 3, 8, 0.86) 74%,
    #050308 100%
  );
}

#action h2 {
  max-width: 12em;
  font-size: clamp(2.15rem, 8vw, 3.15rem);
  letter-spacing: -0.035em;
}

#action .section__lead {
  max-width: 34rem;
}

#action .action__stage::after {
  content: "";
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  height: 190px;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(5, 3, 8, 0) 0%,
    rgba(5, 3, 8, 0.72) 46%,
    #050308 100%
  );
}

#action .action__stage {
  position: relative;
  height: 540px;
  margin-top: 28px;
  margin-right: calc(var(--gutter) * -1);
  margin-bottom: -48px;
}

#action .hero-product {
  --cover-h: 460px;
  --cover-w: calc(var(--cover-h) * 0.755);
  position: relative;
  width: 100%;
  height: 100%;
}

#action .hero-product__stage {
  position: relative;
  width: 100%;
  height: 100%;
}

#action .hero-product__stage::before {
  content: "";
  position: absolute;
  left: 28%;
  right: 0;
  top: 8%;
  bottom: 12%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 45% 42%, rgba(145, 108, 210, 0.22), transparent 68%),
    radial-gradient(ellipse at 78% 28%, rgba(186, 90, 220, 0.28), transparent 62%);
  filter: blur(18px);
  pointer-events: none;
}

#action .hero-product__shadow {
  position: absolute;
  left: 42%;
  bottom: 4%;
  width: 46%;
  height: 18%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 42% 35%, rgba(0, 0, 0, 0.55), transparent 72%);
  filter: blur(16px);
  pointer-events: none;
}

#action .sa-book,
#action .rlm-page {
  position: absolute;
  transform: rotate(6deg);
  transform-origin: 30% 20%;
}

#action .rlm-page {
  right: -16%;
  top: 228px;
  z-index: 1;
  width: min(220px, 58%);
  height: auto;
  aspect-ratio: 0.775;
  overflow: hidden;
  border: 1px solid rgba(210, 180, 255, 0.16);
  border-radius: 2px;
  background:
    radial-gradient(70% 55% at 78% 42%, rgba(140, 70, 200, 0.22), transparent 58%),
    linear-gradient(165deg, #1a1028 0%, #100818 48%, #0a0612 100%);
  box-shadow:
    16px 28px 36px rgba(0, 0, 0, 0.35),
    inset -2px 0 0 rgba(236, 228, 255, 0.28);
  color: #e9d5ff;
}

#action .rlm-page__silhouette {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

#action .rlm-page__silhouette-svg {
  position: absolute;
  inset: -4% -6% -8% 8%;
  width: 108%;
  height: 112%;
}

#action .rlm-page__silhouette-label {
  position: absolute;
  top: 7%;
  left: 42%;
  right: 6%;
  margin: 0;
  color: rgba(233, 213, 255, 0.72);
  font-family: var(--font-display);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

#action .sa-book {
  right: -2%;
  top: 208px;
  z-index: 2;
  width: min(248px, 66%);
  height: auto;
  aspect-ratio: 0.755;
}

#action .sa-book::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 10%;
  bottom: -1%;
  height: 5%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 48% 30%, rgba(8, 2, 16, 0.55), transparent 74%);
  filter: blur(4px);
  transform: skewX(-12deg);
  pointer-events: none;
}

#action .sa-book__spine,
#action .sa-book__pages {
  position: absolute;
  z-index: 3;
  pointer-events: none;
}

#action .sa-book__spine {
  left: -8px;
  top: 2px;
  bottom: 2px;
  width: 8px;
  border-radius: 2px 0 0 2px;
  background: linear-gradient(90deg, #020106 0%, #16101f 34%, #2c2038 58%, #100c16 100%);
  box-shadow:
    inset -1px 0 0 rgba(210, 180, 255, 0.12),
    -3px 4px 10px rgba(0, 0, 0, 0.35);
}

#action .sa-book__pages {
  display: none;
}

#action .sa-book__cover {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 8.5% 10% 8% 11%;
  overflow: hidden;
  border: 1px solid rgba(210, 180, 255, 0.16);
  border-radius: 2px 3px 3px 2px;
  background:
    radial-gradient(130% 78% at 92% -8%, rgba(220, 185, 255, 0.26), transparent 42%),
    linear-gradient(128deg, rgba(255, 250, 255, 0.14) 0%, transparent 30%),
    linear-gradient(180deg, #2c1e40 0%, #181225 46%, #0a0710 100%);
  box-shadow:
    20px 38px 44px rgba(0, 0, 0, 0.46),
    8px 16px 20px rgba(0, 0, 0, 0.28),
    inset 0 1.5px 0 rgba(235, 220, 255, 0.2),
    inset -16px 0 28px rgba(0, 0, 0, 0.38);
  color: #fff;
}

#action .sa-book__cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.34;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  background-size: 140px 140px;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

#action .sa-book__title,
#action .sa-book__rule,
#action .sa-book__tag,
#action .sa-book__brand {
  position: relative;
  z-index: 2;
}

#action .sa-book__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 3.35rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.04em;
}

#action .sa-book__title-line {
  display: block;
}

#action .sa-book__rule {
  width: 2.75rem;
  height: 1px;
  margin: 0.85rem 0 0.75rem;
  border: 0;
  background: rgba(255, 255, 255, 0.38);
}

#action .sa-book__tag {
  max-width: 14em;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(0.7rem, 2vw, 0.84rem);
  line-height: 1.4;
}

#action .sa-book__wave {
  position: absolute;
  right: -12%;
  top: 6%;
  z-index: 1;
  width: 88%;
  height: 90%;
  opacity: 0.88;
  mix-blend-mode: screen;
  pointer-events: none;
}

#action .sa-book__brand {
  margin-top: auto;
  padding-top: 1.25rem;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-display);
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

#action .hero-break-chips {
  position: absolute;
  z-index: 4;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  pointer-events: none;
}

#action .hero-break-chips__dash {
  display: none;
}

#action .hero-break-chips__stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

#action .hero-break-chips__label {
  margin: 0;
  color: rgba(240, 168, 212, 0.72);
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

#action .hero-break-chips__list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#action .hero-break-chips__list li {
  margin: 0;
  padding: 0.48em 0.95em;
  border: 1px solid rgba(240, 168, 212, 0.28);
  border-radius: 999px;
  background: rgba(42, 24, 56, 0.55);
  color: rgba(240, 168, 212, 0.9);
  font-family: var(--font-display);
  font-size: clamp(0.78rem, 2vw, 0.9rem);
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

#action .hero-break-chips__dash {
  width: 64px;
  height: 2px;
  margin-left: 14px;
  background-image: repeating-linear-gradient(
    to right,
    rgba(245, 196, 224, 0.88) 0 7px,
    transparent 7px 13px
  );
}

#action .action-stage__line {
  position: absolute;
  z-index: 4;
  top: 162px;
  left: 0;
  right: 12px;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.site-footer {
  position: relative;
  z-index: 2;
  padding-top: 22px;
  background: #050308;
  border-top-color: transparent;
}

@media (min-width: 1024px) {
  .faq + #action {
    margin-top: -32px;
    padding-top: 96px;
    padding-bottom: 0;
  }

  #action::before {
    right: -4%;
    top: -24%;
    width: 52%;
    height: 78%;
    background: radial-gradient(circle, rgba(128, 64, 214, 0.5), rgba(90, 40, 170, 0.16) 46%, transparent 70%);
  }

  #action > .shell {
    display: grid;
    grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
    align-items: center;
    column-gap: 28px;
    min-height: 680px;
  }

  #action h2 {
    font-size: clamp(2.6rem, 3.3vw, 3.55rem);
  }

  #action .action__copy {
    position: relative;
    z-index: 2;
    max-width: 34rem;
  }

  #action .action__stage {
    height: 720px;
    margin-top: 0;
    margin-bottom: -88px;
    margin-right: calc(max(var(--gutter), (100vw - var(--shell)) / 2) * -1 - 36px);
  }

  #action .hero-product {
    --cover-h: 560px;
  }

  #action .sa-book {
    left: 24%;
    right: auto;
    top: 18px;
    width: var(--cover-w);
    height: var(--cover-h);
    aspect-ratio: auto;
  }

  #action .rlm-page {
    left: calc(24% + var(--cover-w) * 0.62);
    right: auto;
    top: 58px;
    width: calc(var(--cover-h) * 0.7);
    height: calc(var(--cover-h) * 0.92);
    aspect-ratio: auto;
  }

  #action .hero-break-chips {
    top: 22%;
    left: 0;
  }

  #action .hero-break-chips__dash {
    display: block;
    width: 96px;
  }

  #action .sa-book__title {
    font-size: clamp(3rem, 3.5vw, 3.7rem);
  }

  #action::after {
    height: 64px;
    background: linear-gradient(to bottom, rgba(5, 3, 8, 0), #050308);
  }

  #action .action__stage::after {
    height: 460px;
    background: linear-gradient(
      to bottom,
      rgba(5, 3, 8, 0) 0%,
      rgba(5, 3, 8, 0.62) 20%,
      rgba(5, 3, 8, 0.94) 42%,
      #050308 62%,
      #050308 100%
    );
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 200px);
    mask-image: linear-gradient(90deg, transparent 0, #000 200px);
  }

  #action .action-stage__line {
    top: auto;
    left: auto;
    right: 9%;
    bottom: 268px;
    font-size: 1.12rem;
  }

  .site-footer {
    padding-top: 28px;
    padding-bottom: 40px;
  }
}
