/* ==========================================================================
   Bilsan Business Solutions — site.css
   Design system + public layout + home. Loaded after Bootstrap 5.3 (LTR/RTL).
   Logical properties throughout; colours only through tokens (light/dark).

    0. Fonts                 11. Header & mega menu
    1. Tokens (light)        12. Drawer (offcanvas)
    2. Tokens (dark)         13. Footer
    3. Bootstrap bridge      14. Page hero & breadcrumbs
    4. Base & typography     15. CTA band
    5. Layout                16. Home — hero & ecosystem visual
    6. Buttons & links       17. Metrics, pillars, features, numbered items
    7. Badges & chips        18. Platforms at a glance & status cards
    8. Cards & surfaces      19. Ecosystem equation (ink band)
    9. Flow chain            20. PWA: tab bar, install hint, toasts
   10. Lists, notes, tables  21. Motion & reveal     22. Print
   ========================================================================== */

/* ---------------------------------------------------------------- 0. Fonts */
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/cairo-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: 'Cairo';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/cairo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
                 U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/cairo-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;
}

/* ------------------------------------------------------- 1. Tokens (light) */
:root {
  color-scheme: light;

  /* brand — from the company identity serving the page: the layout injects
     --brand, --brand-hover, --brand-soft, --brand-ink, --brand-dark,
     --brand-secondary (+ *-rgb triplets) in partials/brand-tokens.blade.php */
  --c-brand: var(--brand);
  --c-brand-hover: var(--brand-hover);
  --c-brand-soft: var(--brand-soft);
  --c-brand-ink: var(--brand-ink);   /* text on the brand colour */
  --c-brand-text: var(--brand);      /* brand colour for text / links on the page bg */
  --c-brand-text-hover: var(--brand-hover);
  --c-grey: var(--brand-secondary);

  /* neutrals */
  --c-ink: #15171C;                 /* headings */
  --c-ink-2: #2B2F36;               /* strong body text */
  --c-text: #4A4F57;                /* body */
  --c-muted: #6A6F77;               /* secondary (AA on bg and bg-alt) */
  --c-line: #E6E3E1;
  --c-line-strong: #D2CECB;
  --c-bg: #FFFFFF;
  --c-bg-alt: #F7F5F4;
  --c-surface: #FFFFFF;
  --c-surface-2: #FBFAF9;
  --c-focus: var(--brand);

  /* ink band (dark sections in both themes) */
  --c-band: #15171C;
  --c-band-line: rgba(255, 255, 255, .12);
  --c-on-band: #FFFFFF;
  --c-on-band-muted: rgba(255, 255, 255, .7);
  --c-band-accent: var(--brand-dark);

  /* status */
  --c-warn-bg: #FFF6E2;
  --c-warn-line: #F0DCAE;
  --c-warn-line-strong: #E3B04B;
  --c-warn-text: #6E4A00;
  --stage-signed: #0E7C3A;
  --stage-advanced: #1D5FB8;
  --stage-expected: #B45309;
  --stage-preparing: #5B6573;

  /* platform accent defaults (overridden by [data-accent]) */
  --pc: var(--c-brand);
  --pc-soft: var(--c-brand-soft);
  --pc-ink: var(--c-brand-text);
  --pc-tint: var(--c-brand-soft);
  --accent-ink-share: 100%;         /* % of accent kept for text (rest is white) */
  --tint-soft-share: 100%;          /* % of accent_soft kept for tints */

  /* decoration */
  --hero-glow: rgba(var(--brand-rgb), .09);
  --grid-line: rgba(21, 23, 28, .055);
  --logo-light: block;
  --logo-dark: none;

  /* shape & elevation */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --shadow-1: 0 1px 2px rgba(21, 23, 28, .05);
  --shadow-2: 0 2px 4px rgba(21, 23, 28, .04), 0 12px 28px -14px rgba(21, 23, 28, .22);
  --shadow-3: 0 10px 30px -10px rgba(21, 23, 28, .18), 0 30px 60px -30px rgba(21, 23, 28, .3);

  /* type */
  --font: 'Cairo', system-ui, -apple-system, 'Segoe UI', Tahoma, Arial, sans-serif;
  --fs-display: clamp(2.3rem, 1.2rem + 4.2vw, 4.3rem);
  --fs-h1: clamp(2rem, 1.35rem + 2.5vw, 3.3rem);
  --fs-h2: clamp(1.65rem, 1.2rem + 1.7vw, 2.55rem);
  --fs-h3: clamp(1.2rem, 1.05rem + .5vw, 1.45rem);
  --fs-lead: clamp(1.05rem, 1rem + .3vw, 1.19rem);
  --fs-sm: .9rem;
  --fs-xs: .78rem;

  /* layout */
  --wrap: 1240px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --space-section: clamp(4rem, 8vw, 7.5rem);
  --space-section-tight: clamp(3rem, 6vw, 5rem);
  --header-h: 76px;
  --header-h-condensed: 62px;
  --tabbar-h: 58px;

  /* motion */
  --ease: cubic-bezier(.2, .7, .3, 1);
}
:root[dir="rtl"] {
  --fs-display: clamp(2.1rem, 1.15rem + 3.6vw, 3.85rem);
  --fs-h1: clamp(1.9rem, 1.3rem + 2.2vw, 3rem);
}
@media (max-width: 767.98px) {
  :root { --header-h: 64px; --header-h-condensed: 56px; }
}

