/* -------------------------------------------------------------------------
   Closing call to action — shared by every page type.
   Signature gradient card (Ember → Go Orange → Amber, bottom-left to
   top-right), app icon, centred headline, white pill button and a product
   mockup rising out of the bottom edge.
   Desktop: desktop mockup. Mobile: phone mockup only.
   ------------------------------------------------------------------------- */

.qotg-cta-section {
  background: var(--wp--preset--color--canvas);
  padding-block: var(--wp--preset--spacing--section);
}

.qotg-cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  border-radius: clamp(22px, 2.4vw, 34px);
  padding: clamp(40px, 4vw, 60px) clamp(20px, 3.6vw, 48px) 0;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 62%),
    linear-gradient(to top right,
      var(--wp--preset--color--ember) 0%,
      var(--wp--preset--color--orange) 55%,
      var(--wp--preset--color--amber) 100%);
}

.qotg-cta-intro {
  max-width: 900px;
  margin-inline: auto;
}

.qotg-cta-icon {
  width: clamp(56px, 4.6vw, 68px);
  margin: 0 auto clamp(16px, 1.8vw, 22px);
}

.qotg-cta-icon img {
  background: #fff;
  padding: 18%;
  border-radius: 23%;
  box-sizing: border-box;
  box-shadow: 0 14px 28px rgba(96, 26, 0, 0.32), 0 2px 6px rgba(0, 0, 0, 0.1);
}

.qotg-cta-title {
  margin: 0 auto;
  max-width: 18ch;
  color: #fff;
  font-size: clamp(28px, 3.7vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 600;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(110, 30, 0, 0.12);
}

.qotg-cta-actions {
  justify-content: center;
  margin-top: clamp(18px, 2.2vw, 26px);
}

.qotg-cta-button .wp-block-button__link {
  background: #fff !important;
  color: var(--wp--preset--color--ink) !important;
  border-radius: 9999px !important;
  padding: 15px 30px !important;
  font-size: 16px !important;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 24px rgba(90, 25, 0, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.qotg-cta-button .wp-block-button__link:hover {
  background: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(90, 25, 0, 0.3);
}

.qotg-cta-button .wp-block-button__link:active {
  transform: translateY(0);
  box-shadow: 0 6px 18px rgba(90, 25, 0, 0.24);
}

.qotg-cta-visual {
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin: clamp(24px, 3vw, 40px) auto 0;
}

.qotg-cta-desktop {
  width: 90%;
  margin-inline: auto;
  max-height: clamp(200px, 24vw, 380px);
  overflow: hidden;
  border-radius: clamp(12px, 1.2vw, 18px) clamp(12px, 1.2vw, 18px) 0 0;
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.3), 0 34px 70px rgba(80, 20, 0, 0.34);
}

.qotg-cta-desktop img {
  width: 100%;
  height: auto;
}

.qotg-cta-phone {
  display: none;
}

@media (max-width: 781px) {
  .qotg-cta-section .qotg-shell {
    width: min(1240px, calc(100% - 32px));
  }

  .qotg-cta {
    border-radius: 22px;
    padding-inline: 18px;
    padding-top: clamp(36px, 9vw, 48px);
  }

  .qotg-cta-title {
    max-width: 16ch;
    font-size: clamp(28px, 8.2vw, 40px);
  }

  .qotg-cta-desktop {
    display: none;
  }

  .qotg-cta-phone {
    display: block;
    width: min(280px, 68vw);
    height: clamp(320px, 96vw, 440px);
    margin: 36px auto 0;
    overflow: hidden;
  }

  .qotg-cta-phone img {
    width: 100%;
    height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .qotg-cta-button .wp-block-button__link {
    transition: none;
  }
}
