/* App preview — pre-footer mobile mockup CTA */

.mcube-app-preview {
  --ap-bg: #F7F5F0;
  --ap-title: #0A1628;
  --ap-text: #4B5563;
  --ap-muted: #6B7280;

  position: relative;
  padding: 88px var(--mcube-space-page-mobile, 16px) 96px;
  background: var(--ap-bg);
  overflow: hidden;
}

.mcube-app-preview-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.mcube-app-preview-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.mcube-app-preview-orb--teal {
  width: 420px;
  height: 420px;
  top: -12%;
  left: -8%;
  background: rgba(0, 201, 167, 0.14);
}

.mcube-app-preview-orb--gold {
  width: 360px;
  height: 360px;
  bottom: -10%;
  right: -6%;
  background: rgba(245, 184, 0, 0.12);
}

.mcube-app-preview-container {
  max-width: 1120px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: center;
}

/* Phone */
.mcube-app-preview-phone-col {
  display: flex;
  justify-content: center;
}

.mcube-app-preview-phone-wrap {
  position: relative;
  width: min(100%, 270px);
}

.mcube-app-preview-phone-glow {
  position: absolute;
  inset: 8% -14%;
  background: radial-gradient(circle, rgba(0, 201, 167, 0.22) 0%, transparent 70%);
  filter: blur(28px);
  z-index: 0;
}

.mcube-app-preview-phone {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1 / 2;
  max-height: 500px;
  padding: 12px;
  border-radius: 34px;
  background: linear-gradient(160deg, #1f2937 0%, #0f172a 100%);
  box-shadow:
    0 28px 64px rgba(10, 22, 40, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.mcube-app-preview-phone-notch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 6px;
  border-radius: 999px;
  background: #1f2937;
  z-index: 3;
}

.mcube-app-preview-phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: #070E1A;
}

.mcube-app-preview-phone-screen .mock-screen {
  padding: 24px 10px 10px;
  gap: 6px;
}

/* Copy */
.mcube-app-preview-copy {
  min-width: 0;
}

.mcube-app-preview-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(10, 22, 40, 0.06);
  border: 1px solid rgba(10, 22, 40, 0.08);
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ap-title);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mcube-app-preview-eyebrow i {
  color: #00C9A7;
  font-size: 11px;
}

.mcube-app-preview-title {
  font-family: var(--mcube-font-display, 'Clash Display', sans-serif);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  color: var(--ap-title) !important;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.mcube-app-preview-lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ap-text) !important;
  margin: 0 0 22px;
  max-width: 480px;
}

.mcube-app-preview-points {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.mcube-app-preview-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ap-title);
  line-height: 1.45;
}

.mcube-app-preview-points i {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(0, 201, 167, 0.12);
  color: #00A88A;
  font-size: 13px;
}

.mcube-app-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.mcube-app-preview-actions .mcube-app-btn {
  flex: 1 1 200px;
  max-width: 280px;
}

.mcube-app-preview-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  color: var(--ap-muted);
  font-weight: 500;
}

.mcube-app-preview-note i {
  color: #00C9A7;
  font-size: 12px;
}

/* Dark theme */
html[data-theme="dark"] .mcube-app-preview {
  --ap-bg: #0F1219;
  --ap-title: #E6EDF3;
  --ap-text: #94A3B8;
  --ap-muted: #64748B;
}

html[data-theme="dark"] .mcube-app-preview-eyebrow {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 991px) {
  .mcube-app-preview {
    padding: 72px 16px 80px;
  }

  .mcube-app-preview-container {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .mcube-app-preview-phone-wrap {
    width: min(68vw, 240px);
  }

  .mcube-app-preview-lead {
    max-width: none;
  }

  .mcube-app-preview-actions {
    flex-direction: column;
  }

  .mcube-app-preview-actions .mcube-app-btn {
    max-width: none;
    width: 100%;
  }
}

@media (max-width: 575px) {
  .mcube-app-preview-phone-wrap {
    width: min(72vw, 220px);
  }
}
