/* Muwazin website and customer portal — one stylesheet, no build step.
   Design v2 (same system as the on-prem app and the decks): Apple-style discipline — white and #F5F5F7 bands,
   large SemiBold headlines, two-tone statements, borderless cards, pill buttons, black bands for the strongest
   statements. One accent, the brand's Saudi green; gold only for emphasis.
   Type: IBM Plex Sans Arabic (Arabic + Latin), served from /static/fonts (SIL OFL) — no third-party font requests. */

@font-face { font-family: "Muwazin Plex"; src: url("../fonts/IBMPlexSansArabic-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Muwazin Plex"; src: url("../fonts/IBMPlexSansArabic-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Muwazin Plex"; src: url("../fonts/IBMPlexSansArabic-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Muwazin Plex"; src: url("../fonts/IBMPlexSansArabic-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Muwazin Plex"; src: url("../fonts/IBMPlexSansArabic-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #FFFFFF; --alt: #F5F5F7; --surface: #FFFFFF; --surface-2: #F5F5F7; --surface-3: #E8E8ED;
  --ink: #1D1D1F; --muted: #6E6E73; --faint: #86868B; --line: #E5E5EA; --line-strong: #D2D2D7;
  --primary: #0B7A5E; --primary-strong: #075C47; --on-primary: #FFFFFF; --link: #0A6F56;
  --gold: #C29A3A; --gold-text: #7E5F17; --danger: #D2452F; --danger-text: #B1321F; --success: #1F8A5B; --success-text: #17704A;
  --slate: #2F6DB5; --clay: #B4673C;
  --tint-emerald: #E6F2EE; --tint-gold: #F7EFD9; --tint-danger: #FCEAE7; --tint-slate: #E8F0FA;
  --c-prod: #0B7A5E; --c-wh: #B4673C; --c-fin: #B08A2E; --c-sales: #2F6DB5;
  --deep: #000000; --deep-2: #1C1C1E; --deep-3: #2C2C2E; --deep-ink: #F5F5F7; --deep-muted: #A1A1A6; --deep-line: #2C2C2E;
  --bar: rgba(255, 255, 255, .72); --bar-line: rgba(0, 0, 0, .08);
  --shadow: 0 0 0 .5px rgba(0, 0, 0, .04), 0 2px 6px rgba(0, 0, 0, .04), 0 18px 40px -24px rgba(0, 0, 0, .18);
  --shadow-lift: 0 0 0 .5px rgba(0, 0, 0, .05), 0 30px 60px -30px rgba(0, 0, 0, .35);
  --radius: 22px; --radius-sm: 14px;
  --font: "Muwazin Plex", "IBM Plex Sans Arabic", -apple-system, BlinkMacSystemFont, "SF Arabic", "Geeza Pro", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #000000; --alt: #0E0E10; --surface: #1C1C1E; --surface-2: #2C2C2E; --surface-3: #3A3A3C;
  --ink: #F5F5F7; --muted: #A1A1A6; --faint: #8E8E93; --line: #2C2C2E; --line-strong: #3A3A3C;
  --primary: #1E9C7C; --primary-strong: #2BB592; --link: #5FD4B4;
  --gold: #D9B45A; --gold-text: #E6C677; --danger: #FF6A4D; --danger-text: #FF8F78; --success: #30C48D; --success-text: #63D9A9;
  --slate: #6FA8E8; --clay: #E09A6E;
  --tint-emerald: #12302A; --tint-gold: #352C17; --tint-danger: #3D1E19; --tint-slate: #182A3E;
  --c-prod: #4FD1AE; --c-wh: #E09A6E; --c-fin: #E6C677; --c-sales: #6FA8E8;
  --deep: #0E0E10; --deep-2: #1C1C1E;
  --bar: rgba(22, 22, 24, .72); --bar-line: rgba(255, 255, 255, .08);
  --shadow: 0 0 0 .5px rgba(255, 255, 255, .07), 0 18px 40px -24px rgba(0, 0, 0, .9);
  --shadow-lift: 0 0 0 .5px rgba(255, 255, 255, .08), 0 30px 60px -30px rgba(0, 0, 0, .9);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --alt: #0E0E10; --surface: #1C1C1E; --surface-2: #2C2C2E; --surface-3: #3A3A3C;
    --ink: #F5F5F7; --muted: #A1A1A6; --faint: #8E8E93; --line: #2C2C2E; --line-strong: #3A3A3C;
    --primary: #1E9C7C; --primary-strong: #2BB592; --link: #5FD4B4;
    --gold: #D9B45A; --gold-text: #E6C677; --danger: #FF6A4D; --danger-text: #FF8F78; --success: #30C48D; --success-text: #63D9A9;
    --slate: #6FA8E8; --clay: #E09A6E;
    --tint-emerald: #12302A; --tint-gold: #352C17; --tint-danger: #3D1E19; --tint-slate: #182A3E;
    --c-prod: #4FD1AE; --c-wh: #E09A6E; --c-fin: #E6C677; --c-sales: #6FA8E8;
    --deep: #0E0E10; --deep-2: #1C1C1E;
    --bar: rgba(22, 22, 24, .72); --bar-line: rgba(255, 255, 255, .08);
    --shadow: 0 0 0 .5px rgba(255, 255, 255, .07), 0 18px 40px -24px rgba(0, 0, 0, .9);
    --shadow-lift: 0 0 0 .5px rgba(255, 255, 255, .08), 0 30px 60px -30px rgba(0, 0, 0, .9);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 1.0625rem; line-height: 1.75;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
html[lang="en"] body { line-height: 1.6; }
img, svg, video { max-width: 100%; display: block; }
a { color: var(--link); text-underline-offset: .2em; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; font-weight: 600; letter-spacing: 0; }
html[lang="en"] h1, html[lang="en"] h2 { letter-spacing: -.022em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid color-mix(in srgb, var(--primary) 75%, transparent); outline-offset: 3px; border-radius: 8px; }
.num, .price, td.n, .ltr { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; }
.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 48px); margin-inline: auto; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bar); border-bottom: 1px solid var(--bar-line);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.site-header .wrap { display: flex; align-items: center; gap: 18px; min-height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.2rem; }
.brand svg { width: 28px; height: 28px; flex: none; }
.brand .mark-beam, .mark-beam { fill: var(--gold); } .brand .mark-body, .mark-body { fill: var(--primary); }
.site-nav { display: flex; gap: 2px; margin-inline-start: auto; flex-wrap: wrap; }
.site-nav a { color: var(--ink); opacity: .82; text-decoration: none; padding: 6px 11px; border-radius: 8px; font-size: .9rem; }
.site-nav a:hover { opacity: 1; }
.header-tools { display: flex; align-items: center; gap: 6px; }
.site-header.no-nav .header-tools { margin-inline-start: auto; }
.icon-btn, .nav-toggle { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 0;
  background: transparent; color: var(--ink); cursor: pointer; font: inherit; text-decoration: none; font-size: .84rem; font-weight: 600; }
.icon-btn:hover, .nav-toggle:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.icon-btn svg { width: 17px; height: 17px; }
.theme-moon { display: none; }
:root[data-theme="dark"] .theme-sun { display: none; } :root[data-theme="dark"] .theme-moon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-sun { display: none; } :root:not([data-theme="light"]) .theme-moon { display: block; } }
.nav-toggle { display: none; }
.inline-form { display: inline; margin: 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 24px;
  border-radius: 999px; border: 0; font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, transform .15s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--primary); color: var(--on-primary); } .btn-primary:hover { background: var(--primary-strong); }
.btn-ghost { background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink); }
.btn-ghost:hover { background: color-mix(in srgb, var(--ink) 12%, transparent); }
.btn-gold { background: var(--gold); color: #1D1606; } .btn-gold:hover { filter: brightness(1.06); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-small { min-height: 32px; padding: 4px 14px; font-size: .86rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-link { display: inline-flex; align-items: center; gap: 4px; color: var(--link); text-decoration: none; font-weight: 500; }
.btn-link:hover { text-decoration: underline; }
.btn-link::after { content: "›"; font-size: 1.25em; line-height: 1; transform: translateY(-1px); }
html[dir="rtl"] .btn-link::after { content: "‹"; }

/* ---------- section rhythm ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section.alt { background: var(--alt); }
.section.deep { background: var(--deep); color: var(--deep-ink); }
.section.deep .muted, .section.deep .section-head p { color: var(--deep-muted); }
.eyebrow { display: inline-block; font-size: .95rem; font-weight: 600; color: var(--primary); margin-bottom: 10px; }
.deep .eyebrow { color: var(--gold); }
.section-head { max-width: 46rem; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.15; margin-bottom: 16px; }
.section-head p { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--muted); margin: 0; line-height: 1.65; }
.statement, .section-head p.statement { font-size: clamp(1.7rem, 3.8vw, 2.9rem); font-weight: 600; line-height: 1.3; margin: 0; max-width: 30ch; color: var(--ink); }
.deep .statement, .deep .section-head p.statement { color: var(--deep-ink); }
.statement .dim { color: var(--faint); }
.deep .statement .dim { color: #6E6E73; }
.caption { font-size: .88rem; color: var(--faint); margin-top: 18px; }
.deep .caption { color: #8E8E93; }

/* ---------- hero ---------- */
.hero { padding: clamp(56px, 9vw, 112px) 0 0; text-align: center; overflow: hidden; }
.hero h1 { font-size: clamp(2.6rem, 7.4vw, 5.6rem); line-height: 1.08; margin: 0 auto 22px; max-width: 13ch; font-weight: 600; }
html[lang="en"] .hero h1 { letter-spacing: -.035em; max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero .lede { font-size: clamp(1.12rem, 2vw, 1.45rem); color: var(--muted); max-width: 40rem; margin: 0 auto 30px; line-height: 1.6; }
.cta-row { display: flex; gap: 22px; align-items: center; justify-content: center; flex-wrap: wrap; }
.cta-row .btn { min-height: 50px; padding-inline: 28px; font-size: 1.02rem; }
.hero-contact { margin: 18px 0 0; color: var(--faint); font-size: .95rem; }
.hero-contact a, .lead-phone a { font-weight: 600; color: var(--link); text-decoration: none; }
.hero-media { position: relative; margin: clamp(44px, 6vw, 72px) auto 0; width: min(1180px, 100% - 48px); }
.hero-frame { border-radius: 28px; overflow: hidden; aspect-ratio: 16 / 8.2; background: #111; box-shadow: var(--shadow-lift); }
.hero-frame video, .hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-float { position: absolute; inset-inline-end: clamp(14px, 3vw, 36px); bottom: clamp(14px, 3vw, 36px); text-align: start;
  background: rgba(255, 255, 255, .78); color: #1D1D1F; border-radius: 18px; padding: 14px 18px; min-width: 240px;
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .35); }
.hero-float .k { font-size: .8rem; color: #6E6E73; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.hero-float .k::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #0B7A5E; }
.hero-float .v { font-size: 1.05rem; font-weight: 600; line-height: 1.45; margin-top: 2px; }
.hero-float small { display: block; color: #86868B; font-size: .74rem; margin-top: 4px; }
.facts { list-style: none; padding: 0; margin: clamp(40px, 6vw, 64px) auto 0; width: min(1180px, 100% - 48px); display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; text-align: center; padding-bottom: clamp(56px, 8vw, 96px); }
.facts li { padding: 4px 18px; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.facts li + li { border-inline-start: 1px solid var(--line); }
.facts strong { display: block; color: var(--ink); font-size: 1.35rem; font-weight: 600; margin-bottom: 4px; }

/* ---------- bento cards ---------- */
.bento { display: grid; gap: 18px; }
.b4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .b3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.b2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile { background: var(--surface); border-radius: var(--radius); padding: clamp(22px, 2.6vw, 32px); box-shadow: var(--shadow); min-width: 0; }
.alt .tile { box-shadow: none; }
.deep .tile { background: var(--deep-2); color: var(--deep-ink); box-shadow: none; }
.tile h3 { font-size: 1.3rem; margin: 14px 0 8px; }
.tile p { color: var(--muted); margin: 0; font-size: 1rem; line-height: 1.65; }
.deep .tile p { color: var(--deep-muted); }
.ic { display: block; flex: none; width: 34px; height: 34px; color: var(--primary); }
.ic svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.c-prod { color: var(--c-prod); } .c-wh { color: var(--c-wh); } .c-fin { color: var(--c-fin); } .c-sales { color: var(--c-sales); }
.deep .ic { color: var(--gold); }
.one-plan { margin-top: 18px; background: var(--deep); color: var(--deep-ink); border-radius: var(--radius); padding: clamp(26px, 3.6vw, 44px);
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(20px, 4vw, 48px); align-items: center; }
.one-plan h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 10px 0 0; }
.one-plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; color: var(--deep-muted); }
.one-plan li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; }
.one-plan li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); margin-top: .62em; }
.one-plan .mark { width: 54px; height: 54px; } .one-plan .mark .mark-body { fill: #F5F5F7; }

/* ---------- expert council ---------- */
.council-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.council-photo { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 4.2; }
.council-split .statement { margin-bottom: 22px; }
.caption.center { text-align: center; }
.gap-below { margin-bottom: 18px; }
.council-photo img { width: 100%; height: 100%; object-fit: cover; }
.seats { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 4px; }
.seats li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--deep-line); }
.seats li:last-child { border-bottom: 0; }
.seats .ic { width: 30px; height: 30px; margin-top: 3px; }
.seats b { display: block; font-weight: 600; font-size: 1.08rem; }
.seats span { color: var(--deep-muted); font-size: .97rem; }
.mediator { background: var(--deep-2); border-radius: 18px; padding: 18px 20px; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 45%, transparent); }
.mediator svg { width: 34px; height: 34px; } .mediator .mark-body { fill: #F5F5F7; }
.mediator b { color: var(--gold); font-weight: 600; display: block; }
.mediator span { color: var(--deep-ink); font-size: .97rem; }
.chat { display: grid; gap: 10px; max-width: 760px; margin: clamp(44px, 6vw, 72px) auto 0; }
.bubble { max-width: 78%; padding: 12px 18px; border-radius: 22px; font-size: 1rem; line-height: 1.6; }
.bubble b { display: block; font-size: .8rem; font-weight: 600; opacity: .75; margin-bottom: 2px; }
.bubble.b-sales { justify-self: start; background: var(--deep-3, #2C2C2E); color: var(--deep-ink); border-end-start-radius: 6px; }
.bubble.b-fin { justify-self: start; background: var(--deep-3, #2C2C2E); color: var(--deep-ink); border-end-start-radius: 6px; }
.bubble.b-med { justify-self: end; background: var(--primary); color: #fff; border-end-end-radius: 6px; }
.deep .caption.center { text-align: center; }
.rules { list-style: none; padding: 0; margin: clamp(44px, 6vw, 64px) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.rules li { background: var(--deep-2); border-radius: 18px; padding: 22px; color: var(--deep-muted); font-size: .97rem; }
.rules strong { display: block; color: var(--deep-ink); font-weight: 600; font-size: 1.08rem; margin-bottom: 6px; }

/* ---------- example ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.stat { background: var(--alt); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); }
.stat .v { display: block; font-size: clamp(2.6rem, 5.4vw, 4.2rem); font-weight: 600; line-height: 1.05; color: var(--ink); }
.stat .v.g { color: var(--primary); }
.stat .l { display: block; color: var(--muted); margin-top: 10px; font-size: 1rem; line-height: 1.5; }
.example-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 18px; align-items: stretch; }
.example-grid > * { background: var(--alt); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); min-width: 0; margin: 0; }
.bars-figure figcaption { font-weight: 600; margin-bottom: 18px; }
.bars { list-style: none; padding: 0; margin: 0; }
.bars li { display: grid; grid-template-columns: 6.5em minmax(0, 1fr) 3.6em; gap: 12px; align-items: center; margin-bottom: 14px; }
.bars svg { width: 100%; height: 26px; }
.bars .name { color: var(--muted); } .bars .v { font-weight: 600; }
.bars li.is-balanced .name, .bars li.is-balanced .v { color: var(--ink); }
.bar-track { fill: var(--surface-2); } .bar-fill { fill: #C7C7CC; } .is-balanced .bar-fill { fill: var(--primary); }
:root[data-theme="dark"] .bar-fill { fill: #48484A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bar-fill { fill: #48484A; } }
.table-scroll { overflow-x: auto; }
.plans-table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.plans-table th, .plans-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: start; white-space: nowrap; }
.plans-table thead th { color: var(--faint); font-weight: 500; font-size: .85rem; }
.plans-table tbody th { font-weight: 500; }
.plans-table .bad { color: var(--danger-text); font-weight: 600; }
.plans-table tr.is-balanced th, .plans-table tr.is-balanced td { font-weight: 600; color: var(--primary); }
.plans-table tbody tr:last-child th, .plans-table tbody tr:last-child td { border-bottom: 0; }
.example-read { margin: 18px 0 0; font-size: 1.02rem; color: var(--muted); }
.example-read b { color: var(--ink); font-weight: 600; } .example-read .hl { color: var(--primary); }

/* ---------- sectors ---------- */
.rail-wrap { position: relative; }
.sector-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 360px); gap: 18px; overflow-x: auto;
  scroll-snap-type: x mandatory; padding: 4px max(24px, calc((100vw - 1180px) / 2)) 22px; scroll-padding-inline: max(24px, calc((100vw - 1180px) / 2));
  scrollbar-width: none; }
.sector-rail::-webkit-scrollbar { display: none; }
.sector { scroll-snap-align: start; background: var(--surface); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow); }
.alt .sector { box-shadow: none; }
.sector img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.sector .body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.sector h3 { font-size: 1.45rem; margin: 0 0 4px; }
.sector .k { color: var(--muted); font-size: .97rem; margin: 0 0 14px; }
.sector ul { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; font-size: .95rem; }
.sector li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; }
.sector li::before { content: ""; width: 12px; height: 6px; border-left: 2px solid var(--primary); border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg); margin-top: .55em; }
.sector .q { margin-top: auto; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); font-size: .93rem; color: var(--ink); line-height: 1.55; }
.sector .q b { display: block; color: var(--gold-text); font-size: .78rem; font-weight: 600; margin-bottom: 2px; }
.rail-nav { display: flex; gap: 10px; justify-content: flex-end; width: min(1180px, 100% - 48px); margin: 0 auto; }
.rail-nav button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink);
  cursor: pointer; font-size: 1.3rem; line-height: 1; display: grid; place-items: center; }
