/* MarlySoft — marlysoft.com. One stylesheet, no framework. Logical properties throughout so Arabic (rtl) works. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/inter-latin-var-5.3.0.woff2) format("woff2-variations"),
       url(/assets/fonts/inter-latin-var-5.3.0.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url(/assets/fonts/cairo-arabic-var-5.3.0.woff2) format("woff2-variations"),
       url(/assets/fonts/cairo-arabic-var-5.3.0.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E,
    U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

/* ------------------------------------------------------------------------------------------------ tokens */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #f1f4fa;
  --ink: #0b1530;
  --ink-2: #27324e;
  --muted: #56617a;
  --line: #e2e7f0;
  --line-2: #cfd7e5;
  --brand: #1f56dd;
  --brand-ink: #1846bb;
  --brand-2: #0b8a7e;
  --amber: #f5b331;
  --on-brand: #ffffff;
  --focus: #1f56dd;
  --shadow-sm: 0 1px 2px rgb(11 21 48 / .06);
  --shadow: 0 1px 2px rgb(11 21 48 / .05), 0 10px 30px -8px rgb(11 21 48 / .14);
  --shadow-lg: 0 2px 6px rgb(11 21 48 / .06), 0 30px 60px -20px rgb(11 21 48 / .28);
  --hero-glow: radial-gradient(60% 60% at 75% 20%, rgb(37 99 235 / .13), transparent 70%),
               radial-gradient(50% 55% at 20% 0%, rgb(14 163 148 / .10), transparent 70%);
  --band: linear-gradient(120deg, #0f2a6b 0%, #1446b8 45%, #0a625e 100%);
  --radius: 16px;
  --radius-sm: 10px;
  /* product accent (overridden per product) */
  --accent: var(--brand);
  --accent-ink: var(--brand-ink);
  --accent-soft: #edf2fd;
  --accent-grad: linear-gradient(135deg, #2563eb, #0ea394);
  --on-accent: #ffffff;
}
.p-tillcaptain { --accent: #3352e3; --accent-ink: #2a43c0; --accent-soft: #eef1fe; --accent-grad: linear-gradient(135deg, #2262e8, #6f5cef); }
.p-pharmacaptain { --accent: #0b7c6f; --accent-ink: #086a5e; --accent-soft: #e6f5f2; --accent-grad: linear-gradient(135deg, #12b09c, #057f60); }
.p-clinicsmith { --accent: #0d68c4; --accent-ink: #0a56a5; --accent-soft: #e7f1fb; --accent-grad: linear-gradient(135deg, #146cdf, #0ca9a6); }

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1020;
    --bg-alt: #0e1528;
    --surface: #111a30;
    --surface-2: #16203a;
    --ink: #e8edf7;
    --ink-2: #c8d1e4;
    --muted: #9ca8c2;
    --line: #222d48;
    --line-2: #2e3a59;
    --brand: #8aaeff;
    --brand-ink: #a9c2ff;
    --brand-2: #4fd3c4;
    --on-brand: #0a1020;
    --focus: #8aaeff;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / .4);
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 12px 32px -10px rgb(0 0 0 / .6);
    --shadow-lg: 0 2px 8px rgb(0 0 0 / .35), 0 30px 70px -20px rgb(0 0 0 / .75);
    --hero-glow: radial-gradient(60% 60% at 75% 20%, rgb(59 110 245 / .22), transparent 70%),
                 radial-gradient(50% 55% at 20% 0%, rgb(20 184 166 / .14), transparent 70%);
    --band: linear-gradient(120deg, #13245a 0%, #173f9e 45%, #0d6b67 100%);
    --accent-soft: #17213d;
    --on-accent: #0a1020;
  }
  .p-tillcaptain { --accent: #93a5ff; --accent-ink: #b0beff; --accent-soft: #1a2148; }
  .p-pharmacaptain { --accent: #4fd6c2; --accent-ink: #7be3d3; --accent-soft: #0f2a2a; }
  .p-clinicsmith { --accent: #6cbcf5; --accent-ink: #94cff8; --accent-soft: #0f2238; }
  img.shot-img { filter: none; }
}

/* ------------------------------------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", "Cairo", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", Tahoma, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
html[lang="ar"] body { line-height: 1.85; font-feature-settings: normal; }
html[lang="ar"] * { letter-spacing: 0 !important; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0; font-weight: 750; letter-spacing: -0.02em; text-wrap: balance; }
html[lang="ar"] :is(h1, h2, h3) { line-height: 1.45; font-weight: 750; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; }
b, strong { font-weight: 650; }
code { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: .9em; background: var(--surface-2); border: 1px solid var(--line); padding: .05em .35em; border-radius: 6px; overflow-wrap: anywhere; direction: ltr; unicode-bidi: isolate; }
.icon { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .icon.flip { transform: scaleX(-1); }
.icon.flip.down { transform: rotate(90deg); }
[dir="rtl"] .icon.flip.down { transform: rotate(90deg); }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
.wrap.narrow { max-width: 820px; }
.wrap.narrow-l { max-width: 1040px; }
@media (max-width: 600px) { .wrap { padding-inline: 16px; } }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; color: var(--bg); }

/* ------------------------------------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: .62em 1.15em; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 620; font-size: .98rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .15s;
  white-space: nowrap;
}
.btn .icon { width: 1.1em; height: 1.1em; stroke-width: 2; }
.btn-lg { min-height: 52px; padding: .75em 1.4em; font-size: 1.04rem; border-radius: 14px; }
.btn-sm { min-height: 38px; padding: .45em .9em; font-size: .9rem; border-radius: 10px; }
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 6px 16px -6px rgb(31 86 221 / .55); }
.btn-primary:hover { background: var(--brand-ink); color: var(--on-brand); }
.btn-accent { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 16px -8px var(--accent); }
.btn-accent:hover { background: var(--accent-ink); color: var(--on-accent); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-quiet { background: transparent; color: var(--accent-ink); padding-inline: .6em; }
.btn-quiet:hover { color: var(--ink); background: var(--accent-soft); }
.btn-light { background: #ffffff; color: #0b1530; }
.btn-light:hover { background: #e9efff; color: #0b1530; }
.btn-outline-light { color: #ffffff; border-color: rgb(255 255 255 / .55); }
.btn-outline-light:hover { background: rgb(255 255 255 / .12); color: #fff; border-color: #fff; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.store-badge { display: inline-block; border-radius: 6px; line-height: 0; }
.store-badge img { height: 52px; width: auto; }
.store-note { margin: 12px 0 0; font-size: .88rem; color: var(--muted); max-width: 46ch; }

/* ------------------------------------------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.logo:hover { color: var(--ink); }
.logo-mark { width: 34px; height: 34px; }
.wordmark { font-family: "Inter", system-ui, sans-serif; font-size: 1.32rem; font-weight: 800; letter-spacing: -0.03em !important; direction: ltr; }
.wordmark > span { font-weight: 500; color: var(--brand); }
.nav-main { display: flex; align-items: center; gap: 4px; margin-inline-start: 8px; }
.nav-main a, .nav-mobile-links a {
  color: var(--ink-2); text-decoration: none; font-weight: 560; font-size: .97rem; padding: 8px 12px; border-radius: 10px;
}
.nav-main a:hover, .nav-main a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.header-end { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 12px; border-radius: 10px;
  border: 1px solid var(--line-2); color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.lang-switch:hover { color: var(--ink); border-color: var(--ink-2); }
.lang-switch .icon { width: 18px; height: 18px; }
.nav-mobile { display: none; position: relative; }
.nav-mobile summary {
  list-style: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid var(--line-2); color: var(--ink); cursor: pointer;
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile[open] summary { background: var(--surface-2); }
.nav-mobile-panel {
  position: absolute; inset-inline-end: 0; top: calc(100% + 10px); width: min(300px, calc(100vw - 32px));
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px;
}
.nav-mobile-links { display: grid; }
.nav-mobile-links a { padding: 12px 14px; font-size: 1.02rem; }
.nav-mobile-links a:hover, .nav-mobile-links a[aria-current="page"] { background: var(--surface-2); color: var(--ink); }
@media (max-width: 880px) {
  .nav-main { display: none; }
  .nav-mobile { display: block; }
  .header-in { gap: 12px; min-height: 62px; }
}
@media (max-width: 380px) { .lang-switch .icon { display: none; } .wordmark { font-size: 1.2rem; } }

/* product sub-navigation */
.subnav { border-bottom: 1px solid var(--line); background: var(--bg); }
.subnav-in { display: flex; align-items: center; gap: 20px; min-height: 58px; }
.subnav-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1.05rem; flex: none; }
.subnav-brand img { border-radius: 7px; }
.subnav-links { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.subnav-links a { color: var(--muted); text-decoration: none; font-weight: 560; font-size: .94rem; padding: 7px 11px; border-radius: 9px; white-space: nowrap; }
.subnav-links a:hover { color: var(--ink); background: var(--surface-2); }
.subnav-links a[aria-current="page"] { color: var(--accent-ink); background: var(--accent-soft); }
.subnav-cta { margin-inline-start: auto; }
@media (max-width: 760px) {
  .subnav-in { flex-wrap: wrap; gap: 6px 12px; padding-block: 10px; }
  .subnav-cta { display: none; }
  .subnav-links { width: 100%; margin-inline: -11px; }
}

/* ------------------------------------------------------------------------------------------------ type helpers */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 650; color: var(--accent-ink); letter-spacing: .02em; margin: 0 0 18px; text-transform: none; }
.eyebrow img { border-radius: 8px; }
.dot-sep { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .5; }
.lead { font-size: clamp(1.08rem, 1rem + .4vw, 1.25rem); color: var(--ink-2); line-height: 1.6; max-width: 62ch; }
html[lang="ar"] .lead { line-height: 1.85; }
.section { padding-block: clamp(56px, 4vw + 32px, 96px); }
.section.tight { padding-block: 48px 64px; }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head h2, .section > .wrap > h2 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.section-p { color: var(--ink-2); font-size: 1.06rem; max-width: 70ch; margin-top: 12px; }
.chips { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.chips li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: .9rem; font-weight: 560; box-shadow: var(--shadow-sm); }
.chips .icon { color: var(--accent); width: 16px; height: 16px; stroke-width: 2.4; }

/* ------------------------------------------------------------------------------------------------ home hero */
.hero { position: relative; padding-block: clamp(48px, 5vw + 24px, 104px) clamp(56px, 5vw + 24px, 112px); background: var(--hero-glow); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 1.3rem + 3.6vw, 4rem); line-height: 1.06; letter-spacing: -0.035em; margin-bottom: 22px; }
html[lang="ar"] .hero h1 { line-height: 1.3; font-size: clamp(2.1rem, 1.3rem + 3vw, 3.5rem); }
.hero .eyebrow { color: var(--brand-ink); background: var(--surface); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.hero .lead { margin-bottom: 30px; }
.collage { position: relative; aspect-ratio: 1.02; }
.collage-item { position: absolute; margin: 0; width: 78%; border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); }
.collage-item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.collage-item figcaption { display: flex; align-items: center; gap: 9px; padding: 8px 12px; font-size: .86rem; font-weight: 650; border-bottom: 1px solid var(--line); color: var(--ink); background: var(--surface); }
.collage-item figcaption img { width: 20px; height: 20px; aspect-ratio: auto; border-radius: 5px; }
.win-dots { margin-inline-start: auto; display: flex; gap: 5px; }
.win-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.collage .c1 { inset-inline-start: 0; top: 0; }
.collage .c2 { inset-inline-end: 0; top: 27%; z-index: 2; }
.collage .c3 { inset-inline-start: 7%; top: 54%; z-index: 3; }
@media (max-width: 980px) {
  .hero-in { grid-template-columns: 1fr; gap: 44px; }
  .collage { aspect-ratio: 1.15; max-width: 640px; width: 100%; margin-inline: auto; }
}

/* ------------------------------------------------------------------------------------------------ product cards (home) */
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.product-card {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s, border-color .2s;
}
.product-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; border-radius: var(--radius) var(--radius) 0 0; background: var(--accent-grad); }
.product-card:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.product-card-top { display: flex; align-items: center; gap: 14px; }
.app-icon { border-radius: 14px; box-shadow: 0 6px 14px -6px rgb(11 21 48 / .35); flex: none; }
.product-card h3 { font-size: 1.35rem; }
.product-card h3 a { color: var(--ink); text-decoration: none; }
.product-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.product-card h3 a:focus-visible { outline: none; }
.product-card:has(h3 a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.product-cat { margin: 2px 0 0; color: var(--accent-ink); font-weight: 600; font-size: .93rem; }
.product-card > p { color: var(--ink-2); margin: 0; }
.ticks { list-style: none; padding: 0; display: grid; gap: 8px; margin: 2px 0 6px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-size: .96rem; }
.ticks .icon { color: var(--accent); margin-top: .2em; width: 18px; height: 18px; stroke-width: 2.4; }
.product-card-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 1; }
@media (max-width: 980px) { .product-grid { grid-template-columns: 1fr; max-width: 640px; } }

/* why grid */
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.why-item { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.why-item h3 { font-size: 1.12rem; margin: 16px 0 8px; }
.why-item p { margin: 0; color: var(--muted); }
.why-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); }
.why-icon .icon { width: 24px; height: 24px; }
@media (max-width: 980px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .why-grid { grid-template-columns: 1fr; } }

/* steps */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.steps li { position: relative; padding: 26px 24px; border-radius: var(--radius); border: 1px dashed var(--line-2); }
.step-n { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-weight: 750; margin-bottom: 14px; }
.steps h3 { font-size: 1.12rem; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* contact band */
.contact-band-wrap { padding-top: 0; }
.contact-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding: clamp(28px, 4vw, 52px); border-radius: 22px; background: var(--band); color: #eaf0ff; box-shadow: var(--shadow); }
.contact-band h2 { color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); margin-bottom: 10px; }
.contact-band p { margin: 0; max-width: 54ch; color: #dce6ff; font-size: 1.06rem; }
.contact-band .btn-light .icon { width: 20px; height: 20px; }
@media (min-width: 900px) {
  .contact-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .contact-band .cta-row { flex-direction: column; align-items: stretch; }
}

/* ------------------------------------------------------------------------------------------------ product page */
.p-hero { padding-block: clamp(44px, 4vw + 24px, 88px) clamp(40px, 4vw + 16px, 80px); background:
  radial-gradient(60% 70% at 50% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%); }
.p-hero-text { text-align: center; max-width: 860px; margin-inline: auto; display: flex; flex-direction: column; align-items: center; }
.p-hero h1 { font-size: clamp(2.1rem, 1.3rem + 3vw, 3.6rem); line-height: 1.08; letter-spacing: -0.035em; margin-bottom: 20px; }
html[lang="ar"] .p-hero h1 { line-height: 1.3; }
.p-hero .lead { margin-inline: auto; margin-bottom: 30px; }
.p-hero .eyebrow { flex-wrap: wrap; justify-content: center; row-gap: 4px; }
.eb-app { display: inline-flex; align-items: center; gap: 10px; }
@media (max-width: 600px) { .p-hero .eyebrow .dot-sep { display: none; } .p-hero .eyebrow .eb-cat { width: 100%; text-align: center; } }
.p-hero .cta-row { justify-content: center; }
.p-hero .store-note { text-align: center; margin-inline: auto; }
.p-hero .chips { justify-content: center; }
.p-hero-shot { margin: clamp(36px, 4vw, 60px) auto 0; max-width: 1160px; }
.frame { border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--shadow-lg), 0 0 0 8px color-mix(in srgb, var(--accent) 8%, transparent); }
.frame img { width: 100%; }

.feature-grid { columns: 3; column-gap: 20px; }
.feature-card { break-inside: avoid; margin-bottom: 20px; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.feature-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 16px; }
.feature-icon .icon { width: 24px; height: 24px; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 12px; }
.feature-card ul { padding-inline-start: 1.1em; display: grid; gap: 8px; color: var(--ink-2); font-size: .96rem; }
.feature-card li::marker { color: var(--accent); }
@media (max-width: 1060px) { .feature-grid { columns: 2; } }
@media (max-width: 680px) { .feature-grid { columns: 1; } }

.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
.shot { margin: 0; }
.shot-link { position: relative; display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--shadow); }
.shot-link img { width: 100%; transition: transform .35s ease; }
.shot-link:hover img { transform: scale(1.015); }
.shot-zoom { position: absolute; inset-block-end: 10px; inset-inline-end: 10px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgb(11 21 48 / .7); color: #fff; opacity: 0; transition: opacity .2s; }
.shot-link:hover .shot-zoom, .shot-link:focus-visible .shot-zoom { opacity: 1; }
.shot-zoom .icon { width: 18px; height: 18px; }
.shot figcaption { margin-top: 12px; color: var(--muted); font-size: .93rem; line-height: 1.55; }
html[lang="ar"] .shot figcaption { line-height: 1.8; }
.gallery .shot:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: calc(50% - 12px); justify-self: center; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery .shot:last-child:nth-child(odd) { max-width: none; }
}

.audience-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.audience-grid.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .audience-grid, .audience-grid.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .audience-grid, .audience-grid.n4 { grid-template-columns: 1fr; } }
.audience-grid li { padding: 22px 22px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); border-inline-start: 4px solid var(--accent); }
.audience-grid h3 { font-size: 1.06rem; margin-bottom: 6px; }
.audience-grid p { margin: 0; color: var(--muted); font-size: .96rem; }

