/* =========================================================================
   ريال بريال — Design system & components
   Tokens → base → layout → components → sections → utilities.
   Light / dark themes are driven by [data-theme] on <html> (see theme.js).
   ========================================================================= */

/* ---------- Fonts: Cairo (Arabic) + Inter (Latin & digits), self-hosted variable ---------- */
@font-face {
  font-family: "Cairo";
  src: url("/fonts/cairo-arabic-var.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Design tokens ---------- */
:root {
  color-scheme: light;
  --font: "Inter", "Cairo", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;

  /* Neutrals (zinc) */
  --bg: #fafafa;            /* zinc-50 */
  --bg-elev: #ffffff;
  --surface: #ffffff;
  --surface-2: #f4f4f5;     /* zinc-100 */
  --surface-3: #e4e4e7;
  --border: #e4e4e7;        /* zinc-200 */
  --border-strong: #d4d4d8; /* zinc-300 */
  --text: #09090b;          /* zinc-950 */
  --text-2: #3f3f46;        /* zinc-700 */
  --text-3: #71717a;        /* zinc-500 */

  /* The one primary (CTA) colour: emerald */
  --primary: #047857;       /* emerald-700 */
  --primary-hover: #065f46; /* emerald-800 */
  --on-primary: #ffffff;
  --primary-soft: #ecfdf5;  /* emerald-50 */
  --primary-soft-2: #d1fae5;
  --primary-text: #047857;
  --ring: rgba(4, 120, 87, .32);

  /* Elevation: soft, layered */
  --shadow-xs: 0 1px 2px rgba(9, 9, 11, .05);
  --shadow-sm: 0 1px 2px rgba(9, 9, 11, .04), 0 2px 6px -1px rgba(9, 9, 11, .05);
  --shadow-md: 0 1px 2px rgba(9, 9, 11, .04), 0 6px 16px -4px rgba(9, 9, 11, .07), 0 16px 32px -12px rgba(9, 9, 11, .08);
  --shadow-lg: 0 1px 3px rgba(9, 9, 11, .05), 0 12px 28px -6px rgba(9, 9, 11, .10), 0 32px 64px -24px rgba(9, 9, 11, .14);

  /* Shape & motion */
  --r-sm: 8px;
  --r-md: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: 150ms;
  --t: 200ms;
  --t-slow: 300ms;

  --header-h: 64px;
  --container: 1120px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #09090b;            /* zinc-950 */
  --bg-elev: #111113;
  --surface: #131316;
  --surface-2: #1c1c21;
  --surface-3: #27272a;
  --border: #27272a;        /* zinc-800 */
  --border-strong: #3f3f46;
  --text: #fafafa;
  --text-2: #d4d4d8;        /* zinc-300 */
  --text-3: #a1a1aa;        /* zinc-400 */

  --primary: #34d399;       /* emerald-400 */
  --primary-hover: #6ee7b7; /* emerald-300 */
  --on-primary: #022c22;    /* emerald-950 */
  --primary-soft: rgba(52, 211, 153, .10);
  --primary-soft-2: rgba(52, 211, 153, .16);
  --primary-text: #6ee7b7;
  --ring: rgba(52, 211, 153, .35);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4), 0 2px 8px -2px rgba(0, 0, 0, .35);
  --shadow-md: 0 1px 2px rgba(0, 0, 0, .45), 0 8px 24px -6px rgba(0, 0, 0, .5);
  --shadow-lg: 0 1px 3px rgba(0, 0, 0, .5), 0 16px 40px -8px rgba(0, 0, 0, .6), 0 40px 80px -32px rgba(0, 0, 0, .6);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ul { margin: 0; }
bdi, [dir="ltr"] { unicode-bidi: isolate; }
::selection { background: var(--primary-soft-2); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: var(--r-sm); }

/* Theme switch without a colour flash on every element */
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after {
  transition: background-color var(--t-slow) var(--ease), border-color var(--t-slow) var(--ease), color var(--t-slow) var(--ease) !important;
}

/* ---------- Typography scale ---------- */
.h1, .h2 { text-wrap: balance; }
.h1 { font-size: clamp(2.125rem, 6vw, 3.75rem); line-height: 1.22; font-weight: 800; letter-spacing: -.01em; }
.h2 { font-size: clamp(1.625rem, 3.6vw, 2.375rem); line-height: 1.3; font-weight: 700; letter-spacing: -.005em; }
.h3 { font-size: 1.125rem; line-height: 1.5; font-weight: 700; }
.lead { font-size: clamp(1.0625rem, 1.9vw, 1.25rem); line-height: 1.8; color: var(--text-2); font-weight: 400; }
.body { color: var(--text-2); }
.muted { color: var(--text-3); font-size: .9375rem; }
.accent { color: var(--primary-text); }
.ltr { direction: ltr; unicode-bidi: isolate; font-family: "Inter", var(--font); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: clamp(64px, 9vw, 112px); }
.section + .section { border-top: 1px solid var(--border); }
.section-head { max-width: 680px; margin-inline: auto; text-align: center; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head .h2 { margin-top: 12px; }
.section-head .lead { margin-top: 12px; font-size: 1.0625rem; }

/* ---------- Icon ---------- */
.ic { width: 1.25em; height: 1.25em; flex: none; }
.ic-sm { width: 1em; height: 1em; flex: none; }
.ic-lg { width: 24px; height: 24px; flex: none; }
.flip-rtl { transform: scaleX(-1); }

/* ---------- Pill / badge ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px;
  font-size: .8125rem; font-weight: 600; line-height: 1.6;
  color: var(--primary-text); background: var(--primary-soft);
  border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
}
.pill-neutral { color: var(--text-2); background: var(--surface); border-color: var(--border); box-shadow: var(--shadow-xs); }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft-2); }

/* ---------- Buttons ---------- */
.btn {
  --btn-h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--btn-h); padding: 0 18px;
  border-radius: var(--r-sm); border: 1px solid transparent;
  font-size: .9375rem; font-weight: 600; line-height: 1.3; white-space: nowrap;
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease), box-shadow var(--t) var(--ease), transform var(--t-fast) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active:not([disabled]) { transform: translateY(1px); }
.btn-lg { --btn-h: 52px; padding: 0 22px; font-size: 1rem; }
.btn-sm { --btn-h: 38px; padding: 0 12px; font-size: .875rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, .12); }
.btn-primary:hover { background: var(--primary-hover); box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, .12); }

