/* Final homepage polish */

.instructorPartnerCopy > div { display: none !important; }
footer .foot nav a[href="#instructors"] { display: none !important; }

.missionStory h2 .missionLine:first-child { color: #0f1b2d !important; }
.missionStory h2 .missionLine:nth-child(2) { color: var(--coral) !important; }
.missionCopy strong { font-weight: 700; }

/* Keep the two major proposition headlines on the same visual scale. */
.missionStory h2,
.appCopy h2 {
  font-size: clamp(46px, 5vw, 66px) !important;
  line-height: .98 !important;
}

.missionEyebrow {
  margin-bottom: 16px !important;
}

/* The pink section no longer needs a second 'THE WAYLO APP' label. */
.appCopy > .eyebrow {
  display: none !important;
}

/* White proposition section owns the primary home screen. */
.productProof .phoneCrop {
  width: 300px !important;
  height: auto !important;
  overflow: visible !important;
  background: transparent !important;
}

.productProof .phoneCrop img {
  position: static !important;
  display: block !important;
  width: 300px !important;
  max-width: 100% !important;
  height: auto !important;
  transform: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.heroDownload {
  display: inline-flex;
  align-items: center;
  margin-top: 28px;
  padding: 0;
  background: transparent;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(15,27,45,.18);
  transition: transform .18s ease;
}
.heroDownload:hover { transform: translateY(-2px); }
.heroDownload img {
  display: block;
  width: 190px;
  max-width: 100%;
  height: auto;
}

/* Pink app section: fixed two-column composition. */
.appSection .appGrid {
  grid-template-columns: minmax(0, 1fr) 350px !important;
  gap: 56px !important;
  align-items: center !important;
}

.appCopy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.appCarouselHost {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 350px !important;
  max-width: 350px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  justify-self: end !important;
  align-self: center !important;
  contain: layout paint;
}

.appCarousel {
  width: 100% !important;
  max-width: 350px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  overflow: hidden;
}

.appCarouselStage {
  position: relative;
  width: 350px !important;
  max-width: 350px !important;
  height: 500px !important;
  min-height: 500px !important;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden !important;
  touch-action: pan-y;
}

.appCarouselPhone {
  position: relative !important;
  width: 238px !important;
  height: 484px !important;
  flex: 0 0 238px !important;
  overflow: hidden !important;
  clip-path: inset(0 round 36px);
  border-radius: 36px !important;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15,27,45,.18);
  transition: opacity .22s ease, transform .22s ease;
  isolation: isolate;
}

.appCarouselPhone.is-changing {
  opacity: .12;
  transform: translateX(8px) scale(.985);
}

/* Show more of each functional screen. The home screen now lives in the white section above. */
.appCarouselHost .appCarouselPhone img {
  position: absolute !important;
  left: 50% !important;
  bottom: -1% !important;
  width: 112% !important;
  max-width: none !important;
  min-width: 0 !important;
  height: auto !important;
  max-height: none !important;
  object-fit: initial !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: translateX(-50%) !important;
  transform-origin: center bottom !important;
  user-select: none;
  -webkit-user-drag: none;
}

.appCarouselControls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.appCarouselArrow {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15,27,45,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  color: #0f1b2d;
  font: inherit;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}

.appCarouselDots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.appCarouselDot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(15,27,45,.22);
  cursor: pointer;
  transition: width .18s ease, background .18s ease;
}
.appCarouselDot[aria-current="true"] {
  width: 26px;
  background: var(--coral);
}

.appCarouselCaption { display: none !important; }

.roadReadiness {
  padding-top: 64px !important;
  padding-bottom: 64px !important;
}

.instructors { padding: 68px 0 72px; }
.instructorGrid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 72px !important;
  align-items: start !important;
}
.instructorCopy { max-width: 520px; }
.instructorPartnerCopy { max-width: 560px; padding-top: 30px; }
.instructorPartnerCopy p {
  margin: 0 !important;
  font-size: 17px !important;
  line-height: 1.58 !important;
}

.foot { align-items: flex-start !important; }
.foot nav { justify-content: flex-end; }
.footerRight {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.footerLegal {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
  margin-top: 8px;
  padding: 0 0 8px;
}
.footerLegal a {
  text-decoration: none !important;
  font-size: 10px;
  line-height: 1;
  color: #7d8796;
}
.footerLegal a:hover,
.foot nav a:hover { color: var(--navy); }

@media (max-width: 900px) {
  .appSection .appGrid {
    grid-template-columns: 1fr !important;
    gap: 34px !important;
  }
  .appCarouselHost {
    width: 100% !important;
    max-width: 100% !important;
    justify-self: stretch !important;
    justify-content: flex-start !important;
  }
  .appCarousel {
    width: 330px !important;
    max-width: 330px !important;
  }
  .appCarouselStage {
    width: 330px !important;
    max-width: 330px !important;
    height: 470px !important;
    min-height: 470px !important;
  }
  .appCarouselPhone {
    width: 228px !important;
    height: 462px !important;
    flex-basis: 228px !important;
  }

  .instructorGrid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .instructorCopy,
  .instructorPartnerCopy { max-width: 720px; }
  .instructorPartnerCopy { padding-top: 0; }
}

@media (max-width: 700px) {
  .missionStory h2,
  .appCopy h2 {
    font-size: 34px !important;
    line-height: 1.01 !important;
  }
  .productProof .phoneCrop,
  .productProof .phoneCrop img {
    width: 270px !important;
  }
}

@media (max-width: 620px) {
  .instructors { padding: 46px 0 50px; }
  .instructorGrid { gap: 18px !important; }
  .instructorPartnerCopy p {
    font-size: 15px !important;
    line-height: 1.52 !important;
  }
  .heroDownload { margin-top: 20px; box-shadow: none; }
  .heroDownload img { width: 170px; }

  .appCarouselHost { justify-content: center !important; }
  .appCarousel {
    width: 290px !important;
    max-width: 290px !important;
  }
  .appCarouselStage {
    width: 290px !important;
    max-width: 290px !important;
    height: 438px !important;
    min-height: 438px !important;
  }
  .appCarouselPhone {
    width: 210px !important;
    height: 426px !important;
    flex-basis: 210px !important;
    border-radius: 32px !important;
    clip-path: inset(0 round 32px);
  }

  .roadReadiness {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }
  .foot { flex-direction: column !important; gap: 20px !important; }
  .footerRight { align-items: flex-start; }
  .foot nav { justify-content: flex-start; }
  .footerLegal {
    justify-content: flex-start;
    margin-top: 4px;
    gap: 18px;
  }
}

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