/* ==========================================================================
   ORIGIN · SWANA brand and style guide · Token sheet
   V2 · 28 October 2026 · Michel Matta
   One source for colour, type, icons, grid, spacing, radius, shadow, motion.
   Every landing page, post and document reads from these values.
   Prefix: --o-
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. FONTS
   English: PP Neue Montreal (headlines and body), Instrument Serif Italic
            (one lowercase accent word per headline), Fractul (small: eyebrows,
            labels, captions, counters)
   Arabic:  IBM Plex Sans Arabic (headlines), Almarai (body and all numbers)
   -------------------------------------------------------------------------- */
@font-face{font-family:"Fractul";src:url("fonts/Fractul/Fractul-Light.woff2") format("woff2");font-weight:300;font-style:normal;font-display:swap}
@font-face{font-family:"Fractul";src:url("fonts/Fractul/Fractul-Regular.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Fractul";src:url("fonts/Fractul/Fractul-Medium.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"Fractul";src:url("fonts/Fractul/Fractul-Bold.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"Fractul";src:url("fonts/Fractul/Fractul-Italic.woff2") format("woff2");font-weight:400;font-style:italic;font-display:swap}

@font-face{font-family:"PP Neue Montreal";src:url("fonts/PPNeueMontreal/PPNeueMontreal-Light.woff2") format("woff2");font-weight:300;font-style:normal;font-display:swap}
@font-face{font-family:"PP Neue Montreal";src:url("fonts/PPNeueMontreal/PPNeueMontreal-Regular.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"PP Neue Montreal";src:url("fonts/PPNeueMontreal/PPNeueMontreal-Italic.woff2") format("woff2");font-weight:400;font-style:italic;font-display:swap}
@font-face{font-family:"PP Neue Montreal";src:url("fonts/PPNeueMontreal/PPNeueMontreal-Medium.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"PP Neue Montreal";src:url("fonts/PPNeueMontreal/PPNeueMontreal-Bold.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}

@font-face{font-family:"Instrument Serif";src:url("fonts/instrument-serif/instrument-serif-latin-400-italic.woff2") format("woff2");font-weight:400;font-style:italic;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Instrument Serif";src:url("fonts/instrument-serif/instrument-serif-latin-ext-400-italic.woff2") format("woff2");font-weight:400;font-style:italic;font-display:swap;unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Instrument Serif";src:url("fonts/instrument-serif/instrument-serif-latin-400-normal.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"IBM Plex Sans Arabic";src:url("fonts/IBMPlex/IBMPlexSansArabic-Light.woff2") format("woff2");font-weight:300;font-style:normal;font-display:swap}
@font-face{font-family:"IBM Plex Sans Arabic";src:url("fonts/IBMPlex/IBMPlexSansArabic-Regular.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"IBM Plex Sans Arabic";src:url("fonts/IBMPlex/IBMPlexSansArabic-Medium.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"IBM Plex Sans Arabic";src:url("fonts/IBMPlex/IBMPlexSansArabic-SemiBold.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"IBM Plex Sans Arabic";src:url("fonts/IBMPlex/IBMPlexSansArabic-Bold.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}

@font-face{font-family:"Almarai";src:url("fonts/Almarai/Almarai-Light.woff2") format("woff2");font-weight:300;font-style:normal;font-display:swap}
@font-face{font-family:"Almarai";src:url("fonts/Almarai/Almarai-Regular.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Almarai";src:url("fonts/Almarai/Almarai-Bold.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"Almarai";src:url("fonts/Almarai/Almarai-ExtraBold.woff2") format("woff2");font-weight:800;font-style:normal;font-display:swap}

:root{
  /* ------------------------------------------------------------------------
     2. COLOUR · brand foundations (fixed)
     Distribution on any surface: White 37.5 · Space Black 25 · Purple 18.75 ·
     Pink 6.25 · Blue, Cyan, Mint, Yellow about 3 each, accents only.
     ------------------------------------------------------------------------ */
  --o-white:        #FFFFFF;
  --o-black:        #000000;   /* Space Black */
  --o-purple:       #5C11D1;
  --o-pink:         #FF2287;
  --o-blue:         #2049F2;
  --o-cyan:         #33D9FF;
  --o-mint:         #0BFFB9;
  --o-yellow:       #FFDC5C;

  /* Derived tints and shades. Only these; no other colours on the page. */
  --o-purple-700:   #4A0EA8;   /* hover and pressed on purple */
  --o-purple-800:   #3A0B84;   /* pressed */
  --o-purple-100:   #EEE6FB;   /* soft purple fill */
  --o-purple-50:    #F7F3FD;   /* faint purple wash */
  --o-pink-100:     #FFE4EF;
  --o-blue-100:     #E4E9FE;
  --o-cyan-100:     #DDF8FF;
  --o-mint-100:     #D6FFF3;
  --o-yellow-100:   #FFF6D3;

  /* Neutrals, from Space Black. Text sits on white; lines carry a trace of purple. */
  --o-ink:          #000000;   /* headlines */
  --o-text:         #141216;   /* body text */
  --o-text-muted:   #5E5A66;   /* captions, help text, secondary lines */
  --o-text-faint:   #8D8894;   /* placeholders, disabled */
  --o-line:         #E4E1EA;   /* dividers, card borders */
  --o-line-strong:  #C9C4D3;   /* input borders */
  --o-surface-soft: #F6F5F9;   /* alternate section background */
  --o-surface-box:  #ECEAF1;   /* image placeholder */
  --o-lilac:        #EFE8FF;   /* feature band, from the site clone */
  --o-night:        #10001A;   /* purple-black for art and tiles; Space Black stays #000 for sections */

  /* ------------------------------------------------------------------------
     2b. COLOUR · roles. Components read these, never the raw brand colours.
     ------------------------------------------------------------------------ */
  --o-color-bg:            var(--o-white);
  --o-color-surface:       var(--o-white);
  --o-color-surface-alt:   var(--o-surface-soft);
  --o-color-text:          var(--o-text);
  --o-color-heading:       var(--o-ink);
  --o-color-muted:         var(--o-text-muted);
  --o-color-faint:         var(--o-text-faint);
  --o-color-line:          var(--o-line);
  --o-color-line-strong:   var(--o-line-strong);

  --o-color-accent:        var(--o-purple);      /* main accent: primary buttons, eyebrows, active states */
  --o-color-accent-hover:  var(--o-purple-700);
  --o-color-accent-active: var(--o-purple-800);
  --o-color-accent-soft:   var(--o-purple-100);
  --o-color-accent-wash:   var(--o-purple-50);
  --o-color-on-accent:     var(--o-white);

  --o-color-emphasis:      var(--o-pink);        /* emphasis only: the Recommended badge, one highlight per page */
  --o-color-emphasis-soft: var(--o-pink-100);
  --o-color-on-emphasis:   var(--o-white);

  --o-color-link:          var(--o-blue);        /* inline links in body copy */
  --o-color-check:         var(--o-purple);      /* a tick: the item is also in the package before it */
  --o-color-plus:          var(--o-blue);        /* a plus: the item is new in this package. On a dark surface the tick is white and the plus is mint */
  --o-color-info:          var(--o-blue);
  --o-color-info-soft:     var(--o-blue-100);
  --o-color-live:          var(--o-cyan);        /* live and interactive: the chat presence dot, tool progress */
  --o-color-live-soft:     var(--o-cyan-100);
  --o-color-success:       var(--o-mint);        /* included, confirmed, sent: fill with black ink on top */
  --o-color-success-soft:  var(--o-mint-100);
  --o-color-notice:        var(--o-yellow);      /* notices, award tag, pending: fill with black ink on top */
  --o-color-notice-soft:   var(--o-yellow-100);
  --o-color-error:         #C8102E;              /* form errors only; the one colour outside the palette, for safety */
  --o-color-error-soft:    #FDE8EC;

  --o-color-focus:         var(--o-purple);
  --o-color-dark:          var(--o-black);       /* dark surface sections */
  --o-color-on-dark:       var(--o-white);
  --o-color-on-dark-muted: rgba(255,255,255,.68);
  --o-color-on-dark-line:  rgba(255,255,255,.18);

  /* ------------------------------------------------------------------------
     3. TYPE · families. The page language sets which pair is live.
     English headlines and body: PP Neue Montreal. One lowercase accent word per
     headline: Instrument Serif Italic. Fractul, lighter and smaller, for the
     detail layer: eyebrows, labels, captions, counters. Numbers: PP Neue
     Montreal in English, Almarai in Arabic, Western digits (0 to 9) in Arabic and in English.
     ------------------------------------------------------------------------ */
  --o-font-display-en: "PP Neue Montreal", "Segoe UI", system-ui, sans-serif;
  --o-font-body-en:    "PP Neue Montreal", "Segoe UI", system-ui, sans-serif;
  --o-font-accent:     "Instrument Serif", "Palatino Linotype", Palatino, Georgia, serif;  /* the one lowercase italic word */
  --o-font-detail-en:  "Fractul", "Segoe UI", system-ui, sans-serif;     /* small layer: eyebrows, labels, captions, counters */
  --o-font-detail-ar:  "Almarai", "Segoe UI", system-ui, sans-serif;
  --o-font-display-ar: "IBM Plex Sans Arabic", "Segoe UI", system-ui, sans-serif;
  --o-font-body-ar:    "Almarai", "Segoe UI", system-ui, sans-serif;
  --o-font-numbers:    "PP Neue Montreal", "Segoe UI", system-ui, sans-serif;

  --o-font-display: var(--o-font-display-en);
  --o-font-body:    var(--o-font-body-en);
  --o-font-detail:  var(--o-font-detail-en);

  /* Weights */
  --o-weight-display: 400;   /* PP Neue Montreal Regular for display, H1, H2 */
  --o-weight-heading: 500;   /* PP Neue Montreal Medium for H3, H4 */
  --o-weight-detail:  400;   /* Fractul Regular at small sizes; Light (300) above 16px */
  --o-weight-display-strong: 700;
  --o-weight-body: 400;
  --o-weight-body-strong: 500;
  --o-weight-button: 500;

  /* ------------------------------------------------------------------------
     3b. TYPE · scale. Desktop values; phone values under the breakpoint.
     Line heights are unitless. Tracking on headlines only.
     ------------------------------------------------------------------------ */
  --o-size-display: 64px;  --o-lh-display: 1.02;
  --o-size-h1:      52px;  --o-lh-h1: 1.06;
  --o-size-h2:      40px;  --o-lh-h2: 1.1;
  --o-size-h3:      28px;  --o-lh-h3: 1.2;
  --o-size-h4:      22px;  --o-lh-h4: 1.3;
  --o-size-lead:    20px;  --o-lh-lead: 1.5;
  --o-size-body:    17px;  --o-lh-body: 1.55;
  --o-size-small:   15px;  --o-lh-small: 1.5;
  --o-size-caption: 13px;  --o-lh-caption: 1.45;
  --o-size-price:   40px;  --o-lh-price: 1.05;
  --o-size-number:  28px;  --o-lh-number: 1.1;
  --o-size-button:  12.5px;  /* uppercase, letterspaced, in the body face */
  --o-size-eyebrow: 12px;

  --o-tracking-display: -0.02em;
  --o-tracking-heading: -0.015em;
  --o-tracking-body: 0;

  /* ------------------------------------------------------------------------
     4. SPACING · 4px base
     ------------------------------------------------------------------------ */
  --o-space-1: 4px;
  --o-space-2: 8px;
  --o-space-3: 12px;
  --o-space-4: 16px;
  --o-space-5: 24px;
  --o-space-6: 32px;
  --o-space-7: 40px;
  --o-space-8: 48px;
  --o-space-9: 64px;
  --o-space-10: 80px;
  --o-space-11: 96px;
  --o-space-12: 128px;

  --o-section-y: var(--o-space-11);     /* vertical padding of a page section, desktop */
  --o-section-gap: var(--o-space-8);    /* gap between a section header and its content */
  --o-stack: var(--o-space-5);          /* default gap between stacked blocks */

  /* ------------------------------------------------------------------------
     5. GRID
     Desktop: 12 columns, 24px gutter, 32px margin, 1200px max content width.
     Phone: 4 columns, 16px gutter, 16px margin.
     ------------------------------------------------------------------------ */
  --o-container: 1200px;
  --o-container-narrow: 760px;          /* reading width: FAQ, form, section intros */
  --o-grid-columns: 12;
  --o-gutter: 24px;
  --o-margin: 32px;

  --o-bp-phone: 640px;
  --o-bp-tablet: 960px;
  --o-bp-desktop: 1200px;

  /* ------------------------------------------------------------------------
     6. RADIUS · one family of corners
     ------------------------------------------------------------------------ */
  --o-radius-xs: 4px;     /* checkboxes, matrix boxes, tags inside text */
  --o-radius-sm: 12px;    /* buttons, inputs, chips */
  --o-radius-md: 12px;    /* small cards, chat bubbles */
  --o-radius-lg: 20px;    /* cards, panels, tiles, chat window */
  --o-radius-xl: 24px;    /* hero media, large panels */
  --o-radius-pill: 999px; /* badges, language switch, quick replies */

  /* ------------------------------------------------------------------------
     7. SHADOW · purple-tinted, low. Depth comes from surface changes first.
     ------------------------------------------------------------------------ */
  --o-shadow-sm: 0 1px 2px rgba(20,0,60,.06);
  --o-shadow-md: 0 8px 24px rgba(20,0,60,.08);
  --o-shadow-lg: 0 24px 48px rgba(20,0,60,.14);
  --o-shadow-focus: 0 0 0 3px rgba(92,17,209,.28);

  /* ------------------------------------------------------------------------
     7b. GRADIENTS and GLOW · the one decorative device.
     A soft purple light on Space Black, or a purple band. Never a hard
     two-colour gradient, never on body text, never behind a form.
     ------------------------------------------------------------------------ */
  --o-glow-purple: radial-gradient(60% 70% at 20% 20%, rgba(92,17,209,.85) 0%, rgba(92,17,209,.35) 35%, rgba(0,0,0,0) 70%);
  --o-glow-purple-edge: radial-gradient(70% 90% at 100% 100%, rgba(92,17,209,.6) 0%, rgba(0,0,0,0) 60%);
  --o-glow-pink: radial-gradient(40% 50% at 85% 15%, rgba(255,34,135,.45) 0%, rgba(0,0,0,0) 70%);
  --o-band-purple: linear-gradient(135deg, #6A1BE6 0%, var(--o-purple) 45%, var(--o-purple-800) 100%);
  --o-band-light: linear-gradient(180deg, var(--o-white) 0%, var(--o-purple-50) 100%);
  --o-glass: rgba(255,255,255,.06);
  --o-glass-line: rgba(255,255,255,.14);

  /* Stat numbers and step numerals: body face, proportional figures, Western digits in both languages */
  --o-size-stat: 72px;   --o-lh-stat: 1;
  --o-size-stat-sm: 48px;
  --o-size-numeral: 40px; /* 01 02 03 */

  /* ------------------------------------------------------------------------
     8. ICONS · 24px grid, 1.75px stroke, round caps and joins, currentColor
     ------------------------------------------------------------------------ */
  --o-icon-size: 24px;
  --o-icon-size-sm: 20px;
  --o-icon-size-lg: 32px;
  --o-icon-stroke: 1.75;

  /* ------------------------------------------------------------------------
     9. MOTION
     ------------------------------------------------------------------------ */
  --o-ease: cubic-bezier(.2,.7,.2,1);
  --o-duration-fast: 120ms;    /* hover, focus */
  --o-duration-base: 180ms;    /* buttons, chips, accordion */
  --o-duration-slow: 280ms;    /* panels, chat window */

  /* ------------------------------------------------------------------------
     10. LAYERS
     ------------------------------------------------------------------------ */
  --o-z-nav: 100;
  --o-z-chat: 200;
  --o-z-modal: 300;
}

/* Phone scale: from 640px down */
@media (max-width: 640px){
  :root{
    --o-size-display: 40px;
    --o-size-h1: 36px;
    --o-size-h2: 30px;
    --o-size-h3: 24px;
    --o-size-h4: 19px;
    --o-size-lead: 18px;
    --o-size-body: 16px;
    --o-size-small: 14px;
    --o-size-caption: 12px;
    --o-size-price: 32px;
    --o-size-number: 24px;
    --o-size-stat: 48px;
    --o-size-stat-sm: 36px;
    --o-size-numeral: 32px;
    --o-section-y: var(--o-space-9);
    --o-section-gap: var(--o-space-6);
    --o-margin: 16px;
    --o-gutter: 16px;
    --o-grid-columns: 4;
  }
}

/* --------------------------------------------------------------------------
   Arabic: the language sets the family pair and looser leading.
   Headlines IBM Plex Sans Arabic SemiBold, body Almarai Regular. No tracking.
   Numbers in Almarai with Western digits (origin-i18n.js is off by default).
   No serif accent in Arabic: the accent word is Light weight in purple.
   -------------------------------------------------------------------------- */
:root:lang(ar), :lang(ar){
  --o-font-display: var(--o-font-display-ar);
  --o-font-body:    var(--o-font-body-ar);
  --o-font-detail:  var(--o-font-detail-ar);
  --o-font-numbers: var(--o-font-body-ar);   /* stats, numerals and prices follow the body face */
  --o-weight-display: 500;
  --o-weight-heading: 600;
  --o-weight-display-strong: 700;
  --o-weight-body-strong: 700;
  --o-weight-button: 700;
  --o-lh-display: 1.25;
  --o-lh-h1: 1.3;
  --o-lh-h2: 1.35;
  --o-lh-h3: 1.4;
  --o-lh-h4: 1.45;
  --o-lh-lead: 1.7;
  --o-lh-body: 1.8;
  --o-lh-small: 1.7;
  --o-lh-caption: 1.6;
  --o-tracking-display: 0;
  --o-tracking-heading: 0;
  --o-size-display: 56px;
  --o-size-h1: 46px;
  --o-size-h2: 36px;
}
@media (max-width: 640px){
  :lang(ar){ --o-size-display: 36px; --o-size-h1: 32px; --o-size-h2: 28px; }
}

/* --------------------------------------------------------------------------
   Dark surface: set data-surface="dark" on a section. Components re-map.
   -------------------------------------------------------------------------- */
[data-surface="dark"]{
  --o-color-bg: var(--o-black);
  --o-color-surface: #121014;
  --o-color-surface-alt: #1B181F;
  --o-color-text: var(--o-white);
  --o-color-heading: var(--o-white);
  --o-color-muted: var(--o-color-on-dark-muted);
  --o-color-faint: rgba(255,255,255,.45);
  --o-color-line: var(--o-color-on-dark-line);
  --o-color-line-strong: rgba(255,255,255,.32);
  --o-color-accent-soft: rgba(92,17,209,.35);
  --o-color-accent-wash: rgba(92,17,209,.18);
  --o-color-link: var(--o-cyan);
  --o-shadow-md: 0 8px 24px rgba(0,0,0,.5);
  --o-shadow-lg: 0 24px 48px rgba(0,0,0,.6);
  background: var(--o-color-bg);
  color: var(--o-color-text);
}

/* Lilac feature band: the soft purple band from the site clone. Text stays dark. */
[data-surface="lilac"]{
  --o-color-bg: var(--o-lilac);
  --o-color-surface: var(--o-white);
  --o-color-surface-alt: #E4DAFB;
  --o-color-line: rgba(92,17,209,.14);
  background: var(--o-color-bg);
}

/* Purple surface: hero bands and the chat header. */
[data-surface="purple"]{
  --o-color-bg: var(--o-purple);
  --o-color-surface: var(--o-purple-700);
  --o-color-surface-alt: var(--o-purple-800);
  --o-color-text: var(--o-white);
  --o-color-heading: var(--o-white);
  --o-color-muted: rgba(255,255,255,.78);
  --o-color-faint: rgba(255,255,255,.5);
  --o-color-line: rgba(255,255,255,.22);
  --o-color-line-strong: rgba(255,255,255,.4);
  --o-color-accent: var(--o-white);
  --o-color-accent-hover: #F1EBFC;
  --o-color-accent-active: #E3D8F8;
  --o-color-on-accent: var(--o-purple);
  --o-color-link: var(--o-white);
  background: var(--o-color-bg);
  color: var(--o-color-text);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  :root{ --o-duration-fast: 0ms; --o-duration-base: 0ms; --o-duration-slow: 0ms; }
}