.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); box-shadow: var(--shadow-xs); }
.btn-secondary:hover { border-color: var(--border-strong); background: var(--surface-2); }

.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }

.btn[disabled], .btn.is-inactive { opacity: .55; cursor: not-allowed; box-shadow: none; }
.btn[disabled]:hover { background: var(--surface); border-color: var(--border); }

/* Two-line Telegram button: label + full link (Ayoub rule: link always visible) */
.btn-stack { padding-block: 8px; text-align: start; }
.btn-stack .stack { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.35; }
.btn-stack .url { font-size: .75rem; font-weight: 500; opacity: .85; direction: ltr; font-family: "Inter", var(--font); }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: var(--r-sm);
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease);
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); }
.icon-btn .ic { width: 20px; height: 20px; }

/* Theme toggle: show the icon of the theme you would switch to */
.theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; }
[data-theme="dark"] .theme-toggle .i-moon { display: none; }

/* ---------- Header (glass, sticky) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.site-header .bar { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.125rem; letter-spacing: -.01em; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r-sm);
  background: var(--primary); color: var(--on-primary);
  font-size: 1.125rem; font-weight: 800; line-height: 1;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.brand-sub { font-family: "Inter", var(--font); font-size: .8125rem; font-weight: 500; color: var(--text-3); }
.nav { display: none; align-items: center; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: var(--r-sm); font-size: .9375rem; font-weight: 500; color: var(--text-2); transition: color var(--t) var(--ease), background-color var(--t) var(--ease); }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions .hide-sm { display: none; }

/* Mobile menu */
.menu-toggle .i-x { display: none; }
.menu-open .menu-toggle .i-x { display: block; }
.menu-open .menu-toggle .i-list { display: none; }
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
  padding: 12px 20px 20px;
  background: color-mix(in srgb, var(--bg) 97%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden;
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility 0s linear var(--t);
}
.menu-open .mobile-menu { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.mobile-menu a.link { display: flex; align-items: center; justify-content: space-between; padding: 12px 4px; font-weight: 600; border-bottom: 1px solid var(--border); color: var(--text); }
.mobile-menu a.link .ic { color: var(--text-3); }
.mobile-menu .actions { display: grid; gap: 10px; margin-top: 16px; }


/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(40px, 8vw, 104px) clamp(48px, 7vw, 96px); }
.hero::before { /* calm grid, faded at the edges */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: linear-gradient(to right, var(--border) 1px, transparent 1px), linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 0%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 0%, #000 25%, transparent 75%);
  opacity: .5;
}
.hero::after { /* soft primary glow */
  content: ""; position: absolute; z-index: -1; inset-inline: 0; top: -260px; height: 560px; margin-inline: auto; max-width: 960px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--primary) 14%, transparent), transparent);
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero-copy { text-align: center; }
.hero-copy .h1 { margin-top: 20px; }
.hero-copy .tagline { margin-top: 6px; font-size: clamp(1.25rem, 3vw, 1.625rem); font-weight: 700; color: var(--primary-text); }
.hero-copy .lead { margin: 16px auto 0; max-width: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.hero-meta { margin-top: 14px; color: var(--text-3); font-size: .875rem; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--primary-text); font-weight: 600; transition: gap var(--t) var(--ease), color var(--t) var(--ease); }
.text-link:hover { gap: 10px; color: var(--primary-hover); }
.text-link .ic { width: 1em; height: 1em; }
.hero-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 20px; margin-top: 18px; }
.social-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; }
.hero-contact { margin-top: 14px; color: var(--text-3); font-size: .875rem; line-height: 1.8; }
.hero-contact a { color: var(--text-2); font-weight: 600; transition: color var(--t) var(--ease); }
.hero-contact a:hover { color: var(--primary-text); }

