/* =============================================
   Refined Desktop Design — landing.css
   ============================================= */

:root {
  --pink: #f06f8c;
  --plum: #2f2233;
  --grad: linear-gradient(135deg, #f884a5 0%, #f06f8c 55%, #e45c7a 100%);
  --soft-bg: #fdf8fb;
  --pink-light: #f8a8be;
  --pink-soft: #ffe6ef;
  --rose: #e55f7d;
  --cream: #fff9fb;
  --grad2: linear-gradient(135deg, #f9b7c8 0%, #f06f8c 60%, #e45c7a 100%);
  --shadow-pink: 0 12px 36px rgba(240,111,140,0.22);
}

body.landing-body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--soft-bg);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  padding-top: 88px; /* leave room for fixed nav */
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.page-wrapper {
  width: 100%;
  max-width: 100%;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* NAV */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 8%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid rgba(244, 80, 122, 0.1);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.logo-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--plum);
}

.logo-text span {
  color: var(--pink);
}

.logo-underline {
  display: block;
  margin-top: -4px;
  width: 100%;
  height: 3px;
  background: var(--grad);
  border-radius: 2px;
  opacity: .6;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.btn-login {
  font-size: .9rem;
  color: #5a5160;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.2s;
}

.btn-login:hover {
  color: var(--pink);
}

.btn-signup {
  background: var(--grad);
  color: #fff;
  border: none;
  padding: 12px 22px;
  border-radius: 14px;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .01em;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(240,111,140,.25);
  transition: box-shadow .2s, transform .2s;
}

.btn-signup:hover {
  box-shadow: 0 8px 30px rgba(244,80,122,.45);
  transform: translateY(-1px);
}

/* HERO */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  padding: 110px 8% 70px;
  min-height: 100vh;
  gap: 40px;
}

.hero-left {
  max-width: 600px;
  z-index: 2;
  width: min(620px, 100%);
}

.hero-tag {
  display: inline-block;
  background: #fff;
  color: var(--rose);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: none;
  padding: 6px 14px;
  border-radius: 14px;
  border: 1px solid rgba(240,111,140,0.22);
  margin-bottom: 18px;
}

.hero-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 3.6rem;
  line-height: 1.05;
  color: var(--plum);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero-title .strike {
  position: relative;
  display: inline-block;
  font-weight: 900;
  color: var(--plum);
}

.hero-title .strike::after {
  content: '';
  position: absolute;
  left: 0;
  top: 55%;
  width: 110%;
  height: 4px;
  background: var(--grad);
  border-radius: 2px;
  transform: rotate(-2deg);
}

.hero-title .big {
  font-weight: 900;
  color: var(--plum);
}

.squiggle {
  display: block;
  width: 100px;
  height: 10px;
  margin-top: -8px;
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 1.05rem;
  color: #5b5360;
  line-height: 1.6;
  max-width: 420px;
  margin-bottom: 28px;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  color: #514756;
  display: grid;
  gap: 8px;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.hero-points li::before {
  content: '•';
  color: var(--pink);
  font-size: 1.1rem;
  line-height: 1;
}

.hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.btn-cta {
  display: inline-block;
  background: var(--grad);
  color: #fff;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .01em;
  text-transform: none;
  box-shadow: var(--shadow-pink);
  position: relative;
  transition: box-shadow .25s, transform .2s;
  border: none;
  cursor: pointer;
}

.btn-cta:hover {
  box-shadow: 0 25px 60px rgba(244, 80, 122, 0.5);
  transform: translateY(-5px) scale(1.02);
}

.btn-cta::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 52px;
  background: var(--grad);
  opacity: .18;
  filter: blur(12px);
  z-index: -1;
}

.btn-playstore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 14px;
  background: #0f172a;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 16px 36px rgba(0,0,0,0.22);
  transition: transform .2s ease, box-shadow .2s ease;
  border: 1px solid rgba(255,255,255,0.08);
}

.btn-playstore:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.28);
}

.play-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
}

.play-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.play-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.play-overline {
  font-size: .72rem;
  color: #cbd5e1;
  letter-spacing: .04em;
}

