@import url("https://fonts.googleapis.com/css2?family=Caveat:wght@400;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

/* =========================================================
   PENDOVA LANDING — design tokens
   Layout is a strict 100dvh column: nothing on this page
   scrolls. Every block is sized with clamp()/flex so it
   shrinks on short phones and breathes on tall ones.
========================================================= */
:root {
  --pd-pink: #ed0e47;
  --pd-pink-soft: #ff5c8a;
  --pd-blue: #3bc4f5;
  --pd-purple: #9b6dbc;
  --pd-ink: #1c1633;
  --pd-muted: #5f5a75;
  --pd-card-radius: clamp(14px, 2.2vw, 22px);
}

html, body {
  height: 100%;
  overflow: hidden !important;
  overscroll-behavior: none;
}

section.pd-landing {
  position: relative;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  background: #f6f1ff;
  background-image:
    radial-gradient(120% 90% at 50% -10%, #ffe1ea 0%, rgba(255, 225, 234, 0) 60%),
    radial-gradient(90% 70% at 100% 100%, #d5f1ff 0%, rgba(213, 241, 255, 0) 60%),
    radial-gradient(80% 60% at 0% 90%, #ebdcff 0%, rgba(235, 220, 255, 0) 60%),
    linear-gradient(180deg, #fff6f9 0%, #f3ecff 55%, #e6f6ff 100%);
  color: var(--pd-ink);
}

/* =========================================================
   BACKGROUND DECORATION
========================================================= */
.pd-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.pd-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  animation: pd-drift 18s ease-in-out infinite alternate;
}
.pd-blob-1 { width: 46vmax; height: 46vmax; left: -18vmax; top: -16vmax; background: #ffc2d3; }
.pd-blob-2 { width: 40vmax; height: 40vmax; right: -16vmax; top: 28%; background: #bfe9ff; animation-delay: -6s; }
.pd-blob-3 { width: 36vmax; height: 36vmax; left: 10%; bottom: -20vmax; background: #dcc8ff; animation-delay: -12s; }

.pd-heart {
  position: absolute;
  width: 18px;
  height: 18px;
  opacity: 0;
  background: var(--pd-pink-soft);
  transform: rotate(-45deg);
  animation: pd-float 11s linear infinite;
}
.pd-heart::before,
.pd-heart::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: inherit;
}
.pd-heart::before { top: -50%; left: 0; }
.pd-heart::after  { left: 50%; top: 0; }
.pd-heart-1 { left: 8%;  bottom: 20%; animation-delay: 0s;   width: 14px; height: 14px; }
.pd-heart-2 { left: 22%; bottom: 8%;  animation-delay: -3s;  background: var(--pd-blue); }
.pd-heart-3 { left: 58%; bottom: 14%; animation-delay: -5s;  width: 12px; height: 12px; }
.pd-heart-4 { left: 76%; bottom: 6%;  animation-delay: -7s;  background: var(--pd-purple); width: 16px; height: 16px; }
.pd-heart-5 { left: 90%; bottom: 25%; animation-delay: -9s;  width: 11px; height: 11px; }

@keyframes pd-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(4vmax, -3vmax, 0) scale(1.08); }
}
@keyframes pd-float {
  0%   { transform: translateY(0) rotate(-45deg) scale(0.8); opacity: 0; }
  10%  { opacity: 0.55; }
  90%  { opacity: 0.2; }
  100% { transform: translateY(-70vh) rotate(-45deg) scale(1.15); opacity: 0; }
}

/* =========================================================
   PAGE COLUMN
========================================================= */
.mobile-home {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
  padding-top: max(clamp(8px, 1.6vh, 22px), env(safe-area-inset-top));
  padding-bottom: max(clamp(10px, 2vh, 26px), env(safe-area-inset-bottom));
}

.mobile-home > .container {
  width: 100%;
  max-width: 1100px;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding-left: clamp(16px, 4vw, 40px);
  padding-right: clamp(16px, 4vw, 40px);
}

/* =========================================================
   LOGO
========================================================= */
.mobile-home .logo {
  flex: 0 0 auto;
  padding: 0;
}
.mobile-home .logo img {
  width: clamp(120px, 26vw, 200px);
  max-height: clamp(36px, 7vh, 56px);
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(237, 14, 71, 0.12));
}

/* =========================================================
   HEADLINE
========================================================= */
.mobile-home > .container > .row {
  flex: 0 0 auto;
  margin-left: 0;
  margin-right: 0;
}
.pd-headline { padding: 0; }

.mobile-subtitle {
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: clamp(30px, 8.6vw, 54px);
  line-height: 1;
  margin: clamp(4px, 1vh, 12px) 0 0;
  text-align: center;
  background: linear-gradient(95deg, var(--pd-pink) 0%, #ff3d77 50%, #c02a8f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.mobile-tagline {
  font-family: "Manrope", sans-serif;
  font-weight: 500;
  font-size: clamp(12px, 3.3vw, 16px);
  line-height: 1.3;
  color: var(--pd-muted);
  margin: clamp(2px, 0.6vh, 8px) 0 0;
  text-align: center;
  letter-spacing: 0.01em;
}

/* =========================================================
   CAROUSEL  (JS sets --card-width / --card-height / --carousel-step)
========================================================= */
.carousel-cards {
  position: relative;
  width: 100%;
  /* Phones: sized to the card (0.62 × width, 0.78 aspect) and allowed to
     shrink on short screens; spare vertical space splits evenly above/below. */
  flex: 0 1 min(89vw, 480px);
  min-height: 170px;
  max-height: 480px;
  margin: auto 0;
  overflow: hidden;
  perspective: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(4px, 1vh, 10px) 0;
  box-sizing: border-box;
}
.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.profile-card {
  position: absolute;
  width: var(--card-width, 200px);
  height: var(--card-height, 250px);
  top: 50%;
  left: 50%;
  margin: 0;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--pd-card-radius);
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.4)) border-box;
  opacity: 0.45;
  transform: translate(calc(-50% + var(--initial-x, 0px)), -50%) scale(0.82);
  transform-origin: center center;
  transition: transform 0.6s cubic-bezier(0.22, 0.68, 0, 1.01), opacity 0.6s ease, box-shadow 0.6s ease;
  will-change: transform, opacity;
  overflow: hidden;
  cursor: pointer;
  z-index: 1;
  box-sizing: border-box;
  box-shadow: 0 10px 24px rgba(28, 22, 51, 0.10);
}

.profile-card.active {
  opacity: 1;
  transform: translate(calc(-50% + var(--initial-x, 0px)), -50%) scale(1) rotateY(0deg);
  z-index: 10;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, var(--pd-blue) 0%, var(--pd-pink-soft) 55%, var(--pd-pink) 100%) border-box;
  box-shadow: 0 22px 44px rgba(237, 14, 71, 0.22), 0 6px 14px rgba(28, 22, 51, 0.10);
}