.rail-nav button:hover { background: color-mix(in srgb, var(--ink) 14%, transparent); }
.fits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: clamp(36px, 5vw, 56px); }
.fit { background: var(--surface); border-radius: 16px; padding: 16px 18px; display: grid; gap: 4px; }
.alt .fit { background: var(--surface); }
.fit b { font-weight: 600; } .fit span { color: var(--muted); font-size: .92rem; line-height: 1.5; }
.fit .tag { justify-self: start; font-size: .76rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; margin-bottom: 4px; }
.fit .t-high { background: var(--tint-emerald); color: var(--success-text); }
.fit .t-study { background: var(--tint-gold); color: var(--gold-text); }
.fit .t-low { background: var(--tint-danger); color: var(--danger-text); }

/* ---------- how it works ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--surface); border-radius: var(--radius); padding: clamp(24px, 3vw, 34px); }
.steps li::before { content: counter(s); display: block; font-size: 3.4rem; font-weight: 300; line-height: 1; color: var(--primary); margin-bottom: 18px; }
.steps h3 { font-size: 1.3rem; } .steps p { color: var(--muted); margin: 0; font-size: 1rem; }
.integration { margin-top: 18px; background: var(--surface); border-radius: var(--radius); padding: clamp(24px, 3.4vw, 40px); }
.integration.has-photo { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: clamp(22px, 3vw, 40px); align-items: center; }
.integration-photo { margin: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 4.4; }
.integration-photo img { width: 100%; height: 100%; object-fit: cover; }
.integration h3 { font-size: 1.5rem; margin: 0 0 4px; }
.integration > p { color: var(--muted); margin: 0; }
.erp-chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 16px 0 26px; }
.erp-chips li { background: var(--alt); color: var(--ink); padding: 8px 16px; border-radius: 999px; font-weight: 500; font-size: .95rem; }
.integration-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; padding: 0; margin: 0; }
.integration-points li { color: var(--muted); font-size: .98rem; }
.integration-points b { color: var(--ink); display: block; margin-bottom: 4px; font-weight: 600; }

/* ---------- features ---------- */
.feature-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.fgroup { background: var(--alt); border-radius: var(--radius); padding: clamp(24px, 3vw, 34px); }
.fgroup header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.fgroup h3 { font-size: 1.4rem; margin: 0; }
.fgroup .tag { font-size: .76rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--tint-emerald); color: var(--success-text); white-space: nowrap; }
.fgroup dl { margin: 0; display: grid; gap: 16px; }
.fgroup dt { font-weight: 600; } .fgroup dd { margin: 2px 0 0; color: var(--muted); font-size: .96rem; line-height: 1.6; }

