/* =========================================================
   Marketing site. Warm terracotta, classic business feel.
   Flat, generous whitespace, modern interactions, fully RTL.
   ========================================================= */

:root {
  /* Brand palette */
  --brand:      #b45032;
  --brand-dark: #8d3a23;
  --brand-tint: #fbf3ee;
  --brand-soft: #e8d9cc;

  /* Surfaces */
  --ink:     #231812;
  --ink-2:   #3d2c22;
  --muted:   #7a6a60;
  --muted-2: #9a8c82;
  --line:    #e9e0d7;
  --line-soft: #f1ebe4;
  --panel:   #ffffff;
  --bg:      #faf7f2;
  --bg-2:    #f4efe7;

  /* Status */
  --ok:   #2f8a5a;
  --warn: #c28812;
  --bad:  #b54a3a;

  /* Type */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-ar:   "SF Arabic", "Geeza Pro", "Noto Naskh Arabic", "Segoe UI Arabic", Tahoma, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Layout tokens */
  --maxw: 1200px;
  --radius: 8px;
  --radius-lg: 12px;
  --section-y: clamp(64px, 9vw, 120px);

  /* Header */
  --header-h: 68px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  /* Hard clip so any unintended overflow from a child can never extend
     the page width past the viewport. `clip` is preferred over `hidden`
     because it doesn't create a scrolling container, which would break
     position: sticky on the topbar. Fallback to hidden for older browsers. */
  overflow-x: hidden;
  overflow-x: clip;
}
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[dir="rtl"] body { font-family: var(--font-ar); }

img, svg { display: block; max-width: 100%; }
a { color: var(--brand-dark); text-decoration: none; transition: color .15s; }
a:hover { color: var(--brand); }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { letter-spacing: 0; }
p  { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
em { font-style: normal; color: var(--brand-dark); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) {
  .container { padding: 0 32px; }
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  inset-inline-start: 8px;
  top: -40px;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  z-index: 200;
  transition: top .15s;
}
.skip-link:focus { top: 8px; color: #fff; }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.topbar.scrolled {
  background: rgba(250, 247, 242, 0.94);
  border-bottom-color: var(--line);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  /* Never let the brand shrink when the topbar gets crowded on small screens */
  flex-shrink: 0;
}
.brand-logo {
  height: 36px;
  width: auto;
  /* Override the global `img { max-width: 100% }` rule that lets the logo
     get squeezed when the topbar runs out of horizontal space */
  max-width: none;
  display: block;
  flex-shrink: 0;
  user-select: none;
  -webkit-user-drag: none;
  /* Fallback styling for the alt text if the SVG is missing */
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}
.footer-brand .brand-logo { height: 40px; }

.nav {
  display: none;
  gap: 4px;
  align-items: center;
}
@media (min-width: 820px) {
  .nav { display: flex; }
}
.nav a {
  color: var(--ink-2);
  font-size: 14px;
  padding: 8px 14px;
  border-radius: var(--radius);
  font-weight: 500;
  transition: background .15s, color .15s;
}
.nav a:hover { background: var(--line-soft); color: var(--ink); }
.nav a.active { color: var(--brand-dark); background: var(--brand-tint); }

.topbar-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}
.topbar-actions .btn { flex-shrink: 0; }

/* Hamburger button: explicit square hit-area + clearly-sized icon.
   Uses !important on display because these are utility classes whose
   whole purpose is to override the default `.btn { display: inline-flex }`
   rule that comes later in the cascade. Without !important, `.btn`
   wins the specificity tie and `.hide-mobile` / `.menu-toggle` stop
   working, leaving the topbar overflowing on phones. */
.menu-toggle {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0 !important;
  flex-shrink: 0;
  color: var(--ink);
}
.menu-toggle .lucide {
  width: 22px !important;
  height: 22px !important;
  stroke-width: 2 !important;
}

.hide-mobile { display: none !important; }
@media (min-width: 820px) {
  .menu-toggle { display: none !important; }
  .hide-mobile { display: inline-flex !important; }
}

/* Very small phones (≤ 380px): tighten topbar so brand + lang + menu fit cleanly */
@media (max-width: 380px) {
  .topbar-inner { gap: 8px; }
  .container { padding: 0 16px; }
  /* Hide the lang-toggle word; the globe icon alone is universally readable */
  #lang-toggle span { display: none; }
  #lang-toggle { padding: 8px 10px; }
}

