.download-cta {
  padding-block: var(--space-16);
}

.download-cta__panel {
  width: min(100% - var(--space-6), var(--content-max));
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.download-cta__card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-8), 4vw, var(--space-12));
  background-color: var(--color-luxe-ink);
  background-image: url("../assets/cta-bg.jpg?v=20260518-ctabg1");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
  color: var(--color-luxe-cream);
}

/* Left-to-right shade matched to the value-card tone (luxe-ink with a
   warm gold haze) so the photo blends into the rest of the dark luxury
   surface instead of sitting on a colder near-black panel. */
.download-cta__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      var(--color-luxe-ink) 0%,
      rgba(13, 17, 23, 0.92) 30%,
      rgba(13, 17, 23, 0.55) 55%,
      rgba(13, 17, 23, 0) 80%
    ),
    linear-gradient(
      155deg,
      rgba(200, 164, 92, 0.09) 0%,
      rgba(200, 164, 92, 0.035) 45%,
      rgba(200, 164, 92, 0) 100%
    );
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 879px) {
  /* On narrow screens swap the wide landscape photo for a portrait
     composition anchored to the TOP of the card. Content is centered
     and pushed down so the photo reads as a header, copy + buttons sit
     on the dark bottom half. */
  .download-cta__card {
    background-image: url("../assets/cta-bg-mobile.jpg?v=20260519-ctabg-mobile1");
    background-position: top center;
    background-size: 100% auto;
    background-repeat: no-repeat;
    padding-top: clamp(260px, 62vw, 420px);
  }
  .download-cta__card::before {
    background: linear-gradient(
      180deg,
      rgba(13, 17, 23, 0) 0%,
      rgba(13, 17, 23, 0.08) 38%,
      rgba(13, 17, 23, 0.7) 58%,
      rgba(13, 17, 23, 0.95) 75%,
      var(--color-luxe-ink) 100%
    );
  }
}

.download-cta__grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: var(--space-10);
  align-items: center;
}

@media (min-width: 880px) {
  .download-cta__grid {
    grid-template-columns: 1fr minmax(260px, 300px);
    gap: clamp(var(--space-8), 6vw, var(--space-16));
  }
}

.download-cta__copy {
  max-width: 46ch;
}

/* Mobile: center everything inside the card — kicker, title, copy, buttons.
   Resets at 880px+ where the 2-col layout takes over (copy is left-aligned
   on desktop so it reads against the right-side photo). */
@media (max-width: 879px) {
  .download-cta__copy {
    margin-inline: auto;
    text-align: center;
  }
  .download-cta__text {
    margin-inline: auto;
  }
  .download-cta__actions {
    justify-content: center;
  }
}

@media (min-width: 880px) {
  .download-cta__copy {
    padding-inline-start: clamp(var(--space-4), 4vw, var(--space-12));
  }
}

.download-cta__kicker {
  margin: 0 0 var(--space-3);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-luxe-gold);
}

.download-cta__title {
  margin: 0 0 var(--space-4);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.download-cta__text {
  margin: 0 0 var(--space-6);
  color: rgba(245, 245, 245, 0.78);
  max-width: 44ch;
}

.download-cta__text code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.download-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.btn--on-dark {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  background: transparent;
}

.btn--on-dark:hover {
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff;
}

.download-cta__mock {
  display: grid;
  place-items: center;
}

/* Right slot is now reserved for the background photo on the card.
   Keep min-height on desktop so the card is tall enough for the image
   composition to breathe; on narrow screens the photo is veiled, so
   collapse the slot. */
.download-cta__mock--empty {
  width: 100%;
  border-radius: var(--radius-lg);
  background: transparent;
}

@media (min-width: 880px) {
  .download-cta__mock--empty {
    min-height: clamp(360px, 38vw, 560px);
  }
}

/* iPhone-style schematic mockup */
.phone-mock {
  position: relative;
  width: min(100%, 280px);
  aspect-ratio: 9 / 19.5;
  border-radius: 44px;
  padding: 8px;
  background: linear-gradient(160deg, #2c2c2e 0%, #1a1a1c 55%, #0c0c0d 100%);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

.phone-mock__btn {
  position: absolute;
  background: linear-gradient(180deg, #2a2a2c, #18181a);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.phone-mock__btn--mute {
  left: -2px;
  top: 78px;
  width: 3px;
  height: 28px;
  border-radius: 2px 0 0 2px;
}

.phone-mock__btn--vol-up {
  left: -2px;
  top: 118px;
  width: 3px;
  height: 44px;
  border-radius: 2px 0 0 2px;
}

.phone-mock__btn--vol-down {
  left: -2px;
  top: 172px;
  width: 3px;
  height: 44px;
  border-radius: 2px 0 0 2px;
}

.phone-mock__btn--power {
  right: -2px;
  top: 130px;
  width: 3px;
  height: 64px;
  border-radius: 0 2px 2px 0;
}

.phone-mock__frame {
  position: relative;
  height: 100%;
  border-radius: 36px;
  background: #000;
  padding: 4px;
}

.phone-mock__screen {
  position: relative;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: #fafafa;
  isolation: isolate;
}

.phone-mock__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.phone-mock__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0) 22%,
    rgba(0, 0, 0, 0) 55%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

/* Dynamic Island */
.phone-mock__island {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 78px;
  height: 22px;
  border-radius: 999px;
  background: #000;
  z-index: 4;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.phone-mock__statusbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 38px;
  padding: 12px 18px 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.phone-mock__status-icons {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.phone-mock__signal,
.phone-mock__wifi,
.phone-mock__battery {
  display: inline-block;
  background: #fff;
}

.phone-mock__signal {
  width: 14px;
  height: 8px;
  -webkit-mask: linear-gradient(to top, #000 25%, transparent 25%) 0 100% / 3px 100% repeat-x;
          mask: linear-gradient(to top, #000 25%, transparent 25%) 0 100% / 3px 100% repeat-x;
}

.phone-mock__wifi {
  width: 12px;
  height: 9px;
  border-radius: 2px 2px 0 0;
  -webkit-mask: radial-gradient(circle at 50% 100%, #000 25%, transparent 26%) 0 0/100% 100%;
          mask: radial-gradient(circle at 50% 100%, #000 25%, transparent 26%) 0 0/100% 100%;
  background: linear-gradient(180deg, transparent 0 30%, #fff 30%);
}

.phone-mock__battery {
  position: relative;
  width: 22px;
  height: 10px;
  border-radius: 3px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.85);
  padding: 1px;
}

.phone-mock__battery::before {
  content: "";
  display: block;
  width: 80%;
  height: 100%;
  border-radius: 1.5px;
  background: #fff;
}

.phone-mock__battery::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 4px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 0 1px 1px 0;
}

/* In-app overlays */
.phone-mock__match {
  position: absolute;
  top: 56px;
  left: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.phone-mock__match-heart {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 6px;
  background: linear-gradient(135deg, #ff6b9d, #ff3d7f);
  color: #fff;
  font-size: 9px;
}

.phone-mock__profile {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 86px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.phone-mock__name {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.phone-mock__meta {
  margin: 2px 0 0;
  font-size: 11px;
  font-weight: 500;
  opacity: 0.85;
}

.phone-mock__verified {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #1a1200;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(200, 164, 92, 0.45);
}

.phone-mock__actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.phone-mock__action {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  cursor: default;
  background: #fff;
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 700;
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.phone-mock__action--like {
  background: linear-gradient(135deg, #ff6b9d, #ff3d7f);
  color: #fff;
}

.phone-mock__home {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 6px;
  z-index: 3;
  width: 96px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.25);
}