/* Phone mockup (pure HTML/CSS, decorative) */
.device-wrap { position: relative; display: grid; place-items: center; }
.device {
  position: relative; width: min(300px, 82vw); padding: 12px;
  border-radius: 40px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.screen { position: relative; overflow: hidden; border-radius: 30px; background: var(--bg); border: 1px solid var(--border); padding: 36px 16px 18px; }
.screen::before { content: ""; position: absolute; top: 10px; inset-inline: 0; margin-inline: auto; width: 84px; height: 22px; border-radius: 999px; background: var(--text); opacity: .9; }
.app-top { display: flex; align-items: center; justify-content: space-between; }
.app-top .who { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .875rem; }
.app-top img { width: 26px; height: 26px; border-radius: 7px; }
.app-top .ic { color: var(--text-3); width: 18px; height: 18px; }
.balance {
  margin-top: 14px; padding: 16px; border-radius: var(--r-md);
  background: var(--primary); color: var(--on-primary);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.balance span { font-size: .75rem; opacity: .85; font-weight: 600; }
.balance b { display: block; margin-top: 2px; font-size: 1.625rem; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }
.balance b small { font-size: .8125rem; font-weight: 600; opacity: .85; }
.chips { display: flex; gap: 6px; margin-top: 12px; overflow: hidden; }
.chips span { flex: none; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-3); font-size: .6875rem; font-weight: 600; }
.chips span.on { color: var(--primary-text); background: var(--primary-soft); border-color: color-mix(in srgb, var(--primary) 25%, transparent); }
.tx { list-style: none; padding: 0; margin-top: 12px; display: grid; gap: 6px; }
.tx li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--border); font-size: .75rem; }
.tx .t-ic { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--surface-2); color: var(--text-2); }
.tx .t-ic .ic { width: 15px; height: 15px; }
.tx .t-name { flex: 1; min-width: 0; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx .t-amt { font-weight: 700; font-family: "Inter", var(--font); direction: ltr; unicode-bidi: isolate; color: var(--text); }
.tx .t-amt.plus { color: var(--primary-text); }
.goal { margin-top: 12px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--border); }
.goal .row { display: flex; justify-content: space-between; font-size: .6875rem; font-weight: 600; color: var(--text-3); }
.goal .row b { color: var(--text); font-family: "Inter", var(--font); }
.bar-track { margin-top: 8px; height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.bar-track span { display: block; height: 100%; width: 62%; border-radius: inherit; background: var(--primary); }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--border); border-radius: var(--r-md);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md); font-size: .8125rem; font-weight: 600; white-space: nowrap;
}
.float-card .tile-sm { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--primary-soft); color: var(--primary-text); }
.float-card .tile-sm .ic { width: 16px; height: 16px; }
.float-card small { display: block; color: var(--text-3); font-weight: 500; font-size: .6875rem; }