/* =========================================================
   MOBILE MENU. Slide-in side panel with backdrop.
   ========================================================= */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  visibility: hidden;
}
.mobile-menu.open { pointer-events: auto; visibility: visible; }

.mm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(35, 24, 18, 0.4);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .25s ease;
}
.mobile-menu.open .mm-backdrop { opacity: 1; }

.mm-panel {
  position: absolute;
  top: 0; bottom: 0;
  inset-inline-end: 0;
  width: min(360px, 88vw);
  background: var(--panel);
  border-inline-start: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 20px 24px 28px;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.2, .65, .25, 1);
  box-shadow: -20px 0 40px -20px rgba(35, 24, 18, 0.18);
}
[dir="rtl"] .mm-panel { transform: translateX(-100%); }
.mobile-menu.open .mm-panel { transform: none; }

.mm-close {
  align-self: flex-end;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: var(--radius);
  color: var(--muted);
  margin-bottom: 12px;
  transition: background .15s, color .15s;
}
.mm-close:hover { background: var(--line-soft); color: var(--ink); }

.mm-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 24px;
}
.mm-nav a {
  padding: 14px 16px;
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  transition: background .15s;
}
.mm-nav a:hover { background: var(--line-soft); }

.mm-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mm-actions .btn { width: 100%; justify-content: center; margin-top: 0; }

body.menu-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .mm-panel, .mm-backdrop { transition: none; }
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-2);
  transition: background .15s, border-color .15s, color .15s, transform .15s;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn.primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn.primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }

.btn.ghost { color: var(--ink-2); }
.btn.ghost:hover { background: var(--line-soft); color: var(--ink); }

.btn.outline { border-color: var(--line); color: var(--ink); background: var(--panel); }
.btn.outline:hover { border-color: var(--brand-soft); color: var(--brand-dark); }

.btn.sm  { padding: 7px 12px; font-size: 13px; }
.btn.lg  { padding: 13px 22px; font-size: 15px; }
.btn.full { width: 100%; justify-content: center; margin-top: 8px; }
.btn .lucide { width: 16px; height: 16px; stroke-width: 1.8; flex: none; }

/* RTL: flip arrow icons */
[dir="rtl"] .btn .lucide[class*="arrow-right"] { transform: scaleX(-1); }

/* =========================================================
   COMMON
   ========================================================= */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--brand);
}
.eyebrow.on-dark { color: #c9b4a4; }

.page-head {
  padding: clamp(56px, 8vw, 88px) 0 clamp(32px, 5vw, 48px);
  border-bottom: 1px solid var(--line);
}
.page-head h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.08;
  margin-top: 16px;
  max-width: 720px;
}
.page-head p {
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(15px, 1.6vw, 17px);
  max-width: 640px;
  line-height: 1.6;
}

/* =========================================================
   REVEAL ANIMATION (IntersectionObserver toggles .visible)
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease-out var(--delay, 0s),
              transform .6s ease-out var(--delay, 0s);
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  padding: clamp(64px, 8vw, 96px) 0 clamp(56px, 7vw, 88px);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 500px at 90% -20%, rgba(180, 80, 50, 0.06), transparent 60%),
    radial-gradient(800px 400px at -10% 110%, rgba(180, 80, 50, 0.04), transparent 60%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 64px;
  }
}
.hero h1 {
  font-size: clamp(36px, 5.2vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-top: 20px;
}
[dir="rtl"] .hero h1 { letter-spacing: 0; line-height: 1.18; }
.hero .lede {
  margin-top: 22px;
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 560px;
}
.hero-cta {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-meta {
  margin-top: 32px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13.5px;
}
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.hero-meta .dot.warn  { background: var(--warn); }
.hero-meta .dot.brand { background: var(--brand); }

/* Hero dashboard mock */
.hero-vis {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(35, 24, 18, 0.03),
    0 30px 60px -30px rgba(35, 24, 18, 0.22);
}
.hero-vis-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  font-size: 12px;
  color: var(--muted);
}
.hero-vis-chrome .dots { display: flex; gap: 5px; }
.hero-vis-chrome .dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.hero-vis-chrome .url {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--panel);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.ss-mock {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  min-height: 360px;
}
/* On phones the 140px sidebar leaves no room for KPIs.
   Hide it and let the main content fill the card. */
