/* ==========================================================================
   Sila ERP marketing site - shared stylesheet
   Tokens come from Marketing/Brand/Brand_Guidelines.md (same as the app's
   Content/sila-modern.css). Light + dark (prefers-color-scheme + manual
   toggle via html[data-theme]). RTL through logical properties + [dir=rtl].
   ========================================================================== */

:root {
  --sila-brand: #F87C1D;
  --sila-brand-600: #E06A0C;
  --sila-brand-hover: #F99C4A;
  --sila-brand-50: #FFF4EB;
  --sila-brand-text: #B35200;      /* AA-contrast orange for small text on white */
  --sila-ink: #333333;
  --sila-ink-2: #555555;
  --sila-muted: #6B6B6B;
  --sila-line: #E8E8E8;
  --sila-line-strong: #D6D6D6;
  --sila-bg: #FFFFFF;
  --sila-surface: #FFFFFF;
  --sila-surface-2: #F7F7F7;
  --sila-success: #16A34A;
  --sila-warning: #D97706;
  --sila-danger: #DC2626;
  --sila-info: #0284C7;
  --chip-check-bg: #FEF3C7;  --chip-check-fg: #8A4B00;
  --chip-approve-bg: #E0F2FE; --chip-approve-fg: #075985;
  --chip-post-bg: #FFF4EB;   --chip-post-fg: #A34A00;
  --chip-posted-bg: #DCFCE7; --chip-posted-fg: #166534;
  --shadow-frame: 0 12px 32px rgba(0, 0, 0, .16);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, .05);
  --radius: 8px;
  --radius-lg: 12px;
  --maxw: 1200px;
  --gutter: 16px;
  --header-h: 64px;
  --font-body: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-head: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --lh-body: 1.55;
  --fs-body: 17px;
  color-scheme: light;
}

html[lang="ar"] {
  --font-body: "Noto Naskh Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-head: "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif;
  --lh-body: 1.8;
  --fs-body: 18px;
}

/* Dark tokens: system preference unless the visitor chose light */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sila-brand-text: #FF9A4D;
    --sila-brand-50: #3A2A1E;
    --sila-ink: #F0F0F0;
    --sila-ink-2: #D0D0D0;
    --sila-muted: #A8A8A8;
    --sila-line: #3A3A3A;
    --sila-line-strong: #4A4A4A;
    --sila-bg: #222222;
    --sila-surface: #2A2A2A;
    --sila-surface-2: #2A2A2A;
    --chip-check-bg: #4A3A12;  --chip-check-fg: #FCD9A0;
    --chip-approve-bg: #0E3A52; --chip-approve-fg: #BAE6FD;
    --chip-post-bg: #4A2E17;   --chip-post-fg: #FFC89A;
    --chip-posted-bg: #14432A; --chip-posted-fg: #BBF7D0;
    --shadow-frame: 0 12px 32px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --sila-brand-text: #FF9A4D;
  --sila-brand-50: #3A2A1E;
  --sila-ink: #F0F0F0;
  --sila-ink-2: #D0D0D0;
  --sila-muted: #A8A8A8;
  --sila-line: #3A3A3A;
  --sila-line-strong: #4A4A4A;
  --sila-bg: #222222;
  --sila-surface: #2A2A2A;
  --sila-surface-2: #2A2A2A;
  --chip-check-bg: #4A3A12;  --chip-check-fg: #FCD9A0;
  --chip-approve-bg: #0E3A52; --chip-approve-fg: #BAE6FD;
  --chip-post-bg: #4A2E17;   --chip-post-fg: #FFC89A;
  --chip-posted-bg: #14432A; --chip-posted-fg: #BBF7D0;
  --shadow-frame: 0 12px 32px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--sila-bg);
  color: var(--sila-ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.25; margin: 0 0 .5em; color: var(--sila-ink); }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { line-height: 1.5; }
h1 { font-size: clamp(32px, 5vw, 52px); letter-spacing: -.01em; }
h2 { font-size: clamp(26px, 3.4vw, 36px); }
h3 { font-size: 20px; }
h4 { font-size: 17px; }
html[lang="ar"] h1, html[lang="ar"] h2 { letter-spacing: 0; }
p { margin: 0 0 1em; }
a { color: var(--sila-brand-text); text-underline-offset: 3px; }
a:hover { color: var(--sila-brand-600); }
:focus-visible { outline: 3px solid var(--sila-brand); outline-offset: 2px; border-radius: 4px; }
ul { padding-inline-start: 1.25em; margin: 0 0 1em; }
li { margin-block: .25em; }
bdi, .ltr { unicode-bidi: isolate; }
.ltr { direction: ltr; display: inline-block; }