/* -------------------------------------------------------- 2. Tokens (dark) */
:root[data-theme="dark"] {
  color-scheme: dark;
  --c-brand-soft: rgba(var(--brand-dark-rgb), .14);
  --c-brand-text: var(--brand-dark);
  --c-brand-text-hover: color-mix(in srgb, var(--brand-dark) 78%, #FFFFFF);
  --c-ink: #ECEBEA;
  --c-ink-2: #D9D6D3;
  --c-text: #B9B6B3;
  --c-muted: #9A9794;
  --c-line: #2A2E33;
  --c-line-strong: #3A3F45;
  --c-bg: #0F1113;
  --c-bg-alt: #14171A;
  --c-surface: #171A1D;
  --c-surface-2: #1C2024;
  --c-focus: var(--brand-dark);
  --c-band: #1A1D21;
  --c-warn-bg: rgba(242, 166, 80, .1);
  --c-warn-line: rgba(242, 166, 80, .3);
  --c-warn-line-strong: #C98A2E;
  --c-warn-text: #F3C27A;
  --stage-signed: #3CC47C;
  --stage-advanced: #7AAFFF;
  --stage-expected: #F2A650;
  --stage-preparing: #A7B0BD;
  --accent-ink-share: 62%;
  --tint-soft-share: 0%;
  --hero-glow: rgba(var(--brand-dark-rgb), .12);
  --grid-line: rgba(255, 255, 255, .045);
  --logo-light: none;
  --logo-dark: block;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-2: 0 2px 4px rgba(0, 0, 0, .3), 0 12px 28px -14px rgba(0, 0, 0, .6);
  --shadow-3: 0 10px 30px -10px rgba(0, 0, 0, .55), 0 30px 60px -30px rgba(0, 0, 0, .7);
}
/* No-JS fallback: follow the OS when no explicit theme attribute exists. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --c-brand-soft: rgba(var(--brand-dark-rgb), .14);
    --c-brand-text: var(--brand-dark);
    --c-brand-text-hover: color-mix(in srgb, var(--brand-dark) 78%, #FFFFFF);
    --c-ink: #ECEBEA;
    --c-ink-2: #D9D6D3;
    --c-text: #B9B6B3;
    --c-muted: #9A9794;
    --c-line: #2A2E33;
    --c-line-strong: #3A3F45;
    --c-bg: #0F1113;
    --c-bg-alt: #14171A;
    --c-surface: #171A1D;
    --c-surface-2: #1C2024;
    --c-focus: var(--brand-dark);
    --c-band: #1A1D21;
    --c-warn-bg: rgba(242, 166, 80, .1);
    --c-warn-line: rgba(242, 166, 80, .3);
    --c-warn-line-strong: #C98A2E;
    --c-warn-text: #F3C27A;
    --stage-signed: #3CC47C;
    --stage-advanced: #7AAFFF;
    --stage-expected: #F2A650;
    --stage-preparing: #A7B0BD;
    --accent-ink-share: 62%;
    --tint-soft-share: 0%;
    --hero-glow: rgba(var(--brand-dark-rgb), .12);
    --grid-line: rgba(255, 255, 255, .045);
    --logo-light: none;
    --logo-dark: block;
  }
}

/* Platform accent scope: set --pc / --pc-soft inline, the rest is derived. */
[data-accent] {
  --pc-ink: color-mix(in srgb, var(--pc) var(--accent-ink-share), #FFFFFF);
  --pc-tint: color-mix(in srgb, var(--pc-soft) var(--tint-soft-share), color-mix(in srgb, var(--pc) 18%, transparent));
}

/* ---------------------------------------------------- 3. Bootstrap bridge */
:root,
:root[data-bs-theme] {
  --bs-font-sans-serif: var(--font);
  --bs-body-font-family: var(--font);
  --bs-body-bg: var(--c-bg);
  --bs-body-color: var(--c-text);
  --bs-emphasis-color: var(--c-ink);
  --bs-heading-color: var(--c-ink);
  --bs-secondary-color: var(--c-muted);
  --bs-secondary-bg: var(--c-bg-alt);
  --bs-tertiary-bg: var(--c-surface-2);
  --bs-border-color: var(--c-line);
  --bs-border-radius: var(--radius-sm);
  --bs-border-radius-lg: var(--radius-lg);
  --bs-link-color: var(--c-brand-text);
  --bs-link-hover-color: var(--c-brand-text-hover);
  --bs-link-color-rgb: var(--brand-rgb);
  --bs-link-hover-color-rgb: var(--brand-hover-rgb);
  --bs-primary: var(--brand);
  --bs-primary-rgb: var(--brand-rgb);
  --bs-primary-text-emphasis: var(--c-brand-text);
  --bs-primary-bg-subtle: var(--c-brand-soft);
  --bs-primary-border-subtle: var(--c-brand-soft);
  --bs-focus-ring-color: rgba(var(--brand-rgb), .25);
}
.dropdown-menu {
  --bs-dropdown-bg: var(--c-surface);
  --bs-dropdown-color: var(--c-text);
  --bs-dropdown-border-color: var(--c-line);
  --bs-dropdown-border-radius: var(--radius-md);
  --bs-dropdown-font-size: .92rem;
  --bs-dropdown-link-color: var(--c-ink-2);
  --bs-dropdown-link-hover-color: var(--c-ink);
  --bs-dropdown-link-hover-bg: var(--c-bg-alt);
  --bs-dropdown-link-active-color: var(--c-brand-text);
  --bs-dropdown-link-active-bg: var(--c-brand-soft);
  --bs-dropdown-item-padding-y: .55rem;
  --bs-dropdown-item-padding-x: .9rem;
  --bs-dropdown-padding-y: .4rem;
  box-shadow: var(--shadow-2);
}
.dropdown-item { display: flex; align-items: center; gap: .6rem; border-radius: var(--radius-xs); font-weight: 600; }
.dropdown-menu > li { padding-inline: .35rem; }
.table {
  --bs-table-color: var(--c-text);
  --bs-table-bg: transparent;
  --bs-table-border-color: var(--c-line);
  --bs-table-striped-bg: var(--c-bg-alt);
  --bs-table-hover-bg: var(--c-bg-alt);
}
.form-label { font-weight: 700; font-size: .9rem; color: var(--c-ink-2); margin-bottom: .4rem; }
.form-control,
.form-select {
  padding: .72rem .95rem;
  font-size: 1rem;
  color: var(--c-ink);
  background-color: var(--c-surface);
  border-color: var(--c-line-strong);
  border-radius: var(--radius-sm);
}
.form-control::placeholder { color: var(--c-muted); opacity: .85; }
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: var(--c-brand);
  box-shadow: 0 0 0 .22rem color-mix(in srgb, var(--c-brand) 20%, transparent);
  outline: 0;
}
.form-check-input:checked { background-color: var(--c-brand); border-color: var(--c-brand); }
.form-text { color: var(--c-muted); }
.alert { border-radius: var(--radius-md); }
.offcanvas-backdrop.show { opacity: .45; }

/* ------------------------------------------------- 4. Base & typography */
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}
:root[dir="rtl"] body { line-height: 1.85; }

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  color: var(--c-ink);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.015em;
  margin: 0 0 .6em;
}
:root[dir="rtl"] :is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6) { letter-spacing: 0; line-height: 1.45; }
h1, .h1 { font-size: var(--fs-h1); }
h2, .h2 { font-size: var(--fs-h2); }
h3, .h3 { font-size: var(--fs-h3); }
h4, .h4 { font-size: 1.1rem; }
p { margin: 0 0 1rem; }
a { color: var(--c-brand-text); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--c-brand-text-hover); }
img { max-width: 100%; height: auto; }
::selection { background: color-mix(in srgb, var(--c-brand) 22%, transparent); color: var(--c-ink); }
:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 3px; border-radius: 2px; }
button, a, [role="tab"] { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.site-main { display: block; }
.site-main:focus { outline: none; }

.icon { flex-shrink: 0; vertical-align: -.2em; }
:root[dir="rtl"] .icon-flip { transform: scaleX(-1); }

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -120px;
  z-index: 2000;
  padding: .7rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--c-ink);
  color: var(--c-bg);
  font-weight: 700;
}
.skip-link:focus { top: calc(.75rem + env(safe-area-inset-top)); color: var(--c-bg); }

/* Eyebrow / kicker */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin: 0 0 1rem;
  font-size: var(--fs-xs);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-brand-text);
}
.kicker::before { content: ""; width: 1.75rem; height: 2px; background: currentColor; flex-shrink: 0; }
.kicker--invert { color: rgba(255, 255, 255, .86); }

/* Arabic: no tracking / uppercase on small caps-style labels */
:root[dir="rtl"] :is(.kicker, .caps, .pa-label, .pa-card__cat,
  .site-footer__title, .verify-badge, .mega__title, .drawer__label, .equation__result-label, .platform-card__category) {
  letter-spacing: 0;
  text-transform: none;
}
:root[dir="rtl"] .kicker { font-size: .9rem; }

.caps { font-size: var(--fs-xs); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); }
.text-lead { font-size: var(--fs-lead); line-height: 1.75; color: var(--c-text); }
.text-muted-x { color: var(--c-muted); }
.text-ink { color: var(--c-ink); }
.text-brand { color: var(--c-brand-text); }
.num-ltr { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }

/* Section heading component */
.section-head { max-width: 780px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-title { font-size: var(--fs-h2); margin-bottom: .9rem; text-wrap: balance; }
.section-head--lg .section-title { font-size: var(--fs-h1); }
.section-lead { margin: 0; font-size: var(--fs-lead); line-height: 1.75; max-width: 68ch; color: var(--c-text); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .section-lead { margin-inline: auto; }
.section-head--inverse .section-title { color: var(--c-on-band); }
.section-head--inverse .section-lead { color: var(--c-on-band-muted); }
.section-head--inverse .kicker { color: var(--c-band-accent); }
.section-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2.5rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section-head-row > .section-head { margin-bottom: 0; flex: 1 1 520px; }
.section-head-row__link { flex-shrink: 0; margin-bottom: .4rem; }

/* ----------------------------------------------------------- 5. Layout */
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}
.wrap--narrow { --wrap: 860px; }
.wrap--wide { --wrap: 1440px; }

.section { padding-block: var(--space-section); position: relative; }
.section--tight { padding-block: var(--space-section-tight); }
.section--alt { background: var(--c-bg-alt); }
.section--rule { border-top: 1px solid var(--c-line); }
.section--flush-top { padding-top: 0; }

.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: minmax(0, 1fr); }
:is(ul, ol).grid { list-style: none; margin: 0; padding: 0; }
@media (min-width: 576px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  .grid--3.grid--md-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.grid--gap-lg { gap: clamp(1.5rem, 3vw, 2.5rem); }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split--center { align-items: center; }
@media (max-width: 991.98px) {
  .split, .split--even { grid-template-columns: minmax(0, 1fr); }
}
.stack > * + * { margin-top: var(--stack-gap, 1rem); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cluster-gap, .75rem); }

/* ------------------------------------------------- 6. Buttons & links */
.btn {
  --bs-btn-padding-x: 1.35rem;
  --bs-btn-padding-y: .72rem;
  --bs-btn-font-family: var(--font);
  --bs-btn-font-size: .95rem;
  --bs-btn-font-weight: 700;
  --bs-btn-line-height: 1.3;
  --bs-btn-border-radius: var(--radius-sm);
  --bs-btn-focus-box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn .icon { width: 1.1em; height: 1.1em; }
.btn:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; box-shadow: none; }
.btn-sm { --bs-btn-padding-x: .95rem; --bs-btn-padding-y: .5rem; --bs-btn-font-size: .86rem; --bs-btn-border-radius: var(--radius-sm); }
.btn-lg { --bs-btn-padding-x: 1.8rem; --bs-btn-padding-y: .92rem; --bs-btn-font-size: 1.02rem; --bs-btn-border-radius: var(--radius-sm); }

