/* -----------------------------------------------------------------------------
 * CoffeeOS Marketing Site — Design System & Stylesheet
 * Strictly following MARKETING-SITE-BRIEF.md & DESIGN.md
 * Arabic-first (RTL) with full English (LTR) logical layout support
 * Fonts are loaded via <link> in index.html <head> for faster first paint.
 * ----------------------------------------------------------------------------- */

:root {
  /* Core Brand Tokens */
  --coffee: #2F221E;        /* Deep rich coffee — primary text & dark surfaces */
  --coffee-soft: #3B2A24;   /* Lighter coffee for elevated dark cards */
  --coffee-dark: #1F1614;   /* Deepest espresso for footer & night cards */
  --orange: #EB5728;        /* High-energy terracotta orange — CTA & highlights */
  --orange-600: #D8471C;    /* Deeper orange on hover */
  --orange-50: #FFF3EF;     /* Subtle orange tint background */
  --canvas: #FBF7F2;        /* Warm off-white background (Never pure #FFF) */
  --card: #FFFFFF;          /* Pure white for foreground card surfaces */
  --card-subtle: #F6EFE9;   /* Subtle tinted card surface */
  --ink-muted: #7A6C64;     /* Secondary muted text */
  --ink-light: #A3968F;     /* Subtle placeholder / border text */
  --line: #EFE7DF;          /* Soft divider & border lines */
  --line-subtle: #F3ECE5;   /* Ultra-soft border */
  --success: #16A34A;       /* Positive / Ready order badge */
  --success-bg: #DCFCE7;    /* Light green badge bg */
  --brand-ink: #1A1A1A;     /* Dark text on orange background for WCAG AA contrast */

  /* Typography */
  --font-ar: 'Cairo', system-ui, -apple-system, sans-serif;
  --font-en: 'Inter', system-ui, -apple-system, sans-serif;
  --font-sans: var(--font-ar);

  /* Elevation Shadows (Soft & realistic, no harsh black shadows) */
  --shadow-e1: 0 2px 8px rgba(47, 34, 30, 0.05), 0 1px 2px rgba(47, 34, 30, 0.04);
  --shadow-e2: 0 12px 32px rgba(47, 34, 30, 0.08), 0 4px 12px rgba(47, 34, 30, 0.04);
  --shadow-e3: 0 24px 48px rgba(47, 34, 30, 0.12), 0 8px 24px rgba(47, 34, 30, 0.06);
  --shadow-orange: 0 8px 24px rgba(235, 87, 40, 0.25);

  /* Radii */
  --radius-sm: 0.5rem;    /* 8px */
  --radius-md: 0.75rem;   /* 12px - buttons */
  --radius-lg: 1rem;      /* 16px - standard cards */
  --radius-xl: 1.5rem;    /* 24px - hero cards & sections */
  --radius-full: 9999px;  /* Pills & badges */

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;
}

/* LTR override */
html[dir="ltr"] {
  --font-sans: var(--font-en), var(--font-ar);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--canvas);
  color: var(--coffee);
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
  color: var(--coffee);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 4.5vw + 1rem, 3.75rem);
  font-weight: 900;
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.75rem, 3vw + 0.75rem, 2.5rem);
  font-weight: 800;
}

h3 {
  font-size: clamp(1.25rem, 1.5vw + 0.5rem, 1.5rem);
  font-weight: 700;
}

p {
  color: var(--ink-muted);
  font-size: 1.0625rem;
  font-weight: 500;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

button, input, select {
  font: inherit;
}

/* Accessibility Focus Ring */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 768px) {
  .container {
    padding-inline: 2rem;
  }
}

/* Section Spacing */
.section {
  padding-block: 5rem;
  position: relative;
}

@media (min-width: 1024px) {
  .section {
    padding-block: 6.5rem;
  }
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background-color: var(--orange-50);
  color: var(--orange-600);
  border: 1px solid rgba(235, 87, 40, 0.15);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--ink-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.8125rem 1.625rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out),
              background-color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
  text-decoration: none;
  min-height: 48px; /* Touch target >= 44px */
  user-select: none;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

/* Primary CTA Button — Text MUST be dark #1A1A1A for WCAG AA compliance on #EB5728 */
.btn-primary {
  background-color: var(--orange);
  color: var(--brand-ink);
  font-weight: 800;
  box-shadow: var(--shadow-orange);
}

.btn-primary:hover {
  background-color: var(--orange-600);
  color: var(--brand-ink);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(235, 87, 40, 0.35);
}

.btn-secondary {
  background-color: var(--card);
  color: var(--coffee);
  border-color: var(--line);
  box-shadow: var(--shadow-e1);
}

.btn-secondary:hover {
  background-color: var(--canvas);
  border-color: var(--coffee-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow-e2);
}

