/* Payunit's visual identity, in one place for every surface (web app, sign-in, checkout, admin):
 * the Arabic typeface, the colours, the dark card's gradient, corners, shadows and type stacks.
 * Loaded first on every page; every other sheet reads these names and defines no colour set of its own. */
@font-face{font-family:"PU Arabic";src:url(fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2) format("woff2");font-weight:400;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF}
@font-face{font-family:"PU Arabic";src:url(fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2) format("woff2");font-weight:500;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF}
@font-face{font-family:"PU Arabic";src:url(fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2) format("woff2");font-weight:600;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF}
@font-face{font-family:"PU Arabic";src:url(fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2) format("woff2");font-weight:700;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF}
:root{
  /* Payunit's one visual identity (the phone app's): navy ink, gold, quiet greys. Every surface
     (web app, sign-in, checkout, admin) takes its colours, corners, shadows and type from here. */
  --ink:#0b1220;        /* navy: text, dark cards */
  --ink-2:#16233f;      /* navy, lighter: the top of a dark gradient */
  --ink-soft:#414b5c;
  --muted:#5b6474;
  --faint:#8a94a6;
  --on-dark-muted:#aab4c5;
  --paper:#ffffff;
  --page:#f7f8fa;
  --fill:#f2f3f6;       /* a field, a chip, a quiet button */
  --line:#eceef2;
  --line-soft:#eff1f5;
  --gold:#c49a4a;
  --gold-light:#d6b370; /* the main button */
  --gold-deep:#7a5a24;  /* gold words on light */
  --gold-soft:#f3ead8;
  --gold-line:#e8d5ac;
  --ok:#067647;      --ok-bg:#ecfdf3;   --ok-line:#abefc6;
  --warn:#b54708;    --warn-bg:#fffaeb; --warn-line:#fedf89;
  --bad:#b42318;     --bad-bg:#fef3f2;  --bad-line:#fecdca;
  --info:#175cd3;    --info-bg:#eff8ff; --info-line:#b2ddff;
  --hero:linear-gradient(135deg,var(--ink-2) 0%,var(--ink) 72%);
  --r-xl:24px; --r-lg:20px; --r-md:14px; --r-sm:10px;
  --shadow:0 1px 2px rgba(13,21,38,.04),0 14px 34px -18px rgba(13,21,38,.24);
  --shadow-sm:0 1px 2px rgba(13,21,38,.05);
  --shadow-lg:0 2px 4px rgba(13,21,38,.04),0 24px 56px -24px rgba(13,21,38,.3);
  --focus:0 0 0 3px rgba(196,154,74,.32);
  /* The type scale (18.76.0): seven sizes for every page; the two titles and the amount grow with the screen.
     Nothing reads smaller than 12.5px (counters inside a fixed circle aside). */
  --fs-note:12.5px;   /* a helper line, a caption, a status */
  --fs-label:13.5px;  /* a row's or a field's name */
  --fs-value:14.5px;  /* what a row says */
  --fs-body:15px;     /* sentences, buttons */
  --fs-h2:clamp(17px,.25vw + 16px,18px);   /* a card's title */
  --fs-h1:clamp(20px,.6vw + 17.5px,24px);  /* the page's title */
  --fs-amount:clamp(32px,1.9vw + 25px,44px); /* the amount of an operation */
  --sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --mono:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,monospace;
}
html[lang="ar"]{--sans:"PU Arabic",-apple-system,BlinkMacSystemFont,"Segoe UI",Tahoma,Arial,sans-serif}
