/* =========================================================
   Lu-mino — Marketing Site Stylesheet
   Brand: deep navy + soft blue + purple, white background
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Brand colors */
  --navy-900: #0A1736;
  --navy-800: #0F1E47;
  --navy-700: #16285A;
  --blue-600: #2E6BFF;
  --blue-500: #4F8BFF;
  --blue-400: #7AA8FF;
  --blue-100: #E8F0FF;
  --blue-50:  #F4F8FF;
  --purple-600: #7B5CFF;
  --purple-500: #9277FF;
  --purple-100: #EFEAFF;

  --text-900: #0A1736;
  --text-700: #2C3858;
  --text-500: #5A6786;
  --text-400: #8390AB;

  --surface: #FFFFFF;
  --surface-alt: #F7F9FD;
  --surface-soft: #FBFCFE;
  --border: #E5EAF3;
  --border-strong: #D5DDEC;

  --success: #16A34A;
  --warning: #D97706;
  --danger:  #DC2626;

  /* Gradients */
  --grad-hero:    linear-gradient(135deg, #F4F8FF 0%, #EFEAFF 50%, #FFFFFF 100%);
  --grad-brand:   linear-gradient(135deg, #2E6BFF 0%, #7B5CFF 100%);
  --grad-brand-soft: linear-gradient(135deg, #E8F0FF 0%, #EFEAFF 100%);
  --grad-dark:    linear-gradient(135deg, #0A1736 0%, #16285A 100%);
  --grad-accent:  linear-gradient(135deg, #4F8BFF 0%, #9277FF 100%);

  /* Effects */
  --shadow-sm:  0 1px 2px rgba(15, 30, 71, 0.06);
  --shadow-md:  0 6px 18px rgba(15, 30, 71, 0.08);
  --shadow-lg:  0 20px 40px rgba(15, 30, 71, 0.10);
  --shadow-xl:  0 30px 60px rgba(15, 30, 71, 0.14);
  --shadow-glow: 0 20px 50px rgba(123, 92, 255, 0.25);

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-2xl: 32px;
  --r-pill: 999px;

  /* Spacing scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;

  /* Layout */
  --container: 1200px;
  --container-narrow: 960px;

  /* Type */
  --ff-sans: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --ff-display: "Inter", "Segoe UI", system-ui, sans-serif;
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-700);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--blue-600); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--purple-600); }

h1, h2, h3, h4, h5 {
  font-family: var(--ff-display);
  color: var(--text-900);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 var(--s-4);
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 var(--s-4); }

ul, ol { margin: 0 0 var(--s-4); padding-left: 1.2rem; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-5);
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--s-5);
}