/* ---------- Section heads ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--primary-text); font-size: .8125rem; font-weight: 700; letter-spacing: .02em; }
.section-alt { background: var(--bg-elev); }
[data-theme="dark"] .section-alt { background: #0c0c0e; }

/* ---------- Feature cards ---------- */
.features { list-style: none; padding: 0; display: grid; gap: 12px; }
.feature {
  display: flex; align-items: flex-start; gap: 14px; padding: 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-xs);
  transition: box-shadow var(--t) var(--ease), border-color var(--t) var(--ease), transform var(--t) var(--ease);
}
.feature:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); transform: translateY(-2px); }
.tile {
  display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: var(--r-sm);
  background: var(--primary-soft); color: var(--primary-text);
  border: 1px solid color-mix(in srgb, var(--primary) 16%, transparent);
}
.tile .ic { width: 20px; height: 20px; }
.feature h3 { font-size: 1rem; line-height: 1.55; font-weight: 700; }
.feature p { margin-top: 4px; color: var(--text-2); font-size: .9375rem; line-height: 1.8; }
.feature p b { color: var(--text); font-weight: 700; }

/* Status tags inside headings */
.tag {
  display: inline-flex; align-items: center; vertical-align: 2px; margin-inline-start: 6px;
  padding: 1px 8px; border-radius: 999px; font-size: .6875rem; font-weight: 700; line-height: 1.7;
  border: 1px solid var(--border); color: var(--text-2); background: var(--surface-2);
}
.tag-free { color: var(--primary-text); background: var(--primary-soft); border-color: color-mix(in srgb, var(--primary) 22%, transparent); }
.tag-new { color: var(--text); background: var(--surface); border-color: var(--border-strong); }

/* ---------- Why ---------- */
.why { display: grid; gap: 12px; }
.why .feature { padding: 22px; }

