:root {
  --bg-color: #FFF2F5; /* Soft pink-cream */
  --text-main: #2D2A3B;
  --text-muted: #8G7A8A;
  --primary: #FC4767; /* The bright pinky red */
  --primary-glow: #FC476740;
  --card-bg: #FFFFFF;
  
  --font-main: 'Outfit', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

a { text-decoration: none; color: inherit; }
button { border: none; background: none; font-family: inherit; cursor: pointer; }

.app-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Wavy Background */
.soft-bg {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden; pointer-events: none; z-index: -1;
}
.soft-bg__circle {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 70%);
}
.soft-bg__circle--1 { width: 800px; height: 800px; top: -200px; left: -100px; opacity: 0.6; }
.soft-bg__circle--2 { width: 1000px; height: 1000px; bottom: 100px; right: -200px; opacity: 0.4; }
.soft-bg__dot {
  position: absolute; border-radius: 50%; background: var(--primary);
  width: 16px; height: 16px; box-shadow: 0 4px 12px var(--primary-glow);
}
.soft-bg__dot--1 { top: 120px; left: 45%; }
.soft-bg__dot--2 { top: 60%; left: 80%; width: 12px; height: 12px; opacity: 0.5; }
.soft-bg__waves {
  position: absolute; top: -10%; left: -10%; width: 120%; height: 120%;
}

/* Nav */
.app-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 40px; position: relative; z-index: 10;
}
.app-brand { font-size: 20px; font-weight: 800; letter-spacing: 0.5px; }
.app-brand span { color: var(--primary); }

.app-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border-radius: 999px;
  padding: 8px 16px 8px 20px;
  box-shadow: 0 8px 24px rgba(252, 71, 103, 0.08);
  font-weight: 600; font-size: 14px;
}
.app-pill__icon { font-size: 16px; }

.app-btn-icon {
  width: 48px; height: 48px;
  background: #fff; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--primary);
  box-shadow: 0 8px 24px rgba(252, 71, 103, 0.1);
  transition: transform 0.3s;
}
.app-btn-icon:hover { transform: translateY(-2px); }

/* Hero */
.app-hero {
  max-width: 1200px; margin: 40px auto 100px; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center;
}

.app-title {
  font-size: clamp(48px, 5vw, 64px); line-height: 1.1;
  font-weight: 800; margin-bottom: 16px; color: var(--text-main);
  letter-spacing: -1px;
}
.app-text-highlight { color: var(--primary); }
.app-desc { font-size: 18px; color: #6b6678; margin-bottom: 40px; line-height: 1.5; max-width: 420px; }

/* Filter Box */
.app-search-box {
  background: #fff; border-radius: 32px; padding: 40px;
  box-shadow: 0 20px 60px rgba(252, 71, 103, 0.1);
}
.app-search__head {
  font-size: 20px; font-weight: 800; margin-bottom: 24px;
}
.app-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.app-form__label {
  display: block; font-size: 13px; font-weight: 600; color: #6b6678;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px;
}
.app-select {
  width: 100%; appearance: none;
  background: var(--bg-color); border: none; border-radius: 16px;
  padding: 16px 20px; font-family: inherit; font-size: 15px; font-weight: 600;
  color: var(--text-main); cursor: pointer; outline: none;
}
.app-form__label-flex { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 12px; }
.app-form__value { font-weight: 800; color: var(--primary); font-size: 16px; border-bottom: 2px dashed rgba(252,71,103,0.2); }

.app-slider { position: relative; height: 32px; display: flex; align-items: center; margin-bottom: 32px; }
.app-slider__track {
  position: absolute; left: 0; right: 0; height: 6px;
  background: #f0ebed; border-radius: 3px;
}
.app-slider__track::after {
  content: ''; position: absolute; top: 0; bottom: 0;
  background: var(--primary); border-radius: 3px;
  left: calc(var(--min-p, 0) * 1%); width: calc((var(--max-p, 100) - var(--min-p, 0)) * 1%);
}
.app-slider__input { position: absolute; width: 100%; appearance: none; background: transparent; outline: none; pointer-events: none; }
.app-slider__input::-webkit-slider-thumb {
  appearance: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--primary); border: 4px solid #fff;
  box-shadow: 0 4px 10px rgba(252,71,103,0.3); pointer-events: auto; cursor: pointer;
}