.section { padding: var(--s-9) 0; }
.section-sm { padding: var(--s-7) 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-600);
  background: var(--blue-100);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  margin-bottom: var(--s-4);
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto var(--s-7);
}
.section-head p { color: var(--text-500); font-size: 1.08rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  font-family: var(--ff-sans);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { color: #fff; box-shadow: 0 24px 60px rgba(123,92,255,.35); }
.btn-secondary {
  background: #fff;
  color: var(--navy-800);
  border-color: var(--border-strong);
}
.btn-secondary:hover { color: var(--navy-800); border-color: var(--blue-500); }
.btn-ghost {
  background: transparent;
  color: var(--navy-800);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--blue-50); color: var(--navy-800); }
.btn-dark {
  background: var(--navy-800);
  color: #fff;
}
.btn-dark:hover { color: #fff; background: var(--navy-900); }
.btn-whatsapp {
  background: #25D366;
  color: #fff;
}
.btn-whatsapp:hover { color: #fff; background: #1ebe5b; }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }
.btn-lg { padding: 16px 28px; font-size: 1rem; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(229, 234, 243, 0.7);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: var(--s-5);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  font-family: "Fredoka", "Inter", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--navy-900);
  letter-spacing: -0.015em;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  padding: 4px 2px;
  border-radius: var(--r-pill);
  transition: transform .2s ease;
}
.brand:hover { color: var(--navy-900); transform: translateY(-1px); }

/* The wordmark — keep Lu + mascot + mino as one row, never wrap.
   Clean two-tone gradient flowing into the mascot center. */
.brand > span {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  background: linear-gradient(90deg,
    var(--navy-900) 0%,
    var(--blue-600) 40%,
    var(--purple-600) 50%,
    var(--blue-600) 60%,
    var(--navy-900) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1;
  font-family: "Fredoka", "Inter", system-ui, sans-serif;
}
.brand > span.brand-latin {
  font-family: "Fredoka", "Inter", system-ui, sans-serif;
  direction: ltr; /* Latin wordmark stays LTR even on RTL pages */
}
/* Legacy "L" badge — replaced by inline .brand-mascot between Lu and mino.
   Kept hidden defensively in case any page still has the old span. */
.brand .logo-mark { display: none; }

/* Inline mascot character between "Lu" and "mino" in the wordmark. */
.brand-mascot {
  display: inline-block;
  width: 44px;
  height: 44px;
  background: url('sawa-app-icon.png') center 28% / cover no-repeat #E8F0FF;
  border-radius: 50%;
  margin: 0 3px;
  border: 2px solid #fff;
  box-shadow:
    0 4px 14px rgba(46, 107, 255, 0.28),
    0 0 0 1px rgba(46, 107, 255, 0.15);
  flex-shrink: 0;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.brand:hover .brand-mascot {
  transform: scale(1.08) rotate(-5deg);
}

/* Header refined */
.nav { padding: 14px 0; gap: var(--s-4); }

/* Nav link polish — clean hover pill + active state */
.nav-links { gap: var(--s-3); }
.nav-links a {
  padding: 8px 12px;
  border-radius: var(--r-pill);
  transition: color .18s ease, background .18s ease;
  position: relative;
}
.nav-links a:hover {
  background: var(--blue-50);
  color: var(--navy-900);
}
.nav-links .menu-trigger { padding-right: 18px; }
[dir="rtl"] .nav-links .menu-trigger { padding-right: 12px; padding-left: 18px; }

@media (max-width: 1024px) {
  .brand { font-size: 1.3rem; }
  .brand-mascot { width: 38px; height: 38px; }
  .nav-links { gap: var(--s-2); }
  .nav-links a { padding: 8px 10px; font-size: 0.9rem; }
}
@media (max-width: 720px) {
  .brand { font-size: 1.2rem; }
  .brand-mascot { width: 34px; height: 34px; border-width: 1.5px; }
}
.brand:hover { color: var(--navy-900); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: var(--text-700);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 4px;
}
.nav-links a:hover { color: var(--navy-900); }
.nav-links li.has-menu { position: relative; }
.nav-links .menu-trigger::after {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin-left: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  vertical-align: middle;
  opacity: .6;
}
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 280px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.has-menu:hover .dropdown,
.has-menu.is-open .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--r-md);
  color: var(--text-700);
}
.dropdown a:hover { background: var(--blue-50); color: var(--navy-900); }
.dropdown .dd-title { font-weight: 600; color: var(--navy-900); }
.dropdown .dd-sub { display: block; font-size: 0.82rem; color: var(--text-500); margin-top: 2px; }

/* Wide Products dropdown — Software / Hardware columns */
.dropdown-wide {
  min-width: 520px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 14px;
}
.dropdown-wide .dd-section h6 {
  margin: 4px 10px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-400);
}
.dropdown-wide .dd-section a { padding: 10px 12px; }
.dropdown-wide .dd-section + .dd-section {
  border-left: 1px solid var(--border);
}
[dir="rtl"] .dropdown-wide .dd-section + .dd-section {
  border-left: none;
  border-right: 1px solid var(--border);
}
@media (max-width: 880px) {
  .dropdown-wide {
    min-width: 0;
    grid-template-columns: 1fr;
    padding: 8px;
  }
  .dropdown-wide .dd-section + .dd-section { border: none; border-top: 1px solid var(--border); margin-top: 6px; padding-top: 6px; }
  [dir="rtl"] .dropdown-wide .dd-section + .dd-section { border-right: none; border-top: 1px solid var(--border); }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: var(--navy-900);
  position: relative;
  border-radius: 2px;
}
.nav-toggle span::before { position: absolute; top: -6px; left: 0; }
.nav-toggle span::after  { position: absolute; top:  6px; left: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--grad-hero);
  padding: var(--s-9) 0 var(--s-8);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 80% 0%, rgba(123,92,255,0.18), transparent 60%),
    radial-gradient(50% 50% at 0% 100%, rgba(46,107,255,0.16), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--s-8);
  align-items: center;
}
.hero h1 { color: var(--navy-900); margin-bottom: var(--s-4); }
.hero h1 .grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-500);
  max-width: 560px;
  margin-bottom: var(--s-5);
}
.hero-ctas {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-bottom: var(--s-5);
}
.hero-meta {
  display: flex;
  gap: var(--s-5);
  color: var(--text-500);
  font-size: 0.9rem;
  flex-wrap: wrap;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before {
  content: "✓";
  display: inline-flex;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue-600);
  font-size: 0.7rem;
  align-items: center; justify-content: center;
  font-weight: 700;
}