/* ---------- Pricing ---------- */
.offer {
  display: flex; flex-direction: column; align-items: center; gap: 4px; max-width: 720px; margin: 0 auto 24px; padding: 14px 18px;
  text-align: center; border-radius: var(--r-md);
  background: var(--primary-soft); border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent); color: var(--text);
}
.offer strong { display: inline-flex; align-items: center; gap: 8px; color: var(--primary-text); font-weight: 800; }
.offer span { color: var(--text-2); font-size: .9375rem; }
.offer b { color: var(--text); }
.offer s { color: var(--text-3); }
.plans { display: grid; gap: 16px; align-items: stretch; max-width: 920px; margin-inline: auto; }
.plan {
  position: relative; display: flex; flex-direction: column; padding: 28px 24px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t) var(--ease), transform var(--t) var(--ease);
}
.plan:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.plan.featured { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow-lg); }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan-head h3 { font-size: 1.125rem; font-weight: 700; }
.price { display: flex; align-items: baseline; gap: 6px; margin-top: 12px; }
.price b { font-size: 2.5rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; font-family: "Inter", var(--font); }
.price span { color: var(--text-3); font-weight: 600; }
.tiers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 16px; }
.tier { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--bg); }
.tier span { color: var(--text-3); font-size: .8125rem; font-weight: 600; }
.tier b { font-size: 1.375rem; font-weight: 800; font-family: "Inter", var(--font); line-height: 1.3; }
.tier b small { font-family: var(--font); font-size: .75rem; font-weight: 600; color: var(--text-3); }
.tier.best { border-color: var(--primary); background: var(--primary-soft); }
.tier.best em { position: absolute; top: -10px; inset-inline-end: 10px; padding: 0 8px; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-style: normal; font-size: .6875rem; font-weight: 700; line-height: 1.7; }
.plan hr { width: 100%; height: 1px; border: 0; background: var(--border); margin: 20px 0; }
.checklist { list-style: none; padding: 0; display: grid; gap: 12px; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; color: var(--text-2); font-size: .9375rem; line-height: 1.7; }
.ck { display: grid; place-items: center; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-text); }
.ck .ic { width: 12px; height: 12px; }
.ck.no { background: var(--surface-2); color: var(--text-3); }
.pay-notes { list-style: none; padding: 0; display: grid; gap: 10px; max-width: 720px; margin: 28px auto 0; }
.pay-notes li { display: flex; align-items: flex-start; gap: 10px; color: var(--text-2); font-size: .9375rem; line-height: 1.8; }
.pay-notes .ic { flex: none; margin-top: .3em; color: var(--text-3); }
.pay-notes .small { color: var(--text-3); font-size: .875rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin-inline: auto; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-xs); transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.faq details:hover { border-color: var(--border-strong); }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; cursor: pointer; list-style: none; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { flex: none; color: var(--text-3); transition: transform var(--t) var(--ease); }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details p { padding: 0 18px 18px; color: var(--text-2); line-height: 1.85; }

/* ---------- CTA panel ---------- */
.cta-panel {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(36px, 6vw, 64px) clamp(20px, 5vw, 56px);
  text-align: center; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
}
.cta-panel::before { content: ""; position: absolute; z-index: -1; inset: -40% -10% auto; height: 120%; background: radial-gradient(closest-side, color-mix(in srgb, var(--primary) 12%, transparent), transparent); }
.cta-panel .logo-lg { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 14px; box-shadow: var(--shadow-md); }
.cta-panel .lead { margin: 12px auto 0; max-width: 52ch; font-size: 1.0625rem; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

/* ---------- Download page ---------- */
.page-hero { text-align: center; }
.page-hero .h1 { margin-top: 18px; }
.page-hero .lead { margin: 16px auto 0; max-width: 56ch; }
.stack { display: grid; gap: 16px; max-width: 760px; margin-inline: auto; }
.panel {
  padding: clamp(20px, 4vw, 32px); border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.panel-head { display: flex; align-items: flex-start; gap: 14px; }
.panel-head h2 { font-size: 1.25rem; font-weight: 700; line-height: 1.45; }
.panel-head p { margin-top: 2px; color: var(--text-3); font-size: .9375rem; }
.panel .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.panel .meta { margin-top: 12px; color: var(--text-3); font-size: .875rem; }
.steps-list { list-style: none; padding: 0; margin-top: 20px; display: grid; gap: 12px; counter-reset: s; }
.steps-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--text-2); line-height: 1.8; counter-increment: s; }
.steps-list li::before {
  content: counter(s); display: grid; place-items: center; flex: none; width: 26px; height: 26px; margin-top: 1px;
  border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); font-family: "Inter", var(--font); font-size: .8125rem; font-weight: 700;
}
.steps-list b { color: var(--text); }
.inline-note { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 16px; color: var(--text-3); font-size: .875rem; }
.inline-note span { display: inline-flex; align-items: center; gap: 6px; }
.inline-note .ic { width: 16px; height: 16px; color: var(--primary-text); }
.video { margin: 20px auto 0; max-width: 300px; }
.video video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: var(--r-md); border: 1px solid var(--border); background: #000; box-shadow: var(--shadow-md); }
.video figcaption { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; color: var(--text-3); font-size: .875rem; font-weight: 600; }
.video figcaption .ic { width: 16px; height: 16px; }