.app-btn-primary {
  width: 100%; display: block; background: var(--primary); color: #fff;
  font-weight: 700; font-size: 16px; padding: 20px; border-radius: 20px;
  box-shadow: 0 12px 30px var(--primary-glow); transition: all 0.3s;
}
.app-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px var(--primary-glow); }
.app-warning { text-align: center; color: #ff5050; font-size: 13px; margin-top: 16px; font-weight: 500; }

/* Swiping Cards Deck styling matching the screenshot */
.app-hero__visual {
  display: flex; justify-content: center; align-items: center;
  position: relative; height: 560px;
}
#lp-hero-sizer {
  transform: scale(var(--hero-scale, 1.2));
  transform-origin: center right;
}
.app-deck-container {
  width: 320px; height: 460px; position: relative;
}
.app-deck-link { position: absolute; inset: 0; z-index: 20; }
.app-deck { position: absolute; inset: 0; z-index: 1; }

.heart {
  position: absolute; inset: 0;
  border-radius: 36px; overflow: hidden;
  will-change: transform, opacity;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.3, 1), opacity 0.6s ease;
  box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}
.heart__img { width: 100%; height: 100%; object-fit: cover; }
.heart--empty { background: linear-gradient(135deg, #FFEBEF, #FFD1DA); }

/* Rotating logic like in the image */
.heart[data-pos="front"] { transform: translate3d(0, 0, 0) scale(1) rotate(0); opacity: 1; z-index: 5; }
.heart[data-pos="back"] { transform: translate3d(-30px, 30px, 0) scale(0.95) rotate(-6deg); opacity: 0.9; z-index: 4; transform-origin: bottom right; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.heart[data-pos="left1"] { transform: translate3d(-50px, 60px, 0) scale(0.9) rotate(-10deg); opacity: 0.4; z-index: 3; }
.heart[data-pos="left2"], .heart[data-pos="left3"] { opacity: 0; }
.heart[data-pos="next"] { transform: translate3d(50px, -20px, 0) scale(0.9) rotate(8deg); opacity: 0; }

/* The text overlay on the front card */
.app-deck-ui {
  position: absolute; inset: 0; pointer-events: none; z-index: 6;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 30px 24px;
}
.app-deck-ui__bottom {
  position: relative;
  /* Shadow overlay for text legibility */
  background: transparent;
}
/* A pseudo element on the deck-ui itself acts as the gradient for the front card */
.app-deck-container::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 50%;
  border-radius: 0 0 36px 36px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
  z-index: 5; pointer-events: none;
}
.app-deck-ui__bottom { z-index: 6; display: flex; align-items: flex-end; justify-content: space-between; }
.app-deck-ui__name {
  font-size: 26px; font-weight: 800; color: #fff; margin-bottom: 4px; line-height: 1.1;
  display: flex; align-items: center; gap: 8px; text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.app-deck-ui__age {
  font-size: 22px; font-weight: 600; opacity: 0.9;
}
.app-deck-ui__city {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.9);
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* Floating Actions */
.app-deck-ui__actions { display: flex; flex-direction: column; gap: 12px; align-items: center; position: absolute; right: -25px; bottom: 10px; }
.app-circle-btn {
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: #fff; box-shadow: 0 10px 24px rgba(0,0,0,0.12); pointer-events: auto;
}
.app-circle-btn--small { width: 44px; height: 44px; font-size: 16px; color: #aaa; }
.app-circle-btn--large { width: 64px; height: 64px; }
.app-circle-btn--pink { background: var(--primary); color: #fff; box-shadow: 0 14px 30px var(--primary-glow); }

/* Profiles Grid Section */
.app-profiles { padding: 80px 0; }
.app-section-header { text-align: center; margin-bottom: 60px; }
.app-section-icon { font-size: 40px; margin-bottom: 16px; }
.app-section-title { font-size: 36px; font-weight: 800; margin-bottom: 12px; color: var(--text-main); letter-spacing: -0.5px; }
.app-section-desc { font-size: 16px; color: #6b6678; max-width: 500px; margin: 0 auto; }

.app-profiles-label { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: #6b6678; margin-bottom: 24px; font-weight: 700; }
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }

/* Adapting .pcard logic from app.js to match the soft aesthetic */
.pcard {
  position: relative; display: block; background: #fff; border-radius: 24px;
  overflow: hidden; box-shadow: 0 12px 30px rgba(0,0,0,0.04);
  transition: transform 0.3s, box-shadow 0.3s;
}
.pcard:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(252,71,103,0.15); }
.pcard__media { position: relative; aspect-ratio: 3/4; overflow: hidden; background: #fdf5f7; }
.pcard__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.pcard:hover .pcard__img { transform: scale(1.05); }
.pcard__img--empty { width: 100%; height: 100%; background: rgba(252,71,103,0.05); }

.pcard__heart {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.9);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.pcard__heart svg { width: 18px; height: 18px; fill: var(--primary); }

.pcard__age {
  position: absolute; bottom: 12px; left: 12px; z-index: 2;
  background: rgba(255,255,255,0.9); color: var(--text-main);
  padding: 4px 12px; border-radius: 12px; font-weight: 800; font-size: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05); backdrop-filter: blur(4px);
}
.pcard__body { padding: 16px;text-align: center; }
.pcard__name { font-weight: 800; font-size: 16px; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-main); }
.pcard__meta { font-size: 13px; color: #8a8596; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard__pin { display: none; }

/* Stories */
.app-stories {
  padding: 80px 0 100px; background: transparent;
}
.app-stories-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.app-stories-controls { display: flex; gap: 12px; }
.app-stories-btn {
  width: 44px; height: 44px; border-radius: 50%; background: #fff;
  border: 1px solid rgba(0,0,0,0.05); display: flex; align-items: center; justify-content: center;
  color: var(--text-main); font-weight: bold; box-shadow: 0 6px 16px rgba(0,0,0,0.05); transition: all 0.3s;
}
.app-stories-btn:hover { color: var(--primary); transform: scale(1.05); }

.app-scroller {
  display: flex; gap: 24px; overflow-x: auto; padding: 10px 10px 40px;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.app-scroller::-webkit-scrollbar { display: none; }
.app-story {
  flex: 0 0 clamp(280px, 60vw, 360px);
  background: #fff; border-radius: 32px; padding: 32px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.04); scroll-snap-align: start;
}
.app-story__who { font-weight: 800; font-size: 20px; color: var(--text-main); margin-bottom: 4px; }
.app-story__where { font-size: 13px; font-weight: 600; color: var(--primary); text-transform: uppercase; margin-bottom: 16px; letter-spacing: 0.5px; }
.app-story__text { font-size: 15px; color: #6b6678; line-height: 1.7; }

/* Footer */
.app-footer {
  padding: 60px 0; background: #fff;
}
.app-footer__inner { text-align: center; }
.app-footer__brand { font-size: 18px; font-weight: 800; color: var(--text-main); margin-bottom: 32px; border-bottom: 1px solid #f0ebed; padding-bottom: 32px; }
.app-footer__links { display: flex; justify-content: center; gap: 32px; margin-bottom: 24px; flex-wrap: wrap; }
.app-footer__links a { font-weight: 600; color: #8a8596; font-size: 14px; transition: color 0.3s; }
.app-footer__links a:hover { color: var(--primary); }
.app-footer__text { font-size: 13px; color: #aaa; }

@media (max-width: 900px) {
  .app-hero { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .app-desc { margin: 0 auto 30px; }
  .app-search-box { text-align: left; }
  .app-hero__visual { height: 480px; }
  #lp-hero-sizer { transform-origin: center; transform: scale(1); }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .app-nav { padding: 20px; }
  .app-nav__center { display: none; }
}

@media (max-width: 500px) {
  .app-wrap { padding: 0 20px; }
  .app-search-box { padding: 30px 24px; }
  .app-form__row { grid-template-columns: 1fr; gap: 16px; }
  .app-deck-container { width: 280px; height: 400px; }
  .heart[data-pos="back"] { transform: translate3d(-15px, 20px, 0) scale(0.95) rotate(-4deg); }
  .app-title { font-size: 40px; }
}