/* Dashboard mockup */
.hero-visual {
  position: relative;
}
.dash {
  position: relative;
  background: #fff;
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-xl);
  padding: 18px;
  border: 1px solid var(--border);
}
.dash-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}
.dash-bar i { width: 10px; height: 10px; border-radius: 50%; background: #E5EAF3; }
.dash-bar i:nth-child(1) { background: #FF6B6B; }
.dash-bar i:nth-child(2) { background: #FFD166; }
.dash-bar i:nth-child(3) { background: #06D6A0; }
.dash-bar .url {
  margin-left: 10px;
  font-size: 0.78rem;
  color: var(--text-500);
  background: var(--surface-alt);
  padding: 4px 10px;
  border-radius: var(--r-pill);
}
.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.dash-card {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px 16px;
}
.dash-card .lbl { font-size: 0.75rem; color: var(--text-500); margin-bottom: 4px; }
.dash-card .num { font-size: 1.5rem; font-weight: 800; color: var(--navy-900); letter-spacing: -0.02em; }
.dash-card .trend { font-size: 0.8rem; color: var(--success); margin-top: 4px; }
.dash-card.full { grid-column: 1 / -1; }
.dash-rows { display: grid; gap: 8px; }
.dash-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-700);
}
.dash-row .avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--grad-accent);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
}
.dash-row .pill { font-size: 0.72rem; padding: 3px 8px; border-radius: var(--r-pill); background: var(--blue-100); color: var(--blue-600); font-weight: 600; }
.dash-row .pill.ok { background: #DCFCE7; color: var(--success); }
.dash-row .pill.late { background: #FEF3C7; color: var(--warning); }

.phone {
  position: absolute;
  bottom: -30px;
  right: -20px;
  width: 170px;
  background: #0A1736;
  border-radius: 28px;
  padding: 8px;
  box-shadow: var(--shadow-xl);
  transform: rotate(6deg);
}
.phone .screen {
  background: #fff;
  border-radius: 22px;
  padding: 12px;
  font-size: 0.7rem;
}
.phone .screen h5 { font-size: 0.8rem; margin: 6px 0; }
.phone .screen .pill { font-size: 0.65rem; padding: 2px 7px; border-radius: var(--r-pill); background: var(--blue-100); color: var(--blue-600); display:inline-block; margin-bottom: 6px; }
.phone .screen .row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--border); font-size: 0.7rem; color: var(--text-500); }
.phone .screen .row:last-child { border-bottom: 0; }

/* ---------- Trusted strip ---------- */
.trust-strip {
  padding: var(--s-6) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface-soft);
}
.trust-strip p {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-500);
  margin-bottom: var(--s-4);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}
.trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-6);
  align-items: center;
  color: var(--text-400);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.trust-logos span { opacity: 0.7; }

