/* ─────────────────────────────────────────────────────────────────────────
   أمين — landing.

   The visual language of the two motion ads (ad/src): warm beige paper with a
   hairline ledger grid, white cards with the product's soft navy shadow, navy
   as the accent, the gold pill and the red strike.

   Everything is visible at rest. The states a scene starts from exist only
   under `html.motion` (set by taiseer.js when motion is allowed), so a reader
   with reduced motion — or with the script blocked — gets every mock in its
   finished state rather than a blank one.

   The terms page (terms/index.html) also loads this file for its tokens and
   base type: keep --paper, --ink, --navy, --col, --card, --line, --blue,
   --sand and --ink-3.
   ───────────────────────────────────────────────────────────────────────── */

/* ── the type, served from this site ─────────────────────────────────────
   IBM Plex Sans Arabic (OFL), Google Fonts' Arabic and Latin subsets, self-
   hosted: no third-party connection before the first paint, and the pages
   preload the 400 and 700 Arabic files. `swap` shows text at once. */
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-sans-arabic-400-arabic.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-sans-arabic-400-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-sans-arabic-500-arabic.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-sans-arabic-500-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/ibm-plex-sans-arabic-600-arabic.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/ibm-plex-sans-arabic-600-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/ibm-plex-sans-arabic-700-arabic.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/ibm-plex-sans-arabic-700-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-mono-500-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --navy:    #2B4C7E;
  --navy-2:  #1F3A63;
  --night:   #16294A;
  --steel:   #6E8CB5;
  --ink:     #2B3648;
  --ink-2:   #5D6879;
  --ink-3:   #7A8392;   /* 4.5:1 on paper — the old #98A0AD was not */
  --ash:     #C2C7D0;
  --blue:    #3F6E9B;
  --sky:     #6E8CB5;

  --paper:   #FDFBF6;
  --sand:    #F6F1E6;
  --linen:   #F1EADC;
  --card:    #FFFFFF;
  --line:    rgba(43, 54, 72, .10);
  --line-2:  rgba(43, 54, 72, .17);

  --ok:      #3F7D5C;
  --ok-bg:   rgba(63, 125, 92, .12);
  --warn:    #9A6A22;
  --warn-bg: rgba(176, 122, 42, .14);
  --late:    #B04A3F;
  --late-bg: #F8EDEB;
  --teal:    #3D7A6E;
  --gold:    #F3D9A4;
  --strike:  #E0705F;
  --green:   #0B7A43;
  --palm:    #5DBB84;
  /* kept for older references */
  --paid:    #3F7D5C;
  --paid-bg: #EAF2EC;

  --shadow:  0 24px 60px rgba(31, 58, 99, .12), 0 5px 14px rgba(31, 58, 99, .07);
  --shadow-s: 0 10px 28px rgba(31, 58, 99, .10), 0 2px 6px rgba(31, 58, 99, .06);
  --ease:    cubic-bezier(.22, 1, .36, 1);

  --f: "IBM Plex Sans Arabic", -apple-system, "SF Arabic", system-ui, sans-serif;
  --m: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px;
  --s6: 48px; --s7: 56px; --s9: 72px; --s12: 96px;
  --sec: 112px;

  --col: 1200px;
  --pill: 999px;
  --bar-h: 64px;
  --switch-h: 60px;
}
@media (max-width: 900px) { :root { --sec: 72px; } }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 16px); }
html.js { scroll-behavior: auto; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  direction: rtl;
  font-family: var(--f);
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.15em; }

.wrap { width: 100%; max-width: var(--col); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 640px) { .wrap { padding-inline: 24px; } }
.ltr { direction: ltr; unicode-bidi: isolate; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: fixed; inset-inline-start: -9999px; top: 0; z-index: 99;
  background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip:focus { inset-inline-start: 0; }

a { color: var(--blue); }
a:focus-visible, button:focus-visible, .btn:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

/* ── type ──────────────────────────────────────────────────────────────── */
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: 0; text-wrap: balance; }
h2, .sec-head h1 { font-size: clamp(28px, 6.4vw, 48px); line-height: 1.22; }
h3 { font-size: 20px; line-height: 1.4; }
p  { margin: 0; }

.tag {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 14px; font-weight: 600; color: var(--steel);
  margin: 0 0 12px;
}
.tag::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--steel); }
.center .tag { justify-content: center; }
.center .tag::after { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--steel); }
.lead { font-size: clamp(16.5px, 2.2vw, 19px); line-height: 1.75; color: var(--ink-2); max-width: 56ch; margin-top: 12px; }
.sec-head { margin-bottom: var(--s6); }
.sec-head.center { text-align: center; }
.sec-head.center .lead { margin-inline: auto; }

.pill-new, .pill-offer {
  display: inline-flex; align-items: center; padding: 2px 11px; border-radius: var(--pill);
  font-size: 12.5px; font-weight: 600; line-height: 1.6; white-space: nowrap;
}
.pill-new { background: var(--navy); color: #fff; }
.pill-offer { background: var(--gold); color: var(--night); }

/* ── buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--pill); font: 600 15px/1.2 var(--f);
  padding: 14px 26px; border: 1.5px solid transparent;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-fill  { background: var(--navy); color: #fff; }
.btn-fill:hover { background: var(--navy-2); }
.btn-line  { border-color: var(--line-2); color: var(--ink); background: var(--card); }
.btn-line:hover { border-color: var(--navy); }
.btn-ghost { color: var(--ink-2); background: transparent; }
.btn-ghost:hover { color: var(--navy); }
.btn-light { background: var(--paper); color: var(--navy-2); }
.btn-light:hover { background: #fff; }
.btn-gold  { background: var(--gold); color: var(--night); font-weight: 700; }
.btn-gold:hover { background: #F7E3B9; }
.btn-sm { font-size: 14px; padding: 9px 16px; }
.btn-lg { font-size: 16.5px; padding: 16px 32px; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.ctas.center { justify-content: center; align-items: center; }

/* ── ticks list ────────────────────────────────────────────────────────── */
.ticks { list-style: none; margin: 20px 0 24px; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-inline-start: 28px; font-size: 15.5px; line-height: 1.65; }
.ticks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .3em;
  width: 18px; height: 18px; border-radius: 6px; background: var(--linen);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B4C7E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5 10.5 17 18 8'/%3E%3C/svg%3E");
  background-size: 13px; background-position: center; background-repeat: no-repeat;
}
.ticks.light li { color: rgba(253, 251, 246, .9); }
.ticks.light li::before { background-color: rgba(253, 251, 246, .14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F3D9A4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5 10.5 17 18 8'/%3E%3C/svg%3E"); }
@media (min-width: 700px) { .ticks.cols { grid-template-columns: 1fr 1fr; column-gap: 32px; } }

/* ── chips (the product's tags) ────────────────────────────────────────── */
.chip, .tagx {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; flex: none;
  padding: 2px 9px; border-radius: var(--pill);
  font-size: 11.5px; font-weight: 600; line-height: 1.6;
  background: var(--linen); color: var(--navy);
}
.chip.ok, .tagx.ok { background: var(--ok-bg); color: var(--ok); }
.chip.warn, .tagx.warn { background: var(--warn-bg); color: var(--warn); }
.chip.warn2 { background: var(--warn-bg); color: var(--warn); }
.chip.late { background: var(--late-bg); color: var(--late); }
.tagx.info { background: rgba(110, 140, 181, .16); color: var(--navy); }
.tagx.navy { background: var(--navy); color: #fff; }
.tagx.gold { background: var(--gold); color: var(--night); }
.tagx .i, .chip .i { font-size: 12px; }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--navy); }
.dot.sand { background: var(--ash); }
.dot.sand2 { background: #D9CCB2; }
.dot.steel { background: var(--steel); }
.dot.warn { background: #B07A2A; }
.dot.ok { background: var(--ok); }
.ptitle { font-size: 11.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.pays { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11px; color: var(--ink-2); margin-top: 6px; }
.pays span { display: inline-flex; align-items: center; gap: 6px; }

/* ═══════════════════ bar ═══════════════════ */
.bar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 251, 246, .82);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background-color .25s ease;
}
.bar.is-stuck { border-bottom-color: var(--line); background: rgba(253, 251, 246, .94); }
.bar-in { max-width: var(--col); margin-inline: auto; height: var(--bar-h); padding-inline: 16px; display: flex; align-items: center; gap: 16px; }
.brand .wd { height: 36px; width: auto; }
.bar-nav { display: none; gap: 4px; margin-inline-start: 16px; }
.bar-nav a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; font-weight: 500; padding: 8px 12px; border-radius: 10px; }
.bar-nav a:hover, .bar-nav a.is-here { color: var(--navy); background: var(--linen); }
.bar-actions { margin-inline-start: auto; display: flex; gap: 6px; }
@media (min-width: 960px) { .bar-nav { display: flex; } .bar-in { padding-inline: 24px; } }
@media (max-width: 380px) { .bar-actions .btn-sm { padding: 8px 12px; font-size: 13.5px; } .brand .wd { height: 32px; } }

/* ═══════════════════ the paper ═══════════════════
   The ads' ground: beige radial and a 64px ledger grid. Used on the hero and
   the connected scene; it fades out at the edges so sections flow. */
.chooser, .hero, .connected {
  position: relative;
  background:
    linear-gradient(var(--linen) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, var(--linen) 1px, transparent 1px) 0 0 / 64px 64px,
    radial-gradient(130% 100% at 50% 35%, var(--paper) 0%, var(--sand) 70%, var(--linen) 100%);
}
.hero::after, .connected::after, .hero::before, .connected::before {
  content: ""; position: absolute; inset-inline: 0; height: 120px; pointer-events: none;
}
.hero::after, .connected::after { bottom: 0; background: linear-gradient(transparent, var(--paper)); }
.hero::before { top: 0; background: linear-gradient(var(--paper), transparent); }
.connected::before { top: 0; background: linear-gradient(var(--paper), transparent); }

/* ═══════════════════ hero ═══════════════════ */
.hero { padding: 24px 0 56px; text-align: center; }
.hero-in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }

.hook { width: 100%; max-width: 760px; }
.hook-stage {
  position: relative; height: clamp(230px, 46vw, 330px);
  container-type: size;
}
.clut {
  position: absolute; left: 50%; top: 50%;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 13px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--linen); box-shadow: var(--shadow-s);
  font-size: clamp(12.5px, 2.6vw, 16px); font-weight: 600; color: var(--ink); white-space: nowrap;
  transform: translate(-50%, -50%) scale(.3);
  opacity: 0;   /* the resting state is the END: pulled into the mark */
}
.clut .i { font-size: 1.5em; color: var(--navy); }
.hook-q {
  position: absolute; inset-inline: 0; top: 50%; transform: translateY(-50%);
  padding-inline: 12%; font-size: clamp(19px, 4.4vw, 30px); font-weight: 700; line-height: 1.4;
  opacity: 0;
}
.hook-mark { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.hook-mark img { width: auto; height: clamp(92px, 20vw, 150px); }
.hook-mark p { font-size: clamp(15px, 3.2vw, 21px); font-weight: 600; color: var(--navy); }

.eyebrow { font-size: 14px; font-weight: 600; color: var(--steel); margin-top: 4px; }
.hero .hero-t { font-size: clamp(30px, 8vw, 60px); line-height: 1.2; margin-top: 8px; }
.hero .hero-t .l { display: block; }
.hero .hero-t .accent { color: var(--navy); }
.hero-sub { max-width: 60ch; margin: 16px auto 0; font-size: clamp(16px, 2.3vw, 18.5px); color: var(--ink-2); line-height: 1.8; }
.hero .ctas { justify-content: center; margin-top: 26px; }
.facts {
  margin: 34px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; max-width: 860px;
}
.facts div { background: rgba(255, 255, 255, .72); border: 1px solid var(--linen); border-radius: 16px; padding: 12px 10px; }
.facts dt { font-weight: 700; font-size: 15px; color: var(--navy); }
.facts dd { margin: 2px 0 0; font-size: 13px; color: var(--ink-2); }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(4, 1fr); } }

/* ═══════════════════ the chooser ═══════════════════
   Two halves: التمويل on the LEFT, the systems on the RIGHT — the same order
   as the track below, so a swipe right pulls التمويل in and a swipe left
   pulls the systems in. `direction: ltr` fixes that order; each card is RTL
   inside. */
