/* Home page sections. */

.section.soft {
  background: var(--bg-soft);
}

.section.flush {
  padding-top: 0;
}

.section.tight {
  padding-top: 20px;
}

/* --------------------------------------------------------------- hero */

.hero {
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before,
.hero::after {
  /* soft pink light behind everything */
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.8;
  animation: drift 18s ease-in-out infinite alternate;
}

.hero::before {
  width: 620px;
  height: 620px;
  top: -180px;
  right: -140px;
  background: radial-gradient(circle, var(--pink) 0%, transparent 70%);
}

.hero::after {
  width: 520px;
  height: 520px;
  bottom: -220px;
  left: -180px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 30%, transparent) 0%, transparent 70%);
  animation-delay: -6s;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-40px, 30px, 0) scale(1.08);
  }
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
}

.hero h1 {
  margin-top: 18px;
  font-size: clamp(40px, 5.6vw, 66px);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.hero h1 .accent {
  position: relative;
  white-space: nowrap;
}

.hero .lead {
  max-width: 520px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 19px;
}

.hero .ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero .proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 30px;
  padding: 0;
  color: var(--muted);
  font-size: 14px;
  list-style: none;
}

.hero .proof li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero .proof .icon {
  color: var(--accent);
  font-size: 20px;
}

/* The 3D phones: they follow the pointer and spread as you scroll. */
.stage {
  position: relative;
  height: 640px;
  perspective: 1600px;
  perspective-origin: 50% 40%;
}

.stage-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 8deg)) rotateY(var(--ry, -14deg));
  will-change: transform;
}

.stage .phone {
  position: absolute;
  top: 50%;
  left: 50%;
  --w: 270px;
}

.stage .phone.center {
  transform: translate3d(-50%, -50%, 60px);
  animation: float 7s ease-in-out infinite;
}

.stage .phone.left {
  --w: 230px;
  transform: translate3d(calc(-50% - 190px * var(--spread, 1)), calc(-46% + 20px), -120px) rotateY(18deg);
  animation: float 8s ease-in-out -2s infinite;
}

.stage .phone.right {
  --w: 230px;
  transform: translate3d(calc(-50% + 190px * var(--spread, 1)), calc(-54% - 10px), -120px) rotateY(-18deg);
  animation: float 9s ease-in-out -4s infinite;
}

@keyframes float {
  50% {
    translate: 0 -14px;
  }
}

.stage .chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 600;
  transform: translateZ(160px);
  animation: float 6s ease-in-out infinite;
}

.stage .chip .icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--accent);
}

.stage .chip small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 12px;
}

.stage .chip.one {
  top: 16%;
  left: -2%;
}

.stage .chip.two {
  bottom: 14%;
  right: -4%;
  animation-delay: -3s;
}

@media (max-width: 960px) {
  .hero {
    padding-top: 120px;
  }

  .hero .wrap {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero .lead {
    margin-inline: auto;
  }

  .hero .ctas,
  .hero .proof {
    justify-content: center;
  }

  .stage {
    height: 560px;
    margin-top: 10px;
  }
}

@media (max-width: 560px) {
  .stage {
    height: 470px;
  }

  .stage .phone {
    --w: 210px;
  }

  .stage .phone.left,
  .stage .phone.right {
    --w: 170px;
    --spread: 0.62;
  }

  .stage .chip {
    font-size: 12px;
    padding: 10px 12px;
  }

  .stage .chip {
    transform: translateZ(40px);
  }

  .stage .chip.one {
    left: 4%;
    top: 4%;
  }

  .stage .chip.two {
    right: 4%;
    bottom: 2%;
  }
}

/* -------------------------------------------------------- trust strip */

.trust {
  padding: 26px 0;
  border-block: 1px solid var(--line);
  background: var(--bg-soft);
  overflow: hidden;
}

.marquee {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 38s linear infinite;
}

.marquee span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  white-space: nowrap;
}

.marquee .icon {
  color: var(--accent);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ------------------------------------------------- how it works (sticky) */

.how {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 60px;
  align-items: start;
}

.how .steps {
  display: grid;
  gap: 18px;
  padding: 10vh 0;
}

.step {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  opacity: 0.45;
  transform: scale(0.97);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), border-color 0.5s, box-shadow 0.5s;
}

.step.active {
  opacity: 1;
  transform: none;
  border-color: var(--pink);
  box-shadow: var(--shadow);
}

.step .num {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--pink);
  color: #010a08;
  font-weight: 700;
}

.step h3 {
  margin-top: 16px;
  font-size: 22px;
  font-weight: 600;
}

.step p {
  margin-top: 8px;
  color: var(--muted);
}

.how .sticky {
  position: sticky;
  top: 12vh;
  display: grid;
  place-items: center;
  height: 76vh;
  min-height: 560px;
  perspective: 1400px;
}

.how .sticky::before {
  content: "";
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--pink) 0%, transparent 68%);
  opacity: 0.7;
}

.how .sticky .phone {
  --w: 290px;
  transform: rotateY(var(--ry, -10deg)) rotateX(4deg);
  transition: transform 0.8s var(--ease);
}

@media (max-width: 900px) {
  .how {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .how .sticky {
    order: -1;
    top: 70px;
    z-index: 1;
    height: 420px;
    min-height: 0;
  }

  .how .sticky .phone {
    --w: 190px;
  }

  .how .steps {
    position: relative;
    z-index: 2;
    padding: 20px 0 0;
  }

  .step {
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
}

/* --------------------------------------------------------- features */

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature {
  position: relative;
  padding: 30px 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transform-style: preserve-3d;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.feature:hover {
  box-shadow: var(--shadow);
}

.feature .icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--surface-2);
  color: var(--accent);
  font-size: 26px;
  transform: translateZ(30px);
}

.feature h3 {
  margin-top: 20px;
  font-size: 19px;
  font-weight: 600;
  transform: translateZ(20px);
}

.feature p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

.feature.big {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-soft) 100%);
  border: 0;
  color: #010a08;
}

