/* ============================================================
   ReviewHabibi — Premium Conversion Landing Page Stylesheet
   Typography: Poppins (Headings) + Inter (Body) + Cairo (Arabic RTL)
   Palette: Royal Blue #2563EB, Gold #F59E0B, Slate #0F172A
   ============================================================ */

/* --- Design Tokens --- */
:root {
  /* Brand Colors */
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-800: #1e40af;
  --blue-50:  #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;

  /* Accent Gold for 5-Star Reviews */
  --gold-500: #f59e0b;
  --gold-400: #fbbf24;
  --gold-50:  #fffbeb;

  /* WhatsApp & Success Emerald */
  --emerald-600: #10b981;
  --emerald-700: #059669;
  --emerald-50:  #ecfdf5;

  /* Slate Neutrals */
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;
  --white:     #ffffff;

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Poppins', var(--font-body);
  --font-arabic: 'Cairo', var(--font-body);

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 10px -2px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 30px -6px rgba(15, 23, 42, 0.12), 0 8px 12px -4px rgba(15, 23, 42, 0.06);

  /* Transitions */
  --tr-fast: 150ms ease;
  --tr-smooth: 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--white);
  color: var(--slate-700);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* RTL Support */
[dir="rtl"] {
  font-family: var(--font-arabic);
}

[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 {
  font-family: var(--font-arabic);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--tr-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--slate-900);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.25rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { color: var(--slate-600); }

.text-lead {
  font-size: 1.125rem;
  color: var(--slate-600);
  line-height: 1.6;
}

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

/* --- Containers --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.container-sm {
  max-width: 860px;
}

.section {
  padding: 80px 0;
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
}

.section-header {
  margin-bottom: 48px;
}

.section-header h2 {
  margin-top: 12px;
  margin-bottom: 12px;
}

.section-badge {
  display: inline-block;
  padding: 5px 14px;
  background: var(--blue-50);
  border: 1px solid var(--blue-200);
  color: var(--blue-700);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 9999px;
  letter-spacing: 0.02em;
}

/* --- Buttons & CTAs --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 12px 24px;
  border-radius: 10px;
  transition: all var(--tr-smooth);
  cursor: pointer;
  white-space: nowrap;
  min-height: 44px; /* Accessible 44px tap target */
}

.btn:focus-visible {
  outline: 2px solid var(--blue-600);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--blue-600);
  color: var(--white);
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
  background: var(--blue-700);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--slate-100);
  color: var(--slate-800);
  border: 1px solid var(--slate-200);
}

.btn-secondary:hover {
  background: var(--slate-200);
  color: var(--slate-900);
}

.btn-whatsapp {
  background: var(--emerald-600);
  color: var(--white);
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.btn-whatsapp:hover {
  background: var(--emerald-700);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: 12px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
  border-radius: 8px;
  min-height: 38px;
}

/* ================================================================
   1. NAVBAR
   ================================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--slate-200);
  transition: box-shadow var(--tr-fast);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-brand {
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--slate-600);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-toggle-btn {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--slate-600);
  padding: 6px 12px;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  background: var(--slate-50);
  transition: all var(--tr-fast);
}

.lang-toggle-btn:hover {
  border-color: var(--blue-600);
  color: var(--blue-600);
}

.nav-login {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--slate-700);
}

.nav-login:hover {
  color: var(--blue-600);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--slate-800);
  border-radius: 2px;
}

@media (max-width: 900px) {
  .nav-menu, .nav-login { display: none; }
  .nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--slate-200);
    padding: 20px 24px;
    box-shadow: var(--shadow-lg);
    gap: 16px;
  }
  .nav-menu.active .nav-link {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--slate-800);
  }
  .nav-hamburger { display: flex; }
}

/* ================================================================
   2. HERO SECTION
   ================================================================ */
.hero-section {
  padding: 64px 0 80px;
  background: linear-gradient(180deg, var(--white) 0%, var(--slate-50) 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-copy {
  max-width: 580px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--blue-50);
  border: 1px solid var(--blue-200);
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--blue-700);
  margin-bottom: 20px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-600);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.hero-title {
  margin-bottom: 18px;
  letter-spacing: -0.03em;
}

.accent-text {
  color: var(--blue-600);
}

.hero-subhead {
  font-size: 1.15rem;
  color: var(--slate-600);
  line-height: 1.65;
  margin-bottom: 28px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.hero-trust-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--slate-500);
  font-weight: 500;
}

.dot-sep {
  color: var(--slate-300);
}

.hero-visual-wrap {
  position: relative;
}

.hero-visual-stack {
  position: relative;
}

.hero-dashboard-img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--slate-200);
}

.hero-phone-overlap {
  position: absolute;
  right: -24px;
  bottom: -28px;
  width: 44%;
  filter: drop-shadow(0 20px 25px rgba(15, 23, 42, 0.25));
  animation: floatSlow 5s ease-in-out infinite alternate;
}