.faq { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; cursor: pointer; font-weight: 650; font-size: 1.04rem; border-radius: 14px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent-ink); }
.faq-item .chev { transition: transform .2s; color: var(--muted); }
[dir="rtl"] .faq-item .chev { transform: scaleX(-1); }
.faq-item[open] .chev { transform: rotate(90deg); }
.faq-a { padding: 0 20px 6px; color: var(--ink-2); }
.more-help { margin-top: 24px; color: var(--muted); }

.start-band { text-align: center; padding: clamp(32px, 5vw, 64px) 24px; border-radius: 24px; background: var(--accent-soft); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; }
.start-band h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem); margin: 18px 0 10px; }
.start-band > p { color: var(--ink-2); max-width: 52ch; margin-bottom: 24px; }
.start-band .cta-row { justify-content: center; }
.start-band .store-note { text-align: center; }

/* ------------------------------------------------------------------------------------------------ legal + prose */
.legal { padding-block: 48px 88px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 56px; }
.legal.has-toc { grid-template-columns: minmax(0, 1fr) 260px; grid-template-areas: "head head" "body toc"; }
.legal-head { max-width: 760px; margin-bottom: 28px; }
.legal.has-toc .legal-head { grid-area: head; }
.legal-head .eyebrow { margin-bottom: 12px; }
.legal-head h1 { font-size: clamp(2rem, 1.4rem + 2vw, 2.8rem); letter-spacing: -0.03em; }
.legal.has-toc .prose { grid-area: body; }
.legal.has-toc .toc { grid-area: toc; }
.toc details { position: sticky; top: 92px; padding: 18px 18px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-alt); }
.toc summary { font-weight: 700; font-size: .9rem; color: var(--ink); cursor: pointer; margin-bottom: 8px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 4px 8px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: .9rem; line-height: 1.4; }
.toc a:hover { color: var(--ink); background: var(--surface-2); }
@media (max-width: 1020px) {
  .legal.has-toc { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "toc" "body"; }
  .toc details { position: static; margin-bottom: 28px; }
}
.prose { max-width: 760px; font-size: 1.03rem; color: var(--ink-2); }
.prose h2 { font-size: 1.45rem; margin: 2.2em 0 .6em; scroll-margin-top: 90px; }
.prose h3 { font-size: 1.12rem; margin: 1.6em 0 .4em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-inline-start: 1.3em; margin: 0 0 1.1em; display: grid; gap: .45em; }
.prose li::marker { color: var(--accent); }
.prose .meta { color: var(--muted); font-size: .95rem; }
.prose .lead { font-size: 1.15rem; }
.prose .card { margin: 1.5em 0; padding: 18px 22px; border-radius: 14px; background: var(--accent-soft); border: 1px solid var(--line); }
.prose .card p:last-child, .prose .card ul:last-child { margin-bottom: 0; }
.prose .card ul { margin-top: .4em; }
.prose ul.plain { list-style: none; padding: 0; }
.prose a { overflow-wrap: anywhere; }

