/* ==========================================================================
   Bixlr Emerald — Front-page theme
   A premium, brand-green design system for the Bixlr ERP/CRM SaaS platform.
   Author: built to replace the default "PerfectSaaS" landing.
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');

/* ----------  Design tokens  ---------- */
:root {
  /* Brand — Bixlr olive-green (matches the logo) */
  --brand:        #5E7D3C;   /* primary — logo olive */
  --brand-600:    #4E6B30;   /* hover   */
  --brand-700:    #3F5727;
  --accent:       #7BA34D;   /* leaf green */
  --accent-300:   #B7D08C;
  --accent-100:   #DCE8C6;
  --ink:          #243218;   /* deep olive — hero / footer / dark sections */
  --ink-2:        #2E4220;
  --ink-3:        #3A5329;
  --gold:         #F5B53D;   /* warm accent */
  --gold-600:     #E0A22B;
  --mint:         #F0F4E9;   /* soft sage section tint */
  --mint-2:       #E1EBCF;

  /* Neutrals */
  --paper:        #FFFFFF;
  --text:         #0F1B17;
  --text-2:       #33453E;
  --muted:        #5B6B64;
  --muted-2:      #8A988F;
  --line:         #E3ECE7;
  --line-2:       #EEF4F1;

  /* Effects */
  --radius:       16px;
  --radius-lg:    24px;
  --radius-sm:    10px;
  --shadow-sm:    0 1px 2px rgba(6,35,26,.06), 0 1px 3px rgba(6,35,26,.05);
  --shadow:       0 10px 30px -12px rgba(6,35,26,.18);
  --shadow-lg:    0 30px 60px -20px rgba(6,35,26,.28);
  --shadow-brand: 0 16px 40px -12px rgba(94,125,60,.45);
  --ring:         0 0 0 4px rgba(123,163,77,.22);

  /* Logo wordmark (recreated faithfully with a high-contrast serif) */
  --ff-logo: 'Playfair Display', Georgia, 'Times New Roman', serif;

  --container:    1180px;
  --gutter:       24px;

  --ff-body: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ff-head: 'Sora', var(--ff-body);
}

/* ----------  Reset  ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }

/* ----------  Typography  ---------- */
h1, h2, h3, h4 { font-family: var(--ff-head); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; color: var(--text); }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
h4 { font-size: 1.1rem; }
p  { color: var(--text-2); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--muted); line-height: 1.7; }

/* ----------  Layout helpers  ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-wide { max-width: 1320px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-sm { padding: clamp(48px, 6vw, 80px) 0; }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.maxw-720 { max-width: 720px; }
.maxw-640 { max-width: 640px; }
.mt-2 { margin-top: .5rem; } .mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; } .mt-12 { margin-top: 3rem; }
.grid { display: grid; gap: 24px; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-3 { gap: .75rem; } .gap-4 { gap: 1rem; }
.hide-mobile { }
.relative { position: relative; }

/* ----------  Eyebrow / chips / badges  ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--ff-head);
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand);
  background: var(--mint);
  border: 1px solid var(--mint-2);
  padding: .4rem .85rem; border-radius: 100px;
}
.eyebrow.on-dark { color: var(--accent-300); background: rgba(123,163,77,.1); border-color: rgba(123,163,77,.22); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(123,163,77,.2); }

.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .82rem; font-weight: 600; color: var(--brand-700);
  background: var(--mint); border: 1px solid var(--mint-2);
  padding: .35rem .75rem; border-radius: 100px;
}

/* New Saudi Riyal symbol — official SIL OFL webfont (emran-alhaddad/Saudi-Riyal-Font) */
@font-face {
  font-family: 'saudi_riyal';
  src: url('../fonts/saudi_riyal.woff2') format('woff2'),
       url('../fonts/saudi_riyal.woff') format('woff'),
       url('../fonts/saudi_riyal.ttf') format('truetype');
  font-weight: normal; font-style: normal; font-display: swap;
}
.riyal { font-family: 'saudi_riyal'; font-style: normal; font-weight: normal; line-height: 1; speak: none; -webkit-font-smoothing: antialiased; }
.riyal::before { content: "\e900"; }
.riyal-gap { margin-inline-end: .12em; }
/* Pricing cards: show the Riyal symbol at ~2x for visual balance with the big price */
.plan .price .cur { display: inline-flex; align-items: center; }
.plan .price .riyal { font-size: 2em; vertical-align: middle; }

/* ----------  Buttons  ---------- */
.btn {
  --b: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--ff-head); font-weight: 600; font-size: .98rem;
  padding: .85rem 1.5rem; border-radius: 100px;
  border: 1px solid transparent; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--b); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { background: var(--brand-600); transform: translateY(-2px); box-shadow: 0 20px 44px -12px rgba(94,125,60,.55); }
