/* Markaz POS: landing page. Static, no build step. */

/* ---------- Tokens ---------- */
:root {
  --bg: #f7f8fc;
  --bg-tint: #eef2fd;
  --surface: #ffffff;
  --surface-2: #f1f4fa;
  --line: #e2e7f0;
  --line-strong: #cdd5e3;
  --text: #0b1324;
  --muted: #4c576d;
  --primary: #2a55e0;
  --primary-strong: #1c3fb5;
  --primary-ink: #ffffff;
  --primary-soft: #e8eeff;
  --accent: #a64b06;
  --accent-soft: #fff1e0;
  --pay: #0a7542;
  --pay-soft: #e0f4e9;
  --soon: #5b4bc4;
  --soon-soft: #efecfd;
  --band-from: #1b3fb8;
  --band-to: #2f5bea;
  --shadow-sm: 0 1px 2px rgba(11, 19, 36, .06);
  --shadow: 0 1px 2px rgba(11, 19, 36, .05), 0 10px 30px -12px rgba(11, 19, 36, .16);
  --shadow-lg: 0 2px 6px rgba(11, 19, 36, .05), 0 30px 70px -24px rgba(23, 45, 120, .32);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --font: "Inter", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #090e1a;
    --bg-tint: #0f1830;
    --surface: #0f1729;
    --surface-2: #151f36;
    --line: #212d48;
    --line-strong: #2e3c5e;
    --text: #e9edf6;
    --muted: #a2adc3;
    --primary: #7d9aff;
    --primary-strong: #a3b8ff;
    --primary-ink: #08101f;
    --primary-soft: #18224a;
    --accent: #f8b066;
    --accent-soft: #33220f;
    --pay: #45d394;
    --pay-soft: #0e2b1f;
    --soon: #b5a8ff;
    --soon-soft: #221d45;
    --band-from: #162a6e;
    --band-to: #2443b0;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 36px -16px rgba(0, 0, 0, .7);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .4), 0 36px 80px -28px rgba(0, 0, 0, .85);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #090e1a;
  --bg-tint: #0f1830;
  --surface: #0f1729;
  --surface-2: #151f36;
  --line: #212d48;
  --line-strong: #2e3c5e;
  --text: #e9edf6;
  --muted: #a2adc3;
  --primary: #7d9aff;
  --primary-strong: #a3b8ff;
  --primary-ink: #08101f;
  --primary-soft: #18224a;
  --accent: #f8b066;
  --accent-soft: #33220f;
  --pay: #45d394;
  --pay-soft: #0e2b1f;
  --soon: #b5a8ff;
  --soon-soft: #221d45;
  --band-from: #162a6e;
  --band-to: #2443b0;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 36px -16px rgba(0, 0, 0, .7);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .4), 0 36px 80px -28px rgba(0, 0, 0, .85);
  color-scheme: dark;
}
html[lang="ar"] { --font: "IBM Plex Sans Arabic", "Inter", system-ui, "Segoe UI", sans-serif; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
svg { flex: none; }
a { color: var(--primary); }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.4; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.wrap > *, .split > *, .hero-copy { min-width: 0; }
.flip { transition: transform .2s var(--ease); }
[dir="rtl"] .flip { transform: scaleX(-1); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; inset-inline-start: 16px; top: -100px; z-index: 100; background: var(--surface); color: var(--text); padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow); }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 12px;
  font: inherit; font-weight: 650; font-size: 16px; line-height: 1.2;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease), transform .15s var(--ease);
  touch-action: manipulation;
}
.btn svg { width: 20px; height: 20px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--primary-ink); box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 8px 20px -10px var(--primary); }
.btn-primary:hover { background: var(--primary-strong); }
:root[data-theme="dark"] .btn-primary:hover { background: var(--primary-strong); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }

.icon-btn {
  height: 40px; min-width: 40px; padding: 0 10px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background-color .2s var(--ease);
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-sun { display: none; }
:root[data-theme="dark"] .theme-sun { display: block; }
:root[data-theme="dark"] .theme-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-sun { display: block; }
  :root:not([data-theme="light"]) .theme-moon { display: none; }
}

/* Language segmented control */
.seg { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.seg button {
  min-width: 40px; height: 32px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent;
  color: var(--muted); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--primary-soft); color: var(--primary); }