.play-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .01em;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1.5px solid rgba(47, 34, 51, 0.12);
  background: #fff;
  color: var(--plum);
  font-weight: 700;
  letter-spacing: .01em;
  text-transform: none;
  box-shadow: 0 12px 30px rgba(0,0,0,0.04);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  cursor: pointer;
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(244,80,122,0.3);
  box-shadow: 0 14px 32px rgba(0,0,0,0.08);
}

.hero-meta {
  color: #6f6474;
  font-weight: 600;
  letter-spacing: .02em;
  margin-top: 6px;
}

/* CARDS */
.hero-right {
  position: relative;
  height: clamp(420px, 48vw, 540px);
  width: clamp(360px, 48vw, 640px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto;
}

.hero-badge {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(240,111,140,0.18);
  padding: 8px 14px;
  border-radius: 14px;
  font-weight: 700;
  color: var(--plum);
  box-shadow: 0 10px 26px rgba(47,34,51,0.08);
  letter-spacing: .01em;
}

.phone-card {
  position: absolute;
  border-radius: 32px;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: pointer;
  padding: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(47,34,51,0.06);
}


.card-screen {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.45), transparent 55%), var(--grad2);
  display: grid;
  place-items: center;
}

.card-main .card-screen {
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.5), transparent 55%), linear-gradient(160deg, #f9b7c8 0%, #f06f8c 100%);
}

.card-mid .card-screen {
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.5), transparent 55%), linear-gradient(160deg, #fcd2df 0%, #f06f8c 100%);
}

.card-back .card-screen {
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.5), transparent 55%), linear-gradient(160deg, #d9c4d2 0%, #b59ac1 100%);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  opacity: 0.9;
}

.card-main {
  width: 280px;
  height: 400px;
  z-index: 3;
  transform: rotate(-6deg);
}

.card-mid {
  width: 260px;
  height: 370px;
  z-index: 2;
  transform: rotate(0deg);
}

.card-back {
  width: 240px;
  height: 340px;
  z-index: 1;
  transform: rotate(6deg);
}

.hero-right:hover .card-main {
  transform: rotate(-10deg) translateX(-24px) translateY(-12px);
  box-shadow: 0 28px 60px rgba(240,111,140,0.24);
}

.hero-right:hover .card-mid {
  transform: rotate(0deg) scale(1.03);
  box-shadow: 0 26px 56px rgba(240,111,140,0.22);
}

.hero-right:hover .card-back {
  transform: rotate(10deg) translateX(24px) translateY(-12px);
  box-shadow: 0 24px 50px rgba(47,34,51,0.2);
}

.phone-card svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 18px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,.3);
}

