/* ─────────────────────────────────────────────────────────────────────────
   أمين — 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:   #5F6876;   /* 4.5:1 on every band of the ground, sand included */
  --ash:     #C2C7D0;
  --blue:    #3F6E9B;
  --sky:     #6E8CB5;
  --steel-ink: #4A6890; /* steel as small text: 4.6:1 on every band of the ground */

  --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;

  /* ── the ground: ONE page-length gradient on <body>, sections own no fill ──
     Two tones from our own palette swing against clean white: a pale navy
     (steel #6E8CB5 thinned on white) and a warm sand (gold #F3D9A4 thinned).
     The stops sit roughly where each page's sections fall; the navy footer
     band («made») is the one deliberate break. */
  --g-white: #FFFFFF;
  --g-sky:   #E3ECF7;   /* pale brand navy */
  --g-sky-2: #F0F5FB;
  --g-sand:  #F3E7CE;   /* warm brand sand */
  --g-sand-2:#FAF4E8;
  --ground-base: var(--paper);
  --ground: linear-gradient(180deg,
    var(--g-white) 0%, var(--g-sky) 8%, var(--g-white) 16%,
    var(--g-sand-2) 23%, var(--g-sand) 31%, var(--g-white) 40%,
    var(--g-sky) 49%, var(--g-sky-2) 56%, var(--g-white) 61%,
    var(--g-sand) 70%, var(--g-white) 79%,
    var(--g-sky) 87%, var(--g-sky) 100%);

  --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-color: var(--ground-base);
  background-image: var(--ground);
  -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-ink);
  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(255, 255, 255, .72);
  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(255, 255, 255, .9); }
.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; } }
/* «الدليل» made the bar one link longer: tighter between 960 and 1120px, never wrapped. */
.bar-nav a { white-space: nowrap; }
@media (min-width: 960px) and (max-width: 1120px) { .bar-nav { margin-inline-start: 4px; gap: 0; } .bar-nav a { padding: 8px 7px; font-size: 14px; } .bar-in { gap: 10px; } }
@media (max-width: 380px) { .bar-actions .btn-sm { padding: 8px 12px; font-size: 13.5px; } .brand .wd { height: 32px; } }

/* ═══════════════════ the paper ═══════════════════
   The ads' 64px ledger grid on the hero and the connected scene. No fill of
   its own — the body's ground shows through — and the grid is masked out at
   the edges, so there is no seam where the section ends. */
.hero, .connected { position: relative; }
.hero::before, .connected::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(rgba(43, 76, 126, .07) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(43, 76, 126, .07) 1px, transparent 1px) 0 0 / 64px 64px;
  -webkit-mask-image: linear-gradient(transparent, #000 120px, #000 calc(100% - 120px), transparent);
  mask-image: linear-gradient(transparent, #000 120px, #000 calc(100% - 120px), 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-ink); 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; }
.hero-in .ticks { max-width: 60ch; margin-inline: auto; text-align: start; }
.hero-in .note { margin-top: 20px; }
.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 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 { 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-ink); 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-ink); }

@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;
}
.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-ink); 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); }
.android-pick summary { cursor: pointer; list-style: none; }
.android-pick summary::-webkit-details-marker { display: none; }
.android-pick .pick-open { font-weight: 700; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.android-pick .pick-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 12px 0 6px; }
.android-pick .pick-row a { padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--navy); text-decoration: none; }
.android-pick .pick-note { margin: 0; font-size: 13px; color: var(--ink-3); }
.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; } }
/* three plans (1.0.41): the bundle, «المحاسبة والمخزون», «الكاشير لايت» side by side */
.price-grid:has(> :nth-child(3)) { max-width: 1180px; }
@media (min-width: 1040px) { .price-grid:has(> :nth-child(3)) { grid-template-columns: 1.15fr 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; }
.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-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; }
.is-offer .linkish { color: var(--gold); }
.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 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; }
.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 GRID («/») — one card per system, as many columns as fit
   (one on a phone). Each card is its own <article class="sg-card"> in the
   html, so a new system is a new card. The «تعرّف» link stretches over the
   whole card; «جرّب» and the Light link sit above it.
   ═══════════════════════════════════════════════════════════════════════ */
.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; }

/* every system side by side, each tab as wide as its name (four and more since 0406); on a phone the long names wrap */
.pseg { direction: rtl; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, auto); max-width: 860px; }
@media (max-width: 480px) { .pseg-tab { white-space: normal; line-height: 1.15; text-align: center; padding-inline: 4px; } .pseg-tab .i { display: none; } }
@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; }

/* ═══════════════════ «دليل أمين»: the guide cards, /dalil and a guide ═══════════════════
   Built by scripts/build-landing.mjs from _src/pages.json → guides. A reading
   column on the paper, the cards reused under each system page. */
.guides { padding: var(--sec) 0; border-top: 1px solid var(--line); }
.guide-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 720px) { .guide-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .guide-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.guide-card a {
  display: flex; flex-direction: column; gap: 8px; height: 100%;
  padding: 20px 20px 18px; border-radius: 18px; text-decoration: none; color: var(--ink);
  background: var(--card); border: 1px solid var(--linen); box-shadow: 0 1px 2px rgba(31, 58, 99, .04);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.guide-card a:hover { border-color: var(--line-2); box-shadow: var(--shadow-s); }
.guide-card-k { font-size: 13px; font-weight: 600; color: var(--steel-ink); }
.guide-card-t { font-size: 17.5px; line-height: 1.55; color: var(--night); }
.guide-card a:hover .guide-card-t { color: var(--navy); text-decoration: underline; text-underline-offset: 5px; }
.guide-card-d { font-size: 14.5px; line-height: 1.8; color: var(--ink-2); }
.guide-card-m { margin-top: auto; padding-top: 6px; font-size: 13px; color: var(--ink-3); }

.guide-narrow { max-width: 820px; }
.guide-hero {
  background:
    linear-gradient(rgba(43, 76, 126, .07) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(43, 76, 126, .07) 1px, transparent 1px) 0 0 / 64px 64px;
  border-bottom: 1px solid var(--line);
  padding: 40px 0 34px;
}
@media (min-width: 640px) { .guide-hero { padding: 56px 0 44px; } }
.guide-hero h1 { font-size: clamp(26px, 5vw, 40px); line-height: 1.35; color: var(--night); }
.guide-hero .lead { max-width: 64ch; }
.guide-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; font-size: 13.5px; color: var(--ink-2); }
.guide-meta span { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--pill); padding: 3px 12px; }

.guide-body { padding-top: 36px; padding-bottom: 12px; }
.guide-body p, .guide-body li { font-size: 17px; line-height: 2; overflow-wrap: anywhere; }
.guide-body p { margin: 0 0 16px; }
.guide-body h2 { font-size: clamp(21px, 3.4vw, 27px); line-height: 1.45; color: var(--night); margin: 36px 0 12px; scroll-margin-top: calc(var(--bar-h) + 16px); }
.guide-body ul, .guide-body ol { margin: 0 0 18px; padding-inline-start: 26px; }
.guide-body li { margin: 4px 0; }
.guide-body li::marker { color: var(--steel-ink); font-weight: 700; }
.guide-body b { color: var(--night); }
.guide-body a { color: var(--blue); font-weight: 600; }
.guide-note { padding: 14px 18px; border-radius: 14px; background: var(--sand); border: 1px solid var(--linen); border-inline-start: 4px solid var(--navy); font-size: 15.5px !important; line-height: 1.9 !important; color: var(--ink-2); }
.guide-table { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--linen); border-radius: 14px; background: var(--card); }
.guide-table table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.guide-table th, .guide-table td { padding: 10px 14px; text-align: start; border-bottom: 1px solid var(--linen); }
.guide-table th { background: var(--sand); color: var(--night); font-weight: 700; }
.guide-table tr:last-child td { border-bottom: 0; }
@media (max-width: 480px) { .guide-body p, .guide-body li { font-size: 16px; line-height: 1.95; } }

.guide-cta { margin: 28px 0 var(--s9); padding: 26px 22px; border-radius: 22px; background: var(--night); color: rgba(253, 251, 246, .9); box-shadow: var(--shadow-s); }
@media (min-width: 640px) { .guide-cta { padding: 32px 34px; } }
.guide-cta h2 { font-size: clamp(20px, 3vw, 25px); line-height: 1.45; color: #fff; }
.guide-cta p { margin-top: 8px; font-size: 15.5px; line-height: 1.9; }
.guide-cta .ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.guide-cta a:focus-visible, .guide-cta button:focus-visible { outline-color: var(--gold); }

.guides-index { padding-top: 12px; padding-bottom: var(--sec); }
.guides-group { margin-top: 44px; }
.guides-group h2 { font-size: clamp(20px, 3vw, 26px); margin-bottom: 16px; }
.guides-group h2 a { color: var(--night); text-decoration: none; }
.guides-group h2 a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 5px; }
@media (prefers-reduced-motion: reduce) { .guide-card a { transition: none; } }

/* ═══════════ the ads, to watch (.film) ═══════════ */
.film { padding: var(--sec) 0 0; }
.film-frame {
  margin: 0 auto; max-width: 960px; aspect-ratio: 16 / 9;
  border-radius: 20px; overflow: hidden; background: var(--night);
  box-shadow: 0 28px 60px -28px rgba(22, 41, 74, .5);
}
.film-frame.is-sq { max-width: 560px; aspect-ratio: 1; }
.film-frame.as-v { max-width: 400px; aspect-ratio: 9 / 16; max-height: 82vh; max-height: 82svh; }
.film-frame video { display: block; width: 100%; height: 100%; object-fit: contain; background: var(--night); }
.path .film { padding-bottom: 32px; }

/* ═══════════════════ أمين كلاود — the lockup ═══════════════════
   The calligraphy is the owner's own file and stays as drawn; «كلاود» is set UNDER
   it, centred, in the shield's light blue #7ACAF9 (sampled from its main face) on
   light and dark alike (owner, 2026-11-15 — replaces the small navy suffix beside it).
   Each lockup's font-size is its picture's height, so `em` below is that height:
   «كلاود»'s ink ≈ a third of the logo's ink (shield + letters, 71 % of the picture),
   a small gap under the lowest dot (the picture keeps 15 % empty below the ink). */
.lockup { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; vertical-align: middle; }
.lockup img { display: block; }
.lockup .cloud { font: 600 .24em/1 var(--f, "IBM Plex Sans Arabic", system-ui, sans-serif); color: #7ACAF9; margin-top: -.36em; white-space: nowrap; }
/* the English wordmark ("Ameen", 60 % of its picture, 20 % below): "Cloud" under it */
.lockup img[src*="wordmark-en"] + .cloud { font-size: .27em; margin-top: -.5em; }
.brand .lockup { font-size: 36px; }
@media (max-width: 380px) { .brand .lockup { font-size: 32px; } }
.hook-mark .lockup { font-size: clamp(92px, 20vw, 150px); }
.pain-answer .lockup { font-size: clamp(84px, 18vw, 130px); }
.made .lockup { display: flex; width: max-content; font-size: clamp(84px, 18vw, 132px); margin: 0 auto 18px; }
.made .lockup .made-mark { margin: 0; }
.foot-brand-logo .lockup { font-size: 44px; }
.auth-card .lockup { font-size: 42px; margin-bottom: var(--s3); }
.auth-card .lockup .auth-mark { margin-bottom: 0; }
[dir="ltr"] .hook-mark .lockup, [dir="ltr"] .pain-answer .lockup, [dir="ltr"] .made .lockup { font-size: clamp(40px, 8vw, 64px); }

/* ── the language switch in the bar (EN ↔ عربي) ── */
.lang-switch { text-decoration: none; font-weight: 700; letter-spacing: .02em; }
.lang-switch[lang="ar"] { letter-spacing: 0; }

/* ── the English pages (/en/…, <html dir="ltr">): the same design, read left to right.
   Nothing here applies to the Arabic pages. ── */
[dir="ltr"] body { direction: ltr; }
[dir="ltr"] .pseg-tab, [dir="ltr"] .path, [dir="ltr"] .pseg { direction: ltr; }

/* ── ambient light (the Tmreen treatment, in Ameen's colours) ──
   One fixed layer behind the whole page: the shield's light blue and the
   brand beige as two soft lights, plus a faint third. Sized in viewport shares
   so it holds from a phone to a wide desk; ameen-motion.js drifts the lights
   with the scroll (--al1/--al2/--al3). Without the script, or with reduced
   motion, it is the same light, still. */
:root {
  --lt-sky: rgba(135, 209, 248, .18);
  --lt-beige: rgba(243, 217, 164, .24);
  --lt-sky-soft: rgba(135, 209, 248, .10);
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vmax 46vmax at var(--al1, 88% 6%), var(--lt-sky), transparent 70%),
    radial-gradient(56vmax 44vmax at var(--al2, 8% 92%), var(--lt-beige), transparent 70%),
    radial-gradient(40vmax 34vmax at var(--al3, 12% 22%), var(--lt-sky-soft), transparent 70%);
}

/* ── English top bar and tabs (review fixes; Arabic untouched) ── */
[dir="ltr"] .brand, [dir="ltr"] .brand .wd { flex: none; flex-shrink: 0; }
[dir="ltr"] .bar-actions .btn, [dir="ltr"] .bar-actions .btn-sm { white-space: nowrap; }
[dir="ltr"] .bar-actions .btn-sm { padding-inline: 12px; }
[dir="ltr"] .bar-nav a { padding-inline: 9px; }
[dir="ltr"] .pseg { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, auto); }
@media (max-width: 480px) {
  [dir="ltr"] .pseg-tab .i { display: none; }
  [dir="ltr"] .pseg-tab { font-size: 13px; padding-inline: 4px; white-space: normal; line-height: 1.15; text-align: center; }
}
/* the English word is wider than «أمين»: same visual weight at a smaller height */
[dir="ltr"] .hook-mark img, [dir="ltr"] .pain-answer img, [dir="ltr"] .made-mark { height: clamp(40px, 8vw, 64px); width: auto; }
/* ── scroll experience (ameen-motion.js) ── */
.scroll-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, #87D1F8, var(--blue)); }
[dir="rtl"] .scroll-progress { transform-origin: 100% 50%; }
.path-head { position: relative; isolation: isolate; }
.blueprint { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; overflow: visible; }
.blueprint path { fill: none; stroke: #87D1F8; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .75; vector-effect: non-scaling-stroke; }
.path-head > *:not(.blueprint) { position: relative; z-index: 1; }

/* ═══ «سجل التحديثات» (/updates) — made from src/lib/changelog.json ═══ */
.releases { display: grid; gap: 20px; padding-block: 8px 72px; }
.release { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px 22px 18px; }
.release-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 8px; color: var(--ink-2); font-size: 14px; }
.release-v { font-weight: 700; color: var(--night); background: rgba(34,55,92,.07); border-radius: 999px; padding: 3px 12px; }
.release h2 { font-size: clamp(19px, 3.4vw, 24px); line-height: 1.4; margin: 0 0 14px; color: var(--night); }
.release-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.release-items li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.7; }
.release-kind { flex: none; font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 2px 10px; margin-top: 2px; }
.release-kind.is-new { background: var(--ok-bg); color: var(--ok); }
.release-kind.is-improved { background: rgba(43,76,126,.10); color: #2B4C7E; }
.release-kind.is-fixed { background: var(--warn-bg); color: var(--warn); }

/* ═══════════════════════════════════════════════════════════════════════
   «/» — THE BRAND, QUIETLY (_src/root.html, _src/en/root.html)
   The hero → «لماذا أمين؟» → the systems. Plain paper, lots of air.
   Everything is visible at rest; ameen-motion.js turns it into a pinned,
   scrubbed scroll story (see the «/» scroll-story block below).
   ═══════════════════════════════════════════════════════════════════════ */

/* the root page keeps no ambient light; its ground is placed on its own four
   bands: hero (white → pale navy at its foot), «لماذا أمين؟» (white),
   «اختر نشاطك» (sand), «ابدأ» (white → pale navy), then the navy footer.
   With the scroll story on (html.hm-story) the ramp gives way to .hm-ground. */
html[data-page="root"] body::before { display: none; }
html[data-page="root"] {
  --ground: linear-gradient(180deg,
    var(--g-white) 0%, var(--g-sky-2) 9%, var(--g-sky) 19%,
    var(--g-sand-2) 27%, var(--g-white) 32%,
    var(--g-sand-2) 39%, var(--g-sand) 48%, var(--g-sand) 55%, var(--g-sand-2) 61%,
    var(--g-white) 66%, var(--g-sky) 76%, var(--g-sky) 100%);
}

/* ── the hero ── */
.hm-hero {
  position: relative; isolation: isolate; overflow: hidden; overflow: clip;
  min-height: min(88vh, 760px); display: grid; place-items: center; padding: 64px 0 72px;
}
.hm-hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hm-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 24px; padding: 6px 16px 6px 14px;
  border-radius: var(--pill); background: var(--card); border: 1px solid var(--line);
  font-size: 14px; font-weight: 600; color: var(--navy-2);
}
[dir="ltr"] .hm-eyebrow { padding: 6px 14px 6px 16px; }
.hm-eyebrow .i { font-size: 18px; color: var(--green); }
.hm-title { font-size: clamp(40px, 6.6vw, 64px); font-weight: 700; line-height: 1.2; color: var(--night); }
.hm-title span { color: var(--navy); }
.hm-lead { max-width: 34ch; margin: 20px 0 0; font-size: clamp(17px, 2vw, 20px); line-height: 1.8; color: var(--ink-2); }
.hm-ctas { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 28px; margin-top: 36px; }
.hm-wa { font-size: 15.5px; font-weight: 600; color: var(--navy); text-decoration: underline; text-decoration-color: var(--ash); text-underline-offset: 6px; }
.hm-wa:hover { text-decoration-color: var(--navy); }
@media (max-width: 420px) { .hm-ctas { flex-direction: column; width: 100%; } .hm-ctas .btn { width: 100%; } }

/* ── the sections' rhythm ── */
.hm-sec { position: relative; padding: 80px 0; }
.hm-sec .sec-head { margin-bottom: 28px; }
.hm-sec h2 { font-size: clamp(28px, 4.2vw, 40px); font-weight: 700; line-height: 1.3; color: var(--night); }
@media (min-width: 900px) { .hm-sec { padding: 120px 0; } .hm-sec .sec-head { margin-bottom: 40px; } }

/* ── لماذا أمين؟ ── */
.hm-why-p { max-width: 46ch; margin: 0 auto; text-align: center; font-size: clamp(17px, 2vw, 20px); line-height: 1.9; color: var(--ink-2); }
.hm-why-sig { margin: 16px 0 0; text-align: center; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.hm-points {
  list-style: none; margin: 40px auto 0; padding: 0; max-width: 980px;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-s);
}
.hm-points li { display: flex; align-items: center; gap: 14px; padding: 20px 24px; font-size: 16px; font-weight: 600; line-height: 1.5; color: var(--ink); }
.hm-points li + li { border-top: 1px solid var(--line); }
.hm-pt-ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--linen); color: var(--navy); font-size: 20px; }
@media (min-width: 760px) {
  .hm-points { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 56px; }
  .hm-points li { padding: 24px; }
  .hm-points li + li { border-top: 0; border-inline-start: 1px solid var(--line); }
}

/* ── تعرّف على أنظمتنا: one <li class="hm-sys"> per system ── */
.hm-systems { scroll-margin-top: calc(var(--bar-h) + 8px); }
.hm-anchor { position: absolute; top: 0; scroll-margin-top: calc(var(--bar-h) + 8px); }
.hm-sys-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.hm-sys {
  position: relative; min-width: 0; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "ic arr" "body body"; gap: 18px 12px;
  padding: 28px; border-radius: 20px; background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(31, 58, 99, .05), 0 6px 18px rgba(31, 58, 99, .06);
  transition: box-shadow .25s ease, border-color .25s ease;
}
.hm-sys:hover { box-shadow: var(--shadow); border-color: var(--steel); }
.hm-sys:focus-within { outline: 3px solid var(--blue); outline-offset: 3px; }
.hm-sys-ic { grid-area: ic; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--sand); color: var(--navy); font-size: 22px; }
.hm-sys-arr { grid-area: arr; align-self: start; font-size: 20px; line-height: 1; color: var(--navy); transition: transform .25s var(--ease); }
.hm-sys:hover .hm-sys-arr { transform: translateX(-4px); }
[dir="ltr"] .hm-sys:hover .hm-sys-arr { transform: translateX(4px); }
.hm-sys-body { grid-area: body; min-width: 0; }
.hm-sys-k { margin: 0 0 4px; font-size: 13.5px; font-weight: 600; color: var(--steel-ink); }
.hm-sys h3 { font-size: clamp(18px, 2vw, 20px); font-weight: 700; line-height: 1.4; }
.hm-sys h3 a { color: var(--night); text-decoration: none; outline: none; }
.hm-sys h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.hm-sys-s { margin: 8px 0 0; font-size: 15.5px; line-height: 1.75; color: var(--ink-2); }
@media (max-width: 599px) {
  .hm-sys { grid-template-columns: 44px 1fr auto; grid-template-areas: "ic body arr"; align-items: center; gap: 14px; padding: 20px; }
  .hm-sys-arr { align-self: center; }
  .hm-sys-s { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hm-sys, .hm-sys-arr { transition: none; } }

/* ── «/» — the scroll story (ameen-motion.js). Every class and element below
   is added by the script, so none of it exists without GSAP or with «reduce
   motion»: the page is then the plain, complete one above. Start states are
   set from the script, never here.
   html.hm-story       pinned story on (any width)
   html.hm-story-desk  ≥ 900px: 3D, the horizontal systems track, the app mock ── */
.mw { display: inline-block; clip-path: inset(-.5em -.3em -.12em -.3em); }   /* a word's mask */
.wi { display: inline-block; }
.hm-title .mw, .hm-title .wi { color: inherit; }                              /* `.hm-title span` is the accent */
.hw { display: inline; }

/* the ground: one fixed layer whose washes cross-fade per section (opacity
   only), so pin spacing can never push a band out of place */
html.hm-story[data-page="root"] body { background-image: none; background-color: var(--g-white); }
.hm-ground { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--g-white); }
.hm-ground > i { position: absolute; inset: 0; opacity: 0; }
.hm-ground .gw-sky  { background: radial-gradient(90% 70% at 50% 0%, var(--g-sky-2) 0%, rgba(240, 245, 251, 0) 70%), linear-gradient(180deg, var(--g-white) 0%, var(--g-sky-2) 45%, var(--g-sky) 100%); }
.hm-ground .gw-sand { background: radial-gradient(80% 60% at 50% 100%, var(--g-sand) 0%, rgba(243, 231, 206, 0) 75%), linear-gradient(180deg, var(--g-sand-2) 0%, var(--g-sand) 100%); }
.hm-ground .gw-deep { background: linear-gradient(180deg, var(--g-sky-2) 0%, var(--g-sky) 60%, #D6E2F2 100%); }

/* one viewport per pinned scene (under the sticky bar) */
html.hm-story .hm-hero { height: calc(100svh - var(--bar-h)); min-height: 0; padding: 0; }

/* the ledger plane behind the hero: lies flat, then tilts away into a floor */
.hm-plane-wrap { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; perspective: 1100px; perspective-origin: 50% 30%; }
.hm-plane {
  position: absolute; left: -40%; right: -40%; top: 8%; height: 150%; transform-origin: 50% 0;
  background:
    linear-gradient(rgba(43, 76, 126, .16) 1px, transparent 1px) 50% 0 / 100% 256px,
    linear-gradient(90deg, rgba(43, 76, 126, .16) 1px, transparent 1px) 50% 0 / 256px 100%,
    linear-gradient(rgba(43, 76, 126, .07) 1px, transparent 1px) 50% 0 / 100% 64px,
    linear-gradient(90deg, rgba(43, 76, 126, .07) 1px, transparent 1px) 50% 0 / 64px 100%;
  -webkit-mask-image: radial-gradient(ellipse 50% 46% at 50% 26%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 50% 46% at 50% 26%, #000 25%, transparent 78%);
}
.hm-plane::after {                                                          /* two sand ledger rules */
  content: ""; position: absolute; inset-inline: 0; top: 768px; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(214, 178, 110, .55) 30%, rgba(214, 178, 110, .55) 70%, transparent);
  box-shadow: 0 256px 0 rgba(214, 178, 110, .35);
}
.hm-cue {
  position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; margin-left: -13px;
  border: 2px solid var(--ash); border-radius: 14px; pointer-events: none;
}
.hm-cue::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px;
  background: var(--navy); animation: hm-cue 1.8s var(--ease) infinite;
}
@keyframes hm-cue { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }

/* «لماذا أمين؟»: one viewport, the statement large, the chips apart */
html.hm-story .hm-why { min-height: calc(100svh - var(--bar-h)); display: flex; align-items: center; padding: 28px 0; }
html.hm-story .hm-why > .wrap { width: 100%; }
html.hm-story-desk .hm-why-p { max-width: 34ch; font-size: clamp(22px, 2.3vw, 30px); line-height: 1.75; font-weight: 600; color: var(--night); }
html.hm-story .hm-why-p .hw { color: var(--night); }
html.hm-story .hm-points { background: none; border: 0; box-shadow: none; display: grid; gap: 12px; perspective: 1000px; }
html.hm-story .hm-points li, html.hm-story .hm-points li + li {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-s);
}
html.hm-story .hm-points li { padding: 16px 20px; }
@media (min-width: 760px) { html.hm-story .hm-points { gap: 20px; margin-top: 44px; } html.hm-story .hm-points li { padding: 22px 24px; } }

/* «اختر نشاطك» (desk): the six cards become one horizontal track */
html.hm-story-desk .hm-systems { height: calc(100svh - var(--bar-h)); padding: 0; display: flex; flex-direction: column; justify-content: center; overflow: hidden; overflow: clip; }
html.hm-story-desk .hm-systems > .wrap { max-width: none; padding: 0; }
html.hm-story-desk .hm-systems .sec-head { margin-bottom: clamp(20px, 4vh, 44px); }
html.hm-story-desk .hm-sys-list { display: flex; gap: 28px; width: max-content; padding-inline: var(--trk-pad, 30vw); perspective: 1400px; }
html.hm-story-desk .hm-sys {
  flex: none; width: 380px; min-height: min(320px, 40vh); align-content: space-between;
  grid-template-columns: 1fr auto; grid-template-areas: "ic arr" "body body"; padding: 32px;
}
html.hm-story-desk .hm-sys-ic { width: 60px; height: 60px; border-radius: 18px; font-size: 30px; }
html.hm-story-desk .hm-sys h3 { font-size: 23px; }
.hm-sys-glow { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; box-shadow: 0 30px 70px rgba(31, 58, 99, .18), 0 0 0 1px rgba(110, 140, 181, .45); }
.hm-trk-meta { display: none; }
html.hm-story-desk .hm-trk-meta { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: clamp(20px, 4vh, 40px); }
.hm-trk-n { font-size: 15px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; min-width: 4.5ch; text-align: center; }
.hm-trk-n b { color: var(--night); font-size: 17px; }
.hm-trk-bar { position: relative; width: 180px; height: 2px; border-radius: 2px; background: rgba(43, 76, 126, .14); overflow: hidden; }
.hm-trk-bar i { position: absolute; inset: 0; background: var(--navy); transform-origin: 100% 50%; }
[dir="ltr"] .hm-trk-bar i { transform-origin: 0 50%; }

/* «ابدأ»: the line joins the three numbers; each fills as it is reached */
.steps.has-line { position: relative; }
.steps-line { position: absolute; width: 2px; border-radius: 2px; pointer-events: none; background: linear-gradient(var(--navy), var(--steel)); }
.steps.has-line .step-n { position: relative; z-index: 1; }
.step-n .sf { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: #fff; font-style: normal; }
html.hm-story .step-n { background: var(--card); color: var(--navy); box-shadow: inset 0 0 0 2px var(--ash); }
html.hm-story-desk .start { min-height: calc(100svh - var(--bar-h)); display: flex; align-items: center; padding: 28px 0; }
html.hm-story-desk .start > .wrap { width: 100%; }
html.hm-story-desk .start-grid.start-one { max-width: 1080px; grid-template-columns: 1fr 1fr; align-items: center; gap: 72px; }
html.hm-story-desk .start .steps { gap: 26px; margin: 32px 0 34px; }
html.hm-story-desk .start .step-n { width: 44px; height: 44px; font-size: 18px; }
html.hm-story-desk .start .steps h3 { font-size: 20px; padding-top: 8px; }

/* the small app that assembles beside the steps (desk) */
.st-mock { display: none; }
html.hm-story-desk .st-mock {
  display: block; position: relative; width: 100%; max-width: 440px; justify-self: center;
  padding: 0 0 22px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.sm-bar { display: flex; align-items: center; gap: 6px; height: 44px; padding-inline: 16px; border-bottom: 1px solid var(--line); }
.sm-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--ash); }
.sm-bar img { height: 22px; width: auto; margin-inline-start: auto; }
.sm-head { display: flex; align-items: center; gap: 12px; padding: 20px 20px 6px; }
.sm-av { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--linen); color: var(--navy); font-size: 20px; }
.sm-l { display: block; height: 9px; border-radius: 5px; background: rgba(43, 76, 126, .14); }
.sm-head .sm-l { width: 42%; }
.sm-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 16px 20px 4px; }
.sm-t { display: grid; place-items: center; height: 56px; border-radius: 14px; background: var(--sand); color: var(--navy); font-size: 22px; position: relative; }
.sm-t.on::after { content: ""; position: absolute; inset: -3px; border-radius: 16px; box-shadow: 0 0 0 2px var(--navy); }
.sm-rows { display: grid; gap: 10px; padding: 18px 20px 0; }
.sm-r { display: flex; align-items: center; gap: 10px; }
.sm-r .i { color: var(--green); font-size: 16px; }
.sm-r .sm-l { flex: 1; }
.sm-r:nth-child(2) .sm-l { flex: .7; } .sm-r:nth-child(3) .sm-l { flex: .85; }
.sm-ok { position: absolute; inset-inline-end: -18px; bottom: -18px; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--green); color: #fff; font-size: 26px; box-shadow: var(--shadow-s); }

/* Seven systems on three columns: the last card sits alone — centre it rather
   than leave it hanging at the row's start (3 + 3 + 1, without motion). */
@media (min-width: 1000px) {
  .hm-sys-list > .hm-sys:last-child:nth-child(3n + 1) { grid-column: 2; }
}

/* ── system pages: the counter that follows the stations (ameen-motion.js) ──
   desk only; hidden until the first station, gone after the last. */