.btn-ghost {
  background-color: transparent;
  color: var(--coffee);
}

.btn-ghost:hover {
  background-color: rgba(47, 34, 30, 0.05);
}

.btn-outline-white {
  background-color: transparent;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #FFFFFF;
  color: #FFFFFF;
}

.btn-whatsapp {
  background-color: #25D366;
  color: #0A3618;
  font-weight: 800;
}

.btn-whatsapp:hover {
  background-color: #20BA5A;
  color: #0A3618;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

/* Header & Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-block: 1.125rem;
  transition: background-color var(--duration-normal) var(--ease-out),
              padding-block var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out),
              backdrop-filter var(--duration-normal) var(--ease-out);
}

.navbar.scrolled {
  background-color: rgba(251, 247, 242, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-e1);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 900;
  font-size: 1.35rem;
  color: var(--coffee);
}

.brand-logo svg {
  width: 32px;
  height: 32px;
}

.brand-logo span b {
  color: var(--orange);
}

.nav-menu {
  display: none;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

@media (min-width: 960px) {
  .nav-menu {
    display: flex;
  }
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--coffee);
  transition: color var(--duration-fast) var(--ease-out);
  position: relative;
  padding-block: 0.25rem;
}

.nav-link:hover {
  color: var(--orange);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--coffee);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

.lang-toggle:hover {
  border-color: var(--coffee);
  background: var(--canvas);
}

.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--coffee);
  cursor: pointer;
}

@media (min-width: 960px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(85vw, 360px);
  background: var(--card);
  z-index: 101;
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-e3);
  transform: translateX(100%);
  transition: transform var(--duration-normal) var(--ease-out);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

html[dir="ltr"] .mobile-drawer {
  right: auto;
  left: 0;
  transform: translateX(-100%);
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(47, 34, 30, 0.4);
  backdrop-filter: blur(4px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.mobile-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.drawer-link {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--coffee);
  display: block;
}

/* Hero Section */
.hero {
  padding-top: 8.5rem;
  padding-bottom: 5rem;
  overflow: hidden;
  position: relative;
}

.hero-blob {
  position: absolute;
  top: -10%;
  inset-inline-end: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(235, 87, 40, 0.08) 0%, rgba(47, 34, 30, 0.03) 70%, transparent 100%);
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-title {
  color: var(--coffee);
}

.hero-title .highlight {
  color: var(--orange);
  position: relative;
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(1.0625rem, 1.2vw + 0.5rem, 1.25rem);
  line-height: 1.6;
  max-width: 540px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding-top: 0.5rem;
}

.hero-trust-bullets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.trust-bullet {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--coffee);
}

.trust-bullet svg {
  color: var(--success);
  flex-shrink: 0;
}

/* Hero Mockup Phone Container */
.hero-mockup-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.mock-phone {
  width: 100%;
  max-width: 380px;
  background: var(--card);
  border: 8px solid var(--coffee);
  border-radius: 40px;
  padding: 1.25rem;
  box-shadow: var(--shadow-e3);
  position: relative;
  animation: heroFloat 6s ease-in-out infinite alternate;
}

@keyframes heroFloat {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-8px); }
}

.phone-notch {
  width: 120px;
  height: 18px;
  background: var(--coffee);
  border-radius: 0 0 12px 12px;
  margin: -1.25rem auto 1rem;
}

.phone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1rem;
}

.cafe-brand-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 0.9375rem;
  color: var(--coffee);
}

.table-tag {
  background: var(--canvas);
  border: 1px solid var(--line);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.phone-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.phone-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  background: var(--canvas);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}

.item-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.item-icon-box {
  width: 38px;
  height: 38px;
  background: #EFE4DC;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.item-name {
  font-weight: 700;
  font-size: 0.875rem;
}

.item-price {
  font-size: 0.75rem;
  color: var(--orange-600);
  font-weight: 800;
}

.live-order-badge {
  position: absolute;
  bottom: -20px;
  inset-inline-start: 10px;
  background: var(--coffee);
  color: #FFFFFF;
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-e3);
  display: flex;
  align-items: center;
  gap: 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  animation: pulseCard 3s infinite ease-in-out;
}

@keyframes pulseCard {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.3);
}

/* Trust Bar / Stats (Section 2) */
.trust-bar {
  background: var(--coffee);
  color: #FFFFFF;
  padding-block: 3.5rem;
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
  }
}

.stat-card {
  text-align: center;
}

.stat-number {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900;
  color: var(--orange);
  line-height: 1.1;
  margin-bottom: 0.35rem;
  font-family: var(--font-en), var(--font-ar);
}

.stat-label {
  font-size: 0.9375rem;
  color: #D1C5BD;
  font-weight: 600;
}