.card-main {
  background: linear-gradient(160deg, #f9b7c8 0%, #f06f8c 100%);
  top: 46px;
  left: 50%;
  transform: translateX(-58%) rotate(-6deg);
  box-shadow: 0 22px 52px rgba(240,111,140,.22);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-main:hover {
  transform: rotate(-8deg) translateY(-8px);
  box-shadow: 0 32px 80px rgba(183,33,255,.25);
}

.card-main .card-label {
  background: linear-gradient(to top, rgba(183,33,255,.85), transparent);
}

.card-mid {
  background: linear-gradient(160deg, #fcd2df 0%, #f06f8c 100%);
  top: 24px;
  left: 50%;
  transform: translateX(-6%) rotate(2deg);
  box-shadow: 0 20px 50px rgba(240,111,140,.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-mid:hover {
  transform: rotate(0deg) translateY(-8px);
  box-shadow: 0 32px 80px rgba(244,80,122,.25);
}

.card-mid .card-label {
  background: linear-gradient(to top, rgba(0,0,0,.6), transparent);
  font-size: .95rem;
}

.card-back {
  background: linear-gradient(160deg, #d9c4d2 0%, #b59ac1 100%);
  top: 110px;
  left: 50%;
  transform: translateX(46%) rotate(6deg);
  box-shadow: 0 18px 44px rgba(47,34,51,.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-back:hover {
  transform: rotate(8deg) translateY(-8px);
  box-shadow: 0 32px 80px rgba(61,16,48,.3);
}

.card-back .card-label {
  background: none;
  font-size: .88rem;
}

/* TRUST BAR */
.trust-bar {
  margin: 14px 8% 24px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid rgba(47,34,51,0.06);
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 26px rgba(47,34,51,0.05);
}

.trust-pill {
  padding: 10px 14px;
  background: var(--pink-soft);
  color: var(--rose);
  border-radius: 12px;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .01em;
  border: 1px solid rgba(240,111,140,0.18);
}

.trust-logos {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: #4b4250;
  font-weight: 600;
}

.trust-logos span {
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(47,34,51,0.04);
}

/* SECTION SHARED */
.section-heading {
  max-width: 720px;
  margin: 0 auto 28px;
  text-align: center;
  padding: 0 12px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #fff;
  color: var(--rose);
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: none;
  border: 1px solid rgba(240,111,140,0.16);
}

.section-title {
  margin: 14px 0 10px;
  font-size: 2.2rem;
  color: var(--plum);
  letter-spacing: -0.01em;
}

.section-sub {
  color: #5b5360;
  font-size: 1.02rem;
  line-height: 1.6;
}

/* FEATURE GRID */
.feature-grid {
  padding: 30px 8% 26px;
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.feature-card {
  background: #fff;
  border: 1px solid rgba(47,34,51,0.06);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 12px 26px rgba(0,0,0,0.04);
  transition: transform .2s ease, box-shadow .2s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.06);
}

.feature-icon {
  font-size: 1.4rem;
  margin-bottom: 8px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--pink-soft);
  color: var(--rose);
  border-radius: 12px;
}

.feature-card h3 {
  margin: 0 0 8px;
  color: var(--plum);
  font-size: 1.1rem;
}

.feature-card p {
  margin: 0;
  color: #6b5b66;
  line-height: 1.5;
}

/* SPLIT SECTION */
.split-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  padding: 28px 8% 18px;
  align-items: center;
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(255,230,239,0.6));
  border-radius: 18px;
  border: 1px solid rgba(47,34,51,0.06);
  box-shadow: 0 14px 28px rgba(47,34,51,0.05);
}

.split-text {
  padding-right: 12px;
}

.checked-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 12px;
  color: #514454;
  font-weight: 600;
}

.checked-list li {
  position: relative;
  padding-left: 28px;
}

.checked-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--rose);
  font-weight: 800;
}

.split-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(47,34,51,0.08);
  box-shadow: 0 12px 26px rgba(0,0,0,0.05);
}

.split-card-badge {
  display: inline-flex;
  padding: 6px 12px;
  background: rgba(240,111,140,0.12);
  border-radius: 12px;
  border: 1px solid rgba(240,111,140,0.22);
  font-weight: 700;
  color: var(--plum);
}

.split-card h3 {
  margin: 12px 0 14px;
  color: var(--plum);
}

.split-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.metric-value {
  font-size: 1.4rem;
  color: var(--plum);
  font-weight: 800;
}

.metric-label {
  color: #514454;
  font-size: .95rem;
}

.split-note {
  margin-top: 14px;
  color: #4a3f4b;
  font-weight: 600;
}

/* STEPS */
.steps {
  padding: 16px 8% 10px;
}

.step-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.step-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(47,34,51,0.08);
  padding: 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.05);
}

.step-number {
  font-weight: 800;
  color: var(--rose);
  letter-spacing: .02em;
  margin-bottom: 8px;
}

.step-card h3 {
  margin: 0 0 8px;
  color: var(--plum);
}

.step-card p {
  margin: 0;
  color: #5b5360;
}

