/* ============================================================
   PLM LAUNDRY POS — CLEAN, HUMAN-CRAFTED DESIGN SYSTEM
   Palette: Crisp Royal Blue (#2563EB), Slate Navy (#0F172A), Pure White (#FFFFFF)
   Zero AI Slop | Proportional, High-Contrast Typography & Sleek Layout
   ============================================================ */

:root {
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-primary-light: #eff6ff;
  --color-primary-border: #bfdbfe;
  --color-text-main: #0f172a;
  --color-text-muted: #64748b;
  --color-bg-body: #ffffff;
  --color-card-bg: #ffffff;
  --color-border: #e2e8f0;
  --color-success: #10b981;
}

/* Base resets & typography */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--color-text-main);
  background-color: var(--color-bg-body);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   INTERACTIVE TABS (Minimalist & Crisp)
   ============================================================ */
.tab-btn {
  color: #64748b;
  background-color: #f8fafc;
  transition: all 0.15s ease-in-out;
  border: 1px solid #e2e8f0;
}

.tab-btn:hover {
  color: #0f172a;
  background-color: #f1f5f9;
  border-color: #cbd5e1;
}

.tab-btn.active {
  background-color: #2563eb !important;
  color: #ffffff !important;
  border-color: #2563eb !important;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.25);
}

.feature-info-card {
  animation: fadeInSlideUp 0.2s ease-out forwards;
}

@keyframes fadeInSlideUp {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   REALISTIC ANDROID DEVICE MOCKUP (Using Real App Screenshots)
   ============================================================ */
.phone-mockup-wrapper {
  position: relative;
  width: 100%;
  max-width: 292px;
  margin: 0 auto;
}

.phone-frame {
  position: relative;
  width: 100%;
  background: #0f172a;
  border-radius: 42px;
  padding: 10px 8px;
  box-shadow:
    0 25px 50px -12px rgba(15, 23, 42, 0.28),
    0 0 0 1px #334155;
  border: 2.5px solid #1e293b;
  box-sizing: border-box;
}

/* Side Buttons */
.phone-frame::before {
  content: '';
  position: absolute;
  top: 95px;
  right: -6px;
  width: 3.5px;
  height: 38px;
  background: #334155;
  border-radius: 0 2px 2px 0;
}

.phone-frame::after {
  content: '';
  position: absolute;
  top: 145px;
  right: -6px;
  width: 3.5px;
  height: 60px;
  background: #334155;
  border-radius: 0 2px 2px 0;
}

/* Speaker Grill */
.phone-speaker {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 2.5px;
  background: #334155;
  border-radius: 2px;
  z-index: 30;
}

/* Phone Screen (Proportional to 470x1024 screenshot) */
.phone-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 470 / 1024;
  background: #0f172a;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Mockup Slide */
.mockup-screen-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  transition: opacity 0.2s ease-in-out;
}

.mockup-screen-slide.hidden {
  display: none !important;
  opacity: 0;
}

.mockup-screen-slide:not(.hidden) {
  animation: screenFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes screenFadeIn {
  from {
    opacity: 0;
    transform: scale(0.985);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.mockup-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* ============================================================
   THERMAL RECEIPT EFFECT
   ============================================================ */
.receipt-paper {
  background: #ffffff;
  padding: 10px 10px 14px;
  border-radius: 6px;
  font-family: 'Consolas', 'Courier New', Courier, monospace;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  position: relative;
  color: #1e293b;
  border: 1px solid #e2e8f0;
}

/* Jagged Zigzag Tear Effect at bottom of thermal paper */
.receipt-paper::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 6px;
  background: radial-gradient(circle, transparent, transparent 50%, #ffffff 50%, #ffffff 100%);
  background-size: 8px 8px;
}

.divider-dashed {
  border-top: 1px dashed #cbd5e1;
  margin: 4px 0;
}

/* ============================================================
   FLOATING WHATSAPP CTA
   ============================================================ */
.floating-wa-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 9999px;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-wa-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45);
  background: #20bd5a;
}

.wa-pulse-dot {
  position: relative;
  width: 7px;
  height: 7px;
  background: #ffffff;
  border-radius: 50%;
}

.wa-pulse-dot::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  animation: waPulse 1.8s infinite ease-out;
}

@keyframes waPulse {
  0% {
    transform: scale(0.6);
    opacity: 1;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* ============================================================
   CUSTOM DOWNLOAD MODAL & TOAST
   ============================================================ */
.apk-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 360px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(37, 99, 235, 0.1);
  padding: 16px;
  z-index: 9999;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  animation: slideInToast 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideInToast {
  from {
    transform: translateY(100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Mobile responsive constraints */
@media (max-width: 640px) {
  .phone-mockup-wrapper {
    max-width: 280px;
  }

  .phone-frame {
    height: auto;
    border-radius: 36px;
    padding: 8px 6px;
  }

  .phone-screen {
    border-radius: 28px;
  }

  .floating-wa-btn span {
    display: none;
  }

  .floating-wa-btn {
    padding: 12px;
    border-radius: 50%;
    bottom: 20px;
    right: 20px;
  }
}