/* ============ Qaimah marketing site ============ */

body.mkt-page { background: #fff; }

.mkt-page a { text-decoration: none; }

html[dir="rtl"] .mkt-page, .mkt-page .ar-text { font-family: 'Cairo', 'Poppins', sans-serif; }

/* ---------- Header / nav ---------- */
.mkt-header {
  position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.mkt-header-inner {
  max-width: 1180px; margin: 0 auto; padding: 1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.mkt-brand {
  font-weight: 800; font-size: 1.3rem; color: var(--ink); display: inline-flex; align-items: center; gap: 0.5rem;
}
.mkt-brand i { color: var(--primary); }
.mkt-nav { display: flex; align-items: center; gap: 1.6rem; }
.mkt-nav a { color: var(--ink); font-weight: 600; font-size: 0.95rem; }
.mkt-nav a:hover, .mkt-nav a.active { color: var(--primary); }
.mkt-nav-login { color: var(--muted) !important; font-weight: 600; }
.mkt-nav-toggle {
  display: none; background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--ink); padding: 0.4rem;
}

/* ---------- Hero ---------- */
.mkt-hero {
  max-width: 1180px; margin: 0 auto; padding: 4.5rem 1.5rem 4rem;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center;
}
.mkt-eyebrow {
  display: inline-flex; align-items: center; gap: 0.4rem; background: #fdeaea; color: var(--primary);
  font-weight: 700; font-size: 0.8rem; padding: 0.35rem 0.8rem; border-radius: 999px; margin-bottom: 1.2rem;
}
.mkt-hero h1 { font-size: 2.9rem; line-height: 1.12; margin: 0 0 1.1rem; letter-spacing: -0.02em; }
.mkt-hero-sub { font-size: 1.15rem; color: var(--muted); line-height: 1.6; margin: 0 0 1.8rem; max-width: 46ch; }
.mkt-hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 1rem; }
.mkt-hero-note { color: var(--muted); font-size: 0.88rem; }
.mkt-hero-note i { color: #1d7a3e; margin-right: 0.2rem; }

.mkt-hero-visual { position: relative; display: flex; justify-content: center; }
.mkt-phone {
  width: 260px; background: #1d1d1f; border-radius: 32px; padding: 12px 10px; box-shadow: 0 30px 60px rgba(0,0,0,0.25);
  transform: rotate(2deg);
}
.mkt-phone-notch { width: 70px; height: 18px; background: #1d1d1f; border-radius: 0 0 12px 12px; margin: 0 auto 6px; position: relative; top: -2px; }
.mkt-phone-screen { background: #fafafa; border-radius: 22px; padding: 1rem 0.9rem 1.3rem; min-height: 380px; }
.mkt-phone-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.mkt-phone-logo {
  width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 0.85rem; flex-shrink: 0;
}
.mkt-phone-title { font-weight: 700; font-size: 0.95rem; flex: 1; }
.mkt-phone-lang { font-size: 0.65rem; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 0.15rem 0.5rem; }
.mkt-phone-cat { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin: 0.9rem 0 0.5rem; }
.mkt-phone-item {
  display: flex; align-items: center; gap: 0.55rem; background: #fff; border: 1px solid var(--border);
  border-radius: 10px; padding: 0.55rem 0.7rem; margin-bottom: 0.5rem; font-size: 0.82rem;
}
.mkt-phone-item.muted-item { opacity: 0.55; }
.mkt-phone-item-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.mkt-phone-item-name { flex: 1; font-weight: 600; }
.mkt-phone-item-price { font-weight: 700; color: var(--primary); }
.mkt-qr-chip {
  position: absolute; bottom: 0.5rem; left: 50%; transform: translateX(-50%);
  background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 0.5rem 1rem;
  font-size: 0.8rem; font-weight: 700; box-shadow: 0 10px 24px rgba(0,0,0,0.08); display: flex; align-items: center; gap: 0.4rem;
}
.mkt-qr-chip i { color: var(--primary); }

/* ---------- Badge strip ---------- */
.mkt-badges {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 2.2rem; padding: 1.6rem 1.5rem;
  background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  color: var(--muted); font-size: 0.88rem; font-weight: 600;
}
.mkt-badges .mkt-badge-item { display: inline-flex; align-items: center; gap: 0.45rem; }
.mkt-badges i { color: var(--primary); }

/* ---------- Generic section ---------- */
.mkt-section { max-width: 1180px; margin: 0 auto; padding: 5rem 1.5rem; }
.mkt-section-alt { max-width: none; background: var(--bg); }
.mkt-section-alt > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.mkt-section-head { text-align: center; max-width: 620px; margin: 0 auto 3rem; }
.mkt-section-head h2 { font-size: 2rem; margin: 0 0 0.6rem; letter-spacing: -0.01em; }
.mkt-section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.mkt-center { text-align: center; margin-top: 2.5rem; }

/* ---------- Legal pages (privacy policy, etc.) ---------- */
.mkt-legal { max-width: 1180px; margin: 0 auto; padding: 4rem 1.5rem 6rem; }
.mkt-legal .mkt-section-head h1 { font-size: 2rem; margin: 0 0 0.6rem; letter-spacing: -0.01em; }
.mkt-legal-body { max-width: 720px; margin: 0 auto; text-align: start; }
.mkt-legal-body h2 { font-size: 1.35rem; margin: 2.2rem 0 0.8rem; }
.mkt-legal-body h3 { font-size: 1.05rem; margin: 1.4rem 0 0.5rem; }
.mkt-legal-body p { color: var(--ink); line-height: 1.75; margin: 0 0 1rem; }
.mkt-legal-body ul { margin: 0 0 1rem; padding-inline-start: 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; }
.mkt-legal-body li { line-height: 1.75; }
.mkt-legal-body a { text-decoration: underline; }

/* ---------- Features ---------- */
.mkt-feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.mkt-feature-card {
  position: relative; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 1.6rem;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.mkt-feature-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(0,0,0,0.07); }
.mkt-feature-icon {
  width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; margin-bottom: 1rem;
}
.mkt-feature-card h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.mkt-feature-card p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.55; }
.mkt-pro-tag {
  position: absolute; top: 1.2rem; right: 1.2rem; background: #1d1d1f; color: #fff; font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; padding: 0.2rem 0.5rem; border-radius: 999px;
}

/* ---------- Steps ---------- */
.mkt-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.8rem; }
.mkt-step { text-align: center; }
.mkt-step-num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; font-size: 1.1rem;
}
.mkt-step h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.mkt-step p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }

/* ---------- Showcase (fake browser mockups) ---------- */
.mkt-showcase { display: flex; align-items: center; gap: 1.5rem; }
.mkt-browser { flex: 1; }
.mkt-browser-bar {
  display: flex; align-items: center; gap: 0.35rem; background: #ececef; border-radius: 10px 10px 0 0; padding: 0.6rem 0.8rem;
}
.mkt-browser-bar span { width: 9px; height: 9px; border-radius: 50%; background: #d3d3d8; }
.mkt-browser-url {
  margin-left: 0.6rem; background: #fff; border-radius: 6px; padding: 0.25rem 0.7rem; font-size: 0.72rem; color: var(--muted);
  display: inline-flex; align-items: center; gap: 0.3rem; width: auto !important; height: auto !important; border-radius: 6px !important;
}
.mkt-browser-body {
  background: #fff; border: 1px solid var(--border); border-top: none; border-radius: 0 0 12px 12px; padding: 1.2rem;
  display: flex; gap: 0.8rem; min-height: 220px; box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}
.mkt-mock-sidebar { display: flex; flex-direction: column; gap: 0.5rem; }
.mkt-mock-tab {
  width: 34px; height: 34px; border-radius: 8px; background: var(--bg); display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 0.85rem;
}
.mkt-mock-tab.active { background: var(--primary); color: #fff; }
.mkt-mock-content { flex: 1; display: flex; flex-direction: column; gap: 0.7rem; justify-content: center; }
.mkt-mock-row { height: 34px; border-radius: 8px; background: var(--bg); border: 1px solid var(--border); }
.mkt-mock-row.short { width: 65%; }
.mkt-browser-phone { max-width: 260px; margin: 0 auto; }
.mkt-browser-body-menu { flex-direction: column; }
.mkt-mock-hero { height: 70px; border-radius: 10px; background: linear-gradient(135deg, var(--primary), #f2a65a); margin-bottom: 0.7rem; }
.mkt-mock-pill { width: 90px; height: 20px; border-radius: 999px; background: var(--bg); border: 1px solid var(--border); margin-bottom: 0.8rem; }
.mkt-mock-card { height: 40px; border-radius: 8px; background: var(--bg); border: 1px solid var(--border); margin-bottom: 0.6rem; }
.mkt-showcase-caption { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 0.9rem; }
.mkt-showcase-arrow { color: var(--border); font-size: 1.6rem; flex-shrink: 0; }

/* ---------- Pricing teaser (homepage) ---------- */
.mkt-plan-teaser-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 0; }
.mkt-plan-teaser {
  background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 2rem 1.5rem; text-align: center;
}
.mkt-plan-teaser i { font-size: 1.8rem; color: var(--primary); margin-bottom: 0.9rem; }
.mkt-plan-teaser h3 { margin: 0 0 0.5rem; }
.mkt-plan-teaser p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* ---------- FAQ ---------- */
.mkt-faq { max-width: 760px; margin: 0 auto; }
.mkt-faq-item { border-bottom: 1px solid var(--border); }
.mkt-faq-q {
  width: 100%; text-align: left; background: none; border: none; padding: 1.2rem 0; font-size: 1.02rem; font-weight: 700;
  color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.mkt-faq-q i { color: var(--muted); transition: transform 0.2s var(--ease); flex-shrink: 0; }
.mkt-faq-item.open .mkt-faq-q i { transform: rotate(180deg); color: var(--primary); }
.mkt-faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s var(--ease); }
.mkt-faq-item.open .mkt-faq-a { max-height: 200px; }
.mkt-faq-a p { margin: 0 0 1.2rem; color: var(--muted); line-height: 1.6; }

/* ---------- Final CTA ---------- */
.mkt-final-cta {
  text-align: center; padding: 5rem 1.5rem; background: linear-gradient(135deg, var(--primary), #f2a65a); color: #fff;
}
.mkt-final-cta h2 { margin: 0 0 0.6rem; font-size: 2rem; }
.mkt-final-cta p { margin: 0 0 1.8rem; opacity: 0.92; }
.mkt-final-cta .btn-primary { background: #fff; color: var(--primary); }
.mkt-final-cta .btn-primary:hover { box-shadow: 0 10px 24px rgba(0,0,0,0.2); }

/* ---------- Footer ---------- */
.mkt-footer { background: #16161a; color: #a0a0a8; }
.mkt-footer-inner {
  max-width: 1180px; margin: 0 auto; padding: 3.5rem 1.5rem 2.5rem;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem;
}
.mkt-footer .mkt-brand { color: #fff; }
.mkt-footer-brand p { margin-top: 0.8rem; max-width: 32ch; }
.mkt-footer-col h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 0.9rem; }
.mkt-footer-col a { display: block; color: #a0a0a8; font-size: 0.9rem; margin-bottom: 0.6rem; }
.mkt-footer-col a:hover { color: #fff; }
.mkt-footer .app-footer { border-top: 1px solid #2a2a30; margin: 0; padding: 1.2rem 1.5rem; }
.mkt-footer .app-footer p { color: #6b6b72; }
.mkt-footer .app-footer a { color: #a0a0a8; }

/* =============== Pricing page =============== */
.mkt-pricing-hero { max-width: 720px; margin: 0 auto; padding: 4rem 1.5rem 1rem; text-align: center; }
.mkt-pricing-hero h1 { font-size: 2.4rem; margin: 0 0 0.9rem; letter-spacing: -0.02em; }
.mkt-pricing-hero p { color: var(--muted); font-size: 1.08rem; line-height: 1.6; }

.mkt-plans-section { padding-top: 2rem; }
.mkt-plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
.mkt-plan-card {
  position: relative; background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 2.2rem 1.8rem;
  display: flex; flex-direction: column;
}
.mkt-plan-card-highlight { border-color: var(--primary); box-shadow: 0 20px 45px rgba(230,57,70,0.14); transform: translateY(-8px); }
.mkt-plan-ribbon {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff;
  font-size: 0.72rem; font-weight: 700; padding: 0.3rem 0.9rem; border-radius: 999px; letter-spacing: 0.03em;
}
.mkt-plan-icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--bg); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 1rem;
}
.mkt-plan-card h2 { margin: 0 0 0.3rem; font-size: 1.4rem; }
.mkt-plan-tagline { color: var(--muted); font-size: 0.9rem; margin: 0 0 1.3rem; }
.mkt-plan-price { margin-bottom: 1.5rem; display: flex; align-items: baseline; gap: 0.4rem; }
.mkt-plan-price-amount { font-size: 1.9rem; font-weight: 800; }
.mkt-plan-price-period { color: var(--muted); font-size: 0.85rem; }
.mkt-plan-features { list-style: none; margin: 0 0 1.8rem; padding: 0; flex: 1; display: flex; flex-direction: column; gap: 0.7rem; }
.mkt-plan-features li { font-size: 0.9rem; display: flex; align-items: flex-start; gap: 0.6rem; }
.mkt-plan-features .fa-check { color: #1d7a3e; margin-top: 0.2rem; }
.mkt-plan-features .fa-xmark { color: #c8c8cd; margin-top: 0.2rem; }
.mkt-plan-note { text-align: center; color: var(--muted); font-size: 0.78rem; margin: 0.7rem 0 0; }

.mkt-compare-wrap { overflow-x: auto; }
.mkt-compare-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; min-width: 640px; }
.mkt-compare-table th, .mkt-compare-table td {
  padding: 0.9rem 1.1rem; text-align: center; border-bottom: 1px solid var(--border); font-size: 0.9rem;
}
.mkt-compare-table thead th { font-size: 0.95rem; padding-top: 1.2rem; padding-bottom: 1.2rem; }
.mkt-compare-feature-col { text-align: left !important; color: var(--muted); font-weight: 600; width: 34%; }
.mkt-compare-table td:first-child { text-align: left; font-weight: 600; }
.mkt-compare-highlight-col { background: #fdf6f6; }
.mkt-compare-table .fa-check { color: #1d7a3e; }
.mkt-compare-table .fa-xmark { color: #c8c8cd; }
.mkt-compare-table td .btn { font-size: 0.85rem; padding: 0.5rem 0.8rem; }

/* =============== RTL overrides =============== */
html[dir="rtl"] .mkt-pro-tag { right: auto; left: 1.2rem; }
html[dir="rtl"] .mkt-showcase-arrow i { transform: scaleX(-1); }
html[dir="rtl"] .mkt-faq-q { text-align: right; }
html[dir="rtl"] .mkt-compare-feature-col,
html[dir="rtl"] .mkt-compare-table td:first-child { text-align: right !important; }
html[dir="rtl"] .mkt-phone { transform: rotate(-2deg); }
html[dir="rtl"] .mkt-hero-note i { margin-right: 0; margin-left: 0.2rem; }

/* =============== Responsive =============== */
@media (max-width: 900px) {
  .mkt-hero { grid-template-columns: 1fr; padding-top: 3rem; text-align: center; }
  .mkt-hero-copy { order: 2; }
  .mkt-hero-visual { order: 1; }
  .mkt-hero-actions, .mkt-hero-note { justify-content: center; }
  .mkt-hero-sub { margin-left: auto; margin-right: auto; }
  .mkt-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .mkt-steps { grid-template-columns: repeat(2, 1fr); }
  .mkt-plans-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .mkt-plan-card-highlight { transform: none; order: -1; }
  .mkt-footer-inner { grid-template-columns: 1fr 1fr; }
  .mkt-showcase { flex-direction: column; }
  .mkt-showcase-arrow { transform: rotate(90deg); }
}

@media (max-width: 640px) {
  .mkt-nav-toggle { display: block; }
  .mkt-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; padding: 1rem 1.5rem; gap: 0.9rem;
    display: none;
  }
  .mkt-nav.open { display: flex; }
  .mkt-hero h1 { font-size: 2.1rem; }
  .mkt-feature-grid { grid-template-columns: 1fr; }
  .mkt-steps { grid-template-columns: 1fr; }
  .mkt-badges { gap: 1rem 1.4rem; font-size: 0.8rem; }
  .mkt-plan-teaser-grid { grid-template-columns: 1fr; }
  .mkt-footer-inner { grid-template-columns: 1fr; }
}