/* ---------- Cards & grids ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-5); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s-5);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-400);
}
.card .icon {
  width: 46px; height: 46px;
  border-radius: var(--r-md);
  background: var(--grad-brand-soft);
  color: var(--blue-600);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: var(--s-3);
  font-size: 1.25rem;
}
.card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.card p { color: var(--text-500); font-size: 0.94rem; margin-bottom: 0; }

.card-dark {
  background: var(--grad-dark);
  color: #fff;
  border: none;
}
.card-dark h3 { color: #fff; }
.card-dark p { color: #B7C3E0; }

/* ---------- Problem section ---------- */
.problem .card .icon { background: #FFF1F0; color: #E04A4A; }

/* ---------- Solution section ---------- */
.solution { background: var(--surface-alt); }
.solution .card .icon { background: var(--grad-brand-soft); color: var(--blue-600); }

/* ---------- Product sections ---------- */
.product {
  position: relative;
  overflow: hidden;
}
.product-head {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--s-7);
  align-items: center;
  margin-bottom: var(--s-6);
}
.product-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--purple-100);
  color: var(--purple-600);
  font-weight: 600; font-size: 0.8rem;
  margin-bottom: var(--s-4);
}
.product .feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
}
.feat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  font-weight: 600;
  color: var(--text-900);
  font-size: 0.92rem;
  display: flex; align-items: flex-start; gap: 10px;
}
.feat-card .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--grad-brand);
  margin-top: 8px;
  flex-shrink: 0;
}
.feat-card.sawa .dot { background: linear-gradient(135deg, #2E6BFF, #4F8BFF); }
.feat-card.online .dot { background: linear-gradient(135deg, #7B5CFF, #9277FF); }

.product.sawa-section { background: var(--surface-alt); }
.product.online-section { background: #fff; }

.product-mock {
  background: #fff;
  border-radius: var(--r-2xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 16px;
}
.mock-tabs {
  display: flex; gap: 8px; margin-bottom: 12px;
}
.mock-tabs span {
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--surface-alt);
  font-size: 0.78rem;
  color: var(--text-500);
  font-weight: 600;
}
.mock-tabs span.active { background: var(--grad-brand); color: #fff; }

/* ---------- Who-it-is-for ---------- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
.aud-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s-5);
  text-align: left;
  transition: all .2s ease;
}
.aud-card:hover { border-color: var(--purple-500); box-shadow: var(--shadow-md); }
.aud-card .aud-icon {
  width: 50px; height: 50px;
  border-radius: var(--r-md);
  background: var(--grad-brand-soft);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--s-3);
}
.aud-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.aud-card p { color: var(--text-500); margin-bottom: 0; font-size: 0.92rem; }

/* ---------- Benefits ---------- */
.benefits { background: var(--grad-dark); color: #fff; }
.benefits h2 { color: #fff; }
.benefits .section-head p { color: #B7C3E0; }
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
}
.benefit {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  display: flex; align-items: flex-start; gap: 12px;
  transition: background .2s ease, border-color .2s ease;
}
.benefit:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--blue-400);
}
.benefit .b-icon {
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  background: var(--grad-brand);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.benefit p {
  margin: 0;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.35;
}

/* ---------- Screenshots section ---------- */
.shots {
  background: var(--surface-alt);
}
.shots-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--s-4);
}
.shot {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
  min-height: 180px;
  transition: all .2s ease;
}
.shot:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.shot .shot-body {
  height: 220px;
  background: var(--grad-brand-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-600);
  font-size: 0.9rem;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}
.shot .shot-label {
  padding: var(--s-3) var(--s-4);
  border-top: 1px solid var(--border);
  font-weight: 600;
  color: var(--navy-900);
  font-size: 0.95rem;
}
.shot:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
.shot:nth-child(1) .shot-body { height: 460px; }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  align-items: stretch;
}
.price-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s-6);
  display: flex; flex-direction: column;
  transition: all .25s ease;
  position: relative;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.price-card.featured {
  border-color: var(--purple-500);
  box-shadow: var(--shadow-md);
}
.price-card.featured::before {
  content: "Most popular";
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--grad-brand);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--r-pill);
  letter-spacing: 0.04em;
}
.price-card h3 { font-size: 1.3rem; margin-bottom: 4px; }
.price-card .price-desc {
  color: var(--text-500);
  font-size: 0.92rem;
  margin-bottom: var(--s-4);
}
.price-card .price {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy-900);
  margin-bottom: var(--s-1);
}
.price-card .price small {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-500);
}
.price-card ul {
  list-style: none;
  padding: 0; margin: var(--s-4) 0 var(--s-5);
  flex: 1;
}
.price-card ul li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.92rem;
  color: var(--text-700);
  display: flex; align-items: flex-start; gap: 8px;
}
.price-card ul li::before {
  content: "✓";
  color: var(--blue-600);
  font-weight: 700;
}
.pricing-note {
  text-align: center;
  margin-top: var(--s-5);
  color: var(--text-500);
  font-size: 0.92rem;
}

/* ---------- Trust / Implementation ---------- */
.trust-section {
  background: #fff;
}
.trust-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--s-7);
  align-items: center;
}
.trust-list {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
}
.trust-list li {
  background: var(--surface-alt);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  font-weight: 600;
  color: var(--navy-900);
  display: flex; align-items: center; gap: 10px;
  font-size: 0.92rem;
  border: 1px solid var(--border);
}
.trust-list li::before {
  content: "★";
  color: var(--purple-600);
}

/* ---------- Roadmap ---------- */
.roadmap {
  background: var(--surface-alt);
}
.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s-3);
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 4%; right: 4%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-500), var(--purple-500));
  z-index: 0;
}
.t-step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  position: relative;
  text-align: center;
}
.t-step .num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: var(--s-3);
  position: relative;
  z-index: 1;
}
.t-step h4 { font-size: 0.95rem; margin-bottom: 4px; color: var(--navy-900); }
.t-step p { font-size: 0.85rem; color: var(--text-500); margin: 0; }