.seg button[lang="ar"] { font-family: "IBM Plex Sans Arabic", sans-serif; font-size: 14px; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(12px);
  backdrop-filter: saturate(1.5) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
.top.scrolled { border-bottom-color: var(--line); }
.top > .wrap { display: flex; align-items: center; gap: 12px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; color: var(--text); text-decoration: none; font-size: 17px; white-space: nowrap; letter-spacing: -0.01em; }
.mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(140deg, #4a74ff, #2448d0); display: grid; place-items: center; box-shadow: 0 6px 14px -6px rgba(42, 85, 224, .7); }
.mark svg { width: 20px; height: 20px; }
.nav { display: none; gap: 4px; margin-inline-start: 24px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 550; padding: 8px 12px; border-radius: 8px; transition: color .2s var(--ease), background-color .2s var(--ease); }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a { white-space: nowrap; }
/* Six header links: tighter below 1440px, and always in French (longer labels). */
@media (min-width: 1040px) and (max-width: 1439px) {
  .nav { margin-inline-start: 12px; gap: 0; }
  .nav a { padding: 8px 8px; font-size: 14px; }
}
@media (min-width: 1440px) {
  html[lang="fr"] .nav { margin-inline-start: 12px; gap: 0; }
  html[lang="fr"] .nav a { padding: 8px 9px; font-size: 14.5px; }
}
@media (min-width: 1040px) and (max-width: 1279px) {
  /* Icon-only Download so six links, the language switch and the theme button fit. */
  .tools .btn-sm { padding: 0 11px; }
  .tools .btn-sm span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.tools { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.tools .seg, .tools #theme, .tools .btn-sm { display: none; }
#menu { display: inline-flex; }
@media (min-width: 640px) { .tools .btn-sm { display: inline-flex; } }
@media (min-width: 1040px) {
  .nav { display: flex; }
  .tools .seg, .tools #theme { display: inline-flex; }
  #menu { display: none; }
}
.mnav {
  display: none; border-top: 1px solid var(--line); background: var(--surface);
  padding: 12px 0 20px; box-shadow: var(--shadow);
}
.mnav.open { display: block; }
.mnav nav { display: grid; }
.mnav nav a { padding: 12px 4px; color: var(--text); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }
.mnav .mrow { display: flex; align-items: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.mnav .mrow .btn { margin-inline-start: auto; }
@media (min-width: 1040px) { .mnav, .mnav.open { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 56px 0 0; overflow: hidden; isolation: isolate; }
@media (min-width: 960px) { .hero { padding: 88px 0 0; } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 50% at 50% 0%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 70%),
    radial-gradient(40% 40% at 85% 30%, color-mix(in srgb, var(--pay) 10%, transparent), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(70% 55% at 50% 10%, #000 20%, transparent 75%);
  mask-image: radial-gradient(70% 55% at 50% 10%, #000 20%, transparent 75%);
}
.hero-copy { text-align: center; max-width: 1040px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  color: var(--text); font-weight: 600; font-size: 14px; text-decoration: none; max-width: 100%;
  transition: border-color .2s var(--ease);
}
[dir="rtl"] .pill { padding: 5px 5px 5px 14px; }
.pill:hover { border-color: var(--line-strong); }
.pill b { background: var(--pay-soft); color: var(--pay); padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill span { overflow: hidden; text-overflow: ellipsis; }
.pill svg { width: 16px; height: 16px; color: var(--muted); }
.hero h1 { font-size: clamp(36px, 6vw, 66px); margin-top: 24px; font-weight: 800; letter-spacing: -0.035em; }
html[lang="ar"] .hero h1 { font-weight: 700; letter-spacing: 0; line-height: 1.3; font-size: clamp(34px, 5.6vw, 62px); }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--primary), color-mix(in srgb, var(--primary) 55%, var(--pay))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 .nb { white-space: nowrap; }
.hero .lead { margin-top: 22px; color: var(--muted); font-size: clamp(17px, 2vw, 20px); max-width: 40em; text-wrap: pretty; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 22px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; font-weight: 500; }
.facts li { display: inline-flex; align-items: center; gap: 6px; }
.facts svg { width: 16px; height: 16px; color: var(--pay); }

.hero-shot { position: relative; max-width: 1080px; margin: 56px auto 0; }
@media (min-width: 960px) { .hero-shot { margin-top: 72px; } }
.hero-shot::before {
  content: ""; position: absolute; inset: 8% 6% -4%; z-index: -1; border-radius: 40px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--primary) 35%, transparent), transparent);
  filter: blur(30px); opacity: .6;
}
.hero-shot .window { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; }
.float {
  position: absolute; z-index: 2; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow-lg);
}
.float-chip, .float-rcpt { display: flex; align-items: center; gap: 12px; padding: 12px 16px; font-size: 14px; }
.float-chip { top: 52%; inset-inline-start: -32px; }
.float-rcpt { top: 64%; inset-inline-end: -40px; }
.float .dot { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.float .dot.g { background: var(--pay-soft); color: var(--pay); }
.float .dot svg { width: 20px; height: 20px; }
.float b { display: block; font-size: 14px; line-height: 1.3; }
.float small { display: block; color: var(--muted); font-size: 13px; line-height: 1.3; }
.float-rcpt .kbd { margin-inline-start: 6px; }
.kbd { display: inline-grid; place-items: center; min-width: 34px; height: 28px; padding: 0 8px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--line-strong); border-bottom-width: 2px; font-size: 12px; font-weight: 750; font-family: "Inter", ui-monospace, monospace; color: var(--text); }
@media (prefers-reduced-motion: no-preference) {
  .float { animation: floaty 7s ease-in-out infinite; }
  .float-rcpt { animation-delay: -3.5s; }
  @keyframes floaty { 50% { transform: translateY(-6px); } }
}
@media (max-width: 1200px) { .float-chip { inset-inline-start: 16px; } .float-rcpt { inset-inline-end: 16px; } }
@media (max-width: 520px) { .pill { font-size: 13px; } }
@media (max-width: 760px) {
  .float-rcpt { display: none; }
  .float-chip { top: auto; bottom: 12px; inset-inline-start: 12px; padding: 8px 12px; gap: 10px; }
  .float-chip .dot { width: 30px; height: 30px; }
  .float b { font-size: 13px; } .float small { font-size: 12px; }
}

/* ---------- Window frame ---------- */
.window {
  border-radius: 14px; overflow: hidden; background: var(--surface);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg);
}
.wbar { display: flex; align-items: center; gap: 10px; height: 36px; padding-inline: 12px 4px; background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--muted); }
.wbar .wm { width: 16px; height: 16px; border-radius: 4px; background: linear-gradient(140deg, #4a74ff, #2448d0); display: grid; place-items: center; }
.wbar .wm svg { width: 11px; height: 11px; }
.wbar .wt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wctl { margin-inline-start: auto; display: flex; }
.wctl span { width: 40px; height: 28px; display: grid; place-items: center; color: var(--muted); }
.wctl svg { width: 11px; height: 11px; }
@media (max-width: 480px) { .wbar { height: 28px; font-size: 11px; } .wctl span { width: 28px; } }

/* ---------- Trust strip ---------- */
.trust { border-block: 1px solid var(--line); background: var(--surface); position: relative; z-index: 1; }
.trust ul { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
@media (min-width: 760px) { .trust ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .trust ul { grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 26px 0; } }
.trust li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.35; min-width: 0; }
.trust svg { width: 22px; height: 22px; color: var(--primary); }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
@media (min-width: 960px) { section { padding: 112px 0; } }
.alt { background: var(--surface); border-block: 1px solid var(--line); }
.sec-head { max-width: 760px; margin-bottom: 48px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }
html[lang="ar"] .kicker { text-transform: none; letter-spacing: 0; font-size: 15px; }
.sec-head h2, .split h2 { font-size: clamp(30px, 4.2vw, 46px); margin-top: 12px; font-weight: 800; }
html[lang="ar"] .sec-head h2, html[lang="ar"] .split h2 { font-weight: 700; }
.sec-head p, .split .sub { margin-top: 16px; color: var(--muted); font-size: 18px; text-wrap: pretty; }

/* Feature rows */
.rows { display: grid; gap: 88px; }
@media (min-width: 960px) { .rows { gap: 128px; } }
.split { display: grid; gap: 36px; align-items: center; }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; }
  .split.rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .split.rev > :first-child { order: 2; }
}
.split h2 { font-size: clamp(28px, 3.4vw, 40px); }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; }
.checks .ck { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--pay-soft); color: var(--pay); margin-top: 1px; flex: none; }
.checks .ck svg { width: 15px; height: 15px; }
.checks b { display: block; font-weight: 650; }
.checks span { color: var(--muted); font-size: 15px; }
.shot { position: relative; }
.shot figcaption { margin-top: 12px; color: var(--muted); font-size: 14px; }
figure { margin: 0; }