.skip-link {
  position: absolute; inset-inline-start: 8px; top: -60px; z-index: 100;
  background: var(--sila-ink); color: var(--sila-bg); padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { top: 8px; color: var(--sila-bg); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* Placeholder for unconfirmed facts */
.tbc {
  display: inline-block; font-family: var(--font-body); font-size: .8em; font-weight: 500; line-height: 1.4;
  color: var(--sila-muted); background: var(--sila-surface-2); border: 1px dashed var(--sila-line-strong);
  border-radius: 4px; padding: 0 6px; white-space: nowrap; direction: ltr; unicode-bidi: isolate;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 16px/1.2 var(--font-body); padding: 12px 22px; border-radius: var(--radius);
  text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background .15s, border-color .15s;
  min-height: 46px;
}
html[lang="ar"] .btn { font-family: var(--font-head); font-size: 15px; }
.btn-primary { background: var(--sila-brand); color: #fff; font-weight: 700; }
.btn-primary:hover { background: var(--sila-brand-hover); color: #fff; }
.btn-primary:active { background: var(--sila-brand-600); }
.btn-secondary { background: var(--sila-surface); color: var(--sila-ink); border-color: var(--sila-line-strong); }
.btn-secondary:hover { border-color: var(--sila-brand); color: var(--sila-ink); }
.btn-sm { padding: 8px 14px; min-height: 38px; font-size: 15px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: var(--sila-bg); border-bottom: 1px solid var(--sila-line);
}
.site-header .container { height: 100%; display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--sila-ink); }
.brand img { width: 34px; height: 34px; }
.brand-name { font: 600 19px/1 var(--font-body); letter-spacing: -.01em; }
html[lang="ar"] .brand-name { font-family: "Inter", "Segoe UI", sans-serif; }
.site-nav { margin-inline-start: auto; }
.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 8px 10px; text-decoration: none; color: var(--sila-ink-2); font-size: 15px; border-radius: 6px; }
html[lang="ar"] .site-nav a { font-family: var(--font-head); font-size: 14px; }
.site-nav a:hover { color: var(--sila-ink); background: var(--sila-surface-2); }
.header-tools { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: var(--radius);
  background: transparent; border: 1px solid var(--sila-line); color: var(--sila-ink); cursor: pointer;
}
.icon-btn:hover { border-color: var(--sila-brand); }
.icon-btn svg { width: 20px; height: 20px; }
.lang-link { font-size: 15px; font-weight: 600; text-decoration: none; color: var(--sila-ink); padding: 8px 10px; border-radius: 6px; border: 1px solid var(--sila-line); }
.lang-link:hover { border-color: var(--sila-brand); color: var(--sila-ink); }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme]) .theme-toggle .icon-moon { display: block; }
}
.nav-toggle { display: none; }

@media (max-width: 1100px) {
  .nav-toggle { display: inline-grid; }
  .site-nav {
    position: fixed; inset-inline: 0; top: var(--header-h); bottom: 0; margin: 0;
    background: var(--sila-bg); border-top: 1px solid var(--sila-line);
    padding: 12px var(--gutter) 24px; overflow-y: auto; display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: 12px; font-size: 17px; border-bottom: 1px solid var(--sila-line); border-radius: 0; }
  .header-tools { margin-inline-start: auto; }
  .site-nav + .header-tools { margin-inline-start: 0; }
}
@media (max-width: 520px) {
  .header-cta { display: none; }
  .brand-name { font-size: 17px; }
}

/* ---------- Sections ---------- */
.section { padding-block: 80px; }
.section.alt { background: var(--sila-surface-2); }
:root[data-theme="dark"] .section.alt { background: #262626; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .section.alt { background: #262626; } }
.section-head { max-width: 780px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--sila-brand-text); margin-bottom: 10px;
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-family: var(--font-head); font-size: 14px; }
.lead { font-size: 1.12em; color: var(--sila-ink-2); }
.muted { color: var(--sila-muted); }
.note {
  border-inline-start: 4px solid var(--sila-brand); background: var(--sila-brand-50);
  padding: 14px 18px; border-radius: var(--radius); font-size: .95em; color: var(--sila-ink);
}
.note p:last-child { margin: 0; }
@media (max-width: 767px) { .section { padding-block: 56px; } }

/* Grids */
.grid { display: grid; gap: 20px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 991px) { .g-3, .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g-2, .g-3, .g-4 { grid-template-columns: minmax(0, 1fr); } }

.card {
  background: var(--sila-surface); border: 1px solid var(--sila-line); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow-card); min-width: 0;
}
.card h3 { margin-bottom: .4em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--sila-brand-50); color: var(--sila-brand-text); margin-bottom: 14px; }
.card .icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-inline-start: 28px; margin-block: .45em; }
.checklist li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: 16px; height: 9px;
  border-left: 2.5px solid var(--sila-brand); border-bottom: 2.5px solid var(--sila-brand);
  transform: rotate(-45deg); transform-origin: center;
}
[dir="rtl"] .checklist li::before { top: .75em; }
.checklist.compact li { margin-block: .25em; }

/* ---------- Hero ---------- */
.hero { padding-block: 64px 72px; background: linear-gradient(var(--sila-brand-50), var(--sila-bg) 70%); }
.hero-copy { max-width: 860px; margin-inline: auto; text-align: center; }
.hero-copy .lead { max-width: 720px; margin-inline: auto; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-block: 28px 12px; }
.hero-meta { font-size: 14px; color: var(--sila-muted); display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; list-style: none; padding: 0; }
.hero-visual { margin-top: 44px; position: relative; }
.illustration-tag {
  position: absolute; top: -12px; inset-inline-end: 16px; z-index: 2;
  background: var(--sila-ink); color: var(--sila-bg); font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
}