/* ---------- Demo form ---------- */
.demo-section {
  background: var(--grad-hero);
  position: relative;
  overflow: hidden;
}
.demo-section::before {
  content:"";
  position: absolute; inset: 0;
  background:
    radial-gradient(40% 60% at 90% 0%, rgba(123,92,255,0.18), transparent 70%),
    radial-gradient(50% 50% at 0% 100%, rgba(46,107,255,0.18), transparent 70%);
  pointer-events: none;
}
.demo-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: var(--s-7);
  align-items: center;
}
.demo-info h2 { margin-bottom: var(--s-3); }
.demo-info p { color: var(--text-500); }
.demo-points {
  list-style: none;
  margin: var(--s-5) 0;
  padding: 0;
}
.demo-points li {
  padding: 10px 0;
  display: flex; align-items: flex-start; gap: 10px;
  color: var(--navy-900);
  font-weight: 500;
}
.demo-points li::before {
  content: "→";
  color: var(--blue-600);
  font-weight: 700;
}
.demo-card {
  background: #fff;
  border-radius: var(--r-2xl);
  padding: var(--s-7);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3) var(--s-4);
}
.form-field { display: flex; flex-direction: column; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 6px;
}
.form-field input,
.form-field select,
.form-field textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-strong);
  background: var(--surface-soft);
  color: var(--text-900);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--blue-500);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(46,107,255,0.12);
}
.form-field textarea { min-height: 110px; resize: vertical; }
.form-actions {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4);
  margin-top: var(--s-5);
  flex-wrap: wrap;
}
.form-actions small { color: var(--text-500); font-size: 0.85rem; }
.form-success {
  display: none;
  padding: var(--s-4);
  background: #DCFCE7;
  color: #166534;
  border-radius: var(--r-md);
  font-weight: 600;
  margin-top: var(--s-4);
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--grad-dark);
  color: #fff;
  border-radius: var(--r-2xl);
  padding: var(--s-7);
  display: grid;
  grid-template-columns: 1.3fr auto;
  align-items: center;
  gap: var(--s-5);
  margin: 0 auto;
  max-width: var(--container);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content:"";
  position: absolute; inset: 0;
  background:
    radial-gradient(40% 80% at 80% 50%, rgba(123,92,255,0.4), transparent 70%);
  pointer-events: none;
}
.cta-banner h2 { color: #fff; margin-bottom: 6px; }
.cta-banner p { color: #B7C3E0; margin: 0; }
.cta-banner .btns { display: flex; gap: 10px; position: relative; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: #B7C3E0;
  padding: var(--s-8) 0 var(--s-5);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--s-5);
  margin-bottom: var(--s-6);
}
.footer-grid h5 {
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: var(--s-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer-grid p { color: #8FA0C8; font-size: 0.92rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: 8px; }
.footer-grid ul li a {
  color: #B7C3E0;
  font-size: 0.92rem;
}
.footer-grid ul li a:hover { color: #fff; }
.footer-brand .brand { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--s-4);
  display: flex; justify-content: space-between; gap: var(--s-3);
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #8FA0C8;
}
.socials { display: flex; gap: 10px; }
.socials a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: inline-flex; align-items: center; justify-content: center;
  color: #B7C3E0;
  transition: background .2s ease, color .2s ease;
}
.socials a:hover { background: var(--grad-brand); color: #fff; }

/* ---------- Floating WhatsApp ---------- */
.whatsapp-fab {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35);
  z-index: 90;
  transition: transform .2s ease;
}
.whatsapp-fab:hover { color: #fff; transform: scale(1.08); }

/* ---------- Smart Room Solutions section ---------- */
.smart-rooms { background: linear-gradient(180deg, #F7F9FD 0%, #FFFFFF 100%); }
.smart-rooms-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
}
.room-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: var(--s-6);
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.room-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-400);
}
.room-card::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 200px; height: 200px;
  background: radial-gradient(circle at top right, var(--blue-100), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.room-card.education::before {
  background: radial-gradient(circle at top right, var(--purple-100), transparent 70%);
}
.room-card > * { position: relative; z-index: 1; }
.room-card .room-icon {
  width: 64px; height: 64px;
  border-radius: var(--r-lg);
  background: var(--grad-brand-soft);
  color: var(--blue-600);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin-bottom: var(--s-4);
}
.room-card.education .room-icon {
  background: linear-gradient(135deg, #EFEAFF, #E8F0FF);
  color: var(--purple-600);
}
.room-card h3 { font-size: 1.4rem; margin-bottom: var(--s-2); }
.room-card .room-tagline {
  color: var(--blue-600);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--s-3);
}
.room-card.education .room-tagline { color: var(--purple-600); }
.room-card p { color: var(--text-700); margin-bottom: var(--s-4); }
.room-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s-5);
}
.room-card ul li {
  padding: 6px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-700);
  font-size: 0.95rem;
}
.room-card ul li::before {
  content: "✓";
  color: var(--blue-600);
  font-weight: 700;
  flex-shrink: 0;
}
.room-card.education ul li::before { color: var(--purple-600); }
@media (max-width: 880px) {
  .smart-rooms-grid { grid-template-columns: 1fr; }
}

/* ---------- Meet Lumino brand banner ---------- */
.meet-lumino {
  padding: var(--s-7) 0;
  background: #fff;
  position: relative;
  overflow: hidden;
}
.meet-lumino-wrap {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: linear-gradient(135deg, #E8F0FF 0%, #EFEAFF 100%);
}
.meet-lumino-wrap img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .6s ease;
}
.meet-lumino-wrap:hover img {
  transform: scale(1.02);
}
.meet-lumino-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: var(--s-5) var(--s-6);
  background: linear-gradient(180deg, transparent 0%, rgba(10,23,54,0.85) 100%);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--s-4);
  flex-wrap: wrap;
}
.meet-lumino-caption .ml-tag {
  font-size: 0.85rem;
  opacity: 0.92;
  font-weight: 500;
  margin: 0;
  max-width: 560px;
  line-height: 1.5;
}
.meet-lumino-caption .btn { flex-shrink: 0; }

