/* New Splash — shared site styles (warm editorial) */

:root {
  --bg: #FAF8F5;
  --paper: #FFFFFF;
  --sunk: #F1EDE6;
  --ink: #1C1B18;
  --ink-2: #4A4740;
  --muted: #6E6A62;
  --rule: rgba(28, 27, 24, 0.12);
  --rule-soft: rgba(28, 27, 24, 0.07);
  --accent: #17695D;
  --accent-ink: #FFFFFF;
  --honey: #B8741C;
  --coffee: #1A1714;
  --coffee-2: #26211C;
  --gold: #D4AF5F;
  --shadow: 0 1px 2px rgba(28, 27, 24, .06), 0 24px 48px -28px rgba(28, 27, 24, .35);

  --display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --arabic: "IBM Plex Sans Arabic", "Cairo", "Segoe UI", Tahoma, sans-serif;
  --arabic-display: "Cairo", "IBM Plex Sans Arabic", sans-serif;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131210;
    --paper: #1C1A17;
    --sunk: #24211D;
    --ink: #EDEAE4;
    --ink-2: #CFCAC1;
    --muted: #A39D93;
    --rule: rgba(237, 234, 228, 0.14);
    --rule-soft: rgba(237, 234, 228, 0.08);
    --accent: #4FD9C4;
    --accent-ink: #0F2A26;
    --honey: #F0B85C;
    --coffee: #0D0C0B;
    --coffee-2: #1A1815;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 24px 48px -28px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #131210; --paper: #1C1A17; --sunk: #24211D; --ink: #EDEAE4; --ink-2: #CFCAC1;
  --muted: #A39D93; --rule: rgba(237,234,228,.14); --rule-soft: rgba(237,234,228,.08);
  --accent: #4FD9C4; --accent-ink: #0F2A26; --honey: #F0B85C; --coffee: #0D0C0B; --coffee-2: #1A1815;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 24px 48px -28px rgba(0,0,0,.8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
[dir="rtl"] body, body[dir="rtl"], html[dir="rtl"] body { font-family: var(--arabic); }
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: color-mix(in srgb, var(--accent) 25%, transparent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}
[dir="rtl"] .eyebrow { letter-spacing: 0; font-family: var(--arabic); font-size: 14px; }
.display {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
}
.display em { font-style: normal; color: var(--accent); }
.h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0;
}
.h2 em { font-style: normal; color: var(--accent); }
.h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}
.lede { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.6; color: var(--ink-2); max-width: 34em; margin: 24px 0 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 30px; height: 30px; flex: none; transform: translateY(-2px); }
.brand-name { font-family: var(--display); font-size: 22px; line-height: 1; letter-spacing: -0.01em; font-weight: 600; white-space: nowrap; }
.brand-sub { font-size: 13px; color: var(--muted); padding-inline-start: 10px; margin-inline-start: 2px; border-inline-start: 1px solid var(--rule); white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-size: 15px; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; margin: -8px; color: var(--ink); cursor: pointer; }
.nav-toggle svg { width: 24px; height: 24px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px;
  font: 500 15px/1 var(--sans);
  text-decoration: none; cursor: pointer;
  border: 1px solid var(--ink);
  background: var(--ink); color: var(--bg);
  transition: transform .15s ease, background .15s, color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.small { padding: 9px 16px; font-size: 14px; }
.btn svg { width: 16px; height: 16px; }
[dir="rtl"] .btn { font-family: var(--arabic); }
[dir="rtl"] .btn .arrow { transform: scaleX(-1); }

.badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.badges a { display: block; line-height: 0; border-radius: 9px; transition: transform .15s; }
.badges a:hover { transform: translateY(-1px); }
.badges img { height: 48px; width: auto; }

/* ---------- sections ---------- */
section { position: relative; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section.tight { padding: clamp(48px, 7vw, 88px) 0; }
.rule-top { border-top: 1px solid var(--rule); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head p { margin: 0; color: var(--ink-2); max-width: 30em; }

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(64px, 9vw, 112px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--muted); max-width: 34em; }
.hero-meta b { color: var(--ink); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- phone ---------- */
.phone {
  position: relative;
  width: 100%; max-width: 320px;
  aspect-ratio: 738 / 1435;
  border-radius: 40px;
  padding: 9px;
  background: #1D1C1A;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), var(--shadow);
  margin: 0 auto;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 31px; background: #F4F2EC; }
.phone.sm { max-width: 260px; border-radius: 34px; padding: 8px; }
.phone.sm img { border-radius: 26px; }
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual .phone { max-width: 340px; }
.float-note {
  position: absolute; z-index: 2;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: var(--shadow);
  font-size: 14px; line-height: 1.35;
  max-width: 210px;
}
.float-note b { display: block; font-family: var(--display); font-weight: 600; font-size: 20px; }

/* ---------- app index (home) ---------- */
.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.index li { border-bottom: 1px solid var(--rule); }
.index a {
  display: grid;
  grid-template-columns: 56px 64px minmax(0, 1.2fr) minmax(0, 1fr) auto;
  gap: 24px; align-items: center;
  padding: 28px 0; text-decoration: none; color: var(--ink);
  transition: background .2s;
}
.index a:hover { background: linear-gradient(90deg, transparent, var(--rule-soft), transparent); }
.index .num { font-family: var(--display); font-size: 18px; color: var(--muted); font-variant-numeric: tabular-nums; }
.index .icon { width: 64px; height: 64px; border-radius: 15px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 8px 18px -10px rgba(0,0,0,.4); }
.index .icon img { width: 100%; height: 100%; object-fit: cover; }
.index .icon.bc img { transform: scale(1.36); }
.index .name { font-family: var(--display); font-size: clamp(26px, 3vw, 34px); line-height: 1.1; letter-spacing: -0.01em; }
.index .desc { color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
.index .go { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--rule); transition: background .2s, color .2s, border-color .2s; }
.index a:hover .go { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.index .go svg { width: 18px; height: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { font-size: 12px; font-weight: 500; color: var(--muted); border: 1px solid var(--rule); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }

/* ---------- showcase strip ---------- */
.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); align-items: start; }
.strip figure { margin: 0; }
.strip figure:nth-child(2) { margin-top: clamp(24px, 5vw, 64px); }
.strip figcaption { margin-top: 18px; font-size: 14.5px; color: var(--ink-2); max-width: 22em; margin-inline: auto; text-align: center; }
.strip figcaption b { display: block; color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 19px; margin-bottom: 2px; }

/* ---------- principles ---------- */
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); }
.principles > div { padding-block: 28px 8px; padding-inline: 0 28px; }
.principles > div + div { padding-inline-start: 28px; border-inline-start: 1px solid var(--rule); }
.principles .n { font-family: var(--display); color: var(--accent); font-size: 15px; margin-bottom: 18px; display: block; }
.principles h3 { font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1.2; margin: 0 0 10px; }
.principles p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* ---------- feature rows (product page) ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 112px); align-items: center; padding: clamp(56px, 8vw, 104px) 0; border-top: 1px solid var(--rule); }
.feature:nth-of-type(even) .feature-media { order: -1; }
.feature-copy { max-width: 30em; }
.feature-copy .num { display: block; font-family: var(--display); font-size: 15px; color: var(--accent); margin-bottom: 18px; }
.feature-copy p { color: var(--ink-2); margin: 20px 0 0; }
.feature-copy ul { list-style: none; padding: 0; margin: 24px 0 0; border-top: 1px solid var(--rule); }
.feature-copy li { padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 15.5px; color: var(--ink-2); display: flex; gap: 12px; }
.feature-copy li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 999px; background: var(--accent); margin-top: 10px; }
.feature-media { display: flex; justify-content: center; position: relative; }
.feature-media .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; width: 100%; max-width: 520px; align-items: start; }
.feature-media .pair .phone:last-child { margin-top: 48px; }
.widget-card { width: 100%; max-width: 360px; border-radius: 28px; padding: 22px; background: linear-gradient(165deg, #3A2C8C 0%, #6B3BB0 45%, #B35AA8 85%, #E08FB4 100%); box-shadow: var(--shadow); }
.widget-card img { border-radius: 22px; }

/* ---------- panels ---------- */
.panel { background: var(--paper); border: 1px solid var(--rule); border-radius: 24px; padding: clamp(28px, 4vw, 48px); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.facts > div { padding-block: 4px; padding-inline: 0 28px; }
.facts > div + div { padding-inline-start: 28px; border-inline-start: 1px solid var(--rule); }
.facts h3 { font-family: var(--display); font-weight: 600; font-size: 20px; margin: 0 0 8px; }
.facts p { margin: 0; font-size: 15px; color: var(--ink-2); }
.facts a { color: var(--accent); }

.video { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #000; box-shadow: var(--shadow); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* coffee band */
.coffee {
  --ink: #EFE7DA; --ink-2: #CDC2B2; --muted: #9C9283; --rule: rgba(239,231,218,.14); --rule-soft: rgba(239,231,218,.06);
  --accent: var(--gold); --paper: #221E1A;
  background: var(--coffee); color: var(--ink);
}
.coffee .btn { background: var(--ink); color: var(--coffee); border-color: var(--ink); }
.coffee .btn.ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.coffee-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 104px); align-items: center; }
.coffee-icon { width: clamp(180px, 26vw, 300px); aspect-ratio: 1; border-radius: 22%; overflow: hidden; margin: 0 auto; box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.06); }
.coffee-icon img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.36); }

