/* ==========================================================================
   CUSTOMIZE — demo CTA band (sits just above the footer)
   A full-width, edge-to-edge light band with the centered "Let's have a
   30-min call" CTA and the Book Now pill linking to Calendly.
   customize.js adds .is-in for the reveal.
   ========================================================================== */

.mia-custom {
  position: relative;
  background: #ffffff;
  padding: 0;
}

.mia-custom__main {
  /* straight top edge; the grey panel dissolves into the white below,
     which in turn feeds the footer's white→sky gradient */
  background: linear-gradient(180deg,
      #f2f5f9 0%,
      #f2f5f9 55%,
      #ffffff 100%);
  padding: clamp(44px, 5.5vw, 80px) clamp(20px, 4vw, 56px) clamp(28px, 3.5vw, 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(12px, 1.6vw, 18px);
}

.mia-custom__title {
  margin: 0;
  font-family: 'Outfit', 'Inter', -apple-system, sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 4.2vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #16324f;
}

.mia-custom__title em {
  font-style: normal;
  color: #4a97d8;
}

/* line — anchor — line rule under the heading */
.mia-custom__title::after {
  content: '';
  display: block;
  width: 190px;
  height: 16px;
  margin: 20px auto 0;
  background-color: #4a97d8;
  -webkit-mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='5' r='3'/%3E%3Cline x1='12' y1='22' x2='12' y2='8'/%3E%3Cpath d='M5 12H2a10 10 0 0 0 20 0h-3'/%3E%3C/svg%3E") center / 15px 15px no-repeat,
    linear-gradient(#000, #000) left center / 70px 1.5px no-repeat,
    linear-gradient(#000, #000) right center / 70px 1.5px no-repeat;
  mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='5' r='3'/%3E%3Cline x1='12' y1='22' x2='12' y2='8'/%3E%3Cpath d='M5 12H2a10 10 0 0 0 20 0h-3'/%3E%3C/svg%3E") center / 15px 15px no-repeat,
    linear-gradient(#000, #000) left center / 70px 1.5px no-repeat,
    linear-gradient(#000, #000) right center / 70px 1.5px no-repeat;
}

.mia-custom__sub {
  margin: 0;
  max-width: 520px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(13px, 1.1vw, 16px);
  line-height: 1.6;
  color: #4a6076;
}

/* ---------------- Calendly button ---------------- */

.mia-custom__btn {
  margin-top: clamp(6px, 1vw, 14px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(165px, 15vw, 205px);
  padding: clamp(14px, 1.4vw, 18px) clamp(28px, 2.8vw, 42px);
  border-radius: 999px;
  background: linear-gradient(120deg, #2b5f8f 0%, #4a90c2 60%, #56b6e8 100%);
  color: #ffffff;
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(15px, 1.15vw, 17px);
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow:
    0 12px 30px rgba(43, 95, 143, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.3s cubic-bezier(0.22, 0.8, 0.3, 1), box-shadow 0.3s ease;
}

.mia-custom__btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 18px 40px rgba(43, 95, 143, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.mia-custom__btn:active { transform: translateY(0); }

/* ---------------- reveal ---------------- */

.mia-custom__main > * {
  transition:
    opacity 0.7s ease,
    transform 0.85s cubic-bezier(0.22, 0.8, 0.3, 1);
}

.mia-custom:not(.is-in) .mia-custom__main > * {
  opacity: 0;
  transform: translateY(30px);
}

.mia-custom.is-in .mia-custom__main > :nth-child(2) { transition-delay: 0.08s; }
.mia-custom.is-in .mia-custom__main > :nth-child(3) { transition-delay: 0.16s; }

/* ---------------- responsive ---------------- */

@media (max-width: 640px) {
  .mia-custom__title { font-size: clamp(26px, 7.6vw, 36px); }
  .mia-custom__sub { font-size: 13px; }
}