@media (max-width: 880px) {
  .meet-lumino-caption {
    position: static;
    background: var(--grad-dark);
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  [dir="rtl"] .meet-lumino-caption { align-items: flex-end; text-align: right; }
}

/* ---------- Parent App download section ---------- */
.parent-app {
  background: linear-gradient(135deg, #F4F8FF 0%, #EFEAFF 100%);
  position: relative;
  overflow: hidden;
}
.parent-app::before {
  content:"";
  position: absolute; inset: 0;
  background:
    radial-gradient(40% 60% at 80% 0%, rgba(123,92,255,0.15), transparent 70%),
    radial-gradient(50% 50% at 0% 100%, rgba(46,107,255,0.12), transparent 70%);
  pointer-events: none;
}
.parent-app-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--s-7);
  align-items: center;
}
.parent-app-visual {
  display: flex;
  justify-content: center;
  position: relative;
}
.parent-app-visual img {
  max-width: 380px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 50px rgba(46,107,255,0.25));
  transition: transform .3s ease;
}
.parent-app-visual:hover img {
  transform: translateY(-6px);
}
.parent-app h2 { margin-bottom: var(--s-3); }
.parent-app .parent-app-meta {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-top: var(--s-4);
  color: var(--text-500);
  font-size: 0.9rem;
}
.parent-app .parent-app-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.parent-app .parent-app-meta span::before {
  content: "✓";
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue-600);
  font-size: 0.7rem;
  display: inline-flex;
  align-items: center; justify-content: center;
  font-weight: 700;
}

/* Store badges (Apple / Google Play) */
.store-badges {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-top: var(--s-5);
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #0A1736;
  color: #fff;
  padding: 11px 22px;
  border-radius: 12px;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  border: 1px solid rgba(255,255,255,0.08);
  min-width: 180px;
}
.store-badge:hover {
  color: #fff;
  background: #000;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(10,23,54,0.35);
}
.store-badge svg { flex-shrink: 0; color: #fff; }
.store-badge .store-label {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}
[dir="rtl"] .store-badge .store-label { text-align: right; }
.store-badge .store-label small {
  font-size: 0.65rem;
  font-weight: 500;
  opacity: 0.85;
  letter-spacing: 0.02em;
  font-family: "Inter", system-ui, sans-serif;
}
.store-badge .store-label strong {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 2px;
  font-family: "Inter", system-ui, sans-serif;
}

@media (max-width: 880px) {
  .parent-app-grid { grid-template-columns: 1fr; gap: var(--s-6); text-align: center; }
  .parent-app-visual { order: -1; }
  .store-badges { justify-content: center; }
  [dir="rtl"] .parent-app-grid { text-align: center; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--grad-hero);
  padding: var(--s-8) 0 var(--s-7);
  position: relative;
  overflow: hidden;
}
.page-hero .container { position: relative; }
.page-hero h1 { margin-bottom: var(--s-3); }
.page-hero p { color: var(--text-500); font-size: 1.1rem; max-width: 700px; }

/* ---------- Misc ---------- */
.text-center { text-align: center; }
.muted { color: var(--text-500); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .product .feat-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: repeat(5, minmax(140px, 1fr)); overflow-x: auto; padding-bottom: 8px; }
}

@media (max-width: 880px) {
  .hero-grid,
  .product-head,
  .trust-grid,
  .demo-grid {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }
  .product .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .cta-banner { grid-template-columns: 1fr; text-align: center; }
  .cta-banner .btns { justify-content: center; flex-wrap: wrap; }
  .shots-grid { grid-template-columns: 1fr; }
  .shots-grid .shot:nth-child(1) { grid-row: auto; grid-column: auto; }
  .shots-grid .shot:nth-child(1) .shot-body { height: 220px; }
  .timeline { grid-auto-flow: column; grid-auto-columns: 80%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; }
  .timeline .t-step { scroll-snap-align: start; }
  .timeline::before { display: none; }
  .phone { display: none; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    inset: 64px 0 0 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: var(--s-5);
    gap: 4px;
    border-top: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
    overflow-y: auto;
    height: calc(100vh - 64px);
  }
  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a { padding: 12px; border-bottom: 1px solid var(--border); }
  .nav-links li.has-menu { width: 100%; }
  .nav-links .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    min-width: 0;
    box-shadow: none;
    border: none;
    padding: 0 0 0 var(--s-4);
    margin: 0;
  }
  .nav-toggle { display: inline-flex; }
  .nav-actions .btn:not(.nav-toggle) { display: none; }
  .nav-actions { gap: 6px; }
  .form-grid { grid-template-columns: 1fr; }
  .trust-list { grid-template-columns: 1fr; }
  .benefit-grid { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: var(--s-7) 0; }
  .hero { padding: var(--s-7) 0; }
  .hero-meta { gap: var(--s-3); }
}