.hero-phone-img {
  width: 100%;
  height: auto;
  border-radius: 24px;
}

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

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-copy { max-width: 100%; }
  .hero-phone-overlap {
    position: static;
    width: 60%;
    margin: -40px auto 0;
  }
}

/* ================================================================
   3. PROBLEM STRIP
   ================================================================ */
.problem-section {
  background: var(--white);
  border-top: 1px solid var(--slate-100);
  border-bottom: 1px solid var(--slate-100);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  margin-bottom: 32px;
}

.problem-card {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  padding: 28px 24px;
  box-shadow: var(--shadow-xs);
}

.problem-card-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.problem-card h3 {
  font-size: 1.05rem;
  color: var(--slate-900);
  margin-bottom: 10px;
  line-height: 1.4;
}

.problem-card p {
  font-size: 0.9rem;
  color: var(--slate-600);
  line-height: 1.6;
}

.problem-punchline {
  font-size: 1.1rem;
  color: var(--slate-800);
  margin-top: 12px;
}

@media (max-width: 860px) {
  .problem-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ================================================================
   4. TRY IT YOURSELF INTERACTIVE DEMO
   ================================================================ */
.demo-section {
  background: linear-gradient(180deg, var(--slate-50) 0%, var(--white) 100%);
}

.interactive-demo-card {
  background: var(--white);
  border: 2px solid var(--blue-100);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

@media (max-width: 480px) {
  .interactive-demo-card {
    padding: 24px 16px;
    border-radius: 16px;
  }
  .demo-star-btn {
    font-size: 2.25rem;
    padding: 2px;
  }
}

.demo-gate-header {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  margin-bottom: 24px;
}

.demo-avatar {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--blue-600);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.demo-biz-name {
  font-weight: 700;
  color: var(--slate-900);
  font-size: 1rem;
}

.demo-biz-sub {
  font-size: 0.8125rem;
  color: var(--slate-500);
}

.demo-gate-prompt {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 20px;
}

.demo-stars-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}

.demo-star-btn {
  font-size: 2.75rem;
  line-height: 1;
  color: var(--slate-300);
  padding: 4px;
  transition: all var(--tr-fast);
  cursor: pointer;
}

.demo-star-btn:hover,
.demo-star-btn.active-star,
.demo-star-btn.lit {
  color: var(--gold-400);
  transform: scale(1.15);
}

.demo-star-btn:focus-visible {
  outline: 2px solid var(--blue-600);
  border-radius: 6px;
}

.demo-hint {
  font-size: 0.875rem;
  color: var(--slate-500);
}

.demo-result-state {
  margin-top: 28px;
  padding: 24px;
  border-radius: 14px;
  animation: fadeIn 200ms ease;
  text-align: center;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.demo-badge-pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.demo-badge-pill.green {
  background: var(--emerald-50);
  color: var(--emerald-700);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.demo-badge-pill.amber {
  background: var(--gold-50);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.demo-result-state h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.demo-result-state p {
  font-size: 0.9375rem;
  max-width: 520px;
  margin: 0 auto 16px;
}

.demo-google-btn-mock {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--white);
  border: 1px solid var(--slate-300);
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--slate-800);
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
}

.demo-feedback-mock-form {
  max-width: 480px;
  margin: 0 auto 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.demo-feedback-mock-form input,
.demo-feedback-mock-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--slate-300);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.875rem;
  background: var(--slate-50);
  color: var(--slate-700);
}

.demo-owner-alert-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 0.8125rem;
  padding: 10px 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dc2626;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

.demo-reset-link {
  display: inline-block;
  font-size: 0.8125rem;
  color: var(--blue-600);
  font-weight: 600;
  cursor: pointer;
}

.demo-reset-link:hover {
  text-decoration: underline;
}

/* ================================================================
   5. HOW IT WORKS
   ================================================================ */
.how-section {
  background: var(--white);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

.step-card {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}

.step-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  background: var(--blue-600);
  color: var(--white);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 1.15rem;
  color: var(--slate-900);
  margin-bottom: 10px;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--slate-600);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.step-img-wrap {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow-xs);
}

.step-img-wrap img {
  margin: 0 auto;
}

.step-phone-img {
  max-width: 140px;
}

@media (max-width: 900px) {
  .steps-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* In-Person Physical QR Callout */
.qr-callout-card {
  background: linear-gradient(135deg, var(--slate-900) 0%, var(--slate-800) 100%);
  border-radius: 20px;
  padding: 48px;
  color: var(--white);
  box-shadow: var(--shadow-xl);
}

.qr-callout-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
}