@media (max-width: 540px) {
  .ss-mock {
    grid-template-columns: minmax(0, 1fr);
    padding: 14px;
  }
  .ss-mock .sb { display: none; }
}
.ss-mock .sb {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 14px 10px;
}
.ss-mock .sb .sb-brand {
  height: 14px; background: var(--brand-soft); border-radius: 3px; width: 70%;
  margin-bottom: 18px;
}
.ss-mock .sb .sb-item {
  height: 9px; border-radius: 3px; background: var(--line);
  margin-bottom: 10px;
}
.ss-mock .sb .sb-item.on { background: var(--brand); width: 85%; }
.ss-mock .sb .sb-item:nth-child(3) { width: 60%; }
.ss-mock .sb .sb-item:nth-child(4) { width: 80%; }
.ss-mock .sb .sb-item:nth-child(5) { width: 55%; }
.ss-mock .sb .sb-item:nth-child(6) { width: 72%; }
.ss-mock .sb .sb-item:nth-child(7) { width: 65%; }

.ss-mock .ms { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ss-mock .kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));  /* 2-col on phones */
  gap: 8px;
}
@media (min-width: 540px) {
  .ss-mock .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.ss-mock .kpi {
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 10px 12px;
}
.ss-mock .kpi .k-l {
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ss-mock .kpi .k-v {
  font-size: 16px; font-weight: 600;
  margin-top: 4px; color: var(--ink);
}
.ss-mock .kpi .k-v .cur {
  font-size: 10px; color: var(--muted);
  margin-inline-end: 3px; font-weight: 500;
}
.ss-mock .charts {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 10px;
  flex: 1;
  min-height: 0;
}
/* Stack the two charts on phones — keeps text readable */
@media (max-width: 480px) {
  .ss-mock .charts { grid-template-columns: minmax(0, 1fr); }
}
.ss-mock .chart {
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 10px;
  display: flex; flex-direction: column;
  min-height: 140px;
}
.ss-mock .chart .c-title { font-size: 10px; font-weight: 600; color: var(--ink-2); }
.ss-mock .chart .c-sub   { font-size: 9px; color: var(--muted); margin: 2px 0 8px; }
.ss-mock .chart .c-body  { flex: 1; position: relative; }
.ss-mock .chart .c-body.center { display: flex; align-items: center; justify-content: center; }

.bars {
  display: flex; align-items: flex-end; gap: 4px;
  height: 100%;
  padding-bottom: 2px;
}
.bars span {
  flex: 1;
  height: 0;
  background: var(--brand-soft);
  border-radius: 2px 2px 0 0;
  transition: height .8s cubic-bezier(.2, .65, .25, 1);
}
.bars span.hot { background: var(--brand); }
.bars.animate span { height: var(--h); }

.donut {
  width: 86px; height: 86px;
  border-radius: 50%;
  background: conic-gradient(
    var(--ok) 0 50%,
    var(--warn) 50% 72%,
    var(--bad) 72% 86%,
    var(--line) 86% 100%
  );
  position: relative;
}
.donut::after {
  content: "";
  position: absolute; inset: 14px;
  background: var(--bg);
  border-radius: 50%;
}

/* =========================================================
   VALUES
   ========================================================= */
.values {
  padding: var(--section-y) 0;
  border-bottom: 1px solid var(--line);
}
.values-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: end;
  margin-bottom: 56px;
}
@media (min-width: 900px) {
  .values-head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    gap: 64px;
  }
}
.values-head h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.1;
  max-width: 460px;
}
.values-head p {
  color: var(--muted);
  font-size: 16px;
  max-width: 560px;
  line-height: 1.65;
}
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 720px) {
  .values-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}
.value {
  position: relative;
  padding-top: 24px;
  border-top: 2px solid var(--ink);
}
.value .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.value h3 {
  margin-top: 14px;
  font-size: 21px;
  line-height: 1.3;
}
.value p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
}
.value .icon {
  position: absolute;
  top: 18px;
  inset-inline-end: 0;
  color: var(--brand);
  width: 22px; height: 22px;
}

/* =========================================================
   SHOWCASE
   ========================================================= */
.showcase {
  padding: var(--section-y) 0;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.showcase-head {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 48px;
}
.showcase-head h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.1;
  margin-top: 14px;
}
.showcase-head p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
}

.showcase-tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.showcase-tab {
  padding: 12px 18px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: -1px;
  transition: color .15s, border-color .15s;
}
.showcase-tab.active {
  color: var(--ink);
  border-bottom-color: var(--brand);
}
.showcase-tab:hover { color: var(--ink); }

