/* Waylo final responsive product polish. Overrides earlier experiments. */

/* White proposition section: always show a real, intact product image. */
.productProof .phoneCrop {
  width: 286px !important;
  height: auto !important;
  overflow: visible !important;
  background: transparent !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}
.productProof .phoneCrop img {
  position: static !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  opacity: 1 !important;
  transform: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Product carousel: the supplied artwork is used as the screen content,
   but is now presented inside one consistent iPhone shell. */
.appCarouselHost,
.appCarousel,
.appCarouselStage { overflow: visible !important; }

.appCarouselStage {
  height: 560px !important;
  min-height: 560px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.appCarouselPhone {
  position: relative !important;
  width: 272px !important;
  height: 548px !important;
  flex: 0 0 272px !important;
  overflow: visible !important;
  clip-path: none !important;
  border: 2px solid #777b82 !important;
  border-radius: 54px !important;
  background: #090a0c !important;
  box-shadow: 0 22px 46px rgba(15,27,45,.22), inset 0 0 0 1px rgba(255,255,255,.2) !important;
  transition: opacity .2s ease, transform .2s ease !important;
}

.appCarouselPhone::before {
  content: '';
  position: absolute;
  z-index: 5;
  top: 15px;
  left: 50%;
  width: 94px;
  height: 26px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #050506;
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
  pointer-events: none;
}

.appCarouselPhone::after {
  content: '';
  position: absolute;
  z-index: 6;
  top: 23px;
  left: calc(50% + 27px);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #101d2a;
  box-shadow: 0 0 0 1px #1f2934;
  pointer-events: none;
}

.appCarouselViewport {
  position: absolute;
  inset: 8px;
  overflow: hidden;
  border-radius: 45px;
  background: #fff;
}

.appCarouselHost .appCarouselViewport img {
  position: absolute !important;
  top: -23% !important;
  left: -27.5% !important;
  bottom: auto !important;
  width: 155% !important;
  max-width: none !important;
  min-width: 0 !important;
  height: auto !important;
  max-height: none !important;
  transform: none !important;
  transform-origin: top left !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  user-select: none !important;
  -webkit-user-drag: none !important;
}

/* Small alignment corrections for the four source compositions. */
.appCarouselPhone[data-screen="0"] .appCarouselViewport img { top: -21% !important; left: -28% !important; width: 156% !important; }
.appCarouselPhone[data-screen="1"] .appCarouselViewport img { top: -22% !important; left: -27% !important; width: 154% !important; }
.appCarouselPhone[data-screen="2"] .appCarouselViewport img { top: -23% !important; left: -27% !important; width: 154% !important; }
.appCarouselPhone[data-screen="3"] .appCarouselViewport img { top: -22% !important; left: -27% !important; width: 154% !important; }

.appCarouselPhone.is-changing {
  opacity: .15 !important;
  transform: translateX(5px) scale(.99) !important;
}

.appCarouselControls { margin-top: 8px !important; }

@media (max-width: 900px) {
  .appCarouselHost { justify-content: center !important; }
  .appCarousel,
  .appCarouselStage {
    width: min(100%, 340px) !important;
    max-width: 340px !important;
  }
}

@media (max-width: 700px) {
  html, body { overflow-x: hidden !important; }
  .wrap { width: calc(100% - 30px) !important; }

  .mission { padding: 36px 0 40px !important; }
  .missionProductGrid {
    gap: 22px !important;
    align-items: start !important;
  }
  .missionStory h2,
  .appCopy h2 {
    font-size: clamp(34px, 9.2vw, 39px) !important;
    line-height: 1 !important;
    letter-spacing: -2px !important;
  }
  .missionEyebrow { margin-bottom: 14px !important; }
  .missionCopy {
    margin-top: 0 !important;
    padding-top: 18px !important;
  }
  .missionCopy p,
  .appCopy > p:not(.eyebrow) {
    font-size: 15px !important;
    line-height: 1.5 !important;
  }
  .missionCopy p + p { margin-top: 16px !important; }
  .productProof {
    justify-items: center !important;
    margin-top: 0 !important;
  }
  .productProof .phoneCrop { width: 244px !important; }

  .appSection { padding: 38px 0 42px !important; }
  .appSection .appGrid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .appCopy > p:not(.eyebrow) { margin-top: 15px !important; }
  .purchase { margin-top: 19px !important; }
  .purchase img { width: 154px !important; }

  .appCarouselHost {
    width: 100% !important;
    max-width: 100% !important;
    justify-self: stretch !important;
    justify-content: center !important;
    margin-top: 0 !important;
  }
  .appCarousel {
    width: 306px !important;
    max-width: 306px !important;
    gap: 8px !important;
  }
  .appCarouselStage {
    width: 306px !important;
    max-width: 306px !important;
    height: 518px !important;
    min-height: 518px !important;
  }
  .appCarouselPhone {
    width: 246px !important;
    height: 498px !important;
    flex-basis: 246px !important;
    border-radius: 49px !important;
  }
  .appCarouselViewport {
    inset: 7px !important;
    border-radius: 41px !important;
  }
  .appCarouselPhone::before {
    top: 13px !important;
    width: 86px !important;
    height: 24px !important;
  }
  .appCarouselPhone::after {
    top: 21px !important;
    left: calc(50% + 24px) !important;
  }
  .appCarouselArrow {
    width: 34px !important;
    height: 34px !important;
    font-size: 22px !important;
    background: rgba(255,255,255,.94) !important;
  }
  .appCarouselDots { gap: 7px !important; }
  .appCarouselDot {
    width: 7px !important;
    height: 7px !important;
  }
  .appCarouselDot[aria-current="true"] { width: 22px !important; }

  .roadReadiness { padding: 40px 0 42px !important; }
  .roadReadinessGrid { gap: 24px !important; }
  .roadReadinessCopy h2 {
    font-size: 34px !important;
    line-height: 1.01 !important;
    letter-spacing: -1.8px !important;
  }
  .roadReadinessCopy > p:not(.eyebrow) {
    margin-top: 16px !important;
    font-size: 14px !important;
    line-height: 1.52 !important;
  }
  .experienceBoundary { margin-top: 17px !important; }
  .experienceLine {
    min-height: 0 !important;
    padding: 17px 17px 18px !important;
  }
  .experienceLine:before { margin-bottom: 11px !important; }
  .experienceLine strong { font-size: 17px !important; }
  .experienceLine span {
    font-size: 12px !important;
    line-height: 1.42 !important;
  }

  .instructors { padding: 40px 0 42px !important; }
  .instructorPartnerCopy { margin-top: 18px !important; }

  /* Compact, intentional mobile footer. */
  footer { padding: 26px 0 30px !important; }
  .foot {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    align-items: start !important;
  }
  .foot > div:first-child small {
    display: block !important;
    margin-top: 7px !important;
    font-size: 10px !important;
  }
  .footerRight {
    width: 100% !important;
    align-items: flex-start !important;
  }
  .foot nav {
    width: 100% !important;
    max-width: 360px !important;
    display: grid !important;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important;
    grid-template-rows: auto auto !important;
    gap: 10px 22px !important;
    justify-content: start !important;
  }
  .foot nav a {
    font-size: 11px !important;
    line-height: 1.35 !important;
    white-space: nowrap !important;
  }
  .foot nav a[href="#mission"] { grid-column: 1; grid-row: 1; }
  .foot nav a[href="/instructors/"] { grid-column: 2; grid-row: 1; }
  .foot nav a[href="#app"] { grid-column: 1; grid-row: 2; }
  .foot nav a[href^="mailto:"] { grid-column: 2; grid-row: 2; }
  .footerLegal {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    margin-top: 12px !important;
    padding: 12px 0 0 !important;
    gap: 18px !important;
    border-top: 1px solid rgba(15,27,45,.08) !important;
    width: 100% !important;
  }
  .footerLegal a { font-size: 10px !important; }
}

@media (max-width: 390px) {
  .missionStory h2,
  .appCopy h2 { font-size: 33px !important; }
  .productProof .phoneCrop { width: 232px !important; }
  .appCarousel {
    width: 290px !important;
    max-width: 290px !important;
  }
  .appCarouselStage {
    width: 290px !important;
    max-width: 290px !important;
    height: 490px !important;
    min-height: 490px !important;
  }
  .appCarouselPhone {
    width: 232px !important;
    height: 470px !important;
    flex-basis: 232px !important;
    border-radius: 46px !important;
  }
  .appCarouselViewport { border-radius: 38px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .appCarouselPhone,
  .appCarouselDot,
  .appCarouselArrow { transition: none !important; }
}