.qr-pill {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.qr-callout-copy h3 {
  color: var(--white);
  font-size: 1.75rem;
  margin-bottom: 14px;
}

.qr-callout-copy p {
  color: var(--slate-300);
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.qr-callout-img img {
  margin: 0 auto;
  border-radius: 14px;
}

@media (max-width: 860px) {
  .qr-callout-card { padding: 32px 24px; }
  .qr-callout-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ================================================================
   6. FEATURE BENEFITS
   ================================================================ */
.features-section {
  background: var(--slate-50);
}

.features-4up {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 32px;
}

.feature-box {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-xs);
  transition: transform var(--tr-smooth), box-shadow var(--tr-smooth);
}

.feature-box:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.feature-icon-wrap {
  margin-bottom: 20px;
}

.feature-box h3 {
  font-size: 1.25rem;
  color: var(--slate-900);
  margin-bottom: 6px;
}

.feature-benefit {
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue-600);
  margin-bottom: 12px;
}

.feature-detail {
  font-size: 0.9375rem;
  color: var(--slate-600);
  line-height: 1.65;
}

.features-extra-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 20px 24px;
}

.extra-feat-item {
  font-size: 0.875rem;
  color: var(--slate-700);
}

.extra-icon {
  margin-right: 6px;
}

@media (max-width: 860px) {
  .features-4up { grid-template-columns: 1fr; }
  .features-extra-bar { grid-template-columns: 1fr; }
}

/* ================================================================
   7. HONEST COMPARISON TABLE
   ================================================================ */
.comparison-section {
  background: var(--white);
}

.comparison-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9375rem;
}

.comparison-table th,
.comparison-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--slate-200);
}

.comparison-table thead th {
  background: var(--slate-50);
  font-weight: 700;
  color: var(--slate-900);
  font-size: 0.9375rem;
}

.comparison-table th.col-highlight,
.comparison-table td.col-highlight {
  background: var(--blue-50);
  color: var(--blue-800);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

/* Tablet Responsive Table */
@media (min-width: 681px) and (max-width: 900px) {
  .comparison-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .comparison-table {
    min-width: 620px;
  }
}

/* Mobile Responsive Cards Layout (Eliminates horizontal cut-off) */
@media (max-width: 680px) {
  .comparison-table-wrap {
    overflow-x: visible;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  .comparison-table {
    display: block;
    width: 100%;
  }

  .comparison-table thead {
    display: none;
  }

  .comparison-table tbody {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .comparison-table tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  }

  /* Row Title: Feature / Capability spans full width across top */
  .comparison-table tr td:first-child {
    grid-column: 1 / -1;
    background: var(--slate-50);
    padding: 12px 14px;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--slate-900);
    border-bottom: 1px solid var(--slate-200);
  }

  /* ReviewHabibi Column */
  .comparison-table tr td.col-highlight {
    background: var(--blue-50);
    padding: 12px 14px;
    font-size: 0.875rem;
    color: var(--blue-800);
    border-right: 1px solid var(--blue-200);
    border-bottom: none;
  }

  .comparison-table tr td.col-highlight::before {
    content: "ReviewHabibi";
    display: block;
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--blue-600);
    margin-bottom: 4px;
  }

  /* Enterprise Tools Column */
  .comparison-table tr td:last-child {
    background: var(--white);
    padding: 12px 14px;
    font-size: 0.875rem;
    color: var(--slate-600);
    border-bottom: none;
  }

  .comparison-table tr td:last-child::before {
    content: "Enterprise Tools";
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--slate-400);
    margin-bottom: 4px;
  }

  /* RTL Support for Arabic */
  [dir="rtl"] .comparison-table tr td:first-child {
    text-align: right;
  }

  [dir="rtl"] .comparison-table tr td.col-highlight {
    border-right: none;
    border-left: 1px solid var(--blue-200);
    text-align: right;
  }

  [dir="rtl"] .comparison-table tr td.col-highlight::before {
    content: "ريفيو حبيبي";
  }

  [dir="rtl"] .comparison-table tr td:last-child {
    text-align: right;
  }

  [dir="rtl"] .comparison-table tr td:last-child::before {
    content: "الأدوات العالمية";
  }
}

/* ================================================================
   8. REAL PROOF & FOUNDER COMMITMENT
   ================================================================ */
.proof-section {
  background: var(--slate-50);
}

.founder-note-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 18px;
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.founder-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--emerald-50);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--emerald-700);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 9999px;
  margin-bottom: 16px;
}

.founder-note-card h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.founder-note-card p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 14px;
}

.founder-signoff {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--slate-100);
}

.founder-meta {
  font-size: 0.8125rem;
  color: var(--slate-500);
  margin-top: 4px;
}

/* ================================================================
   9. PRICING SECTION
   ================================================================ */
.pricing-section {
  background: var(--white);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 36px;
  align-items: stretch;
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 18px;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform var(--tr-smooth);
}

.pricing-card:hover {
  transform: translateY(-4px);
}

.pricing-card.featured {
  border: 2px solid var(--blue-600);
  box-shadow: var(--shadow-lg);
}

.plan-popular-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue-600);
  color: var(--white);
  padding: 4px 14px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.plan-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 6px;
}

.plan-desc {
  font-size: 0.875rem;
  color: var(--slate-500);
  min-height: 40px;
  margin-bottom: 16px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  margin-bottom: 6px;
}

.price-curr {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--slate-900);
}

.price-val {
  font-size: 3rem;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1;
  font-family: var(--font-heading);
}

.price-cycle {
  font-size: 0.9375rem;
  color: var(--slate-500);
  margin-left: 6px;
}

.plan-compare {
  font-size: 0.8125rem;
  color: var(--blue-700);
  font-weight: 600;
  background: var(--blue-50);
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 24px;
}

.plan-bullets {
  list-style: none;
  margin-bottom: 32px;
  flex-grow: 1;
}

.plan-bullets li {
  font-size: 0.9rem;
  color: var(--slate-700);
  padding: 8px 0;
  border-bottom: 1px solid var(--slate-100);
}

.plan-bullets li::before {
  content: "✓ ";
  color: var(--emerald-600);
  font-weight: bold;
}

.plan-btn {
  width: 100%;
}

.pricing-guarantee {
  font-size: 0.9375rem;
  color: var(--slate-600);
}

@media (max-width: 960px) {
  .pricing-grid { grid-template-columns: 1fr; gap: 24px; }
  .plan-desc { min-height: auto; }
}

/* ================================================================
   10. FAQ ACCORDION
   ================================================================ */
.faq-section {
  background: var(--slate-50);
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--slate-900);
  text-align: left;
}

[dir="rtl"] .faq-question {
  text-align: right;
}

.faq-chevron {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--slate-400);
  transition: transform var(--tr-fast);
  line-height: 1;
}

.faq-item.open .faq-chevron {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 24px 20px;
  color: var(--slate-600);
  font-size: 0.9375rem;
  line-height: 1.65;
}

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

/* ================================================================
   11. BOOK A LIVE DEMO (CAL.COM INLINE)
   ================================================================ */
.book-demo-section {
  padding: 96px 0 80px;
  background-color: var(--white);
  border-top: 1px solid var(--slate-200);
  position: relative;
}

.cal-demo-header {
  max-width: 780px;
  margin: 0 auto 36px;
  text-align: center;
}

.cal-demo-title {
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 4vw, 2.85rem);
  font-weight: 700;
  color: var(--slate-900);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 14px;
}

.cal-demo-sub {
  font-size: 1.0625rem;
  color: var(--slate-600);
  line-height: 1.65;
  margin: 0 auto 16px;
  max-width: 680px;
}

.cal-demo-chips {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-500);
}

.cal-chip-dot {
  color: var(--slate-300);
  user-select: none;
}

.cal-embed-wrapper {
  max-width: 1040px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 20px;
  box-shadow: 0 12px 36px -6px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
  padding: 12px;
  min-height: 720px;
  position: relative;
  overflow: hidden;
}

#my-cal-inline {
  width: 100%;
  height: 100%;
  min-height: 680px;
  border: none;
}


@media (max-width: 768px) {
  .book-demo-section {
    padding: 64px 0 60px;
  }
  .cal-embed-wrapper {
    padding: 6px;
    border-radius: 14px;
    min-height: 650px;
  }
  #my-cal-inline {
    min-height: 620px;
  }
}

/* ================================================================
   12. FOOTER
   ================================================================ */
.footer {
  background: var(--slate-900);
  color: var(--slate-400);
  padding: 64px 0 32px;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-logo-img {
  height: 38px;
  width: auto;
  margin-bottom: 16px;
}

.footer-tagline {
  color: var(--slate-400);
  font-size: 0.875rem;
  max-width: 320px;
  line-height: 1.6;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.9375rem;
  margin-bottom: 18px;
}

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

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--slate-800);
  font-size: 0.8125rem;
  color: var(--slate-500);
}

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   13. STICKY MOBILE BOTTOM CTA BAR
   ================================================================ */
.sticky-mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--white);
  border-top: 1px solid var(--slate-200);
  padding: 10px 16px;
  box-shadow: 0 -4px 12px rgba(15, 23, 42, 0.08);
  transform: translateY(100%);
  transition: transform var(--tr-smooth);
}

.sticky-mobile-bar.visible {
  transform: translateY(0);
}

.sticky-mobile-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sticky-mobile-text strong {
  display: block;
  font-size: 0.875rem;
  color: var(--slate-900);
}

.sticky-mobile-text span {
  display: block;
  font-size: 0.75rem;
  color: var(--emerald-600);
  font-weight: 600;
}

@media (max-width: 768px) {
  .sticky-mobile-bar { display: block; }
}