.showcase-panels { /* desktop: simple stacking container, no special layout */ }
.showcase-panel {
  display: none;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  padding-top: 16px;
  animation: fade-in .35s ease;
}
.showcase-panel.active { display: grid; }
@media (min-width: 960px) {
  .showcase-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 56px; }
}

/* Pagination dots (mobile only) */
.showcase-dots {
  display: none;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}
.showcase-dots .showcase-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand-soft);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.showcase-dots .showcase-dot.active {
  background: var(--brand);
  transform: scale(1.25);
}

/* Mobile carousel: scroll-snap horizontal strip */
@media (max-width: 760px) {
  .showcase-tabs { display: none; }
  .showcase-panels {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    /* Bleed past the .container padding so panels touch the edges */
    margin-inline: -24px;
    padding: 8px 24px 8px;
    scrollbar-width: none;
  }
  .showcase-panels::-webkit-scrollbar { display: none; }
  /* Show every panel in carousel mode (override [hidden] and .active) */
  .showcase-panels .showcase-panel,
  .showcase-panels .showcase-panel[hidden] {
    display: grid !important;
    grid-template-columns: 1fr;
    flex: 0 0 calc(100% - 16px);
    scroll-snap-align: center;
    padding-top: 0;
    animation: none;
  }
  .showcase-dots { display: flex; }
}
@keyframes fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
.showcase-panel .desc h3 {
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.25;
}
.showcase-panel .desc p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}
.showcase-panel .desc ul {
  margin: 22px 0 0;
}
.showcase-panel .desc li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  display: flex; gap: 10px;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--ink-2);
}
.showcase-panel .desc li:last-child { border-bottom: 1px solid var(--line); }
.showcase-panel .desc li .lucide {
  width: 16px; height: 16px;
  color: var(--brand);
  flex: none;
  margin-top: 3px;
}

/* Screenshot placeholder */
.ss {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(35, 24, 18, 0.03),
    0 30px 60px -30px rgba(35, 24, 18, 0.22);
}
.ss-chrome {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.ss-chrome .dots { display: flex; gap: 5px; }
.ss-chrome .dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
/* Real screenshot: locked to ~5:3 ratio, fits any minor variance */
.ss-img {
  position: relative;
  background: var(--bg);
  aspect-ratio: 5 / 3;
  overflow: hidden;
}
.ss-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* =========================================================
   FEATURES (full catalog)
   ========================================================= */
.feat-group {
  padding: clamp(48px, 6vw, 72px) 0;
  border-bottom: 1px solid var(--line);
}
.feat-group:last-of-type { border-bottom: none; }
.feat-group-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 36px;
}
@media (min-width: 900px) {
  .feat-group-head {
    grid-template-columns: 280px 1fr;
    gap: 48px;
  }
}
.feat-group-head .k {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.feat-group-head h3 {
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.15;
  margin-top: 4px;
}
.feat-group-head .intro {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.65;
  max-width: 580px;
}

.feat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 600px) {
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .feat-grid { grid-template-columns: repeat(3, 1fr); }
}
/* Default (mobile, 1-col): symmetric padding, only horizontal divider rows */
.feat-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.feat-item:last-child { border-bottom: none; }

/* 2-col layout */
@media (min-width: 600px) and (max-width: 959px) {
  .feat-item {
    padding: 24px 24px 24px 0;
    border-inline-end: 1px solid var(--line);
  }
  .feat-item:nth-child(2n) {
    padding-inline-start: 24px;
    padding-inline-end: 0;
    border-inline-end: none;
  }
  .feat-item:last-child,
  .feat-item:nth-last-child(2):nth-child(odd) { border-bottom: none; }
}

/* 3-col layout */
@media (min-width: 960px) {
  .feat-item {
    padding: 24px 24px 24px 0;
    border-inline-end: 1px solid var(--line);
  }
  .feat-item:nth-child(3n+2) { padding-inline: 24px; }
  .feat-item:nth-child(3n) {
    padding-inline-start: 24px;
    padding-inline-end: 0;
    border-inline-end: none;
  }
  .feat-item:nth-last-child(-n+3) { border-bottom: none; }
}
.feat-item .ic {
  width: 32px; height: 32px;
  background: var(--brand-tint);
  color: var(--brand-dark);
  border-radius: var(--radius);
  display: grid; place-items: center;
  margin-bottom: 14px;
}
.feat-item .ic .lucide { width: 16px; height: 16px; }
.feat-item h4 {
  font-size: 15.5px;
  margin-bottom: 6px;
}
.feat-item p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}

