/* ISF website. Brand: white 60 / navy 30 / blue 10, Inter (IBM Plex Sans Arabic for Arabic), dot grid pattern. */
:root {
  --navy: #0f172a;
  --navy-2: #172238;
  --blue: #0066e5;
  --blue-dark: #0052b8;
  --blue-soft: #eef5ff;
  --page: #ffffff;
  --soft: #f5f7fb;
  --ink: #0f172a;
  --text: #2b3548;
  --muted: #55607a;
  --line: #e1e6ef;
  --on-navy: #c9d2e3;
  --radius: 14px;
  --font: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-ar: 'IBM Plex Sans Arabic', 'Inter', Tahoma, sans-serif;
  --max: 1200px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 12px 32px rgba(15, 23, 42, .10);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, .06), 0 30px 60px rgba(15, 23, 42, .16);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--text); font: 400 16px/1.65 var(--font); }
html[lang="ar"] body { font-family: var(--font-ar); line-height: 1.8; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(27px, 3.3vw, 40px); line-height: 1.12; font-weight: 800; letter-spacing: -0.022em; }
h3 { font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; font-weight: 700; }
html[lang="ar"] h1 { line-height: 1.25; }
html[lang="ar"] h2 { line-height: 1.3; }
p { margin: 0; }
.ltr { direction: ltr; unicode-bidi: isolate; }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--navy); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 60; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

.container { max-width: var(--max); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 860px; }