.chooser { padding: 14px 0 44px; text-align: center; touch-action: pan-y; }
.chooser::after { bottom: 0; background: linear-gradient(transparent, var(--paper)); }
.chooser-in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.chooser-mark { width: auto; height: clamp(54px, 12vw, 88px); }
.chooser-t { font-size: clamp(21px, 5.4vw, 40px); line-height: 1.35; margin-top: 6px; }
.chooser-t span { color: var(--navy); }

.choices {
  direction: ltr; display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  width: 100%; max-width: 1080px; margin-top: 22px;
  transition: transform .35s var(--ease);
}
.chooser.is-pulling .choices { transition: none; }
@media (min-width: 640px) { .choices { gap: 18px; margin-top: 30px; } }
@media (min-width: 1000px) { .choices { gap: 24px; } }

.choice {
  direction: rtl; text-align: start; position: relative; min-width: 0; overflow: hidden;
  display: flex; flex-direction: column; gap: 6px;
  padding: 14px 12px 12px; border-radius: 22px;
  text-decoration: none; color: var(--ink);
  background: var(--card); border: 1.5px solid var(--linen); box-shadow: var(--shadow-s);
  transition: transform .3s var(--ease), box-shadow .3s ease, border-color .3s ease, opacity .3s ease;
  -webkit-tap-highlight-color: transparent;
}
@media (min-width: 640px) { .choice { padding: 22px 22px 20px; gap: 8px; border-radius: 26px; } }
@media (min-width: 1000px) { .choice { padding: 30px 32px 26px; } }
.choice:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--steel); }
.choice:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 22px; }
.choice.is-current { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(43, 76, 126, .22), var(--shadow); }
.c-sys {
  color: var(--paper); border-color: var(--night);
  background: radial-gradient(120% 90% at 50% 15%, var(--navy) 0%, var(--navy-2) 55%, var(--night) 100%);
}
.c-sys:hover { border-color: var(--gold); }
.c-sys.is-current { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(243, 217, 164, .55), var(--shadow); }
/* the swipe pulls one card forward and lets the other recede */
.chooser.pull-fin .c-fin, .chooser.pull-sys .c-sys { transform: scale(1.03); border-color: var(--navy); box-shadow: var(--shadow); }
.chooser.pull-fin .c-sys, .chooser.pull-sys .c-fin { opacity: .55; transform: scale(.97); }

.choice-arrow {
  position: absolute; top: 10px; display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  font: 700 16px/1 var(--f); background: var(--linen); color: var(--navy);
}
.c-fin .choice-arrow { left: 10px; }
.c-sys .choice-arrow { right: 10px; background: rgba(253, 251, 246, .14); color: var(--gold); }
@media (min-width: 640px) { .choice-arrow { top: 16px; width: 34px; height: 34px; font-size: 18px; } .c-fin .choice-arrow { left: 16px; } .c-sys .choice-arrow { right: 16px; } }
.c-sys .choice-k, .c-sys .choice-t, .c-sys .choice-s { padding-inline-start: 34px; }
.c-fin .choice-k, .c-fin .choice-t, .c-fin .choice-s { padding-inline-end: 34px; }
@media (min-width: 640px) {
  .c-sys .choice-t, .c-sys .choice-s, .c-fin .choice-t, .c-fin .choice-s { padding-inline: 0; }
  .c-sys .choice-k { padding-inline-start: 46px; }
  .c-fin .choice-k { padding-inline-end: 46px; }
}
.choice-k { font-size: 12px; font-weight: 600; color: var(--steel); line-height: 1.6; min-height: 1.6em; }
.choice-k .pill-offer { font-size: 11.5px; padding: 1px 9px; }
.choice-t { font-size: clamp(16px, 4.3vw, 30px); font-weight: 700; line-height: 1.35; text-wrap: balance; }
.choice-s { font-size: clamp(12.5px, 1.7vw, 16px); line-height: 1.6; color: var(--ink-2); }
.c-sys .choice-s { color: rgba(253, 251, 246, .78); }
.choice-go {
  margin-top: auto; align-self: stretch; text-align: center;
  padding: 8px 10px; border-radius: var(--pill); font-size: 13.5px; font-weight: 700;
  background: var(--navy); color: #fff;
}
.c-sys .choice-go { background: var(--gold); color: var(--night); }
@media (min-width: 640px) { .choice-go { align-self: flex-start; padding: 11px 26px; font-size: 15px; } }
@media (max-width: 400px) { .choice-s { display: none; } }