/* ---------- trust ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.trust-card { background: var(--deep-2); border-radius: var(--radius); padding: clamp(26px, 3.4vw, 40px); }
.trust-card h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 16px 0 10px; }
.trust-card > p { color: var(--deep-muted); }
.trust-card ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.trust-card li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; color: var(--deep-ink); font-size: .98rem; }
.trust-card li svg { width: 18px; height: 18px; margin-top: .3em; fill: none; stroke: var(--gold); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Saudi ---------- */
.saudi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.point { background: var(--surface); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.alt .point { box-shadow: none; }
.point h3 { font-size: 1.15rem; margin: 14px 0 6px; } .point p { color: var(--muted); margin: 0; font-size: .97rem; }

/* ---------- pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan { background: var(--surface); border-radius: var(--radius); padding: 32px 28px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.alt .plan { box-shadow: none; }
.plan.focus { box-shadow: 0 0 0 2px var(--primary), var(--shadow-lift); }
.plan h3 { font-size: 1.4rem; margin-bottom: 2px; }
.plan .period { color: var(--muted); font-size: .92rem; }
.plan .price { font-size: clamp(2.2rem, 3.6vw, 2.9rem); font-weight: 600; line-height: 1.1; margin: 20px 0 2px; display: block; text-align: start; }
html[dir="rtl"] .plan .price { text-align: right; }
.plan .unit { font-size: .95rem; color: var(--muted); font-weight: 400; }
.vat-lines { margin: 12px 0 18px; padding: 12px 0; border-block: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.vat-lines div { display: flex; justify-content: space-between; gap: 12px; }
.vat-lines .tot { color: var(--ink); font-weight: 600; }
.plan .blurb { font-size: .97rem; color: var(--muted); }
.plan ul { margin: 0 0 24px; padding: 0; list-style: none; font-size: .95rem; flex: 1; }
.plan li { padding: 6px 0; padding-inline-start: 26px; position: relative; }
.plan li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .8em; width: 11px; height: 6px;
  border-left: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(-45deg); }
.plan li.cap { padding-inline-start: 0; font-weight: 600; } .plan li.cap::before { display: none; }
.fineprint { font-size: .9rem; color: var(--muted); margin-top: 22px; max-width: 62em; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 22px 0; font-weight: 600; font-size: 1.12rem; list-style: none; display: flex;
  justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; font-weight: 300; color: var(--muted); line-height: 1; flex: none; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); max-width: 52em; padding-bottom: 10px; }

/* ---------- forms ---------- */
.lead-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.lead-copy h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; }
.lead-copy p { color: var(--deep-muted); font-size: 1.1rem; }
.lead-copy ol { color: var(--deep-muted); padding: 0; margin: 22px 0 0; list-style: none; counter-reset: l; display: grid; gap: 12px; }
.lead-copy li { counter-increment: l; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; }
.lead-copy li::before { content: counter(l); width: 30px; height: 30px; border-radius: 50%; background: var(--deep-2); color: var(--gold);
  display: grid; place-items: center; font-weight: 600; font-size: .9rem; }