.profile-card .card-body {
  width: 100%;
  height: 100%;
  padding: clamp(7px, 1.1vw, 12px);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.profile-card .card-body > div:first-child {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  border-radius: calc(var(--pd-card-radius) - 6px);
}
.profile-card .card-body > div:first-child::after {
  /* soft bottom fade so the name row sits on a clean edge */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 32%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(28, 22, 51, 0.18) 100%);
  pointer-events: none;
}
.profile-card .card-body > div:first-child img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
  transform: scale(1.02);
  transition: transform 0.6s ease;
}
.profile-card.active .card-body > div:first-child img { transform: scale(1); }

.profile-card .card-body > div:last-child {
  flex: 0 0 auto;
  min-height: clamp(28px, 5.5vh, 44px);
  margin-top: clamp(4px, 0.8vh, 8px) !important;
}

.profile-name {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(14px, 2.1vw, 19px);
  font-weight: 700;
  color: var(--pd-ink);
  white-space: nowrap;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 6px;
}
.profile-name::before {
  /* "online" dot */
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
  flex: 0 0 auto;
}

.profile-icons {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1vw, 10px);
  flex-shrink: 0;
}
.profile-icons img {
  width: clamp(20px, 4vw, 28px);
  height: clamp(20px, 4vw, 28px);
  object-fit: contain;
  transition: transform 0.25s ease;
}
.profile-card.active .profile-icons img:last-child {
  animation: pd-beat 1.6s ease-in-out infinite;
}
@keyframes pd-beat {
  0%, 100% { transform: scale(1); }
  30%      { transform: scale(1.22); }
  45%      { transform: scale(1); }
  60%      { transform: scale(1.12); }
}

/* =========================================================
   BOTTOM: FEATURE CHIPS + CTA
========================================================= */
.pd-bottom {
  width: 100%;
  flex: 0 0 auto;
  min-height: 0;
  box-sizing: border-box;
  margin-top: clamp(4px, 1vh, 12px);
}

.mobile-list {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(6px, 1.2vh, 10px) clamp(6px, 2vw, 12px);
}

