/* ═══════════════════════════════════════════
   MOTR — Device Mockup Components
   Phone & Tablet CSS mockups for landing pages
   ═══════════════════════════════════════════ */

/* ── Phone Mockup ── */
.phone-mockup {
  position: relative;
  width: clamp(220px, 20vw, 280px);
  margin: 0 auto;
  filter: drop-shadow(0 20px 60px rgba(0,0,0,0.15));
  animation: phone-float 6s ease-in-out infinite;
}
.phone-frame {
  background: #1a1a1a;
  border-radius: 36px;
  padding: 12px;
  border: 2px solid #EA6621;
  position: relative;
}
.phone-notch {
  width: 100px;
  height: 22px;
  background: #1a1a1a;
  border-radius: 0 0 16px 16px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.phone-screen {
  background: #fff;
  border-radius: 26px;
  overflow: hidden;
  position: relative;
}

/* ── Phone App UI — Vehicle Passport ── */
.app-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px 4px;
  font-size: 9px;
  font-weight: 600;
  color: #333;
  background: #fff;
}
.app-statusbar-icons { display: flex; gap: 3px; align-items: center; }

.app-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 10px;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.app-header-logo {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #EA6621;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  color: #fff;
}
.app-header-title {
  font-size: 12px;
  font-weight: 700;
  color: #0A0A0B;
  letter-spacing: -0.02em;
}

.app-vehicle-card {
  margin: 10px;
  padding: 14px;
  background: linear-gradient(135deg, #FFF8F4 0%, #fff 100%);
  border-radius: 16px;
  border: 1px solid rgba(234,102,33,0.12);
}
.app-vehicle-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.app-car-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(234,102,33,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-car-info h4 {
  font-size: 11px;
  font-weight: 700;
  color: #0A0A0B;
  margin: 0;
}
.app-car-info span {
  font-size: 9px;
  color: #888;
  font-weight: 400;
}

.app-health-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid rgba(0,0,0,0.04);
}
.app-health-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: conic-gradient(#43A047 0% 84%, #e0e0e0 84% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.app-health-circle::after {
  content: '';
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
}
.app-health-circle span {
  position: relative;
  z-index: 1;
  font-size: 10px;
  font-weight: 800;
  color: #43A047;
}
.app-health-detail h5 {
  font-size: 9px;
  font-weight: 600;
  color: #0A0A0B;
  margin: 0;
}
.app-health-detail span {
  font-size: 7.5px;
  color: #888;
  font-weight: 400;
}

/* Service Timeline in Phone */
.app-timeline {
  margin: 0 10px 10px;
}
.app-timeline-item {
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #FAFAFA;
  margin-bottom: 6px;
  align-items: flex-start;
}
.app-timeline-dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  border-radius: 50%;
  margin-top: 3px;
}
.app-timeline-dot.verified { background: #43A047; }
.app-timeline-dot.self { background: #FF9800; border: 2px solid #FFE0B2; }
.app-timeline-text strong {
  display: block;
  font-size: 9px;
  font-weight: 600;
  color: #0A0A0B;
}
.app-timeline-text span {
  font-size: 7.5px;
  color: #888;
  font-weight: 400;
}
.app-timeline-badge {
  display: inline-block;
  font-size: 7px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  margin-top: 2px;
}
.app-timeline-badge.verified {
  background: rgba(67,160,71,0.1);
  color: #43A047;
}

/* Phone bottom bar */
.app-bottombar {
  display: flex;
  justify-content: space-around;
  padding: 8px 0;
  border-top: 1px solid rgba(0,0,0,0.06);
  background: #fff;
}
.app-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 7px;
  font-weight: 500;
  color: #bbb;
}
.app-tab.active { color: #EA6621; }
.app-tab svg { width: 16px; height: 16px; }

@keyframes phone-float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-12px) rotate(0.5deg); }
}

/* ── Hero with Phone Mockup ── */
.hero-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
}