.lead-phone { margin-top: 22px; color: var(--deep-ink); } .lead-phone a { color: var(--gold); }
.card { background: var(--surface); color: var(--ink); border: 0; border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow); }
.deep .card { box-shadow: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; } .field.full { grid-column: 1 / -1; }
.field label { font-size: .9rem; font-weight: 500; color: var(--muted); }
.field .opt { font-weight: 400; color: var(--faint); }
.field input, .field select, .field textarea { font: inherit; color: var(--ink); background: var(--surface-2); border: 1px solid transparent;
  border-radius: 12px; padding: 10px 14px; min-height: 48px; width: 100%; transition: border-color .15s, box-shadow .15s, background-color .15s; }
.field textarea { min-height: 104px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); background: var(--surface); outline: none;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 22%, transparent); }
.field .hint { font-size: .84rem; color: var(--faint); }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: 14px; padding: 12px 16px; margin-bottom: 16px; border: 0; font-size: .98rem; }
.alert ul { margin: 0; padding-inline-start: 1.1em; }
.alert-error { background: var(--tint-danger); color: var(--danger-text); }
.alert-ok { background: var(--tint-emerald); color: var(--success-text); }
.alert-warn { background: var(--tint-gold); color: var(--gold-text); }
.auth { padding: clamp(40px, 7vw, 88px) 0; }
.auth .card { width: min(560px, 100%); margin-inline: auto; }
.auth h1 { font-size: 2rem; }
.subtle { color: var(--muted); font-size: .95rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--alt); color: var(--muted); padding: 48px 0 30px; font-size: .9rem; border-top: 1px solid var(--line); }
.site-footer a { color: var(--ink); text-decoration: none; } .site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 28px; }
.site-footer h4 { color: var(--ink); font-size: .9rem; font-weight: 600; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; } .site-footer li { margin-bottom: 6px; }
.site-footer .brand { color: var(--ink); margin-bottom: 8px; }
.legal { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 16px; font-size: .82rem; color: var(--faint); }