.feature.big p {
  color: #3b2a33;
  max-width: 460px;
}

.feature.big .icon {
  background: rgba(255, 255, 255, 0.6);
}

@media (max-width: 900px) {
  .features {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .features {
    grid-template-columns: 1fr;
  }

  .feature.big {
    grid-column: auto;
  }
}

/* ------------------------------------------------------------- fares */

.fares {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.fare-card {
  position: relative;
  padding: 34px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.fare-card .label {
  color: var(--muted);
  font-size: 14px;
}

.fare-card .value {
  margin-top: 4px;
  font-size: 46px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.fare-card .bar {
  position: relative;
  height: 10px;
  margin: 26px 0 8px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}

.fare-card .bar span {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--fill, 55%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pink), var(--accent));
  transition: width 1.2s var(--ease);
}

.fare-card .scale {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

.offers {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.offer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--bg-soft);
}

.offer .avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--pink);
  color: #010a08;
  font-weight: 700;
}

.offer .who {
  flex: 1;
  font-size: 14px;
}

.offer .who small {
  display: block;
  color: var(--muted);
}

.offer b {
  font-size: 18px;
}

.checklist {
  display: grid;
  gap: 14px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: flex;
  gap: 12px;
}

.checklist .icon {
  color: var(--accent);
}

.fares h2 {
  margin-top: 14px;
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 700;
}

.fares .lede {
  margin-top: 16px;
  color: var(--muted);
  font-size: 18px;
}

@media (max-width: 900px) {
  .fares {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------ services */

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.service-grid article {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.service-grid .icon {
  color: var(--accent);
  font-size: 26px;
}

.service-grid h3 {
  margin-top: 14px;
  font-size: 16px;
  font-weight: 600;
}

.service-grid p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.service-policy-link {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
}

@media (max-width: 900px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .service-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------ drivers */

.drive {
  position: relative;
  border-radius: 40px;
  background: #010a08;
  color: #f7f4f6;
  overflow: hidden;
  isolation: isolate;
}

.drive::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 700px;
  height: 700px;
  right: -200px;
  top: -200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 5, 136, 0.45), transparent 65%);
}

.drive .inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 70px 60px;
}

.drive h2 {
  margin-top: 14px;
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 700;
}

.drive p {
  margin-top: 16px;
  color: #c9bfc5;
  font-size: 17px;
}

.drive .eyebrow {
  background: rgba(247, 178, 216, 0.14);
  color: var(--pink);
}

.drive .checklist .icon {
  color: var(--pink);
}

.drive .btn {
  margin-top: 30px;
}

.drive .phones {
  position: relative;
  height: 560px;
  perspective: 1400px;
}

.drive .phones .phone {
  position: absolute;
  top: 50%;
  left: 50%;
  --w: 240px;
}

.drive .phones .phone:first-child {
  transform: translate(-90%, -50%) rotateY(16deg) rotateZ(-3deg);
}

.drive .phones .phone:last-child {
  transform: translate(-5%, -44%) rotateY(-16deg) rotateZ(3deg) translateZ(60px);
}

@media (max-width: 900px) {
  .drive {
    border-radius: 28px;
  }

  .drive .inner {
    grid-template-columns: 1fr;
    padding: 50px 26px 20px;
  }

  .drive .phones {
    height: 440px;
  }

  .drive .phones .phone {
    --w: 180px;
  }
}

/* ------------------------------------------------- coverflow gallery */

.gallery {
  position: relative;
  perspective: 1400px;
}

.track {
  display: flex;
  gap: 0;
  padding: 40px calc(50% - 125px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

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

.track .card {
  flex: none;
  margin: 0 -14px;
  scroll-snap-align: center;
  /* Each card has its own perspective: a scrolling row flattens shared 3D. */
  transform: perspective(1100px) rotateY(var(--turn, 0deg)) translateZ(var(--depth, 0px)) scale(var(--size, 1));
  transition: transform 0.15s linear;
  text-align: center;
}

.track .phone {
  --w: 250px;
}

.track figcaption {
  margin-top: 18px;
  font-weight: 600;
  opacity: var(--label, 1);
}

.gallery .arrows {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.gallery .arrows button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

@media (max-width: 560px) {
  .track {
    padding-inline: calc(50% - 100px);
  }

  .track .card {
    margin: 0 -18px;
  }

  .track .phone {
    --w: 200px;
  }
}

/* ---------------------------------------------------------------- FAQ */

.faq {
  max-width: 760px;
  margin: 0 auto;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary .icon {
  color: var(--accent);
  transition: transform 0.3s var(--ease);
}

.faq details[open] summary .icon {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 0 22px;
  color: var(--muted);
}

/* ---------------------------------------------------------- final CTA */

.final {
  text-align: center;
}

.final .box {
  position: relative;
  padding: 80px 30px;
  border-radius: 40px;
  background: linear-gradient(135deg, var(--pink) 0%, #fbd0e7 60%, #fde4f1 100%);
  color: #010a08;
  overflow: hidden;
}

.final h2 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
}

.final p {
  max-width: 520px;
  margin: 16px auto 0;
  color: #3b2a33;
  font-size: 18px;
}

.final .ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.final .btn.ghost {
  background: rgba(255, 255, 255, 0.7);
  color: #010a08;
}

.final .stores {
  margin-top: 22px;
  color: #5b4652;
  font-size: 14px;
}