/* METRICS CTA */
.metrics-cta {
  padding: 26px 8% 36px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  align-items: center;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.metric {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  border: 1px solid rgba(47,34,51,0.08);
  box-shadow: 0 12px 26px rgba(0,0,0,0.05);
}

.metric .metric-value {
  font-size: 1.6rem;
}

.cta-panel {
  background: #fff;
  color: var(--plum);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 12px 26px rgba(0,0,0,0.05);
  border: 1px solid rgba(47,34,51,0.08);
  display: grid;
  gap: 12px;
}

.cta-panel h3 {
  margin: 6px 0;
  font-size: 1.6rem;
}

.cta-panel p {
  margin: 0;
  color: #5b5360;
}

.cta-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* FOOTER */
.landing-footer {
  padding: 28px 8% 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(61,16,48,0.08);
  margin-top: 10px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-note {
  color: #6b5b66;
  font-weight: 600;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #5a4d56;
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--pink);
}

.footer-copy {
  color: #8b7c8b;
  font-size: .95rem;
}

/* Arrow doodle */

/* Pink glow blob */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.blob-1 {
  width: 240px;
  height: 240px;
  background: rgba(244,80,122,.12);
  bottom: 60px;
  left: 40px;
  z-index: 1;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-left > * {
  animation: fadeUp .7s ease both;
}

.hero-tag { animation-delay: .05s; }
.hero-title { animation-delay: .15s; }
.squiggle { animation-delay: .2s; }
.hero-sub { animation-delay: .28s; }
.btn-cta { animation-delay: .38s; }

.card-main { animation: fadeUp .8s .3s ease both; }
.card-mid  { animation: fadeUp .8s .45s ease both; }
.card-back { animation: fadeUp .8s .6s ease both; }

/* VIEW TOGGLES */
#landingSection {
  display: flex !important;
  flex-direction: column !important;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.3s ease;
}

#landingSection.hide {
  display: none !important;
  opacity: 0;
  pointer-events: none;
}

#authSection {
  display: none !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#authSection.show {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  opacity: 1;
  pointer-events: auto;
  min-height: 100vh;
  width: 100vw;
  max-width: 100vw;
  margin: 0;
  padding: 0;
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: linear-gradient(180deg, rgba(255, 240, 245, 0.9) 0%, rgba(255,255,255,1) 35%, rgba(255,255,255,1) 100%);
  overflow-y: auto;
}

/* Back button */
.landing-back-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #555;
  transition: all 0.2s;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.landing-back-btn:hover {
  background: #fff;
  color: var(--pink);
  box-shadow: 0 4px 12px rgba(244, 80, 122, 0.2);
}