/* ---------- portal / app pages ---------- */
.page { padding: clamp(32px, 5vw, 60px) 0 80px; }
.page h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.page h2 { font-size: 1.3rem; margin-top: 0; }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head p { margin: 0; color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 22px; align-items: start; }
.stack > * + * { margin-top: 22px; }
.card h2 .count { font-size: .85rem; color: var(--muted); font-weight: 400; }
.card.tight { padding: 20px 22px; }
.status { border-inline-start: 5px solid var(--success); }
.status.s-expiring { border-inline-start-color: var(--gold); }
.status.s-grace, .status.s-expired, .status.s-revoked { border-inline-start-color: var(--danger); }
.status.s-none { border-inline-start-color: var(--line-strong); }
.badge { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: .9rem; padding: 4px 12px; border-radius: 999px;
  background: var(--tint-emerald); color: var(--success-text); }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.badge.b-expiring, .badge.b-pending, .badge.b-created { background: var(--tint-gold); color: var(--gold-text); }
.badge.b-grace, .badge.b-expired, .badge.b-failed, .badge.b-revoked { background: var(--tint-danger); color: var(--danger-text); }
.badge.b-cancelled, .badge.b-none { background: var(--surface-2); color: var(--muted); }
.kv { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 18px 0; padding: 0; }
.kv div { border-top: 1px solid var(--line); padding-top: 8px; }
.kv dt { font-size: .82rem; color: var(--muted); } .kv dd { margin: 0; font-weight: 600; font-size: 1.05rem; }
.status-msg { font-size: 1.02rem; margin: 10px 0 0; }
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .93rem; }
table.data th { text-align: start; font-size: .8rem; color: var(--faint); font-weight: 500; padding: 8px 10px; border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
table.data td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data td.n { text-align: end; white-space: nowrap; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .86em; direction: ltr; unicode-bidi: isolate; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.howto { padding-inline-start: 1.2em; margin: 0; } .howto li { margin-bottom: 8px; }
.empty { color: var(--muted); font-style: normal; padding: 8px 0; }
.summary { width: 100%; border-collapse: collapse; margin: 8px 0 20px; }
.summary td { padding: 10px 0; border-bottom: 1px solid var(--line); } .summary td:last-child { text-align: end; }
.summary tr.total td { font-weight: 600; font-size: 1.15rem; border-bottom: 0; border-top: 1px solid var(--ink); }
.pay-options { display: grid; gap: 12px; margin: 0 0 20px; padding: 0; border: 0; }
.pay-option { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding: 14px 16px; border-radius: 14px;
  border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; }
.pay-option:has(input:checked) { border-color: var(--primary); background: var(--tint-emerald); }
.pay-option.off { opacity: .62; cursor: not-allowed; }
.pay-option input { margin-top: 7px; accent-color: var(--primary); width: 18px; height: 18px; }
.pay-option strong { display: block; font-weight: 600; } .pay-option span { font-size: .92rem; color: var(--muted); }
.sandbox-banner { background: repeating-linear-gradient(-45deg, var(--tint-gold) 0 14px, var(--surface) 14px 28px); border: 2px dashed var(--gold);
  color: var(--ink); border-radius: 14px; padding: 14px 18px; font-weight: 600; text-align: center; margin-bottom: 20px; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; padding: 0; list-style: none; }
.admin-nav a { display: block; padding: 6px 14px; border-radius: 999px; text-decoration: none; color: var(--ink);
  background: color-mix(in srgb, var(--ink) 6%, transparent); font-size: .92rem; }
.admin-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.admin-form .field { min-width: 120px; } .admin-form input, .admin-form select { min-height: 38px; padding: 6px 10px; }
.mini-input { font: inherit; width: 84px; min-height: 36px; padding: 4px 8px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--surface); color: var(--ink); }
pre.mail { white-space: pre-wrap; font: inherit; font-size: .9rem; background: var(--surface-2); border: 0; border-radius: 12px; padding: 12px; margin: 8px 0 0; }

/* ---------- invoice / pro-forma (always printed on white) ---------- */
.doc { background: #fff; color: #111; border: 1px solid #E5E5EA; border-radius: 10px; padding: clamp(20px, 4vw, 48px); width: min(860px, 100%); margin-inline: auto; }
.doc a { color: #0B7A5E; }
.doc-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-bottom: 3px solid #0B7A5E; padding-bottom: 16px; margin-bottom: 20px; }
.doc-head h1 { font-size: 1.5rem; margin: 0; } .doc-head .sub { color: #555; font-size: .9rem; }
.doc-meta { text-align: end; font-size: .95rem; }
.parties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-bottom: 24px; }
.parties h2 { font-size: .85rem; color: #555; margin-bottom: 6px; font-weight: 600; }
.parties dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; font-size: .95rem; }
.parties dt { color: #555; } .parties dd { margin: 0; font-weight: 600; }
.unset { background: #FCEFC7; color: #6B4E00; border: 1px dashed #C29A3A; border-radius: 4px; padding: 0 6px; font-weight: 600; font-size: .86em; }
.doc table { width: 100%; border-collapse: collapse; margin-bottom: 18px; }
.doc th { background: #F5F5F7; text-align: start; padding: 9px 10px; font-size: .86rem; }
.doc td { padding: 10px; border-bottom: 1px solid #ddd; } .doc td.n, .doc th.n { text-align: end; white-space: nowrap; }
.doc tfoot td { border-bottom: 0; padding: 6px 10px; } .doc tfoot tr.total td { font-weight: 700; font-size: 1.12rem; border-top: 2px solid #111; }
.doc-note { font-size: .88rem; color: #444; border-top: 1px solid #ddd; padding-top: 12px; }
.doc-warn { background: #FCEFC7; border: 1px dashed #C29A3A; color: #6B4E00; border-radius: 6px; padding: 10px 14px; font-size: .9rem; margin-bottom: 18px; }
.doc-tools { width: min(860px, 100%); margin: 0 auto 16px; display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
.doc .mono { font-size: .92em; }

/* ---------- reveal ---------- */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.js-reveal [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .nav-toggle { display: inline-grid; }
  .site-nav { display: none; position: absolute; inset-inline: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 10px 24px 18px; flex-direction: column; margin: 0; }
  .site-nav.is-open { display: flex; } .site-nav a { font-size: 1.05rem; padding: 10px 4px; opacity: 1; }
  .site-header .header-tools { margin-inline-start: auto; }
  .b4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-groups, .pricing { grid-template-columns: minmax(0, 1fr); }
  .saudi-grid, .fits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .lead-grid, .trust-grid, .council-split, .one-plan, .example-grid, .integration.has-photo { grid-template-columns: minmax(0, 1fr); }
  .integration-photo { aspect-ratio: 16 / 10; }
  .council-photo { aspect-ratio: 16 / 10; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; }
  .facts li:nth-child(3) { border-inline-start: 0; }
  .stats, .steps, .rules, .b3, .integration-points { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .kv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-frame { aspect-ratio: 4 / 3; }
  .bubble { max-width: 92%; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .wrap, .narrow, .hero-media, .facts, .rail-nav { width: calc(100% - 32px); }
  .b4, .b2, .saudi-grid, .fits, .form-grid, .parties { grid-template-columns: minmax(0, 1fr); }
  .cta-row { flex-direction: column; gap: 14px; } .cta-row .btn { width: 100%; }
  .hero-float { position: static; margin: 12px 0 0; background: var(--surface-2); color: var(--ink); box-shadow: none; }
  .hero-float .k, .hero-float small { color: var(--muted); }
  .sector-rail { grid-auto-columns: 84%; padding-inline: 16px; scroll-padding-inline: 16px; }
  .bars li { grid-template-columns: 5.6em minmax(0, 1fr) 3.4em; gap: 8px; }
  .site-header .wrap { gap: 10px; } .header-tools { gap: 4px; }
  .header-tools .btn-small { padding-inline: 10px; font-size: .82rem; } .brand { font-size: 1.1rem; }
}
@media (max-width: 420px) {
  .header-tools .icon-btn, .nav-toggle { width: 32px; height: 32px; }
  .header-tools .btn-small { padding-inline: 8px; font-size: .78rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
}
@media print {
  .site-header, .site-footer, .doc-tools, .skip { display: none !important; }
  body { background: #fff; } .page { padding: 0; } .doc { border: 0; padding: 0; width: 100%; }
}
