/* ==========================================================================
   بارتوم · Partom — brand tokens (product name; see brand/brand.md)
   Contract used by landing/, demo/ and app/web/. Do not rename these:
   --c-primary --c-primary-ink --c-accent --c-bg --c-surface --c-surface-2
   --c-text --c-muted --c-border --c-success --c-warning --c-danger --c-wa
   --font-ar --font-en --radius --shadow
   Fonts are self-hosted, OFL-1.1, relative to this file (fonts/*.woff2).
   ========================================================================== */

/* ---- Display Arabic: Noto Kufi Arabic 800 (static instance, Arabic subset) */
@font-face {
  font-family: "Noto Kufi Arabic";
  font-style: normal; font-weight: 800; font-display: swap;
  src: url("fonts/noto-kufi-arabic-800-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+200C-200F;
}
@font-face {
  font-family: "Noto Kufi Arabic";
  font-style: normal; font-weight: 800; font-display: swap;
  src: url("fonts/noto-kufi-arabic-800-digits.woff2") format("woff2");
  unicode-range: U+0020-0040;
}

/* ---- UI / body Arabic: IBM Plex Sans Arabic 400 + 700 */
@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-088E, U+0890-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: 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-088E, U+0890-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;
}

/* ---- UI / body + display Latin: IBM Plex Sans variable (wght 100-700, wdth 75-100) */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal; font-weight: 100 700; font-stretch: 75% 100%; font-display: swap;
  src: url("fonts/ibm-plex-sans-var-latin.woff2") format("woff2-variations"),
       url("fonts/ibm-plex-sans-var-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;
}

/* ---- Yard slot codes (A-14), stencil like the painted row signs */
@font-face {
  font-family: "Big Shoulders Stencil";
  font-style: normal; font-weight: 800; font-display: swap;
  src: url("fonts/big-shoulders-stencil-800-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2010-2015;
}

/* ---- Bengali (worker / workshop strings only; downloaded on demand) */
@font-face {
  font-family: "Noto Sans Bengali";
  font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/noto-sans-bengali-600-bengali.woff2") format("woff2");
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+200C-200D, U+20B9, U+25CC;
}

/* ---- Urdu headings (Urdu page only; never referenced by AR/EN pages, so never downloaded there) */
@font-face {
  font-family: "Noto Nastaliq Urdu";
  font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/noto-nastaliq-urdu-700-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+200C-200F;
}

:root {
  /* ---- colour: the contract */
  --c-primary: #153A4B;      /* yard-fence steel: header, hero field, mark walls */
  --c-primary-ink: #F3F4F0;  /* text/icons on primary */
  --c-accent: #F5B400;       /* paint-marker yellow: one CTA, the slot, warranty marks */
  --c-accent-ink: #15191C;   /* text on accent (never white on yellow) */
  --c-bg: #ECEDE8;           /* concrete: page background */
  --c-surface: #F8F8F5;      /* invoice paper: cards, panels */
  --c-surface-2: #E2E4DE;    /* recessed: inputs, table stripes, chips */
  --c-text: #15191C;         /* ink (never #000) */
  --c-muted: #56606A;        /* secondary text, AA on bg/surface/surface-2 */
  --c-border: #C9CEC8;       /* hairlines */
  --c-success: #1C7F45;      /* break-even reached / sold / paid */
  --c-warning: #9A5B00;      /* review it (راجعها), deadline soon */
  --c-danger: #B8321F;       /* exit without invoice, overdue Muroor */
  --c-wa: #25D366;           /* WhatsApp brand green: WhatsApp actions only */

  /* ---- colour: extended */
  --c-primary-900: #0E2A37;
  --c-primary-700: #1F4B5F;
  --c-primary-300: #9FB6C1;  /* muted text on primary (5.7:1) */
  --c-accent-soft: #FCEBB6;  /* marker highlight behind text */
  --c-success-soft: #D7EEDF;
  --c-warning-soft: #F6E6C6;
  --c-danger-soft: #F5DAD4;
  --c-wa-ink: #0B2E1A;       /* text on --c-wa */
  --c-wa-deep: #075E54;      /* WhatsApp chat header */
  --c-wa-bubble-out: #D9FDD3;
  --c-wa-bubble-in: #FFFFFF;
  --c-wa-chat: #EFEAE2;
  --c-focus: #F5B400;

  /* ---- type */
  --font-ar: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, "Segoe UI", Tahoma, sans-serif;
  --font-en: "IBM Plex Sans", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display-ar: "Noto Kufi Arabic", "IBM Plex Sans Arabic", system-ui, sans-serif;  /* weight 800 only */
  --font-display-en: "IBM Plex Sans", system-ui, sans-serif;  /* use with font-stretch: 85%; weight 700 */
  --font-code: "Big Shoulders Stencil", "IBM Plex Sans", system-ui, sans-serif;  /* slot codes only, weight 800 */
  --font-bn: "Noto Sans Bengali", "IBM Plex Sans", system-ui, sans-serif;
  --font-ur: "IBM Plex Sans Arabic", system-ui, sans-serif;  /* Urdu body/UI (Plex covers ٹ ڈ ڑ ں ھ ہ ے) */
  --font-display-ur: "Noto Nastaliq Urdu", "IBM Plex Sans Arabic", system-ui, sans-serif;  /* Urdu headings, weight 700 */

  --lh-ar: 1.8;
  --lh-en: 1.5;

  /* ---- shape */
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --shadow: 0 1px 2px rgba(21, 25, 28, .06), 0 14px 34px -18px rgba(21, 25, 28, .34);
  --shadow-lg: 0 2px 4px rgba(21, 25, 28, .06), 0 30px 60px -28px rgba(14, 42, 55, .45);
  --hairline: 1px solid var(--c-border);

  /* ---- space (4px base) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  /* ---- motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: 220ms;
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur: 0ms; }
}