.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 14px; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 56ch; margin-top: 20px; }
.lead-sm { font-size: 17px; color: var(--muted); margin-top: 14px; max-width: 54ch; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 11px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; font-family: inherit; white-space: nowrap; transition: background .15s, border-color .15s, transform .15s; }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 16px; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { border-color: #cfd7e4; color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--navy); }
.btn-on-navy { border-color: rgba(255,255,255,.35); color: #fff; background: transparent; }
.btn-on-navy:hover { background: rgba(255,255,255,.08); }
.btn svg { flex: none; }
.btn-ghost svg { color: #1faa53; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.textlink { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; margin-top: 18px; }
.textlink:hover { text-decoration: underline; }
.arr { transition: transform .15s; }
html[dir="rtl"] .arr { transform: scaleX(-1); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.5) blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 28px; min-height: 70px; }
.logo { display: inline-flex; color: var(--navy); direction: ltr; flex: none; }
.logo svg { width: 150px; height: auto; display: block; direction: ltr; unicode-bidi: isolate; }
.nav { display: flex; align-items: center; gap: 4px; font-size: 15px; }
.nav > a, .dd > summary { color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 8px; cursor: pointer; }
.nav > a:hover, .dd > summary:hover { background: var(--soft); }
.bar-end { margin-inline-start: auto; display: flex; align-items: center; gap: 14px; }
.lang { color: var(--muted); text-decoration: none; font-size: 15px; }
.lang:hover { color: var(--ink); }
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
.dd { position: relative; }
.dd > summary { display: inline-flex; align-items: center; gap: 6px; }
.dd[open] > summary svg { transform: rotate(180deg); }
.dd-panel { position: absolute; top: calc(100% + 10px); inset-inline-start: 0; width: 330px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; display: grid; }
.dd-panel a, .mm-panel a:not(.btn) { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.dd-panel a:hover, .mm-panel a:not(.btn):hover { background: var(--soft); }
.dd-panel strong, .mm-panel strong { font-weight: 600; font-size: 15px; }
.dd-panel span, .mm-panel span { font-size: 13.5px; color: var(--muted); }
.narrow-dd { width: 260px; }
.mm-head { margin: 10px 12px 2px; font-size: 12.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
html[lang="ar"] .mm-head { letter-spacing: 0; }
.mm { display: none; }
.mm > summary { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-content: center; gap: 4px; cursor: pointer; }
.mm > summary span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }
.mm-panel { position: fixed; top: 70px; inset-inline: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 10px max(16px, env(safe-area-inset-left, 0px)) 18px; display: grid; gap: 2px; max-height: calc(100dvh - 70px); overflow-y: auto; }
.mm-panel .btn { margin-top: 10px; }
@media (max-width: 1020px) {
  .nav { display: none; }
  .mm { display: block; }
  .bar-end .lang { display: none; }
}
@media (max-width: 520px) {
  .logo svg { width: 122px; }
  .bar-end .btn-sm { display: none; }
}

/* Pattern */
.dots { background-image: radial-gradient(rgba(15,23,42,.11) 1.5px, transparent 1.6px); background-size: 24px 24px; }
.dots-navy { background-color: var(--navy); background-image: radial-gradient(rgba(255,255,255,.12) 1.5px, transparent 1.6px); background-size: 24px 24px; }
.hero-bg { position: absolute; inset: 0; -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 95%); mask-image: linear-gradient(to bottom, #000 30%, transparent 95%); pointer-events: none; }

/* Hero */
.hero { position: relative; padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 104px); overflow: hidden; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-copy h1 { max-width: 13ch; }
.trust { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 10px 22px; font-size: 14.5px; color: var(--text); }
.trust li, .checks li { display: flex; align-items: flex-start; gap: 9px; }
.trust svg, .checks svg { flex: none; margin-top: 3px; }
.hero-visual { position: relative; padding-bottom: 28px; padding-inline-end: 34px; }
.hero-visual .frame { box-shadow: var(--shadow-lg); }
.hero-visual .phone { position: absolute; bottom: 0; inset-inline-end: 0; width: 30%; max-width: 190px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { padding-inline-end: 18px; }
  .hero-visual .phone { width: 28%; }
  .trust { grid-template-columns: 1fr; }
}

/* Screenshot frames */
.frame { margin: 0; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); min-width: 0; }
.frame-bar { display: flex; gap: 6px; padding: 10px 12px; background: #f3f5f9; border-bottom: 1px solid var(--line); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d6dce6; }
.frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
html[dir="rtl"] .frame img { object-position: top right; }
.phone { margin: 0; border-radius: 30px; padding: 8px; background: var(--navy); box-shadow: var(--shadow-lg); }
.phone img { border-radius: 23px; width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; }

/* Sections */
.section { padding-block: clamp(64px, 8vw, 104px); }
.soft { background: var(--soft); }
.section-head { display: grid; gap: 14px; margin-bottom: 40px; max-width: 64ch; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head p { color: var(--muted); font-size: 18px; }

.paths-sec { padding-block: clamp(48px, 6vw, 72px); }
.paths { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.paths.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1080px) { .paths.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.path { position: relative; display: grid; gap: 4px; padding: 20px 46px 20px 20px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; background: #fff; transition: border-color .15s, box-shadow .15s; }
html[dir="rtl"] .path { padding: 20px 20px 20px 46px; }
.path strong { color: var(--ink); font-size: 16.5px; font-weight: 600; }
.path span { color: var(--muted); font-size: 14.5px; }
.path .arr { position: absolute; top: 22px; inset-inline-end: 18px; color: var(--blue); }
.path:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.path:hover .arr { transform: translateX(3px); }
html[dir="rtl"] .path:hover .arr { transform: scaleX(-1) translateX(3px); }
@media (max-width: 900px) { .paths { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .paths, .paths.four { grid-template-columns: 1fr; } }

/* Tabs */
.tablist { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 14px; width: fit-content; max-width: 100%; margin: 0 auto 36px; }
.tablist button { font: inherit; font-size: 15px; font-weight: 600; color: var(--muted); background: transparent; border: 0; padding: 9px 16px; border-radius: 10px; cursor: pointer; }
.tablist button:hover { color: var(--ink); }
.tablist button[aria-selected="true"] { background: var(--navy); color: #fff; }
.tabpanel { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.tabpanel[hidden] { display: none; }
.tab-copy h3 { font-size: clamp(22px, 2.4vw, 28px); }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; font-size: 16px; }
.checks.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 22px; }
@media (max-width: 860px) { .tabpanel { grid-template-columns: 1fr; } .checks.cols { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .tablist { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; width: 100%; } .tablist button { flex: none; } }

/* Why */
.why { display: grid; gap: 22px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.why.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.why > div { display: grid; gap: 10px; align-content: start; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.why p { color: var(--muted); font-size: 15.5px; }
.why-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--navy); margin-bottom: 6px; }
.why-dot.blue { background: var(--blue); }
.problems > div { border-inline-start: 3px solid var(--navy); }
.problems h3 { font-size: 18px; }
.group-note { margin-top: 22px; padding: 16px 20px; border-inline-start: 3px solid var(--blue); background: #fff; border-radius: 8px; color: var(--ink); max-width: 78ch; }
@media (max-width: 1020px) { .why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .why, .why.three { grid-template-columns: 1fr; } }
.expertise { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); border-inline-start: 4px solid var(--blue); border-radius: var(--radius); background: #fff; margin-bottom: 22px; }
.exp-stat { display: grid; gap: 4px; text-align: center; }
.exp-stat strong { font-size: clamp(48px, 7vw, 72px); font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--blue); }
.exp-stat span { font-size: 14px; font-weight: 600; color: var(--muted); max-width: 16ch; }
.exp-copy { display: grid; gap: 12px; }
.exp-copy h3 { font-size: clamp(20px, 2.2vw, 24px); }
.exp-copy p { color: var(--muted); font-size: 16.5px; max-width: 68ch; }
@media (max-width: 560px) { .expertise { grid-template-columns: 1fr; } .exp-stat { text-align: start; } }

/* Split sections */
.split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.split.rev { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.85fr); }
.split.rev > .split-copy { order: 2; }
@media (max-width: 900px) { .split, .split.rev { grid-template-columns: 1fr; } .split.rev > .split-copy { order: 0; } }

.industries { display: grid; gap: 18px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ind { padding: 24px; border-top: 3px solid var(--navy); background: var(--soft); border-radius: 0 0 var(--radius) var(--radius); display: grid; gap: 8px; align-content: start; }
.ind:first-child { border-top-color: var(--blue); }
.soft .ind { background: #fff; }
.ind p { color: var(--muted); font-size: 15.5px; }
.ind .textlink { margin-top: 6px; }
@media (max-width: 1020px) { .industries { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .industries { grid-template-columns: 1fr; } }

.navy-sec { color: #fff; }
.on-navy h2 { color: #fff; }
.on-navy .lead-sm { color: var(--on-navy); }
.phones { display: flex; justify-content: center; gap: 24px; }
.phones .phone { width: min(44%, 230px); background: #24324f; }
.phones .phone:nth-child(2) { margin-top: 48px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: step; position: relative; }
.steps li { counter-increment: step; display: grid; gap: 10px; align-content: start; position: relative; }
.steps li::before { content: counter(step); width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 16px; position: relative; z-index: 1; }
.steps li:first-child::before { background: var(--blue); }
.steps li:not(:last-child)::after { content: ''; position: absolute; top: 20px; inset-inline-start: 48px; inset-inline-end: -12px; height: 2px; background: var(--line); }
.steps p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .steps li::after { display: none; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; padding: 18px 28px 18px 0; font-weight: 600; color: var(--ink); position: relative; font-size: 16.5px; }
html[dir="rtl"] .faq summary { padding: 18px 0 18px 28px; }
.faq summary::after { content: '+'; position: absolute; inset-inline-end: 0; top: 14px; font-size: 22px; font-weight: 400; color: var(--blue); }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding-bottom: 18px; color: var(--muted); }

/* Band */
.band { color: #fff; padding-block: clamp(56px, 7vw, 88px); }
.band-in { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.band h2 { color: #fff; max-width: 20ch; }
.band p { color: var(--on-navy); margin-top: 12px; font-size: 17px; }
.band .actions { margin-top: 0; }

/* Product pages */
.phero { position: relative; padding-block: clamp(44px, 6vw, 80px); overflow: hidden; border-bottom: 1px solid var(--line); }
.phero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 60px); align-items: center; }
.phero h1 { font-size: clamp(34px, 4.6vw, 54px); }
@media (max-width: 900px) { .phero-grid { grid-template-columns: 1fr; } }
.page-hero { position: relative; padding-block: clamp(48px, 7vw, 88px) clamp(36px, 5vw, 60px); border-bottom: 1px solid var(--line); overflow: hidden; }
.page-hero .container { position: relative; }

/* Pricing */
.packages { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.package { position: relative; display: grid; gap: 12px; grid-template-rows: auto 1fr auto; padding: 30px 24px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.package.rec { border: 2px solid var(--blue); box-shadow: var(--shadow); }
.package .badge { position: absolute; top: -13px; inset-inline-start: 20px; background: var(--blue); color: #fff; font-size: 12.5px; font-weight: 600; padding: 3px 11px; border-radius: 999px; }
.package p { color: var(--muted); }
.package .btn { margin-top: 10px; }
.quote-grid { display: grid; gap: 22px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.quote-grid > div { display: grid; gap: 8px; align-content: start; }
.quote-grid p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 900px) { .packages { grid-template-columns: 1fr; } .quote-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .quote-grid { grid-template-columns: 1fr; } }

/* Demo flow */
.demo-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) { .demo-grid { grid-template-columns: 1fr; } }
.next-box { background: var(--soft); border-radius: 16px; padding: 26px; display: grid; gap: 18px; }
.next-box h2 { font-size: 22px; }
.mini-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: m; }
.mini-steps li { counter-increment: m; display: grid; grid-template-columns: 30px 1fr; gap: 2px 12px; }
.mini-steps li::before { content: counter(m); grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.mini-steps strong { color: var(--ink); }
.mini-steps span { color: var(--muted); font-size: 15px; }
.flow-card { border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 4vw, 36px); background: #fff; display: grid; gap: 20px; box-shadow: var(--shadow); }
.progress { display: flex; gap: 6px; }
.progress span { height: 6px; flex: 1; border-radius: 999px; background: var(--line); transition: background .2s; }
.progress span.on { background: var(--blue); }
.flow-meta { font-size: 14px; color: var(--muted); }
.flow h2 { font-size: clamp(22px, 3vw, 28px); }
.options { display: grid; gap: 10px; }
.option { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font: inherit; font-size: 16px; color: var(--ink); text-align: start; cursor: pointer; transition: border-color .15s, background .15s; }
.option:hover { border-color: var(--navy); }
.option[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-soft); }
.option .tick { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid #c7cfdc; flex: none; display: grid; place-items: center; }
.option.radio .tick { border-radius: 50%; }
.option[aria-pressed="true"] .tick { background: var(--blue); border-color: var(--blue); }
.option[aria-pressed="true"] .tick::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.flow-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.link-btn { background: none; border: 0; font: inherit; color: var(--muted); cursor: pointer; padding: 8px 0; }
.link-btn:hover { color: var(--ink); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.reach { display: grid; gap: 10px; }
.reach .btn { width: 100%; min-height: 56px; font-size: 16px; }
.reach .btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.reach .btn-outline:hover { border-color: var(--navy); }
.contact-lines { display: grid; gap: 6px; color: var(--muted); font-size: 15px; }
.contact-lines strong { color: var(--ink); direction: ltr; unicode-bidi: isolate; user-select: all; }
.done-mark { width: 52px; height: 52px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; }

/* Prose */
.prose { display: grid; gap: 28px; max-width: 68ch; }
.prose section { display: grid; gap: 8px; }
.prose h2 { font-size: 20px; }
.prose p { color: var(--muted); }

/* Footer */
.site-footer { background: var(--navy); color: #fff; padding-block: 56px 32px; }
.site-footer .container { display: grid; gap: 36px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-brand .logo { color: #fff; }
.footer-brand p { color: var(--on-navy); margin-top: 14px; max-width: 30ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 48px; }
.footer-links div { display: grid; gap: 9px; align-content: start; font-size: 15px; }
.footer-links h2 { font-size: 13px; color: #fff; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; margin-bottom: 4px; }
html[lang="ar"] .footer-links h2 { letter-spacing: 0; font-size: 14px; }
.footer-links a, .footer-links span { color: var(--on-navy); text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; font-size: 14px; color: var(--on-navy); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer-bottom a { color: inherit; }

/* WhatsApp button */
.wa-float { position: fixed; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); inset-inline-end: max(20px, env(safe-area-inset-right, 0px)); width: 56px; height: 56px; border-radius: 50%; background: #1faa53; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(15, 23, 42, .25); z-index: 30; }
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { background: #178a43; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Services and Why ISF */
.phones.single .phone { width: min(60%, 260px); margin: 0 auto; }
.svc-card { border-radius: var(--radius); border: 1px solid var(--line); background-color: #fff; min-height: 300px; display: grid; place-items: center; gap: 14px; align-content: center; text-align: center; padding: 32px; }
.svc-card strong { font-size: 22px; color: var(--ink); max-width: 16ch; }
.svc-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--blue); }
.story { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.story-text { display: grid; gap: 18px; font-size: 18px; color: var(--text); }
.story-end { font-weight: 600; color: var(--ink); font-size: 20px; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } }
.beliefs { display: grid; gap: 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.beliefs > div { border-top: 2px solid rgba(255,255,255,.25); padding-top: 18px; display: grid; gap: 8px; }
.beliefs > div:first-child { border-top-color: var(--blue); }
.beliefs h3 { color: #fff; font-size: 21px; }
.beliefs p { color: var(--on-navy); }
@media (max-width: 860px) { .beliefs { grid-template-columns: 1fr; } }
.why-hero h1 { max-width: 18ch; }

.ba { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; align-items: center; }
.ba-col { border-radius: var(--radius); border: 1px solid var(--line); background: #fff; padding: 22px; display: grid; gap: 12px; align-content: start; min-height: 260px; }
.ba-col.after { border: 2px solid var(--blue); box-shadow: var(--shadow); }
.ba-label { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
html[lang="ar"] .ba-label { letter-spacing: 0; }
.ba-col.after .ba-label { color: var(--blue); }
.ba ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ba-col:not(.after) li { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(85,96,122,.45); }
.ba-col.after li { display: flex; gap: 9px; color: var(--ink); font-weight: 500; }
.ba-col.after li svg { flex: none; margin-top: 3px; }
.ba-arrow { color: var(--blue); }
@media (max-width: 560px) { .ba { grid-template-columns: 1fr; } .ba-arrow { justify-self: center; transform: rotate(90deg); } html[dir="rtl"] .ba-arrow { transform: rotate(90deg); } }

/* Example store design */
.store-mock { position: relative; margin: 0; padding-bottom: 30px; padding-inline-end: 40px; min-width: 0; }
.store-mock figcaption { position: absolute; bottom: 0; inset-inline-start: 0; font-size: 13px; color: var(--muted); }
.sm-desktop { box-shadow: var(--shadow-lg); }
.sm-page { background: #fbf8f4; color: #2b1d16; font-size: 12px; }
.sm-head { display: flex; align-items: center; gap: 16px; padding: 12px 16px; background: #fff; border-bottom: 1px solid #efe7de; }
.sm-head strong { font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.sm-nav { display: flex; gap: 14px; color: #7a6253; }
.sm-cart { margin-inline-start: auto; color: #2b1d16; flex: none; }
.sm-hero { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 16px; padding: 18px; border-radius: 12px; background: #2b1d16; color: #fff; }
.sm-hero p { font-size: 17px; font-weight: 700; line-height: 1.25; max-width: 18ch; margin-bottom: 10px; }
.sm-hero svg { width: 60px; flex: none; }
.sm-btn { display: inline-block; background: #d9a066; color: #2b1d16; padding: 5px 12px; border-radius: 999px; font-weight: 700; font-size: 11px; }
.sm-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 0 16px 16px; }
.sm-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sm-card { background: #fff; border: 1px solid #efe7de; border-radius: 10px; padding: 8px; display: grid; gap: 3px; }
.sm-img { background: #f3ece4; border-radius: 8px; display: grid; place-items: center; padding: 8px 0; }
.sm-img svg { width: 42px; }
.sm-card b { font-size: 11.5px; }
.sm-price { color: #7a6253; font-size: 11px; direction: ltr; unicode-bidi: isolate; }
.sm-add { justify-self: start; background: #2b1d16; color: #fff; border-radius: 6px; padding: 2px 8px; font-size: 10.5px; font-weight: 600; margin-top: 2px; }
.sm-phone { position: absolute; bottom: 0; inset-inline-end: 0; width: 34%; max-width: 200px; padding: 6px; }
.sm-phone .sm-page { border-radius: 22px; overflow: hidden; }
.sm-page.small .sm-hero { margin: 10px; padding: 12px; }
.sm-page.small .sm-hero p { font-size: 13px; }
.sm-page.small .sm-grid { padding: 0 10px 12px; gap: 8px; }

/* Consulting before / after */
.consult-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 56px); align-items: start; margin-bottom: 40px; }
@media (max-width: 860px) { .consult-head { grid-template-columns: 1fr; } }
.ba2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 22px; align-items: stretch; }
@media (max-width: 860px) { .ba2 { grid-template-columns: 1fr; } }
.ba2-col { border-radius: 16px; border: 1px solid var(--line); background: #fff; padding: 20px; display: grid; gap: 16px; align-content: start; min-width: 0; }
.ba2-col.after { border: 2px solid var(--blue); box-shadow: var(--shadow); }
.ba2-col.after .ba-label { color: var(--blue); }
.ba-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; grid-template-columns: repeat(2, minmax(0, 1fr)); font-size: 14.5px; }
.ba2-col:not(.after) .ba-list li { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(194,58,58,.55); }
.ba2-col.after .ba-list li { display: flex; gap: 8px; color: var(--ink); font-weight: 500; }
.ba2-col.after .ba-list svg { flex: none; margin-top: 3px; }
.ba2-col.after .frame { box-shadow: none; }
@media (max-width: 520px) { .ba-list { grid-template-columns: 1fr; } }

.mess { position: relative; min-height: 330px; background: #f1ede6; border-radius: 12px; overflow: hidden; }
.mess-sheet { position: absolute; top: 18px; inset-inline-start: 16px; width: 56%; background: #fff; border: 1px solid #cfd8cf; box-shadow: 0 6px 16px rgba(0,0,0,.12); transform: rotate(-2deg); font-size: 12px; }
.ms-title { background: #1d6f42; color: #fff; padding: 4px 8px; font-size: 11px; direction: ltr; text-align: start; }
.mess-sheet table { width: 100%; border-collapse: collapse; }
.mess-sheet th, .mess-sheet td { border: 1px solid #dfe5df; padding: 4px 6px; text-align: start; }
.mess-sheet th { background: #f3f6f3; font-weight: 600; color: #33443a; }
.mess-sheet td.bad { background: #fde8e8; color: #b42318; font-weight: 600; }
.mess-note { position: absolute; bottom: 16px; inset-inline-start: 26px; width: 46%; background: #fff3a8; padding: 12px 14px; box-shadow: 0 6px 14px rgba(0,0,0,.14); transform: rotate(3deg); display: grid; gap: 2px; font-family: 'Caveat', cursive; font-size: 20px; color: #3b3220; line-height: 1.15; }
html[lang="ar"] .mess-note { font-family: 'Aref Ruqaa', serif; font-size: 17px; line-height: 1.5; }
.mess-note .struck { text-decoration: line-through; text-decoration-color: #c23a3a; }
.mess-chat { position: absolute; top: 46%; inset-inline-end: 14px; width: 44%; display: grid; gap: 6px; }
.bub { display: block; padding: 7px 10px; border-radius: 10px; font-size: 12px; line-height: 1.35; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.bub.in { background: #fff; justify-self: start; border-start-start-radius: 2px; }
.bub.out { background: #d9fdd3; justify-self: end; border-start-end-radius: 2px; }
@media (max-width: 520px) { .mess { min-height: 330px; } .mess-sheet { width: 80%; } .mess-chat { top: 44%; width: 62%; } .mess-note { width: 52%; } }

/* Ask ISF assistant */
.wa-float { bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
.chat-launcher { position: fixed; z-index: 31; bottom: calc(88px + env(safe-area-inset-bottom, 0px)); inset-inline-end: max(20px, env(safe-area-inset-right, 0px)); display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--navy); color: #fff; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; box-shadow: 0 8px 24px rgba(15, 23, 42, .28); transition: transform .15s; }
.chat-launcher:hover { transform: translateY(-1px); }
.chat-launcher.open { background: var(--blue); }
.chat-panel { position: fixed; z-index: 32; bottom: calc(148px + env(safe-area-inset-bottom, 0px)); inset-inline-end: max(20px, env(safe-area-inset-right, 0px)); width: min(380px, calc(100vw - 32px)); max-height: min(600px, calc(100dvh - 180px)); display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--navy); color: #fff; }
.chat-title { display: grid; }
.chat-title span { font-size: 12.5px; color: var(--on-navy); }
.chat-close { background: transparent; border: 0; color: #fff; cursor: pointer; padding: 6px; border-radius: 8px; display: grid; }
.chat-close:hover { background: rgba(255, 255, 255, .1); }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; display: grid; gap: 10px; align-content: start; background: var(--soft); min-height: 200px; }
.chat-msg { max-width: 85%; padding: 9px 12px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-msg.bot { background: #fff; border: 1px solid var(--line); justify-self: start; border-start-start-radius: 4px; color: var(--ink); }
.chat-msg.user { background: var(--blue); color: #fff; justify-self: end; border-start-end-radius: 4px; }
.chat-msg.typing { color: var(--muted); }
.chat-msg a { color: var(--blue); }
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px 0; background: var(--soft); }
.chat-chip { font: inherit; font-size: 13px; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 6px 11px; cursor: pointer; }
.chat-chip:hover { border-color: var(--blue); color: var(--blue); }
.chat-form { display: flex; gap: 8px; padding: 12px 14px; background: var(--soft); }
.chat-form textarea { flex: 1; resize: none; font: inherit; font-size: 16px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; max-height: 120px; }
.chat-form textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: transparent; }
.chat-send { width: 44px; border: 0; border-radius: 12px; background: var(--blue); color: #fff; cursor: pointer; display: grid; place-items: center; }
html[dir="rtl"] .chat-send svg { transform: scaleX(-1); }
.chat-send[disabled] { opacity: .5; cursor: wait; }
.chat-foot { display: grid; gap: 4px; padding: 10px 14px 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.chat-human { color: var(--blue); font-weight: 600; font-size: 13px; text-decoration: none; }
@media (max-width: 520px) { .chat-launcher span { display: none; } .chat-launcher { width: 48px; padding: 0; justify-content: center; } .chat-panel { bottom: calc(144px + env(safe-area-inset-bottom, 0px)); } }

.chat-msg.note { justify-self: center; max-width: 95%; background: transparent; color: var(--muted); font-size: 12.5px; text-align: center; padding: 2px 8px; }
/* Phone: links stacked in lists get a taller tap area. */
@media (max-width: 560px) { .footer-links div { gap: 2px; } .footer-links a { padding-block: 8px; } .footer-links h2 { margin-bottom: 6px; } .ind .textlink { padding-block: 9px; margin-top: 0; } .footer-bottom a { padding-block: 8px; } }

/* Browser touches. The scrollbar, text selection, form controls and typing cursor take the brand colours. */
html { scrollbar-color: var(--navy) #eef1f6; accent-color: var(--blue); background: var(--page); }
::selection { background: var(--blue); color: #fff; }
input, textarea { caret-color: var(--blue); }
/* Links to a part of a page land below the sticky header, not under it. */
[id] { scroll-margin-top: 92px; }
/* Pulled past the end of the page, a phone shows the colour behind it: white above, navy below the footer (site.js). */
html.past-mid { background: var(--navy); }
/* A blue line under the header fills as the visitor scrolls down the page. No script: the scroll position drives it. */
.site-header::after { content: ''; position: absolute; inset-inline: 0; bottom: -1px; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
html[dir="rtl"] .site-header::after { transform-origin: 100% 50%; }
@keyframes read-progress { to { transform: scaleX(1); } }
@supports (animation-timeline: scroll()) { .site-header::after { animation: read-progress linear both; animation-timeline: scroll(root block); } }
/* Moving between pages cross-fades, and the header stays still. */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }
