/* ============================================================
   TRACKY CAR PRO — Polaris Design System + Roboto
   ============================================================ */

/* ===== POLARIS TOKENS ===== */
:root {
  /* Colors */
  --p-color-bg:                #F6F6F7;
  --p-color-bg-surface:        #FFFFFF;
  --p-color-bg-surface-hover:  #F1F1F1;
  --p-color-bg-surface-active: #E3E3E3;
  --p-color-bg-inverse:        #1A1A1A;
  --p-color-bg-primary:        #0061BB;
  --p-color-bg-primary-hover:  #0052A0;
  --p-color-bg-primary-active: #004488;
  --p-color-bg-primary-subdued:#E6F0FA;
  --p-color-bg-success:        #DCFCE7;
  --p-color-bg-warning:        #FEF3C7;

  --p-color-text:              #1A1A1A;
  --p-color-text-secondary:    #616161;
  --p-color-text-disabled:     #ABABAB;
  --p-color-text-inverse:      #FFFFFF;
  --p-color-text-primary:      #0061BB;
  --p-color-text-success:      #16A34A;

  --p-color-border:            #E3E3E3;
  --p-color-border-hover:      #ABABAB;
  --p-color-border-primary:    #0061BB;

  /* Typography */
  --p-font-family-sans: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  --p-font-family-arabic: 'Cairo', 'Roboto', sans-serif;

  --p-font-size-75:  0.75rem;   /* 12px */
  --p-font-size-100: 0.875rem;  /* 14px */
  --p-font-size-200: 1rem;      /* 16px */
  --p-font-size-300: 1.125rem;  /* 18px */
  --p-font-size-400: 1.25rem;   /* 20px */
  --p-font-size-500: 1.5rem;    /* 24px */
  --p-font-size-600: 1.875rem;  /* 30px */
  --p-font-size-700: 2.25rem;   /* 36px */
  --p-font-size-800: 3rem;      /* 48px */

  --p-font-weight-regular: 400;
  --p-font-weight-medium:  500;
  --p-font-weight-bold:    700;

  --p-line-height-1: 1;
  --p-line-height-2: 1.25;
  --p-line-height-3: 1.5;
  --p-line-height-4: 1.75;

  /* Spacing (4px base) */
  --p-space-1:  4px;
  --p-space-2:  8px;
  --p-space-3:  12px;
  --p-space-4:  16px;
  --p-space-5:  20px;
  --p-space-6:  24px;
  --p-space-8:  32px;
  --p-space-10: 40px;
  --p-space-12: 48px;
  --p-space-16: 64px;
  --p-space-20: 80px;
  --p-space-24: 96px;
  --p-space-32: 128px;

  /* Border radius */
  --p-border-radius-1:    4px;
  --p-border-radius-2:    8px;
  --p-border-radius-3:    12px;
  --p-border-radius-4:    16px;
  --p-border-radius-full: 9999px;

  /* Shadows */
  --p-shadow-0: none;
  --p-shadow-100: 0 1px 0 rgba(0,0,0,0.05);
  --p-shadow-200: 0 1px 4px rgba(0,0,0,0.08), 0 1px 0 rgba(0,0,0,0.04);
  --p-shadow-300: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.06);
  --p-shadow-400: 0 8px 24px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.06);
  --p-shadow-500: 0 20px 48px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.08);

  /* Primary shorthand */
  --primary:       #0061BB;
  --primary-dark:  #0052A0;
  --primary-light: #E6F0FA;
  --primary-rgb:   0,97,187;
  --green: #22C55E;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
/* <picture> wrappers must not create a layout box — the inner <img> keeps the
   sizing/flex/grid placement it had before being wrapped for WebP delivery. */
picture { display: contents; }

body {
  font-family: var(--p-font-family-sans);
  font-size: var(--p-font-size-200);
  font-weight: var(--p-font-weight-regular);
  line-height: var(--p-line-height-3);
  color: var(--p-color-text);
  background: var(--p-color-bg-surface);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== RTL ===== */
body[data-lang="ar"] {
  font-family: var(--p-font-family-arabic);
  direction: rtl;
  text-align: right;
}
body[data-lang="ar"] .nav-links { margin-left: 0; margin-right: auto; }
body[data-lang="ar"] .step-arrow { transform: scaleX(-1); }
body[data-lang="ar"] .hero-cta svg,
body[data-lang="ar"] .cta-section .btn svg { transform: scaleX(-1); }
body[data-lang="ar"] .mock-badge { margin-left: 0; margin-right: auto; }

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--p-space-6);
}

.accent { color: var(--p-color-text-primary); }
.blue   { color: var(--p-color-bg-primary); }
.green-text { color: var(--p-color-text-success); }

/* ===== POLARIS BUTTON ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--p-space-2);
  padding: 10px var(--p-space-6);
  border-radius: var(--p-border-radius-2);
  font-family: var(--p-font-family-sans);
  font-size: var(--p-font-size-200);
  font-weight: var(--p-font-weight-medium);
  line-height: var(--p-line-height-2);
  cursor: pointer;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background 0.15s, box-shadow 0.15s, border-color 0.15s, transform 0.15s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--p-color-bg-primary);
  color: var(--p-color-text-inverse);
  border-color: var(--p-color-bg-primary);
  box-shadow: var(--p-shadow-100), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-primary:hover {
  background: var(--p-color-bg-primary-hover);
  border-color: var(--p-color-bg-primary-hover);
  box-shadow: var(--p-shadow-200);
  transform: translateY(-1px);
}
.btn-primary:active {
  background: var(--p-color-bg-primary-active);
  transform: translateY(0);
  box-shadow: var(--p-shadow-100);
}
.btn-ghost {
  background: var(--p-color-bg-surface);
  color: var(--p-color-text);
  border-color: var(--p-color-border);
  box-shadow: var(--p-shadow-100);
}
.btn-ghost:hover {
  background: var(--p-color-bg-surface-hover);
  border-color: var(--p-color-border-hover);
  transform: translateY(-1px);
}
.btn-white {
  background: var(--p-color-bg-surface);
  color: var(--p-color-text-primary);
  border-color: var(--p-color-bg-surface);
  box-shadow: var(--p-shadow-200);
}
.btn-white:hover {
  background: var(--p-color-bg-primary-subdued);
  transform: translateY(-1px);
}
.btn-lg { padding: 14px var(--p-space-8); font-size: var(--p-font-size-300); border-radius: var(--p-border-radius-2); }
.btn-sm { padding: 6px var(--p-space-4); font-size: var(--p-font-size-100); }
.btn-full { width: 100%; border-radius: var(--p-border-radius-2); }

/* ===== POLARIS BADGE ===== */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 18px 6px 6px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 500;
  background: #ffffff;
  color: var(--p-color-text);
  text-decoration: none;
  margin-bottom: var(--p-space-4);
  border: 1px solid var(--p-color-border, rgba(15, 23, 42, 0.08));
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  max-width: 100%;
  width: fit-content;
}
.badge-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}
.badge-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  background: var(--green, #22C55E);
  color: #ffffff;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(34, 197, 94, 0.35);
}
.badge-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.badge-arrow {
  color: var(--green, #22C55E);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.badge-pill:hover .badge-arrow { transform: translateX(3px); }
body[data-lang="ar"] .badge-arrow { transform: scaleX(-1); }
body[data-lang="ar"] .badge-pill:hover .badge-arrow { transform: scaleX(-1) translateX(3px); }
.badge-pill.dark {
  background: var(--p-color-bg);
  color: var(--p-color-text-secondary);
  border-color: var(--p-color-border);
}
.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

/* ===== SECTION HEADER ===== */
.section-header { text-align: center; margin-bottom: var(--p-space-16); }
.section-header h2 {
  font-size: clamp(var(--p-font-size-600), 3.5vw, var(--p-font-size-700));
  font-weight: var(--p-font-weight-bold);
  line-height: 1.1;
  color: var(--p-color-text);
  margin-bottom: var(--p-space-3);
  letter-spacing: -0.02em;
}
.section-header h2 .accent {
  font-size: 1.18em;
  font-weight: 800;
  letter-spacing: -0.03em;
}
body[data-lang="ar"] .section-header h2 { font-family: var(--p-font-family-arabic); }
.section-header p {
  color: var(--p-color-text-secondary);
  font-size: var(--p-font-size-300);
  max-width: 560px;
  margin: 0 auto;
  line-height: var(--p-line-height-4);
}

/* ===== LANG SWITCH ===== */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: var(--p-space-2);
  padding: 6px var(--p-space-3);
  border-radius: var(--p-border-radius-full);
  border: 1.5px solid var(--p-color-border);
  background: var(--p-color-bg-surface);
  cursor: pointer;
  font-size: var(--p-font-size-100);
  font-weight: var(--p-font-weight-medium);
  color: var(--p-color-text-secondary);
  transition: all 0.15s;
  font-family: var(--p-font-family-arabic);
  box-shadow: var(--p-shadow-100);
}
.lang-switch:hover {
  border-color: var(--p-color-border-primary);
  color: var(--p-color-text-primary);
  background: var(--p-color-bg-primary-subdued);
}
.lang-flag { font-size: 1rem; }
.mobile-lang { width: 100%; justify-content: center; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--p-color-border);
  transition: box-shadow 0.2s;
}
.navbar.scrolled { box-shadow: var(--p-shadow-200); }
.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 84px;
  gap: var(--p-space-8);
  padding-right: 76px;
}
.logo {
  display: flex;
  align-items: center;
  gap: var(--p-space-2);
  text-decoration: none;
  color: var(--p-color-text);
}
.logo-img {
  height: 36px;
  width: auto;
  display: block;
}
.footer-logo-img { height: 36px; filter: brightness(0) invert(1); }
.nav-links { display: flex; gap: var(--p-space-6); justify-self: center; }
.nav-links a {
  position: relative;
  color: var(--p-color-text-secondary);
  text-decoration: none;
  font-size: var(--p-font-size-100);
  font-weight: var(--p-font-weight-medium);
  transition: color 0.15s;
  padding: var(--p-space-1) 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--p-color-text-primary, currentColor);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}