/* =========================================================
   PRICING
   ========================================================= */
.pricing-wrap { padding: clamp(48px, 6vw, 72px) 0 var(--section-y); }

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 820px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    /* Default align-items: stretch — all three cards fill to equal height */
  }
}

.plan {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.plan:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -25px rgba(35, 24, 18, 0.18); }

.plan.featured {
  border: 2px solid var(--brand);
  box-shadow: 0 28px 48px -28px rgba(180, 80, 50, 0.32);
  background: var(--panel);
  /* Slightly thicker padding to compensate for the 2px border so internal alignment matches the other cards */
  padding: 31px 27px;
}
.plan-badge {
  position: absolute;
  top: -14px;
  inset-inline-start: 24px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}

.plan .plan-name {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
}
.plan.featured .plan-name { color: var(--brand-dark); }

.plan .plan-head h3 {
  font-size: clamp(22px, 2.4vw, 26px);
  margin-top: 8px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.plan .plan-desc {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.55;
  min-height: 42px;
}

/* Price block: SAR 9,000 / year, original 12,000 strike, Limited time tag, Excluding VAT */
.plan-price {
  margin-top: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.plan-price .price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.plan-price .cur {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.plan-price .price-now {
  font-size: clamp(34px, 3.6vw, 42px);
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--ink);
}
.plan-price .price-period {
  font-size: 13.5px;
  color: var(--muted);
}
.plan-price .price-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.plan-price .price-was {
  font-size: 14px;
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: var(--muted-2);
  text-decoration-thickness: 1.5px;
}
.plan-price .price-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--brand-tint);
  color: var(--brand-dark);
  padding: 3px 9px;
  border-radius: 999px;
}
.plan-price .price-vat {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.plan-includes {
  margin: 18px 0 -4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.plan ul {
  margin: 18px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 14px;
  /* Grow to fill available vertical space so all cards stay equal height */
  flex: 1 1 auto;
}
.plan ul li { display: flex; gap: 10px; align-items: flex-start; }
.plan ul li .lucide {
  width: 15px; height: 15px;
  color: var(--brand);
  flex: none; margin-top: 3px;
}

.plan .btn { width: 100%; justify-content: center; margin-top: auto; }

/* ---------- Enterprise band ---------- */
.enterprise-band {
  margin-top: 56px;
  background: var(--ink);
  color: #f5ece3;
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.enterprise-band::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(420px circle at 92% 110%, rgba(180, 80, 50, 0.28), transparent 70%),
    radial-gradient(360px circle at 8% -10%, rgba(180, 80, 50, 0.16), transparent 70%);
  pointer-events: none;
}
@media (min-width: 800px) {
  .enterprise-band {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px;
  }
}
.enterprise-band .eb-text { position: relative; z-index: 1; }
.enterprise-band .eyebrow { color: #c9b4a4; }
.enterprise-band .eyebrow::before { background: var(--brand); }
.enterprise-band h3 {
  color: #fff;
  font-size: clamp(26px, 3.2vw, 34px);
  letter-spacing: -0.02em;
  margin-top: 12px;
}
.enterprise-band p {
  color: #cbb9ab;
  margin-top: 12px;
  max-width: 560px;
  line-height: 1.6;
  font-size: 15px;
}
.enterprise-band .eb-tag {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 14px;
  border: 1px solid rgba(245, 236, 227, 0.25);
  border-radius: 999px;
  font-size: 12.5px;
  color: #f0d9c8;
}
.enterprise-band .btn.primary {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
  position: relative;
  z-index: 1;
}
.enterprise-band .btn.primary:hover { background: var(--brand-tint); color: var(--brand-dark); }

/* ---------- Comparison table ---------- */
.cmp-wrap {
  margin-top: 64px;
}
.cmp-heading {
  font-size: clamp(20px, 2.2vw, 26px);
  margin-bottom: 18px;
  letter-spacing: -0.015em;
}
.cmp-table {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  overflow: hidden;
  overflow-x: auto;
}
.cmp-table table { width: 100%; border-collapse: collapse; min-width: 640px; }
.cmp-table th, .cmp-table td {
  padding: 14px 20px;
  font-size: 14px;
  text-align: start;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}
.cmp-table thead th {
  background: var(--bg);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 600;
  border-top: none;
}
.cmp-table thead th + th,
.cmp-table tbody td + td {
  text-align: center;
  width: 18%;
}
.cmp-table tr.g td {
  background: var(--bg-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.cmp-table td.tick { color: var(--brand); }
.cmp-table td.x    { color: var(--muted-2); }
.cmp-table td .lucide {
  width: 18px; height: 18px;
  display: inline-block;
  vertical-align: middle;
}
.cmp-table tbody td:first-child { color: var(--ink-2); }

/* =========================================================
   WHY
   ========================================================= */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  margin-top: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 720px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }
.why-item {
  background: var(--bg);
  padding: 32px;
  transition: background .15s;
}
.why-item:hover { background: var(--panel); }
.why-item .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brand);
  letter-spacing: 0.05em;
}
.why-item h3 {
  font-size: 20px;
  margin-top: 10px;
  line-height: 1.25;
}
.why-item p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
  max-width: 480px;
}

/* CTA banner */
.cta {
  margin-top: var(--section-y);
  padding: clamp(72px, 9vw, 120px) 0;
  text-align: center;
  background: var(--ink);
  color: #f5ece3;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(560px circle at 85% 120%, rgba(180, 80, 50, 0.32), transparent 70%),
    radial-gradient(640px circle at 12% -10%, rgba(180, 80, 50, 0.16), transparent 70%);
  pointer-events: none;
}
.cta h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.08;
  color: #fff;
  max-width: 720px;
  margin: 16px auto 0;
}
.cta p {
  margin: 18px auto 0;
  color: #cbb9ab;
  font-size: 17px;
  max-width: 560px;
  line-height: 1.6;
}
.cta-actions {
  margin-top: 36px;
  display: flex; gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.cta .btn.outline {
  background: transparent;
  color: #f5ece3;
  border-color: rgba(245, 236, 227, 0.25);
}
.cta .btn.outline:hover { border-color: #f5ece3; color: #fff; }

/* =========================================================
   DEMO
   ========================================================= */
.demo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding: clamp(48px, 6vw, 72px) 0 var(--section-y);
  align-items: start;
}
@media (min-width: 960px) {
  .demo-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; }
}
.demo-list h3 {
  font-size: clamp(20px, 2vw, 24px);
}
.demo-list p.sub {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}
.demo-list ul {
  margin-top: 24px;
}
.demo-list li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  display: flex; gap: 14px;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--ink-2);
}
.demo-list li:last-child { border-bottom: 1px solid var(--line); }
.demo-list li .lucide {
  width: 18px; height: 18px;
  color: var(--brand);
  flex: none; margin-top: 3px;
}

