/* ==========================================================================
   PORTAL CTA — two-phase pinned showcase
   The section is 260vh tall and .mia-launch__pin stays stuck for the whole
   ride. Phase 1: copy (eyebrow → title → para → buttons) beside a MacBook
   that opens its lid and lights up. Past halfway the laptop half-closes and
   drops away, the phone-in-hand rises from the bottom edge, and the copy
   crossfades to the mobile-app pitch with store badges. Scrolling back up
   reverses everything.
   portal-cta.js adds .is-in (entry reveal) and toggles .is-app (phase).
   ========================================================================== */

.mia-launch {
  position: relative;
  height: 320vh;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafd 55%, #ffffff 100%);   /* sits between languages and testimonials — both white at the join */
}

.mia-launch__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.mia-launch__inner {
  display: grid;
  grid-template-columns: minmax(0, 45%) minmax(0, 55%);
  align-items: center;
  gap: clamp(20px, 4vw, 60px);
  width: 100%;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(64px, 8vh, 96px) clamp(16px, 4vw, 56px) 0;
}

/* ---------------- copy column — two stacked panels ---------------- */

.mia-launch__copy {
  position: relative;
  display: grid;
  z-index: 3;
}

.mia-launch__panel {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: clamp(16px, 2vw, 24px);
  transition:
    opacity 0.55s ease,
    transform 0.75s cubic-bezier(0.22, 0.8, 0.3, 1);
  will-change: opacity, transform;
}

