/* ==========================================================================
   Creomify LP — mobile pass (≤ 720px only; desktop untouched)
   Loaded after styles.css + hero-outcome.css.
   ========================================================================== */

/* Sticky mobile CTA — hidden on desktop, shown after the hero on mobile */
.mobile-cta {
  display: none;
}

@media (max-width: 720px) {
  /* ---------- Hero: centered iPhone + 3 stickers ---------- */
  .hero--outcome.hero--split .hero__stage {
    width: min(100% - 1.1rem, 84rem);
    gap: 1.35rem;
    padding: 0.6rem 0 1.5rem;
  }

  .hero--outcome .hero__body {
    width: 100%;
    max-width: none;
    padding-inline: 0.15rem;
    align-items: center;
  }

  .hero--outcome .hero__actions {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .hero--outcome .hero__cta {
    margin-inline: auto;
  }

  .hero--outcome h1 {
    max-width: none;
    width: 100%;
    font-size: clamp(2.15rem, 9.6vw, 2.8rem);
    line-height: 1.05;
    margin-bottom: 0.95rem;
  }

  .hero--outcome .hero__lead {
    max-width: none;
    width: 100%;
    margin-bottom: 0.55rem;
  }

  .hero--outcome .hero__lead-sub {
    max-width: none;
    width: 100%;
    margin-bottom: 1.5rem;
  }

  .hero--outcome .hero__trust {
    margin-top: 1.15rem;
    gap: 0.55rem 1rem;
  }

  .hero--outcome .hero__visual {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 0;
    margin: 0 auto;
    padding: 1rem 0 0.75rem;
  }

  /* Drop the secondary layers on small screens */
  .hero--outcome .hero__agent,
  .hero--outcome .hero__back-card,
  .hero--outcome .hero__flow-arrow,
  .hero--outcome .hero__sticker--ecom,
  .hero--outcome .hero__coin--b,
  .hero--outcome .hero__coin--d,
  .hero--outcome .hero__spark--3 {
    display: none;
  }

  .hero--outcome .hero__scene-orb {
    left: 50%;
    top: 50%;
    width: 19rem;
    height: 19rem;
  }

  .hero--outcome .hero__phone {
    width: min(14.5rem, 60vw);
    margin: 0 auto;
    transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
  }

  .hero--outcome .hero__sticker {
    padding: 0.55rem 0.75rem;
  }

  .hero--outcome .hero__sticker strong {
    font-size: 0.9rem;
  }

  .hero--outcome .hero__sticker span {
    font-size: 0.64rem;
  }

  .hero--outcome .hero__sticker--total {
    right: 0;
    top: 13%;
  }

  .hero--outcome .hero__sticker--subs {
    left: 0;
    top: 34%;
  }

  .hero--outcome .hero__sticker--brand {
    right: 0;
    bottom: 22%;
  }

  .hero--outcome .hero__coin--a {
    right: 9%;
    top: 29%;
  }

  .hero--outcome .hero__coin--c {
    left: 9%;
    bottom: 9%;
  }

  /* ---------- Case study: stop slide 2 from wrapping (white gap) ---------- */
  .case__viewport {
    align-items: flex-start;
  }

  .case__shots,
  .case__shots--3 {
    flex-wrap: nowrap;
    min-height: 0;
  }

  /* 2-phone slide sized to match the 3-phone slide height → no dead space under the rail */
  .case__shots:not(.case__shots--3) .case__phone,
  .case__shots:not(.case__shots--3) .case__phone--post {
    width: min(7.5rem, 30vw);
  }

  .case__dots {
    margin-top: 1.1rem;
  }

  /* ---------- How to monetize: swipeable rail instead of 4 full screens ---------- */
  .how-monetize {
    padding-left: 0;
    padding-right: 0;
  }

  .how-monetize__head {
    padding: 0 1rem;
  }

  .how-monetize__grid {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.25rem 1rem 0.9rem;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 1rem;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .how-monetize__grid::-webkit-scrollbar {
    display: none;
  }

  .how-step {
    flex: 0 0 min(76vw, 19.5rem);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    min-height: 0;
  }

  .how-step__media {
    aspect-ratio: 1 / 0.9;
  }

  /* ---------- Models: swipeable chips ---------- */
  .models__list {
    display: flex;
    gap: 0.6rem;
    max-width: none;
    margin: 0 -1rem;
    padding: 0.25rem 1rem 0.6rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 1rem;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .models__list::-webkit-scrollbar {
    display: none;
  }

  .model-chip {
    flex: 0 0 min(72vw, 17rem);
    scroll-snap-align: start;
  }

  /* Reference proof framing lives in styles.css — keep sticky CTA clear of the strip */

  /* ---------- Sticky CTA ---------- */
  .mobile-cta {
    position: fixed;
    left: 0.85rem;
    right: 0.85rem;
    bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
    z-index: 60;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 3.1rem;
    padding: 0 1.25rem;
    border-radius: 999px;
    background: #0a0a0a;
    color: #fff;
    font-weight: 700;
    font-size: 0.98rem;
    letter-spacing: -0.01em;
    text-decoration: none;
    box-shadow:
      0 18px 40px rgba(10, 10, 10, 0.28),
      0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    opacity: 0;
    transform: translateY(1.25rem);
    pointer-events: none;
    transition:
      opacity 0.24s ease,
      transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .mobile-cta.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .mobile-cta svg {
    flex-shrink: 0;
  }

  /* Room so the sticky bar never covers the footer links */
  body.has-mobile-cta .site-footer {
    padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
  }
}