.st-rail { display: none; }
html.hm-story-desk .st-rail {
  display: flex; align-items: center; gap: 14px;
  position: fixed; left: 0; right: 0; bottom: 22px; z-index: 50;
  width: max-content; max-width: calc(100vw - 32px); margin-inline: auto;
  padding: 9px 18px; border-radius: 999px;
  background: rgba(255, 255, 255, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 28px rgba(22, 41, 74, .14), inset 0 0 0 1px rgba(43, 76, 126, .1);
  pointer-events: none; visibility: hidden;
}
.st-rail-n { font-size: 14px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.st-rail-n b { color: var(--night); font-size: 16px; }
.st-rail-l { font-size: 14px; font-weight: 600; color: var(--night); max-width: 28ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-rail-bar { position: relative; width: 90px; height: 2px; border-radius: 2px; background: rgba(43, 76, 126, .14); overflow: hidden; }
.st-rail-bar i { position: absolute; inset: 0; background: var(--navy); transform-origin: 100% 50%; transform: scaleX(0); }
html[dir="ltr"] .st-rail-bar i { transform-origin: 0 50%; }
/* a pinned station needs room for its mock-up to turn in 3D */
html.hm-story-desk .station, html.hm-story-desk .system .sys-row { perspective: 1400px; }
/* a system page has the tabs (.path-switch) under the bar: a pinned «ابدأ» fits below both */
html.hm-story-desk:not([data-page="root"]) .start { min-height: calc(100svh - var(--bar-h) - var(--switch-h)); }

/* ── /anzima: the electronic pager scene (1.0.12) ── */
@media (min-width: 760px) { .pos-grid .mock.pager-mock { grid-column: 1 / -1; } }
.pgr { gap: 22px; flex-wrap: wrap; }
.pgr-till { display: flex; flex-direction: column; gap: 8px; min-width: 200px; padding: 14px; border-radius: 16px; border: 1px solid var(--linen); background: var(--paper); box-shadow: var(--shadow-s); }
.pgr-h { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--navy); }
.pgr-h .i { width: 16px; height: 16px; }
.pgr-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--linen); font-size: 13px; }
.pgr-row.dim { opacity: .55; }
.pgr-btn { padding: 3px 12px; border-radius: 999px; background: #3C7650; color: #fff; font-size: 12px; font-weight: 700; }
.pgr-rcpt { margin-top: 2px; }
.pgr-no { font-size: 11px; color: var(--ink-2); text-align: center; margin-top: 4px; }
.pgr-no b { color: var(--night); font-size: 15px; display: block; }
.pgr-st { display: flex; justify-content: center; margin: 4px 0; }
.pgr-st .swap { justify-items: center; }
.pgr-st .chip { font-size: 10.5px; display: inline-flex; align-items: center; gap: 3px; }
.pgr-st .chip .i { width: 11px; height: 11px; }
.pgr-ring { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 10px; font-weight: 700; color: #3C7650; }
.pgr-ring .i { width: 12px; height: 12px; }
.pgr-cta { margin-top: 2px; padding: 4px 0; border-radius: 8px; background: var(--navy); color: #fff; font-size: 10.5px; font-weight: 700; text-align: center; }
.pgr-ticks { max-width: 760px; margin: 22px auto 0; }

/* eight systems since «البيجر والولاء» (2026-11-14): no tab is ever squeezed
   under its name. The strip fits them all where it can and scrolls sideways
   where it cannot, the current one scrolled into view (taiseer.js). */
.pseg, [dir="ltr"] .pseg {
  grid-auto-columns: max-content; justify-content: safe center; max-width: min(100%, 1080px);
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
}
.pseg::-webkit-scrollbar { display: none; }
.pseg-tab, [dir="ltr"] .pseg-tab { white-space: nowrap; }
@media (max-width: 1000px) { .pseg-tab .i { display: none; } .pseg-tab { padding-inline: 10px; } }

/* ═══════════════════ the not-found page (404.html, en/404.html) ═══════════════════
   Built by build-landing.mjs from pages.json → notFound; served with status 404. */
.nf-in { display: flex; flex-direction: column; align-items: center; text-align: center; }
.nf-mark { display: inline-block; margin-bottom: 10px; }
.nf .lockup { font-size: clamp(84px, 18vw, 120px); }
.nf .lockup img { height: 1em; width: auto; }
[dir="ltr"] .nf .lockup { font-size: clamp(52px, 10vw, 76px); }
.nf-code { font-size: clamp(40px, 9vw, 64px); font-weight: 700; line-height: 1; color: var(--steel); letter-spacing: .04em; margin-bottom: 8px; }
.nf .lead { margin-inline: auto; }
.nf-links { justify-content: center; margin-top: 26px; }