.btn-primary {
  --bs-btn-color: var(--c-brand-ink);
  --bs-btn-bg: var(--c-brand);
  --bs-btn-border-color: var(--c-brand);
  --bs-btn-hover-color: var(--c-brand-ink);
  --bs-btn-hover-bg: var(--c-brand-hover);
  --bs-btn-hover-border-color: var(--c-brand-hover);
  --bs-btn-active-color: var(--c-brand-ink);
  --bs-btn-active-bg: color-mix(in srgb, var(--c-brand-hover) 85%, #000000);
  --bs-btn-active-border-color: color-mix(in srgb, var(--c-brand-hover) 85%, #000000);
  --bs-btn-disabled-color: var(--c-brand-ink);
  --bs-btn-disabled-bg: var(--c-brand);
  --bs-btn-disabled-border-color: var(--c-brand);
}
.btn-outline {
  --bs-btn-color: var(--c-ink);
  --bs-btn-bg: transparent;
  --bs-btn-border-color: var(--c-line-strong);
  --bs-btn-hover-color: var(--c-bg);
  --bs-btn-hover-bg: var(--c-ink);
  --bs-btn-hover-border-color: var(--c-ink);
  --bs-btn-active-color: var(--c-bg);
  --bs-btn-active-bg: var(--c-ink);
  --bs-btn-active-border-color: var(--c-ink);
  --bs-btn-disabled-color: var(--c-muted);
  --bs-btn-disabled-border-color: var(--c-line);
}
.btn-ghost {
  --bs-btn-color: var(--c-ink-2);
  --bs-btn-bg: transparent;
  --bs-btn-border-color: transparent;
  --bs-btn-hover-color: var(--c-ink);
  --bs-btn-hover-bg: var(--c-bg-alt);
  --bs-btn-hover-border-color: transparent;
  --bs-btn-active-color: var(--c-ink);
  --bs-btn-active-bg: var(--c-line);
  --bs-btn-active-border-color: transparent;
}
.btn-invert {
  --bs-btn-color: #15171C;
  --bs-btn-bg: #FFFFFF;
  --bs-btn-border-color: #FFFFFF;
  --bs-btn-hover-color: #15171C;
  --bs-btn-hover-bg: #F3EEEC;
  --bs-btn-hover-border-color: #F3EEEC;
  --bs-btn-active-color: #15171C;
  --bs-btn-active-bg: #E8E1DE;
  --bs-btn-active-border-color: #E8E1DE;
}
.btn-outline-invert {
  --bs-btn-color: #FFFFFF;
  --bs-btn-bg: transparent;
  --bs-btn-border-color: rgba(255, 255, 255, .55);
  --bs-btn-hover-color: #15171C;
  --bs-btn-hover-bg: #FFFFFF;
  --bs-btn-hover-border-color: #FFFFFF;
  --bs-btn-active-color: #15171C;
  --bs-btn-active-bg: #F3EEEC;
  --bs-btn-active-border-color: #F3EEEC;
}
.btn-accent {
  --bs-btn-color: #FFFFFF;
  --bs-btn-bg: var(--pc);
  --bs-btn-border-color: var(--pc);
  --bs-btn-hover-color: #FFFFFF;
  --bs-btn-hover-bg: color-mix(in srgb, var(--pc) 84%, #000000);
  --bs-btn-hover-border-color: color-mix(in srgb, var(--pc) 84%, #000000);
  --bs-btn-active-color: #FFFFFF;
  --bs-btn-active-bg: color-mix(in srgb, var(--pc) 74%, #000000);
  --bs-btn-active-border-color: color-mix(in srgb, var(--pc) 74%, #000000);
}
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 700;
  font-size: .95rem;
  color: var(--c-brand-text);
  cursor: pointer;
}
.link-arrow:hover { color: var(--c-brand-text-hover); }
.link-arrow .icon { width: 1.05em; height: 1.05em; }

.icon-trail { transition: translate .25s var(--ease); }
:is(a, button):hover > .icon-trail { translate: 3px 0; }
:root[dir="rtl"] :is(a, button):hover > .icon-trail { translate: -3px 0; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  min-width: 40px;
  height: 40px;
  padding: 0 .55rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--c-ink-2);
  font: inherit;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.icon-btn:hover,
.icon-btn[aria-expanded="true"] { background: var(--c-bg-alt); color: var(--c-ink); }

/* ------------------------------------------------- 7. Badges & chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .22rem .7rem;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: var(--c-bg-alt);
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--c-ink-2);
}
.chip--accent { background: var(--pc-tint); border-color: transparent; color: var(--pc-ink); }
.chip--brand { background: var(--c-brand-soft); border-color: transparent; color: var(--c-brand-text); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }

.accent-dot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--pc); flex-shrink: 0; }

.stage {
  --stage: var(--c-muted);
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .2rem .65rem;
  border: 1px solid color-mix(in srgb, var(--stage) 38%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--stage) 9%, transparent);
  color: var(--stage);
  font-size: .76rem;
  font-weight: 800;
  line-height: 1.45;
}
.stage__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--stage); box-shadow: 0 0 0 3px color-mix(in srgb, var(--stage) 18%, transparent); flex-shrink: 0; }
.stage--signed { --stage: var(--stage-signed); }
.stage--advanced { --stage: var(--stage-advanced); }
.stage--expected { --stage: var(--stage-expected); }
.stage--preparing { --stage: var(--stage-preparing); }

.verify-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .18rem .6rem;
  border: 1px solid var(--c-warn-line);
  border-radius: 999px;
  background: var(--c-warn-bg);
  color: var(--c-warn-text);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.5;
}
:root[dir="rtl"] .verify-badge { font-size: .78rem; }

/* ------------------------------------------------ 8. Cards & surfaces */
.box {
  position: relative;
  height: 100%;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background: var(--c-surface);
}
.box--alt { background: var(--c-bg-alt); }
.box--flat { height: auto; }
.box--hover { transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
.box--hover:hover { border-color: var(--c-line-strong); box-shadow: var(--shadow-2); transform: translateY(-3px); }
.box--accent { border-top: 3px solid var(--pc); }
.box__title { font-size: 1.05rem; margin-bottom: .45rem; }
.box__text { font-size: .92rem; margin: 0; }

/* Platform card (component: platform-card) */
.platform-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.75rem 1.6rem 1.5rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background: var(--c-surface);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.platform-card::before {
  content: "";
  position: absolute;
  inset-block-start: -1px;
  inset-inline-start: -1px;
  width: 3.5rem;
  height: 3px;
  border-radius: var(--radius-lg) 0 0 0;
  background: var(--pc);
  transition: width .35s var(--ease);
}
:root[dir="rtl"] .platform-card::before { border-radius: 0 var(--radius-lg) 0 0; }
.platform-card:hover { border-color: var(--c-line-strong); box-shadow: var(--shadow-2); transform: translateY(-3px); }
.platform-card:hover::before { width: calc(100% + 2px); }
.platform-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.platform-card__icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: var(--radius-md); background: var(--pc-tint); color: var(--pc-ink); }
.platform-card__index { font-size: .8rem; font-weight: 800; color: var(--c-line-strong); font-variant-numeric: tabular-nums; }
.platform-card__name { font-size: 1.45rem; margin-bottom: .2rem; }
.platform-card__link { color: var(--c-ink); }
.platform-card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.platform-card__link:hover { color: var(--c-ink); }
.platform-card__link:focus-visible { outline: none; }
.platform-card:has(.platform-card__link:focus-visible) { outline: 2px solid var(--c-focus); outline-offset: 3px; }
.platform-card__category { font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--pc-ink); margin-bottom: .9rem; }
.platform-card__text { font-size: .95rem; line-height: 1.75; margin-bottom: 1.25rem; }
.platform-card__flow { padding-top: 1rem; border-top: 1px solid var(--c-line); margin-bottom: 1.25rem; }
.platform-card__actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; }
.platform-card__cta { color: var(--pc-ink); }
.platform-card:hover .platform-card__cta .icon-trail { translate: 3px 0; }
:root[dir="rtl"] .platform-card:hover .platform-card__cta .icon-trail { translate: -3px 0; }
.platform-card__extra { position: relative; z-index: 2; font-size: .88rem; color: var(--c-text); }

/* --------------------------------------------------------- 9. Flow chain */
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.chain__item { display: inline-flex; align-items: center; gap: .4rem; }
.chain__step {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .42rem .8rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  background: var(--c-surface);
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--c-ink-2);
  transition: border-color .2s ease, color .2s ease;
}
.chain__step:hover { border-color: var(--pc); color: var(--pc-ink); }
.chain__num { font-size: .7rem; font-weight: 800; color: var(--pc-ink); font-variant-numeric: tabular-nums; }
.chain__arrow { width: 14px; height: 14px; color: var(--pc-ink); opacity: .55; }
.chain--sm { gap: .3rem; }
.chain--sm .chain__item { gap: .3rem; }
.chain--sm .chain__step { padding: .2rem .55rem; font-size: .76rem; border-radius: var(--radius-xs); background: var(--c-bg-alt); border-color: transparent; }
.chain--sm .chain__arrow { width: 12px; height: 12px; }

/* ------------------------------------------ 10. Lists, notes, tables */
.dot-list, .check-list { list-style: none; margin: 0; padding: 0; }
.dot-list li { position: relative; padding-inline-start: 1.1rem; margin-bottom: .5rem; font-size: .92rem; line-height: 1.65; }
.dot-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pc);
}
.check-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem 1.75rem; }
.check-list--single { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 575.98px) { .check-list { grid-template-columns: minmax(0, 1fr); } }
.check-list li { position: relative; padding-inline-start: 1.85rem; font-size: .95rem; font-weight: 600; line-height: 1.55; color: var(--c-ink-2); }
.check-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .12em;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: var(--radius-xs);
  background: var(--pc-tint);
}
.check-list li::after {
  content: "";
  position: absolute;
  inset-inline-start: .25rem;
  top: .37em;
  width: .75rem;
  height: .75rem;
  background: var(--pc-ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.note {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  margin: 1.5rem 0 0;
  padding: 1rem 1.2rem;
  border-inline-start: 3px solid var(--c-warn-line-strong);
  border-radius: var(--radius-sm);
  background: var(--c-warn-bg);
  color: var(--c-warn-text);
  font-size: .88rem;
  line-height: 1.7;
}
.note .icon { margin-top: .2em; }
.callout {
  padding: 1.15rem 1.3rem;
  border: 1px solid var(--c-line);
  border-inline-start: 3px solid var(--pc);
  border-radius: var(--radius-md);
  background: var(--c-bg-alt);
}
.callout__title { font-size: 1rem; font-weight: 800; color: var(--c-ink); margin-bottom: .45rem; }
.callout p:last-child { margin-bottom: 0; }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  background: var(--c-surface);
  -webkit-overflow-scrolling: touch;
}
.table-x { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .9rem; }
.table-x th,
.table-x td { padding: .85rem 1.05rem; text-align: start; vertical-align: top; border-bottom: 1px solid var(--c-line); }
.table-x thead th { background: var(--c-bg-alt); color: var(--c-ink); font-weight: 800; white-space: nowrap; }
.table-x tbody tr:last-child td { border-bottom: 0; }
.table-x tbody td:first-child { font-weight: 700; color: var(--c-ink-2); }
.table-x tbody tr:hover td { background: var(--c-surface-2); }

/* ------------------------------------------- 11. Header & mega menu */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  padding-top: env(safe-area-inset-top);
  background: color-mix(in srgb, var(--c-bg) 90%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-condensed { border-bottom-color: var(--c-line); box-shadow: var(--shadow-1); }
.site-header__bar { position: relative; display: flex; align-items: center; gap: .75rem; height: var(--header-h); transition: height .25s var(--ease); }
.site-header.is-condensed .site-header__bar { height: var(--header-h-condensed); }

.site-logo { display: inline-flex; align-items: center; flex-shrink: 0; border-radius: var(--radius-xs); }
.site-logo__img { width: auto; height: 30px; transition: height .25s var(--ease); }
.site-logo__img--light { display: var(--logo-light); }
.site-logo__img--dark { display: var(--logo-dark); }
.site-header.is-condensed .site-logo__img { height: 26px; }
@media (max-width: 767.98px) { .site-logo__img { height: 26px; } .site-header.is-condensed .site-logo__img { height: 23px; } }

.site-nav { margin-inline-start: clamp(1rem, 2.5vw, 2.25rem); }
.site-nav__list { display: flex; align-items: center; gap: .1rem; list-style: none; margin: 0; padding: 0; }
.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .5rem .75rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  font: inherit;
  font-size: .93rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--c-ink-2);
  cursor: pointer;
}
.site-nav__link:hover,
.site-nav__link[aria-expanded="true"] { color: var(--c-ink); background: var(--c-bg-alt); }
.site-nav__link.is-active { color: var(--c-brand-text); }
.site-nav__link.is-active::after {
  content: "";
  position: absolute;
  inset-inline: .75rem;
  bottom: .15rem;
  height: 2px;
  border-radius: 2px;
  background: var(--c-brand);
}
.site-nav__caret { transition: transform .2s ease; opacity: .7; }
.site-nav__link[aria-expanded="true"] .site-nav__caret { transform: rotate(180deg); }
@media (max-width: 1199.98px) { .site-nav { display: none; } }

