/* Flagship feature demos — app-faithful phone UI */

.flagship-phone {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

.flagship-phone__frame {
  border-radius: 32px;
  padding: 8px;
  background: #000;
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.08) inset,
    0 24px 48px rgba(0, 0, 0, 0.16),
    0 6px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.flagship-phone__screen {
  border-radius: 26px;
  overflow: hidden;
  background: #f5f5f5;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  font-family: "Outfit", system-ui, sans-serif;
  color: #111;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.flagship-phone__status {
  height: 28px;
  background: #fff;
  flex-shrink: 0;
}

.flagship-phone__map {
  height: 140px;
  background: #e8f5e9;
  position: relative;
  flex-shrink: 0;
}

.flagship-phone__map::after {
  content: "";
  position: absolute;
  inset: 30% 20% 20% 25%;
  border: 3px solid #00b894;
  border-radius: 8px;
  opacity: 0.7;
}

.flagship-phone__sheet {
  flex: 1;
  background: #fff;
  border-radius: 18px 18px 0 0;
  margin-top: -12px;
  position: relative;
  z-index: 1;
  padding: 12px 12px 16px;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
  overflow-y: auto;
}

.flagship-phone__handle {
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: #e5e7eb;
  margin: 0 auto 10px;
}

.flagship-phone__hint {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  text-align: center;
}

/* Multi-vehicle vertical rows (matches app) */
.mv-demo__row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  margin-bottom: 8px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.mv-demo__row:hover {
  border-color: #d1d5db;
}

.mv-demo__row.is-selected {
  border-color: #00b894;
  background: #f0fdf9;
  box-shadow: 0 0 0 1px rgba(0, 184, 148, 0.25);
}

.mv-demo__img {
  width: 72px;
  height: 46px;
  object-fit: contain;
  flex-shrink: 0;
}

.mv-demo__img--er {
  width: 64px;
  height: 46px;
}

.mv-demo__body {
  flex: 1;
  min-width: 0;
}

.mv-demo__title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 2px;
}

.mv-demo__badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  background: #00b894;
  padding: 2px 6px;
  border-radius: 999px;
}

.mv-demo__seats {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 2px;
}

.mv-demo__meta {
  margin: 0;
  font-size: 11px;
  color: #9ca3af;
  line-height: 1.35;
}

.mv-demo__fare {
  font-size: 15px;
  font-weight: 800;
  color: #111;
  flex-shrink: 0;
}

.mv-demo__status {
  margin: 8px 0 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  font-size: 12px;
  font-weight: 600;
  color: #92400e;
  text-align: center;
}

/* Fare adjust interactive demo */
.fare-demo {
  padding: 4px 2px 0;
}

.fare-demo__panel {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 12px;
  background: #fff;
}

.fare-demo__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.fare-demo__title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
}

.fare-demo__pill {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #00b894;
  background: rgba(0, 184, 148, 0.1);
  color: #009b7d;
}

.fare-demo__hint {
  margin: 0 0 10px;
  font-size: 11px;
  color: #6b7280;
  line-height: 1.4;
}

.fare-demo__hero {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fafafa;
  padding: 10px 12px 14px;
  text-align: center;
  margin-bottom: 8px;
}

.fare-demo__face {
  width: 120px;
  height: 120px;
  margin: 0 auto 4px;
  display: block;
}

.fare-demo__face-layer {
  transition: opacity 0.22s ease;
}

.fare-demo__sys-label {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
}

.fare-demo__sys-fare {
  margin: 0 0 8px;
  font-size: 14px;
  color: #6b7280;
  text-decoration: line-through;
}

.fare-demo__divider {
  height: 1px;
  background: #e5e7eb;
  margin-bottom: 8px;
}

.fare-demo__offer-label {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6b7280;
}

.fare-demo__offer-fare {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.fare-demo__offer-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.fare-demo__offer-badge.is-hidden {
  display: none;
}

.fare-demo__chips-label,
.fare-demo__slider-label {
  margin: 10px 0 6px;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
}

.fare-demo__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fare-demo__chip {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  color: #111;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.fare-demo__chip.is-active {
  background: #00b894;
  border-color: #00b894;
  color: #fff;
}

.fare-demo__slider-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 4px;
}