/* ------------------------------------------------------------------------------------------------ about */
.page-hero { padding-block: clamp(48px, 5vw + 20px, 96px) 24px; background: var(--hero-glow); }
.page-hero .lead { max-width: 64ch; }
.page-hero h1 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); letter-spacing: -0.035em; margin-bottom: 18px; }
.page-hero .eyebrow { color: var(--brand-ink); }
.mini-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.mini-product { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm); }
.mini-product:hover { border-color: var(--accent); color: var(--ink); }
.mini-product > span { display: grid; flex: 1; min-width: 0; }
.mini-product b { font-size: 1.05rem; }
.mini-product span span { color: var(--muted); font-size: .9rem; line-height: 1.4; }
.mini-product .icon { color: var(--accent); }
.mini-product .app-icon { border-radius: 12px; }
@media (max-width: 900px) { .mini-products { grid-template-columns: 1fr; } }
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.principle { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.principle h3 { font-size: 1.12rem; margin-bottom: 8px; }
.principle p { margin: 0; color: var(--muted); }
@media (max-width: 720px) { .principles { grid-template-columns: 1fr; } }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; margin-top: 28px; }
.contact-card, .details-card { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); }
.contact-card p { color: var(--ink-2); margin: 16px 0 20px; }
.contact-card .btn { white-space: normal; overflow-wrap: anywhere; }
.contact-card p.small { margin: 18px 0 0; }
.details-card h3 { font-size: 1.12rem; margin-bottom: 14px; }
.details-card dl { margin: 0; display: grid; gap: 0; }
.details-card dl > div { display: grid; grid-template-columns: minmax(6.5em, 9.5em) minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.details-card dt { color: var(--muted); }
.details-card dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .details-card dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* ------------------------------------------------------------------------------------------------ footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding-top: 56px; color: var(--muted); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-brand p { margin: 14px 0 0; max-width: 34ch; }
.footer-mail { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.footer-mail .icon { width: 18px; height: 18px; }
.footer-col h2 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); margin-bottom: 14px; font-weight: 700; }
html[lang="ar"] .footer-col h2 { font-size: .95rem; text-transform: none; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--muted); text-decoration: none; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 22px; margin-top: 44px; }
.footer-bottom::before { content: ""; position: absolute; top: 0; inset-inline: 24px; border-top: 1px solid var(--line); }
@media (max-width: 600px) { .footer-bottom::before { inset-inline: 16px; } }
.footer-bottom p { margin: 0; }
.tm { font-size: .82rem; margin: 0; padding-bottom: 24px; opacity: .85; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------------------------------------ 404 */
.page-404 .nf { min-height: 100vh; display: grid; align-content: center; justify-items: center; gap: 40px; padding: 40px 16px; text-align: center; background: var(--hero-glow); }
.nf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 820px; width: 100%; }
.nf-block { padding: 32px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.nf-block h1 { font-size: 1.7rem; margin-bottom: 10px; }
.nf-block p { color: var(--muted); }
@media (max-width: 640px) { .nf-grid { grid-template-columns: 1fr; } }