/* How It Works (Section 3) */
.steps-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  position: relative;
}

@media (min-width: 768px) {
  .steps-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

.step-card {
  background: var(--card);
  padding: 2.25rem 1.75rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-e1);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-e2);
}

.step-badge {
  width: 48px;
  height: 48px;
  background: var(--orange-50);
  color: var(--orange);
  border: 1px solid rgba(235, 87, 40, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 900;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 800;
}

.step-desc {
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

/* Features Grid (Section 4) */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-e1);
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-e2);
}

.feature-card.span-2 {
  grid-column: span 1;
}

@media (min-width: 1024px) {
  .feature-card.span-2 {
    grid-column: span 2;
    background: linear-gradient(135deg, #FFFFFF 0%, #FAF5EF 100%);
  }
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: var(--coffee);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 800;
}

.feature-desc {
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

/* Interactive Live Demo Section (Section 5Showpiece) */
.demo-section {
  background: var(--coffee-dark);
  color: #FFFFFF;
  padding-block: 6rem;
  overflow: hidden;
}

.demo-section .section-header .section-title {
  color: #FFFFFF;
}

.demo-section .section-header .section-subtitle {
  color: #D1C5BD;
}

.demo-arena {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  background: #17100E;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-e3);
}

@media (min-width: 1024px) {
  .demo-arena {
    grid-template-columns: 360px 1fr;
    padding: 2.25rem;
    gap: 2.5rem;
  }
}

/* Demo Customer Side */
.demo-customer-pane {
  background: var(--card);
  color: var(--coffee);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pane-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  background: var(--orange-50);
  color: var(--orange-600);
}

.demo-menu-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.demo-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--canvas);
}

.item-details h4 {
  font-size: 0.875rem;
  font-weight: 700;
}

.item-details span {
  font-size: 0.75rem;
  color: var(--orange-600);
  font-weight: 800;
}

.btn-add-item {
  background: var(--orange);
  color: var(--brand-ink);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-out);
}

.btn-add-item:active {
  transform: scale(0.95);
}

.demo-cart-box {
  border-top: 1px dashed var(--line);
  padding-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cart-summary {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 0.875rem;
}

/* Demo POS Kanban Side */
.demo-pos-pane {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pos-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.75rem;
}

.pos-status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #4ADE80;
  font-weight: 700;
}

.pos-kanban-board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .pos-kanban-board {
    grid-template-columns: repeat(3, 1fr);
  }
}

.kanban-col {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 0.875rem;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.col-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #D1C5BD;
}

.col-count {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
}

/* Live Order Card in Kanban */
.kanban-order-card {
  background: #251B18;
  border: 1px solid var(--orange);
  border-radius: var(--radius-md);
  padding: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 4px 16px rgba(235, 87, 40, 0.2);
  transition: all var(--duration-slow) var(--ease-out);
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 800;
}

.eta-ticker-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(235, 87, 40, 0.15);
  color: var(--orange);
  border: 1px solid rgba(235, 87, 40, 0.3);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  font-family: var(--font-en), var(--font-ar);
}

.order-card-items {
  font-size: 0.8125rem;
  color: #E6DCD5;
  line-height: 1.4;
}

.order-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.btn-pos-action {
  flex: 1;
  padding: 0.4rem;
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-start-prep {
  background: var(--orange);
  color: var(--brand-ink);
}

.btn-mark-ready {
  background: var(--success);
  color: #FFFFFF;
}

/* Dual Experience Tabs (Section 6) */
.tabs-control {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.tab-btn {
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  background: var(--card);
  color: var(--ink-muted);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

.tab-btn.active {
  background: var(--coffee);
  color: #FFFFFF;
  border-color: var(--coffee);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .tab-pane.active {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }
}

.tab-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tab-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.tab-feature-icon {
  width: 36px;
  height: 36px;
  background: var(--orange-50);
  color: var(--orange-600);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

/* White-Label Interactive Section (Section 7) */
.theming-arena {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .theming-arena {
    grid-template-columns: 1fr 1fr;
  }
}

.swatches-box {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.swatch-btn {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 1.125rem;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius-full);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.875rem;
  transition: all var(--duration-fast) var(--ease-out);
}

.swatch-btn.active {
  border-color: var(--coffee);
  box-shadow: var(--shadow-e2);
}

.swatch-color-pill {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.theming-preview-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-e2);
  transition: all var(--duration-normal) var(--ease-out);
}

/* Analytics Mockup (Section 8) */
.analytics-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-e2);
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .kpi-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

.kpi-box {
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.kpi-label {
  font-size: 0.75rem;
  color: var(--ink-muted);
  font-weight: 600;
}

.kpi-val {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--coffee);
  margin-top: 0.25rem;
}

/* Pricing Section (Section 9) */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pricing-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-e1);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-e3);
}

