* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  background: #000;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.mobile-container {
  width: 375px;
  height: 812px;
  border-radius: 40px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  background: linear-gradient(180deg, #ff50a5 0%, #e7137a 100%);
}

/* ---- Lottie background (screen 1) ---- */
#lottie-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  transition: opacity 0.8s ease;
  overflow: hidden;
}

#lottie-bg svg {
  width: 100% !important;
  height: 100% !important;
  transform: none !important;
}

#lottie-bg.fade-out {
  opacity: 0;
}

/* ---- Static pink background (screen 2, always behind) ---- */
.bg-blue {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #ff50a5 0%, #e7137a 100%);
  z-index: 0;
}

/* ---- "taking you to..." text ---- */
.taking-text {
  position: absolute;
  width: 100%;
  text-align: center;
  z-index: 3;
  color: rgba(255, 255, 255, 0.85);
  font-family: "SN Pro", sans-serif;
  font-weight: 693;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -0.03em;
  /* vertically: slightly above center to sit above the logo */
  top: 50%;
  transform: translateY(-80px);
  transition: opacity 0.6s ease;
}

.taking-text.fade-out {
  opacity: 0;
}

/* ---- Single shared logo ---- */
.app-logo {
  position: absolute;
  z-index: 3;
  width: 160px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
  transition:
    top 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.app-logo.moved-up {
  top: 38%;
  width: 180px;
}

/* ---- Bottom content (screen 2) ---- */
.bottom-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 0 24px 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(100%);
  opacity: 0;
  transition:
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.5s ease;
}

.bottom-content.slide-up {
  transform: translateY(0);
  opacity: 1;
}

.fallback-text {
  color: rgba(255, 255, 255, 0.72);
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 28px;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 20px;
}

.store-buttons {
  display: flex;
  gap: 12px;
  width: 100%;
  justify-content: center;
  margin-bottom: 30px;
}

.store-badge {
  display: block;
  flex: 1;
  max-width: 172px;
  aspect-ratio: 172 / 50;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.store-badge:hover {
  transform: translateY(-2px);
}

.store-badge img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.help-text {
  color: rgba(255, 255, 255, 0.72);
  font-family: "Baloo 2", sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 28px;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 12px;
}

.talk-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: rgba(0, 0, 0, 1);
  padding: 10px 24px;
  border-radius: 24px;
  text-decoration: none;
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 28px;
  letter-spacing: -0.03em;
  text-align: center;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.talk-button:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
}

.talk-icon {
  width: 18px;
  height: 18px;
}

/* Mobile: full screen */
@media (max-width: 430px) {
  body {
    align-items: stretch;
  }

  .mobile-container {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
    box-shadow: none;
  }
}
