/* Masar — the landing page of masarhr.com. Design system: mural.design.md (black editorial hero, light serif display,
   jade pill as the single CTA voltage, white editorial bands, pastel stickies only as decoration on product moments,
   binary radius scale 6/8 · 24 · pill, navy-tinted shadows). Logical properties everywhere: the Arabic page mirrors
   without a second stylesheet. Two themes: the editorial bands follow the visitor's system or their choice (the same
   `theme` key the app uses); the black bands are black in both. */

@font-face { font-family: "MasarRiyal"; font-weight: 100 900; font-display: swap; src: url("fonts/masar-riyal.woff2") format("woff2"); unicode-range: U+20C1; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("fonts/newsreader-latin.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap; src: url("fonts/newsreader-latin-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 100 900; font-display: swap; src: url("fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "Thmanyah Serif Display"; font-weight: 300; font-display: swap; src: url("fonts/thmanyah-serif-display-300.woff2") format("woff2"); }
@font-face { font-family: "Thmanyah Serif Display"; font-weight: 400; font-display: swap; src: url("fonts/thmanyah-serif-display-400.woff2") format("woff2"); }
@font-face { font-family: "Thmanyah Sans"; font-weight: 300; font-display: swap; src: url("fonts/thmanyah-sans-300.woff2") format("woff2"); }
@font-face { font-family: "Thmanyah Sans"; font-weight: 400; font-display: swap; src: url("fonts/thmanyah-sans-400.woff2") format("woff2"); }
@font-face { font-family: "Thmanyah Sans"; font-weight: 500 600; font-display: swap; src: url("fonts/thmanyah-sans-500.woff2") format("woff2"); }

:root {
  /* brand — mural.design.md; the same in both themes */
  --primary: #00c27a;          /* jade: the CTA voltage, never a panel */
  --surface-brand: #b4f5c8;    /* mint: AI badge, sticky notes, ticks */
  --ink: #000000;              /* the black bands */
  --canvas: #ffffff;           /* text on the black bands */
  --ink-tertiary: #8c8c8c;     /* the dim-grey display on black */
  --border-inverse: #4f5457;
  --sticky-mint: var(--surface-brand);
  --sticky-blush: #ffd9d3;
  --sticky-lemon: #fff2a8;
  --sticky-lavender: #e3dcff;
  --sticky-sky: #d2e9ff;

  /* theme — the editorial bands (light) */
  --page: #ffffff;
  --page-soft: #eeeeee;
  --card: #ffffff;
  --text: #000000;
  --text-2: #333333;
  --text-muted: #626262;
  --line: #dce1e5;
  --line-hover: #b8c1cc;
  --well: #eeeeee;
  --shot-bg: #f4f8f5;
  --card-shadow: 0 0 1px 0 rgba(11, 41, 70, .32), 0 24px 20px 0 rgba(42, 82, 121, .08);
  --hover-shadow: 0 12px 12px rgba(0, 0, 0, .12);
  color-scheme: light;

  --r-sm: 6px; --r-md: 8px; --r-xl: 24px; --r-pill: 9999px;
  --s-xs: 4px; --s-sm: 8px; --s-base: 16px; --s-md: 24px; --s-lg: 32px; --s-xl: 48px; --s-2xl: 80px; --s-3xl: 128px;

  --gutter: clamp(16px, 5vw, 80px);
  --wide: 90rem;
  --column: 64rem;

  --font-display: "MasarRiyal", "Newsreader", "Thmanyah Serif Display", "Times New Roman", serif;
  --font-sans: "MasarRiyal", "Inter", "Thmanyah Sans", Arial, sans-serif;
  --track-xl: -0.05em;  /* -4px at 80px */
  --track-lg: -0.04em;  /* -2.8px at 70px */
  --track-eyebrow: 2.45px;
}
/* Dark: the editorial bands go near-black, cards lift a step, text goes warm white; jade, mint and the stickies stay. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #0b0b0b; --page-soft: #131313; --card: #171717; --text: #f3f3f1; --text-2: #c9c9c6; --text-muted: #9a9a96;
    --line: #2a2a2a; --line-hover: #444444; --well: #242424; --shot-bg: #1b1d1c;
    --card-shadow: 0 0 0 1px #222222, 0 24px 30px rgba(0, 0, 0, .45); --hover-shadow: 0 16px 24px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --page: #0b0b0b; --page-soft: #131313; --card: #171717; --text: #f3f3f1; --text-2: #c9c9c6; --text-muted: #9a9a96;
  --line: #2a2a2a; --line-hover: #444444; --well: #242424; --shot-bg: #1b1d1c;
  --card-shadow: 0 0 0 1px #222222, 0 24px 30px rgba(0, 0, 0, .45); --hover-shadow: 0 16px 24px rgba(0, 0, 0, .6);
  color-scheme: dark;
}
/* Arabic joins its letters — never track it; give it the line height its marks need. */
:root[lang="ar"] {
  --font-display: "MasarRiyal", "Thmanyah Serif Display", "Newsreader", serif;
  --font-sans: "MasarRiyal", "Thmanyah Sans", "Inter", Arial, sans-serif;
  --track-xl: 0; --track-lg: 0; --track-eyebrow: 0;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--page); color: var(--text);
  font-family: var(--font-sans); font-weight: 300; font-size: 16px; line-height: 28px;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
  transition: background-color .25s ease, color .25s ease;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: var(--r-md); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- type ---------- */
.display-xl, .display-lg, .display-md, .display-sm {
  font-family: var(--font-display); font-weight: 300; margin: 0; text-wrap: balance;
}
.display-xl { font-size: clamp(2.75rem, 1.4rem + 5.2vw, 5rem); line-height: 1.1; letter-spacing: var(--track-xl); }
.display-lg { font-size: clamp(2.375rem, 1.3rem + 4.2vw, 4.375rem); line-height: 1.04; letter-spacing: var(--track-lg); }
.display-md { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.375rem); line-height: 1.2; }
.display-sm { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); line-height: 1.2; }
[lang="ar"] .display-xl { line-height: 1.32; }
[lang="ar"] .display-lg { line-height: 1.3; }
[lang="ar"] .display-md, [lang="ar"] .display-sm { line-height: 1.4; }
.heading-md { font-size: 22px; line-height: 33px; font-weight: 300; margin: 0; }
.body-lg { font-size: 18px; line-height: 27px; }
[lang="ar"] .body-lg { line-height: 31px; }
.body-sm { font-size: 14px; line-height: 21px; }
.label { font-size: 16px; line-height: 24px; font-weight: 500; }
.eyebrow {
  display: block; font-size: 14px; line-height: 21px; font-weight: 300; text-transform: uppercase;
  letter-spacing: var(--track-eyebrow); color: var(--text-muted); margin: 0 0 var(--s-md);
}
[lang="ar"] .eyebrow { font-size: 15px; font-weight: 400; }
.band-black .eyebrow { color: var(--ink-tertiary); }
.mini-label { display: block; font-size: 13px; line-height: 18px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--text-muted); font-weight: 500; }
[lang="ar"] .mini-label { letter-spacing: 0; font-size: 14px; }
.lead { max-width: 44rem; color: var(--text-2); margin: var(--s-md) 0 0; }
.band-black .lead { color: var(--canvas); }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }
.column { max-width: var(--column); }
.band { padding-block: var(--s-2xl); }
.band-black { background: var(--ink); color: var(--canvas); }
.band-soft { background: var(--page-soft); }
.section-head { margin-block-end: var(--s-xl); }
.band-black .display-lg, .band-black .display-xl { color: var(--ink-tertiary); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 8px 18px; border-radius: var(--r-pill); border: 0; cursor: pointer;
  font-size: 16px; line-height: 24px; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn-primary { background: var(--primary); color: var(--ink); }
.btn-primary:hover { box-shadow: var(--hover-shadow); transform: translateY(-1px); }
.btn-lg { height: 48px; padding-inline: 24px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 400; text-decoration: none;
  border-block-end: 1px solid currentColor; padding-block-end: 2px; width: fit-content;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(3px); }
[dir="rtl"] .link-arrow svg { transform: scaleX(-1); }
[dir="rtl"] .link-arrow:hover svg { transform: scaleX(-1) translateX(3px); }

/* ---------- event bar + nav ---------- */
.event-bar { background: var(--primary); color: var(--ink); font-size: 14px; line-height: 21px; text-align: center; padding: 8px var(--gutter); font-weight: 400; }
.event-bar a { font-weight: 500; }
.nav { position: sticky; top: 0; z-index: 50; background: var(--ink); color: var(--canvas); border-block-end: 1px solid #1a1a1a; }
.nav-inner { display: flex; align-items: center; gap: 12px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--canvas); }
.brand svg { width: 28px; height: 28px; color: var(--primary); }
.brand-word { font-family: var(--font-display); font-size: 26px; font-weight: 300; letter-spacing: -0.02em; }
[lang="ar"] .brand-word { letter-spacing: 0; font-size: 28px; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.nav-link { color: var(--canvas); text-decoration: none; font-size: 16px; line-height: 24px; font-weight: 300; padding: 8px 14px; border-radius: var(--r-md); }
.nav-link:hover { background: #1c1c1c; }
.nav-links .btn { margin-inline-start: 6px; }
/* the language: a globe and the language's own name — Arabic is spoken in all eight countries, so never one flag */
.nav-lang {
  display: inline-flex; align-items: center; gap: 7px; color: var(--canvas); text-decoration: none; padding: 7px 12px;
  border-radius: var(--r-pill); border: 1px solid var(--border-inverse); font-size: 15px; line-height: 20px; margin-inline-start: 6px;
}
.nav-lang svg { width: 16px; height: 16px; color: var(--ink-tertiary); }
.nav-lang:hover { border-color: var(--ink-tertiary); }
.nav-lang [lang="ar"] { font-family: "Thmanyah Sans", sans-serif; font-weight: 400; }
/* the theme: a moon in light mode, a sun in dark mode */
.nav-theme {
  display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none; cursor: pointer;
  border-radius: 50%; border: 1px solid var(--border-inverse); background: transparent; color: var(--canvas);
}
.nav-theme:hover { border-color: var(--ink-tertiary); }
.nav-theme svg { width: 17px; height: 17px; grid-area: 1 / 1; transition: transform .35s ease, opacity .25s ease; }
.nav-theme .i-sun { opacity: 0; transform: rotate(-90deg) scale(.6); }
:root[data-theme="dark"] .nav-theme .i-moon { opacity: 0; transform: rotate(90deg) scale(.6); }
:root[data-theme="dark"] .nav-theme .i-sun { opacity: 1; transform: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .nav-theme .i-moon { opacity: 0; transform: rotate(90deg) scale(.6); }
  :root:not([data-theme="light"]) .nav-theme .i-sun { opacity: 1; transform: none; }
}
.nav-menu { display: none; margin-inline-start: auto; background: none; border: 1px solid var(--border-inverse); border-radius: var(--r-md); width: 40px; height: 40px; cursor: pointer; color: var(--canvas); }
.nav-menu svg { width: 20px; height: 20px; margin: auto; }
@media (max-width: 1080px) {
  .nav-links { display: none; position: absolute; inset-inline: 0; top: 64px; background: var(--ink); flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 20px; border-block-end: 1px solid #1c1c1c; }
  .nav.open .nav-links { display: flex; }
  .nav-menu { display: inline-grid; place-items: center; }
  .nav-links .btn, .nav-lang { margin-inline-start: 0; margin-block-start: 8px; width: fit-content; }
  .nav-link { padding-block: 12px; }
}

/* ---------- hero ---------- */
.hero { padding-block: clamp(72px, 10vw, var(--s-3xl)) 0; overflow: hidden; }
.hero h1 { color: var(--ink-tertiary); }
.hero h1 span { display: block; }
.hero .lead { font-size: 18px; line-height: 27px; max-width: 38rem; }
[lang="ar"] .hero .lead { line-height: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-md); margin-block-start: var(--s-lg); }
.hero-cta .link-arrow { color: var(--canvas); }
.hero-stage { position: relative; margin-block-start: clamp(56px, 8vw, 96px); }
.hero-stage .frame { box-shadow: 0 40px 80px rgba(0, 0, 0, .55); }
.hero-stage .sticky { position: absolute; z-index: 2; max-width: 15rem; box-shadow: var(--card-shadow); }
/* Placed in the dashboard's empty space, under the cards they speak about. */
.hero-stage .sticky.s1 { inset-inline-start: 76%; top: 56%; transform: rotate(2deg); }
.hero-stage .sticky.s2 { inset-inline-end: 14%; top: -38px; transform: rotate(-2deg); }
.hero-stage .sticky.s3 { inset-inline-start: 53%; top: 57%; transform: rotate(-2.5deg); }
@media (max-width: 1100px) { .hero-stage .sticky { display: none; } }

/* browser frame around a real screenshot */
.frame { background: var(--card); border-radius: var(--r-xl); padding: 10px; border: 1px solid var(--line); }
.band-black .frame { border-color: #1f1f1f; background: #111; }
.frame-bar { display: flex; align-items: center; gap: 6px; padding: 4px 8px 10px; }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.band-black .frame-bar i { background: #333; }
.frame-bar span { margin-inline-start: 10px; font-size: 13px; color: var(--ink-tertiary); }
.frame img { border-radius: var(--r-md); width: 100%; background: var(--shot-bg); }

/* sticky notes — decoration on product moments; paper colours, always dark ink */
.sticky { border-radius: var(--r-sm); padding: 10px 12px; font-size: 14px; line-height: 20px; color: var(--ink); font-weight: 400; }
.sticky b { display: block; font-weight: 600; margin-block-end: 2px; }
.sticky.mint { background: var(--sticky-mint); }
.sticky.blush { background: var(--sticky-blush); }
.sticky.lemon { background: var(--sticky-lemon); }
.sticky.lavender { background: var(--sticky-lavender); }
.sticky.sky { background: var(--sticky-sky); }

/* authorities wall */
.wall { border-block-start: 1px solid #1f1f1f; margin-block-start: var(--s-2xl); padding-block: var(--s-xl) var(--s-2xl); }
.wall-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-lg) var(--s-md); }
@media (min-width: 640px) { .wall-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .wall-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
.wall-item { display: grid; gap: 4px; }
.wall-item strong { font-family: var(--font-display); font-weight: 300; font-size: 30px; line-height: 1.1; color: var(--canvas); letter-spacing: -0.01em; }
.wall-item span { font-size: 14px; line-height: 20px; color: var(--ink-tertiary); }

/* ---------- Why Masar: the problem, then seven reasons with their proof ---------- */
.why-problem { display: grid; gap: var(--s-md); grid-template-columns: minmax(0, 1fr); margin-block-end: var(--s-2xl); }
@media (min-width: 1000px) { .why-problem { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.today { border: 1px dashed var(--line-hover); border-radius: var(--r-xl); padding: var(--s-lg); display: grid; gap: var(--s-md); align-content: start; }
.notes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); gap: 16px 14px; }
.notes .sticky { box-shadow: var(--card-shadow); font-size: 15px; line-height: 21px; position: relative; min-height: 4.4rem; display: flex; align-items: center; }
.notes li:nth-child(3n + 1) { transform: rotate(-2deg); }
.notes li:nth-child(3n + 2) { transform: rotate(1.5deg) translateY(4px); }
.notes li:nth-child(3n) { transform: rotate(-0.8deg); }
/* crossed out like a note that's been dealt with: a strikethrough that follows each line of the words */
.notes .sticky { text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, .38); text-decoration-thickness: 1.5px; }
.answer { background: var(--ink); color: var(--canvas); border-radius: var(--r-xl); padding: var(--s-lg); display: grid; gap: var(--s-md); align-content: space-between; }
.answer .mini-label { color: var(--ink-tertiary); }
.answer .display-sm { color: var(--canvas); margin: 0; }
.reasons { display: grid; gap: var(--s-xl); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1100px) { .reasons { grid-template-columns: 15rem minmax(0, 1fr); gap: var(--s-2xl); } }
.reason-index { display: grid; gap: 12px; }
@media (min-width: 1100px) { .reason-index { position: sticky; top: 96px; } }
.reason-index ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
@media (max-width: 1099px) {
  .reason-index ul { display: flex; gap: 8px; overflow-x: auto; padding-block-end: 6px; scrollbar-width: thin; }
  .reason-index li { flex: none; }
}
.reason-index a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--r-md); text-decoration: none;
  color: var(--text-muted); font-size: 15px; line-height: 21px; font-weight: 400; border: 1px solid transparent;
  transition: background-color .2s ease, color .2s ease;
}
@media (max-width: 1099px) { .reason-index a { border-color: var(--line); white-space: nowrap; } }
.reason-index a svg { width: 17px; height: 17px; flex: none; }
.reason-index a:hover { color: var(--text); background: var(--well); }
.reason-index a[aria-current="true"] { background: var(--text); color: var(--page); border-color: var(--text); }
.reason-list { display: grid; gap: 0; }
.reason { display: grid; gap: var(--s-base); padding-block: var(--s-xl); border-block-start: 1px solid var(--line); scroll-margin-top: 88px; }
.reason:first-child { padding-block-start: 0; border-block-start: 0; }
.reason-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.reason-eyebrow svg { width: 16px; height: 16px; }
.reason h3 { max-width: 30ch; }
.reason-story { margin: 0; color: var(--text-2); max-width: 46rem; font-size: 17px; line-height: 29px; }
[lang="ar"] .reason-story { line-height: 31px; }
.features { list-style: none; margin: var(--s-sm) 0 0; padding: 0; display: grid; gap: 10px var(--s-lg); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.features li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 15px; line-height: 22px; color: var(--text); }
.features .tick { width: 22px; height: 22px; margin-block-start: 0; }
.features .tick svg { width: 13px; height: 13px; }
/* Features beside their proof on wide screens; stacked below 1280px. */
.reason-body { display: grid; gap: var(--s-lg); grid-template-columns: minmax(0, 1fr); margin-block-start: var(--s-sm); align-items: start; }
@media (min-width: 1280px) {
  .reason-body:not(.solo) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .reason-body:not(.solo) .features { grid-template-columns: minmax(0, 1fr); }
}
.reason-features { display: grid; gap: var(--s-md); align-content: start; }
.reason-features .features { margin: 0; }
.reason-proof { display: grid; gap: var(--s-md); }
.proof { margin: 0; display: grid; gap: 10px; }
.proof figcaption { font-size: 14px; line-height: 21px; color: var(--text-muted); }
.frame-shot {
  display: block; width: 100%; padding: 8px; cursor: zoom-in; text-align: start; border-radius: var(--r-xl);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--card-shadow); transition: border-color .2s ease;
}
.frame-shot:hover { border-color: var(--line-hover); }
.frame-shot img { border-radius: var(--r-md); width: 100%; background: var(--shot-bg); }
.tick { width: 28px; height: 28px; border-radius: var(--r-sm); background: var(--surface-brand); color: var(--ink); display: grid; place-items: center; flex: none; }
.tick svg { width: 16px; height: 16px; }
/* Masar's own schedule (the automation proof) */
.schedule { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--s-md); box-shadow: var(--card-shadow); }
.schedule-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; padding-block-end: 12px; border-block-end: 1px solid var(--line); }
.schedule-head b { font-weight: 500; }
.schedule-head span { font-size: 13px; color: var(--text-muted); }
.schedule ul { list-style: none; margin: 0; padding: 0; }
.schedule li { display: grid; grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr); gap: 16px; padding-block: 12px; border-block-end: 1px solid var(--line); }
.schedule li:last-child { border-block-end: 0; padding-block-end: 0; }
.schedule .when { font-size: 13px; line-height: 20px; color: var(--text-muted); white-space: nowrap; }
.schedule .when::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); margin-inline-end: 8px; vertical-align: 1px; }
.schedule .what b { display: block; font-weight: 500; font-size: 15px; line-height: 21px; }
.schedule .what small { display: block; color: var(--text-2); font-size: 14px; line-height: 21px; margin-block-start: 2px; }
@media (max-width: 560px) { .schedule li { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
/* enterprise tiles */
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--s-md); display: grid; gap: 8px; align-content: start; }
.tile .icon { width: 34px; height: 34px; border-radius: var(--r-md); background: var(--well); display: grid; place-items: center; }
.tile .icon svg { width: 17px; height: 17px; }
.tile b { font-weight: 500; font-size: 16px; line-height: 22px; }
.tile p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 21px; }