.btn-gold { background: var(--gold); color: #3a2a00; box-shadow: 0 16px 40px -14px rgba(245,181,61,.6); }
.btn-gold:hover { background: var(--gold-600); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); background: var(--mint); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline-light { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.25); }
.btn-outline-light:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.5); }
.btn-lg { padding: 1.05rem 1.9rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ----------  Header / nav  ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--ff-logo); font-weight: 800; font-size: 1.7rem; letter-spacing: -.005em; color: var(--brand); line-height: 1; }
.brand .mark { display: none; }
.brand .brand-ico { display: inline-block; width: 28px; height: 28px; flex: 0 0 28px; }
.nav-links { display: flex; align-items: center; gap: .35rem; }
.nav-links a {
  font-weight: 500; font-size: .96rem; color: var(--text-2);
  padding: .55rem .85rem; border-radius: 100px; transition: color .15s ease, background .15s ease;
}
.nav-links a:hover { color: var(--brand); background: var(--mint); }
.nav-links a.active { color: var(--brand); font-weight: 600; }
.nav-cta { display: flex; align-items: center; gap: .6rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; color: var(--ink); }

/* mobile menu */
.mobile-menu { display: none; }
@media (max-width: 940px) {
  .nav-links, .nav-cta .btn-login-desktop { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-menu {
    display: block; position: fixed; inset: 76px 0 auto 0; z-index: 99;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 1rem var(--gutter) 1.5rem;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .22s ease;
  }
  .mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .mobile-menu a { display: block; padding: .9rem .5rem; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--line-2); }
  .mobile-menu a:last-of-type { border-bottom: none; }
  .mobile-menu .btn { width: 100%; margin-top: .5rem; }
}