/* =========================================================
   Arabic / RTL Support
   Applied via <html lang="ar" dir="rtl"> or [dir="rtl"]
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Tajawal:wght@400;500;700;800&display=swap');

[dir="rtl"] {
  --ff-sans: "Tajawal", "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --ff-display: "Tajawal", "Inter", "Segoe UI", system-ui, sans-serif;
}

[dir="rtl"] body { font-family: var(--ff-sans); }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5 {
  font-family: var(--ff-display);
  letter-spacing: 0; /* Arabic doesn't benefit from negative letter-spacing */
  line-height: 1.35;
}
[dir="rtl"] h1 { letter-spacing: 0; line-height: 1.3; }

/* Lists: flip padding side */
[dir="rtl"] ul, [dir="rtl"] ol { padding-left: 0; padding-right: 1.2rem; }
[dir="rtl"] .nav-links, [dir="rtl"] .price-card ul,
[dir="rtl"] .trust-list, [dir="rtl"] .demo-points, [dir="rtl"] .footer-grid ul {
  padding-right: 0; padding-left: 0;
}

/* Caret next to dropdown trigger */
[dir="rtl"] .nav-links .menu-trigger::after {
  margin-left: 0;
  margin-right: 6px;
}

/* Hero background gradient orbs — mirror to feel balanced in RTL */
[dir="rtl"] .hero::before {
  background:
    radial-gradient(60% 60% at 20% 0%, rgba(123,92,255,0.18), transparent 60%),
    radial-gradient(50% 50% at 100% 100%, rgba(46,107,255,0.16), transparent 60%);
}
[dir="rtl"] .demo-section::before {
  background:
    radial-gradient(40% 60% at 10% 0%, rgba(123,92,255,0.18), transparent 70%),
    radial-gradient(50% 50% at 100% 100%, rgba(46,107,255,0.18), transparent 70%);
}

/* Phone mockup in hero — move to the other side and flip rotation */
[dir="rtl"] .phone {
  right: auto;
  left: -20px;
  transform: rotate(-6deg);
}

/* Card alignment */
[dir="rtl"] .aud-card,
[dir="rtl"] .feat-card,
[dir="rtl"] .card,
[dir="rtl"] .benefit,
[dir="rtl"] .price-card,
[dir="rtl"] .demo-info,
[dir="rtl"] .page-hero,
[dir="rtl"] .product-head,
[dir="rtl"] .footer-grid {
  text-align: right;
}

/* Arrows: '→' should become '←' visually in RTL */
[dir="rtl"] .demo-points li::before {
  content: "←";
}
[dir="rtl"] .btn .arrow,
[dir="rtl"] .btn-primary .arrow {
  transform: scaleX(-1);
  display: inline-block;
}

/* Dashboard mockup URL pill — keep ltr (URLs are LTR) */
[dir="rtl"] .dash-bar .url {
  direction: ltr;
  margin-left: 0;
  margin-right: 10px;
}

/* Dashboard rows: flip avatar/text/pill order */
[dir="rtl"] .dash-row { direction: rtl; }

/* WhatsApp FAB — keep on the right (bottom-right is global convention) */
[dir="rtl"] .whatsapp-fab { right: 22px; left: auto; }

/* Pricing card "Most popular" ribbon — re-center */
[dir="rtl"] .price-card.featured::before {
  content: "الأكثر شيوعًا";
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}

/* Pricing list checkmarks: flip side via gap (already handled by flex direction) */
[dir="rtl"] .price-card ul li,
[dir="rtl"] .demo-points li,
[dir="rtl"] .hero-meta span,
[dir="rtl"] .benefit,
[dir="rtl"] .feat-card,
[dir="rtl"] .trust-list li {
  /* flex already gives proper order — just ensure no padding-left bleeds */
  padding-left: 0;
}

/* Trust list "★" — already content based, flex order handles it */
[dir="rtl"] .trust-list li::before { content: "★"; }

/* Brand mark + text spacing flips automatically via flex gap.
   Form labels right-aligned. */
[dir="rtl"] .form-field label,
[dir="rtl"] .form-field input,
[dir="rtl"] .form-field select,
[dir="rtl"] .form-field textarea {
  text-align: right;
}
[dir="rtl"] .form-field input[type="tel"],
[dir="rtl"] .form-field input[type="email"] {
  /* Phone & email left-to-right even on RTL pages */
  direction: ltr;
  text-align: right;
}

/* Section head stays centered */
[dir="rtl"] .section-head { text-align: center; }
[dir="rtl"] .text-center { text-align: center; }

/* Footer bottom: balance */
[dir="rtl"] .footer-bottom { direction: rtl; }

/* CTA banner btns alignment */
[dir="rtl"] .cta-banner { text-align: right; }
@media (max-width: 880px) {
  [dir="rtl"] .cta-banner { text-align: center; }
}