/* Store badges. A live store: <a class="store" href=…>; a pending one: <a class="store is-soon" aria-disabled="true" title="قريباً"> */
.stores { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 20px; }
.store {
  position: relative; display: grid; place-items: center; min-height: 76px; padding: 12px;
  border-radius: var(--r-md); border: 1px solid var(--border); background: var(--bg);
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease), transform var(--t) var(--ease);
}
.store img { height: 44px; width: auto; max-width: 100%; }
a.store[href]:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.store .soon-pill { display: none; }
.store.is-soon { cursor: default; }
.store.is-soon img { opacity: .4; filter: grayscale(1); }
.store.is-soon .soon-pill {
  display: inline-block; position: absolute; top: 8px; inset-inline-start: 8px;
  padding: 0 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-3); font-size: .6875rem; font-weight: 700; line-height: 1.8;
}
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 20px; }
.contact-grid .btn { padding-inline: 10px; }

/* ---------- iPhone page ---------- */
.steps-cards { list-style: none; padding: 0; display: grid; gap: 16px; }
.step-card {
  display: flex; gap: 16px; align-items: center; padding: 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-xs);
}
.step-card figure { margin: 0; flex: none; width: 112px; }
.step-card img { width: 100%; height: auto; border-radius: var(--r-sm); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.step-card .num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-family: "Inter", var(--font); font-weight: 700; font-size: .875rem; }
.step-card .num .ic { width: 15px; height: 15px; }
.step-card h3 { margin-top: 8px; font-size: 1.0625rem; font-weight: 700; line-height: 1.5; }
.step-card p { margin-top: 4px; color: var(--text-2); font-size: .9375rem; }
.en { direction: ltr; unicode-bidi: isolate; font-family: "Inter", var(--font); color: var(--text-3) !important; font-size: .8125rem !important; text-align: end; }
.callouts { display: grid; gap: 10px; margin-top: 20px; }
.callout { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface); color: var(--text-2); line-height: 1.8; font-size: .9375rem; }
.callout > .ic { flex: none; margin-top: .3em; color: var(--text-3); }
.callout b { color: var(--text); }
.callout.accent { background: var(--primary-soft); border-color: color-mix(in srgb, var(--primary) 22%, transparent); }
.callout.accent > .ic { color: var(--primary-text); }
.compare { display: grid; gap: 12px; }
.compare .panel h3 { display: flex; align-items: center; gap: 8px; font-size: 1.0625rem; font-weight: 700; margin-bottom: 14px; }
.mini-steps { list-style: none; padding: 0; display: grid; gap: 10px; margin: 0 0 20px; counter-reset: s; }
.mini-steps li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface); counter-increment: s; font-weight: 600; }
.mini-steps li::before { content: counter(s); display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-text); font-family: "Inter", var(--font); font-size: .8125rem; font-weight: 700; }
.mini-steps a, .prose a { color: var(--primary-text); font-weight: 600; }
.center { text-align: center; }
.mt-24 { margin-top: 24px; }
.narrow { max-width: 760px; margin-inline: auto; }
.nobr { white-space: nowrap; }