/* Feature cards */
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  min-width: 0; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.alt .card { background: var(--bg); }
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.card h3 { font-size: 18px; font-weight: 700; margin-top: 18px; letter-spacing: -0.01em; }
.card p { color: var(--muted); margin-top: 8px; font-size: 15px; }
.ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.ico svg { width: 22px; height: 22px; }
.ico.o { background: var(--accent-soft); color: var(--accent); }
.ico.g { background: var(--pay-soft); color: var(--pay); }

/* Business types */
.types-label { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; margin: 0 0 16px; }
.types-label i { width: 8px; height: 8px; border-radius: 50%; background: var(--pay); }
.types-label.soon i { background: var(--soon); }
.types { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .types { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .types { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.types + .types-label { margin-top: 48px; }
.types-head { display: grid; gap: 32px; align-items: center; margin-bottom: 48px; }
.types-head .sec-head { margin-bottom: 0; }
.types-shot { width: 100%; max-width: 400px; justify-self: center; }
/* The setup screenshot has a wide empty margin; show only the dialog */
.types-shot .crop { position: relative; overflow: hidden; aspect-ratio: 1440 / 2150; border-radius: var(--radius-lg); border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg); background: var(--surface); }
.types-shot .crop img { position: absolute; top: 0; left: -50%; width: 200%; max-width: none; margin-top: -14.2%; }
@media (min-width: 960px) { .types-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; } .types-shot { justify-self: end; } }
/* 11 packs + a wide first card = 12 cells: 2 x 6, 3 x 4 or 4 x 3, always full rows */
.types-now .type-wide { grid-column: span 1; }
@media (min-width: 640px) { .types-now .type-wide { grid-column: span 2; } }
@media (min-width: 1100px) {
  .types-now { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .types-now .type:not(.type-wide) { flex-direction: column; gap: 14px; }
}
.types-now .type-wide { background: linear-gradient(135deg, var(--pay-soft), var(--surface) 70%); }
.types-now .type-wide h3 { font-size: 18px; }
.types-now .type-wide p { font-size: 15px; }
.types-soon { grid-template-columns: 1fr !important; }
.type { display: flex; gap: 16px; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); min-width: 0; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.type:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.type .ico { flex: none; }
.type div { min-width: 0; }
.type h3 { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.type p { margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.type.is-soon { background: transparent; border-style: dashed; }
.type.is-soon .ico { background: var(--soon-soft); color: var(--soon); }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; letter-spacing: 0; }
.tag.now { background: var(--pay-soft); color: var(--pay); }
.tag.soon { background: var(--soon-soft); color: var(--soon); }

/* Built for your trade */
.trades { display: grid; gap: 28px; }
.ttabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ttab {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--muted);
  font: inherit; font-size: 15px; font-weight: 650; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.ttab svg { width: 18px; height: 18px; }
.ttab:hover { color: var(--text); border-color: var(--line-strong); }
.ttab[aria-selected="true"] { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.tpanels { display: grid; gap: 64px; }
.tpanel { display: grid; gap: 28px; align-items: center; }
.tpanel[hidden] { display: none; }
@media (min-width: 960px) { .tpanel { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; } }
.tcopy h3 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 750; }
.tcopy p { margin-top: 12px; color: var(--muted); font-size: 17px; text-wrap: pretty; }
.tpoints { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; font-weight: 600; font-size: 15px; }
.tpoints li { display: flex; gap: 10px; align-items: flex-start; }
.tpoints svg { width: 18px; height: 18px; color: var(--pay); margin-top: 3px; }
.stack { position: relative; display: grid; gap: 14px; min-width: 0; }
@media (min-width: 960px) {
  .stack.two { display: block; padding-bottom: 20%; }
  .stack.two > .window:first-child { width: 86%; }
  .stack.two > .window.sub { position: absolute; bottom: 0; inset-inline-end: 0; width: 58%; }
}

/* Licensing */
.steps { display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.step { position: relative; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); min-width: 0; }
section:not(.alt) .step { background: var(--surface); }
.step::before {
  counter-increment: s; content: counter(s);
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: var(--primary); color: var(--primary-ink); font-weight: 800;
}
.step h3 { margin-top: 18px; font-size: 18px; font-weight: 700; }
.step p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.note {
  margin-top: 20px; padding: 18px 20px; border-radius: var(--radius); background: var(--pay-soft); color: var(--text);
  display: flex; gap: 14px; align-items: flex-start; font-size: 15px;
}
.note svg { width: 22px; height: 22px; color: var(--pay); margin-top: 1px; }

/* Editions */
.plans { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1140px) { .plans { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.plan { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); min-width: 0; }
.alt .plan { background: var(--bg); }
.plan.hi { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow); }
.plan h3 { font-size: 20px; font-weight: 750; }
.plan .for { color: var(--muted); font-size: 14px; line-height: 1.6; min-height: 3.2em; }
.plan .price { font-size: 18px; font-weight: 750; padding-block: 10px; border-block: 1px solid var(--line); }
.plan ul { list-style: none; padding: 0; margin: 6px 0 12px; display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.plan li { display: flex; gap: 8px; align-items: flex-start; }
.plan li svg { width: 16px; height: 16px; color: var(--pay); margin-top: 3px; }
.plan .btn { margin-top: auto; min-height: 44px; font-size: 15px; }
.fine { margin-top: 20px; color: var(--muted); font-size: 14px; }

/* FAQ */
.faq-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 72px; } .faq-grid .sec-head { position: sticky; top: 100px; align-self: start; } }
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 0 20px; transition: border-color .2s var(--ease); }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 650; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 18px; height: 18px; color: var(--primary); transition: transform .2s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding-bottom: 18px; color: var(--muted); }