.nav-links a:hover { color: var(--p-color-text); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: var(--p-space-3); justify-self: end; }
.nav-actions .btn { font-size: var(--p-font-size-200); padding: 10px var(--p-space-5); }
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--p-color-text);
  margin-left: auto;
}
body[data-lang="ar"] .hamburger { margin-left: 0; margin-right: auto; }
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: var(--p-space-3);
  padding: var(--p-space-4) var(--p-space-6) var(--p-space-5);
  border-top: 1px solid var(--p-color-border);
  background: var(--p-color-bg-surface);
}
.mobile-menu a:not(.btn) {
  text-decoration: none;
  color: var(--p-color-text-secondary);
  font-weight: var(--p-font-weight-medium);
  font-size: var(--p-font-size-200);
  padding: var(--p-space-2) 0;
  border-bottom: 1px solid var(--p-color-border);
}
.mobile-menu.open { display: flex; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  padding: 100px 0 var(--p-space-20);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: var(--p-color-bg-surface);
}
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.08;
}
.shape-1 { width: 640px; height: 640px; background: var(--primary); top: -200px; right: -120px; }
.shape-2 { width: 440px; height: 440px; background: #8B5CF6; bottom: -120px; left: -120px; }
.shape-3 { width: 320px; height: 320px; background: var(--green); top: 50%; left: 50%; transform: translate(-50%,-50%); }

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--p-space-16);
  row-gap: 0;
  align-items: start;
}
.hero-inner > .badge-pill { grid-column: 1; grid-row: 1; justify-self: center; margin-bottom: var(--p-space-6); }
.hero-inner > .hero-title { grid-column: 1; grid-row: 2; margin-bottom: var(--p-space-6); }
.hero-text { grid-column: 1; grid-row: 3; }
.hero-visual { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: var(--p-font-weight-bold);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--p-space-5);
  color: var(--p-color-text);
}
body[data-lang="ar"] .hero-title { font-family: var(--p-font-family-arabic); }
.hero-sub {
  color: var(--p-color-text-secondary);
  font-size: var(--p-font-size-300);
  margin-bottom: var(--p-space-8);
  line-height: var(--p-line-height-4);
}
.hero-cta {
  display: flex;
  gap: var(--p-space-3);
  flex-wrap: nowrap;
  margin-bottom: var(--p-space-8);
}
.hero-stats {
  display: flex;
  align-items: stretch;
  gap: 12px;
}
.stat-card {
  flex: 1 1 0;
  min-width: 0;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--p-color-border, rgba(15, 23, 42, 0.06));
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}
.stat-num {
  display: block;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--p-color-text);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.stat-label {
  display: block;
  font-size: 0.7rem;
  color: var(--p-color-text-secondary);
  margin-top: 4px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ===== PHONE MOCKUP + 3D ORBIT (shared 3D scene) ===== */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1400px;
  perspective-origin: 50% 50%;
  transform-style: preserve-3d;
}
.hero-iphone {
  width: 280px;
  max-width: 100%;
  height: auto;
  display: block;
  position: relative;
  transform: translateZ(0);
}
.hero-orbit-ring {
  position: absolute;
  top: calc(85% - 2rem);
  left: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
  transform-style: preserve-3d;
  animation: orbit-spin 22s linear infinite;
}
@keyframes orbit-spin {
  from { transform: rotateX(-22deg) rotateY(0deg); }
  to   { transform: rotateX(-22deg) rotateY(360deg); }
}
.orbit-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 152px;
  margin: -22px 0 0 -76px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #ffffff;
  border: 1px solid var(--p-color-border, rgba(15,23,42,0.08));
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--p-color-text);
  white-space: nowrap;
  transform-style: preserve-3d;
  animation: orbit-card-counter 22s linear infinite;
}
.orbit-card .orbit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--p-color-bg-primary-subdued, #eef2ff);
  color: var(--p-color-bg-primary, #2557ff);
  flex-shrink: 0;
}
@keyframes orbit-card-counter {
  from {
    transform: rotateY(var(--angle)) translateZ(230px) rotateY(calc(0deg - var(--angle)));
  }
  to {
    transform: rotateY(var(--angle)) translateZ(230px) rotateY(calc(-360deg - var(--angle)));
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-orbit-ring,
  .orbit-card { animation: none; }
  .hero-orbit-ring { transform: rotateX(-22deg); }
  .orbit-card {
    transform: rotateY(var(--angle)) translateZ(230px) rotateY(calc(0deg - var(--angle)));
  }
}
.phone-mockup {
  width: 256px;
  background: #D1D5DB;
  border-radius: 32px;
  padding: 8px 6px;
  box-shadow: var(--p-shadow-500), 0 0 0 4px #D1D5DB;
  position: relative;
  z-index: 2;
}
.phone-screen {
  background: var(--p-color-bg-surface);
  border-radius: 28px;
  padding: var(--p-space-4);
  display: flex;
  flex-direction: column;
  gap: var(--p-space-3);
  direction: ltr;
  text-align: left;
}
.mock-header { display: flex; align-items: center; gap: var(--p-space-2); }
.mock-avatar {
  width: 34px; height: 34px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700;
  font-family: var(--p-font-family-sans);
}
.mock-name { font-size: 0.8rem; font-weight: 700; }
.mock-sub { font-size: 0.68rem; color: var(--p-color-text-secondary); }
.mock-badge {
  margin-left: auto;
  padding: 2px var(--p-space-2);
  border-radius: var(--p-border-radius-full);
  font-size: 0.68rem;
  font-weight: 600;
}
.mock-badge.active { background: var(--p-color-bg-success); color: var(--p-color-text-success); }
.mock-car {
  background: var(--p-color-bg);
  padding: var(--p-space-2) var(--p-space-3);
  border-radius: var(--p-border-radius-2);
}
.mock-car-name { font-size: 0.78rem; font-weight: 700; }
.mock-period { font-size: 0.68rem; color: var(--p-color-text-secondary); margin-top: 2px; }
.mock-payment {
  background: var(--p-color-bg-primary-subdued);
  padding: var(--p-space-2) var(--p-space-3);
  border-radius: var(--p-border-radius-2);
  border: 1px solid rgba(var(--primary-rgb), 0.12);
}
.mock-pay-label { font-size: 0.65rem; color: var(--p-color-text-secondary); }
.mock-pay-val { font-size: 0.85rem; font-weight: 700; }
.mock-paid { font-size: 0.68rem; color: var(--p-color-text-success); }
.mock-btn {
  text-align: center;
  padding: var(--p-space-2);
  border-radius: var(--p-border-radius-2);
  font-size: 0.72rem;
  font-weight: 600;
  color: white;
}
.mock-btn.blue-btn { background: var(--primary); }

/* ===== APP SCREEN MOCKUP ===== */
.app-screen {
  background: #F5F5F5;
  border-radius: 26px;
  padding: 0;
  overflow: hidden;
  gap: 0;
  display: flex;
  flex-direction: column;
}
.app-topbar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #111;
  padding: 10px 12px;
  direction: ltr;
}
.app-logo-badge {
  width: 28px; height: 28px;
  background: #22C55E;
  border-radius: 6px;
  font-size: 0.65rem; font-weight: 800;
  color: white;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.app-agency {
  font-size: 0.75rem; font-weight: 700;
  color: white; flex: 1;
}
.app-topbar-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.app-notif-wrap { position: relative; color: #9CA3AF; }
.app-notif-dot {
  position: absolute; top: -4px; right: -4px;
  background: #EF4444; color: white;
  font-size: 0.5rem; font-weight: 700;
  width: 14px; height: 14px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.app-user-avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #6366F1;
}

.app-date-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px 6px;
  background: white;
  direction: ltr;
}
.app-date { font-size: 0.85rem; font-weight: 700; color: #111; }
.app-events { font-size: 0.65rem; color: #6B7280; }
.app-chevron {
  width: 28px; height: 28px;
  background: #111;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
}

.app-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px 8px;
  background: white;
}
.app-stat-card {
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dark-stat { background: #111; }
.green-stat { background: #F0FDF4; border: 1px solid #BBF7D0; }
.blue-stat  { background: #EFF6FF; border: 1px solid #BFDBFE; }
.gray-stat  { background: #F3F4F6; border: 1px solid #E5E7EB; }

.app-stat-icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: #9CA3AF;
  margin-bottom: 4px;
}
.green-stat-icon { background: #DCFCE7; color: #16A34A; }
.blue-stat-icon  { background: #DBEAFE; color: var(--primary); }
.gray-stat-icon  { background: #E5E7EB; color: #6B7280; }

.app-stat-label { font-size: 0.65rem; color: #6B7280; }
.dark-stat .app-stat-label { color: #9CA3AF; }
.app-stat-val { font-size: 0.82rem; font-weight: 700; color: #111; }
.dark-stat .app-stat-val { color: white; }
.app-stat-val span { font-size: 0.6rem; font-weight: 400; color: #6B7280; }
.dark-stat .app-stat-val span { color: #9CA3AF; }

.app-section-title {
  font-size: 0.72rem; font-weight: 700;
  color: #111; padding: 8px 12px 4px;
  background: white; border-top: 1px solid #F3F4F6;
  direction: ltr;
}
.app-commercial {
  background: white;
  padding: 8px 12px;
  border-top: 1px solid #F3F4F6;
  display: flex; flex-direction: column; gap: 4px;
  direction: ltr;
}
.app-com-header { display: flex; align-items: center; justify-content: space-between; }
.app-com-name { font-size: 0.72rem; font-weight: 700; color: #111; }
.app-com-badge {
  background: #F3F4F6; color: #374151;
  font-size: 0.6rem; font-weight: 600;
  padding: 2px 6px; border-radius: 50px;
}
.app-com-contrib { font-size: 0.62rem; color: #6B7280; }
.app-progress-bar {
  height: 6px; border-radius: 3px;
  background: #F3F4F6;
  display: flex; overflow: hidden;
}
.app-progress-fill { background: #22C55E; height: 100%; }
.app-progress-rest { background: #F97316; height: 100%; }
.app-com-amounts { display: flex; gap: 8px; flex-wrap: wrap; }
.app-com-amounts span { font-size: 0.58rem; color: #6B7280; }
.paid-dot { color: #16A34A !important; }
.rest-dot { color: #EA580C !important; }

/* Floating cards */
.floating-card {
  position: absolute;
  background: var(--p-color-bg-surface);
  border-radius: var(--p-border-radius-3);
  padding: var(--p-space-3) var(--p-space-4);
  box-shadow: var(--p-shadow-400);
  border: 1px solid var(--p-color-border);
  display: flex;
  align-items: center;
  gap: var(--p-space-2);
  z-index: 3;
  animation: float 3s ease-in-out infinite;
  direction: ltr; text-align: left;
}
.floating-card:nth-child(2) { animation-delay: 0.5s; }
.floating-card:nth-child(3) { animation-delay: 1s; }
.floating-card:nth-child(4) { animation-delay: 1.5s; }
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.card-scan { top: 16px; left: -80px; }
.card-notif { top: 140px; right: -90px; }
.card-revenue { bottom: 60px; left: -70px; }
.fc-icon {
  width: 36px; height: 36px;
  background: var(--p-color-bg-primary-subdued);
  border-radius: var(--p-border-radius-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.fc-icon.green-icon {
  background: #DCFCE7;
  color: #16A34A;
}
.fc-title { font-size: 0.78rem; font-weight: 700; color: var(--p-color-text); }
.fc-sub { font-size: 0.68rem; color: var(--p-color-text-secondary); }
.fc-sub.blue { color: var(--primary); font-weight: 600; }

/* ===== TRUST ===== */
.trust {
  background: linear-gradient(180deg, var(--p-color-bg-surface) 0%, var(--p-color-bg-surface) 20%, #050505 100%);
  padding: var(--p-space-16) 0 var(--p-space-20);
}
.trust .section-header { margin-bottom: var(--p-space-10); }
.trust .section-header h2 .accent {
  font-size: 1.2em;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.trust .section-header p {
  font-size: var(--p-font-size-300);
  color: var(--p-color-text-secondary);
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
}

/* ===== CAROUSEL ===== */
.carousel-track-wrap {
  position: relative;
  overflow: hidden;
  width: 100%;
  direction: ltr;
  padding: 18px 0;
}
.carousel-track-wrap::before,
.carousel-track-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 40px;
  z-index: 2;
  pointer-events: none;
}
.carousel-track-wrap::before {
  left: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.18), transparent);
}
.carousel-track-wrap::after {
  right: 0;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.18), transparent);
}
.carousel-track {
  display: flex;
  gap: var(--p-space-3);
  width: max-content;
  direction: ltr;
  animation: carousel-scroll 28s linear infinite;
}
.carousel-track:hover { animation-play-state: paused; }
@keyframes carousel-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.carousel-logo {
  display: flex;
  align-items: center;
  gap: var(--p-space-2);
  padding: var(--p-space-3) var(--p-space-5);
  background: var(--p-color-bg-surface);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--p-border-radius-full);
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  transition: all 0.2s;
  cursor: default;
}
.carousel-logo:hover {
  border-color: var(--p-color-border-primary);
  box-shadow: var(--p-shadow-300);
  transform: translateY(-2px);
}
.cl-icon {
  width: 30px; height: 30px;
  border-radius: var(--p-border-radius-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.cl-img {
  height: 42px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}
.carousel-logo span {
  font-size: var(--p-font-size-100);
  font-weight: var(--p-font-weight-medium);
  color: var(--p-color-text-secondary);
}

/* ===== FEATURES ===== */
.features { padding: var(--p-space-24) 0; background: var(--p-color-bg-surface); }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--p-space-4); }

.feature-card {
  background: var(--p-color-bg);
  border: 1px solid var(--p-color-border);
  border-radius: var(--p-border-radius-3);
  padding: var(--p-space-6);
  transition: all 0.2s;
}
.feature-card:hover {
  border-color: rgba(var(--primary-rgb), 0.3);
  box-shadow: var(--p-shadow-300);
  transform: translateY(-2px);
  background: var(--p-color-bg-surface);
}
.feat-main {
  grid-column: span 2;
}
.feat-icon {
  width: 48px; height: 48px;
  background: var(--p-color-bg-primary-subdued);
  border-radius: var(--p-border-radius-2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--p-space-4);
  color: var(--primary);
  flex-shrink: 0;
}
.feature-card h3 {
  font-size: var(--p-font-size-300);
  font-weight: var(--p-font-weight-bold);
  margin-bottom: var(--p-space-2);
  line-height: var(--p-line-height-2);
  letter-spacing: -0.01em;
}
.feature-card p { font-size: var(--p-font-size-100); color: var(--p-color-text-secondary); line-height: var(--p-line-height-4); }
.feat-tags { display: flex; gap: var(--p-space-2); flex-wrap: wrap; margin-top: var(--p-space-4); }
.feat-tags span {
  padding: var(--p-space-1) var(--p-space-3);
  background: var(--p-color-bg-primary-subdued);
  border-radius: var(--p-border-radius-full);
  font-size: var(--p-font-size-75);
  color: var(--primary);
  font-weight: var(--p-font-weight-medium);
  border: 1px solid rgba(var(--primary-rgb), 0.25);
}

/* ===== HOW ===== */
.how {
  padding: var(--p-space-24) 0;
  background: var(--p-color-bg-inverse);
  color: var(--p-color-text-inverse);
}
.how .section-header h2 { color: var(--p-color-text-inverse); }
.how .section-header p { color: #9CA3AF; }
.how .badge-pill.dark { background: rgba(255,255,255,0.08); color: #D1D5DB; border-color: rgba(255,255,255,0.1); }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--p-space-6);
  justify-content: center;
  align-items: stretch;
}
.step {
  position: relative;
  text-align: left;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: var(--p-space-8) var(--p-space-6);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}
.step::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, var(--step-color, rgba(99, 159, 244, 0.22)) 0%, transparent 60%);
  opacity: 0.9;
  pointer-events: none;
}
.step > * { position: relative; z-index: 1; }
.step:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 18px 40px rgba(0,0,0,0.4);
}
.step-blue   { --step-color: rgba(59, 130, 246, 0.28);  --step-accent: #60A5FA; }
.step-green  { --step-color: rgba(16, 185, 129, 0.28);  --step-accent: #34D399; }
.step-purple { --step-color: rgba(139, 92, 246, 0.28);  --step-accent: #C084FC; }
.step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--p-space-4);
  margin-bottom: var(--p-space-5);
}
.step-header .step-badge { order: 2; }
.step-header .step-icon { order: 1; }
.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--step-accent, #ffffff);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.step-icon {
  width: 56px; height: 56px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: var(--step-accent, #ffffff);
  flex-shrink: 0;
}
.step h3 {
  font-size: var(--p-font-size-400);
  font-weight: var(--p-font-weight-bold);
  color: white;
  margin-bottom: var(--p-space-2);
  letter-spacing: -0.01em;
}
.step p {
  font-size: var(--p-font-size-100);
  color: rgba(255, 255, 255, 0.7);
  line-height: var(--p-line-height-4);
}
.step-arrow { display: none; }

/* ===== PREVIEW ===== */
.preview {
  padding: 0 0;
  background: linear-gradient(180deg, #050505 0%, #0a0a0a 70%, var(--p-color-bg-surface) 100%);
  color: rgba(255, 255, 255, 0.92);
}
.preview .section-header h2 {
  color: #ffffff;
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.preview .section-header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--p-font-size-300);
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
}
.preview-tagline {
  font-family: 'Outfit', 'Roboto', sans-serif;
  font-size: clamp(2.8rem, 6.2vw, 4.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: rgba(255, 255, 255, 0.55);
  margin-top: var(--p-space-4);
  max-width: none;
  line-height: 1.05;
}
.preview-tagline .word {
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 700;
}
.preview-tagline .w1 {
  background-image: linear-gradient(120deg, #60A5FA 0%, #3B82F6 100%);
}
.preview-tagline .w2 {
  background-image: linear-gradient(120deg, #34D399 0%, #10B981 100%);
}
.preview-tagline .w3 {
  background-image: linear-gradient(120deg, #C084FC 0%, #8B5CF6 100%);
}
.preview .badge-pill.dark {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.15);
}
.preview .preview-label { color: rgba(255, 255, 255, 0.85); }
.preview .prev-btn, .preview .next-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
}
.preview .prev-btn:hover, .preview .next-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
}
.preview .carousel-dot { background: rgba(255, 255, 255, 0.25); }
.preview .carousel-dot.active { background: #ffffff; }
.preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--p-space-6); }
.preview-card { display: flex; flex-direction: column; gap: var(--p-space-3); }
.preview-img {
  border-radius: var(--p-border-radius-4);
  box-shadow: var(--p-shadow-400);
  background: var(--p-color-bg-surface);
  padding: var(--p-space-5);
  min-height: 280px;
  direction: ltr; text-align: left;
}
.preview-img.preview-img-photo {
  padding: 0;
  overflow: hidden;
  background: #1a1a1a;
  aspect-ratio: 9 / 19;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preview-img.preview-img-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.preview-label {
  text-align: center;
  font-size: var(--p-font-size-100);
  font-weight: var(--p-font-weight-medium);
  color: var(--p-color-text-secondary);
}

/* Dashboard Mock */
.dashboard-mock { display: flex; flex-direction: column; gap: var(--p-space-3); }
.dash-header { display: flex; align-items: center; gap: var(--p-space-2); }
.dash-logo {
  width: 30px; height: 30px;
  background: var(--primary);
  border-radius: var(--p-border-radius-2);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 0.7rem; font-weight: 700;
}
.dash-title { font-size: var(--p-font-size-100); font-weight: 700; flex: 1; }
.dash-notif { font-size: 1rem; }
.dash-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--p-space-2); }
.dash-card { background: var(--p-color-bg); border-radius: var(--p-border-radius-2); padding: var(--p-space-3); border: 1px solid var(--p-color-border); }
.dark-card { background: var(--p-color-bg-inverse); color: white; border-color: transparent; }
.green-card { background: #F0FDF4; border-color: #BBF7D0; }
.lightblue-card { background: var(--p-color-bg-primary-subdued); border-color: #B3D0EE; }
.dc-label { font-size: 0.68rem; color: var(--p-color-text-secondary); margin-bottom: 3px; }
.dark-card .dc-label { color: #9CA3AF; }
.dc-val { font-size: var(--p-font-size-200); font-weight: 700; }
.dash-event {
  display: flex; gap: var(--p-space-2); align-items: center;
  background: var(--p-color-bg); padding: var(--p-space-2) var(--p-space-3);
  border-radius: var(--p-border-radius-2); border: 1px solid var(--p-color-border);
}
.ev-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.blue-dot { background: var(--primary); }
.ev-car { font-size: 0.75rem; font-weight: 700; }
.ev-client { font-size: 0.68rem; color: var(--p-color-text-secondary); }

/* Contract Mock */
.contract-mock { display: flex; flex-direction: column; gap: var(--p-space-2); }
.cm-badge {
  display: inline-block; background: #DCFCE7; color: var(--p-color-text-success);
  padding: 2px var(--p-space-2); border-radius: var(--p-border-radius-full);
  font-size: 0.68rem; font-weight: 700; width: fit-content;
}
.cm-num { font-size: var(--p-font-size-300); font-weight: 700; letter-spacing: -0.01em; }
.cm-client, .cm-car, .cm-period { font-size: var(--p-font-size-75); color: var(--p-color-text-secondary); }
.cm-price { font-weight: 700; font-size: var(--p-font-size-300); color: var(--p-color-text); }
.cm-paid { color: var(--p-color-text-success); font-weight: 500; font-size: var(--p-font-size-75); }
.cm-btn {
  background: var(--p-color-bg-inverse); color: white;
  padding: var(--p-space-2) var(--p-space-3);
  border-radius: var(--p-border-radius-2);
  font-size: 0.75rem; font-weight: 600; text-align: center; margin-top: auto;
}

/* Finance Mock */
.finance-mock { display: flex; flex-direction: column; gap: var(--p-space-2); }
.fm-title { font-size: var(--p-font-size-100); font-weight: 700; }
.fm-period { font-size: var(--p-font-size-75); color: var(--p-color-text-secondary); }
.fm-chart { flex: 1; }
.bar-wrap { display: flex; align-items: flex-end; gap: 3px; height: 90px; margin-bottom: 3px; }
.bar { flex: 1; background: var(--p-color-bg-primary-subdued); border-radius: 3px 3px 0 0; border: 1px solid rgba(var(--primary-rgb),0.15); }
.bar.peak { background: var(--primary); border-color: var(--primary-dark); }
.fm-months { font-size: 0.6rem; color: var(--p-color-text-disabled); }
.fm-total { font-size: var(--p-font-size-200); font-weight: 700; color: var(--p-color-text); }

/* ===== PREVIEW CAROUSEL ===== */
.preview-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--p-space-4);
  direction: ltr;
}
.preview-carousel {
  overflow: hidden;
  width: 100%;
  direction: ltr;
}
.preview-grid-4 {
  display: flex;
  gap: var(--p-space-5);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
  direction: ltr;
}
.preview-grid-4 .preview-card {
  flex: 0 0 calc(25% - 16px);
  min-width: calc(25% - 16px);
}
.prev-btn, .next-btn {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--p-color-border);
  background: var(--p-color-bg-surface);
  color: var(--p-color-text);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--p-shadow-200);
  transition: all 0.2s;
  z-index: 2;
}
.prev-btn:hover, .next-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.prev-btn:disabled, .next-btn:disabled { opacity: 0.3; cursor: default; }
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: var(--p-space-2);
  margin-top: var(--p-space-6);
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--p-color-border);
  cursor: pointer;
  transition: all 0.2s;
}
.carousel-dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}

@media (max-width: 1024px) {
  .preview-grid-4 .preview-card { flex: 0 0 calc(50% - 10px); min-width: calc(50% - 10px); }
}
@media (max-width: 640px) {
  .preview-grid-4 .preview-card { flex: 0 0 calc(100% - 0px); min-width: 100%; }
  .prev-btn, .next-btn { width: 32px; height: 32px; }
}

/* UI MOCK BASE */
.ui-mock {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #F5F5F7;
  min-height: 340px;
}
.ui-topbar {
  display: flex; align-items: center; gap: 6px;
  background: #111; padding: 8px 10px;
  direction: ltr;
}
.ui-logo-pill {
  width: 22px; height: 22px; border-radius: 5px;
  background: #22C55E; color: white;
  font-size: 0.55rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ui-page-title { font-size: 0.7rem; font-weight: 700; color: white; flex: 1; }
.ui-bell { position: relative; color: #9CA3AF; display: flex; }
.ui-bell-dot {
  position: absolute; top: -3px; right: -4px;
  background: #EF4444; color: white; font-size: 0.45rem; font-weight: 700;
  width: 12px; height: 12px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.ui-back, .ui-menu-dot { color: #9CA3AF; font-size: 0.8rem; cursor: pointer; }
.ui-menu-dot { font-size: 1rem; }

.ui-date-row { padding: 8px 10px 4px; background: white; direction: ltr; }
.ui-date { font-size: 0.78rem; font-weight: 700; color: #111; }
.ui-sub { font-size: 0.58rem; color: #6B7280; }

.ui-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px 6px; background: white; }
.ui-card { border-radius: 8px; padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.ui-dark { background: #111; }
.ui-green { background: #F0FDF4; border: 1px solid #BBF7D0; }
.ui-blue  { background: #EFF6FF; border: 1px solid #BFDBFE; }
.ui-gray  { background: #F3F4F6; border: 1px solid #E5E7EB; }
.ui-card-icon { width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: #9CA3AF; margin-bottom: 2px; }
.green-ic { background: #DCFCE7; color: #16A34A; }
.blue-ic  { background: #DBEAFE; color: var(--primary); }
.gray-ic  { background: #E5E7EB; color: #6B7280; }
.ui-card-label { font-size: 0.55rem; color: #9CA3AF; }
.ui-dark .ui-card-label { color: #6B7280; }
.ui-card-val { font-size: 0.82rem; font-weight: 700; color: #111; }
.ui-dark .ui-card-val { color: white; }
.ui-card-sub { font-size: 0.5rem; color: #9CA3AF; }
.ui-dark .ui-card-sub { color: #6B7280; }

.ui-event-row { display: flex; align-items: center; gap: 6px; padding: 6px 10px; background: white; border-top: 1px solid #F3F4F6; direction: ltr; }
.ui-event-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }
.orange-dot2 { background: #F97316; }
.ui-event-name { font-size: 0.62rem; font-weight: 700; color: #111; }
.ui-event-sub { font-size: 0.55rem; color: #6B7280; }
.ui-event-badge { margin-left: auto; background: #EFF6FF; color: var(--primary); font-size: 0.5rem; font-weight: 600; padding: 2px 6px; border-radius: 50px; white-space: nowrap; }

/* Contract mock */
.ui-contract-header { padding: 8px 10px 4px; background: white; direction: ltr; }
.active-badge { display: inline-block; background: #DCFCE7; color: #16A34A; font-size: 0.58rem; font-weight: 700; padding: 2px 8px; border-radius: 50px; margin-bottom: 3px; }
.ui-contract-id { font-size: 0.75rem; font-weight: 700; color: #111; }
.ui-modif { font-size: 0.55rem; color: #9CA3AF; font-weight: 400; }
.ui-client-row { display: flex; align-items: center; gap: 6px; padding: 6px 10px; background: white; border-top: 1px solid #F3F4F6; direction: ltr; }
.ui-avatar-big { width: 28px; height: 28px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.6rem; font-weight: 700; flex-shrink: 0; }
.ui-client-name { font-size: 0.68rem; font-weight: 700; color: #111; }
.ui-client-meta { display: flex; align-items: center; gap: 3px; font-size: 0.55rem; color: #6B7280; margin-top: 1px; }
.ui-created { margin-left: auto; font-size: 0.5rem; color: #9CA3AF; text-align: right; line-height: 1.4; }
.ui-vehicle-row { display: flex; align-items: center; gap: 5px; padding: 5px 10px; background: #F3F4F6; font-size: 0.62rem; font-weight: 600; color: #374151; direction: ltr; }
.ui-period-row { display: flex; justify-content: space-between; align-items: center; padding: 5px 10px; background: white; border-top: 1px solid #F3F4F6; direction: ltr; }
.ui-period-dates { font-size: 0.6rem; color: #374151; }
.ui-period-days { font-size: 0.6rem; font-weight: 700; color: var(--primary); }
.ui-payment-block { padding: 6px 10px; background: #EFF6FF; border-top: 1px solid #DBEAFE; direction: ltr; }
.ui-pay-row { display: flex; justify-content: space-between; font-size: 0.58rem; color: #374151; margin-bottom: 2px; }
.ui-pay-val { font-weight: 700; color: #111; }
.ui-pay-paid { font-weight: 700; color: #16A34A; }
.ui-pay-progress { height: 4px; background: #DBEAFE; border-radius: 2px; overflow: hidden; margin: 4px 0; }
.ui-pay-fill { height: 100%; background: #16A34A; border-radius: 2px; }
.ui-paid-label { font-size: 0.55rem; color: #16A34A; font-weight: 600; }
.ui-btn-row { display: flex; gap: 4px; padding: 6px 10px; background: white; border-top: 1px solid #F3F4F6; direction: ltr; }
.ui-btn-primary { flex: 1; background: #111; color: white; font-size: 0.58rem; font-weight: 700; padding: 5px; border-radius: 6px; text-align: center; }
.ui-btn-ghost { padding: 5px 10px; border: 1px solid #E5E7EB; border-radius: 6px; font-size: 0.58rem; font-weight: 600; color: #374151; }

/* Performance */
.ui-section-title { font-size: 0.65rem; font-weight: 700; color: #111; padding: 7px 10px 3px; background: white; direction: ltr; }
.ui-filter-row { display: flex; gap: 3px; padding: 4px 8px; background: white; border-bottom: 1px solid #F3F4F6; direction: ltr; overflow: hidden; }
.ui-filter { font-size: 0.5rem; padding: 2px 6px; border-radius: 50px; border: 1px solid #E5E7EB; color: #6B7280; white-space: nowrap; }
.active-filter { background: #111; color: white; border-color: #111; }
.ui-agent-card { padding: 6px 10px; background: white; border-top: 1px solid #F3F4F6; direction: ltr; }
.ui-agent-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2px; }
.ui-agent-name { font-size: 0.62rem; font-weight: 700; color: #111; }
.ui-agent-badge { background: #F3F4F6; font-size: 0.5rem; font-weight: 600; padding: 1px 5px; border-radius: 50px; color: #374151; }
.ui-agent-contrib { font-size: 0.55rem; color: #6B7280; margin-bottom: 3px; }
.ui-progress { height: 5px; border-radius: 3px; background: #F3F4F6; display: flex; overflow: hidden; margin-bottom: 3px; }
.ui-prog-green { background: #22C55E; height: 100%; }
.ui-prog-orange { background: #F97316; height: 100%; }
.ui-agent-amounts { display: flex; gap: 6px; }
.ui-paid { font-size: 0.5rem; color: #16A34A; }
.ui-rest { font-size: 0.5rem; color: #EA580C; }

/* Notifications */
.ui-notif { display: flex; align-items: center; gap: 7px; padding: 7px 10px; background: white; border-top: 1px solid #F3F4F6; direction: ltr; }
.ui-notif-icon { width: 26px; height: 26px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.green-ic2  { background: #DCFCE7; color: #16A34A; }
.blue-ic2   { background: #EFF6FF; color: var(--primary); }
.orange-ic2 { background: #FFF7ED; color: #EA580C; }
.ui-notif-body { flex: 1; }
.ui-notif-title { font-size: 0.62rem; font-weight: 700; color: #111; }
.ui-notif-sub { font-size: 0.55rem; color: #6B7280; }
.ui-notif-time { font-size: 0.5rem; color: #ABABAB; white-space: nowrap; }

/* Line chart mockup */
.ui-linechart { background: white; border: 1px solid #F3F4F6; margin: 6px 8px; border-radius: 8px; padding: 8px; direction: ltr; }
.ui-lc-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.ui-lc-title { font-size: 0.62rem; font-weight: 700; color: #111; }
.ui-lc-period { font-size: 0.5rem; color: #9CA3AF; }
.ui-lc-wrap { position: relative; }
.ui-lc-months { display: flex; justify-content: space-between; font-size: 0.38rem; color: #9CA3AF; margin-top: 2px; }
.ui-lc-summary { display: flex; align-items: center; gap: 3px; margin-top: 5px; flex-wrap: wrap; }
.ui-lc-rev    { font-size: 0.55rem; font-weight: 700; color: #22C55E; }
.ui-lc-dep    { font-size: 0.55rem; font-weight: 700; color: #EF4444; }
.ui-lc-profit { font-size: 0.58rem; font-weight: 700; color: #F97316; }
.ui-lc-sep    { font-size: 0.5rem; color: #9CA3AF; }
.ui-lc-legend { display: flex; align-items: center; gap: 4px; margin-top: 3px; justify-content: flex-end; }
.ui-leg-green { font-size: 0.48rem; color: #22C55E; font-weight: 600; }
.ui-leg-red   { font-size: 0.48rem; color: #EF4444; font-weight: 600; }
.ui-lc-vs     { font-size: 0.45rem; color: #9CA3AF; }

/* Top cars */
.ui-top-car {
  display: flex; align-items: center; gap: 6px;
  margin: 4px 8px; padding: 6px 8px;
  border-radius: 8px; border: 1px solid;
  direction: ltr;
}
.ui-top-rank {
  width: 22px; height: 22px; border-radius: 50%;
  font-size: 0.52rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: white;
}
.blue-rank   { background: #3B82F6; }
.green-rank  { background: #22C55E; }
.orange-rank { background: #F97316; }
.ui-top-info { flex: 1; }
.ui-top-name  { font-size: 0.6rem; font-weight: 700; color: #111; }
.ui-top-plate { font-size: 0.5rem; color: #9CA3AF; }
.ui-top-count { font-size: 0.65rem; font-weight: 700; text-align: right; line-height: 1.2; }
.ui-top-count span { font-size: 0.45rem; font-weight: 400; color: #9CA3AF; }
.blue-count   { color: #3B82F6; }
.green-count  { color: #22C55E; }
.orange-count { color: #F97316; }

/* Finance mockup */
.ui-barchart {
  display: flex;
  gap: 4px;
  padding: 8px 8px 0;
  background: white;
  height: 90px;
  direction: ltr;
}
.ui-bar-labels {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 0.45rem;
  color: #9CA3AF;
  padding-bottom: 14px;
  text-align: right;
  min-width: 10px;
}
.ui-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  flex: 1;
  padding-bottom: 14px;
  position: relative;
}
.ui-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  height: 100%;
}
.ui-bar-fill {
  width: 100%;
  border-radius: 2px 2px 0 0;
  min-height: 3px;
}
.ui-bar-name {
  font-size: 0.38rem;
  color: #9CA3AF;
  white-space: nowrap;
  transform: rotate(-45deg);
  transform-origin: top center;
  margin-top: 2px;
}
.ui-finance-card {
  background: white;
  border-top: 1px solid #F3F4F6;
  padding: 8px 10px;
  direction: ltr;
}
.ui-finance-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.ui-finance-title { font-size: 0.68rem; font-weight: 700; color: #111; }
.ui-finance-total { font-size: 0.65rem; font-weight: 700; color: #22C55E; }
.ui-donut-wrap { display: flex; justify-content: center; margin: 4px 0; }
.ui-legend { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.ui-legend-item { display: flex; align-items: center; gap: 5px; }
.ui-leg-dot { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }
.ui-leg-label { font-size: 0.55rem; font-weight: 600; color: #111; }
.ui-leg-val { font-size: 0.5rem; color: #6B7280; }

/* ===== PRICING ===== */
.pricing { padding: var(--p-space-24) 0; background: var(--p-color-bg-surface); }
.pricing .section-header { margin-bottom: var(--p-space-12); }

.launch-alert {
  display: inline-block;
  align-self: flex-start;
  padding: 6px 14px;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  color: #fff;
  font-size: var(--p-font-size-75);
  font-weight: var(--p-font-weight-bold);
  letter-spacing: 0.08em;
  border-radius: var(--p-border-radius-full);
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.35);
  animation: launchBlink 1.2s ease-in-out infinite;
}
@keyframes launchBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.97); }
}

/* Plan cards */
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--p-space-6);
  max-width: 880px;
  margin: 0 auto;
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--p-space-8);
  background: var(--p-color-bg-surface);
  border: 1px solid var(--p-color-border);
  border-radius: var(--p-border-radius-4);
  box-shadow: var(--p-shadow-100);
  color: var(--p-color-text);
  text-align: start;
}
.plan-featured {
  border: 2px solid var(--p-color-border-primary);
  box-shadow: var(--p-shadow-300);
}
.plan-ribbon {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: var(--p-space-1) var(--p-space-3);
  border-radius: var(--p-border-radius-full);
  background: var(--p-color-bg-primary);
  color: var(--p-color-text-inverse);
  font-size: var(--p-font-size-75);
  font-weight: var(--p-font-weight-medium);
  white-space: nowrap;
  box-shadow: var(--p-shadow-200);
}
.plan-name {
  margin: 0;
  font-size: var(--p-font-size-400);
  font-weight: var(--p-font-weight-bold);
  line-height: var(--p-line-height-2);
  color: var(--p-color-text);
}
.plan-tagline {
  margin-top: var(--p-space-1);
  font-size: var(--p-font-size-100);
  line-height: var(--p-line-height-3);
  color: var(--p-color-text-secondary);
}

.plan-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--p-space-1) var(--p-space-2);
  margin-top: var(--p-space-6);
}
.plan-amount {
  font-size: var(--p-font-size-800);
  font-weight: var(--p-font-weight-bold);
  line-height: var(--p-line-height-1);
  letter-spacing: -0.02em;
  color: var(--p-color-text);
}
.plan-unit {
  font-size: var(--p-font-size-200);
  font-weight: var(--p-font-weight-medium);
  color: var(--p-color-text-secondary);
}
.plan-sub {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--p-space-2);
  min-height: 24px;
  margin-top: var(--p-space-3);
  font-size: var(--p-font-size-100);
  color: var(--p-color-text-secondary);
}
.plan-save {
  display: inline-flex;
  align-items: center;
  padding: 2px var(--p-space-2);
  border-radius: var(--p-border-radius-full);
  background: var(--p-color-bg-success);
  color: var(--p-color-text-success);
  font-size: var(--p-font-size-75);
  font-weight: var(--p-font-weight-bold);
}

/* CTA uses the design-system .btn; this only adds spacing + arrow */
.plan-cta { margin-top: var(--p-space-6); }
.plan-cta svg { flex-shrink: 0; transition: transform 0.15s; }
.plan-cta:hover svg { transform: translateX(3px); }
[dir="rtl"] .plan-cta svg { transform: scaleX(-1); }
[dir="rtl"] .plan-cta:hover svg { transform: scaleX(-1) translateX(3px); }

.plan-body {
  flex: 1;
  margin-top: var(--p-space-6);
  padding-top: var(--p-space-6);
  border-top: 1px solid var(--p-color-border);
}
.plan-lead {
  margin-bottom: var(--p-space-3);
  font-size: var(--p-font-size-75);
  font-weight: var(--p-font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--p-color-text-secondary);
}
body[data-lang="ar"] .plan-lead { letter-spacing: 0; text-transform: none; font-size: var(--p-font-size-100); }
.plan-features { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--p-space-3); }
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--p-space-2);
  font-size: var(--p-font-size-100);
  line-height: var(--p-line-height-3);
  color: var(--p-color-text);
}
.plan-check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--p-color-bg-primary-subdued);
  color: var(--p-color-text-primary);
}

/* Reassurance strip */
.plans-assure {
  list-style: none;
  max-width: 880px;
  margin: var(--p-space-8) auto 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--p-space-3) var(--p-space-8);
}
.plans-assure li {
  display: inline-flex;
  align-items: center;
  gap: var(--p-space-2);
  font-size: var(--p-font-size-100);
  color: var(--p-color-text-secondary);
}
.plans-assure svg { flex-shrink: 0; color: var(--p-color-text-success); }

@media (max-width: 768px) {
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 460px; gap: var(--p-space-8); }
  .plans .plan-featured { order: -1; }
  .plan { padding: var(--p-space-6); }
  .plan-amount { font-size: var(--p-font-size-700); }
  .plans-assure { max-width: 460px; gap: var(--p-space-2) var(--p-space-5); margin-top: var(--p-space-6); }
}

/* ===== TESTIMONIALS ===== */
.testimonials { padding: var(--p-space-24) 0; background: var(--p-color-bg); }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--p-space-5); }
.testi-card {
  background: var(--p-color-bg-surface);
  border: 1px solid var(--p-color-border);
  border-radius: var(--p-border-radius-4);
  padding: var(--p-space-6);
  box-shadow: var(--p-shadow-100);
  display: flex; flex-direction: column; gap: var(--p-space-3);
  transition: all 0.2s;
}
.testi-card:hover { box-shadow: var(--p-shadow-400); transform: translateY(-3px); border-color: rgba(var(--primary-rgb),0.2); }
.testi-stars { font-size: var(--p-font-size-100); letter-spacing: 2px; }
.testi-card p { font-size: var(--p-font-size-100); color: var(--p-color-text); line-height: var(--p-line-height-4); }
.testi-author { display: flex; align-items: center; gap: var(--p-space-3); margin-top: auto; padding-top: var(--p-space-3); border-top: 1px solid var(--p-color-border); }
.testi-avatar {
  width: 38px; height: 38px; background: var(--primary); color: white;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: var(--p-font-size-75); flex-shrink: 0;
}
.testi-name { font-size: var(--p-font-size-100); font-weight: var(--p-font-weight-bold); }
.testi-loc { font-size: var(--p-font-size-75); color: var(--p-color-text-secondary); }

/* ===== CTA ===== */
.cta-section {
  background: var(--p-color-bg-inverse);
  padding: var(--p-space-24) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-inner { position: relative; z-index: 1; }
.cta-shapes { position: absolute; inset: 0; pointer-events: none; }
.cta-shape-1 { position: absolute; width: 400px; height: 400px; border-radius: 50%; background: rgba(var(--primary-rgb),0.12); top: -200px; right: -100px; }
.cta-shape-2 { position: absolute; width: 300px; height: 300px; border-radius: 50%; background: rgba(var(--primary-rgb),0.08); bottom: -150px; left: -50px; }
.cta-section h2 {
  font-size: clamp(var(--p-font-size-500), 3.5vw, var(--p-font-size-700));
  font-weight: var(--p-font-weight-bold);
  color: var(--p-color-text-inverse);
  line-height: var(--p-line-height-2);
  margin-bottom: var(--p-space-4);
  letter-spacing: -0.03em;
}
.cta-section p { color: #9CA3AF; font-size: var(--p-font-size-300); margin-bottom: var(--p-space-8); }

/* ===== CONTACT ===== */
.contact { padding: var(--p-space-24) 0; background: var(--p-color-bg-surface); }
.contact-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--p-space-16); align-items: center; }
.contact-info h2 {
  font-size: clamp(var(--p-font-size-500), 3vw, var(--p-font-size-600));
  font-weight: var(--p-font-weight-bold);
  line-height: var(--p-line-height-2);
  margin-bottom: var(--p-space-3);
  letter-spacing: -0.02em;
}
.contact-info p { color: var(--p-color-text-secondary); margin-bottom: var(--p-space-8); line-height: var(--p-line-height-4); }
.contact-methods { display: flex; flex-direction: column; gap: var(--p-space-4); }
.cm-item { display: flex; align-items: center; gap: var(--p-space-3); }
.cm-icon { font-size: 1.3rem; }
.cm-icon-svg {
  width: 40px; height: 40px;
  background: var(--p-color-bg-primary-subdued);
  border-radius: var(--p-border-radius-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  font-size: inherit;
}
.cm-label { font-size: var(--p-font-size-75); color: var(--p-color-text-secondary); font-weight: var(--p-font-weight-medium); }
.cm-val { font-size: var(--p-font-size-100); font-weight: var(--p-font-weight-bold); color: var(--p-color-text); }
/* Compact 2-column form: the whole form + Send button fit in one viewport */
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--p-space-3) var(--p-space-4);
  align-content: start;
  scroll-margin-top: 80px;
}
.contact-form .form-span { grid-column: 1 / -1; }
/* grid items default to min-width:auto - let the columns actually shrink */
.contact-inner > *, .contact-form .form-group { min-width: 0; }
.contact-form .form-group input,
.contact-form .form-group select,
.contact-form .form-group textarea { width: 100%; min-width: 0; padding: 9px var(--p-space-3); }
.contact-form .form-title { margin-bottom: 0; }
.contact-form textarea { min-height: 0; }
.contact-form .form-status { margin-top: 0; }
.form-title {
  font-size: var(--p-font-size-400);
  font-weight: var(--p-font-weight-bold);
  color: var(--p-color-text);
  margin-bottom: var(--p-space-2);
  line-height: var(--p-line-height-2);
}
.form-group { display: flex; flex-direction: column; gap: var(--p-space-1); }
.form-group label { font-size: var(--p-font-size-100); font-weight: var(--p-font-weight-medium); color: var(--p-color-text); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px var(--p-space-3);
  border: 1.5px solid var(--p-color-border);
  border-radius: var(--p-border-radius-2);
  font-size: var(--p-font-size-200);
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  background: var(--p-color-bg);
  color: var(--p-color-text);
  box-shadow: var(--p-shadow-100);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--p-color-border-primary);
  background: var(--p-color-bg-surface);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}
.form-status {
  min-height: 1.25em;
  margin-top: var(--p-space-2);
  font-size: var(--p-font-size-100);
  font-weight: var(--p-font-weight-medium);
  text-align: center;
}
.form-status.is-loading { color: var(--p-color-text-muted); }
.form-status.is-success { color: #16a34a; }
.form-status.is-error { color: #dc2626; }
.form-group textarea { resize: vertical; }

/* ===== FOOTER ===== */
.footer { background: var(--p-color-bg-inverse); color: var(--p-color-text-inverse); padding-top: var(--p-space-16); }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--p-space-16); padding-bottom: var(--p-space-10); }
.footer-brand .logo { color: white; margin-bottom: var(--p-space-3); }
.footer-brand p { font-size: var(--p-font-size-100); color: #6B7280; line-height: var(--p-line-height-4); }

.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: var(--p-space-10); }
.fl-col { display: flex; flex-direction: column; gap: var(--p-space-2); }
.fl-title { font-size: var(--p-font-size-75); font-weight: var(--p-font-weight-bold); text-transform: uppercase; letter-spacing: 0.08em; color: #6B7280; margin-bottom: var(--p-space-2); }
.fl-col a { font-size: var(--p-font-size-100); color: #9CA3AF; text-decoration: none; transition: color 0.15s; padding: 2px 0; }
.fl-col a:hover { color: white; }
/* App download section (Web / iOS / Android) */
.footer-apps { border-top: 1px solid rgba(255,255,255,0.06); padding: var(--p-space-8) 0; }
.footer-apps .container { display: flex; align-items: center; justify-content: space-between; gap: var(--p-space-6); flex-wrap: wrap; }
.fa-title { font-size: var(--p-font-size-300); font-weight: var(--p-font-weight-bold); color: #fff; margin-bottom: 4px; }
.fa-sub { font-size: var(--p-font-size-100); color: #9CA3AF; }
.fa-badges { display: flex; gap: var(--p-space-3); flex-wrap: wrap; }
.app-badge {
  display: inline-flex; align-items: center; gap: 10px;
  min-width: 172px; padding: 9px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: #fff; text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.app-badge:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.3); transform: translateY(-2px); }
.app-badge svg { flex-shrink: 0; }
.app-badge.ab-web svg { color: #60A5FA; }
.ab-text { display: flex; flex-direction: column; line-height: 1.2; }
.ab-small { font-size: 0.68rem; color: #9CA3AF; }
.ab-big { font-size: 1rem; font-weight: 600; }
@media (max-width: 768px) {
  .footer-apps .container { flex-direction: column; align-items: stretch; text-align: center; }
  .fa-badges { flex-direction: column; }
  .app-badge { justify-content: center; }
}
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding: var(--p-space-5) 0; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; font-size: var(--p-font-size-75); color: #6B7280; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-main { grid-column: span 2; }
  .hero-inner { gap: var(--p-space-10); }
  .phone-mockup { width: 220px; }
  .hero-iphone { width: 240px; }
  .hero-visual { perspective: 1100px; }
  .orbit-card { width: 132px; margin: -20px 0 0 -66px; font-size: 0.72rem; padding: 7px 12px; }
  @keyframes orbit-card-counter {
    from { transform: rotateY(var(--angle)) translateZ(190px) rotateY(calc(0deg - var(--angle))); }
    to   { transform: rotateY(var(--angle)) translateZ(190px) rotateY(calc(-360deg - var(--angle))); }
  }
  .card-scan { left: -40px; }
  .card-notif { right: -40px; }
  .card-revenue { left: -40px; }
}
@media (max-width: 768px) {
  .nav-inner { display: flex; height: 68px; padding-right: var(--p-space-6); }
  .nav-links, .nav-actions { display: none; }
  .navbar > .lang-btn { display: none; }
  .hamburger { display: block; }
  .hero { padding: 68px 0 var(--p-space-10); align-items: flex-start; }
  .hero-inner { display: flex; flex-direction: column; text-align: center; align-items: stretch; }
  .hero-inner > .badge-pill {
    order: 1;
    display: flex;
    width: auto;
    max-width: none;
    justify-self: stretch;
    margin: 0 calc(-1 * var(--p-space-6)) var(--p-space-5);
    padding: 12px var(--p-space-6);
    background: var(--green, #22C55E);
    color: #ffffff;
    border: none;
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.22);
    justify-content: center;
    white-space: normal;
    transition: none;
    font-size: 0.88rem;
  }
  .hero-inner > .badge-pill:hover { transform: none; }
  .hero-inner > .badge-pill .badge-tag {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    box-shadow: none;
  }
  .hero-inner > .badge-pill .badge-arrow { color: #ffffff; }
  .hero-inner > .badge-pill .badge-text {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    min-width: 0;
    flex: 1 1 auto;
    line-height: 1.3;
  }
  .hero-inner > .hero-title { order: 2; margin-bottom: 12px; text-align: center; font-size: clamp(2.1rem, 8.5vw, 3.1rem); }
  .hero-sub { font-size: 0.95rem; margin-bottom: var(--p-space-5); }
  .hero-cta { margin-bottom: var(--p-space-6); }
  .hero-visual { order: 3; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 16px; padding: 0; align-self: auto; }
  .hero-text { order: 4; }
  .phone-mockup { flex: none; width: min(240px, 78%); }
  .hero-iphone { flex: none; width: min(240px, 78%); }
  .hero-orbit-ring { display: block; }
  .orbit-card {
    width: 104px;
    margin: -15px 0 0 -52px;
    font-size: 0.62rem;
    padding: 5px 9px;
    gap: 6px;
    border-radius: 999px;
  }
  .orbit-card .orbit-icon { width: 20px; height: 20px; }
  .orbit-card .orbit-icon svg { width: 14px; height: 14px; }
  @keyframes orbit-card-counter {
    from { transform: rotateY(var(--angle)) translateZ(120px) rotateY(calc(0deg - var(--angle))); }
    to   { transform: rotateY(var(--angle)) translateZ(120px) rotateY(calc(-360deg - var(--angle))); }
  }
  .stat-num { font-size: 1.3rem; }
  .stat-label { font-size: 0.62rem; }
  .stat-card { padding: 10px 8px; }
  .floating-card { position: relative; inset: auto; flex: 0 0 calc(50% - 5px); padding: 8px 10px; }
  .fc-icon { width: 28px; height: 28px; }
  .floating-card svg { width: 16px; height: 16px; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .features-grid { grid-template-columns: 1fr; }
  .feat-main { grid-column: span 1; }
  .steps {
    grid-template-columns: 1fr;
    gap: var(--p-space-4);
    padding-left: var(--p-space-4);
    padding-right: var(--p-space-4);
  }
  .step { padding: 1rem; border-color: rgba(255,255,255,0.14); }
  .feature-card { padding: 1rem; }
  .step h3 { font-size: var(--p-font-size-300); }
  .step-arrow { display: none; }
  /* Features section becomes a horizontal swipe carousel on mobile.
     Stays INSIDE the container (no negative margin escape) so the
     container's 24px + grid's own 16px = ~40px breathing room on each
     side of the visible card. */
  .features-grid {
    display: flex;
    grid-template-columns: none;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    gap: var(--p-space-4);
    margin: 0;
    padding: 4px var(--p-space-4) var(--p-space-4);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .features-grid::-webkit-scrollbar { display: none; }
  .feature-card {
    flex: 0 0 100%;
    max-width: 360px;
    scroll-snap-align: center;
  }
  .feat-main { grid-column: auto; }
  .preview-grid, .testi-grid { grid-template-columns: 1fr; }
  .features, .how, .pricing { padding: var(--p-space-12) 0 var(--p-space-16); }
  .features .section-header,
  .how .section-header,
  .pricing .section-header { margin-bottom: var(--p-space-8); }
  .features .section-header h2,
  .how .section-header h2,
  .pricing .section-header h2 { font-size: clamp(1.7rem, 7vw, 2.3rem); margin-bottom: var(--p-space-2); }
  .features .section-header p,
  .how .section-header p,
  .pricing .section-header p { font-size: 0.95rem; }
  .trust { padding: var(--p-space-10) 0 var(--p-space-12); }
  .trust .section-header { margin-bottom: var(--p-space-6); }
  .trust .section-header h2 { font-size: clamp(1.6rem, 6.5vw, 2.1rem); margin-bottom: var(--p-space-2); }
  .preview .section-header h2 { font-size: clamp(2.1rem, 8.5vw, 3.1rem); margin-bottom: var(--p-space-2); }
  .trust .section-header p,
  .preview .section-header p { font-size: 0.95rem; }
  .preview-tagline { font-size: clamp(2.3rem, 9vw, 3.5rem); margin-top: var(--p-space-3); }
  .preview { padding: var(--p-space-12) 0 var(--p-space-16); }
  .preview .section-header { margin-bottom: var(--p-space-8); }
  .contact-inner { grid-template-columns: 1fr; gap: var(--p-space-8); }
  .contact { padding: var(--p-space-10) 0 var(--p-space-12); }
  .contact-info p { margin-bottom: var(--p-space-5); }
  .contact-form { gap: 10px 12px; }
  .contact-form .form-title { font-size: 1.05rem; }
  .contact-form .form-group label { font-size: 0.82rem; }
  .contact-form .form-group input,
  .contact-form .form-group select,
  .contact-form .form-group textarea { padding: 9px 11px; }
  .contact-form .btn { padding: 13px 18px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-bottom .container { flex-direction: column; gap: var(--p-space-2); text-align: center; }
}
@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
}

/* ===== FLOATING ACTION ROW ===== */
.float-actions {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 12px;
}
.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--p-color-text);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.float-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.22);
}
.float-btn.float-ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); color: #fff; }
.float-btn.float-fb { background: #1877F2; color: #fff; }

.wa-float {
  background: #25D366;
  color: white;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  animation: wa-pulse 2.5s ease-in-out infinite;
}
.wa-float:hover {
  background: #20BA5A;
  box-shadow: 0 8px 28px rgba(37,211,102,0.5);
}
@keyframes wa-pulse {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50%      { box-shadow: 0 4px 32px rgba(37,211,102,0.7); }
}

/* ===== HEADER LANGUAGE BUTTON ===== */
.lang-btn {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  border: 1.5px solid #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.lang-btn:hover {
  background: #1a1a1a;
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.lang-btn .lang-flag { font-size: 1.15rem; line-height: 1; }
.lang-btn .lang-current { display: none; }

/* In the mobile menu the button stretches and shows the language name */
.lang-btn-mobile {
  position: static;
  transform: none;
  width: 100%;
  height: auto;
  border-radius: 999px;
  padding: 10px 16px;
  gap: 10px;
  font-size: var(--p-font-size-200);
  font-weight: 600;
}
.lang-btn-mobile:hover { transform: none; }
.lang-btn-mobile .lang-current { display: inline; }

@media (max-width: 480px) {
  .float-actions { bottom: 16px; right: 16px; gap: 8px; }
  .float-btn { width: 44px; height: 44px; }
  .float-btn svg { width: 22px; height: 22px; }
  .wa-float svg { width: 22px; height: 22px; }
}

/* ===== STICKY MOBILE CTA ===== */
.cta-sticky {
  display: none;
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: 999;
  background: var(--p-color-bg-primary);
  color: var(--p-color-text-inverse);
  padding: 12px 18px;
  border-radius: var(--p-border-radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.4);
  transition: all 0.2s;
}
.cta-sticky:hover {
  background: var(--p-color-bg-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(var(--primary-rgb), 0.5);
}
@media (max-width: 768px) {
  .cta-sticky { display: inline-flex; align-items: center; }
  body.form-in-view .cta-sticky,
  body.form-in-view .float-actions { opacity: 0; pointer-events: none; }
}
.cta-sticky, .float-actions { transition: opacity 0.25s ease; }

/* ===== SCROLL ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