.site-header__actions { display: flex; align-items: center; gap: .35rem; margin-inline-start: auto; }
.site-header__cta { margin-inline-start: .5rem; white-space: nowrap; }
.site-header__burger { border-color: var(--c-line-strong); }
@media (min-width: 1200px) {
  .site-header__burger { display: none; }
}
@media (min-width: 1200px) and (max-width: 1319.98px) {
  .site-header__cta { display: none; }
}
@media (max-width: 575.98px) {
  .site-header__cta,
  .site-header .theme-toggle { display: none; }
}

.lang-switch__code { font-size: .8rem; font-weight: 800; }
.lang-switch__item { justify-content: space-between; min-width: 10rem; }
.theme-icon { display: none; }
:root[data-theme-pref="light"] .theme-icon--light,
:root[data-theme-pref="dark"] .theme-icon--dark,
:root[data-theme-pref="auto"] .theme-icon--auto,
:root:not([data-theme-pref]) .theme-icon--auto { display: block; }
.theme-toggle__item[aria-pressed="true"] { color: var(--c-brand-text); background: var(--c-brand-soft); }

/* Mega menu — positioned against the header bar (static dropdown) */
.site-nav__item--mega { position: static; }
.site-header .mega {
  top: calc(100% - .35rem);
  left: 50%;
  right: auto;
  width: min(900px, calc(100vw - 2 * var(--gutter)));
  margin: 0;
  padding: 1.1rem;
  transform: translateX(-50%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3);
}
.site-header .mega.show { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 1rem; }
.mega__intro { display: flex; flex-direction: column; padding: .6rem .75rem; border-inline-end: 1px solid var(--c-line); }
.mega__title { margin: 0 0 .35rem; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--c-muted); }
.mega__text { margin: 0 0 1.1rem; font-size: .9rem; line-height: 1.6; color: var(--c-text); }
.mega .mega__all { margin-top: auto; padding: 0; background: none; white-space: normal; color: var(--c-brand-text); font-weight: 800; }
.mega .mega__all:hover,
.mega .mega__all:focus { background: none; color: var(--c-brand-text-hover); }
.mega__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem; list-style: none; margin: 0; padding: 0; }
.mega .mega__item {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  height: 100%;
  padding: .85rem .9rem;
  border-radius: var(--radius-md);
  white-space: normal;
}
.mega .mega__item[aria-current="page"] { background: var(--pc-tint); }
.mega__icon { width: 40px; height: 40px; display: grid; place-items: center; flex-shrink: 0; border-radius: var(--radius-sm); background: var(--pc-tint); color: var(--pc-ink); transition: background-color .2s ease, color .2s ease; }
.mega__item:hover .mega__icon,
.mega__item:focus .mega__icon { background: var(--pc); color: #FFFFFF; }
.mega__body { display: flex; flex-direction: column; min-width: 0; }
.mega__name { font-weight: 800; font-size: 1rem; color: var(--c-ink); line-height: 1.35; }
.mega__cat { font-size: .82rem; font-weight: 600; color: var(--c-muted); line-height: 1.45; }

/* ------------------------------------------------ 12. Drawer (offcanvas) */
.drawer {
  --bs-offcanvas-width: min(400px, 90vw);
  --bs-offcanvas-bg: var(--c-surface);
  --bs-offcanvas-color: var(--c-text);
  --bs-offcanvas-border-color: var(--c-line);
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .85rem; padding-inline: 1.25rem 1rem; border-bottom: 1px solid var(--c-line); }
.drawer__title { margin: 0; font-size: 1.05rem; font-weight: 800; color: var(--c-ink); }
.drawer__body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: .5rem 1.25rem 1.75rem; }
.drawer__nav { list-style: none; margin: 0; padding: 0; }
.drawer__link {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .85rem .15rem;
  border-bottom: 1px solid var(--c-line);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--c-ink);
}
.drawer__link .icon { color: var(--c-muted); }
.drawer__link:hover,
.drawer__link[aria-current="page"] { color: var(--c-brand-text); }
.drawer__link[aria-current="page"] .icon { color: var(--c-brand-text); }
.drawer__sub { list-style: none; margin: 0; padding: .35rem 0 .6rem; border-bottom: 1px solid var(--c-line); }
.drawer__sublink {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: .65rem;
  padding-block: .45rem;
  padding-inline: 2.1rem .5rem;
  border-radius: var(--radius-sm);
  color: var(--c-ink-2);
}
.drawer__sublink:hover,
.drawer__sublink[aria-current="page"] { background: var(--pc-tint); color: var(--c-ink); }
.drawer__subname { font-weight: 700; font-size: .95rem; }
.drawer__subcat { grid-column: 2; font-size: .8rem; color: var(--c-muted); line-height: 1.4; }
.drawer__section { margin-top: 1.5rem; }
.drawer__label { margin: 0 0 .6rem; font-size: var(--fs-xs); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); }
.drawer__actions { display: grid; gap: .6rem; margin-top: 1.75rem; }
.drawer__contact { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--c-line); }