.demo-form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: 0 24px 48px -32px rgba(35, 24, 18, 0.18);
}
.demo-form h3 { font-size: clamp(18px, 1.8vw, 22px); }
.demo-form p.sub {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13.5px;
}
.field { display: block; margin-top: 18px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 13px;
  font: inherit;
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--panel);
  box-shadow: 0 0 0 3px rgba(180, 80, 50, 0.1);
}
.field.row2 { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 560px) { .field.row2 { grid-template-columns: 1fr 1fr; } }

/* Honeypot: invisible to real users, fillable by bots */
.demo-form .hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Form states: loading + error */
.demo-form .form-error {
  margin-top: 14px;
  padding: 12px 14px;
  background: #fbeae6;
  border-inline-start: 3px solid var(--bad);
  border-radius: 6px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.demo-form button[disabled] { opacity: 0.6; cursor: progress; }

/* =========================================================
   FAQ
   ========================================================= */
.faq-section { background: var(--bg-2); }
.faq {
  max-width: 800px;
  margin: 48px auto var(--section-y);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  list-style: none;
  padding: 22px 0;
  cursor: pointer;
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 16.5px;
  font-weight: 500;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev {
  flex: none;
  width: 18px; height: 18px;
  color: var(--muted);
  transition: transform .25s;
}
.faq-item[open] summary .chev { transform: rotate(45deg); color: var(--brand); }
.faq-item .a {
  padding: 0 0 22px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
  max-width: 680px;
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
  color: var(--muted);
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-bottom: 40px;
}
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; } }