.fare-demo__slider-zone {
  margin-top: 4px;
  padding: 10px 10px 8px;
  border-radius: 14px;
  border: 2px dashed rgba(0, 184, 148, 0.45);
  background: rgba(0, 184, 148, 0.08);
  box-shadow: 0 0 0 1px rgba(255, 204, 0, 0.12) inset;
}

.fare-demo__slider-zone .fare-demo__slider {
  margin-bottom: 2px;
}

.fare-demo__slider-labels strong {
  font-size: 13px;
  color: #111;
}

.fare-demo__slider {
  width: 100%;
  height: 32px;
  accent-color: #00b894;
  cursor: pointer;
}

.fare-demo__play {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 8px 0 0;
  padding: 0.55rem 0.65rem;
  border-radius: 999px;
  background: #fbbf24;
  box-shadow:
    0 2px 10px rgba(251, 191, 36, 0.35),
    0 0 0 1px rgba(0, 0, 0, 0.06) inset;
  text-align: center;
  animation: fare-demo-play-pulse 2.4s ease-in-out infinite;
}

.fare-demo__play-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.05rem;
  line-height: 1.15;
}

.fare-demo__play-kicker {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #111;
}

.fare-demo__play-text {
  font-size: 11px;
  font-weight: 700;
  color: rgba(17, 17, 17, 0.88);
}

.fare-demo__play-arrow {
  flex-shrink: 0;
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1;
  color: #111;
  animation: fare-demo-play-arrow 1.35s ease-in-out infinite;
}

.fare-demo__play-arrow:last-child {
  animation-direction: reverse;
}

.fare-demo__play.is-used {
  animation: none;
  opacity: 0.72;
  background: #d1fae5;
  box-shadow: none;
}

.fare-demo__play.is-used .fare-demo__play-arrow {
  animation: none;
  opacity: 0.5;
}

@keyframes fare-demo-play-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 2px 10px rgba(251, 191, 36, 0.35),
      0 0 0 1px rgba(0, 0, 0, 0.06) inset;
  }
  50% {
    transform: scale(1.02);
    box-shadow:
      0 4px 16px rgba(251, 191, 36, 0.48),
      0 0 0 2px rgba(255, 204, 0, 0.35) inset;
  }
}

@keyframes fare-demo-play-arrow {
  0%,
  100% {
    transform: translateX(0);
    opacity: 1;
  }
  50% {
    transform: translateX(4px);
    opacity: 0.75;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fare-demo__play,
  .fare-demo__play-arrow {
    animation: none;
  }
}

/* Parcel app mock */
.parcel-demo__title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 800;
}

.parcel-demo__field {
  margin-bottom: 8px;
}

.parcel-demo__label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 3px;
}

.parcel-demo__input {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 12px;
  background: #fff;
  color: #111;
}

.parcel-demo__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.parcel-demo__cat {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  font-size: 11px;
  font-weight: 600;
  background: #fff;
}

.parcel-demo__cat.is-active {
  border-color: #00b894;
  background: #f0fdf9;
  color: #009b7d;
}

.parcel-demo__cod {
  display: inline-block;
  margin: 4px 0 10px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
}

.parcel-demo__btn {
  display: block;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: #111;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  margin-top: 4px;
}

/* Driver fare request mock */
.driver-demo__card {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}

.driver-demo__route {
  margin: 0 0 4px;
  font-size: 12px;
  color: #6b7280;
}

.driver-demo__payout-label {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
}

.driver-demo__payout {
  margin: 0 0 14px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.driver-demo__actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.driver-demo__reject {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: none;
  background: #ef4444;
  color: #fff;
  font-size: 18px;
  flex-shrink: 0;
}

.driver-demo__accept {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: #00b894;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
}

.driver-demo__fare-btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 11px;
  border-radius: 12px;
  border: 1.5px solid #f59e0b;
  background: #fffbeb;
  color: #92400e;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: default;
}

.driver-demo__status {
  margin: 10px 0 0;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  text-align: center;
}

/* Driver fare request — hero CTA (core feature) */
.driver-fare-phone .flagship-phone__frame {
  box-shadow:
    0 0 0 2px rgba(255, 204, 0, 0.35),
    0 24px 48px rgba(0, 0, 0, 0.18);
}

.driver-demo__card--fare-hero {
  border-color: rgba(255, 204, 0, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255, 204, 0, 0.12);
}

