/* ---------------------------------------------------------------------
   SnehPlay landing page
   Mobile-first: every rule below is written for a phone viewport first.
   The two @media blocks at the bottom widen the layout for tablet/desktop
   — they add room, they never fix something that was broken on mobile.
--------------------------------------------------------------------- */

:root {
  --bg: #fff7f4;
  --surface: #ffffff;
  --surface-2: #fbe3ea;
  --border: rgba(52, 33, 43, 0.08);

  --ink: #34212b;
  --ink-2: #a2848f;
  --ink-3: #b79aa4;

  --rose: #d9497a;
  --rose-soft: #fbe3ea;
  --rose-ink: #8e5a70;

  --lilac: #7c5fd3;
  --lilac-soft: #ede6fb;

  --shadow-card: 0 4px 14px rgba(196, 130, 150, 0.14);
  --shadow-raised: 0 14px 30px rgba(190, 120, 145, 0.28);

  --glow-rose: rgba(233, 100, 142, 0.22);
  --glow-lilac: rgba(169, 140, 230, 0.18);

  --gradient-feature: linear-gradient(135deg, #ffe1ea, #eadffb);
  --gradient-art: linear-gradient(140deg, #ff8fae, #b98af0);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #120e12;
    --surface: rgba(255, 255, 255, 0.045);
    --surface-2: rgba(255, 127, 168, 0.14);
    --border: rgba(255, 255, 255, 0.08);

    --ink: #f6edf1;
    --ink-2: #ad8a97;
    --ink-3: #8c7480;

    --rose: #ff7fa8;
    --rose-soft: rgba(255, 127, 168, 0.14);
    --rose-ink: #ffb0c9;

    --lilac: #b79bf0;
    --lilac-soft: rgba(183, 155, 240, 0.16);

    --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-raised: 0 16px 34px rgba(0, 0, 0, 0.55);

    --glow-rose: rgba(255, 127, 168, 0.2);
    --glow-lilac: rgba(183, 155, 240, 0.15);

    --gradient-feature: linear-gradient(135deg, rgba(255, 127, 168, 0.2), rgba(183, 155, 240, 0.2));
    --gradient-art: linear-gradient(140deg, #ff7fa8, #b79bf0);

    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100vh;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 400;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
}

/* Ambient glows, same trick the app itself uses for depth. */
.glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(0px);
}
.glow--a {
  top: -120px;
  right: -110px;
  background: radial-gradient(circle, var(--glow-rose), transparent 70%);
}
.glow--b {
  top: 420px;
  left: -150px;
  background: radial-gradient(circle, var(--glow-lilac), transparent 70%);
}

main, header, footer {
  position: relative;
  z-index: 1;
}

/* ----------------------------- Layout shell ---------------------------- */

.section {
  padding: 56px 20px;
  max-width: 480px;
  margin: 0 auto;
}

.section--tinted {
  max-width: 100%;
  background: var(--surface-2);
}
.section--tinted > * {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.section__title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.9rem;
  line-height: 1.2;
  margin-bottom: 32px;
}

/* --------------------------------- Nav --------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}
.nav.is-scrolled {
  border-bottom-color: var(--border);
}
.nav__inner {
  max-width: 480px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand__mark {
  color: var(--rose);
  flex-shrink: 0;
}
.brand__name {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.3rem;
  color: var(--ink);
}

/* -------------------------------- Buttons ------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:active {
  transform: scale(0.97);
}
.btn--primary {
  background: var(--rose);
  color: #fff7f4;
  box-shadow: var(--shadow-raised);
}
.btn--small {
  padding: 9px 18px;
  font-size: 0.85rem;
}
.btn--large {
  padding: 16px 26px;
  font-size: 1rem;
  min-height: 52px;
}
.btn--block {
  width: 100%;
}

/* --------------------------------- Hero --------------------------------- */

.hero {
  max-width: 480px;
  margin: 0 auto;
  padding: 36px 20px 8px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--rose-soft);
  color: var(--rose-ink);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.eyebrow__dot {
  color: var(--rose);
}

.hero__title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(2.2rem, 9vw, 2.7rem);
  line-height: 1.08;
  color: var(--ink);
}

.hero__sub {
  color: var(--ink-2);
  font-size: 1.02rem;
  max-width: 40ch;
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero__text .btn {
  align-self: flex-start;
  margin-top: 4px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--ink-2);
  font-size: 0.86rem;
}
.trust-row li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.trust-row svg {
  color: var(--rose);
  flex-shrink: 0;
}

/* ------------------------------ Phone mockup ----------------------------- */

.hero__visual {
  display: flex;
  justify-content: center;
  padding: 12px 0 4px;
}

.phone {
  width: 232px;
  border-radius: 34px;
  background: var(--ink);
  padding: 10px;
  box-shadow: var(--shadow-raised);
  position: relative;
}
.phone__notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 16px;
  background: var(--ink);
  border-radius: 0 0 12px 12px;
  z-index: 2;
}
.phone__screen {
  background: var(--surface);
  border-radius: 26px;
  padding: 24px 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.mock-topbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.05rem;
  color: var(--ink);
}
.mock-topbar svg {
  color: var(--ink-3);
}