/* ----------  Hero  ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 80% at 85% -10%, rgba(123,163,77,.16), transparent 55%),
    radial-gradient(90% 70% at 0% 0%, rgba(94,125,60,.10), transparent 50%),
    linear-gradient(180deg, #F6FCF9 0%, #FFFFFF 60%);
  padding: clamp(48px, 7vw, 96px) 0 clamp(60px, 8vw, 110px);
}
.hero::before {
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background-image:
    linear-gradient(rgba(94,125,60,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94,125,60,.04) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(circle at 50% 18%, #000, transparent 72%);
          mask-image: radial-gradient(circle at 50% 18%, #000, transparent 72%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { margin-top: 1.1rem; }
.hero h1 .grad { background: linear-gradient(120deg, var(--brand) 10%, var(--accent) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin-top: 1.25rem; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.9rem; }
.hero-trust { display: flex; align-items: center; gap: 1.1rem; margin-top: 1.7rem; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.hero-trust .stars { color: var(--gold); letter-spacing: 2px; }
.avatars { display: flex; }
.avatars span { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff; margin-left: -10px; background: linear-gradient(135deg, var(--accent), var(--brand)); display:grid; place-items:center; color:#fff; font-size:.7rem; font-weight:700; }
.avatars span:first-child { margin-left: 0; }

/* hero visual / app mock */
.hero-visual { position: relative; }
.app-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.app-bar { display: flex; align-items: center; gap: .4rem; padding: .85rem 1rem; border-bottom: 1px solid var(--line-2); background: #fbfdfc; }
.app-bar i { width: 11px; height: 11px; border-radius: 50%; background: #e2e8e5; display:block; }
.app-bar i:nth-child(1){ background:#ff6058;} .app-bar i:nth-child(2){ background:#ffbe2f;} .app-bar i:nth-child(3){ background:#2bca44;}
.app-bar .url { margin-left:.6rem; font-size:.72rem; color:var(--muted-2); background:#fff; border:1px solid var(--line-2); border-radius:100px; padding:.2rem .7rem; }
.app-body { padding: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; background: linear-gradient(180deg,#fff, #f7fcfa); }
.kpi { background:#fff; border:1px solid var(--line); border-radius:14px; padding:14px; box-shadow:var(--shadow-sm); }
.kpi .label { font-size:.72rem; color:var(--muted); font-weight:600; }
.kpi .val { font-family:var(--ff-head); font-weight:800; font-size:1.35rem; margin-top:4px; color:var(--ink); }
.kpi .delta { font-size:.72rem; font-weight:700; margin-top:2px; }
.kpi .delta.up { color: var(--brand); }
.app-chart { grid-column: 1 / -1; background:#fff; border:1px solid var(--line); border-radius:14px; padding:14px 14px 6px; box-shadow:var(--shadow-sm); }
.app-chart .ttl { font-size:.78rem; color:var(--muted); font-weight:600; display:flex; justify-content:space-between; }
.bars { display:flex; align-items:flex-end; gap:10px; height:96px; margin-top:12px; }
.bars span { flex:1; border-radius:6px 6px 0 0; background: linear-gradient(180deg, var(--accent), var(--brand)); opacity:.85; }
.float-badge {
  position:absolute; background:#fff; border:1px solid var(--line); border-radius:14px;
  box-shadow: var(--shadow-lg); padding:.7rem .9rem; display:flex; align-items:center; gap:.6rem; font-size:.82rem; font-weight:600;
}
.float-badge .ic { width:34px; height:34px; border-radius:10px; display:grid; place-items:center; color:#fff; }
.float-badge.b1 { top: -18px; left: -26px; }
.float-badge.b2 { bottom: -22px; right: -18px; }
.float-badge small { display:block; color:var(--muted); font-weight:500; }

/* ----------  Logo / trust strip  ---------- */
.logos { padding: 38px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); background:#fff; }
.logos p { text-align:center; font-size:.82rem; letter-spacing:.08em; text-transform:uppercase; color:var(--muted-2); font-weight:600; }
.logos-row { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap: clamp(24px, 5vw, 60px); margin-top:22px; opacity:.85; }
.logos-row .logo-item { font-family:var(--ff-head); font-weight:800; font-size:1.15rem; color:#9fb0a8; letter-spacing:-.02em; display:flex; align-items:center; gap:.4rem; }
.logos-row .logo-item svg { width:22px; height:22px; }

/* ----------  Section heading  ---------- */
.sec-head { max-width: 680px; margin-inline:auto; text-align:center; margin-bottom: clamp(40px,5vw,64px); }
.sec-head h2 { margin-top: .9rem; }
.sec-head p { margin-top: .9rem; }
.sec-head.left { text-align:left; margin-inline:0; }

/* ----------  Benefit cards  ---------- */
.cards { display:grid; grid-template-columns: repeat(3,1fr); gap:24px; }
.card {
  background:#fff; border:1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--mint-2); }
.card .ic {
  width:52px; height:52px; border-radius:14px; display:grid; place-items:center; margin-bottom:18px;
  background: linear-gradient(135deg, var(--mint), #fff); border:1px solid var(--mint-2); color: var(--brand);
}
.card .ic svg { width:26px; height:26px; }
.card h3 { font-size: 1.2rem; }
.card p { margin-top:.6rem; font-size:.96rem; }
.card .more { display:inline-flex; align-items:center; gap:.35rem; margin-top:1rem; color:var(--brand); font-weight:600; font-size:.9rem; }
.card .more svg { width:16px; height:16px; transition: transform .18s ease; }
.card:hover .more svg { transform: translateX(3px); }

/* feature card with accent top */
.card.accent::after { content:""; position:absolute; inset:0 0 auto 0; height:4px; background:linear-gradient(90deg,var(--brand),var(--accent)); transform:scaleX(0); transform-origin:left; transition:transform .25s ease; }
.card.accent:hover::after { transform:scaleX(1); }

/* ----------  Split feature rows  ---------- */
.split { display:grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items:center; }
.split.reverse .split-media { order: 2; }
.split-media {
  border-radius: var(--radius-lg); border:1px solid var(--line); overflow:hidden;
  background: linear-gradient(160deg, var(--mint), #fff); box-shadow: var(--shadow);
  aspect-ratio: 4/3; position:relative;
}
.split-media img { position:relative; z-index:1; width:100%; height:100%; object-fit:cover; display:block; }
.split-media.split-photo { position:relative; background: linear-gradient(160deg, var(--mint), #fff); }
.split-photo-fallback { position:absolute; inset:0; z-index:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.8rem; color:var(--brand); text-align:center; padding:24px; }
.split-photo-fallback svg { width:64px; height:64px; opacity:.8; }
.split-photo-fallback span { font-family:var(--ff-head); font-weight:600; font-size:1rem; color:var(--brand-700); }
.split ul.ticks { margin-top:1.4rem; display:grid; gap:.85rem; }
.ticks li { display:flex; gap:.7rem; align-items:flex-start; color:var(--text-2); font-weight:500; }
.ticks li svg { flex:0 0 22px; width:22px; height:22px; color:var(--brand); margin-top:1px; }

/* mock inside split media */
.mock-pad { position:absolute; inset:22px; background:#fff; border:1px solid var(--line); border-radius:16px; box-shadow:var(--shadow); padding:16px; display:flex; flex-direction:column; gap:12px; }
.mock-row { display:flex; align-items:center; gap:10px; }
.mock-dot { width:30px; height:30px; border-radius:9px; background:linear-gradient(135deg,var(--accent),var(--brand)); flex:0 0 30px; }
.mock-line { height:9px; border-radius:6px; background:var(--line); flex:1; }
.mock-line.short { width:55%; flex:none; }
.mock-pill { height:24px; border-radius:7px; background:var(--mint); border:1px solid var(--mint-2); }

/* ----------  Stats band  ---------- */
.stats {
  background:
    radial-gradient(80% 120% at 10% 0%, rgba(123,163,77,.25), transparent 45%),
    radial-gradient(90% 140% at 100% 100%, rgba(245,181,61,.14), transparent 50%),
    var(--ink);
  color:#fff; border-radius: var(--radius-lg);
}
.stats .grid { grid-template-columns: repeat(4,1fr); gap: 12px; text-align:center; }
.stat .num { font-family:var(--ff-head); font-weight:800; font-size: clamp(2.2rem,4vw,3.1rem); background:linear-gradient(120deg,#fff,var(--accent-300)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.stat .lbl { color: rgba(255,255,255,.7); margin-top:.3rem; font-size:.95rem; }

/* ----------  Modules showcase  ---------- */
.mod-tabs { display:flex; flex-wrap:wrap; gap:.5rem; justify-content:center; margin-bottom: 36px; }
.mod-tab {
  font-family:var(--ff-head); font-weight:600; font-size:.9rem; color:var(--text-2);
  background:#fff; border:1px solid var(--line); padding:.6rem 1.1rem; border-radius:100px; transition:.18s ease;
}
.mod-tab:hover { border-color:var(--brand); color:var(--brand); }
.mod-tab.active { background:var(--ink); color:#fff; border-color:var(--ink); }

.mod-grid { display:grid; grid-template-columns: repeat(3,1fr); gap:20px; }
.mod {
  display:flex; gap:14px; padding:20px; background:#fff; border:1px solid var(--line);
  border-radius: var(--radius); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.mod:hover { transform:translateY(-3px); box-shadow:var(--shadow); border-color:var(--mint-2); }
.mod .ic { flex:0 0 46px; width:46px; height:46px; border-radius:12px; display:grid; place-items:center; background:var(--mint); color:var(--brand); border:1px solid var(--mint-2); }
.mod .ic svg { width:23px; height:23px; }
.mod h4 { font-family:var(--ff-head); font-size:1.02rem; }
.mod p { font-size:.88rem; margin-top:.25rem; color:var(--muted); line-height:1.55; }
.mod-cat-title { grid-column:1/-1; display:flex; align-items:center; gap:.7rem; margin-top:18px; }
.mod-cat-title:first-child { margin-top:0; }
.mod-cat-title h3 { font-size:1.25rem; }
.mod-cat-title .ln { flex:1; height:1px; background:var(--line); }
.mod-cat-title .badge-count { font-size:.78rem; font-weight:700; color:var(--brand); background:var(--mint); border:1px solid var(--mint-2); padding:.2rem .6rem; border-radius:100px; }

/* bento highlights */
.bento { display:grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap:18px; }
.bento .cell { background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:22px; position:relative; overflow:hidden; transition:.2s ease; }
.bento .cell:hover { box-shadow:var(--shadow); transform:translateY(-3px); }
.bento .cell .ic { width:44px;height:44px;border-radius:12px;display:grid;place-items:center;background:var(--mint);color:var(--brand);border:1px solid var(--mint-2);margin-bottom:12px;}
.bento .cell .ic svg{width:22px;height:22px;}
.bento .cell h4 { font-size:1.05rem; }
.bento .cell p { font-size:.86rem; margin-top:.3rem; color:var(--muted); }
.bento .w2 { grid-column: span 2; }
.bento .h2 { grid-row: span 2; }
.bento .dark { background: var(--ink); color:#fff; border-color:var(--ink); }
.bento .dark .ic { background: rgba(123,163,77,.16); color:var(--accent-300); border-color:rgba(123,163,77,.25); }
.bento .dark p { color: rgba(255,255,255,.7); }
.bento .gold { background: linear-gradient(150deg, #FFF7E6, #fff); border-color:#FBE7B8; }
.bento .gold .ic { background:#FCEFC9; color:var(--gold-600); border-color:#FBE7B8; }

/* ----------  Testimonials  ---------- */
.testi-grid { display:grid; grid-template-columns: repeat(3,1fr); gap:24px; }
.testi { background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:28px; display:flex; flex-direction:column; }
.testi .stars { color:var(--gold); letter-spacing:2px; font-size:.95rem; }
.testi blockquote { margin:14px 0 0; font-size:1.02rem; color:var(--text); line-height:1.65; }
.testi .who { display:flex; align-items:center; gap:.8rem; margin-top:auto; padding-top:20px; }
.testi .who .ava { width:44px;height:44px;border-radius:50%;background:linear-gradient(135deg,var(--accent),var(--brand));display:grid;place-items:center;color:#fff;font-weight:700; }
.testi .who .nm { font-family:var(--ff-head); font-weight:700; font-size:.95rem; }
.testi .who .rl { font-size:.82rem; color:var(--muted); }

/* ----------  Integrations marquee  ---------- */
.integrations { background: var(--mint); }
.pill-cloud { display:flex; flex-wrap:wrap; gap:12px; justify-content:center; max-width:880px; margin:0 auto; }
.pill-cloud .pill { background:#fff; border:1px solid var(--mint-2); border-radius:100px; padding:.6rem 1.1rem; font-weight:600; font-size:.9rem; color:var(--brand-700); display:flex; align-items:center; gap:.5rem; box-shadow:var(--shadow-sm); }
.pill-cloud .pill svg { width:16px; height:16px; color:var(--brand); }

/* ----------  Pricing  ---------- */
.toggle-wrap { display:flex; align-items:center; justify-content:center; gap:.9rem; margin-bottom:40px; }
.toggle { position:relative; width:58px; height:32px; border-radius:100px; background:var(--ink); border:none; padding:0; }
.toggle .knob { position:absolute; top:3px; left:3px; width:26px; height:26px; border-radius:50%; background:#fff; transition:.2s ease; }
.toggle.on .knob { left:29px; }
.toggle-wrap .lbl { font-weight:600; color:var(--muted); }
.toggle-wrap .lbl.active { color:var(--text); }
.save-badge { font-size:.78rem; font-weight:700; color:var(--brand); background:var(--mint); border:1px solid var(--mint-2); padding:.2rem .55rem; border-radius:100px; }

.price-grid { display:grid; grid-template-columns: repeat(3,1fr); gap:24px; align-items:stretch; }
.plan { background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg); padding:32px; display:flex; flex-direction:column; position:relative; }
.plan.featured { border-color:var(--brand); box-shadow:var(--shadow-lg); transform:translateY(-8px); }
.plan.featured::before { content:"Most popular"; position:absolute; top:-13px; left:50%; transform:translateX(-50%); background:var(--brand); color:#fff; font-size:.74rem; font-weight:700; letter-spacing:.04em; padding:.3rem .9rem; border-radius:100px; }
.plan .pname { font-family:var(--ff-head); font-weight:700; font-size:1.25rem; }
.plan .pdesc { font-size:.9rem; color:var(--muted); margin-top:.3rem; min-height:42px; }
.plan .price { font-family:var(--ff-head); font-weight:800; font-size:2.8rem; margin-top:14px; color:var(--ink); display:flex; align-items:baseline; gap:.3rem; }
.plan .price .cur { font-size:1.3rem; color:var(--muted); }
.plan .price .per { font-size:.9rem; font-weight:600; color:var(--muted); }
.plan .feat { display:grid; gap:.7rem; margin:22px 0; }
.plan .feat li { display:flex; gap:.6rem; align-items:flex-start; font-size:.92rem; color:var(--text-2); }
.plan .feat li svg { flex:0 0 20px; width:20px; height:20px; color:var(--brand); }
.plan .feat li.off { color:var(--muted-2); }
.plan .feat li.off svg { color:var(--muted-2); }
.plan .btn { margin-top:auto; }
.price-amt[data-yearly]{ }

/* ----------  Comparison table  ---------- */
.cmp { width:100%; border-collapse:collapse; background:#fff; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
.cmp th, .cmp td { padding:16px 20px; text-align:left; border-bottom:1px solid var(--line-2); font-size:.92rem; }
.cmp thead th { font-family:var(--ff-head); background:var(--mint); color:var(--ink); }
.cmp td:not(:first-child), .cmp th:not(:first-child) { text-align:center; }
.cmp tbody tr:last-child td { border-bottom:none; }
.cmp .yes { color:var(--brand); }
.cmp .no { color:var(--muted-2); }
.cmp td svg { width:20px; height:20px; display:inline; }

/* ----------  FAQ  ---------- */
.faq { max-width:780px; margin-inline:auto; display:grid; gap:14px; }
.qa { background:#fff; border:1px solid var(--line); border-radius:14px; overflow:hidden; transition:border-color .18s ease, box-shadow .18s ease; }
.qa.open { border-color:var(--mint-2); box-shadow:var(--shadow-sm); }
.qa-q { width:100%; text-align:left; background:none; border:none; padding:20px 22px; font-family:var(--ff-head); font-weight:600; font-size:1.02rem; color:var(--text); display:flex; justify-content:space-between; align-items:center; gap:1rem; }
.qa-q .pm { flex:0 0 24px; width:24px; height:24px; border-radius:50%; background:var(--mint); color:var(--brand); display:grid; place-items:center; transition:.2s ease; }
.qa.open .qa-q .pm { background:var(--brand); color:#fff; transform:rotate(45deg); }
.qa-a { max-height:0; overflow:hidden; transition:max-height .28s ease; }
.qa-a p { padding:0 22px 20px; color:var(--muted); font-size:.95rem; }

/* ----------  CTA band  ---------- */
.cta {
  position:relative; overflow:hidden; border-radius: var(--radius-lg); color:#fff;
  background:
    radial-gradient(70% 130% at 0% 0%, rgba(123,163,77,.35), transparent 50%),
    radial-gradient(80% 130% at 100% 100%, rgba(245,181,61,.18), transparent 50%),
    linear-gradient(120deg, var(--ink-2), var(--ink));
  padding: clamp(44px, 6vw, 72px);
  text-align:center;
}
.cta::after{ content:""; position:absolute; inset:0; background-image:linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px); background-size:40px 40px; -webkit-mask-image:radial-gradient(circle at 50% 50%, #000, transparent 75%); mask-image:radial-gradient(circle at 50% 50%, #000, transparent 75%);}
.cta > * { position:relative; z-index:1; }
.cta h2 { color:#fff; }
.cta p { color:rgba(255,255,255,.78); margin-top:.9rem; }
.cta .hero-actions { justify-content:center; }

/* ----------  Page hero (inner pages)  ---------- */
.page-hero {
  background:
    radial-gradient(90% 90% at 100% -20%, rgba(123,163,77,.14), transparent 55%),
    linear-gradient(180deg, #F6FCF9, #fff);
  padding: clamp(56px, 8vw, 92px) 0 clamp(40px, 5vw, 64px);
  text-align:center; border-bottom:1px solid var(--line-2);
}
.page-hero h1 { margin-top:1rem; }
.page-hero p { margin-top:1rem; }
.breadcrumb { display:flex; gap:.5rem; justify-content:center; font-size:.85rem; color:var(--muted); }
.breadcrumb a:hover { color:var(--brand); }

/* ----------  Footer  ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 72px 0 32px; }
.footer-grid { display:grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap:40px; }
.footer-brand .brand { color:#fff; }
.footer-brand p { color: rgba(255,255,255,.6); margin-top:1rem; max-width:320px; font-size:.92rem; }
.footer-social { display:flex; gap:.6rem; margin-top:1.4rem; }
.footer-social a { width:38px; height:38px; border-radius:10px; background:rgba(255,255,255,.07); display:grid; place-items:center; color:#fff; transition:.18s ease; }
.footer-social a:hover { background:var(--brand); transform:translateY(-2px); }
.footer-social svg { width:18px; height:18px; }
.footer-col h5 { font-family:var(--ff-head); color:#fff; font-size:.95rem; margin-bottom:1rem; }
.footer-col a { display:block; padding:.4rem 0; color:rgba(255,255,255,.62); font-size:.92rem; transition:color .15s ease; }
.footer-col a:hover { color:var(--accent-300); }
.footer-bottom { display:flex; justify-content:space-between; align-items:center; gap:1rem; flex-wrap:wrap; margin-top:54px; padding-top:24px; border-top:1px solid rgba(255,255,255,.1); font-size:.85rem; color:rgba(255,255,255,.5); }
.footer-bottom .made { display:flex; align-items:center; gap:.4rem; }
.footer-bottom .made .flag { width:18px; height:13px; border-radius:2px; overflow:hidden; display:inline-block; }

/* ----------  Forms  ---------- */
.form-card { background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg); padding: clamp(24px,4vw,40px); box-shadow:var(--shadow); }
.field { margin-bottom:18px; }
.field label { display:block; font-family:var(--ff-head); font-weight:600; font-size:.88rem; color:var(--text); margin-bottom:.5rem; }
.field label .req { color:#e0533d; }
.field .control { width:100%; font-family:var(--ff-body); font-size:.98rem; color:var(--text); background:#fff; border:1px solid var(--line); border-radius:12px; padding:.85rem 1rem; transition:border-color .15s ease, box-shadow .15s ease; }
.field .control::placeholder { color:var(--muted-2); }
.field .control:focus { outline:none; border-color:var(--brand); box-shadow:var(--ring); }
.field textarea.control { resize:vertical; min-height:130px; }
.field-row { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
@media (max-width:560px){ .field-row{ grid-template-columns:1fr; } }
.contact-info-card { display:flex; gap:1rem; align-items:flex-start; padding:20px; background:#fff; border:1px solid var(--line); border-radius:var(--radius); transition:.18s ease; }
.contact-info-card:hover { box-shadow:var(--shadow); border-color:var(--mint-2); }
.contact-info-card .ic { flex:0 0 46px; width:46px; height:46px; border-radius:12px; display:grid; place-items:center; background:var(--mint); color:var(--brand); border:1px solid var(--mint-2); }
.contact-info-card .ic svg { width:22px; height:22px; }
.contact-info-card h4 { font-family:var(--ff-head); font-size:1rem; }
.contact-info-card p, .contact-info-card a { font-size:.92rem; color:var(--muted); margin-top:.2rem; }
.contact-info-card a:hover { color:var(--brand); }

/* ----------  Reveal animation  ---------- */
[data-reveal] { opacity:0; transform: translateY(22px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
[data-reveal].in { opacity:1; transform:none; }
[data-reveal][data-delay="1"]{ transition-delay:.08s;}
[data-reveal][data-delay="2"]{ transition-delay:.16s;}
[data-reveal][data-delay="3"]{ transition-delay:.24s;}
[data-reveal][data-delay="4"]{ transition-delay:.32s;}
@media (prefers-reduced-motion: reduce){ [data-reveal]{opacity:1;transform:none;transition:none;} html{scroll-behavior:auto;} }

/* ==========================================================================
   i18n — language switcher + Arabic / RTL
   ========================================================================== */
/* language toggle button (header + mobile) */
.lang-toggle {
  display:inline-flex; align-items:center; gap:.4rem;
  font-family: var(--ff-head); font-weight:600; font-size:.9rem;
  color: var(--brand); background: var(--mint); border:1px solid var(--mint-2);
  padding:.5rem .85rem; border-radius:100px; cursor:pointer; transition:.18s ease; line-height:1;
}
.lang-toggle:hover { background:#fff; border-color:var(--brand); transform:translateY(-1px); }
.lang-toggle svg { width:16px; height:16px; }

/* country / market switcher (Bixlr-Travel style) */
.country-switch { position:relative; display:inline-flex; }
.cs-trigger { display:inline-flex; align-items:center; gap:7px; background:var(--mint); border:1px solid var(--mint-2);
  color:var(--brand); cursor:pointer; font:inherit; font-weight:600; padding:.5rem .8rem; border-radius:100px; line-height:1; transition:.18s ease; }
.cs-trigger:hover { background:#fff; border-color:var(--brand); transform:translateY(-1px); }
.cs-trigger .chev { width:10px; height:6px; opacity:.7; transition:transform .18s ease; }
.cs-trigger[aria-expanded="true"] .chev { transform:rotate(180deg); }
.cs-menu { position:absolute; inset-block-start:calc(100% + 8px); inset-inline-end:0; z-index:200; min-inline-size:248px;
  display:flex; flex-direction:column; gap:2px; padding:8px; background:#fff; border:1px solid var(--line);
  border-radius:var(--radius-lg); box-shadow:var(--shadow-lg); animation:cs-in .14s ease; }
.cs-menu[hidden] { display:none; }
@keyframes cs-in { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:none; } }
.cs-section { font-size:.7rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--muted-2); padding:8px 11px 4px; }
.cs-item { display:flex; align-items:center; gap:11px; padding:9px 11px; border-radius:11px; cursor:pointer;
  transition:background .14s ease; border:0; background:none; width:100%; font:inherit; text-align:start; }
.cs-item:hover { background:var(--mint); }
.cs-item.is-active { background:var(--mint); }
.cs-code { font-weight:700; font-size:.92rem; letter-spacing:.03em; color:var(--text); }
.cs-name { flex:1; font-weight:500; color:var(--text); font-size:.9rem; }
.cs-cur { color:var(--muted); font-size:.78rem; font-weight:700; }
.cs-check { color:var(--brand); font-weight:800; }
.flag { display:inline-block; width:22px; height:16px; border-radius:3px; object-fit:cover; box-shadow:0 0 0 1px rgba(10,20,16,.08); vertical-align:-3px; }
.cs-langs { display:flex; gap:6px; padding:8px 6px 4px; margin-block-start:4px; border-block-start:1px solid var(--line-2); }
.cs-lang { flex:1; padding:.5rem; border:1px solid var(--line); background:#fff; border-radius:10px; cursor:pointer;
  font:inherit; font-weight:600; font-size:.85rem; color:var(--text-2); transition:.14s ease; }
.cs-lang:hover { border-color:var(--brand); color:var(--brand); }
.cs-lang.is-active { background:var(--brand); color:#fff; border-color:var(--brand); }
[dir="rtl"] .cs-menu { inset-inline-end:auto; inset-inline-start:0; }

/* country show/hide by market — reliable regardless of element display type */
[hidden] { display:none !important; }
/* keep the two header controls (Language, then Country) tidy side-by-side */
.nav-cta { display:flex; align-items:center; gap:.55rem; }
.nav-cta .lang-toggle + .country-switch { margin-inline-start:-.1rem; }
/* in the mobile menu the controls stack — give the country switcher room */
.mobile-menu .country-switch { display:flex; }
.mobile-menu .country-switch .cs-trigger { width:100%; justify-content:flex-start; }
.mobile-menu .cs-menu { position:static; box-shadow:none; border-color:var(--line-2); margin-top:6px; }

/* Arabic typography when the document is in Arabic */
html[lang="ar"] body,
html[lang="ar"] .btn,
html[lang="ar"] .eyebrow,
html[lang="ar"] .chip,
html[lang="ar"] .nav-links a,
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4, html[lang="ar"] h5,
html[lang="ar"] .sec-head h2, html[lang="ar"] .mod h4, html[lang="ar"] .plan .pname,
html[lang="ar"] .qa-q, html[lang="ar"] .testi .who .nm, html[lang="ar"] .stat .num {
  font-family: 'Tajawal', 'Inter', system-ui, sans-serif;
}
/* keep the Latin wordmark in its serif always */
html[lang="ar"] .brand { font-family: var(--ff-logo); }
html[lang="ar"] { letter-spacing: 0 !important; }
/* translate the CSS-generated "Most popular" pricing badge */
html[lang="ar"] .plan.featured::before { content: "الأكثر شيوعًا"; }

/* ---- RTL layout flips ---- */
[dir="rtl"] .lead, [dir="rtl"] .hero-copy, [dir="rtl"] .split-copy,
[dir="rtl"] .sec-head.left, [dir="rtl"] .footer-brand p { text-align: right; }
[dir="rtl"] .avatars span { margin-left: 0; margin-right: -10px; }
[dir="rtl"] .avatars span:first-child { margin-right: 0; }
[dir="rtl"] .float-badge.b1 { left: auto; right: -26px; }
[dir="rtl"] .float-badge.b2 { right: auto; left: -18px; }
/* directional icons (arrows/chevrons) mirror in RTL */
[dir="rtl"] .btn svg, [dir="rtl"] .more svg, [dir="rtl"] .breadcrumb, [dir="rtl"] .hero-actions .btn svg { }
[dir="rtl"] .more svg, [dir="rtl"] .btn:not(.lang-toggle) svg.dir-ico { transform: scaleX(-1); }
[dir="rtl"] .card:hover .more svg { transform: scaleX(-1) translateX(3px); }
/* table + lists */
[dir="rtl"] .cmp th, [dir="rtl"] .cmp td { text-align: right; }
[dir="rtl"] .cmp td:not(:first-child), [dir="rtl"] .cmp th:not(:first-child) { text-align: center; }
[dir="rtl"] .plan .feat li svg, [dir="rtl"] .ticks li svg { } /* flex gap handles spacing */
/* pricing toggle knob */
[dir="rtl"] .toggle .knob { left: auto; right: 3px; }
[dir="rtl"] .toggle.on .knob { right: 29px; }
/* app mock url chip */
[dir="rtl"] .app-bar .url { margin-left: 0; margin-right: .6rem; }
/* breadcrumb separators read naturally in rtl via dir; ensure inline-flex wrap */
[dir="rtl"] .breadcrumb { direction: rtl; }

/* ----------  Responsive  ---------- */
@media (max-width: 1024px) {
  .cards, .mod-grid, .testi-grid { grid-template-columns: repeat(2,1fr); }
  .bento { grid-template-columns: repeat(2,1fr); }
  .price-grid { grid-template-columns: 1fr; max-width:460px; margin-inline:auto; }
  .plan.featured { transform:none; }
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap:48px; }
  .hero-visual { max-width:520px; }
  .split { grid-template-columns: 1fr; gap:40px; }
  .split.reverse .split-media { order:0; }
  .stats .grid { grid-template-columns: repeat(2,1fr); gap:28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap:32px; }
  .footer-brand { grid-column:1/-1; }
}
@media (max-width: 560px) {
  .cards, .mod-grid, .testi-grid, .bento { grid-template-columns: 1fr; }
  .stats .grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn, .cta .btn { width:100%; }
  .float-badge { display:none; }
}