.driver-demo__fare-hero {
  margin: 4px 0 10px;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.driver-demo__fare-kicker {
  display: block;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b45309;
  text-align: center;
}

.driver-demo__fare-btn--hero {
  display: block;
  width: 100%;
  margin-top: 0;
  padding: 14px 12px;
  border: none;
  border-radius: 14px;
  background: #f0b400;
  color: #111;
  box-shadow:
    0 4px 16px rgba(255, 204, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  cursor: default;
  animation: driver-fare-pulse 2.8s ease-in-out infinite;
}

@keyframes driver-fare-pulse {
  0%,
  100% {
    box-shadow:
      0 4px 16px rgba(255, 204, 0, 0.45),
      inset 0 1px 0 rgba(255, 255, 255, 0.45);
  }
  50% {
    box-shadow:
      0 6px 22px rgba(255, 204, 0, 0.62),
      0 0 0 3px rgba(255, 204, 0, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.45);
  }
}

.driver-demo__fare-btn-main {
  display: block;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.driver-demo__fare-btn-sub {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  color: rgba(17, 17, 17, 0.72);
}

.driver-demo__or {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: #9ca3af;
}

.driver-demo__actions--secondary .driver-demo__accept {
  background: #e5e7eb;
  color: #374151;
  font-size: 13px;
}

.driver-demo__actions--secondary .driver-demo__reject {
  opacity: 0.75;
}

@media (prefers-reduced-motion: reduce) {
  .driver-demo__fare-btn--hero {
    animation: none;
  }
}

@media (max-width: 900px) {
  .flagship-phone {
    max-width: 280px;
  }

  .flagship-phone__screen {
    min-height: 480px;
  }
}

html[data-theme="dark"] .flagship-phone__screen,
body:not([data-theme="light"]) .flagship-phone__screen {
  /* Phone screen stays light — mimics real app */
}

/* ---------- Homepage hero feature carousel ---------- */
.hero-feature-carousel {
  position: relative;
  z-index: 1;
  width: min(100%, 360px);
  margin-inline: auto;
}

.hero-feature-carousel__nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.hero-feature-carousel__tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  min-height: 100%;
  padding: 0.45rem 0.4rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.72);
  color: #111;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.hero-feature-carousel__tab:hover {
  border-color: rgba(255, 204, 0, 0.45);
}

.hero-feature-carousel__tab.is-active {
  border-color: rgba(255, 204, 0, 0.75);
  background: #fff;
  box-shadow: 0 8px 22px rgba(255, 204, 0, 0.16);
}

.hero-feature-carousel__tab-title {
  display: block;
  font-size: 0.625rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.hero-feature-carousel__tab-sub {
  display: block;
  font-size: 0.5625rem;
  line-height: 1.25;
  color: #52525b;
}

.hero-feature-carousel__tab.is-active .hero-feature-carousel__tab-sub {
  color: #3f3f46;
}

.hero-feature-carousel__viewport {
  position: relative;
  overflow: visible;
}

.hero-feature-carousel__track {
  display: grid;
}

.hero-feature-carousel__slide {
  grid-area: 1 / 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px) scale(0.99);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease,
    visibility 0.45s ease;
}

.hero-feature-carousel__slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
  transform: none;
}

.hero-feature-carousel__mock {
  width: min(100%, 300px);
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.45s ease;
}

.hero-feature-carousel__slide.is-active .hero-feature-carousel__mock:hover {
  transform: perspective(1200px) rotateY(-2deg) rotateX(0deg) translateY(-4px);
}

.hero-feature-carousel__slide .flagship-phone {
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.45s ease;
}

.hero-feature-carousel__slide.is-active .flagship-phone:hover {
  transform: perspective(1200px) rotateY(-2deg) rotateX(0deg) translateY(-4px);
}

.hero-feature-carousel__progress {
  height: 3px;
  margin-top: 0.85rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.hero-feature-carousel__progress-bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #f59e0b;
}

@keyframes hero-carousel-progress {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .hero-feature-carousel__nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-feature-carousel__mock,
  .hero-feature-carousel__slide .flagship-phone {
    transform: none;
    max-width: min(100%, 280px);
  }

  .hero-feature-carousel__slide.is-active .hero-feature-carousel__mock:hover,
  .hero-feature-carousel__slide.is-active .flagship-phone:hover {
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-feature-carousel__slide {
    transition: none;
  }

  .hero-feature-carousel__mock,
  .hero-feature-carousel__slide .flagship-phone {
    transform: none;
  }
}