/* Mobile nav slide direction stays vertical — no change needed */

/* Tajawal weight tuning — Arabic text needs slightly bolder weight at body size */
[dir="rtl"] body { font-weight: 400; }
[dir="rtl"] .btn { font-weight: 600; }
[dir="rtl"] .eyebrow { letter-spacing: 0.06em; }

/* Brand mark (Latin "L") stays Latin font even on Arabic pages */
[dir="rtl"] .brand .logo-mark { font-family: "Inter", system-ui, sans-serif; }

/* Brand text — render Latin "Lu-mino" name in Inter for visual consistency.
   Use class .brand-latin to opt in. */
[dir="rtl"] .brand-latin { font-family: "Inter", system-ui, sans-serif; }

/* =========================================================
   Product mark — Lumino Connect / Lumino Into Teachers logos
   ========================================================= */
.product-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border-radius: 24px;
  margin-bottom: var(--s-3);
  background: #FFFCF1;
  padding: 8px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.product-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product-mark.connect { background: #FFFCF1; }
.product-mark.into-teachers { background: #0A1736; }
.product-mark-sm {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  padding: 4px;
}
.product-mark-hero {
  width: 200px;
  height: 200px;
  border-radius: 32px;
  padding: 12px;
}
@media (max-width: 720px) {
  .product-mark-hero { width: 140px; height: 140px; }
}

/* =========================================================
   Bookstore / Library page
   ========================================================= */
.bookshop {
  background: linear-gradient(180deg, #FBFCFE 0%, #FFFFFF 100%);
  padding: var(--s-8) 0;
}
.bookshop-intro {
  max-width: 760px;
  margin: 0 auto var(--s-7);
  text-align: center;
}
.bookshop-intro p { color: var(--text-500); font-size: 1.05rem; }

.book-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-6);
}
.book-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
}
.book-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-400);
}
.book-cover {
  background: linear-gradient(135deg, #E8F0FF 0%, #EFEAFF 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-4);
  border-right: 1px solid var(--border);
}
[dir="rtl"] .book-cover { border-right: none; border-left: 1px solid var(--border); }
.book-cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.book-body {
  padding: var(--s-5) var(--s-6);
  display: flex;
  flex-direction: column;
}
.book-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue-600);
  background: var(--blue-100);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  align-self: flex-start;
  margin-bottom: var(--s-3);
  letter-spacing: 0.02em;
}
.book-body h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
  color: var(--navy-900);
  line-height: 1.3;
}
.book-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  font-size: 0.85rem;
  color: var(--text-500);
  margin-bottom: var(--s-3);
}
.book-meta span { display: inline-flex; align-items: center; gap: 4px; }
.book-meta span::before {
  content: "•";
  color: var(--blue-500);
  font-weight: 700;
}
.book-meta span:first-child::before { display: none; }
.book-body > p { color: var(--text-700); font-size: 0.95rem; margin-bottom: var(--s-3); line-height: 1.55; }
.book-section {
  margin-bottom: var(--s-3);
}
.book-section h5 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--purple-600);
  margin-bottom: 6px;
  font-weight: 700;
}
.book-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 4px;
}
.book-section ul li {
  font-size: 0.9rem;
  color: var(--text-700);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}
[dir="rtl"] .book-section ul li { padding-left: 0; padding-right: 18px; }
.book-section ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--success);
  font-weight: 700;
  font-size: 0.85rem;
}
[dir="rtl"] .book-section ul li::before { left: auto; right: 0; }
.book-actions {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: var(--s-3);
  border-top: 1px solid var(--border);
}
.book-actions .btn { flex: 0 1 auto; }
.book-size {
  font-size: 0.78rem;
  color: var(--text-400);
  align-self: center;
  margin-left: auto;
}
[dir="rtl"] .book-size { margin-left: 0; margin-right: auto; }

/* Library banner */
.library-banner {
  background: var(--grad-dark);
  color: #fff;
  border-radius: var(--r-2xl);
  padding: var(--s-6);
  margin-top: var(--s-7);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-4);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.library-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 80% at 90% 50%, rgba(123,92,255,0.32), transparent 70%);
  pointer-events: none;
}
.library-banner h3 { color: #fff; margin-bottom: 4px; font-size: 1.3rem; }
.library-banner p { color: #B7C3E0; margin: 0; }
.library-banner > * { position: relative; z-index: 1; }

@media (max-width: 1024px) {
  .book-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .book-card { grid-template-columns: 1fr; }
  .book-cover { border-right: none; border-bottom: 1px solid var(--border); padding: var(--s-5); }
  [dir="rtl"] .book-cover { border-left: none; border-bottom: 1px solid var(--border); }
  .book-cover img { max-width: 200px; margin: 0 auto; }
  .library-banner { grid-template-columns: 1fr; text-align: center; }
}