/* Download band */
.band {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 28px; padding: 44px 24px; color: #fff;
  background: linear-gradient(135deg, var(--band-from), var(--band-to));
  display: grid; gap: 28px; align-items: center;
}
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask-image: radial-gradient(80% 80% at 100% 0%, #000, transparent 70%); mask-image: radial-gradient(80% 80% at 100% 0%, #000, transparent 70%); }
@media (min-width: 900px) { .band { grid-template-columns: minmax(0, 1fr) auto; padding: 64px; } }
.band h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; }
html[lang="ar"] .band h2 { font-weight: 700; }
.band p { color: rgba(255,255,255,.86); margin-top: 10px; font-size: 17px; }
.band .acts { display: flex; flex-wrap: wrap; gap: 12px; }
.band .ver { margin-top: 14px; font-size: 14px; color: rgba(255,255,255,.8); }
@media (min-width: 900px) { .band .ver { text-align: end; } .band .acts { justify-content: flex-end; } }
.band .btn-w { background: #fff; color: #1c3fb5; }
.band .btn-w:hover { background: #eef2ff; }
.band .btn-o { color: #fff; border-color: rgba(255,255,255,.45); background: transparent; }
.band .btn-o:hover { background: rgba(255,255,255,.1); }
.band :focus-visible { outline-color: #fff; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 56px 0 40px; color: var(--muted); font-size: 14px; }
.foot { display: grid; gap: 32px; }
@media (min-width: 760px) { .foot { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); } }
.foot .tagline { margin-top: 14px; max-width: 34em; }
.foot h3 { font-size: 13px; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
html[lang="ar"] .foot h3 { text-transform: none; letter-spacing: 0; font-size: 14px; }
.foot nav { display: grid; gap: 4px; }
.foot nav a { color: var(--muted); text-decoration: none; padding: 4px 0; width: fit-content; }
.foot nav a:hover { color: var(--text); }
.legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* Language-specific images: English shots for en/fr, Arabic shots for ar */
html[lang="ar"] [data-only="en"], html:not([lang="ar"]) [data-only="ar"] { display: none; }
/* Where a French shot exists: "en-only" is English, "fr" is French */
html:not([lang="en"]) [data-only="en-only"], html:not([lang="fr"]) [data-only="fr"] { display: none; }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