.mobile-list-item {
  margin: 0 !important;
  width: 100%;
  min-width: 0;
  padding: clamp(5px, 0.9vh, 8px) clamp(8px, 2vw, 12px);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 16px rgba(28, 22, 51, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--pd-ink);
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: clamp(11px, 2.9vw, 14px);
  line-height: 1.2;
}

.list-icon-container {
  width: clamp(26px, 6vw, 34px);
  height: clamp(26px, 6vw, 34px);
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffe4ec 0%, #e3f5ff 100%);
  padding: clamp(5px, 1vw, 7px) !important;
  box-sizing: border-box;
}
.list-icon-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mobile-list-item p {
  margin: 0 0 0 clamp(6px, 1.6vw, 10px) !important;
  padding: 0;
  min-width: 0;
}

/* --- CTA --- */
.download-wrapper {
  width: 100%;
  margin-top: clamp(8px, 1.6vh, 18px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.download-btn {
  position: relative;
  width: min(380px, 100%);
  min-height: clamp(46px, 7vh, 60px);
  padding: clamp(10px, 1.5vh, 14px) 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #ff5c8a 0%, var(--pd-pink) 60%, #d40a3e 100%);
  color: #ffffff;
  border: 0;
  border-radius: 999px;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: clamp(16px, 4.2vw, 20px);
  letter-spacing: 0.01em;
  line-height: 1;
  box-sizing: border-box;
  box-shadow: 0 14px 32px rgba(237, 14, 71, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: pd-glow 2.6s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
}
.download-btn:hover  { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(237, 14, 71, 0.42); }
.download-btn:active { transform: translateY(0) scale(0.985); }
.download-btn-icon {
  width: 1.05em;
  height: 1.05em;
  flex: 0 0 auto;
  transition: transform 0.2s ease;
}
.download-btn:hover .download-btn-icon { transform: translateX(3px); }

@keyframes pd-glow {
  0%, 100% { box-shadow: 0 14px 32px rgba(237, 14, 71, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
  50%      { box-shadow: 0 14px 40px rgba(237, 14, 71, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
}

.pd-stores {
  margin: clamp(6px, 1vh, 10px) 0 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(11px, 2.8vw, 13px);
  font-weight: 600;
  color: var(--pd-muted);
  letter-spacing: 0.02em;
}

/* =========================================================
   VERY NARROW PHONES (≤ 340px): single-column chips
========================================================= */
@media (max-width: 340px) {
  .mobile-list { grid-template-columns: 1fr; max-width: 300px; }
  .mobile-list-item { padding-top: 4px; padding-bottom: 4px; }
}

/* =========================================================
   SHORT SCREENS (≤ 640px tall): tighten everything
========================================================= */
@media (max-height: 640px) {
  .mobile-home .logo img { max-height: 30px; }
  .mobile-subtitle { font-size: clamp(24px, 7vw, 34px); margin-top: 2px; }
  .mobile-tagline { display: none; }
  .carousel-cards { min-height: 170px; }
  .mobile-list { gap: 4px 6px; }
  .mobile-list-item { font-size: 11px; padding: 3px 8px; }
  .list-icon-container { width: 24px; height: 24px; padding: 4px !important; }
  .download-btn { min-height: 42px; font-size: 16px; }
  .pd-stores { display: none; }
}

/* =========================================================
   TABLET (≥ 768px)
========================================================= */
@media (min-width: 768px) {
  .carousel-cards { flex: 1 1 auto; max-height: 470px; margin: auto 0; }
  .mobile-home .logo img { width: 190px; max-height: 60px; }
  .mobile-subtitle { font-size: clamp(44px, 5.5vw, 60px); }
  .mobile-tagline { font-size: 17px; }
  .mobile-list { max-width: 720px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mobile-list-item { font-size: 13px; }
  .download-btn { width: 380px; }
}

/* =========================================================
   DESKTOP (≥ 992px)
========================================================= */
@media (min-width: 992px) {
  .mobile-home > .container { padding-left: 50px; padding-right: 50px; }
  .mobile-home .logo img { width: 210px; }
  .mobile-subtitle { font-size: clamp(50px, 4.6vw, 64px); }
  .mobile-tagline { font-size: 18px; }
  .carousel-cards { max-height: 520px; }
  .mobile-list { max-width: 860px; }
  .mobile-list-item { font-size: 14px; }
}

/* =========================================================
   MOTION PREFERENCES
========================================================= */
@media (prefers-reduced-motion: reduce) {
  .pd-blob, .pd-heart, .download-btn, .profile-card.active .profile-icons img:last-child { animation: none; }
  .pd-heart { display: none; }
}