/* ---------- App shell mock (hero) ---------- */
.mock {
  --m-bg: #FFFFFF; --m-canvas: #F7F7F7; --m-line: #E8E8E8; --m-ink: #333; --m-muted: #6B6B6B;
  background: var(--m-bg); color: var(--m-ink); border: 1px solid #DADADA; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-frame); overflow: hidden; font-family: "Inter", "Segoe UI", Arial, sans-serif; font-size: 13px; line-height: 1.4;
}
html[lang="ar"] .mock { font-family: "Noto Naskh Arabic", "Segoe UI", Tahoma, sans-serif; font-size: 13.5px; }
.mock-chrome { height: 30px; background: #EFEFEF; border-bottom: 1px solid #DADADA; display: flex; align-items: center; gap: 6px; padding-inline: 12px; }
.mock-chrome i { width: 10px; height: 10px; border-radius: 50%; background: #CFCFCF; display: block; }
.mock-chrome .url { margin-inline-start: 12px; flex: 1; max-width: 360px; height: 18px; border-radius: 9px; background: #fff; border: 1px solid #DDD; }
.mock-header { height: 60px; display: flex; align-items: center; gap: 12px; padding-inline: 12px; border-bottom: 1px solid var(--m-line); background: #fff; }
.mock-burger { width: 36px; height: 36px; border-radius: 4px; background: var(--sila-brand); display: grid; place-items: center; flex: none; }
.mock-burger span, .mock-burger span::before, .mock-burger span::after { display: block; width: 16px; height: 2px; background: #fff; position: relative; content: ""; }
.mock-burger span::before { position: absolute; top: -5px; }
.mock-burger span::after { position: absolute; top: 5px; }
.mock-logo { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.mock-logo b { font-size: 16px; font-weight: 700; font-family: "Inter", "Segoe UI", sans-serif; }
.mock-logo small { font-size: 11px; color: #8A8A8A; white-space: nowrap; }
.mock-toolbar { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; }
.mock-toolbar .tb { width: 28px; height: 28px; border-radius: 4px; display: grid; place-items: center; color: #6B6B6B; }
.mock-toolbar .tb svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.75; }
.mock-toolbar .tb-text { font-size: 12px; color: #555; padding: 4px 6px; }
.mock-pill { background: var(--sila-brand); color: #fff; font-weight: 600; border-radius: 999px; padding: 5px 12px; font-size: 12px; white-space: nowrap; }
.mock-body { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 520px; }
.mock-nav { border-inline-end: 1px solid var(--m-line); background: #fff; padding: 12px 10px; display: flex; flex-direction: column; gap: 8px; }
.mock-search { height: 30px; border: 1px solid #DADADA; border-radius: 4px; display: flex; align-items: center; padding-inline: 8px; color: #999; font-size: 12px; }
.mock-allbtn { height: 30px; border: 1px solid #DADADA; border-radius: 4px; display: flex; align-items: center; padding-inline: 8px; font-size: 12px; font-weight: 600; color: #555; }
.mock-modules { list-style: none; margin: 0; padding: 0; }
.mock-modules li { display: flex; align-items: center; gap: 10px; padding: 5px 8px; border-radius: 4px; margin: 0; color: #444; }
.mock-modules li::before { content: ""; width: 14px; height: 14px; border-radius: 3px; border: 1.75px solid #8A8A8A; flex: none; }
.mock-modules li.active { background: #FFF4EB; color: #A34A00; font-weight: 600; }
.mock-modules li.active::before { border-color: var(--sila-brand); background: var(--sila-brand); }
.mock-nav-foot { margin-top: auto; font-size: 11px; color: #999; }
.mock-main { background: var(--m-canvas); padding: 14px 18px; min-width: 0; }
.mock-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--m-muted); }
.mock-crumb .sep { color: #BBB; }
.mock-crumb .cur { color: var(--m-ink); }
.mock-crumb .co { margin-inline-start: auto; font-size: 11.5px; color: #555; background: #fff; border: 1px solid var(--m-line); padding: 2px 8px; border-radius: 999px; }
.mock-h1 { font-size: 20px; font-weight: 600; margin: 10px 0 12px; font-family: inherit; }
.mock-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.mock-actions span { background: #fff; border: 1px solid #DADADA; border-radius: 4px; padding: 4px 10px; font-size: 12px; }
.mock-actions span.primary { background: var(--sila-brand); border-color: var(--sila-brand); color: #fff; font-weight: 600; }
.mock-grid { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--m-line); font-size: 12.5px; }
.mock-grid th { text-align: start; font-weight: 600; color: #555; background: #FAFAFA; padding: 8px 10px; border-bottom: 1px solid var(--m-line); white-space: nowrap; }
.mock-grid td { padding: 8px 10px; border-bottom: 1px solid #F0F0F0; white-space: nowrap; }
.mock-grid td.num, .mock-grid th.num { text-align: end; font-variant-numeric: tabular-nums; }
.mock-grid td.desc { white-space: normal; min-width: 150px; }
.mock-grid tr:last-child td { border-bottom: 0; }
.mock-pager { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--m-muted); padding-top: 8px; }
.chip { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.chip-check { background: var(--chip-check-bg); color: var(--chip-check-fg); }
.chip-approve { background: var(--chip-approve-bg); color: var(--chip-approve-fg); }
.chip-post { background: var(--chip-post-bg); color: var(--chip-post-fg); }
.chip-posted { background: var(--chip-posted-bg); color: var(--chip-posted-fg); }
/* The mock always shows the light app so chips use light colors inside it */
.mock .chip-check { background: #FEF3C7; color: #8A4B00; }
.mock .chip-approve { background: #E0F2FE; color: #075985; }
.mock .chip-post { background: #FFF4EB; color: #A34A00; }
.mock .chip-posted { background: #DCFCE7; color: #166534; }

@media (max-width: 991px) {
  .mock-body { grid-template-columns: minmax(0, 1fr); }
  .mock-nav { display: none; }
  .mock-grid .hide-md { display: none; }
}
@media (max-width: 640px) {
  .mock-toolbar .tb:not(.keep), .mock-toolbar .tb-text { display: none; }
  .mock-logo small { display: none; }
  .mock-grid .hide-sm { display: none; }
  .mock-body { min-height: 0; }
  .mock-main { padding: 12px; }
  .mock-crumb .co { margin-inline-start: 0; }
}

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 36px; }
.stat { background: var(--sila-surface); border: 1px solid var(--sila-line); border-radius: var(--radius-lg); padding: 18px; text-align: center; }
.stat b { direction: ltr; unicode-bidi: isolate; display: block; font: 700 28px/1.1 var(--font-head); color: var(--sila-ink); }
.stat span { font-size: 14px; color: var(--sila-muted); }
@media (max-width: 991px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Module tabs ---------- */
.module-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 32px; }
.module-chips li { margin: 0; padding: 6px 12px; border: 1px solid var(--sila-line-strong); border-radius: 999px; font-size: 14px; background: var(--sila-surface); }
.module-chips li b { color: var(--sila-brand-text); margin-inline-end: 6px; font-variant-numeric: tabular-nums; }
.tabs { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; }
.tablist { display: flex; flex-direction: column; gap: 6px; }
.tab {
  text-align: start; font: 500 15.5px/1.35 var(--font-body); color: var(--sila-ink-2); background: var(--sila-surface);
  border: 1px solid var(--sila-line); border-radius: var(--radius); padding: 12px 14px; cursor: pointer; display: flex; gap: 10px; align-items: center;
}
html[lang="ar"] .tab { font-family: var(--font-head); font-size: 14.5px; }
.tab .n { width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; background: var(--sila-surface-2); font-size: 13px; font-weight: 700; flex: none; }
.tab[aria-selected="true"] { border-color: var(--sila-brand); color: var(--sila-ink); background: var(--sila-brand-50); font-weight: 600; }
.tab[aria-selected="true"] .n { background: var(--sila-brand); color: #fff; }
.tabpanel { background: var(--sila-surface); border: 1px solid var(--sila-line); border-radius: var(--radius-lg); padding: 28px; min-height: 100%; }
.tabpanel[hidden] { display: none; }
.tabpanel .in-app { font-size: 14px; color: var(--sila-muted); margin-bottom: 12px; }
@media (max-width: 860px) {
  .tabs { grid-template-columns: minmax(0, 1fr); }
  .tablist { flex-direction: row; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
  .tab { flex: none; scroll-snap-align: start; }
}
@media (max-width: 640px) { .tabpanel { padding: 20px; } }

/* ---------- Feature split blocks (module deep dives) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: start; }
.split.flip > :first-child { order: 2; }
@media (max-width: 991px) { .split, .split.flip { grid-template-columns: minmax(0, 1fr); gap: 28px; } .split.flip > :first-child { order: 0; } }
.panel { background: var(--sila-surface); border: 1px solid var(--sila-line); border-radius: var(--radius-lg); padding: 24px; min-width: 0; }
.panel h3 { font-size: 17px; }
.panel + .panel { margin-top: 16px; }
.split > .panel + .panel { margin-top: 0; }
.dash-frame .illustration-tag { top: 16px; }
.screens { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.screens li { margin: 0; font-size: 13.5px; padding: 4px 10px; border-radius: 6px; background: var(--sila-surface-2); border: 1px solid var(--sila-line); }
.steps { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.steps li { margin: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.steps li span { padding: 5px 12px; border-radius: 999px; background: var(--sila-brand-50); color: var(--sila-ink); border: 1px solid var(--sila-line); }
.steps li:not(:last-child)::after { content: "\2192"; color: var(--sila-muted); font-weight: 400; }
[dir="rtl"] .steps li:not(:last-child)::after { content: "\2190"; }
.steps-num { counter-reset: s; }
.steps-num li span::before { counter-increment: s; content: counter(s) " "; color: var(--sila-brand-text); }

/* ---------- Dashboard illustration ---------- */
.dash-frame { background: var(--sila-surface); border: 1px solid var(--sila-line); border-radius: var(--radius-lg); box-shadow: var(--shadow-frame); overflow: hidden; position: relative; }
.dash-frame .strip { height: 8px; background: var(--sila-brand); }
.dash-frame .inner { padding: 20px; }
.dash-title { font-weight: 600; margin-bottom: 4px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 180px; border-bottom: 1px solid var(--sila-line); padding-top: 10px; }
.bars span { flex: 1; background: var(--sila-brand); border-radius: 3px 3px 0 0; opacity: .85; min-width: 0; }
.bars span.neg { background: var(--sila-muted); opacity: .5; }
.bar-labels { display: flex; gap: 8px; font-size: 11px; color: var(--sila-muted); padding-top: 6px; }
.bar-labels span { flex: 1; text-align: center; min-width: 0; }

/* ---------- Workflow diagram ---------- */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto minmax(0, 1fr); gap: 0; align-items: stretch; }
.flow-wrap { background: var(--sila-surface); border: 1px solid var(--sila-line); border-radius: var(--radius-lg); padding: 28px; }
.flow-svg { display: block; width: 100%; height: auto; }
.flow-svg text { font-family: var(--font-head); }
.flow-svg .box { fill: var(--sila-surface); stroke: var(--sila-ink); stroke-width: 2; }
.flow-svg .box.post { fill: var(--sila-brand); stroke: var(--sila-brand); }
.flow-svg .box.gl { fill: var(--sila-brand-50); stroke: var(--sila-brand); stroke-dasharray: 5 4; }
.flow-svg .t { fill: var(--sila-ink); font-size: 17px; font-weight: 600; }
.flow-svg .t.onbrand { fill: #fff; }
.flow-svg .s { fill: var(--sila-muted); font-size: 12.5px; }
.flow-svg .a { stroke: var(--sila-ink); stroke-width: 2; fill: none; }
.flow-svg .ah { fill: var(--sila-ink); }
.flow-svg .rej { stroke: var(--sila-danger); stroke-width: 1.75; fill: none; stroke-dasharray: 4 4; }
.flow-svg .rejt { fill: var(--sila-danger); font-size: 12.5px; }
.flow-svg.v { display: none; }
@media (max-width: 760px) { .flow-svg.h { display: none; } .flow-svg.v { display: block; max-width: 360px; margin-inline: auto; } }
.flow-legend { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
@media (max-width: 860px) { .flow-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .flow-legend { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Screenshot placeholders ---------- */
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 991px) { .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .shots { grid-template-columns: minmax(0, 1fr); } }
.shot { margin: 0; min-width: 0; }
.shot-frame {
  aspect-ratio: 16 / 10; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid #DADADA;
  box-shadow: var(--shadow-frame); background: #F7F7F7; display: grid; grid-template-rows: 16px 22px 1fr; position: relative;
}
.shot-frame .c { background: #EFEFEF; border-bottom: 1px solid #DDD; display: flex; gap: 4px; align-items: center; padding-inline: 8px; }
.shot-frame .c i { width: 6px; height: 6px; border-radius: 50%; background: #CCC; }
.shot-frame .h { background: #fff; border-bottom: 3px solid var(--sila-brand); display: flex; align-items: center; gap: 6px; padding-inline: 8px; }
.shot-frame .h::before { content: ""; width: 14px; height: 14px; border-radius: 3px; background: var(--sila-brand); }
.shot-frame .h::after { content: ""; width: 40px; height: 5px; border-radius: 3px; background: #D0D0D0; }
.shot-frame .b { display: grid; grid-template-columns: 22% 1fr; min-height: 0; }
.shot-frame .b .n { background: #fff; border-inline-end: 1px solid #E8E8E8; padding: 8px 6px; display: flex; flex-direction: column; gap: 5px; }
.shot-frame .b .n i { height: 5px; border-radius: 3px; background: #E2E2E2; }
.shot-frame .b .n i:nth-child(3) { background: #FBC89C; }
.shot-frame .b .m { padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.shot-frame .b .m i { height: 7px; border-radius: 3px; background: #E4E4E4; }
.shot-frame .b .m i:first-child { width: 45%; height: 9px; background: #CFCFCF; }
.shot-frame .b .m i:nth-child(even) { width: 92%; }
.shot-id {
  position: absolute; inset-inline-start: 50%; top: 58%; transform: translate(-50%, -50%);
  background: rgba(255,255,255,.94); border: 1px dashed #BDBDBD; color: #333; border-radius: 8px; padding: 6px 12px;
  font: 700 15px/1.2 "Inter", "Segoe UI", sans-serif; letter-spacing: .04em; direction: ltr;
}
[dir="rtl"] .shot-id { transform: translate(50%, -50%); }
.shot figcaption { padding-top: 12px; }
.shot figcaption b { display: block; font-family: var(--font-head); font-weight: 600; }
.shot figcaption span { font-size: 14px; color: var(--sila-muted); }

/* ---------- Real screenshots (demo company, fictitious data) ----------
   Minimal browser frame (Brand §6: light grey chrome, 12px radius, soft shadow). The hero and the
   dashboard carry a light and a dark capture; the one matching the page theme is shown (the hidden
   one is lazy, so it is only downloaded when the visitor switches theme). */
.real-shot { margin: 0; border: 1px solid var(--sila-line-strong); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-frame); background: var(--sila-surface-2); position: relative; }
.real-shot img { display: block; width: 100%; height: auto; }
.rs-chrome { height: 26px; background: #F7F7F7; border-bottom: 1px solid #E2E2E2; display: flex; align-items: center; gap: 6px; padding-inline: 12px; }
.rs-chrome i { width: 9px; height: 9px; border-radius: 50%; background: #D3D3D3; }
.rs-chrome i:first-child { background: #F4A261; }
.real-shot .shot-dark { display: none; }
.rs-note { font-size: 13px; color: var(--sila-muted); background: var(--sila-surface); padding: 8px 14px; border-top: 1px solid var(--sila-line); }
.hero-shot { max-width: 1100px; margin-inline: auto; }
.shots .real-shot { aspect-ratio: auto; }
.real-shot.rs-doc img { aspect-ratio: 16 / 10; object-fit: contain; background: #E6E6E6; }
:root[data-theme="dark"] .real-shot .shot-light { display: none; }
:root[data-theme="dark"] .real-shot .shot-dark { display: block; }
:root[data-theme="dark"] .rs-chrome { background: #2A2A2A; border-color: #3A3A3A; }
:root[data-theme="dark"] .rs-chrome i { background: #555; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .real-shot .shot-light { display: none; }
  :root:not([data-theme="light"]) .real-shot .shot-dark { display: block; }
  :root:not([data-theme="light"]) .rs-chrome { background: #2A2A2A; border-color: #3A3A3A; }
  :root:not([data-theme="light"]) .rs-chrome i { background: #555; }
}

/* ---------- Video posters ---------- */
.videos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 991px) { .videos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .videos { grid-template-columns: minmax(0, 1fr); } }
.video { margin: 0; min-width: 0; }
.poster {
  aspect-ratio: 16 / 9; border-radius: var(--radius-lg); background: #262626; color: #fff; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 16px;
}
.poster::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 6px; background: var(--sila-brand); }
.poster .play { position: absolute; top: 50%; inset-inline-start: 50%; transform: translate(-50%, -60%); width: 56px; height: 56px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); display: grid; place-items: center; }
[dir="rtl"] .poster .play { transform: translate(50%, -60%); }
.poster .play::after { content: ""; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent #fff; margin-inline-start: 4px; }
.poster .soon { position: absolute; top: 12px; inset-inline-end: 12px; background: var(--sila-brand); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.poster .pt { position: relative; font: 600 16px/1.35 var(--font-head); }
.video figcaption { padding-top: 10px; font-size: 14.5px; color: var(--sila-ink-2); }

/* ---------- Demo agenda ---------- */
.agenda { counter-reset: a; list-style: none; padding: 0; margin: 0; }
.agenda li { position: relative; padding-inline-start: 40px; margin-block: 12px; }
.agenda li::before { counter-increment: a; content: counter(a); position: absolute; inset-inline-start: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--sila-brand-50); color: var(--sila-brand-text); display: grid; place-items: center; font-weight: 700; font-size: 14px; border: 1px solid var(--sila-line); }
.badge { display: inline-block; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--sila-brand); color: #fff; margin-bottom: 10px; }

/* ---------- FAQ ---------- */
.faq { max-width: 900px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--sila-line); }
.faq-item h3 { margin: 0; font-size: 17.5px; }
.faq-q {
  width: 100%; text-align: start; background: none; border: 0; color: var(--sila-ink); cursor: pointer;
  font: 600 17px/1.45 var(--font-head); padding: 18px 0; display: flex; gap: 16px; justify-content: space-between; align-items: center;
}
html[lang="ar"] .faq-q { font-size: 16px; line-height: 1.7; }
.faq-q::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--sila-brand-text); flex: none; line-height: 1; }
.faq-q[aria-expanded="true"]::after { content: "\2212"; }
.faq-a { padding: 0 0 18px; color: var(--sila-ink-2); }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a[hidden] { display: none; }

/* ---------- Contact + form ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding-block: 12px; border-bottom: 1px solid var(--sila-line); margin: 0; }
.contact-list li span:first-child { color: var(--sila-muted); }
@media (max-width: 480px) { .contact-list li { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form { grid-template-columns: minmax(0, 1fr); } }
.field label, .field legend { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; padding: 0; }
.field .req { color: var(--sila-danger); }
.field input, .field select {
  width: 100%; font: 400 16px/1.4 var(--font-body); color: var(--sila-ink); background: var(--sila-surface);
  border: 1px solid var(--sila-line-strong); border-radius: var(--radius); padding: 11px 12px; min-height: 46px;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--sila-brand); box-shadow: 0 0 0 3px rgba(248, 124, 29, .25); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--sila-danger); }
.field .err { color: var(--sila-danger); font-size: 14px; margin-top: 4px; min-height: 0; }
.field .err:empty { display: none; }
[dir="rtl"] .field input[type="email"], [dir="rtl"] .field input[type="tel"] { direction: ltr; text-align: right; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.checks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 16px; }
@media (max-width: 860px) { .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .checks { grid-template-columns: minmax(0, 1fr); } }
.checks label { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; font-size: 15px; margin: 0; cursor: pointer; }
.checks input { width: 18px; height: 18px; min-height: 0; margin-top: 4px; accent-color: var(--sila-brand); flex: none; }
.radios { display: flex; gap: 20px; flex-wrap: wrap; }
.radios label { display: flex; gap: 8px; align-items: center; font-weight: 400; margin: 0; cursor: pointer; }
.radios input { width: 18px; height: 18px; min-height: 0; accent-color: var(--sila-brand); }
.form-status { grid-column: 1 / -1; }
.form-status:empty { display: none; }
.form-status.ok { border-inline-start-color: var(--sila-success); }
.form-status.bad { border-inline-start-color: var(--sila-danger); background: transparent; border: 1px solid var(--sila-danger); border-inline-start-width: 4px; }

/* ---------- Final CTA + footer ---------- */
.final-cta { background: var(--sila-brand); color: #fff; text-align: center; padding-block: 72px; }
.final-cta h2 { color: #fff; }
.final-cta p { color: #fff; font-size: 1.1em; max-width: 680px; margin-inline: auto; }
.final-cta .btn-light { background: #fff; color: #333; font-weight: 700; }
.final-cta .btn-light:hover { background: #FFF4EB; color: #333; }
.final-cta .btn-outline { border-color: #fff; color: #fff; background: transparent; }
.final-cta .btn-outline:hover { background: rgba(255, 255, 255, .15); color: #fff; }
.final-cta .hero-ctas { margin-bottom: 0; }
.site-footer { background: #1E1E1E; color: #D0D0D0; padding-block: 48px 32px; font-size: 15px; }
.site-footer a { color: #F0F0F0; }
.site-footer a:hover { color: #FF9A4D; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
.site-footer h2 { font-size: 15px; color: #fff; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-block: 6px; }
.site-footer .brand { color: #F0F0F0; }
.site-footer .slogan { color: #A8A8A8; margin-top: 10px; }
.footer-bottom { border-top: 1px solid #3A3A3A; margin-top: 36px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: #A8A8A8; font-size: 14px; }
.site-footer .tbc { background: #2A2A2A; border-color: #555; color: #BDBDBD; }

/* ---------- Security list ---------- */
.sec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .sec-grid { grid-template-columns: minmax(0, 1fr); } }
.sec-item { display: flex; gap: 14px; align-items: flex-start; background: var(--sila-surface); border: 1px solid var(--sila-line); border-radius: var(--radius-lg); padding: 18px; }
.sec-item .icon { flex: none; width: 36px; height: 36px; border-radius: 8px; background: var(--sila-brand-50); color: var(--sila-brand-text); display: grid; place-items: center; }
.sec-item .icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.sec-item h3 { font-size: 16.5px; margin-bottom: 4px; }
.sec-item p { margin: 0; font-size: 15.5px; color: var(--sila-ink-2); }

/* ---------- Language demo ---------- */
.lang-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 560px) { .lang-pair { grid-template-columns: minmax(0, 1fr); } }
.lang-card { border: 1px solid var(--sila-line); border-radius: var(--radius-lg); background: var(--sila-surface); overflow: hidden; }
.lang-card .lh { height: 34px; display: flex; align-items: center; gap: 8px; padding-inline: 10px; border-bottom: 1px solid var(--sila-line); }
.lang-card .lh::before { content: ""; width: 18px; height: 18px; border-radius: 4px; background: var(--sila-brand); }
.lang-card ul { list-style: none; padding: 10px 14px; margin: 0; font-size: 14.5px; }
.lang-card li { padding: 4px 0; border-bottom: 1px dashed var(--sila-line); margin: 0; }
.lang-card li:last-child { border: 0; }
.lang-card .ar { font-family: "Noto Naskh Arabic", Tahoma, sans-serif; }
.lang-card .en { font-family: "Inter", "Segoe UI", sans-serif; }

/* ---------- Sila Mobile (Android companion app) ----------
   CSS-only phone illustration; uses the theme tokens so it follows light/dark,
   and logical properties so it mirrors in RTL. No store badges on purpose. */
.mobile-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 4px 18px; }
.avail-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; background: var(--sila-brand-50); color: var(--sila-brand-text); border: 1px solid transparent; }
.avail-pill svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.avail-pill.soon { background: transparent; color: var(--sila-muted); border: 1px dashed var(--sila-line-strong); }
.phone-figure { margin: 0; position: relative; display: flex; justify-content: center; padding-top: 14px; min-width: 0; }
.phone-figure .illustration-tag { top: 0; }
.phone { width: 270px; max-width: 100%; border-radius: 38px; background: #1E1E1E; border: 1px solid #4A4A4A; padding: 12px; box-shadow: var(--shadow-frame); }
.phone-speaker { width: 64px; height: 6px; border-radius: 3px; background: #3A3A3A; margin: 2px auto 10px; }
.phone-screen { background: var(--sila-bg); color: var(--sila-ink); border-radius: 26px; overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: 14px 12px 0; min-height: 460px; font-size: 12px; line-height: 1.35; }
.pm-top { display: flex; align-items: center; gap: 8px; }
.pm-top b { font: 700 14px/1 "Inter", "Segoe UI", sans-serif; }
.pm-dot { margin-inline-start: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--sila-success); }
.pm-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pm-kpi, .pm-card, .pm-chat { background: var(--sila-surface-2); border: 1px solid var(--sila-line); border-radius: 10px; padding: 8px; min-width: 0; }
.pm-kpi { border-inline-start: 3px solid var(--sila-brand); }
.pm-kpi small, .pm-card small, .pm-chat small { display: block; color: var(--sila-muted); font-size: 11px; }
.pm-kpi b { display: block; font: 700 16px/1.3 "Inter", "Segoe UI", sans-serif; font-variant-numeric: tabular-nums; text-align: start; }
.pm-bars { display: flex; align-items: flex-end; gap: 5px; height: 64px; margin-top: 6px; }
.pm-bars span { flex: 1; background: var(--sila-brand); border-radius: 3px 3px 0 0; }
.pm-chat { display: flex; align-items: center; gap: 8px; }
.pm-chat b { font-size: 12.5px; }
.pm-chat small { display: flex; align-items: center; gap: 4px; }
.pm-avatar { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--sila-brand-50); color: var(--sila-brand-text); display: grid; place-items: center; }
.pm-avatar svg, .pm-chat small svg, .pm-tabs svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.pm-chat small svg { width: 13px; height: 13px; }
.pm-tabs { margin-top: auto; margin-inline: -12px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--sila-line); background: var(--sila-surface); padding: 8px 4px 12px; }
.pm-tabs span { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; color: var(--sila-muted); text-align: center; }
.pm-tabs span.on { color: var(--sila-brand-text); font-weight: 600; }
.pm-tabs svg { width: 18px; height: 18px; }
@media (max-width: 991px) { .phone-figure { padding-top: 18px; } }

/* Print: keep it readable */
@media print { .site-header, .final-cta, .hero-ctas, #request-demo { display: none; } .section { padding-block: 24px; } }

/* ---------- Brochure download ---------- */
.brochure-link { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: 4px 0 14px; font-size: 15px; }
.brochure-link svg { color: var(--sila-brand); flex: none; }
.brochure-link a { font-weight: 600; }
.brochure-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-bottom: 16px; padding: 20px 24px; border: 1px solid var(--sila-line); border-inline-start: 4px solid var(--sila-brand); border-radius: var(--radius-lg); background: var(--sila-surface); }
.brochure-text { flex: 1 1 320px; min-width: 0; }
.brochure-text h3 { margin: 0 0 6px; font-size: 19px; }
.brochure-text p { margin: 0; }
.brochure-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.brochure-btns .btn { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 560px) { .brochure-btns, .brochure-btns .btn { width: 100%; justify-content: center; } }

/* ---------- Built in, not bolted on (#highlights, right after the hero) ---------- */
.highlights .section-head { max-width: 860px; }
.hl-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.hl-card { grid-column: span 2; display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  background: var(--sila-surface); border: 1px solid var(--sila-line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.hl-card.wide { grid-column: span 3; }
.hl-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; padding: 16px 16px 0;
  background: linear-gradient(var(--sila-brand-50), var(--sila-surface-2)); border-bottom: 1px solid var(--sila-line); }
.hl-media > .real-shot { height: calc(100% + 12px); box-shadow: 0 6px 18px rgba(0, 0, 0, .12); }
.hl-media .real-shot img { height: calc(100% - 26px); object-fit: cover; object-position: left top; }
[dir="rtl"] .hl-media .real-shot img { object-position: right top; }
.hl-media .real-shot.no-dark .shot-light { display: block !important; }
.hl-media .hl-inset { position: absolute; inset-inline-start: 12px; bottom: 12px; width: 50%; height: auto; box-shadow: var(--shadow-frame); }
.hl-media .hl-inset img { height: auto; aspect-ratio: 16 / 10; }
.hl-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.hl-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.hl-head .icon { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--sila-brand-50); color: var(--sila-brand-text); }
.hl-head .icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.hl-head h3 { margin: 0; font-size: 19px; line-height: 1.3; }
.hl-body p { margin: 0 0 14px; color: var(--sila-ink-2); font-size: 16px; }
html[lang="ar"] .hl-body p { font-size: 17px; }
.hl-more { margin-top: auto; font-weight: 600; color: var(--sila-brand-text); text-decoration: none; }
.hl-more:hover, .hl-more:focus-visible { text-decoration: underline; }
.hl-note { margin: 18px 0 0; font-size: 14px; }
/* Sila Mobile card: the phone illustration, smaller, peeking out of the media area */
.hl-phone { display: flex; justify-content: center; align-items: flex-start; padding-top: 20px; }
.hl-phone .illustration-tag { top: 10px; }
.phone.phone-mini { width: 200px; border-radius: 30px; padding: 9px; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.phone-mini .phone-speaker { width: 48px; height: 5px; margin: 1px auto 8px; }
.phone-mini .phone-screen { min-height: 300px; border-radius: 22px; padding: 11px 10px 12px; gap: 8px; font-size: 11px; }
.phone-mini .pm-top b { font-size: 13px; }
.phone-mini .pm-kpis { gap: 6px; }
.phone-mini .pm-kpi { padding: 6px 7px; }
.phone-mini .pm-kpi small { font-size: 9.5px; }
.phone-mini .pm-kpi b { font-size: 13.5px; }
.phone-mini .pm-chat b { font-size: 11.5px; }
.phone-mini .pm-chat small { font-size: 10px; }
@media (max-width: 991px) {
  .hl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hl-card, .hl-card.wide { grid-column: span 1; }
  .hl-card:first-child { grid-column: span 2; }
}
@media (max-width: 640px) {
  .hl-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .hl-card:first-child { grid-column: span 1; }
  .hl-media { padding: 12px 12px 0; }
  .hl-media .hl-inset { width: 56%; inset-inline-start: 8px; bottom: 8px; }
  .hl-body { padding: 18px 18px 20px; }
}

/* ---------- Highlights v2 (2026-09-30): one full-width row per highlight, larger sharp screenshots ---------- */
.hl-grid { display: flex; flex-direction: column; gap: 28px; }
.hl-card, .hl-card.wide { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: stretch; }
.hl-card:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
.hl-card:nth-child(even) .hl-media { order: 2; }
.hl-media { aspect-ratio: auto; padding: 22px 22px 0; display: flex; align-items: flex-end; }
.hl-media > .real-shot { height: auto; width: 100%; }
.hl-media .real-shot img { height: auto; width: 100%; object-fit: contain; }
.hl-media .hl-inset { width: 46%; bottom: 16px; }
.hl-media .hl-inset img { aspect-ratio: auto; }
.hl-phone { align-items: center; padding: 26px 22px; }
.hl-body { justify-content: center; padding: 28px 32px; }
.hl-head h3 { font-size: 22px; }
.hl-body p { font-size: 17px; }
html[lang="ar"] .hl-body p { font-size: 18px; }
.hl-media .real-shot img, .hl-media .hl-inset img { cursor: zoom-in; }
@media (max-width: 900px) {
  .hl-card, .hl-card.wide, .hl-card:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
  .hl-card:nth-child(even) .hl-media { order: 0; }
  .hl-media { padding: 14px 14px 0; }
  .hl-body { padding: 20px 18px 22px; }
}
/* click-to-enlarge */
.zoom-overlay { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, .82); cursor: zoom-out; }
.zoom-overlay img { max-width: min(1400px, 100%); max-height: 100%; border-radius: 8px; box-shadow: 0 12px 40px rgba(0, 0, 0, .5); background: #fff; }
.zoom-overlay button { position: absolute; top: 14px; inset-inline-end: 14px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: #333; font-size: 26px; line-height: 1; cursor: pointer; }