.footer-brand .footer-desc {
  margin-top: 14px;
  font-size: 13.5px;
  max-width: 280px;
  line-height: 1.6;
  color: var(--muted);
}
.footer-col h4 {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a { color: var(--ink-2); }
.footer-col a:hover { color: var(--brand-dark); }

.socials {
  display: flex; gap: 8px;
  margin-top: 18px;
}
.socials .soc {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-2);
  transition: background .15s, color .15s, border-color .15s;
}
.socials .soc:hover { background: var(--brand-tint); color: var(--brand-dark); border-color: var(--brand-soft); }
.socials .soc .lucide { width: 16px; height: 16px; }

.footer-bot {
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
}
.footer-bot .legal { color: var(--muted-2); line-height: 1.6; }
.footer-bot .legal .sep { margin: 0 10px; color: var(--line); }
.footer-bot .legal .legal-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
  transition: color .15s, text-decoration-color .15s;
}
.footer-bot .legal .legal-link:hover {
  color: var(--brand-dark);
  text-decoration-color: currentColor;
}

/* =========================================================
   RTL FIXES
   ========================================================= */
[dir="rtl"] .feat-item .icon,
[dir="rtl"] .value .icon { right: auto; left: 0; }

/* Flip the conic donut so legend order matches LTR perception */
[dir="rtl"] .donut { transform: scaleX(-1); }

/* =========================================================
   LEGAL PAGES (terms / privacy / data processing / VAT)
   ========================================================= */
.legal-page {
  padding: clamp(48px, 7vw, 80px) 0 var(--section-y);
  background: var(--bg);
}
.legal-shell {
  max-width: 760px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px);
  box-shadow: 0 1px 0 rgba(35, 24, 18, 0.03), 0 24px 48px -32px rgba(35, 24, 18, 0.18);
}
.legal-shell .legal-eyebrow {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-dark);
  font-weight: 600;
}
.legal-shell h1 {
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.1;
  margin-top: 8px;
  letter-spacing: -0.025em;
}
.legal-shell .legal-updated {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.legal-content { font-size: 15.5px; line-height: 1.7; color: var(--ink-2); }
.legal-content[hidden] { display: none; }

.legal-content h2 {
  font-size: 19px;
  margin: 36px 0 12px;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-weight: 600;
}
.legal-content h3 {
  font-size: 16px;
  margin: 22px 0 10px;
  color: var(--ink);
  font-weight: 600;
}
.legal-content p { margin: 0 0 14px; }
.legal-content ul {
  margin: 0 0 18px;
  padding-inline-start: 22px;
  list-style: disc;
}
.legal-content ul li { padding: 3px 0; }
.legal-content ul li::marker { color: var(--brand); }
.legal-content strong { color: var(--ink); font-weight: 600; }
.legal-content a { color: var(--brand-dark); }
.legal-content a:hover { color: var(--brand); }
.legal-content code {
  font-family: var(--font-mono);
  font-size: 13.5px;
  background: var(--bg-2);
  padding: 1px 6px;
  border-radius: 4px;
}

[dir="rtl"] .legal-content { line-height: 1.85; }
[dir="rtl"] .legal-content ul { padding-inline-start: 22px; padding-inline-end: 0; }

/* =========================================================
   COMING SOON page (used until the web app is deployed)
   ========================================================= */
.soon-page {
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--header-h) - 80px);
  padding: clamp(48px, 9vw, 96px) 24px;
  background:
    radial-gradient(700px 360px at 80% -10%, rgba(180, 80, 50, 0.08), transparent 60%),
    radial-gradient(600px 320px at 0% 110%, rgba(180, 80, 50, 0.05), transparent 60%);
}
.soon-card {
  max-width: 600px;
  text-align: center;
}
.soon-card .eyebrow { justify-content: center; }
.soon-card .eyebrow::before { display: none; }
.soon-card .eyebrow {
  background: var(--brand-tint);
  color: var(--brand-dark);
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: 0.06em;
}
.soon-card h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-top: 20px;
  color: var(--ink);
}
[dir="rtl"] .soon-card h1 { letter-spacing: 0; line-height: 1.2; }
.soon-card p.body {
  margin-top: 22px;
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.65;
  color: var(--muted);
  max-width: 520px;
  margin-inline: auto;
}
.soon-actions {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.soon-contact {
  margin-top: 28px;
  font-size: 13.5px;
  color: var(--muted);
}
.soon-contact a {
  color: var(--brand-dark);
  text-decoration: underline;
  text-decoration-color: var(--brand-soft);
  text-underline-offset: 3px;
}
.soon-contact a:hover { color: var(--brand); }