.mia-launch__eyebrow {
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid rgba(34, 54, 74, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 500;
  font-size: clamp(11px, 1vw, 13px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #2b5f8f;
}

.mia-launch__title {
  margin: 0;
  font-family: 'Outfit', 'Inter', -apple-system, sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 3.6vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: #22364a;
  background: linear-gradient(120deg, #16324f 0%, #2b5f8f 42%, #4a90c2 75%, #7db8e8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mia-launch__title-accent {
  font-style: normal;
  color: inherit;
}

.mia-launch__para {
  margin: 0;
  max-width: 520px;
  font-family: 'Outfit', 'Inter', -apple-system, sans-serif;
  font-weight: 300;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.7;
  letter-spacing: 0.004em;
  color: #45607a;
}

/* ---------------- phase-1 buttons ---------------- */

.mia-launch__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.mia-launch__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 136px;
  padding: 15px 34px;
  border-radius: 999px;
  font-family: 'Outfit', 'Inter', -apple-system, sans-serif;
  font-weight: 500;
  font-size: clamp(15px, 1.3vw, 17px);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease,
    background 0.3s ease,
    color 0.3s ease;
  will-change: transform;
}

.mia-launch__btn--primary {
  color: #ffffff;
  background: linear-gradient(180deg, #2f7ff2 0%, #0a63e6 100%);
  box-shadow:
    0 12px 28px -8px rgba(10, 99, 230, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.mia-launch__btn--primary:hover {
  transform: translateY(-2px) scale(1.04);
  background: linear-gradient(180deg, #4a90f5 0%, #1a70ec 100%);
  box-shadow:
    0 18px 38px -10px rgba(10, 99, 230, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.mia-launch__btn--ghost {
  color: #0a63e6;
  border: 1.5px solid rgba(10, 99, 230, 0.45);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.mia-launch__btn--ghost:hover {
  transform: translateY(-2px) scale(1.04);
  border-color: #0a63e6;
  background: rgba(10, 99, 230, 0.07);
  box-shadow: 0 12px 28px -12px rgba(10, 99, 230, 0.35);
}

.mia-launch__btn:active { transform: scale(0.97); }

.mia-launch__btn:focus-visible {
  outline: 3px solid rgba(10, 99, 230, 0.4);
  outline-offset: 3px;
}

/* ---------------- phase-2 store badges ---------------- */

.mia-launch__stores {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.mia-launch__store {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 26px 12px 18px;
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(255, 255, 255, 0.42) 55%,
    rgba(232, 242, 252, 0.55) 100%
  );
  color: #22364a;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.85);
  outline: 1px solid rgba(34, 54, 74, 0.1);
  outline-offset: -1px;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow:
    0 18px 38px -16px rgba(9, 40, 72, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -10px 24px -14px rgba(125, 184, 232, 0.35);
  overflow: hidden;
  transition:
    transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease,
    background 0.3s ease;
  will-change: transform;
}

/* glass glare across the top of the pill */
.mia-launch__store::before {
  content: '';
  position: absolute;
  inset: 0 0 55% 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.mia-launch__store:hover {
  transform: translateY(-2px) scale(1.03);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(255, 255, 255, 0.55) 55%,
    rgba(224, 238, 252, 0.65) 100%
  );
  box-shadow:
    0 24px 48px -18px rgba(9, 40, 72, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -10px 24px -14px rgba(125, 184, 232, 0.45);
}

.mia-launch__store:active { transform: scale(0.97); }

.mia-launch__store:focus-visible {
  outline: 3px solid rgba(10, 99, 230, 0.4);
  outline-offset: 3px;
}

.mia-launch__store svg {
  width: 26px;
  height: 26px;
  flex: none;
}

.mia-launch__store > span {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.mia-launch__store small {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 300;
  font-size: 10.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  opacity: 0.72;
}

.mia-launch__store strong {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(16px, 1.4vw, 19px);
  letter-spacing: 0.01em;
}

.mia-launch__store-note {
  margin: 0;
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 300;
  font-size: 13.5px;
  color: #6b8199;
}

/* ---------------- device stage ---------------- */

.mia-launch__stage {
  position: relative;
  align-self: stretch;
  min-height: 0;
  z-index: 1;
}

/* soft ambient glow shared by both devices */
.mia-launch__glow {
  position: absolute;
  inset: 14% -6% 8%;
  background:
    radial-gradient(52% 60% at 30% 40%, rgba(125, 184, 232, 0.4), transparent 70%),
    radial-gradient(48% 55% at 72% 55%, rgba(255, 196, 160, 0.32), transparent 70%),
    radial-gradient(40% 50% at 55% 30%, rgba(186, 156, 232, 0.24), transparent 70%);
  filter: blur(28px);
  pointer-events: none;
}

/* breathe only once revealed — a running animation would override the
   entry opacity fade and make the glow visible before the section is */
.mia-launch.is-in .mia-launch__glow {
  animation: mia-launch-breathe 9s ease-in-out 1.6s infinite;
}

@keyframes mia-launch-breathe {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.045); }
}

.mia-launch__device {
  position: absolute;
  left: 0;
  right: 0;
}

.mia-launch__device--laptop {
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.mia-launch__device--phone {
  bottom: 0;
  display: flex;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}

/* ---------------- laptop ---------------- */

/* Laptop motion is scroll-scrubbed: portal-cta.js writes the --lap-* /
   --lid / --scr-b custom properties every frame from scroll progress,
   so the rise, settle, lid-opening and hand-off all track the scrollbar
   directly (and play in reverse when scrolling back up). Defaults are
   the resting "open on the desk" pose. */
.mia-launch__laptop {
  position: relative;
  margin: 0 auto;
  width: min(100%, 620px, 120vh);
  opacity: var(--lap-o, 1);
  transform:
    perspective(1500px)
    translateY(var(--lap-y, 0vh))
    rotateX(var(--lap-rx, 0deg))
    rotateY(var(--lap-ry, 0deg))
    scale(var(--lap-s, 1));
  will-change: transform, opacity;
}

/* screen / lid — aluminium, near-black bezel, camera dot */
.mia-launch__screen {
  position: relative;
  width: 100%;
  padding: clamp(10px, 1.2vw, 15px) clamp(10px, 1.2vw, 15px) clamp(12px, 1.4vw, 17px);
  border-radius: clamp(14px, 1.6vw, 20px) clamp(14px, 1.6vw, 20px) 0 0;
  background: linear-gradient(180deg, #2a2e35 0%, #16181d 8%, #0c0e12 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 30px 70px -20px rgba(9, 40, 72, 0.35);
  overflow: hidden;
  transform-origin: 50% 100%;
  transform: perspective(2400px) rotateX(var(--lid, 0deg));
  will-change: transform;
}

.mia-launch__camera {
  position: absolute;
  top: clamp(4px, 0.6vw, 7px);
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: #1f2937;
  box-shadow: inset 0 0 2px rgba(80, 140, 200, 0.9);
}

.mia-launch__screen img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: clamp(6px, 0.8vw, 10px);
  background: #fff;
  user-select: none;
  -webkit-user-drag: none;
  filter: brightness(var(--scr-b, 1));
}

/* one slow light sweep across the glass once the lid is open */
.mia-launch__sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 32%,
    rgba(255, 255, 255, 0.14) 46%,
    rgba(255, 255, 255, 0.02) 54%,
    transparent 66%
  );
  transform: translateX(-120%);
  pointer-events: none;
}

/* .is-open is added by portal-cta.js the first time the lid is fully up */
.mia-launch.is-open .mia-launch__sheen {
  transition: transform 1.6s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
  transform: translateX(120%);
}

/* base / deck — wider than the lid, brushed aluminium with a thumb lip */
.mia-launch__base {
  position: relative;
  width: 112%;
  margin-left: -6%;
  height: clamp(11px, 1.4vw, 17px);
  border-radius: 0 0 clamp(10px, 1.3vw, 15px) clamp(10px, 1.3vw, 15px);
  background: linear-gradient(180deg, #e8ecf1 0%, #c9d2dc 55%, #9fabb9 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 24px -8px rgba(9, 40, 72, 0.3);
}

.mia-launch__lip {
  position: absolute;
  top: 0;
  left: 50%;
  width: clamp(90px, 10vw, 140px);
  height: clamp(5px, 0.7vw, 8px);
  transform: translateX(-50%);
  border-radius: 0 0 999px 999px;
  background: linear-gradient(180deg, #aab6c3 0%, #8d99a8 100%);
  box-shadow: inset 0 -1px 1px rgba(255, 255, 255, 0.35);
}

/* soft contact shadow on the "table" */
.mia-launch__floor {
  position: absolute;
  left: 50%;
  bottom: clamp(-26px, -2.4vw, -14px);
  width: 78%;
  height: clamp(18px, 2.6vw, 30px);
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(9, 40, 72, 0.28), transparent 72%);
  filter: blur(6px);
  pointer-events: none;
}

/* ---------------- phone ---------------- */

.mia-launch__phone {
  margin: 0;
  transform-origin: 50% 100%;
  will-change: transform, opacity;
}

.mia-launch__phone img {
  display: block;
  height: min(72vh, 640px);
  width: auto;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 26px 50px rgba(9, 40, 72, 0.32));
}

/* ---------------- device toggle ----------------
   Glass segmented control pinned top-right of the ride. Clicking a segment
   auto-scrolls the page to that phase of the showcase (portal-cta.js); the
   blue thumb slides to whichever phase the scroll is actually in, so it
   doubles as a "where am I" indicator. */

.mia-launch__toggle {
  position: absolute;
  top: clamp(96px, 13vh, 148px);
  right: clamp(16px, 4vw, 56px);
  display: flex;
  z-index: 5;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid rgba(24, 78, 108, 0.14);
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 28px -12px rgba(9, 40, 72, 0.18);
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 0.8, 0.3, 1);
}

.mia-launch.is-in .mia-launch__toggle {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition-delay: 0.9s;   /* arrive with the scroll cue, after the entry settles */
}

/* the sliding pill behind the active segment — flat lake-blue from the
   portal card palette, no gloss */
.mia-launch__toggle-thumb {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc(50% - 5px);
  border-radius: 999px;
  background: #246285;
  box-shadow: 0 6px 16px -6px rgba(24, 78, 108, 0.45);
  transition: transform 0.65s cubic-bezier(0.3, 1.06, 0.35, 1);
  will-change: transform;
}

.mia-launch__toggle.is-phone .mia-launch__toggle-thumb {
  transform: translateX(100%);
}

.mia-launch__toggle-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 96px;
  padding: 9px 18px;
  border: 0;
  border-radius: 999px;
  background: none;
  font-family: 'Outfit', 'Inter', -apple-system, sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #45607a;
  cursor: pointer;
  transition: color 0.45s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mia-launch__toggle-btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.mia-launch__toggle-btn:hover { color: #16324f; transform: scale(1.04); }
.mia-launch__toggle-btn:active { transform: scale(0.94); transition-duration: 0.15s; }

/* white text on the thumb */
.mia-launch__toggle-btn[aria-pressed="true"] { color: #f2f9fe; }
.mia-launch__toggle-btn[aria-pressed="true"]:hover { color: #ffffff; transform: none; }

.mia-launch__toggle-btn:focus-visible {
  outline: 3px solid rgba(56, 126, 162, 0.45);
  outline-offset: 2px;
}

/* ---------------- scroll cue ----------------
   "Scroll to continue" sits just above the progress dots for the whole
   pinned ride so nobody thinks the page is stuck. Fades in with .is-in,
   fades out when portal-cta.js adds .is-end near the end of the ride. */

.mia-launch__cue {
  position: absolute;
  left: 50%;
  bottom: 48px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 4;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.mia-launch.is-in .mia-launch__cue {
  opacity: 1;
  transition-delay: 1.1s;   /* arrive after the entry choreography settles */
}

.mia-launch.is-in.is-end .mia-launch__cue {
  opacity: 0;
  transition-delay: 0s;     /* leave immediately once the ride is over */
}

/* little mouse outline with a wheel dot that rolls downward */
.mia-launch__cue-mouse {
  position: relative;
  width: 17px;
  height: 27px;
  border: 1.5px solid rgba(34, 54, 74, 0.38);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
}

.mia-launch__cue-mouse i {
  position: absolute;
  top: 5px;
  left: 50%;
  width: 3px;
  height: 6px;
  margin-left: -1.5px;
  border-radius: 999px;
  background: #0a63e6;
  animation: mia-cue-wheel 1.9s cubic-bezier(0.45, 0, 0.35, 1) infinite;
}

@keyframes mia-cue-wheel {
  0%   { transform: translateY(0);    opacity: 0; }
  22%  { opacity: 1; }
  62%  { transform: translateY(9px);  opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

.mia-launch__cue-text {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(34, 54, 74, 0.55);
}

/* ---------------- progress dots ---------------- */

.mia-launch__progress {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 4;
}

.mia-launch__progress i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(34, 54, 74, 0.16);
  transition:
    width 0.5s cubic-bezier(0.22, 0.8, 0.3, 1),
    background 0.4s ease;
}

.mia-launch__progress i:first-child {
  width: 22px;
  background: #0a63e6;
}

.mia-launch.is-app .mia-launch__progress i:first-child {
  width: 7px;
  background: rgba(34, 54, 74, 0.16);
}

.mia-launch.is-app .mia-launch__progress i:last-child {
  width: 22px;
  background: #0a63e6;
}

/* ==========================================================================
   ENTRY CHOREOGRAPHY (.is-in)
   eyebrow → title → para → buttons, laptop rises, lid opens, screen lights.
   Hidden states live under :not(.is-in) so default = visible and the
   reduced-motion override stays trivial.
   ========================================================================== */

/* Portal-panel copy is scroll-scrubbed like the laptop: portal-cta.js
   writes --c0..--c3 opacity/offset pairs (eyebrow, title, para, buttons)
   every frame — they rise in with the laptop and lift out with it.
   No transitions here: the scrub itself is the motion. */
.mia-launch__panel--portal > * { will-change: opacity, transform; }

.mia-launch__panel--portal > :nth-child(1) { opacity: var(--c0-o, 1); transform: translateY(var(--c0-y, 0px)); }
.mia-launch__panel--portal > :nth-child(2) { opacity: var(--c1-o, 1); transform: translateY(var(--c1-y, 0px)); }
.mia-launch__panel--portal > :nth-child(3) { opacity: var(--c2-o, 1); transform: translateY(var(--c2-y, 0px)); }
.mia-launch__panel--portal > :nth-child(4) { opacity: var(--c3-o, 1); transform: translateY(var(--c3-y, 0px)); }

.mia-launch__panel--app > * {
  transition:
    opacity 0.65s ease,
    transform 0.8s cubic-bezier(0.22, 0.8, 0.3, 1);
  will-change: opacity, transform;
}

.mia-launch__glow {
  opacity: 0;
  transition: opacity 1.4s ease 0.4s;
}

.mia-launch.is-in .mia-launch__glow { opacity: 1; }

/* ==========================================================================
   PHASE 2 (.is-app) — the handoff
   Portal copy lifts out, app copy settles in with a stagger; the laptop
   half-closes while dropping away; the phone-in-hand rises from the
   bottom edge. All of it reverses when scrolling back up.
   ========================================================================== */

/* copy swap — strictly sequential, never overlapping:
   forward: portal copy fades out first, app copy enters only after it
   has cleared; reverse: app copy drops out fast, portal copy waits for
   it before coming back. Out-going transitions are quick, in-coming
   ones are delayed past the out-going duration. */
.mia-launch.is-app .mia-launch__panel--portal {
  opacity: 0;
  transform: translateY(-44px);
  pointer-events: none;
  transition-delay: 0s;               /* leaves immediately */
}

.mia-launch__panel--portal { transition-delay: 0.4s; }  /* returns after app copy clears */

.mia-launch__panel--app {
  opacity: 0;
  transform: translateY(44px);
  pointer-events: none;
  transition-delay: 0s;               /* leaves immediately on reverse */
}

.mia-launch.is-app .mia-launch__panel--app {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition-delay: 0.45s;            /* enters after portal copy cleared */
}

.mia-launch__panel--app > * {
  opacity: 0;
  transform: translateY(26px);
}

.mia-launch.is-app .mia-launch__panel--app > * {
  opacity: 1;
  transform: none;
}

.mia-launch.is-app .mia-launch__panel--app > :nth-child(1) { transition-delay: 0.5s; }
.mia-launch.is-app .mia-launch__panel--app > :nth-child(2) { transition-delay: 0.58s; }
.mia-launch.is-app .mia-launch__panel--app > :nth-child(3) { transition-delay: 0.68s; }
.mia-launch.is-app .mia-launch__panel--app > :nth-child(4) { transition-delay: 0.78s; }
.mia-launch.is-app .mia-launch__panel--app > :nth-child(5) { transition-delay: 0.88s; }

/* (laptop exit — half-close + sink — is scroll-scrubbed via the --lap-*
   custom properties and finishes BEFORE .is-app triggers, see
   portal-cta.js) */

/* phone rises from the bottom edge only once the laptop is gone;
   on reverse it drops out quickly so the laptop can return clean */
.mia-launch__phone {
  opacity: 0;
  transform: translateY(18vh) rotate(4deg);
  transition:
    opacity 0.4s ease,
    transform 0.5s cubic-bezier(0.5, 0, 0.7, 0.4);
}

.mia-launch.is-app .mia-launch__phone {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.7s ease 0.15s,
    transform 0.95s cubic-bezier(0.22, 0.8, 0.3, 1) 0.15s;
}

/* ---------------- responsive ---------------- */

@media (max-width: 960px) {
  .mia-launch { height: 300vh; }

  .mia-launch__inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    align-items: start;
    gap: clamp(8px, 2vh, 20px);
    /* room for the centered toggle band above the copy */
    padding-top: clamp(140px, 19vh, 184px);
  }

  .mia-launch__panel {
    align-items: center;
    text-align: center;
  }

  .mia-launch__para { max-width: 560px; }

  .mia-launch__actions,
  .mia-launch__stores { justify-content: center; }

  .mia-launch__laptop { width: min(88vw, 560px, 100vh); }

  /* stacked layout: lift the laptop out of the scroll-cue / progress strip
     at the bottom of the viewport so its base is never clipped */
  .mia-launch__device--laptop { top: calc(50% - clamp(40px, 7vh, 80px)); }

  .mia-launch__phone img { height: min(46vh, 480px); }

  .mia-launch__progress { bottom: 14px; }

  .mia-launch__cue { bottom: 36px; }

  /* the eyebrow badges hand their spot to the toggle on stacked layouts —
     it sits centered exactly where the badge was, labels kept */
  .mia-launch__eyebrow { display: none; }

  .mia-launch__toggle {
    top: clamp(84px, 12vh, 120px);
    left: 0;
    right: 0;
    margin: 0 auto;
    width: max-content;
    padding: 4px;
  }
  .mia-launch__toggle-thumb { top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); }
  .mia-launch__toggle-btn { min-width: 0; padding: 9px 22px; }

  .mia-launch__cue-text { font-size: 10px; }
}

@media (max-width: 640px) {
  .mia-launch__title { font-size: clamp(28px, 8vw, 36px); }
  .mia-launch__btn { min-width: 122px; padding: 13px 26px; }
  .mia-launch__store { padding: 10px 18px 10px 14px; }
  .mia-launch__store strong { font-size: 15px; }
  .mia-launch__phone img { height: min(44vh, 420px); }
}

/* keep the two-phase state machine but drop all motion */
@media (prefers-reduced-motion: reduce) {
  .mia-launch *,
  .mia-launch *::before,
  .mia-launch *::after {
    transition-duration: 0.001s !important;
    transition-delay: 0s !important;
    animation: none !important;
  }
  .mia-launch__sheen { display: none; }
}

/* ---------------- section hand-off feather ----------------
   Softly fades the bottom of the pinned stage into the next section's
   background so the phone/hand never ends on a hard cut line.
   Sits above the devices (stage z1/z2) but below copy (3) and dots (4). */
.mia-launch__pin::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(90px, 16vh, 180px);
  background: linear-gradient(180deg, rgba(242, 247, 252, 0) 0%, #f2f7fc 88%);
  pointer-events: none;
  z-index: 3;
}

[data-theme="dark"] .mia-launch__pin::after {
  background: linear-gradient(180deg, rgba(4, 16, 29, 0) 0%, #04101d 88%);
}