.mock-art {
  width: 148px;
  height: 148px;
  border-radius: 20px;
  background: var(--gradient-art);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
  margin-top: 4px;
}

.mock-lines {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.mock-line {
  display: block;
  height: 9px;
  border-radius: 5px;
  background: var(--surface-2);
}
.mock-line--title {
  width: 62%;
}
.mock-line--sub {
  width: 40%;
  opacity: 0.7;
}

.mock-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--rose-soft);
  color: var(--rose-ink);
  font-size: 0.68rem;
  font-weight: 600;
}

.mock-progress {
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: var(--surface-2);
  overflow: hidden;
}
.mock-progress span {
  display: block;
  width: 58%;
  height: 100%;
  background: var(--rose);
  border-radius: 4px;
}

.mock-controls {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--ink);
  margin-top: 2px;
}
.mock-play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--rose);
  color: #fff7f4;
  box-shadow: var(--shadow-raised);
}

/* -------------------------------- Cards -------------------------------- */

.cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card-item {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  border-radius: 20px;
  padding: 20px;
}
.card-item h3 {
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}
.card-item p {
  color: var(--ink-2);
  font-size: 0.92rem;
}

.card-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--rose-soft);
  color: var(--rose);
  margin-bottom: 12px;
}
.card-item__icon--lilac {
  background: var(--lilac-soft);
  color: var(--lilac);
}

/* -------------------------------- Steps -------------------------------- */

.steps {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.step__num {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--rose);
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.15rem;
  box-shadow: var(--shadow-card);
}
.step h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 3px;
}
.step p {
  color: var(--ink-2);
  font-size: 0.92rem;
}

/* ------------------------------- CTA card ------------------------------- */

.cta-card {
  background: var(--gradient-feature);
  border-radius: 26px;
  padding: 36px 26px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-card);
}
.cta-card__mark {
  color: var(--rose);
  margin-bottom: 4px;
}
.cta-card h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.7rem;
}
.cta-card p {
  color: var(--rose-ink);
  font-size: 0.96rem;
  max-width: 32ch;
}
.cta-card .btn {
  margin-top: 12px;
}
.cta-card__fine {
  color: var(--rose-ink);
  opacity: 0.75;
  font-size: 0.78rem;
  margin-top: 4px;
}

/* -------------------------------- Footer -------------------------------- */

.footer {
  padding: 48px 20px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.footer__mark {
  color: var(--ink-3);
  margin-bottom: 6px;
}
.footer__name {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.2rem;
}
.footer__tag {
  color: var(--ink-2);
  font-size: 0.82rem;
}
.footer__fine {
  color: var(--ink-3);
  font-size: 0.74rem;
  margin-top: 14px;
  max-width: 30ch;
}

/* ------------------------------- Reveal-in ------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================ Tablet and up ============================ */

@media (min-width: 640px) {
  .cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .section,
  .nav__inner,
  .hero {
    max-width: 600px;
  }
}

/* ============================= Desktop up =============================== */

@media (min-width: 960px) {
  .nav__inner,
  .section--tinted > * {
    max-width: 920px;
  }

  .section {
    max-width: 920px;
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero {
    max-width: 1040px;
    flex-direction: row;
    align-items: center;
    gap: 48px;
    padding-top: 64px;
    padding-bottom: 24px;
  }
  .hero__text {
    flex: 1;
    max-width: 460px;
  }
  .hero__visual {
    flex: 1;
    padding: 0;
  }
  .hero__title {
    font-size: 3.4rem;
  }

  .steps {
    flex-direction: row;
    gap: 32px;
  }
  .step {
    flex: 1;
    flex-direction: column;
    gap: 14px;
  }
}