/* ── Step Illustrations (How It Works) ── */
.step-illustration {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.step-illustration.step-register {
  background: linear-gradient(135deg, #FFF4ED, #FFE8D6);
}
.step-illustration.step-build {
  background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
}
.step-illustration.step-own {
  background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
}
.step-illustration svg {
  width: 36px;
  height: 36px;
}

/* ── Two Apps Section — Device Mockups ── */
.app-card-mockup {
  width: 100%;
  max-width: 200px;
  margin: 0 auto 1.5rem;
  border-radius: 20px;
  overflow: hidden;
  background: #1a1a1a;
  padding: 6px;
  border: 1.5px solid #333;
}
.app-card-screen {
  background: #fff;
  border-radius: 15px;
  padding: 10px;
  min-height: 160px;
}
.app-card-screen-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.app-card-screen-icon {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: #EA6621;
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-card-screen-title {
  font-size: 9px;
  font-weight: 700;
  color: #0A0A0B;
}
.app-card-mini-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 0;
  font-size: 8px;
  color: #555;
}
.app-card-mini-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  min-width: 6px;
}

/* Tablet mini mockup */
.tablet-mini-mockup {
  width: 100%;
  max-width: 220px;
  margin: 0 auto 1.5rem;
  border-radius: 14px;
  overflow: hidden;
  background: #1a1a1a;
  padding: 6px;
  border: 1.5px solid #333;
}
.tablet-mini-screen {
  background: #1e1e2e;
  border-radius: 10px;
  padding: 8px;
  min-height: 140px;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 6px;
}
.tablet-mini-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}
.tablet-mini-sidebar-dot {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tablet-mini-sidebar-dot.active { background: rgba(234,102,33,0.2); }
.tablet-mini-sidebar-dot svg { width: 10px; height: 10px; }
.tablet-mini-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tablet-mini-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
  font-size: 7.5px;
  color: rgba(255,255,255,0.7);
}
.tablet-mini-title {
  font-size: 8px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  padding: 2px 6px;
}

/* ── Workshop Page — Discovery Phone Mockup ── */
.discovery-phone {
  width: clamp(200px, 18vw, 260px);
}
.discovery-screen {
  background: #fff;
  border-radius: 26px;
  overflow: hidden;
}
.discovery-header {
  padding: 10px 14px;
  background: linear-gradient(135deg, #EA6621, #FF8A50);
  color: #fff;
}
.discovery-header h4 {
  font-size: 11px;
  font-weight: 700;
  margin: 0;
}
.discovery-header span {
  font-size: 8px;
  opacity: 0.8;
}
.discovery-search {
  margin: 8px 10px;
  padding: 7px 10px;
  background: #F3F3F5;
  border-radius: 8px;
  font-size: 8px;
  color: #888;
  display: flex;
  align-items: center;
  gap: 6px;
}
.discovery-workshop-item {
  padding: 10px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.discovery-ws-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  min-width: 32px;
}
.discovery-ws-info h5 {
  font-size: 9px;
  font-weight: 700;
  color: #0A0A0B;
  margin: 0;
}
.discovery-ws-info span {
  font-size: 7.5px;
  color: #888;
}
.discovery-ws-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 8px;
  color: #FF9800;
  font-weight: 700;
  margin-top: 2px;
}
.discovery-ws-book {
  font-size: 7px;
  font-weight: 700;
  color: #EA6621;
  background: rgba(234,102,33,0.08);
  padding: 3px 8px;
  border-radius: 4px;
  margin-top: 4px;
  display: inline-block;
}

/* ── Workshop Photo Placeholder ── */
.workshop-photo {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #2D2D2D 0%, #4A4A4A 50%, #2D2D2D 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.05);
}
.workshop-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.workshop-photo-placeholder {
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  padding: 2rem;
}
.workshop-photo-placeholder svg {
  width: 48px;
  height: 48px;
  margin-bottom: 0.75rem;
  opacity: 0.3;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  .hero-layout .hero-content { order: 1; }
  .hero-layout .phone-mockup { order: 2; width: 220px; }
  .hero-layout .hero-actions { justify-content: center; }

  .discovery-phone { width: 200px; margin: 2rem auto 0; }
}

@media (max-width: 600px) {
  .phone-mockup { width: 200px; }
  .hero-layout { gap: 1.5rem; }
}