.lang-list { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.lang-list__item {
  display: inline-flex;
  padding: .35rem .85rem;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 700;
  color: var(--c-ink-2);
}
.lang-list__item:hover { border-color: var(--c-line-strong); color: var(--c-ink); }
.lang-list__item.is-active { border-color: transparent; background: var(--c-brand-soft); color: var(--c-brand-text); }

.segmented { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .25rem; padding: .25rem; border: 1px solid var(--c-line); border-radius: var(--radius-md); background: var(--c-bg-alt); }
.segmented__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .55rem .4rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  font: inherit;
  font-size: .85rem;
  font-weight: 700;
  color: var(--c-text);
  cursor: pointer;
}
.segmented__item[aria-pressed="true"] { background: var(--c-surface); color: var(--c-ink); box-shadow: var(--shadow-1); }

.contact-list { display: grid; gap: .7rem; list-style: none; margin: 0; padding: 0; }
.contact-list a,
.contact-list__static { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; color: var(--c-ink-2); overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--c-brand-text); }
.contact-list .icon { color: var(--c-brand-text); }

/* ----------------------------------------------------------- 13. Footer */
.site-footer {
  padding-block: clamp(3rem, 6vw, 4.5rem) 1.5rem;
  border-top: 1px solid var(--c-line);
  background: var(--c-bg-alt);
  font-size: .93rem;
}
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem 2rem; }
@media (max-width: 991.98px) {
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 479.98px) { .site-footer__grid { grid-template-columns: minmax(0, 1fr); } }
.site-logo--footer .site-logo__img { height: 32px; }
.site-footer__tagline { max-width: 40ch; margin: 1.15rem 0 1.25rem; color: var(--c-text); }
.site-footer__title { margin-bottom: 1rem; font-size: var(--fs-xs); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--c-muted); }
:root[dir="rtl"] .site-footer__title { font-size: .88rem; }
.site-footer__links { display: grid; gap: .6rem; list-style: none; margin: 0; padding: 0; }
.site-footer__links a { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; color: var(--c-ink-2); }
.site-footer__links a:hover,
.site-footer__links a[aria-current="page"] { color: var(--c-brand-text); }
.social-list { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.social-list .icon-btn { border-color: var(--c-line-strong); }
.social-list .icon-btn:hover { border-color: var(--c-brand); color: var(--c-brand-text); background: var(--c-brand-soft); }
.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-line);
  font-size: .85rem;
  color: var(--c-muted);
}
.site-footer__copy { margin: 0; }
.site-footer__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.site-footer__meta .lang-list__item { padding: .2rem .7rem; font-size: .8rem; }
.site-footer__top { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; color: var(--c-ink-2); }
.site-footer__legal { font-weight: 700; color: var(--c-ink-2); }
.site-footer__legal:hover,
.site-footer__legal[aria-current="page"] { color: var(--c-brand-text); }

/* ---------------------------------------- 14. Page hero & breadcrumbs */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem) clamp(2.75rem, 6vw, 4.75rem);
  border-bottom: 1px solid var(--c-line);
  background: var(--c-bg-alt);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(40rem 22rem at var(--glow-x, 88%) 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(40rem 22rem at var(--glow-x, 88%) 0%, #000 0%, transparent 75%);
}
:root[dir="rtl"] :is(.page-hero, .home-hero) { --glow-x: 12%; }
.page-hero > .wrap { position: relative; }
.page-hero--accent::after { content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 4px; background: var(--pc); }
.page-hero--accent .kicker { color: var(--pc-ink); }
.page-hero__content { max-width: 860px; }
.page-hero__title { font-size: var(--fs-h1); margin-bottom: 1rem; text-wrap: balance; }
.page-hero__lead { margin: 0; font-size: var(--fs-lead); line-height: 1.75; max-width: 68ch; color: var(--c-text); }
.page-hero__meta { margin: 1rem 0 0; font-size: .9rem; color: var(--c-muted); }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

.breadcrumbs { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.breadcrumbs__list { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .4rem; list-style: none; margin: 0; padding: 0; font-size: .85rem; }
.breadcrumbs__item { display: inline-flex; align-items: center; gap: .4rem; color: var(--c-muted); }
.breadcrumbs__item a { font-weight: 600; color: var(--c-text); }
.breadcrumbs__item a:hover { color: var(--c-brand-text); }
.breadcrumbs__sep { color: var(--c-line-strong); }

/* ---------------------------------------------------------- 15. CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: center;
  gap: 2rem 3rem;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: var(--radius-lg);
  background: var(--c-brand);
  color: #FFFFFF;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(40rem 20rem at 100% 0%, rgba(255, 255, 255, .16), transparent 70%),
    radial-gradient(30rem 18rem at 0% 120%, rgba(0, 0, 0, .22), transparent 70%);
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .5;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(to left, #000, transparent 70%);
  mask-image: linear-gradient(to left, #000, transparent 70%);
}
:root[dir="rtl"] .cta-band::after { -webkit-mask-image: linear-gradient(to right, #000, transparent 70%); mask-image: linear-gradient(to right, #000, transparent 70%); }
.cta-band__title { color: #FFFFFF; font-size: var(--fs-h2); margin-bottom: .85rem; text-wrap: balance; }
.cta-band__lead { margin: 0; max-width: 60ch; color: rgba(255, 255, 255, .9); font-size: 1.02rem; }
.cta-band__actions { display: grid; gap: .65rem; width: 100%; max-width: 22rem; margin-inline-start: auto; }
.cta-band__actions .btn { width: 100%; }
.cta-band__investor { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; margin-top: .35rem; font-weight: 700; font-size: .92rem; color: #FFFFFF; }
.cta-band__investor:hover { color: #FFFFFF; text-decoration: underline; text-underline-offset: 4px; }
.cta-band .btn:focus-visible,
.cta-band a:focus-visible { outline-color: #FFFFFF; }
@media (max-width: 991.98px) {
  .cta-band { grid-template-columns: minmax(0, 1fr); }
  .cta-band__actions { margin-inline-start: 0; }
}

/* --------------------------------- 16. Home — hero & ecosystem visual */
.home-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--c-line);
  background: radial-gradient(60rem 32rem at var(--glow-x, 88%) 10%, var(--hero-glow), transparent 70%), var(--c-bg);
}
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(52rem 30rem at var(--glow-x, 88%) 25%, #000 0%, transparent 72%);
  mask-image: radial-gradient(52rem 30rem at var(--glow-x, 88%) 25%, #000 0%, transparent 72%);
}
.home-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(2rem, 5vw, 4.5rem); }
@media (max-width: 991.98px) {
  .home-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .home-hero__visual { width: 100%; max-width: 460px; margin-inline: auto; }
}
.hero-title { font-size: var(--fs-display); line-height: 1.04; letter-spacing: -.035em; margin-bottom: 1.4rem; text-wrap: balance; }
:root[dir="rtl"] .hero-title { line-height: 1.32; letter-spacing: 0; }
.hero-title__highlight {
  color: var(--c-brand-text);
  background-image: linear-gradient(var(--c-brand-soft), var(--c-brand-soft));
  background-repeat: no-repeat;
  background-size: 100% .24em;
  background-position: 0 88%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hero-sub { max-width: 62ch; margin-bottom: 0; font-size: var(--fs-lead); line-height: 1.8; color: var(--c-text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-statement {
  max-width: 56ch;
  margin: 2.5rem 0 0;
  padding-inline-start: 1.1rem;
  border-inline-start: 3px solid var(--c-brand);
  font-size: 1.03rem;
  font-weight: 700;
  line-height: 1.65;
  color: var(--c-ink-2);
}

.eco { margin: 0; }
.eco__svg { display: block; width: 100%; height: auto; overflow: visible; }
.eco__ring { fill: none; stroke: var(--c-line-strong); }
.eco__ring--outer { stroke-opacity: .55; stroke-dasharray: 1 7; stroke-linecap: round; stroke-width: 1.5; }
.eco__ring--orbit { stroke-width: 1.2; stroke-dasharray: 5 9; transform-box: fill-box; transform-origin: center; animation: eco-spin 120s linear infinite; }
.eco__ring--inner { stroke-opacity: .6; stroke-width: 1; }
.eco__link { fill: none; stroke: var(--pc); stroke-width: 1.6; stroke-opacity: .45; }
.eco__pulse {
  fill: none;
  stroke: var(--pc);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: 2 16;
  animation: eco-flow 2.6s linear infinite;
  animation-delay: calc(var(--i, 0) * -.65s);
}
.eco__core-box { fill: var(--c-brand); }
.eco__core-ring { fill: var(--c-surface); stroke: var(--c-line); stroke-width: 1; }
.eco__core-pulse { fill: var(--c-brand); opacity: .1; transform-box: fill-box; transform-origin: center; animation: eco-breathe 4s ease-in-out infinite; }
.eco__node-halo { fill: var(--pc-tint); opacity: .7; transform-box: fill-box; transform-origin: center; animation: eco-breathe 5s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -1.2s); }
.eco__node-disc { fill: var(--c-surface); stroke: var(--pc); stroke-width: 1.6; }
.eco__node-icon { color: var(--pc-ink); }
.eco__node-name { fill: var(--c-ink); font-family: var(--font); font-size: 17px; font-weight: 800; text-anchor: middle; }
@keyframes eco-spin { to { transform: rotate(360deg); } }
@keyframes eco-flow { to { stroke-dashoffset: -36; } }
@keyframes eco-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14); } }