/* ---------- worked calculations ---------- */
.trace-block { display: grid; gap: 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-block-end: var(--s-md); }
.tab {
  border: 1px solid var(--line); background: var(--card); border-radius: var(--r-md);
  padding: 7px 14px; cursor: pointer; font-size: 15px; line-height: 22px; font-weight: 400; color: var(--text-2);
}
.tab:hover { border-color: var(--line-hover); }
.tab[aria-selected="true"] { background: var(--text); color: var(--page); border-color: var(--text); }
.card-light { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--s-lg); box-shadow: var(--card-shadow); }
.card-soft { background: var(--page-soft); border-radius: var(--r-xl); padding: var(--s-lg); }
.trace-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-block-end: var(--s-md); }
.trace-head .chip { font-size: 13px; line-height: 18px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 3px 8px; color: var(--text-muted); }
.trace-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.trace-steps li {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: baseline;
  padding-block: 12px; border-block-end: 1px solid var(--line); counter-increment: step;
}
.trace-steps li::before {
  content: counter(step); width: 24px; height: 24px; border-radius: var(--r-sm); background: var(--well);
  font-size: 13px; line-height: 24px; text-align: center; font-weight: 500; color: var(--text-2);
}
/* Complete at rest; a replay (first view, a new tab) writes the working out step by step. */
@keyframes step-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.trace.play .trace-steps li, .trace.play .trace-result { animation: step-in .45s ease both; }
.trace-steps li span { color: var(--text-2); }
.trace-steps li small { display: block; color: var(--text-muted); font-size: 14px; line-height: 21px; margin-block-start: 2px; }
.trace-steps li b { font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.trace-result { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; padding-block-start: var(--s-md); }
.trace-result .big { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.25rem, 1.6rem + 2vw, 3.375rem); line-height: 1.1; letter-spacing: -0.02em; direction: ltr; unicode-bidi: isolate; }
.trace-result .big small { font-family: var(--font-sans); font-size: 18px; letter-spacing: 0; color: var(--text-muted); margin-inline-start: 6px; }
.trace-note { margin: var(--s-base) 0 0; color: var(--text-muted); }
.trace-panel[hidden] { display: none; }

