/* =====================
   m_cta — final "Take control of your residence status today" CTA section.

   Source of truth:
     Desktop: Figma node 4210:12535
     Mobile:  Figma node 4215:12566
   No animations.

   Inherits from `.m_feature` (dark BG, font Inter). Adds a unique
   2-column hero-style layout (text left, layered phone visuals right) and
   overrides the default vertical padding from 80/56 to 96 desktop / 64 top
   only on mobile.

   The phone visual is two PNGs absolutely-positioned and rotated, with a
   green radial-gradient glow behind. The whole right column is `overflow: clip`
   so rotated phones can extend beyond the cell.

   Mobile breakpoint: <= 991px.
===================== */

/* ---- Section overrides --------------------------------------------- */

.m_cta {
  padding: 6rem 0;                      /* 96px Y desktop */
  overflow: clip;                       /* contain glow + rotated phones */
}
@media (max-width: 991px) {
  .m_cta { padding: 4rem 0 0; }         /* 64px top only mobile */
}

/* The container holds the 2-col layout on desktop, single column mobile. */
.m_cta > .u-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 3rem;                            /* 48px between text and phones */
}
@media (max-width: 991px) {
  .m_cta > .u-container {
    flex-direction: column;
    gap: 3rem;                          /* 48px between content and phones */
    align-items: stretch;
  }
}

/* ---- Left content column (text + button) ------------------------- */

.m_cta_content {
  display: flex;
  flex-direction: column;
  gap: 3rem;                            /* 48px between text-block and CTA */
  max-width: 37.5rem;                   /* 600px */
  width: 33.125rem;                     /* 530px from Figma */
  flex-shrink: 0;
  position: relative;
  z-index: 3;                           /* above the phones + glow */
  color: var(--color--white, #ffffff);
}
@media (max-width: 991px) {
  .m_cta_content {
    width: 100%;
    max-width: 100%;
    gap: 1rem;                          /* 16px tighter mobile */
    align-items: center;
    text-align: center;
  }
}

.m_cta_text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;                          /* 24px between title and subtitle */
}
@media (max-width: 991px) {
  .m_cta_text {
    gap: 1rem;                          /* 16px mobile */
    align-items: center;
  }
}

.m_cta_title {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-weight: 600;                     /* SemiBold */
  font-size: 3rem;                      /* 48px desktop */
  line-height: 1.25;                    /* 60/48 */
  letter-spacing: -0.02em;
  color: var(--color--white, #ffffff);
  text-wrap: balance;
}
@media (max-width: 991px) {
  .m_cta_title {
    font-size: 1.875rem;                /* 30px mobile */
    line-height: 1.2667;                /* 38/30 */
    letter-spacing: 0;
    text-align: center;
  }
}

.m_cta_subtitle {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 1.25rem;                   /* 20px desktop */
  line-height: 1.5;                     /* 30/20 */
  color: rgba(255, 255, 255, 0.7);
}
@media (max-width: 991px) {
  .m_cta_subtitle {
    font-size: 1rem;                    /* 16px mobile */
    line-height: 1.5;                   /* 24/16 */
    color: var(--color--lightest-grey, #E4E7EC);
    opacity: 1;
  }
}

/* ---- App Store badge --------------------------------------------- */

.m_cta_appstore {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;                          /* 6.4px between logo and text */
  padding: 0 0.75rem;                   /* 0 12px */
  height: 2.75rem;                      /* 44px */
  width: 8.25rem;                       /* 132px */
  background: #000000;
  border: 1px solid #a6a6a6;
  border-radius: 0.4375rem;             /* 7px */
  text-decoration: none;
  color: #ffffff;
  flex-shrink: 0;
  white-space: nowrap;
}
.m_cta_appstore:hover { background: #1a1a1a; }
.m_cta_appstore:focus-visible {
  outline: 2px solid var(--color--main-green, #90F99C);
  outline-offset: 2px;
}

.m_cta_appstore_logo {
  flex-shrink: 0;
  width: 1.5rem;                        /* 24px */
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}
.m_cta_appstore_logo svg { width: 100%; height: 100%; display: block; }

.m_cta_appstore_text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  line-height: 1;
  flex-shrink: 1;
  min-width: 0;
}
.m_cta_appstore_text_label {
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.5rem;                    /* 8px "Download on the" — Apple spec */
  font-weight: 400;
  color: #ffffff;
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 0.125rem;              /* 2px */
}
.m_cta_appstore_text_name {
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem;                  /* 18px "App Store" */
  font-weight: 500;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1;
}

/* ---- Right column: layered rotated phones ----------------------- */

.m_cta_visual {
  position: relative;
  width: 36.375rem;                     /* 582px */
  height: 35rem;                        /* 559.84px ≈ 560 */
  flex-shrink: 1;
  overflow: clip;
  z-index: 2;
}
@media (max-width: 991px) {
  .m_cta_visual {
    width: 100%;
    height: 21.5625rem;                 /* 345px Figma mobile */
    margin: 0 auto;
  }
}

/* Green radial glow behind the phones */
.m_cta_glow {
  position: absolute;
  top: -54%;
  left: -27%;
  width: 154%;
  height: 200%;
  background: radial-gradient(
    ellipse closest-side,
    rgba(144, 249, 156, 0.30) 0%,
    rgba(144, 249, 156, 0.08) 40%,
    transparent 70%
  );
  filter: blur(40px);
  pointer-events: none;
  z-index: 1;
}

/* Two phone images, layered + rotated. The mockup is the "back" device,
   the screenshot is "front" — they read as a duo at angles. */
.m_cta_phone {
  position: absolute;
  display: block;
  pointer-events: none;
  user-select: none;
  z-index: 2;
}

.m_cta_phone--mockup {
  width: 33.25rem;                      /* 532px (Figma 531.66) */
  height: auto;
  top: -2rem;
  left: -7.5rem;
  transform: rotate(14.26deg);
}
.m_cta_phone--screenshot {
  width: 15.8rem;                       /* 252px */
  height: auto;
  top: 5.875rem;                        /* 94px */
  right: 1.5rem;
  left: auto;
  transform: rotate(5.06deg);
  opacity: 0.88;
  z-index: 3;
}

@media (max-width: 991px) {
  .m_cta_phone--mockup {
    width: 21.31rem;                    /* 341px mobile */
    top: -1.8rem;
    left: -6rem;
  }
  .m_cta_phone--screenshot {
    width: 10.13rem;                    /* 162px mobile */
    top: 1.4rem;
    right: 0.7rem;
  }
}