/* Hero slider fallback while slider.css is unavailable: only the current slide,
   no decorative console / background layers. slider.css restores the real layout. */
.hs-slide:not(.is-active),
.hs-console,
.hs__bg { display: none; }

/* ------------------- 17. Metrics, pillars, features, numbered items */
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-block: 1px solid var(--c-line); }
.metric { display: flex; flex-direction: column; min-width: 0; padding: clamp(1.4rem, 3vw, 2.4rem) clamp(1rem, 2vw, 1.75rem); border-inline-start: 1px solid var(--c-line); }
.metric:first-child { border-inline-start: 0; padding-inline-start: 0; }
.metric__value {
  order: -1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .2rem .5rem;
  margin: 0;
  font-size: clamp(2.3rem, 4vw, 3.3rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--c-ink);
}
.metric__number { font-variant-numeric: tabular-nums; }
.metric__suffix { font-size: 1rem; font-weight: 700; letter-spacing: 0; color: var(--c-brand-text); }
.metric__label { margin-top: .95rem; font-size: 1rem; font-weight: 800; line-height: 1.4; color: var(--c-ink-2); }
.metric__desc { margin: .4rem 0 0; font-size: .88rem; line-height: 1.6; color: var(--c-muted); }
.metric__flag { margin: .85rem 0 0; }
@media (max-width: 991.98px) {
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
  .metric:nth-child(n + 3) { border-top: 1px solid var(--c-line); }
}
@media (max-width: 479.98px) {
  .metrics { grid-template-columns: minmax(0, 1fr); }
  .metric { border-inline-start: 0; padding-inline: 0; }
  .metric + .metric { border-top: 1px solid var(--c-line); }
}

.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 2.25rem; list-style: none; margin: 0; padding: 0; }
@media (max-width: 575.98px) { .pillars { grid-template-columns: minmax(0, 1fr); } }
.pillar { padding-top: 1.25rem; border-top: 2px solid var(--c-ink); }
.pillar__num { display: block; margin-bottom: .5rem; font-size: .8rem; font-weight: 800; color: var(--c-brand-text); font-variant-numeric: tabular-nums; }
.pillar__title { font-size: 1.1rem; margin-bottom: .45rem; }
.pillar__text { margin: 0; font-size: .93rem; line-height: 1.75; }

.feature {
  height: 100%;
  padding: 1.5rem 1.35rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background: var(--c-surface);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.feature:hover { border-color: var(--c-line-strong); box-shadow: var(--shadow-2); transform: translateY(-3px); }
.feature__icon { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 1.1rem; border-radius: var(--radius-md); background: var(--c-brand-soft); color: var(--c-brand-text); }
.feature__title { font-size: 1.05rem; margin-bottom: .45rem; }
.feature__text { margin: 0; font-size: .9rem; line-height: 1.7; }

.num-item { padding-top: 1.4rem; border-top: 1px solid var(--c-line-strong); transition: border-color .25s ease; }
.num-item:hover { border-top-color: var(--c-brand); }
.num-item__n { display: block; margin-bottom: .6rem; font-size: .8rem; font-weight: 800; color: var(--c-brand-text); font-variant-numeric: tabular-nums; }
.num-item__title { font-size: 1.06rem; margin-bottom: .45rem; }
.num-item__text { margin: 0; font-size: .92rem; line-height: 1.75; }
.num-grid { row-gap: clamp(1.75rem, 3vw, 2.5rem); column-gap: clamp(1.25rem, 3vw, 2.5rem); }

/* -------------------------- 18. Platforms at a glance (home) & status cards */
/* One accent-themed card per platform ([data-accent] → --pc / --pc-ink / --pc-tint).
   Stat tiles count items of the published profile; motion.css animates the
   card in (stagger), draws the flow rail and counts the numbers up. */
.pa-grid { gap: clamp(1rem, 2vw, 1.5rem); }
@media (min-width: 768px) {
  .pa-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.pa-card {
  --pa-glow-x: 100%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  min-width: 0;
  height: 100%;
  padding: clamp(1.35rem, 2.4vw, 2rem);
  border: 1px solid var(--c-line);
  border-radius: 14px;
  background:
    radial-gradient(30rem 15rem at var(--pa-glow-x) -12%, color-mix(in srgb, var(--pc) 10%, transparent), transparent 72%),
    var(--c-surface);
  box-shadow: var(--shadow-1);
  container-type: inline-size;
}
:root[dir="rtl"] .pa-card { --pa-glow-x: 0%; }
.pa-card::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3px;
  background: linear-gradient(to right, var(--pc), color-mix(in srgb, var(--pc) 12%, transparent));
}
:root[dir="rtl"] .pa-card::before { background: linear-gradient(to left, var(--pc), color-mix(in srgb, var(--pc) 12%, transparent)); }
.pa-card__mark {
  position: absolute;
  z-index: -1;
  inset-block-start: -2.4rem;
  inset-inline-end: -2.4rem;
  color: var(--pc-ink);
  opacity: .07;
  pointer-events: none;
}

.pa-card__head { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1rem; }
.pa-card__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--pc);
  color: #FFFFFF;
  box-shadow: 0 14px 26px -14px color-mix(in srgb, var(--pc) 85%, transparent), inset 0 0 0 1px rgba(255, 255, 255, .16);
}
.pa-card__id { flex: 1 1 11rem; min-width: 0; }
.pa-card__name { margin: 0; font-size: clamp(1.45rem, 1.2rem + .9vw, 1.85rem); line-height: 1.2; }
:root[dir="rtl"] .pa-card__name { line-height: 1.4; }
.pa-card__name a { color: var(--c-ink); }
.pa-card__name a:hover { color: var(--pc-ink); }
.pa-card__cat { margin: .2rem 0 0; font-size: .78rem; font-weight: 800; line-height: 1.45; letter-spacing: .06em; text-transform: uppercase; color: var(--pc-ink); }
:root[dir="rtl"] .pa-card__cat { font-size: .86rem; }
.pa-card__stage { display: inline-flex; align-self: flex-start; margin: .3rem 0 0; }
.pa-card__stage .stage { background: color-mix(in srgb, var(--stage) 9%, var(--c-surface)); }  /* opaque over the watermark */

.pa-card__tagline {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-height: 3.2em;               /* two lines: taglines of different lengths keep the tiles aligned */
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.6;
  color: var(--c-ink-2);
}
:root[dir="rtl"] .pa-card__tagline { min-height: 3.5em; line-height: 1.75; }

.pa-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; list-style: none; margin: 0; padding: 0; }
@container (min-width: 500px) {
  .pa-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.pa-stat {
  display: flex;
  flex-direction: column;
  gap: .12rem;
  min-width: 0;
  padding: .8rem .85rem .75rem;
  border: 1px solid color-mix(in srgb, var(--pc) 16%, var(--c-line));
  border-radius: 10px;
  background: color-mix(in srgb, var(--pc) 5%, var(--c-surface));
}
.pa-stat__value {
  display: block;
  font-size: clamp(1.55rem, 1.25rem + .9vw, 1.95rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--c-ink);
  font-variant-numeric: tabular-nums;
}
:root[dir="rtl"] .pa-stat__value { text-align: right; }
.pa-stat__label { font-size: .8rem; font-weight: 700; line-height: 1.35; color: var(--c-ink-2); }
.pa-stat__sub { font-size: .72rem; font-weight: 700; line-height: 1.35; color: var(--pc-ink); }

.pa-label { margin: 0 0 .7rem; font-size: var(--fs-xs); font-weight: 800; line-height: 1.4; letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); }
:root[dir="rtl"] .pa-label { font-size: .82rem; }

.pa-flow__list {
  --dot: 14px;
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}
.pa-flow__list::before,
.pa-flow__list::after {
  content: "";
  position: absolute;
  top: calc(var(--dot) / 2 - 1px);
  inset-inline: calc(50% / var(--n, 4));
  height: 2px;
  border-radius: 2px;
}
.pa-flow__list::before { background: var(--c-line); }
.pa-flow__list::after {
  background: linear-gradient(to right, var(--pc), color-mix(in srgb, var(--pc) 40%, transparent));
  transform-origin: left center;
}
:root[dir="rtl"] .pa-flow__list::after {
  background: linear-gradient(to left, var(--pc), color-mix(in srgb, var(--pc) 40%, transparent));
  transform-origin: right center;
}
.pa-flow__step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: .5rem; min-width: 0; padding-inline: 3px; text-align: center; }
.pa-flow__dot {
  width: var(--dot);
  height: var(--dot);
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--pc);
  box-shadow: 0 0 0 4px var(--c-surface), 0 0 0 5px color-mix(in srgb, var(--pc) 32%, transparent);
}
.pa-flow__name { max-width: 100%; font-size: .78rem; font-weight: 700; line-height: 1.35; color: var(--c-ink-2); overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
:root[dir="rtl"] .pa-flow__name { font-size: .82rem; }

.pa-audience__list .chip { max-width: 100%; }
.pa-audience__more { cursor: help; font-variant-numeric: tabular-nums; }

.pa-card__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: auto; padding-top: .3rem; }
.pa-note { display: flex; align-items: flex-start; gap: .5rem; max-width: 80ch; margin: 1.25rem 0 0; font-size: .84rem; line-height: 1.65; color: var(--c-muted); }
.pa-note .icon { margin-top: .22em; }

@media (max-width: 575.98px) {
  .pa-card { gap: 1.1rem; border-radius: 12px; }
  .pa-card__icon { width: 48px; height: 48px; border-radius: 12px; }
  .pa-card__icon .icon { width: 24px; height: 24px; }
  .pa-card__mark { width: 140px; height: 140px; }
  .pa-card__actions .btn { flex: 1 1 auto; }
}

.status-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  padding: 1.5rem 1.35rem 1.35rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background: var(--c-surface);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.status-card::before { content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 3px; background: var(--pc); }
.status-card:hover { border-color: var(--c-line-strong); box-shadow: var(--shadow-2); transform: translateY(-3px); }
.status-card__head { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; margin-bottom: 1rem; }
.status-card__platform { display: inline-flex; align-items: center; gap: .55rem; font-size: 1.05rem; font-weight: 800; color: var(--c-ink); }
.status-card__icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: var(--radius-sm); background: var(--pc-tint); color: var(--pc-ink); }
.status-card__title { font-size: 1rem; line-height: 1.45; margin-bottom: .85rem; }
.status-card__points { margin-bottom: 1.25rem; }
.status-card__points li { font-size: .88rem; }
.status-card__link { margin-top: auto; color: var(--pc-ink); font-size: .9rem; }
.status-card__link:hover { color: var(--c-ink); }

/* -------------------------------------- 19. Ecosystem equation (ink band) */
.section--ink { overflow: hidden; background: var(--c-band); color: var(--c-on-band-muted); }
.section--ink::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(50rem 26rem at var(--glow-x, 90%) -10%, rgba(var(--brand-rgb), .3), transparent 70%),
    radial-gradient(40rem 22rem at 0% 110%, rgba(var(--brand-secondary-rgb), .12), transparent 70%);
}
:root[dir="rtl"] .section--ink { --glow-x: 10%; }
.section--ink > .wrap { position: relative; }
/* Brand red is under 3:1 on the ink band, so focus rings turn white there. */
.section--ink :focus-visible { outline-color: #FFFFFF; }
:root[data-theme="dark"] .section--ink { border-block: 1px solid var(--c-line); }

.equation {
  --eq-gap: 1.5rem;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: var(--eq-gap);
  list-style: none;
  margin: 0;
  padding: 0;
}
.equation__term {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1.1rem 1rem;
  border: 1px solid var(--c-band-line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .04);
  transition: border-color .25s ease, background-color .25s ease;
}
.equation__term:hover { border-color: rgba(255, 255, 255, .32); background: rgba(255, 255, 255, .07); }
.equation__t { font-size: 1rem; font-weight: 800; line-height: 1.35; color: var(--c-on-band); }
.equation__d { font-size: .82rem; line-height: 1.55; color: var(--c-on-band-muted); }
/* "+" sits centred in the gap before each term; hidden at the start of a row */
.equation__op {
  position: absolute;
  top: 50%;
  inset-inline-start: calc(var(--eq-gap) / -2);
  width: 22px;
  height: 22px;
  margin-top: -11px;
  margin-inline-start: -11px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--c-band);
  color: var(--c-band-accent);
}
@media (max-width: 1199.98px) {
  .equation { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .equation__term:nth-child(4n + 1) .equation__op { display: none; }
}
@media (max-width: 767.98px) {
  .equation { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .equation__term:nth-child(2n + 1) .equation__op { display: none; }
}
@media (max-width: 479.98px) {
  .equation { grid-template-columns: minmax(0, 1fr); }
  .equation__term:not(:first-child) .equation__op { display: grid; top: calc(var(--eq-gap) / -2); inset-inline-start: 50%; }
}
.equation__result {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  margin-top: 1.25rem;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border-radius: var(--radius-lg);
  background: var(--c-brand);
  color: #FFFFFF;
}
.equation__result::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(36rem 16rem at 100% 0%, rgba(255, 255, 255, .18), transparent 70%); }
.equation__equals { flex: 0 0 auto; width: 64px; height: 64px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; background: rgba(255, 255, 255, .12); }
.equation__result-body { min-width: 0; }
.equation__result-label { margin: 0 0 .2rem; font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.equation__result-title { margin: 0 0 .6rem; font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; line-height: 1.2; color: #FFFFFF; }
.equation__result-note { margin: 0; max-width: 74ch; color: rgba(255, 255, 255, .9); }
@media (max-width: 575.98px) {
  .equation__result { flex-direction: column; align-items: flex-start; }
}

/* ------------------------------------ 20. PWA: tab bar, install hint, toasts */
.tabbar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 1035;
  display: none;
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  border-top: 1px solid var(--c-line);
  background: color-mix(in srgb, var(--c-surface) 92%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
}
.tabbar__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 640px; margin: 0 auto; padding: 0; list-style: none; }
.tabbar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .15rem;
  width: 100%;
  min-height: var(--tabbar-h);
  padding: .4rem .2rem .3rem;
  border: 0;
  background: none;
  font: inherit;
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-muted);
  cursor: pointer;
}
.tabbar__item:hover { color: var(--c-ink); }
.tabbar__item.is-active { color: var(--c-brand-text); }
.tabbar__label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:root[dir="rtl"] .tabbar__item { font-size: .74rem; }
@media (max-width: 991.98px) {
  .is-standalone .tabbar { display: block; }
  .is-standalone body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
  .is-standalone .site-header__cta { display: none; }
}
@media (display-mode: standalone) and (max-width: 991.98px) {
  .tabbar { display: block; }
  body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
}

.install-hint {
  position: fixed;
  inset-inline: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 1038;                   /* above the tab bar, under the drawer backdrop (1040) */
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  max-width: 26rem;
  margin-inline: auto;
  padding-block: 1rem;
  padding-inline: 1rem 2.75rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background: var(--c-surface);
  box-shadow: var(--shadow-3);
  opacity: 0;
  transform: translateY(calc(100% + 2rem));
  transition: transform .45s var(--ease), opacity .3s ease;
}
.install-hint[hidden] { display: none; }
.install-hint.is-visible { opacity: 1; transform: none; }
.install-hint__icon { width: 48px; height: 48px; flex-shrink: 0; border-radius: 11px; }
.install-hint__body { min-width: 0; }
.install-hint__title { margin: 0 0 .45rem; font-weight: 800; color: var(--c-ink); line-height: 1.35; }
.install-hint__text { margin: 0; font-size: .88rem; line-height: 1.6; }
.install-hint__steps { display: grid; gap: .35rem; margin: 0; padding: 0; list-style: none; font-size: .88rem; line-height: 1.5; }
.install-hint__steps li { display: flex; align-items: center; gap: .5rem; }
.install-hint__steps .icon { color: var(--c-brand-text); }
.install-hint__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.install-hint__close { position: absolute; top: .5rem; inset-inline-end: .5rem; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: var(--radius-sm); background: none; color: var(--c-muted); cursor: pointer; }
.install-hint__close:hover { background: var(--c-bg-alt); color: var(--c-ink); }
.install-hint[data-variant="ios"] [data-install-variant="prompt"],
.install-hint[data-variant="prompt"] [data-install-variant="ios"] { display: none; }

.app-toasts {
  position: fixed;
  inset-inline: 0;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 1065;
  display: grid;
  justify-items: center;
  gap: .5rem;
  padding-inline: 1rem;
  pointer-events: none;
}
@media (max-width: 991.98px) {
  .is-standalone .app-toasts { bottom: calc(var(--tabbar-h) + 1rem + env(safe-area-inset-bottom)); }
}
/* Stack toasts above the install hint while it is on screen (height set by site.js). */
.install-hint.is-visible ~ .app-toasts { bottom: calc(1.75rem + var(--install-hint-h, 7.5rem) + env(safe-area-inset-bottom)); }
.app-toast {
  display: flex;
  align-items: center;
  gap: .75rem;
  max-width: 30rem;
  padding-block: .6rem;
  padding-inline: 1rem .7rem;
  border-radius: var(--radius-md);
  background: var(--c-ink);
  color: var(--c-bg);
  box-shadow: var(--shadow-3);
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.45;
  pointer-events: auto;
  animation: toast-in .35s var(--ease) both;
}
.app-toast[hidden] { display: none; }
.app-toast .btn { flex-shrink: 0; }
@keyframes toast-in { from { opacity: 0; translate: 0 12px; } }

/* --------------------------- 20b. Floating contact button · flagship link */
/* Bottom offset shared by the floating controls (contact button, back-to-top):
   above the safe area, the standalone tab bar and the install hint. */
:root { --float-bottom: calc(1rem + env(safe-area-inset-bottom)); --fab-size: 52px; }
@media (max-width: 991.98px) {
  :root.is-standalone { --float-bottom: calc(var(--tabbar-h) + .75rem + env(safe-area-inset-bottom)); }
}
@media (display-mode: standalone) and (max-width: 991.98px) {
  :root { --float-bottom: calc(var(--tabbar-h) + .75rem + env(safe-area-inset-bottom)); }
}
/* Only phones need the lift: from 768px the install hint is a centred 26rem card that
   never reaches the corner, and lifting the button there made it cover page content. */
@media (max-width: 767.98px) {
  body:has(.install-hint.is-visible) { --float-bottom: calc(1.75rem + var(--install-hint-h, 7.5rem) + env(safe-area-inset-bottom)); }
}
/* Phones/tablets: an app toast (update available / offline) spans the bottom of the screen,
   so the floating buttons move above it while it is shown (the toast used to cover them). */
@media (max-width: 991.98px) {
  body:has(.app-toast:not([hidden])) { --toast-lift: 4.5rem; }
}

.contact-fab {
  position: fixed;
  z-index: 1028;                   /* under the header (1030), tab bar and install hint */
  right: max(1rem, calc(env(safe-area-inset-right) + .75rem));
  bottom: var(--float-bottom);
  margin-bottom: var(--toast-lift, 0px);   /* above a visible app toast (phones/tablets) */
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: var(--fab-size);
  padding-block: .5rem;
  padding-inline: .5rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--c-brand);
  color: var(--c-brand-ink);
  box-shadow: 0 10px 26px -10px rgba(var(--brand-rgb), .65), var(--shadow-2);
  font-size: .92rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  /* Lifted above [data-fab-avoid] controls while they would sit under it (site.js). */
  translate: 0 calc(-1 * var(--fab-lift, 0px));
  transition: background-color .2s ease, box-shadow .25s var(--ease), transform .25s var(--ease), translate .3s var(--ease), bottom .3s var(--ease), margin .3s var(--ease);
}
:root[dir="rtl"] .contact-fab { right: auto; left: max(1rem, calc(env(safe-area-inset-left) + .75rem)); }
.contact-fab:hover { background: var(--c-brand-hover); color: var(--c-brand-ink); transform: translateY(-2px); }
.contact-fab:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 3px; color: var(--c-brand-ink); }
.contact-fab__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
}
.contact-fab__icon svg { display: block; width: 21px; height: 21px; }
@media (prefers-reduced-motion: no-preference) {
  .contact-fab { animation: fab-in .55s var(--ease) .5s both; }
}
@keyframes fab-in { from { opacity: 0; transform: translateY(16px) scale(.92); } }
/* Small screens: a round icon button; the label stays as its accessible name. */
@media (max-width: 767.98px) {
  .contact-fab { width: var(--fab-size); padding: 0; justify-content: center; }
  .contact-fab__icon { width: 100%; height: 100%; background: none; }
  .contact-fab__icon svg { width: 24px; height: 24px; }
  .contact-fab__label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }
}
/* The drawer (and its backdrop) cover the button while open. */
body:has(.drawer.show) .contact-fab { visibility: hidden; }

/* Flagship project (Mishwar): its own yellow identity marker, independent of the brand. */
.flagship-dot {
  display: inline-block;
  width: .5rem;
  height: .5rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: #F9DA00;
  box-shadow: 0 0 0 3px rgba(249, 218, 0, .28);
}
.flagship-tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .12rem .5rem;
  border-radius: 999px;
  background: #0A0A0B;
  color: #F9DA00;
  font-size: .68rem;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: .02em;
  white-space: nowrap;
}
.site-nav__link--flagship { gap: .45rem; }
.drawer__link--flagship .flagship-tag { margin-inline-start: auto; }
.site-footer__flagship { flex-wrap: wrap; }
.site-footer__title--spaced { margin-top: 1.75rem; }

/* ------------------------------------------------- 21. Motion & reveal */
.reveal-ready .reveal:not(.is-in) { opacity: 0; }
.reveal-ready .reveal.is-in { animation: reveal-in .7s var(--ease) backwards; animation-delay: calc(var(--d, 0) * 80ms); }
@keyframes reveal-in { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-ready .reveal:not(.is-in) { opacity: 1; }
}

/* ------------------------------------------------------------- 22. Print */
@media print {
  .site-header, .drawer, .tabbar, .install-hint, .app-toasts, .skip-link, .contact-fab,
  .site-footer__meta, .hero-actions, .pa-card__actions, .cta-band__actions { display: none !important; }
  body { background: #FFFFFF; color: #000000; padding: 0 !important; }
  .section, .home-hero, .page-hero { padding-block: 1.5rem; }
  .section--ink, .cta-band, .equation__result { background: #FFFFFF !important; color: #000000 !important; border: 1px solid #CCCCCC; }
  .section--ink :is(h2, p, span), .cta-band :is(h2, p) { color: #000000 !important; }
  .reveal-ready .reveal:not(.is-in) { opacity: 1; }
}