/* ---------- by the numbers: each figure with its proof ---------- */
.stats-head { display: grid; gap: var(--s-md) var(--s-xl); grid-template-columns: minmax(0, 1fr); align-items: end; margin-block-end: var(--s-xl); }
@media (min-width: 1024px) { .stats-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.stats-head .lead { margin: 0; }
.stats { display: grid; gap: var(--s-md); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 680px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Each card spans three rows of a shared subgrid: the figure, its sentence and its proof line up across a row. */
.stat { background: var(--card); border-radius: var(--r-xl); padding: var(--s-lg); display: grid; grid-row: span 3; grid-template-rows: subgrid; gap: var(--s-base); box-shadow: var(--card-shadow); }
.stat-figure { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.stat .n { font-family: "Newsreader", var(--font-display); font-weight: 300; font-size: clamp(3.75rem, 3rem + 2.6vw, 5.5rem); line-height: .92; letter-spacing: -0.045em; }
.stat .unit { font-size: 18px; line-height: 24px; font-weight: 500; }
.stat > p { margin: 0; color: var(--text-2); max-width: 36ch; }
.stat-proof { padding-block-start: var(--s-base); border-block-start: 1px solid var(--line); display: grid; align-content: start; gap: 12px; }
.stat-proof .chips { margin: 0; }
.chips.codes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.codes abbr { text-decoration: none; font-weight: 500; letter-spacing: 1px; text-align: center; padding-block: 6px; cursor: help; }
.skills .chip-sm { display: inline-flex; align-items: center; gap: 5px; }
.skills .chip-sm svg { width: 12px; height: 12px; flex: none; }
.bilingual { display: grid; gap: 6px; }
.bilingual [lang="en"] { font-family: "Newsreader", serif; font-weight: 300; font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; text-align: left; }
.bilingual [lang="ar"] { font-family: "Thmanyah Serif Display", serif; font-weight: 300; font-size: 30px; line-height: 1.35; text-align: right; }
.dots { display: flex; flex-wrap: wrap; gap: 6px; }
.dot { display: inline-block; width: 18px; height: 18px; border-radius: var(--r-sm); background: var(--text); flex: none; }
.dot.addon { background: var(--sticky-mint); }
.dot.layer { background: var(--sticky-lavender); }
.dot.workspace { background: transparent; box-shadow: inset 0 0 0 1.5px var(--text); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; line-height: 18px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .dot { width: 12px; height: 12px; border-radius: 4px; }
.legend b { font-weight: 600; color: var(--text); }
.mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mini div { display: grid; gap: 2px; }
.mini b { font-family: "Newsreader", serif; font-weight: 300; font-size: 30px; line-height: 1.1; letter-spacing: -0.02em; }
.mini span { font-size: 13px; line-height: 18px; color: var(--text-muted); }

/* ---------- platform: journey + product cards ---------- */
.journey { overflow-x: auto; margin-block-end: var(--s-xl); padding-block: 4px 12px; scrollbar-width: thin; }
.journey ol { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0; min-width: max-content; }
.journey li { display: flex; align-items: center; }
.journey .sticky { white-space: nowrap; box-shadow: 0 4px 4px rgba(0, 0, 0, .08); }
.journey li:nth-child(odd) .sticky { transform: rotate(-1.5deg); }
.journey li:nth-child(even) .sticky { transform: rotate(1.5deg); }
.journey .join { width: 40px; height: 1px; background: var(--text); position: relative; margin-inline: 6px; }
.journey .join::after { content: ""; position: absolute; inset-inline-end: -1px; top: -3px; border: 3.5px solid transparent; border-inline-start: 6px solid var(--text); }
.products { display: grid; gap: var(--s-md); grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.product {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--s-md);
  display: flex; flex-direction: column; gap: var(--s-base); box-shadow: var(--card-shadow);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.product:hover { border-color: var(--line-hover); box-shadow: var(--card-shadow), var(--hover-shadow); }
.product .thumb {
  position: relative; display: block; width: 100%; padding: 0; cursor: zoom-in; text-align: start;
  border-radius: var(--r-md); overflow: hidden; background: var(--shot-bg); border: 1px solid var(--line);
}
.product .thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform .5s ease; }
.product .thumb:hover img { transform: scale(1.02); }
.product .thumb .sticky { position: absolute; inset-inline-end: 10px; bottom: 10px; transform: rotate(-2deg); box-shadow: 0 4px 4px rgba(0, 0, 0, .12); max-width: 62%; font-size: 13px; line-height: 18px; padding: 7px 10px; }
.product h3 { margin: 0; }
.product p { margin: 0; color: var(--text-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-block-start: auto; }
.chip-sm { font-size: 13px; line-height: 18px; padding: 3px 8px; border-radius: var(--r-sm); border: 1px solid var(--line); color: var(--text-2); font-weight: 400; }

/* ---------- countries (a black band in both themes) ---------- */
.countries { display: grid; gap: var(--s-xl); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .countries { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; } }
.country-pills { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 1024px) { .country-pills { flex-direction: column; align-items: stretch; } }
.country-pill {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: start;
  background: transparent; border: 1px solid var(--border-inverse); color: var(--canvas); border-radius: var(--r-md);
  padding: 10px 14px; cursor: pointer; font-size: 16px; line-height: 24px; font-weight: 300;
}
.country-pill code { font-family: var(--font-sans); font-size: 12px; color: var(--ink-tertiary); letter-spacing: 1px; }
.country-pill:hover { border-color: var(--ink-tertiary); }
.country-pill[aria-selected="true"] { background: var(--canvas); color: var(--ink); border-color: var(--canvas); }
.country-pill[aria-selected="true"] code { color: #626262; }
.country-card { border: 1px solid var(--border-inverse); border-radius: var(--r-xl); padding: var(--s-lg); background: #050505; }
.country-card[hidden] { display: none; }
.country-card header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; padding-block-end: var(--s-md); border-block-end: 1px solid #222; }
.country-card header .display-sm { color: var(--canvas); }
.country-card header span { color: var(--ink-tertiary); font-size: 14px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 0 var(--s-lg); margin: 0; }
.fact { padding-block: 14px; border-block-end: 1px solid #1d1d1d; }
.fact dt { font-size: 13px; line-height: 18px; color: var(--ink-tertiary); text-transform: uppercase; letter-spacing: 1.2px; margin-block-end: 4px; }
[lang="ar"] .fact dt { text-transform: none; letter-spacing: 0; font-size: 14px; }
.fact dd { margin: 0; color: var(--canvas); font-size: 16px; line-height: 24px; }
.country-card footer { margin-block-start: var(--s-md); color: var(--ink-tertiary); font-size: 14px; line-height: 21px; }

/* ---------- Masar AI ---------- */
.ai-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--surface-brand); color: var(--ink); border-radius: var(--r-sm); padding: 4px 10px; font-size: 14px; line-height: 20px; font-weight: 500; margin-block-end: var(--s-md); }
.ai-badge svg { width: 14px; height: 14px; }
.ai-grid { display: grid; gap: var(--s-xl); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1100px) { .ai-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); } }
.ai-cards { display: grid; gap: var(--s-base); }
.ai-card h3 { margin: 0 0 6px; }
.ai-card p { margin: 0; color: var(--text-2); }
.ai-rules { list-style: none; margin: var(--s-lg) 0 0; padding: 0; display: grid; gap: 12px; }
.ai-rules li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; color: var(--text-2); }
.ai-shot { position: relative; }
@media (min-width: 1100px) { .ai-shot { position: sticky; top: 96px; } }
.ai-shot .sticky { position: absolute; inset-inline-start: -14px; bottom: -26px; transform: rotate(-2.5deg); max-width: 16rem; box-shadow: var(--card-shadow); }
@media (max-width: 720px) { .ai-shot .sticky { position: static; transform: none; margin-block-start: 12px; max-width: none; } }

/* ---------- two languages: compare slider ---------- */
.compare { position: relative; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--card-shadow); background: var(--shot-bg); touch-action: pan-y; user-select: none; }
.compare img { width: 100%; aspect-ratio: 2880 / 1880; object-fit: cover; }
.compare .top { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: var(--ink); transform: translateX(-1px); pointer-events: none; }
.compare .handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; border-radius: 50%;
  transform: translate(-50%, -50%); background: var(--ink); box-shadow: 0 0 0 4px rgba(255, 255, 255, .9);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 7-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E");
  background-size: 22px; background-position: center; background-repeat: no-repeat;
}
.compare input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare .tag { position: absolute; top: 14px; font-size: 13px; line-height: 18px; padding: 4px 10px; border-radius: var(--r-sm); background: var(--ink); color: var(--canvas); pointer-events: none; }
.compare .tag.left { left: 14px; }
.compare .tag.right { right: 14px; }
.lang-points { display: grid; gap: var(--s-md); grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); margin-block-start: var(--s-xl); }
.lang-points div { border-block-start: 1px solid var(--text); padding-block-start: var(--s-base); }
.lang-points strong { display: block; font-weight: 500; margin-block-end: 4px; }
.lang-points p { margin: 0; color: var(--text-2); }

