:root {
  --paper: #fff4f8;
  --ink: #1a1220;
  --ink-soft: #6d5a66;
  --bubble: #ff4d8d;
  --bubble-deep: #e03874;
  --mint: #2ecf8f;
  --white: #ffffff;
  --glass: rgba(26, 18, 32, 0.48);
  --font-display: "Baloo 2", "Nunito", system-ui, sans-serif;
  --font-body: "Outfit", "Nunito", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
}

a {
  color: var(--bubble);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink);
}

.site-footer {
  padding: 1.75rem 1.5rem 2.5rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
  background: var(--paper);
}

.site-footer nav {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.site-footer a {
  color: var(--ink-soft);
  font-weight: 700;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--bubble);
}

/* —— Landing stage —— */
body.landing {
  background: #1a1220;
}

body.landing .site-footer {
  background: #140e18;
  color: #b8a4b0;
}

body.landing .site-footer a {
  color: #d9c4cf;
}

body.landing .site-footer a:hover {
  color: var(--white);
}

.stage {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.stage-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  animation: photo-in 1.1s ease-out both;
}

.stage-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
  display: block;
  transform: scale(1.04);
  animation: ken 18s ease-in-out infinite alternate;
}

.stage-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(105deg, rgba(20, 10, 18, 0.88) 0%, rgba(20, 10, 18, 0.62) 38%, rgba(20, 10, 18, 0.18) 62%, rgba(20, 10, 18, 0.35) 100%),
    linear-gradient(0deg, rgba(20, 10, 18, 0.55) 0%, transparent 42%);
}

.stage-copy {
  position: relative;
  z-index: 2;
  padding: clamp(2rem, 7vw, 5rem);
  padding-bottom: clamp(2.5rem, 8vw, 5.5rem);
  max-width: 38rem;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 10vw, 5.6rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 0;
  color: var(--white);
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.brand span {
  color: #ff7aad;
}

.headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.45rem, 3.4vw, 2.05rem);
  line-height: 1.15;
  margin: 0;
  color: var(--white);
  max-width: 16ch;
}

.lede {
  margin: 0;
  color: rgba(255, 244, 248, 0.82);
  font-size: 1.08rem;
  line-height: 1.55;
  max-width: 32ch;
  font-weight: 500;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.55rem;
  animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.15rem;
  padding: 0.8rem 1.3rem;
  border-radius: 1.1rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

.btn-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

.btn-apple {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.btn-apple:hover {
  color: var(--ink);
  background: #fff8fb;
}

.btn-play {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(8px);
}

.btn-play:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 720px) {
  .stage-photo img {
    object-position: 78% 28%;
    animation: none;
    transform: none;
  }

  .stage-veil {
    background:
      linear-gradient(180deg, rgba(20, 10, 18, 0.25) 0%, rgba(20, 10, 18, 0.55) 42%, rgba(20, 10, 18, 0.92) 100%);
  }

  .stage-copy {
    align-self: end;
    max-width: none;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stage-photo,
  .stage-photo img,
  .stage-copy,
  .cta-row {
    animation: none !important;
  }

  .stage-photo img {
    transform: none;
  }
}

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

@keyframes photo-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes ken {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-1.5%, 1%, 0);
  }
}

/* —— Legal pages —— */
.legal {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  animation: rise 0.7s ease-out both;
}

.legal-nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2rem;
}

.legal-nav .brand-link {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--ink);
  text-decoration: none;
}

.legal-nav .brand-link span {
  color: var(--bubble);
}

.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.legal .updated {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin: 0 0 2rem;
}

.legal h2 {
  font-size: 1.1rem;
  margin: 1.75rem 0 0.5rem;
}

.legal p,
.legal li {
  color: var(--ink);
  line-height: 1.65;
  font-size: 1rem;
}

.legal ul {
  padding-left: 1.2rem;
}

.legal .note {
  margin-top: 2rem;
  padding: 1rem 1.1rem;
  background: #e8faf2;
  border-radius: 14px;
  color: #137a52;
  font-size: 0.95rem;
}
