.landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: max(20px, env(safe-area-inset-top)) 24px calc(24px + env(safe-area-inset-bottom));
  background: var(--cream);
}

/* Full-bleed, horizontally centered — the source asset is already sized to
   a phone frame (390x750), so it's placed edge-to-edge and centered rather
   than pinned into one corner, matching how it reads in the Figma mock. */
.landing-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.landing-bg img {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.landing-logo {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  width: clamp(96px, 30vw, 132px);
  height: auto;
  margin-top: 2vh;
}

/* Everything between the logo and the copy block shares the remaining
   vertical space and centers the viewfinder inside it — on a short phone
   (iPhone SE / Android behind a nav bar) it shrinks close to the content;
   on a tall one (Pro Max) the extra height becomes breathing room here
   instead of a lopsided gap elsewhere, so the page reads balanced on any
   screen without knowing the device ahead of time.
   `flex: 1 1 auto` + `min-height: 0` is load-bearing, not decorative: this
   is what actually makes the stage SHRINK on short viewports instead of
   forcing a fixed gap regardless of available height — a fixed `margin:
   6vh 0` here previously ate ~80px+ on a ~667px-tall phone on top of the
   logo/heading/body/button's own height, which is what was pushing the
   button below the fold (and behind the Android nav bar/iOS home
   indicator) on shorter screens. The `12px` is just a minimum gap so tall
   screens don't jam the stage flush against the logo/copy. */
.landing-stage {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 42vh;
  padding-top: 4vh;
  margin-bottom: 2vh;
}

/* Width AND height capped by viewport (not just width) — on a short
   viewport, min(…, 38vh, …) shrinks this along with the rest of the stage
   instead of staying a fixed size and forcing an overflow no flex-grow
   adjustment above can absorb (aspect-ratio: 1 means the height cap and
   width cap are equivalent here, so one clamp covers both dimensions). */
.landing-viewfinder {
  position: relative;
  width: auto;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.landing-mascot-lottie {
  width: 112%;
  aspect-ratio: 705 / 844;
  filter: drop-shadow(0 14px 22px rgba(34, 29, 23, 0.18));
}

.vf-corner {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 3px solid var(--ink);
}

.vf-tl {
  top: 0;
  left: 0;
  border-right: none;
  border-bottom: none;
  border-top-left-radius: 6px;
}

.vf-tr {
  top: 0;
  right: 0;
  border-left: none;
  border-bottom: none;
  border-top-right-radius: 6px;
}

.vf-bl {
  bottom: 0;
  left: 0;
  border-right: none;
  border-top: none;
  border-bottom-left-radius: 6px;
}

.vf-br {
  bottom: 0;
  right: 0;
  border-left: none;
  border-top: none;
  border-bottom-right-radius: 6px;
}

.landing-copy {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  text-align: center;
  max-width: 340px;
}

.landing-copy h1 {
  font-family: var(--font-display);
  font-weight: bold;
  font-size: 5vh;
  line-height: 1.12;
  color: var(--ink);
}

.landing-copy p {
  margin-top: 0.5rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 2.5vh;
  line-height: 1.45;
  color: var(--ink);
}

/* Flat pill button — matches PuriKura's .landing-btn exactly: no
   drop-shadow, Neulis Cursive label, press feedback is a scale+opacity
   dip rather than a background-color change. */
.btn-primary {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  margin-top: 3vh;
  min-height: var(--touch-min);
  padding: 0 34px;
  border: 3px solid #351559;
  border-radius: var(--r-pill);
  background: var(--purple);
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  line-height: 3.33;
  white-space: nowrap;
  transition: transform 0.12s ease, opacity 0.12s ease;
  box-shadow: 0 8px 0 0px #351559;
}

.btn-primary:active {
  transform: scale(0.96);
  opacity: 0.9;
}