/* contact block */
.contact { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px 64px; align-items: end; }
.mail-link { font-family: var(--display); font-size: clamp(26px, 4vw, 44px); letter-spacing: -0.01em; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--rule); padding-bottom: 6px; display: inline-block; word-break: break-word; transition: border-color .2s, color .2s; }
.mail-link:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding: 56px 0 40px; font-size: 14.5px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.site-footer h4 { font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin: 6px 0 16px; }
[dir="rtl"] .site-footer h4 { letter-spacing: 0; font-family: var(--arabic); font-size: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
.footer-note { margin: 14px 0 0; max-width: 24em; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--rule); font-size: 13px; }

/* ---------- legal / document pages ---------- */
.doc-head { padding: clamp(48px, 8vw, 96px) 0 clamp(32px, 5vw, 48px); border-bottom: 1px solid var(--rule); }
.doc-head .row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.doc-app { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ink-2); text-decoration: none; }
.doc-app img { width: 36px; height: 36px; border-radius: 9px; object-fit: cover; }
.doc-app .bc { overflow: hidden; width: 36px; height: 36px; border-radius: 9px; }
.doc-app .bc img { transform: scale(1.36); border-radius: 0; }
.lang-link { font-size: 14px; text-decoration: none; border: 1px solid var(--rule); border-radius: 999px; padding: 6px 14px; color: var(--ink-2); }
.lang-link:hover { border-color: var(--ink); color: var(--ink); }
.doc-head h1 { font-family: var(--display); font-weight: 500; font-size: clamp(40px, 6vw, 72px); line-height: 1.02; letter-spacing: -0.02em; margin: 0; }
[dir="rtl"] .doc-head h1, [dir="rtl"] .display, [dir="rtl"] .h2 { font-family: var(--arabic-display); font-weight: 700; letter-spacing: 0; line-height: 1.25; }
.doc-head p { margin: 16px 0 0; color: var(--muted); max-width: 40em; }