.pricing-card.featured {
  border: 2px solid var(--orange);
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF8F5 100%);
  box-shadow: var(--shadow-e2);
}

.popular-badge {
  position: absolute;
  top: -14px;
  inset-inline-end: 24px;
  background: var(--orange);
  color: var(--brand-ink);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-orange);
}

.pricing-tier {
  font-size: 1.35rem;
  font-weight: 900;
}

.pricing-price {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--coffee);
  margin-block: 1rem;
}

.pricing-price span {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  font-weight: 500;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-block: 1.5rem;
  flex-grow: 1;
}

.pricing-feature-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--coffee);
}

.pricing-feature-item svg {
  color: var(--success);
  flex-shrink: 0;
}

/* Comparison Matrix Table */
.matrix-wrapper {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow-x: auto;
  box-shadow: var(--shadow-e1);
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: start;
}

.matrix-table th, .matrix-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}

.matrix-table th {
  background: var(--canvas);
  font-weight: 800;
  color: var(--coffee);
}

.matrix-table tr:hover td {
  background: rgba(251, 247, 242, 0.5);
}

/* Testimonials (Section 10) */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-e1);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.testimonial-text {
  font-size: 1rem;
  color: var(--coffee);
  line-height: 1.6;
  font-weight: 500;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-top: auto;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #EFE4DC;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--coffee);
}

.author-meta h4 {
  font-size: 0.9375rem;
  font-weight: 800;
}

.author-meta p {
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

/* FAQ Accordion (Section 11) */
.faq-container {
  max-width: 800px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-e1);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  text-align: start;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--coffee);
  cursor: pointer;
}

.faq-trigger svg {
  transition: transform var(--duration-normal) var(--ease-out);
  color: var(--orange);
  flex-shrink: 0;
}

.faq-item.open .faq-trigger svg {
  transform: rotate(180deg);
}

.faq-content {
  display: none;
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

.faq-item.open .faq-content {
  display: block;
}

/* Final Big CTA (Section 12) */
.cta-banner {
  background: var(--coffee);
  color: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-e3);
}

.cta-banner-content {
  max-width: 680px;
  margin-inline: auto;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.cta-banner h2 {
  color: #FFFFFF;
}

.cta-banner p {
  color: #D1C5BD;
  font-size: 1.125rem;
}

.cta-banner-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* Footer (Section 13) */
.footer {
  background: var(--coffee-dark);
  color: #D1C5BD;
  padding-top: 4.5rem;
  padding-bottom: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr repeat(3, 1fr);
  }
}

.footer-brand h3 {
  color: #FFFFFF;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  color: #A3968F;
  font-size: 0.875rem;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 0.9375rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-link {
  font-size: 0.875rem;
  color: #A3968F;
  transition: color var(--duration-fast) var(--ease-out);
}

.footer-link:hover {
  color: var(--orange);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
  color: #7A6C64;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

/* Floating WhatsApp Button */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  z-index: 99;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: transform var(--duration-fast) var(--ease-out);
}

.floating-whatsapp:hover {
  transform: scale(1.1);
}

/* Trust-bar honest badges (icon + short headline, no fabricated numbers) */
.stat-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: rgba(235, 87, 40, 0.12);
  border: 1px solid rgba(235, 87, 40, 0.22);
}
.stat-number--text {
  font-size: clamp(1.15rem, 2.1vw, 1.5rem);
  font-family: var(--font-ar);
}

/* "Powered by Datagris" footer badge */
.powered-by {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #D1C5BD;
  font-size: 0.8125rem;
  font-weight: 700;
  transition: border-color var(--duration-normal) var(--ease-out), color var(--duration-normal) var(--ease-out);
}
.powered-by strong { color: #FFFFFF; }
.powered-by:hover { border-color: var(--orange); color: #FFFFFF; }

/* Scroll reveal — elements rise + fade as they enter the viewport (JS toggles .in-view) */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* Navbar underline that grows on hover + marks the active section */
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  inset-inline-start: 0;
  height: 2px;
  width: 0;
  border-radius: 2px;
  background: var(--orange);
  transition: width var(--duration-normal) var(--ease-out);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}
.nav-link.active {
  color: var(--orange);
}

/* Living detail: the ETA clock icon breathes (functional, signals "live") */
@keyframes etaTick {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.9); }
}
.eta-clock { animation: etaTick 1.7s ease-in-out infinite; transform-origin: center; }

/* Buttons settle on press for a tactile feel */
.btn:active { transform: translateY(1px) scale(0.985); }

/* Motion & Animation Respect (CRITICAL RULE) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}