/* ---------- packages ---------- */
.pack-groups { display: grid; gap: var(--s-md); grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.pack { background: var(--card); border-radius: var(--r-xl); padding: var(--s-lg); display: grid; gap: var(--s-base); align-content: start; }
.pack h3 { margin: 0; font-size: 18px; line-height: 26px; font-weight: 500; }
.pack p { margin: 0; color: var(--text-muted); font-size: 15px; line-height: 23px; }
.pack .chips { margin-block-start: 0; }
.pack .chip-sm.pro { background: var(--surface-brand); border-color: transparent; color: var(--ink); }

/* ---------- closing CTA ---------- */
.cta-grid { display: grid; gap: var(--s-xl); grid-template-columns: minmax(0, 1fr); align-items: end; }
@media (min-width: 1024px) { .cta-grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); } }
.demo-form { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: var(--s-lg); max-width: 36rem; }
.demo-form input {
  flex: 1 1 16rem; height: 48px; background: var(--ink); color: var(--canvas); border: 1px solid var(--border-inverse);
  border-radius: var(--r-md); padding: 8px 16px; font: inherit; font-size: 16px; color-scheme: dark;
}
.demo-form input::placeholder { color: var(--ink-tertiary); }
.demo-form input:focus { outline: none; border-color: var(--primary); }
.form-note { margin: 12px 0 0; color: var(--ink-tertiary); font-size: 14px; line-height: 21px; }
.form-note a { color: var(--canvas); }
.qr { display: grid; gap: 12px; justify-items: start; }
.qr-tile { background: var(--canvas); border-radius: var(--r-md); padding: 12px; width: 180px; }
.qr-tile svg { width: 100%; height: auto; display: block; }
.qr p { margin: 0; color: var(--ink-tertiary); font-size: 14px; line-height: 21px; max-width: 16rem; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--ink-tertiary); padding-block: var(--s-xl); border-block-start: 1px solid #1a1a1a; font-size: 14px; line-height: 21px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-md); }
.footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer a { color: var(--canvas); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ---------- lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1600px); width: 100%; }
.lightbox::backdrop { background: rgba(0, 0, 0, .86); }
.lightbox figure { margin: 0; background: var(--card); border-radius: var(--r-xl); padding: 12px; }
.lightbox img { border-radius: var(--r-md); width: 100%; max-height: 80vh; object-fit: contain; }
.lightbox figcaption { padding: 12px 8px 4px; color: var(--text-2); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.lightbox button { background: var(--text); color: var(--page); border: 0; border-radius: var(--r-pill); height: 36px; padding: 0 16px; cursor: pointer; flex: none; }

/* ---------- motion ---------- */
.reveal { transition: transform .7s ease; }
.js .reveal:not(.in) { transform: translateY(14px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body { transition: none; }
  .reveal, .trace-steps li, .trace-result { transform: none !important; transition: none !important; animation: none !important; }
  .product, .btn, .nav-theme svg { transition: none; }
}
@media print { .nav, .event-bar, .demo-form, .lightbox { display: none !important; } .reveal { transform: none; } }