.doc-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; padding-top: 48px; padding-bottom: 96px; }
.toc { position: sticky; top: 96px; align-self: start; font-size: 14px; }
.toc h4 { font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
[dir="rtl"] .toc h4 { letter-spacing: 0; font-family: var(--arabic); font-size: 13px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; border-inline-start: 1px solid var(--rule); }
.toc a { display: block; padding-inline-start: 14px; margin-inline-start: -1px; border-inline-start: 1px solid transparent; text-decoration: none; color: var(--muted); line-height: 1.4; }
.toc a:hover, .toc a.active { color: var(--ink); border-inline-start-color: var(--accent); }

.prose { max-width: 44em; font-size: 16.5px; line-height: 1.75; color: var(--ink-2); }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-family: var(--display); font-weight: 600; font-size: 27px; line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); margin: 56px 0 14px; scroll-margin-top: 96px; }
.prose h3 { font-family: var(--sans); font-weight: 600; font-size: 17px; color: var(--ink); margin: 32px 0 8px; }
[dir="rtl"] .prose h2 { font-family: var(--arabic-display); font-weight: 700; letter-spacing: 0; }
[dir="rtl"] .prose h3 { font-family: var(--arabic); }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-inline-start: 22px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--muted); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose .highlight-box, .prose .note {
  background: var(--sunk); border-radius: 14px; padding: 18px 22px; margin: 0 0 32px; color: var(--ink-2);
  border-inline-start: 3px solid var(--accent);
}
.prose .highlight-box p:last-child { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: start; padding: 12px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose th { font-weight: 600; color: var(--ink); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; background: var(--sunk); }
[dir="rtl"] .prose th { letter-spacing: 0; text-transform: none; }
.prose section { margin: 0; }
.prose .last-updated { color: var(--muted); }

/* ---------- small pages ---------- */
.center-page { min-height: calc(100vh - 68px - 200px); display: grid; place-items: center; padding: 96px 0; text-align: center; }

.prose .meta-box { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; margin: 0 0 32px; font-size: 15px; }
.prose .meta-item { background: var(--paper); padding: 14px 18px; }
.prose .meta-item strong { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
[dir="rtl"] .prose .meta-item strong { letter-spacing: 0; text-transform: none; font-size: 13px; }

/* ---------- reveal (only when JS runs) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principles > div:nth-child(3) { padding-inline-start: 0; border-inline-start: 0; }
  .principles > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .doc-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { display: none; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .hero-grid, .feature, .coffee-grid, .contact, .section-head { grid-template-columns: minmax(0, 1fr); }
  .feature:nth-of-type(even) .feature-media { order: 0; }
  .hero-visual { margin-top: 8px; }
  .index a { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 8px 16px; }
  .index .num { display: none; }
  .index .icon { width: 52px; height: 52px; border-radius: 12px; grid-row: span 2; align-self: start; }
  .index .desc { grid-column: 2 / 3; }
  .index .go { grid-row: 1; grid-column: 3; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts > div { padding: 18px 0; }
  .facts > div + div { padding-inline-start: 0; border-inline-start: 0; border-top: 1px solid var(--rule); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav { position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 20px; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--rule-soft); font-size: 17px; }
  .nav .btn { margin-top: 14px; justify-content: center; }
  .nav-toggle { display: inline-flex; }
  .brand-sub { display: none; }
  .strip { grid-template-columns: minmax(0, 1fr); max-width: 300px; margin: 0 auto; gap: 48px; }
  .strip figure:nth-child(2) { margin-top: 0; }
  .principles { grid-template-columns: minmax(0, 1fr); }
  .principles > div, .principles > div + div { padding: 24px 0; border-inline-start: 0; }
  .principles > div + div { border-top: 1px solid var(--rule); }
  .feature-media .pair { gap: 12px; }
  .feature-media .pair .phone:last-child { margin-top: 28px; }
  .phone.sm { border-radius: 26px; padding: 6px; }
  .phone.sm img { border-radius: 20px; }
  .float-note { display: none; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .badges img { height: 44px; }
}

/* fixes */
.section-head > :only-child { grid-column: 1 / -1; }
.mail-link { font-size: clamp(22px, 3.2vw, 38px); word-break: normal; overflow-wrap: anywhere; }
.skip { left: auto; inset-inline-start: 8px; top: -60px; }
.skip:focus { left: auto; top: 8px; }
.prose .meta-box { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 520px) { .prose .meta-box { grid-template-columns: minmax(0, 1fr); } }
/* home-screen widgets */
.widget-card { display: grid; gap: 14px; align-self: center; padding: 16px; border-radius: 30px; margin-top: 0; }
.widget-card img { width: 100%; height: auto; border-radius: 20px; box-shadow: 0 10px 24px -14px rgba(20, 10, 60, .55); }
.feature-media .pair .widget-card { margin-top: 0; }
@media (max-width: 720px) { .widget-card { padding: 10px; gap: 8px; border-radius: 22px; } .widget-card img { border-radius: 13px; } }

/* Arabic pages: headings in Cairo, arrows point the reading way */
[dir="rtl"] :is(.h3, .index .name, .principles h3, .facts h3, .strip figcaption b, .feature-copy .num, .principles .n, .index .num) { font-family: var(--arabic-display); font-weight: 700; letter-spacing: 0; }
[dir="rtl"] :is(.index .name, .h2)[lang="en"] { font-family: var(--display); font-weight: 500; letter-spacing: -0.01em; }
[dir="rtl"] .arrow { transform: scaleX(-1); }
[dir="rtl"] .lede { line-height: 1.8; }
[dir="rtl"] .feature-copy .num, [dir="rtl"] .principles .n { font-size: 16px; font-weight: 600; }
/* language switch in the header */
.nav-lang { font-size: 14px !important; border: 1px solid var(--rule); border-radius: 999px; padding: 6px 14px; }
.nav-lang:hover { border-color: var(--ink); }
.nav-lang[lang="ar"] { font-family: var(--arabic); }
.nav-lang[lang="en"] { font-family: var(--sans); }
@media (max-width: 720px) { .nav .nav-lang { border: 0; border-radius: 0; padding: 14px 0; font-size: 17px !important; } }
[dir="rtl"] .eyebrow { text-transform: none; }
[dir="rtl"] .display { font-size: clamp(38px, 5.6vw, 68px); }
.nw { white-space: nowrap; }
/* tablet: keep nav labels on one line, and line the three screenshots up */
.nav a { white-space: nowrap; }
@media (max-width: 1199px) and (min-width: 721px) {
  .brand-sub { display: none; }
  .nav { gap: 22px; }
  .strip figure:nth-child(2) { margin-top: 0; }
}