/* the two tiny live previews */
.cp { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 4px 0 6px; height: clamp(68px, 17vw, 136px); border-radius: 14px; }
.cp-fin { background: var(--sand); position: relative; }
.cp-doc {
  display: flex; flex-direction: column; gap: clamp(3px, .6vw, 6px); width: 62%; max-width: 190px;
  padding: clamp(6px, 1.2vw, 12px); border-radius: 10px; background: var(--card); border: 1px solid var(--linen); box-shadow: var(--shadow-s);
}
.cp-h { display: flex; align-items: center; gap: 4px; font-size: clamp(9.5px, 1.4vw, 13px); font-weight: 700; color: var(--ink); line-height: 1.3; }
.cp-h .i { color: var(--navy); }
.cp-f { display: block; height: clamp(4px, .7vw, 7px); border-radius: 3px; background: var(--linen); overflow: hidden; }
.cp-f i { display: block; height: 100%; width: 100%; background: var(--steel); border-radius: 3px; transform-origin: right; }
.cp-f:nth-of-type(odd) i { width: 70%; }
.cp-tag {
  position: absolute; bottom: clamp(6px, 1.2vw, 14px); left: clamp(6px, 1.4vw, 18px);
  display: inline-flex; align-items: center; gap: 3px; padding: 1px 8px; border-radius: var(--pill);
  background: var(--gold); color: var(--night); font-size: clamp(9.5px, 1.3vw, 12.5px); font-weight: 700; line-height: 1.6;
}
.cp-sys { background: rgba(253, 251, 246, .08); border: 1px solid rgba(253, 251, 246, .14); padding: 0 6px; gap: 0; }
.cp-n {
  display: grid; place-items: center; flex: none;
  width: clamp(30px, 7vw, 58px); height: clamp(30px, 7vw, 58px); border-radius: 30%;
  background: var(--paper); color: var(--navy); font-size: clamp(16px, 3.6vw, 30px);
}
.cp-w { flex: 1; max-width: 80px; height: 3px; margin: 0 3px; border-radius: 2px; background: rgba(253, 251, 246, .18); overflow: hidden; }
.cp-w i { display: block; width: 100%; height: 100%; background: var(--gold); transform-origin: right; }
.motion .cp-f i, .motion .cp-w i { animation: cp-fill 4.4s var(--ease) var(--d) infinite both; }
.motion .cp-tag { animation: cp-pop 4.4s var(--ease) infinite both; }
.motion .cp-n { animation: cp-glow 4.4s ease var(--d) infinite both; }
@keyframes cp-fill { 0% { transform: scaleX(0); } 14%, 88% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes cp-pop { 0%, 42% { opacity: 0; transform: scale(.8); } 50%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes cp-glow { 0% { box-shadow: 0 0 0 0 rgba(243, 217, 164, 0); } 8% { box-shadow: 0 0 0 6px rgba(243, 217, 164, .55); } 26%, 100% { box-shadow: 0 0 0 0 rgba(243, 217, 164, 0); } }

.swipe-hint { margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.sh-touch { display: none; direction: ltr; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.sh-touch > span { direction: rtl; display: inline-flex; align-items: center; gap: 6px; }
.sh-touch b { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--linen); color: var(--navy); font-size: 14px; }
.sh-touch i { font-style: normal; color: var(--ash); }
.motion .sh-fin b { animation: nudge-r 1.6s ease-in-out infinite; }
.motion .sh-sys b { animation: nudge-l 1.6s ease-in-out infinite; }
@keyframes nudge-r { 50% { transform: translateX(4px); } }
@keyframes nudge-l { 50% { transform: translateX(-4px); } }
@media (hover: none) and (pointer: coarse) { .sh-touch { display: inline-flex; } .sh-mouse { display: none; } }

/* ═══════════════════ the two paths ═══════════════════
   One path per page (/tamweel, /anzima), open in the HTML. The switcher is
   two links and shows with or without a script; the pane follows a swipe. */
.path-switch {
  display: flex; align-items: center; position: sticky; top: var(--bar-h); z-index: 40;
  height: var(--switch-h); touch-action: pan-y;
  background: rgba(253, 251, 246, .92);
  backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.pseg {
  direction: ltr; display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.6fr); gap: 4px;
  max-width: 560px; margin-inline: auto; padding: 4px; border-radius: 14px; background: var(--linen);
}
.pseg-tab {
  text-decoration: none;
  direction: rtl; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 0;
  border: 0; cursor: pointer; padding: 9px 8px; border-radius: 10px; background: transparent;
  font: 600 14px/1.2 var(--f); color: var(--ink-2); white-space: nowrap;
  transition: background-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.pseg-tab .i { font-size: 16px; }
.pseg-tab[aria-current="page"] { background: var(--card); color: var(--navy); box-shadow: 0 1px 3px rgba(18, 38, 63, .12); }
.pseg-tab:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 1px; border-radius: 10px; }
@media (max-width: 380px) { .pseg-tab { font-size: 13px; gap: 4px; padding-inline: 4px; } .pseg-tab .i { display: none; } }

.paths-view { overflow: hidden; overflow: clip; }
.paths-track {
  display: flex; align-items: flex-start; direction: ltr;
  transition: transform .45s cubic-bezier(.22, .8, .24, 1);
}
.paths-track.is-dragging { transition: none; }
.path { flex: 0 0 100%; width: 100%; min-width: 0; direction: rtl; }
.path-head { touch-action: pan-y; }
/* a sideways drag that starts on a link or an image must stay a swipe, not
   become the browser's drag-and-drop (which cancels the pointer) */
[data-swipe] a, [data-swipe] img { -webkit-user-drag: none; }
/* an anchor on a path page lands below the bar AND the switcher */
html:has(.path-switch) { scroll-padding-top: calc(var(--bar-h) + var(--switch-h) + 16px); }
.path { scroll-margin-top: -16px; }
@media (prefers-reduced-motion: reduce) {
  .paths-track, .choices, .choice { transition: none; }
}

/* ── between the pages: a cross-document view transition ──
   Same-origin navigations between «/», /tamweel and /anzima animate where
   the browser supports it (others simply load the page). The bar and the
   switcher stay put; the content slides in from its own side — التمويل from
   the left, the systems from the right — tagged by taiseer.js (pagereveal). */
@view-transition { navigation: auto; }
.bar { view-transition-name: bar; }
.path-switch { view-transition-name: switch; }
main { view-transition-name: page; }
::view-transition-group(page) { animation-duration: .42s; animation-timing-function: cubic-bezier(.22, .8, .24, 1); }
::view-transition-old(page), ::view-transition-new(page) { animation-duration: .42s; animation-timing-function: cubic-bezier(.22, .8, .24, 1); }
html:active-view-transition-type(to-fin)::view-transition-old(page) { animation-name: vt-out-r; }
html:active-view-transition-type(to-fin)::view-transition-new(page) { animation-name: vt-in-l; }
html:active-view-transition-type(to-sys)::view-transition-old(page) { animation-name: vt-out-l; }
html:active-view-transition-type(to-sys)::view-transition-new(page) { animation-name: vt-in-r; }
@keyframes vt-in-l  { from { transform: translateX(-12%); opacity: 0; } }
@keyframes vt-in-r  { from { transform: translateX(12%); opacity: 0; } }
@keyframes vt-out-l { to { transform: translateX(-12%); opacity: 0; } }
@keyframes vt-out-r { to { transform: translateX(12%); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* the financing path opens on its hook, then its title */
.path-fin .pain { margin-bottom: 28px; }
.path-fin .fin-head { margin-bottom: 72px; }

/* ═══════════════════ one device, three sizes ═══════════════════ */
.devices { padding: 32px 0 var(--sec); }
.morph { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .morph { grid-template-columns: minmax(280px, 400px) 1fr; gap: 48px; } }
.morph-copy { text-align: center; }
@media (min-width: 900px) { .morph-copy { text-align: start; } }
.morph-copy .tag { justify-content: center; }
@media (min-width: 900px) { .morph-copy .tag { justify-content: flex-start; } }
.morph-caps { display: grid; }
.morph-cap { grid-area: 1 / 1; opacity: 0; transform: translateY(10px); transition: opacity .45s var(--ease), transform .45s var(--ease); pointer-events: none; }
.morph-cap.is-on { opacity: 1; transform: none; pointer-events: auto; }
.morph-cap .kick { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--steel); justify-content: center; }
@media (min-width: 900px) { .morph-cap .kick { justify-content: flex-start; } }
.morph-cap h3 { font-size: clamp(26px, 5.6vw, 40px); line-height: 1.3; margin: 10px 0 8px; }
.morph-cap p:last-child { color: var(--ink-2); font-size: 16.5px; }
.morph-tabs { display: inline-flex; gap: 4px; padding: 4px; margin-top: 20px; background: var(--linen); border-radius: 14px; }
.morph-tabs button {
  display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer;
  padding: 9px 14px; border-radius: 10px; background: transparent;
  font: 600 14px/1 var(--f); color: var(--ink-2);
  transition: background-color .2s ease, color .2s ease;
}
.morph-tabs button .i { font-size: 17px; }
.morph-tabs button.is-on { background: var(--card); color: var(--navy); box-shadow: 0 1px 3px rgba(18, 38, 63, .1); }

.morph-stage { position: relative; height: 380px; --k0: .55; --k1: .6; --k2: .8; }
@media (min-width: 520px) { .morph-stage { height: 440px; } }
@media (min-width: 900px) { .morph-stage { height: 500px; } }

.device {
  position: absolute; left: 50%; top: 50%;
  width: 600px; height: 380px; padding: 0; border-radius: 14px;
  background: var(--card); border: 1px solid var(--linen);
  box-shadow: 0 34px 80px rgba(22, 41, 74, .22), 0 6px 18px rgba(22, 41, 74, .12);
  display: flex; flex-direction: column; overflow: hidden;
  transform: translate(-50%, -50%) scale(var(--k0));
  transition: width .8s var(--ease), height .8s var(--ease), padding .8s var(--ease), border-radius .8s var(--ease),
              transform .8s var(--ease), background-color .5s ease, border-color .5s ease;
  contain: layout paint;
}
.chrome {
  height: 26px; flex: none; display: flex; align-items: center; gap: 6px; padding: 0 12px; direction: ltr;
  background: var(--sand); border-bottom: 1px solid var(--linen); overflow: hidden;
  transition: height .6s var(--ease), opacity .4s ease;
}
.chrome i { width: 9px; height: 9px; border-radius: 50%; background: #E5A39A; }
.chrome i:nth-child(2) { background: #E8C98E; }
.chrome i:nth-child(3) { background: #A9C9A4; }
.chrome span { margin: 0 auto; padding: 1px 16px; border-radius: var(--pill); background: var(--card); color: var(--ink-2); font-size: 10px; }
.glass { position: relative; flex: 1; overflow: hidden; background: var(--paper); border-radius: 0; transition: border-radius .8s var(--ease); }
.notch { position: absolute; top: 7px; left: 50%; width: 64px; height: 18px; margin-left: -32px; border-radius: 10px; background: var(--night); z-index: 3; opacity: 0; transition: opacity .4s ease .3s; }

.morph.st-1 .device { width: 520px; height: 370px; padding: 12px; border-radius: 30px; background: var(--night); border-color: var(--night); transform: translate(-50%, -50%) scale(var(--k1)); }
.morph.st-2 .device { width: 230px; height: 470px; padding: 8px; border-radius: 38px; background: var(--night); border-color: var(--night); transform: translate(-50%, -50%) scale(var(--k2)); }
.morph.st-1 .chrome, .morph.st-2 .chrome { height: 0; opacity: 0; border: 0; }
.morph.st-1 .glass { border-radius: 20px; }
.morph.st-2 .glass { border-radius: 30px; }
.morph.st-2 .notch { opacity: 1; }

.scr { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: 0; transition: opacity .5s ease; pointer-events: none; font-size: 10px; line-height: 1.5; }
.scr.is-on { opacity: 1; transition-delay: .25s; }
.scr > .scene { width: 100%; height: 100%; display: flex; flex-direction: column; }
.scr-web { width: 600px; height: 354px; }
.scr-tab { width: 496px; height: 346px; }
.scr-phone { width: 214px; height: 454px; }

.app-top { display: flex; align-items: center; gap: 8px; height: 30px; flex: none; padding: 0 12px; background: var(--navy); color: #fff; font-size: 10.5px; }
.app-top b { font-size: 12px; }
.app-top span { opacity: .85; }
.app-top em { margin-inline-start: auto; font-style: normal; font-size: 9.5px; background: rgba(255,255,255,.14); padding: 1px 8px; border-radius: var(--pill); }
.scr-phone .app-top { padding-top: 18px; height: 52px; justify-content: center; }

.web-body { flex: 1; display: flex; min-height: 0; }
.side { list-style: none; margin: 0; padding: 10px 8px; width: 112px; flex: none; background: var(--card); border-inline-end: 1px solid var(--linen); }
.side li { padding: 4px 8px; border-radius: 7px; color: var(--ink-2); font-size: 9.5px; margin-bottom: 2px; }
.side li.on { background: var(--linen); color: var(--navy); font-weight: 700; }
.web-main { flex: 1; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.kpis > div { background: var(--card); border: 1px solid var(--linen); border-radius: 9px; padding: 6px 8px; display: flex; flex-direction: column; }
.kpis small { font-size: 8.5px; color: var(--ink-2); }
.kpis b { font-size: 13px; color: var(--navy); font-variant-numeric: tabular-nums; }
.kpis b.warn { color: var(--warn); }
.kpis b.ok { color: var(--ok); }
.kpis i { font-style: normal; font-size: 8px; color: var(--ink-3); }
.web-cols { flex: 1; display: grid; grid-template-columns: 1.25fr 1fr; gap: 8px; min-height: 0; }
.orders, .mini-chart { background: var(--card); border: 1px solid var(--linen); border-radius: 9px; padding: 8px; }
.ord { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 5px 0; border-bottom: 1px solid var(--linen); font-size: 9.5px; }
.ord:last-child { border-bottom: 0; }
.st { font-style: normal; font-size: 8.5px; font-weight: 600; padding: 1px 7px; border-radius: var(--pill); white-space: nowrap; }
.st-new { background: rgba(110, 140, 181, .18); color: var(--navy); }
.st-prep { background: var(--warn-bg); color: var(--warn); }
.st-ok { background: var(--ok-bg); color: var(--ok); }
.bars { height: 110px; display: flex; align-items: flex-end; gap: 6px; padding-top: 6px; }
.bars i { flex: 1; height: var(--h); border-radius: 4px 4px 2px 2px; background: var(--navy); opacity: .85; transform-origin: bottom; }
.bars i:nth-child(odd) { background: var(--steel); }

.tab-body { flex: 1; display: grid; grid-template-columns: 1fr 170px; min-height: 0; }
.tab-menu { padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.cats { display: flex; gap: 5px; flex-wrap: wrap; }
.cats span { padding: 2px 9px; border-radius: var(--pill); background: var(--linen); color: var(--ink-2); font-size: 9px; font-weight: 600; }
.cats span.on { background: var(--navy); color: #fff; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.tile { display: flex; flex-direction: column; gap: 2px; padding: 10px 8px; border-radius: 10px; background: var(--card); border: 1px solid var(--linen); font-weight: 600; color: var(--ink); font-size: 10px; }
.tile b { color: var(--navy); font-size: 10px; }
.tab-order { background: var(--card); border-inline-start: 1px solid var(--linen); padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.line { display: flex; justify-content: space-between; gap: 6px; padding-bottom: 5px; border-bottom: 1px solid var(--linen); font-size: 9.5px; }
.sum { display: flex; justify-content: space-between; font-weight: 700; color: var(--navy); font-size: 11px; margin-top: auto; }
.sendbtn { position: relative; display: grid; place-items: center; height: 30px; border-radius: 9px; background: var(--navy); color: #fff; font-weight: 700; font-size: 10.5px; }
.sendbtn > span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 5px; }
.sendbtn .lbl { opacity: 0; }
.sendbtn .done { background: var(--ok); position: absolute; inset: 0; display: flex; justify-content: center; border-radius: 9px; }

.ph-body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 10px; min-height: 0; }
.ph-hero { background: var(--navy); color: #fff; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; }
.ph-hero small { font-size: 8.5px; opacity: .85; }
.ph-hero b { font-size: 20px; }
.ph-two { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ph-two div { background: var(--card); border: 1px solid var(--linen); border-radius: 10px; padding: 6px 8px; display: flex; flex-direction: column; }
.ph-two small { font-size: 8px; color: var(--ink-2); }
.ph-two b { font-size: 13px; color: var(--navy); }
.ph-pay { background: var(--card); border: 1px solid var(--linen); border-radius: 10px; padding: 7px 9px; }
.ph-pay p { display: flex; justify-content: space-between; font-size: 9px; }
.ph-pay > i { display: block; height: 5px; border-radius: 3px; background: var(--linen); margin: 2px 0 6px; overflow: hidden; }
.ph-pay > i em { display: block; height: 100%; width: var(--w); background: var(--navy); border-radius: 3px; transform-origin: right; }
.ph-pay > i:last-child em { background: var(--steel); }
.ph-shift { background: var(--card); border: 1px solid var(--linen); border-radius: 10px; padding: 7px 9px; }
.ph-shift p:not(.ptitle) { display: flex; justify-content: space-between; font-size: 9px; padding: 2px 0; border-bottom: 1px solid var(--linen); }
.ph-tabs { margin-top: auto; display: flex; justify-content: space-around; border-top: 1px solid var(--linen); padding-top: 6px; font-size: 8.5px; color: var(--ink-3); }
.ph-tabs .on { color: var(--navy); font-weight: 700; }

/* ═══════════════════ كل الأنظمة تعمل معاً ═══════════════════ */
.connected { padding: var(--sec) 0; }
.connected .wrap { position: relative; z-index: 1; }
.connected .sec-head { margin-bottom: 8px; }
.net-caps { display: grid; text-align: center; min-height: 3.4em; margin-bottom: 18px; }
.net-caps p { grid-area: 1 / 1; font-size: clamp(16.5px, 2.6vw, 21px); font-weight: 500; color: var(--ink-2); opacity: 0; }
.net-caps p.final { opacity: 1; }

.net-map { position: relative; display: grid; gap: 34px; padding-inline-end: 30px; max-width: 620px; margin-inline: auto; }
.wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.wire { fill: none; stroke: var(--steel); stroke-opacity: .5; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.pulse { fill: none; stroke: var(--navy); stroke-width: 6; stroke-linecap: round; stroke-dasharray: .07 2; stroke-dashoffset: .07; opacity: 0; }

.node {
  position: relative; z-index: 1;
  background: var(--card); border: 1.5px solid var(--linen); border-radius: 20px;
  box-shadow: var(--shadow); padding: 14px 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.node .glow { position: absolute; inset: -1.5px; border-radius: 20px; border: 1.5px solid rgba(43, 76, 126, .6); box-shadow: 0 0 0 7px rgba(110, 140, 181, .22); opacity: 0; pointer-events: none; }
.node header { display: flex; align-items: center; gap: 10px; }
.node .ic { width: 36px; height: 36px; border-radius: 11px; background: var(--linen); display: grid; place-items: center; color: var(--navy); font-size: 21px; flex: none; }
.node h3 { font-size: 19px; flex: 1; }
.node .rows p { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14px; color: var(--ink-2); padding: 3px 0; }
.node .rows p b { font-weight: 600; color: var(--ink); }
.node .rows .tot { border-top: 1px solid var(--linen); margin-top: 3px; padding-top: 6px; font-size: 16px; font-weight: 700; color: var(--navy); }
.node .rows .tot b { color: var(--navy); }
.cnt { font-size: 19px; font-weight: 700 !important; color: var(--navy) !important; display: inline-block; }
.cnt.warn { color: var(--warn) !important; }
.paybtn { position: relative; display: grid; place-items: center; height: 44px; border-radius: 13px; background: var(--navy); color: #fff; font-weight: 700; font-size: 15px; overflow: hidden; margin-top: 4px; }
.paybtn > span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 7px; }
.paybtn .lbl { opacity: 0; }
.paybtn .ok { position: absolute; inset: 0; justify-content: center; background: var(--ok); }
.reorder { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--ink); font-weight: 500; }
.node .sub { font-size: 12.5px; color: var(--ink-2); }
.jtable p { display: grid; grid-template-columns: 1.6fr .8fr .8fr; gap: 6px; font-size: 13.5px; padding: 6px 10px; border-bottom: 1px solid var(--linen); }
.jtable p span { color: var(--ink); font-weight: 500; }
.jtable p b { text-align: left; font-weight: 600; }
.jtable .nil { color: var(--ash); }
.jtable .jh { background: var(--sand); border-radius: 8px; border: 0; font-size: 12px; color: var(--ink-2); font-weight: 600; }
.jtable .jh span { color: var(--ink-2); font-weight: 600; }
.jtable .jh span + span { text-align: left; }
.posted { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); transform-origin: right center; }
.mini { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; padding: 6px 10px; border-radius: 9px; background: var(--sand); }
.mini .i { color: var(--ok); stroke-width: 2.6; }

.soon { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 30px; }
.soon-l { font-size: 16px; color: var(--ink-2); font-weight: 500; }
.soon-chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 16px; border-radius: var(--pill); border: 2px dashed var(--ash); background: rgba(255, 255, 255, .75); font-size: 15px; font-weight: 600; }
.soon-chip .i { color: var(--navy); font-size: 18px; }
.soon-chip em { font-style: normal; font-size: 12px; color: var(--steel); }

@media (min-width: 980px) {
  .net-map {
    max-width: none;
    grid-template-columns: 1fr 1fr 1fr; gap: 48px; padding: 0;
    grid-template-areas: "c i a";
    align-items: start;
  }
  .n-cashier { grid-area: c; margin-top: 110px; }
  .n-inventory { grid-area: i; }
  .n-accounting { grid-area: a; margin-top: 70px; }
}
@media (min-width: 1100px) { .net-map { gap: 72px; grid-template-columns: 1fr 1fr 1.15fr; } }

/* ═══════════════════ the systems ═══════════════════ */
.system { padding: var(--sec) 0 0; }
.sys-row { display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) {
  .sys-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; }
  .sys-row.flip .sys-copy { order: 2; }
}
.sys-copy h2 { margin-bottom: 4px; }
.sys-copy.wide { max-width: 880px; margin-bottom: 32px; }
.sys-cta { margin-top: 28px; text-align: center; }
.templates { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -6px 0 24px; font-size: 13.5px; color: var(--ink-2); }
.templates em { font-style: normal; padding: 2px 10px; border-radius: var(--pill); background: var(--linen); color: var(--ink); font-weight: 500; }

/* the mock frame */
.mock {
  margin: 0; position: relative; min-width: 0;
  background: var(--card); border: 1px solid var(--linen); border-radius: 22px;
  box-shadow: var(--shadow); overflow: hidden;
}
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--sand); border-bottom: 1px solid var(--linen); font-size: 12.5px; color: var(--ink-2); }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--ash); }
.mock-bar span { margin-inline-start: 8px; font-weight: 600; }
.mock figcaption { padding: 10px 16px 14px; font-size: 12.5px; color: var(--ink-3); border-top: 1px solid var(--linen); }
.mock figcaption b { color: var(--ink); }
.mock > .scene { padding: 14px; }
@media (min-width: 640px) { .mock > .scene { padding: 18px; } }

/* accounting */
.acc .kpis.k3 { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.acc .kpis > div { padding: 8px 10px; border-radius: 12px; }
.acc .kpis small { font-size: 11px; line-height: 1.4; }
.acc .kpis b { font-size: clamp(13px, 3.4vw, 17px); }
.acc-grid { display: grid; gap: 12px; margin-top: 12px; }
@media (min-width: 560px) { .acc-grid { grid-template-columns: 1.3fr 1fr; } }
.acc-feed, .acc-pl { background: var(--paper); border: 1px solid var(--linen); border-radius: 14px; padding: 10px 12px; }
.feed { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--linen); font-size: 12.5px; }
.feed:last-child { border-bottom: 0; }
.feed span:nth-child(2) { flex: 1; min-width: 0; color: var(--ink); }
.feed b { font-weight: 600; }
.feed.dim { opacity: .6; }
.pl-bars { height: 120px; display: flex; align-items: flex-end; gap: 10px; }
.pl-bars span, .r-bars span { flex: 1; height: 100%; display: flex; align-items: flex-end; gap: 3px; position: relative; padding-bottom: 18px; }
.pl-bars i, .r-bars i { flex: 1; height: var(--h); background: var(--navy); border-radius: 4px 4px 2px 2px; transform-origin: bottom; }
.pl-bars i.b { background: var(--ash); }
.r-bars i { background: #D9CCB2; }
.r-bars i.b { background: var(--navy); }
.pl-bars em, .r-bars em { position: absolute; bottom: 0; inset-inline: -6px; text-align: center; font-style: normal; font-size: 10.5px; color: var(--ink-3); }
.acc .posted { margin-top: 12px; }

/* register */
.reg { display: grid; gap: 12px; }
@media (min-width: 420px) { .reg { grid-template-columns: 1fr 1fr; } .reg .receipt { grid-column: 1 / -1; } }
.reg-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; align-content: start; }
.reg .tile { font-size: 12.5px; padding: 10px; }
.reg .tile b { font-size: 12px; }
.reg-cart { display: flex; flex-direction: column; gap: 6px; background: var(--paper); border: 1px solid var(--linen); border-radius: 14px; padding: 10px 12px; }
.reg-cart p { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.reg-cart .line { font-size: 13.5px; font-weight: 600; }
.reg-cart .sm { color: var(--ink-2); font-size: 12px; }
.reg-cart .tot { font-weight: 700; color: var(--navy); font-size: 15px; border-top: 1px solid var(--linen); padding-top: 6px; }
.methods { display: flex; gap: 6px; }
.methods .m { flex: 1; text-align: center; padding: 5px 0; border-radius: 9px; border: 1.5px solid var(--linen); font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--card); }
.methods .m.on { border-color: var(--navy); color: var(--navy); }
.reg .paybtn { height: 40px; font-size: 14px; }
.receipt { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; border: 1.5px dashed var(--ash); background: var(--paper); }
.receipt .qr { font-size: 40px; color: var(--navy); stroke-width: 1.4; }
.receipt b { display: block; font-size: 13.5px; }
.receipt small { font-size: 12px; color: var(--ink-2); }

/* the kitchen */
.kds { position: relative; }
.kds-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kds-cols > div { background: var(--paper); border-radius: 12px; min-height: 270px; padding: 6px; }
.kh { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 4px 8px; }
.tk { display: flex; flex-direction: column; gap: 1px; padding: 8px; border-radius: 10px; background: var(--card); border: 1px solid var(--linen); border-inline-start: 3px solid #B07A2A; font-size: 11.5px; box-shadow: 0 2px 6px rgba(31, 58, 99, .05); }
.tk b { font-size: 12px; }
.tk small { font-size: 10.5px; color: var(--ink-3); }
.tk.ok { border-inline-start-color: var(--ok); }
.tk.new { border-inline-start-color: var(--steel); }
.tk-move {
  /* lives in the third column (جاهز, leftmost in RTL) and is carried there
     from the first: 2 × (its width + 12px column padding + 8px gap) */
  margin-top: 8px; position: relative;
  border-inline-start-color: var(--ok);
  --c1: calc(200% + 40px); --c2: calc(100% + 20px);
}
.kds-cols > div { display: flex; flex-direction: column; }
.tk-st { display: grid; margin-top: 3px; }
.tk-st em { grid-area: 1 / 1; font-style: normal; font-weight: 600; opacity: 0; }
.tk-st .s1 { color: var(--navy); }
.tk-st .s2 { color: var(--warn); }
.tk-st .s3 { color: var(--ok); opacity: 1; }

/* the QR menu */
.qrm { display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 290px; }
.qr-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 12px; border-radius: 16px; border: 1px solid var(--linen); background: var(--paper); box-shadow: var(--shadow-s); }
.qr-card small { font-size: 12px; color: var(--ink-2); font-weight: 600; }
.qr-box { position: relative; display: block; padding: 6px; border-radius: 12px; border: 1.5px solid var(--linen); background: var(--card); --sh: 66px; }
.qr-box .i { display: block; font-size: 72px; color: var(--navy); stroke-width: 1.3; }
.scan { position: absolute; inset-inline: 4px; top: 6px; height: 3px; border-radius: 2px; background: var(--steel); box-shadow: 0 0 12px var(--steel); opacity: 0; }
.mini-phone { position: relative; width: 150px; padding: 26px 10px 12px; border-radius: 26px; background: var(--paper); border: 6px solid var(--night); box-shadow: var(--shadow-s); display: flex; flex-direction: column; gap: 4px; }
.mini-phone .notch { opacity: 1; top: 4px; width: 46px; margin-left: -23px; height: 12px; }
.mp-h { font-size: 12px; font-weight: 700; text-align: center; color: var(--navy); }
.mini-phone .cats span { font-size: 9.5px; padding: 1px 7px; }
.mp-i { display: flex; justify-content: space-between; align-items: center; font-size: 11px; padding: 4px 0; border-bottom: 1px solid var(--linen); }
.mp-i b { color: var(--navy); font-weight: 600; }
.swap { display: inline-grid; justify-items: end; }
.swap > * { grid-area: 1 / 1; }
.swap > [data-a="out"] { opacity: 0; }

.pos-grid { display: grid; gap: 20px; }
@media (min-width: 640px) {
  .pos-grid { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .pos-grid .mock:first-child { grid-column: 1 / -1; }
  .pos-grid .mock { display: flex; flex-direction: column; }
  .pos-grid .mock > .scene { flex: 1; }
}
@media (min-width: 1000px) {
  .reg { grid-template-columns: 1.15fr 1fr .75fr; align-items: start; }
  .reg .receipt { grid-column: auto; flex-direction: column; text-align: center; padding: 18px 12px; }
  .reg .receipt .qr { font-size: 64px; }
}

/* inventory */
.inv-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.inv-table th { text-align: start; font-size: 11.5px; font-weight: 700; color: var(--ink-2); background: var(--linen); padding: 6px 8px; }
.inv-table th:first-child { border-radius: 0 8px 8px 0; }
.inv-table th:last-child { border-radius: 8px 0 0 8px; }
.inv-table td { padding: 8px; border-bottom: 1px solid var(--linen); vertical-align: middle; }
.inv-table td:first-child { font-weight: 600; }
.inv-table td small { display: block; font-size: 11px; font-weight: 500; color: var(--ink-3); }
.inv-table td.ltr { font-weight: 700; color: var(--navy); text-align: right; }
.inv-ledger { margin-top: 12px; background: var(--paper); border: 1px solid var(--linen); border-radius: 14px; padding: 10px 12px; }
.inv-ledger p:not(.ptitle) { display: grid; grid-template-columns: 44px 1fr; column-gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--linen); font-size: 12.5px; }
.inv-ledger p:last-child { border-bottom: 0; }
.inv-ledger .mv { grid-row: span 2; align-self: center; font-weight: 700; color: var(--navy); text-align: center; }
.inv-ledger .mv.out { color: var(--late); }
.inv-ledger small { color: var(--ink-3); font-size: 11.5px; }
.inv .reorder { margin-top: 12px; }

.ghiyar {
  margin-top: 40px; display: grid; gap: 18px; align-items: center;
  padding: 22px; border-radius: 22px; background: var(--sand); border: 1px solid var(--linen);
}
.ghiyar h3 { font-size: clamp(18px, 2.6vw, 22px); margin-bottom: 6px; }
.ghiyar p { color: var(--ink-2); }
.ghiyar-inc { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; border-radius: 16px; background: var(--card); }
.ghiyar-inc b { color: var(--ok); font-size: 18px; }
@media (min-width: 860px) { .ghiyar { grid-template-columns: 1fr 280px; padding: 28px 32px; } }

/* ═══════════════════ أمين لإدارة التمويل ═══════════════════ */
.financing {
  padding: 40px 0 72px;
  background: linear-gradient(var(--paper), var(--sand) 12%, var(--sand) 88%, var(--paper));
}
.fin-head { display: grid; gap: 24px; align-items: end; margin-bottom: 40px; }
.fin-head .sec-head { margin: 0; }
@media (min-width: 960px) { .fin-head { grid-template-columns: 1fr 360px; gap: 48px; } }
.fin-side { display: grid; gap: 10px; justify-items: start; padding: 20px; border-radius: 20px; background: var(--card); border: 1px solid var(--linen); box-shadow: var(--shadow-s); }
.price-line b { font-size: 34px; color: var(--navy); margin-inline-end: 4px; }
.price-line span { display: block; font-size: 14px; color: var(--ink-2); }
.note { font-size: 13.5px; color: var(--ink-2); }

/* the hook */
.pain { position: relative; margin-bottom: 72px; }
.pain-q { text-align: center; font-size: clamp(22px, 5vw, 38px); font-weight: 700; line-height: 1.4; margin-bottom: 12px; }
.pain-board { position: relative; height: clamp(320px, 62vw, 420px); container-type: size; border-radius: 26px; }
html:not(.motion) .pain-board { height: clamp(220px, 40vw, 300px); }
.pn {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(.3); opacity: 0;
  background: var(--card); border: 1px solid var(--linen); border-radius: 12px; box-shadow: var(--shadow-s);
  padding: 8px 10px; font-size: clamp(10px, 2.3vw, 12.5px); line-height: 1.5;
  width: max-content; max-width: 46cqw;
}
.pn-xl { padding: 0; overflow: hidden; }
.pn-xl .xl-h { background: #1F7A45; color: #fff; font-size: .9em; padding: 3px 8px; direction: ltr; }
.pn-xl p:not(.xl-h) { display: grid; grid-template-columns: 1.3fr 1fr .6fr; gap: 6px; padding: 2px 8px; border-bottom: 1px solid var(--linen); }
.pn-xl p:nth-child(2) { font-weight: 700; background: var(--sand); }
.pn-xl .bad { color: var(--late); font-weight: 700; }
.pn-note { background: #FBF6EA; display: flex; flex-direction: column; }
.pn-note b { font-size: 1.15em; }
.pn-note span { color: var(--late); }
.pn-chat .ch-h { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.pn-chat .ch-h em { font-style: normal; background: var(--late); color: #fff; font-size: .8em; padding: 0 6px; border-radius: var(--pill); }
.pn-chat .ch-m { background: #E7F4E4; border-radius: 8px; padding: 3px 8px; margin-top: 4px; }
.pn-chat .ch-m b { display: block; font-size: .85em; color: var(--ok); }
.pn-book { display: flex; flex-direction: column; border-inline-end: 4px solid #8A5A2B; background: #FFFDF8; }
.pn-book span { color: var(--ink-2); }
.pn-sticky { padding: 12px 14px; border-radius: 4px; font-weight: 700; font-size: clamp(12px, 2.8vw, 15px); color: var(--ink); border: 0; }
.pn-sticky.y { background: #F7E08A; }
.pn-sticky.r { background: #F5BDB4; }
.pain-answer { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; }
.pain-answer img { width: auto; height: clamp(84px, 18vw, 130px); }
.pa-t { font-size: clamp(22px, 4.6vw, 34px); font-weight: 700; color: var(--navy); }
.pa-s { font-size: clamp(15px, 3vw, 19px); color: var(--ink-2); }

/* the stations */
.station { display: grid; gap: 24px; align-items: center; margin-bottom: 80px; }
@media (min-width: 960px) {
  .station { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; margin-bottom: 104px; }
  .station:nth-of-type(even) .st-copy { order: 2; }
  .station.wide { grid-template-columns: 1fr; }
  .station.wide .st-copy { order: 0 !important; text-align: center; max-width: 760px; margin-inline: auto; }
  .station.wide .kick-line { justify-content: center; }
}
.station.wide .st-copy { text-align: center; }
.station.wide .kick-line { justify-content: center; }
.kick-line { display: flex; align-items: center; gap: 10px; color: var(--steel); font-weight: 600; font-size: 14.5px; margin-bottom: 8px; }
.kick-line span { width: 26px; height: 3px; border-radius: 2px; background: var(--steel); }
.st-copy h3 { font-size: clamp(23px, 4.4vw, 34px); line-height: 1.35; }
.st-copy .st-2 { margin-top: 22px; }
.st-sub { color: var(--ink-2); font-size: 16px; margin-top: 8px; }
.tally { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.tally > div { display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 16px; }
.tally b { font-size: 34px; line-height: 1; }
.tally span { font-size: 14px; font-weight: 600; }
.t-auto { background: var(--navy); color: #fff; }
.t-you { background: var(--gold); color: var(--night); }
.station .mock { background: var(--card); }
.station .mock > .scene { padding: 14px; }
@media (min-width: 640px) { .station .mock > .scene { padding: 20px; } }
.mock-note { margin-top: 10px; text-align: center; font-size: 12.5px; color: var(--ink-3); }

/* the سند */
.pdf { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1.5px dashed var(--ash); background: var(--paper); }
.pdf-ic { position: relative; display: grid; place-items: center; width: 40px; height: 46px; border-radius: 8px; background: var(--card); color: var(--navy); font-size: 26px; border: 1px solid var(--linen); }
.pdf-ic em { position: absolute; bottom: -4px; inset-inline-end: -6px; font-style: normal; font-size: 9px; font-weight: 700; background: var(--late); color: #fff; padding: 0 5px; border-radius: 4px; }
.pdf div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pdf b { font-size: 14px; }
.pdf small { font-size: 11.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.st3 { justify-items: end; }
.st3 > em { font-style: normal; opacity: 0; }
.st3 > em:last-child { opacity: 1; }
.form-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin: 14px 0 8px; }
.form-head > b { font-size: 15px; }
.counters { display: flex; gap: 6px; }
.cn { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--pill); font-size: 11.5px; font-weight: 600; }
.cn b { font-size: 15px; }
.cn.auto { background: var(--navy); color: #fff; }
.cn.you { background: var(--gold); color: var(--night); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 10px; }
.fields .fs { grid-column: 1 / -1; font-size: 12px; font-weight: 700; color: var(--navy); padding-inline-start: 8px; border-inline-start: 3px solid var(--navy); margin-top: 6px; line-height: 1.3; }
.f { display: flex; flex-direction: column; min-width: 0; padding: 4px 8px; border-radius: 8px; background: var(--paper); border: 1px solid var(--linen); }
.f span { font-size: 10.5px; color: var(--ink-3); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.f b { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 1.5em; }
.f b[data-a="fill"]::after { content: " ✓"; color: var(--ok); font-size: 10px; }
.you-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-top: 10px; }
.f-you { border: 2px solid #D9B66F; background: #FFF9EC; box-shadow: 0 0 0 4px rgba(243, 217, 164, .45); }
.f-you b { font-size: 16px; color: var(--night); }
.typed::after { content: ""; display: inline-block; width: 2px; height: 1em; background: var(--navy); margin-inline-start: 2px; vertical-align: -2px; opacity: 0; }
.motion .scene.play .typed::after { animation: caret 1s steps(1) 4.6s 4; }
@keyframes caret { 0% { opacity: 1; } 50% { opacity: 0; } }
.f-calc b { font-size: 14px; color: var(--navy); }
.f-calc b.ok, b.ok { color: var(--ok); }
.sched { display: flex; align-items: center; gap: 4px; margin-top: 10px; flex-wrap: wrap; }
.sc-l { font-size: 11.5px; font-weight: 700; color: var(--ink-2); margin-inline-end: 6px; }
.sched i { width: 17px; height: 17px; border-radius: 5px; background: var(--navy); opacity: .85; }
.sched i:first-of-type { background: var(--ok); }
.make { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.btn-mini { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 10px; background: var(--ok); color: #fff; font-size: 12.5px; font-weight: 700; }

/* the shared contract */
.ccard { padding: 12px 14px; border-radius: 16px; border: 1px solid var(--linen); background: var(--paper); }
.cc-h { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cc-h b { font-size: 16px; margin-inline-end: 4px; }
.cc-who { font-size: 12px; color: var(--ink-2); margin: 2px 0 8px; }
.cc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.cc-stats p { display: flex; flex-direction: column; }
.cc-stats small { font-size: 10.5px; color: var(--ink-3); }
.cc-stats b { font-size: clamp(12px, 3vw, 15px); color: var(--navy); white-space: nowrap; }
.cc-split { margin: 10px 0 6px; }
.splitbar { position: relative; height: 30px; border-radius: 9px; overflow: hidden; background: var(--navy); color: #fff; font-size: 11px; font-weight: 600; }
.seg { position: absolute; top: 0; bottom: 0; display: grid; place-items: center; }
.seg em { grid-area: 1 / 1; font-style: normal; white-space: nowrap; }
.s-own { right: 0; width: 50%; }
.s-own .lab-one { opacity: 0; }
.s-f { left: 0; width: 50%; background: var(--teal); transform-origin: left; }
.s-f em { position: absolute; top: 0; bottom: 0; right: 0; width: 60%; display: grid; place-items: center; }
.s-k { left: 0; width: 20%; background: #B07A2A; transform-origin: left; }
.wires3 { display: grid; grid-template-columns: repeat(3, 1fr); height: 22px; }
.wires3 i { justify-self: center; width: 2px; height: 100%; background: var(--ash); transform-origin: top; }
.pots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pot { position: relative; min-width: 0; padding: 9px 9px 8px; border-radius: 14px; background: var(--card); border: 1px solid var(--linen); border-top: 4px solid var(--navy); box-shadow: var(--shadow-s); }
.pot.p-f { border-top-color: var(--teal); }
.pot.p-k { border-top-color: #B07A2A; }
.pt-h { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 5px; min-width: 0; }
.pt-h b { font-size: clamp(11.5px, 2.8vw, 13.5px); line-height: 1.35; flex: 1; min-width: 0; }
@media (max-width: 520px) { .pot .av { display: none; } }
.pt-h em { font-style: normal; font-weight: 700; font-size: 12px; color: var(--navy); }
.p-f .pt-h em { color: var(--teal); }
.p-k .pt-h em { color: var(--warn); }
.av { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 11px; font-weight: 700; flex: none; }
.p-f .av, .av.teal { background: var(--teal); }
.p-k .av { background: #B07A2A; }
.av.steel { background: var(--steel); }
.pot > small { display: block; font-size: 10px; color: var(--ink-3); margin-bottom: 4px; }
.pot > p:not(.pt-h):not(.bal) { display: flex; justify-content: space-between; gap: 4px; font-size: clamp(10px, 2.5vw, 12px); padding: 2px 0; border-top: 1px solid var(--linen); }
.pot > p b { font-weight: 700; }

/* الحصالة */
.event { display: grid; justify-items: center; margin-bottom: 12px; }
.event > span { grid-area: 1 / 1; font-size: 12.5px; padding: 4px 12px; opacity: 0; }
.event > span:last-child { opacity: 1; }
.treasury .pots { margin-bottom: 12px; }
.bal { display: flex; flex-direction: column; margin-top: 6px; }
.bal small { font-size: 10px; color: var(--ink-3); }
.bal b { font-size: clamp(14px, 3.6vw, 19px); color: var(--ink); font-variant-numeric: tabular-nums; }
.coin { position: absolute; top: 8px; inset-inline-end: 8px; font-style: normal; font-size: 12px; font-weight: 700; color: var(--ok); opacity: 0; }
.tkpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tkpis p { display: flex; flex-direction: column; padding: 9px 11px; border-radius: 14px; background: var(--paper); border: 1px solid var(--linen); }
.tkpis small { font-size: 11px; color: var(--ink-2); font-weight: 600; }
.tkpis b { font-size: clamp(17px, 4vw, 22px); color: var(--ink); font-variant-numeric: tabular-nums; }
.tkpis i { font-style: normal; font-size: 10.5px; color: var(--ink-3); line-height: 1.4; }
.tkpis .main { background: var(--navy); border-color: var(--navy); }
.tkpis .main small, .tkpis .main i { color: rgba(255, 255, 255, .78); }
.tkpis .main b { color: #fff; }
@media (min-width: 560px) { .tkpis { grid-template-columns: repeat(4, 1fr); } }

/* المشتريات */
.inv-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.inv-h .ic { width: 36px; height: 36px; border-radius: 11px; background: var(--linen); display: grid; place-items: center; color: var(--navy); font-size: 20px; flex: none; }
.inv-h > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.inv-h b { font-size: 15.5px; }
.inv-h small { font-size: 11.5px; color: var(--ink-2); line-height: 1.5; }
.vendor { padding: 10px 12px; border-radius: 14px; background: var(--sand); display: flex; flex-direction: column; gap: 2px; }
.vendor > small { font-size: 11px; color: var(--ink-2); font-weight: 600; }
.vendor p { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vendor b { font-size: 15px; }
.itable { margin-top: 10px; }
.itable p { display: grid; grid-template-columns: 2.2fr .6fr 1fr; gap: 6px; padding: 8px 10px; font-size: 13px; border-bottom: 1px solid var(--linen); }
.itable p > :nth-child(2) { text-align: center; }
.itable p > :last-child { text-align: left; }
.itable .ih { background: var(--linen); border-radius: 8px; border: 0; font-size: 11.5px; font-weight: 700; color: var(--ink-2); }
.totals { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.totals p { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-2); }
.totals .tot { font-size: 15.5px; font-weight: 700; color: var(--navy); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.vat { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 14px; border: 2px solid rgba(63, 125, 92, .55); background: rgba(63, 125, 92, .07); }
.vat > .i { font-size: 22px; color: var(--ok); stroke-width: 2.6; }
.vat div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.vat b { font-size: 13.5px; }
.vat small { font-size: 11.5px; color: var(--ink-2); }

/* the collection & the reports */
.duo { display: grid; gap: 20px; }
@media (min-width: 900px) { .duo { grid-template-columns: 1.15fr 1fr; } }
.c-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.c-stats p { display: flex; flex-direction: column; padding: 7px 9px; border-radius: 12px; background: var(--paper); border: 1px solid var(--linen); }
.c-stats small { font-size: 10.5px; color: var(--ink-2); }
.c-stats b { font-size: clamp(14px, 3.4vw, 17px); color: var(--navy); }
.c-row { display: flex; align-items: center; gap: 8px; padding: 8px 4px; border-bottom: 1px solid var(--linen); }
.c-row:last-child { border-bottom: 0; }
.c-row > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.c-row > div b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-row > div small { font-size: 10.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-row .amt { font-size: 13.5px; font-weight: 700; }
.sbtn { position: relative; display: inline-grid; place-items: center; min-width: 84px; height: 28px; border-radius: 9px; background: var(--navy); color: #fff; font-size: 11.5px; font-weight: 700; overflow: hidden; flex: none; }
.sbtn em { grid-area: 1 / 1; font-style: normal; }
.sbtn em[data-a="out"] { opacity: 0; }
.sbtn .done { position: absolute; inset: 0; display: grid; place-items: center; background: #E3EFE7; color: var(--ok); }
.c-row.is-paid { background: linear-gradient(90deg, transparent, rgba(63, 125, 92, .05)); }
.r-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 12px; }
.r-kpis p { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 1px; padding: 7px 10px; border-radius: 12px; background: var(--paper); border: 1px solid var(--linen); }
.r-kpis small { flex-basis: 100%; font-size: 10.5px; color: var(--ink-2); }
.r-kpis b { font-size: clamp(17px, 4vw, 22px); color: var(--navy); }
.r-kpis b.ok { color: var(--ok); }
.r-kpis b.warn { color: var(--warn); }
.r-bars { height: 150px; display: flex; align-items: flex-end; gap: 8px; }

/* individual statistics */
.stats { display: grid; gap: 16px; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat-card { padding: 16px; border-radius: 20px; background: var(--card); border: 1px solid var(--linen); box-shadow: var(--shadow); }
.sc-k { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: var(--pill); background: rgba(110, 140, 181, .16); color: var(--navy); font-size: 12px; font-weight: 700; }
.sc-k.gold { background: var(--gold); color: var(--night); }
.sc-p { display: flex; align-items: center; gap: 10px; margin: 12px 0 10px; }
.sc-p .av { width: 34px; height: 34px; font-size: 15px; }
.sc-p span:last-child { display: flex; flex-direction: column; min-width: 0; }
.sc-p b { font-size: 15.5px; }
.sc-p small { font-size: 12px; color: var(--ink-3); }
.ring-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ring { width: 56px; height: 56px; transform: rotate(-90deg); flex: none; }
.ring circle { fill: none; stroke: var(--linen); stroke-width: 5; }
.ring .arc { stroke: var(--steel); stroke-linecap: round; stroke-dasharray: var(--p) 100; }
.ring .arc.teal { stroke: var(--teal); }
.ring .arc.gold { stroke: #D9B66F; }
.ring-row > b { font-size: 18px; color: var(--navy); }
.ring-row small { font-size: 12px; color: var(--ink-2); }
.sr { display: flex; justify-content: space-between; padding: 6px 0; border-top: 1px solid var(--linen); font-size: 13.5px; }
.sr span { color: var(--ink-2); }
.sr b { font-weight: 700; }

.fin-all { text-align: center; padding: 28px 18px; border-radius: 24px; background: var(--card); border: 1px solid var(--linen); }
.fa-t { font-weight: 700; font-size: 17px; margin-bottom: 14px; }
.fa-list { list-style: none; padding: 0; margin: 0 auto 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 860px; }
.fa-list li { padding: 4px 12px; border-radius: var(--pill); background: var(--sand); font-size: 13.5px; font-weight: 500; }

/* ═══════════════════ الأسعار ═══════════════════ */
.pricing { padding: 72px 0 var(--sec); }
.path-sys .pricing { padding-top: var(--sec); }
.price-grid.one { max-width: 560px; grid-template-columns: 1fr; }
.price-grid.one + .ghiyar-note, .price-grid.one ~ .price-notes { max-width: 560px; }
.other-path {
  max-width: 560px; margin: 28px auto 0; padding: 14px 18px; border-radius: 16px; text-align: center;
  border: 1.5px dashed var(--ash); font-size: 15px; color: var(--ink-2);
}
.other-path a { font-weight: 700; color: var(--navy); }
.price-grid { display: grid; gap: 20px; max-width: 980px; margin-inline: auto; align-items: stretch; }
@media (min-width: 860px) { .price-grid { grid-template-columns: 1.1fr 1fr; } }
.price {
  position: relative; display: flex; flex-direction: column; align-items: flex-start;
  padding: 26px 22px; border-radius: 26px;
  background: var(--card); border: 1px solid var(--linen); box-shadow: var(--shadow);
}
.price h3 { font-size: clamp(20px, 3vw, 24px); margin-top: 12px; }
.price .price-for { font-size: 14px; color: var(--ink-2); margin-top: 6px; }
.price-amt { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.price-amt > b { font-size: 56px; line-height: 1; color: var(--navy); }
.price-amt > span { font-size: 16px; color: var(--ink-2); font-weight: 600; }
.price-alt { margin-top: 10px; font-size: 15.5px; color: var(--ink-2); display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.price-alt b { color: var(--ink); }
.price .ticks { margin: 18px 0 22px; }
.price .btn { margin-top: auto; width: 100%; }
.plain-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 14px; border-radius: var(--pill); background: var(--linen); color: var(--navy); font-size: 13.5px; font-weight: 700; }

.price.is-offer {
  background: radial-gradient(120% 90% at 50% 20%, var(--navy) 0%, var(--navy-2) 55%, var(--night) 100%);
  border-color: var(--night); color: var(--paper);
  overflow: hidden;
}
.price.is-offer::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07;
  background: linear-gradient(#fff 1px, transparent 1px) 0 0 / 40px 40px, linear-gradient(90deg, #fff 1px, transparent 1px) 0 0 / 40px 40px;
}
.price.is-offer > * { position: relative; }
.offer-pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 16px; border-radius: var(--pill); background: var(--gold); color: var(--night); font-size: 15px; font-weight: 700; }
.offer-pill .i { font-size: 17px; stroke-width: 2.1; }
.is-offer .price-for, .is-offer .price-alt { color: rgba(253, 251, 246, .8); }
.is-offer .price-alt b { color: var(--paper); }
.is-offer .price-amt > b { color: var(--gold); }
.is-offer .price-amt > span { color: rgba(253, 251, 246, .85); }
.bundle { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.bundle span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 14px; background: rgba(253, 251, 246, .1); border: 1.5px solid rgba(253, 251, 246, .22); font-weight: 700; font-size: 15px; }
.bundle span .i { font-size: 18px; }
@media (max-width: 480px) { .bundle { gap: 4px; } .bundle span { font-size: 13.5px; padding: 5px 8px; gap: 4px; } .bundle span .i { font-size: 15px; } .bundle em { font-size: 15px; } }
.bundle em { font-style: normal; color: var(--gold); font-weight: 600; font-size: 18px; }
.strike { position: relative; display: inline-block; text-decoration: none; font-weight: 700; font-size: 17px; color: rgba(253, 251, 246, .62); }
.strike i { position: absolute; right: -5px; left: -5px; top: 48%; height: 3px; border-radius: 3px; background: var(--strike); transform: rotate(-6deg); transform-origin: right center; box-shadow: 0 1px 6px rgba(0, 0, 0, .25); }
.price-amt .strike { margin-inline-start: 6px; }
.price-alt .strike { font-size: 18px; color: rgba(253, 251, 246, .62); }
.price-term {
  display: inline-block; font-style: normal; font-weight: 700; font-size: 20px; line-height: 1.4;
  padding: 1px 16px; border-radius: var(--pill); background: var(--gold); color: var(--night);
}
.yr2 { flex-basis: 100%; font-size: 14px; }
@media (min-width: 420px) { .yr2 { flex-basis: auto; } }
/* The annual "before" price, struck, on a light card or in a line of text —
   «~~١٥٠٠~~ ١٢٠٠» on financing (0159). */
.price:not(.is-offer) .strike { color: var(--ink-3); }
.was { text-decoration: line-through; text-decoration-color: var(--strike); text-decoration-thickness: 2px; color: var(--ink-3); font-weight: 700; }

.ghiyar-note { max-width: 980px; margin: 22px auto 0; padding: 14px 18px; border-radius: 16px; background: var(--sand); font-size: 14.5px; color: var(--ink-2); }
.ghiyar-note b { color: var(--ink); }
.price-notes { max-width: 980px; margin: 18px auto 0; padding: 0 20px 0 0; display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-2); }

/* ═══════════════════ trust + start ═══════════════════ */
.start { padding: var(--sec) 0; border-top: 1px solid var(--line); }
.start-grid { display: grid; gap: 48px; }
@media (min-width: 960px) { .start-grid { grid-template-columns: 1fr 1fr; gap: 72px; } }
.start-grid.start-one { max-width: 640px; grid-template-columns: 1fr; }
.start h2 { font-size: clamp(26px, 5vw, 38px); }
.steps { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 14px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.step-n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; flex: none; }
.steps h3 { font-size: 17px; }
.steps p { color: var(--ink-2); font-size: 14.5px; }

/* ═══════════════════ made in Saudi + footer ═══════════════════ */
.foot { background: var(--night); color: rgba(253, 251, 246, .82); }
.made {
  position: relative; overflow: hidden; text-align: center;
  padding: 64px 16px 92px;
  background:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px) 0 0 / 64px 64px,
    radial-gradient(120% 90% at 50% 40%, var(--navy) 0%, var(--navy-2) 55%, var(--night) 100%);
}
.made-mark { width: auto; height: clamp(84px, 18vw, 132px); margin: 0 auto 18px; }
.made-line { display: flex; align-items: center; justify-content: center; gap: 12px; }
.made-line h2 { font-size: clamp(20px, 5.2vw, 38px); color: var(--paper); line-height: 1.4; }
.made-rule { display: block; height: 3px; margin-top: 6px; border-radius: 2px; background: linear-gradient(90deg, rgba(93, 187, 132, 0), var(--palm), rgba(93, 187, 132, 0)); }
.palm { font-size: clamp(34px, 8vw, 56px); color: var(--palm); stroke-width: 1.6; }
.palm.flip { transform: scaleX(-1); }
.made-sub { margin-top: 14px; color: rgba(253, 251, 246, .78); }
.made .ctas { margin-top: 22px; }
.made-url { color: var(--gold); font-weight: 600; font-size: 17px; text-decoration: none; }
.made-url:hover { text-decoration: underline; }
.sadu {
  position: absolute; inset-inline: 0; bottom: 0; height: 30px;
  background-color: var(--night);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='30' viewBox='0 0 88 30'%3E%3Cpath d='M0 30 22 6l22 24z' fill='%23F3D9A4'/%3E%3Cpath d='M44 30 66 6l22 24z' fill='%230B7A43'/%3E%3Cpath d='M14 30 22 21l8 9zM58 30l8-9 8 9z' fill='%2316294A'/%3E%3C/svg%3E");
  background-size: 88px 30px; background-repeat: repeat-x; background-position: center bottom;
}

.foot-shell { max-width: var(--col); margin-inline: auto; padding: 48px 16px 28px; }
@media (min-width: 640px) { .foot-shell { padding-inline: 24px; } }
.foot-main { display: grid; gap: 36px; }
@media (min-width: 900px) { .foot-main { grid-template-columns: 1.1fr 1.4fr; gap: 64px; } }
.foot-brand-logo img { height: 44px; width: auto; }
.foot-brand-desc { margin-top: 14px; font-size: 14.5px; line-height: 1.8; max-width: 46ch; }
.foot-brand-note { margin-top: 8px; font-size: 13px; color: rgba(253, 251, 246, .6); }
.foot-contact { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.foot-contact a, .foot-loc { display: inline-flex; align-items: center; gap: 10px; color: rgba(253, 251, 246, .85); text-decoration: none; font-size: 14px; }
.foot-contact a:hover { color: #fff; }
.foot-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (min-width: 560px) { .foot-cols { grid-template-columns: repeat(3, 1fr); } }
.foot-col-t { font-size: 14px; color: var(--gold); margin-bottom: 10px; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.foot-col a { color: rgba(253, 251, 246, .8); text-decoration: none; font-size: 14px; }
.foot-col a:hover { color: #fff; text-decoration: underline; }
.foot-bottom { margin-top: 40px; padding-top: 18px; border-top: 1px solid rgba(253, 251, 246, .12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 13px; color: rgba(253, 251, 246, .62); }
.foot-copy a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.foot a:focus-visible, .foot button:focus-visible { outline-color: var(--gold); }

/* ═══════════════════ الدخول وفتح الحساب ═══════════════════ */
.auth {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
}
.auth[hidden] { display: none; }
.auth-scrim { position: fixed; inset: 0; background: rgba(15, 22, 34, .55); backdrop-filter: saturate(140%) blur(6px); }
.auth-card {
  position: relative; width: 100%; max-width: 480px; margin-block: auto;
  padding: var(--s6) var(--s6) var(--s4); border-radius: 18px;
  border: 1px solid var(--line-2);
  background: radial-gradient(900px 300px at 50% -10%, rgba(43, 76, 126, .09), transparent 62%), var(--card);
  box-shadow: 0 1px 2px rgba(18, 38, 63, .05), 0 22px 50px -16px rgba(18, 38, 63, .30);
}
@media (max-width: 520px) { .auth-card { padding: var(--s4) var(--s3) var(--s3); } }
.auth-x { position: absolute; inset-inline-end: 12px; top: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-3); font-size: 24px; line-height: 1; cursor: pointer; }
.auth-x:hover { background: var(--linen); color: var(--ink); }
.auth-mark { height: 42px; width: auto; margin-bottom: var(--s3); }
.auth-tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: var(--s4); background: var(--linen); border-radius: 12px; }
.auth-tab { flex: 1; border: 0; cursor: pointer; padding: 10px 8px; border-radius: 9px; font: 600 14.5px/1 var(--f); color: var(--ink-2); background: transparent; transition: background-color .18s ease, color .18s ease; }
.auth-tab.is-on { background: var(--card); color: var(--navy); box-shadow: 0 1px 2px rgba(18,38,63,.08); }
.auth-form { display: grid; gap: var(--s3); }
.auth-title { font-size: 25px; line-height: 1.25; }
.auth-sub { font-size: 15px; color: var(--ink-2); margin-top: -6px; }
.fld { display: grid; gap: 6px; }
.fld-l { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.fld-l i { color: var(--late); font-style: normal; }
.fld input {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px;
  border: 1.5px solid var(--line-2); background: var(--paper);
  font: 400 16px/1 var(--f); color: var(--ink);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.fld input::placeholder { color: var(--ink-3); }
.fld input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(43, 76, 126, .15); }
.fld input[aria-invalid="true"] { border-color: var(--late); }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
@media (max-width: 460px) { .fld-row { grid-template-columns: 1fr; } }
.auth-go { width: 100%; min-height: 52px; border-radius: 14px; font-weight: 700; }
.auth-msg { font-size: 14px; min-height: 0; }
.auth-msg:empty { display: none; }
.auth-msg.is-bad { color: var(--late); }
.auth-msg.is-good { color: var(--ok); }
.auth-fine { font-size: 12.5px; line-height: 1.7; color: var(--ink-3); }
.auth-fine a { color: var(--blue); }
.agree { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.7; color: var(--ink-2); cursor: pointer; }
.agree input { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--navy); cursor: pointer; }
.agree input[aria-invalid="true"] { outline: 2px solid var(--late); outline-offset: 2px; }
.linkish { border: 0; background: none; padding: 0; font: inherit; color: var(--blue); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.terms-card { max-width: 620px; }
.terms-body { max-height: min(58vh, 520px); overflow-y: auto; margin-block: var(--s3); padding-inline-end: 6px; display: grid; gap: var(--s2); }
.terms-body h3 { font-size: 15px; font-weight: 700; color: var(--navy); margin-top: var(--s2); }
.terms-body h3:first-child { margin-top: 0; }
.terms-body p { font-size: 14.5px; line-height: 1.8; color: var(--ink-2); }
.terms-body b { color: var(--ink); font-weight: 700; }
.terms-date { font-size: 12.5px; color: var(--ink-3); margin-top: var(--s2); }
.auth-launch { text-decoration: none; }
.auth-launch[hidden] { display: none !important; }
.auth-where { font-family: var(--m); font-size: 12px; word-break: break-all; }
.auth-where[hidden] { display: none !important; }

/* ═══════════════════════════════════════════════════════════════════════
   MOTION.

   Only under `html.motion`. A scene's elements carry data-a="<kind>" and a
   delay in --d; the scene gets `.play` when it scrolls into view (taiseer.js),
   and the keyframes run FROM the start state TO the resting one. Without
   `.play` an element sits in its start state; without `.motion` there are no
   start states at all — every mock is simply finished.
   Only transform, opacity, clip-path and stroke offsets move.
   ═══════════════════════════════════════════════════════════════════════ */
.motion .scene { transition: opacity .42s ease; }
.motion .scene.fadeout { opacity: 0; }

/* the start states */
.motion .scene:not(.play) :is([data-a="rise"], [data-a="fade"], [data-a="pop"], [data-a="slide"], [data-a="fill"], [data-a="mid"]) { opacity: 0; }
.motion .scene:not(.play) [data-a="out"] { opacity: 1; }
.motion .scene:not(.play) [data-a="grow"] { transform: scaleX(0); }
.motion .scene:not(.play) [data-a="growy"] { transform: scaleY(0); }
.motion .scene:not(.play) [data-a="draw"] { stroke-dashoffset: 1; }
.motion .scene:not(.play) [data-a="clip"] { clip-path: inset(0 0 0 100%); }
.motion .scene:not(.play) [data-a="ring"] { stroke-dasharray: 0 100; }
.motion .scene:not(.play) [data-a="focus"] { border-color: var(--linen); box-shadow: none; background: var(--paper); }
.motion .scene:not(.play) [data-a="move"] { transform: translateX(var(--c1)); opacity: 0; }
.motion .scene:not(.play) .s-own .lab-one { opacity: 1; }
.motion .scene:not(.play) .s-own em:not(.lab-one) { opacity: 0; }

/* the moves */
.motion .scene.play [data-a] { animation-duration: var(--t, .6s); animation-delay: var(--d, 0s); animation-fill-mode: both; animation-timing-function: var(--ease); }
.motion .scene.play [data-a="rise"]  { animation-name: a-rise; --t: .6s; }
.motion .scene.play [data-a="fade"]  { animation-name: a-fade; --t: .4s; }
.motion .scene.play [data-a="pop"]   { animation-name: a-pop; --t: .5s; }
.motion .scene.play [data-a="slide"] { animation-name: a-slide; --t: .5s; }
.motion .scene.play [data-a="fill"]  { animation-name: a-fill; --t: .35s; }
.motion .scene.play [data-a="out"]   { animation-name: a-out; --t: .3s; }
.motion .scene.play [data-a="mid"]   { animation-name: a-mid; animation-timing-function: linear; }
.motion .scene.play [data-a="grow"]  { animation-name: a-grow; --t: .7s; }
.motion .scene.play [data-a="growy"] { animation-name: a-growy; --t: .7s; }
.motion .scene.play [data-a="draw"]  { animation-name: a-draw; }
.motion .scene.play [data-a="clip"]  { animation-name: a-clip; }
.motion .scene.play [data-a="ring"]  { animation-name: a-ring; --t: 1.1s; }
.motion .scene.play [data-a="press"] { animation-name: a-press; --t: .32s; animation-timing-function: ease-in-out; }
.motion .scene.play [data-a="focus"] { animation-name: a-focus; --t: .45s; }
.motion .scene.play [data-a="scan"]  { animation: a-scan 1.1s ease-in-out var(--d) 2 both; }
.motion .scene.play [data-a="coin"]  { animation: a-coin 1.5s var(--ease) var(--d) both; }
.motion .scene.play [data-a="move"]  { animation: a-move 5.4s var(--ease) var(--d, 0s) both; }
.motion .scene.play .glow  { animation: a-flash 1.3s ease-out var(--d) both; }
.motion .scene.play .pulse { animation: a-pulse .95s cubic-bezier(.45, 0, .3, 1) var(--d) both; }
.motion .scene.play .tile.hit { animation: a-tap .4s ease-in-out var(--d) both; }
.motion .scene.play .tile.hit2 { animation: a-tap2 .9s ease-in-out var(--d) both; }
.motion .scene.play .price-term { animation-name: a-clip, a-stamp; animation-duration: var(--t), .5s; animation-delay: var(--d), calc(var(--d) + var(--t)); animation-timing-function: var(--ease), ease-out; }
.motion .scene.play .s-own .lab-one { animation: a-out .3s ease var(--d) both; }

@keyframes a-rise  { from { opacity: 0; transform: translateY(16px); } }
@keyframes a-fade  { from { opacity: 0; } }
@keyframes a-pop   { from { opacity: 0; transform: scale(.82); } }
@keyframes a-slide { from { opacity: 0; transform: translateX(18px); } }
@keyframes a-fill  { from { opacity: 0; transform: translateY(5px); } }
@keyframes a-out   { from { opacity: 1; } to { opacity: 0; } }
@keyframes a-mid   { 0% { opacity: 0; } 10%, 88% { opacity: 1; } 100% { opacity: 0; } }
@keyframes a-grow  { from { transform: scaleX(0); } }
@keyframes a-growy { from { transform: scaleY(0); } }
@keyframes a-draw  { from { stroke-dashoffset: 1; } }
@keyframes a-clip  { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }
@keyframes a-ring  { from { stroke-dasharray: 0 100; } }
@keyframes a-press { 50% { transform: scale(.93); } }
@keyframes a-focus { from { border-color: var(--linen); box-shadow: 0 0 0 0 rgba(243, 217, 164, 0); background: var(--paper); } }
@keyframes a-scan  { 0% { opacity: 0; transform: translateY(0); } 12%, 88% { opacity: 1; } 100% { opacity: 0; transform: translateY(var(--sh, 60px)); } }
@keyframes a-coin  { 0% { opacity: 0; transform: translateY(10px); } 20%, 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px); } }
@keyframes a-flash { 0% { opacity: 0; } 22% { opacity: 1; } 100% { opacity: 0; } }
@keyframes a-pulse { 0% { stroke-dashoffset: .07; opacity: 0; } 12%, 86% { opacity: 1; } 100% { stroke-dashoffset: -1; opacity: 0; } }
@keyframes a-tap   { 50% { transform: scale(.93); background: rgba(110, 140, 181, .18); border-color: var(--navy); } }
@keyframes a-tap2  { 0%, 34%, 66%, 100% { transform: none; } 17%, 83% { transform: scale(.93); background: rgba(110, 140, 181, .18); border-color: var(--navy); } }
@keyframes a-stamp { 40% { transform: scale(1.12); } }
@keyframes a-move {
  0%       { transform: translateX(var(--c1)); opacity: 0; }
  6%, 44%  { transform: translateX(var(--c1)); opacity: 1; }
  53%, 89% { transform: translateX(var(--c2)); opacity: 1; }
  98%, 100% { transform: none; opacity: 1; }
}

/* ── the hero's opening ── plays once on load */
.motion .hook:not(.play) .hook-mark { opacity: 0; }
.motion .hook.play .clut { animation: a-clut 3.1s var(--ease) var(--d) both; }
.motion .hook.play .clut:nth-child(odd) { animation-name: a-clut2; }
.motion .hook.play .hook-q { animation: a-hookq 2.9s ease .25s both; }
.motion .hook.play .hook-mark { animation: a-mark .8s var(--ease) 2.75s both; }
.motion .hook.play .hook-mark p { animation: a-rise .6s var(--ease) 3.15s both; }
@keyframes a-clut {
  0%       { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--r)) scale(.7); }
  12%      { opacity: 1; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--r)) scale(1); }
  40%      { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y) - 6px)) rotate(var(--r)) scale(1); }
  66%      { opacity: 1; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y) + 3px)) rotate(var(--r)) scale(1); }
  100%     { opacity: 0; transform: translate(-50%, -50%) rotate(0deg) scale(.3); }
}
@keyframes a-clut2 {
  0%       { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--r)) scale(.7); }
  12%      { opacity: 1; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--r)) scale(1); }
  40%      { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y) + 6px)) rotate(var(--r)) scale(1); }
  66%      { opacity: 1; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y) - 3px)) rotate(var(--r)) scale(1); }
  100%     { opacity: 0; transform: translate(-50%, -50%) rotate(0deg) scale(.3); }
}
@keyframes a-hookq { 0% { opacity: 0; transform: translateY(calc(-50% + 14px)); } 14%, 70% { opacity: 1; transform: translateY(-50%); } 92%, 100% { opacity: 0; transform: translateY(-50%) scale(.94); } }
@keyframes a-mark { from { opacity: 0; transform: scale(.9); } }

/* ── the financing hook: the clutter, then the answer ── */
.motion .pain:not(.play) .pain-answer { opacity: 0; }
.motion .pain.play .pn { animation: a-clut 4.2s var(--ease) var(--d) both; }
.motion .pain.play .pn:nth-child(odd) { animation-name: a-clut2; }
.motion .pain.play .pain-answer { animation: a-mark .8s var(--ease) 4.1s both; }

@media (prefers-reduced-motion: reduce) {
  .device, .chrome, .glass, .notch, .scr, .morph-cap, .btn, .morph-tabs button { transition: none !important; }
}

/* small phones: keep the kitchen tickets and the contract figures on their lines */
.tk span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 420px) { .cc-stats { grid-template-columns: 1fr 1fr; row-gap: 8px; } }

/* ═══════════════════ «/»: the chooser's words, and the two systems ═══════════════════ */
.chooser-lead { max-width: 62ch; margin: 10px auto 0; font-size: clamp(15px, 2.1vw, 17.5px); line-height: 1.8; color: var(--ink-2); }
.chooser-pick { margin-top: 18px; font-size: 14px; font-weight: 700; color: var(--steel); }
.chooser-pick + .choices { margin-top: 10px; }

.overview { padding: var(--sec) 0; }
/* التمويل on the left, as on the chooser above */
.ov-grid { display: grid; gap: 18px; direction: ltr; }
.ov-card { direction: rtl; }
@media (min-width: 900px) { .ov-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
.ov-card {
  display: flex; flex-direction: column; padding: 24px 20px; border-radius: 24px;
  background: var(--card); border: 1px solid var(--linen); box-shadow: var(--shadow-s);
}
@media (min-width: 640px) { .ov-card { padding: 32px 30px; } }
.ov-k { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 14px; font-weight: 600; color: var(--steel); }
.ov-k .i { font-size: 18px; color: var(--navy); }
.ov-card h3 { font-size: clamp(20px, 2.6vw, 25px); margin-top: 8px; }
.ov-card h3 a { color: var(--ink); text-decoration: none; }
.ov-card h3 a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 5px; }
.ov-card > p:not(.ov-k):not(.ov-price) { margin-top: 10px; color: var(--ink-2); line-height: 1.85; }
.ov-card .ticks { margin: 18px 0 18px; }
.ov-price { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--linen); font-size: 14.5px; color: var(--ink-2); }
.ov-price b { color: var(--navy); }
.ov-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.ov-ctas .btn { flex: 1 1 auto; }
.price-notes-line { text-align: center; margin-top: 18px; font-size: 13.5px; color: var(--ink-2); }

/* ═══════════════════ the path pages: the trail, the list's heading, the FAQ ═══════════════════ */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 14px; padding: 0; font-size: 13px; color: var(--ink-3); }
.hero .crumbs ol { justify-content: center; margin-bottom: 6px; }
.crumbs li + li::before { content: "‹"; margin-inline-end: 6px; color: var(--ash); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--navy); text-decoration: underline; }

.fa-h { font-size: clamp(20px, 3vw, 26px); margin-bottom: 8px; }
.fin-all .fa-t { font-weight: 500; color: var(--ink-2); max-width: 70ch; margin-inline: auto; line-height: 1.8; }

.faq { padding: var(--sec) 0; border-top: 1px solid var(--line); }
.faq-list { max-width: 860px; margin-inline: auto; display: grid; gap: 10px; }
.faq-q { background: var(--card); border: 1px solid var(--linen); border-radius: 18px; box-shadow: 0 1px 2px rgba(31, 58, 99, .04); }
.faq-q[open] { border-color: var(--line-2); box-shadow: var(--shadow-s); }
.faq-q summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; border-radius: 18px;
}
.faq-q summary::-webkit-details-marker { display: none; }
.faq-q summary::after {
  content: "+"; flex: none; margin-inline-start: auto; display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%; background: var(--linen); color: var(--navy);
  font: 700 18px/1 var(--f); transition: transform .2s ease;
}
.faq-q[open] summary::after { transform: rotate(45deg); }
.faq-q summary:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 2px; }
.faq-q h3 { font-size: clamp(15.5px, 2vw, 17.5px); line-height: 1.55; }
.faq-a { padding: 0 18px 18px; }
.faq-a p { color: var(--ink-2); line-height: 1.9; max-width: 72ch; }
.faq-more { text-align: center; margin-top: 22px; font-size: 14.5px; color: var(--ink-2); }
.faq-more a { font-weight: 700; color: var(--navy); }

.foot-col-t a { color: inherit; text-decoration: none; }
.foot-col-t a:hover { text-decoration: underline; }
.bar-nav a[aria-current="page"] { color: var(--navy); font-weight: 700; }

/* ═══════════ كود الهدية (برنامج الإحالة) ═══════════
   Only for a visitor who came with ?ref= (taiseer.js sets html[data-gift]). */
[data-gift-only] { display: none; }
html[data-gift] [data-gift-only] { display: block; }
.gift-bar {
  margin: 0; padding: 10px 16px; text-align: center; font-size: 15px; line-height: 1.7;
  background: var(--gold); color: var(--night, #14223A);
}
.gift-bar .linkish { font-weight: 700; text-decoration: underline; }
.gift-note {
  margin: 0 0 4px; padding: 10px 12px; border-radius: 10px; font-size: 14px; line-height: 1.7;
  background: var(--gold); color: var(--night, #14223A);
}

/* ═══════════════════════════════════════════════════════════════════════
   THE SYSTEMS RAIL («/») — every system named in the tabs, one card in
   front at a time, the row scrolling sideways (snap by card). taiseer.js
   keeps the tabs, the dots and the arrows on the card in view.
   ═══════════════════════════════════════════════════════════════════════ */
.pill-new { display: inline-block; padding: 1px 9px; border-radius: var(--pill); background: var(--navy); color: #fff; font-size: 11.5px; font-weight: 700; line-height: 1.6; vertical-align: middle; }

.sys-tabs {
  display: flex; gap: 4px; width: 100%; max-width: 760px; margin-top: 18px; padding: 4px;
  border-radius: 16px; background: var(--linen); overflow-x: auto; scrollbar-width: none;
}
.sys-tabs::-webkit-scrollbar { display: none; }
.sys-tab {
  flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 8px 14px; border: 0; border-radius: 12px; cursor: pointer;
  font: 700 14px/1.3 var(--f); color: var(--ink-2); background: transparent; white-space: nowrap;
  transition: background .25s ease, color .25s ease, box-shadow .25s ease;
}
.sys-tab .i { font-size: 17px; }
.sys-tab[aria-selected="true"] { background: var(--card); color: var(--navy); box-shadow: 0 1px 3px rgba(18, 38, 63, .14); }
.sys-tab:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 1px; }
@media (min-width: 640px) { .sys-tab { font-size: 15px; padding-inline: 20px; } }
@media (max-width: 420px) { .sys-tab { font-size: 13px; padding-inline: 10px; gap: 4px; } .sys-tab .i { font-size: 15px; } }

.sys-rail { position: relative; width: 100%; max-width: 1180px; margin-top: 14px; }
.sys-track.choices {
  direction: rtl; display: flex; grid-template-columns: none; gap: 14px; margin-top: 0; max-width: none;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  /* room on both sides, so the first and the last card can stand in the middle too */
  padding: 6px max(12px, calc((100% - var(--card-w)) / 2)) 14px; scrollbar-width: none; transform: none;
}
.sys-rail { --card-w: min(88vw, 560px); }
.sys-track::-webkit-scrollbar { display: none; }
.sys-track .choice {
  flex: 0 0 var(--card-w); scroll-snap-align: center; scroll-snap-stop: always;
  gap: 8px; padding: 18px 18px 16px; border-radius: 24px; opacity: .72; transform: scale(.97);
}
.sys-track .choice.is-current { opacity: 1; transform: none; }
.sys-track .choice:hover { transform: none; }
.sys-track .choice-k, .sys-track .choice-t, .sys-track .choice-s { padding-inline: 0; }
@media (min-width: 640px) { .sys-track .choice { padding: 26px 28px 22px; } .sys-track.choices { gap: 22px; } }
@media (max-width: 400px) { .sys-track .choice-s { display: block; } }
.choice-ticks { margin: 2px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: clamp(13px, 1.6vw, 15px); line-height: 1.6; }
.choice-ticks li { display: flex; gap: 8px; align-items: baseline; }
.choice-ticks li::before { content: "✓"; color: var(--navy); font-weight: 700; }
.c-sys .choice-ticks li::before { color: var(--gold); }
.c-sys .choice-ticks { color: rgba(253, 251, 246, .9); }
.choice-price { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
.choice-price b { color: var(--ink); font-size: 16px; }
.c-sys .choice-price { color: rgba(253, 251, 246, .8); }
.c-sys .choice-price b { color: var(--gold); }
.choice-ctas { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.sys-track .choice-go { margin: 0; text-decoration: none; flex: 1 1 auto; align-self: auto; }
.choice-try {
  flex: 1 1 auto; padding: 8px 18px; border-radius: var(--pill); cursor: pointer;
  font: 700 13.5px/1.4 var(--f); background: transparent; color: var(--navy); border: 1.5px solid var(--navy);
}
.c-sys .choice-try { color: var(--paper); border-color: rgba(253, 251, 246, .55); }
@media (min-width: 640px) { .sys-track .choice-go, .choice-try { flex: 0 0 auto; padding: 11px 26px; font-size: 15px; } }

/* العقار: warm sand, the gold of the brand on its preview */
.c-re { background: linear-gradient(180deg, #FFFDF8 0%, var(--sand) 100%); border-color: #E8DCC2; }
.c-re .choice-go { background: var(--night); }
.cp-re { background: var(--card); border: 1px solid var(--linen); position: relative; }
.cp-bld {
  display: flex; flex-direction: column; gap: clamp(4px, .7vw, 7px); width: 62%; max-width: 200px;
  padding: clamp(6px, 1.2vw, 12px); border-radius: 10px; background: var(--sand); border: 1px solid var(--linen);
}
.cp-units { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(3px, .6vw, 6px); }
.cp-units .u { display: block; height: clamp(10px, 2vw, 18px); border-radius: 4px; background: var(--linen); }
.cp-units .u.let { background: var(--navy); }
.cp-units .u.sale { background: var(--gold); }
.motion .cp-units .u { animation: cp-glow 4.4s ease var(--d) infinite both; }

.rail-btn {
  position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%;
  display: none; place-items: center; cursor: pointer; font: 700 22px/1 var(--f);
  background: var(--card); color: var(--navy); border: 1px solid var(--linen); box-shadow: var(--shadow-s);
  transition: opacity .2s ease, transform .2s ease;
}
.rail-btn:hover { transform: scale(1.06); }
.rail-btn:disabled { opacity: 0; pointer-events: none; }
.rail-prev { right: 0; }
.rail-next { left: 0; }
@media (min-width: 900px) { .rail-btn { display: grid; } }

.sys-dots { display: flex; justify-content: center; gap: 8px; margin-top: 4px; }
.sys-dot { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: var(--ash); cursor: pointer; transition: width .25s var(--ease), background .25s ease; }
.sys-dot.is-on { width: 24px; border-radius: 5px; background: var(--navy); }

.chooser .swipe-hint .sh-touch { display: none; }
@media (hover: none) and (pointer: coarse) {
  .chooser .swipe-hint .sh-touch { display: flex; }
  .chooser .swipe-hint .sh-mouse { display: none; }
}

/* three systems side by side on a wide screen */
.ov-grid { direction: rtl; }
@media (min-width: 1100px) { .ov-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.pseg { direction: rtl; grid-template-columns: minmax(0, .7fr) minmax(0, 1.5fr) minmax(0, .7fr); max-width: 640px; }
@media (min-width: 900px) { .foot-cols { grid-template-columns: repeat(4, 1fr); gap: 22px; } }

.price-save { margin: 6px 0 0; display: inline-block; padding: 4px 12px; border-radius: 999px; background: rgba(63,125,92,.12); color: #2F6E4D; font-weight: 700; font-size: 14.5px; }