.landing-back-btn:active {
  transform: scale(0.95);
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

/* TABLET - 1024px and below */
@media (max-width: 1024px) {
  .page-wrapper {
    width: 95vw;
    margin: 12px auto;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 36px 32px 28px;
    gap: 24px;
    min-height: auto;
  }

  .hero-right {
    position: relative;
    height: 420px;
    max-width: 640px;
    margin: 0 auto;
  }

  nav {
    padding: 18px 32px 14px;
  }

  .hero-actions {
    flex-direction: row;
    gap: 12px;
  }

  .hero-points {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .trust-bar {
    padding: 18px 22px;
    gap: 12px;
    flex-wrap: wrap;
  }

  .trust-item {
    flex: 1 1 45%;
    justify-content: flex-start;
  }

  .section-heading {
    padding: 20px;
    gap: 6px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .split-section {
    padding: 28px 22px;
    gap: 18px;
  }

  .split-content h3 {
    font-size: 1.75rem;
  }

  .split-metrics {
    gap: 10px;
  }

  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .metrics {
    padding: 26px;
  }

  .metrics-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
  }

  footer {
    padding: 22px 0;
    gap: 8px;
  }
}

/* DESKTOP - ensure cards never clip */
@media (min-width: 1025px) {
  .hero-right {
    position: relative;
    height: auto;
    width: 100%;
    max-width: 780px;
    padding: 30px 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 28px;
    margin: 0 auto;
  }

  .phone-card {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
  }

  .card-main {
    width: 260px;
    height: 420px;
    transform: none;
  }

  .card-mid {
    width: 240px;
    height: 390px;
    transform: none;
  }

  .card-back {
    width: 220px;
    height: 360px;
    transform: none;
  }
}

/* MOBILE - 768px and below */
@media (max-width: 768px) {
  .page-wrapper {
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    border-radius: 0;
    min-height: 100vh;
  }

  body.landing-body {
    padding-top: 76px; /* tighter spacing on small screens */
  }

  /* Auth layout: stack panels vertically on mobile */
  #authSection.show {
    display: flex !important;
    flex-direction: column;
  }

  nav {
    padding: 16px 20px;
    gap: 0;
    justify-content: space-between;
    border-bottom: 1px solid rgba(244, 80, 122, 0.1);
  }

  .logo {
    width: auto;
    margin-bottom: 0;
    gap: 8px;
  }

  .logo-img {
    width: 40px;
    height: 40px;
  }

  .logo-text {
    font-size: 1.1rem;
    font-weight: 700;
  }

  .logo-underline {
    display: none;
  }

  .nav-actions {
    width: auto;
    gap: 10px;
  }

  .btn-login {
    font-size: 0.75rem;
    padding: 8px 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
  }

  .btn-login:active {
    opacity: 0.7;
  }

  .btn-signup {
    padding: 10px 18px;
    font-size: 0.75rem;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(244, 80, 122, 0.3);
  }

  .hero {
    display: flex;
    flex-direction: column;
    padding: 0;
    gap: 0;
    min-height: auto;
  }

  .hero-left {
    padding: 24px 20px;
    max-width: 100%;
    order: 2;
  }

  .hero-right {
    width: 100%;
    height: auto;
    order: 1;
    margin: 0;
    padding: 16px 12px 0;
    background: linear-gradient(180deg, rgba(244, 80, 122, 0.05) 0%, transparent 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 14px;
  }

  .blob-1 {
    width: 120px;
    height: 120px;
    bottom: auto;
    top: 5px;
    left: 5px;
    opacity: 0.5;
  }

  .card-main,
  .card-mid,
  .card-back {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin: 0;
  }

  .card-main {
    width: 190px;
    height: 280px;
  }

  .card-mid {
    width: 170px;
    height: 250px;
  }

  .card-back {
    width: 160px;
    height: 220px;
  }

  .card-label {
    font-size: 0.85rem;
    padding: 10px 12px;
  }

  .arrow-doodle {
    display: none;
  }

  .hero-tag {
    font-size: 0.7rem;
    padding: 6px 12px;
    margin-bottom: 12px;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.25;
    margin-bottom: 8px;
  }

  .hero-title .strike::after {
    height: 2.5px;
  }

  .squiggle {
    width: 70px;
    height: 10px;
    margin: 12px 0 16px 0;
  }

  .hero-sub {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    max-width: 100%;
    margin-bottom: 20px;
  }

  .btn-cta {
    width: 100%;
    padding: 14px 20px;
    font-size: 0.85rem;
    border-radius: 25px;
    box-shadow: 0 6px 20px rgba(244, 80, 122, 0.25);
  }

  .btn-cta:active {
    transform: scale(0.98);
  }

  .hero-left > * {
    animation-duration: 0.6s;
  }

  .hero-tag { animation-delay: 0.05s; }
  .hero-title { animation-delay: 0.1s; }
  .squiggle { animation-delay: 0.15s; }
  .hero-sub { animation-delay: 0.2s; }
  .btn-cta { animation-delay: 0.25s; }

  .card-main { animation: fadeUp .6s .2s ease both; }
  .card-mid  { animation: fadeUp .6s .25s ease both; }
  .card-back { animation: fadeUp .6s .3s ease both; }

  /* New sections */
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-meta {
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
  }

  .hero-points {
    grid-template-columns: 1fr;
    margin-top: 14px;
  }

  .trust-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 18px 16px;
  }

  .trust-item {
    width: 100%;
    justify-content: flex-start;
  }

  .section-heading {
    padding: 16px 14px 8px;
    text-align: left;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .feature-card {
    padding: 16px;
  }

  .split-section {
    flex-direction: column;
    padding: 22px 16px;
    gap: 16px;
  }

  .split-image {
    width: 100%;
    order: 2;
  }

  .split-content {
    order: 1;
  }

  .split-content h3 {
    font-size: 1.5rem;
  }

  .split-metrics {
    flex-direction: column;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .metrics {
    flex-direction: column;
    text-align: left;
    gap: 10px;
    padding: 22px 16px;
  }

  .metrics-value {
    width: auto;
  }

  .metrics-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    text-align: left;
    padding: 18px 16px;
  }

  .metrics-cta-actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 14px;
    gap: 6px;
  }
}

/* ===========================
   OPTIMIZED MOBILE DESIGN
   =========================== */

@media (max-width: 768px) {
  .page-wrapper {
    width: 100%;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }

  /* Improved Hero Layout */
  .hero {
    flex-direction: column;
    padding: 20px 0;
    text-align: center;
    overflow-x: hidden;
  }

  .hero-left {
    padding: 0 24px;
    max-width: 100%;
    order: 1; /* Text first on mobile */
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-title {
    font-size: 2.4rem;
    margin-bottom: 16px;
  }

  .hero-sub {
    max-width: 280px;
    margin-bottom: 28px;
  }

  /* Re-imagined Card Design for Mobile */
  .hero-right {
    order: 2;
    width: 100%;
    height: auto;
    padding: 40px 0;
    margin-top: 20px;
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .phone-card {
    position: relative; /* Remove absolute positioning */
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }

  /* Create a modern overlapping "Fan" effect instead of a messy stack */
  .card-main {
    width: 200px;
    height: 270px;
    top: auto; left: auto;
    transform: rotate(0deg) scale(1.1);
    z-index: 10;
    box-shadow: 0 20px 40px rgba(244, 80, 122, 0.3);
  }

  .card-mid {
    width: 180px;
    height: 240px;
    top: auto; left: auto;
    margin-left: -30px; /* Overlap with more spacing */
    transform: rotate(10deg) translateY(18px) translateX(10px);
    z-index: 5;
    opacity: 0.9;
  }

  .card-back {
    width: 160px;
    height: 210px;
    top: auto; left: auto;
    margin-left: -10px; /* Overlap with more spacing */
    transform: rotate(16deg) translateY(32px) translateX(18px);
    z-index: 1;
    opacity: 0.7;
  }

  .arrow-doodle {
    display: none; /* Cleaner look on small screens */
  }

  /* Nav Adjustments */
  nav {
    padding: 16px 20px;
  }
  
  .btn-signup {
    padding: 8px 16px;
    font-size: 0.75rem;
  }
}

/* SMALL MOBILE ADJUSTMENTS */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-right {
    gap: 12px;
    padding: 14px 10px 0;
  }

  .card-main { width: 170px; height: 240px; }
  .card-mid  { width: 150px; height: 210px; }
  .card-back { width: 140px; height: 190px; }
  
  .btn-cta {
    width: 85%;
    font-size: 0.8rem;
    padding: 14px;
  }

  .metrics-cta {
    padding: 16px 14px;
  }

  .feature-card {
    padding: 14px;
  }
}

/* EXTRA SMALL - 360px and below */
@media (max-width: 360px) {
  nav {
    padding: 12px 12px;
  }

  .logo-img {
    width: 32px;
    height: 32px;
  }

  .logo-text {
    font-size: 0.95rem;
  }

  .btn-login {
    font-size: 0.65rem;
    padding: 5px 8px;
  }

  .btn-signup {
    font-size: 0.65rem;
    padding: 6px 12px;
  }

  .hero-right {
    height: auto;
    padding: 12px 8px 0;
    gap: 10px;
  }

  .hero-left {
    padding: 16px 12px;
  }

  .card-main { width: 140px; height: 200px; }
  .card-mid  { width: 125px; height: 180px; }
  .card-back { width: 115px; height: 170px; }

  .card-label {
    font-size: 0.75rem;
    padding: 6px 8px;
  }

  .hero-title {
    font-size: 1.5rem;
    margin-bottom: 4px;
  }

  .hero-tag {
    font-size: 0.6rem;
    padding: 4px 8px;
    margin-bottom: 8px;
  }

  .hero-sub {
    font-size: 0.85rem;
    margin-bottom: 14px;
  }

  .squiggle {
    width: 50px;
    height: 7px;
    margin: 8px 0 10px 0;
  }

  .btn-cta {
    padding: 10px 16px;
    font-size: 0.75rem;
  }

  .blob-1 {
    width: 80px;
    height: 80px;
  }
}

/* LANDSCAPE MODE */
@media (max-height: 600px) and (max-width: 768px) {
  .page-wrapper {
    min-height: auto;
  }

  .hero {
    min-height: auto;
    padding: 12px 12px;
  }

  .hero-right {
    height: 200px;
  }

  .hero-title {
    font-size: 1.4rem;
    margin-bottom: 3px;
  }

  nav {
    padding: 10px 12px;
  }

  .hero-sub {
    font-size: 0.8rem;
    margin-bottom: 12px;
  }

  .btn-cta {
    padding: 8px 16px;
    font-size: 0.7rem;
  }
}