/* ---------- Legal / prose page ---------- */
.prose { max-width: 720px; margin-inline: auto; }
.prose h1 { font-size: clamp(1.75rem, 4.5vw, 2.5rem); line-height: 1.3; font-weight: 800; text-wrap: balance; }
.prose h2 { margin-top: 32px; font-size: 1.1875rem; font-weight: 700; }
.prose p { margin-top: 10px; color: var(--text-2); line-height: 1.9; }
.prose .updated { margin-top: 8px; color: var(--text-3); font-size: .875rem; }
.prose b { color: var(--text); }
.prose .en-block { direction: ltr; text-align: left; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); font-family: "Inter", var(--font); }
.prose .en-block p { line-height: 1.75; }


/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-elev); }
.footer-grid { display: grid; gap: 28px; padding-block: 48px 32px; }
.footer-grid .about { max-width: 340px; color: var(--text-3); font-size: .9375rem; margin-top: 12px; }
.footer-col h4 { margin: 0 0 12px; font-size: .8125rem; font-weight: 700; color: var(--text); }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-size: .9375rem; transition: color var(--t) var(--ease); }
.footer-col a:hover { color: var(--primary-text); }
.footer-col .ic { color: var(--text-3); width: 18px; height: 18px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-block: 20px; border-top: 1px solid var(--border); color: var(--text-3); font-size: .8125rem; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: var(--shadow-sm); }
.skip { position: absolute; inset-inline-start: 12px; top: -48px; z-index: 60; padding: 8px 14px; border-radius: var(--r-sm); background: var(--text); color: var(--bg); font-weight: 700; transition: top var(--t) var(--ease); }
.skip:focus { top: 12px; }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }

/* ---------- Utilities ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

/* ---------- Responsive (mobile-first) ---------- */
@media (min-width: 640px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: repeat(2, 1fr); }
  .header-actions .hide-sm { display: inline-flex; }
  .stores { grid-template-columns: repeat(4, 1fr); }
  .compare { grid-template-columns: repeat(2, 1fr); }
  .step-card figure { width: 132px; }
  .offer { flex-direction: row; justify-content: center; gap: 12px; }
}
@media (min-width: 900px) {
  .nav { display: flex; }
  .menu-toggle, .mobile-menu { display: none !important; }
  .features { grid-template-columns: repeat(3, 1fr); }
  .feature { flex-direction: column; padding: 22px; }
  .feature .tile { margin-bottom: 6px; }
  .plans { grid-template-columns: 1fr 1.35fr; }
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; }
  .hero-copy { text-align: start; }
  .hero-copy .lead { margin-inline: 0; }
  .hero-cta, .hero-links, .social-row { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .steps-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .container { padding-inline: 16px; }
  .hero-cta .btn, .cta-actions .btn, .panel .actions .btn { width: 100%; }
  .contact-grid { grid-template-columns: 1fr; }
  .step-card { align-items: flex-start; }
  .step-card figure { width: 96px; }
}


/* ---------- Refinements ---------- */
.brand { white-space: nowrap; }
.header-actions { gap: 6px; }
.screen::before { background: #18181b; opacity: 1; }
[data-theme="dark"] .screen::before { background: #3f3f46; }
.float-card { display: none; }
@media (min-width: 640px) {
  .float-card { display: flex; }
  .float-a { top: 9%; inset-inline-start: auto; inset-inline-end: calc(50% - 150px - 72px); }
  .float-b { bottom: -18px; inset-inline-end: auto; inset-inline-start: calc(50% - 150px - 64px); }
}

.mail-line { display: block; text-align: center; }
.mail-line .ic { display: inline-block; vertical-align: -4px; margin: 0 0 0 6px; }
.mail-line bdi { white-space: nowrap; }

.pt-0 { padding-top: 0 !important; }
.en-center { display: inline-block; text-align: center; }
.steps-wide { max-width: 920px; margin-inline: auto; }
.divider { width: 100%; height: 1px; border: 0; background: var(--border); margin: 20px 0; }
.mt-4 { margin-top: 4px; }
.mt-6 { margin-top: 6px; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}
