/* التطبيقات الذكية — shared styles for smartsapp.net.
   Direction: light and friendly (after hikayatdars.vercel.app/v2): white paper,
   heavy Tajawal headings, pill buttons, pastel product cards with drawn screens.
   Brand stays smartsapp teal; every product keeps its own hue (--c / --c-soft).
   Layout: one 1180px column, RTL; sections alternate white and soft bands. */
:root {
  --bg: #ffffff;
  --bg-soft: #f4f8f9;
  --surface: #ffffff;
  --line: #e3ebee;
  --ink: #142028;
  --muted: #5a6b77;
  --brand: #0d9488;
  --brand-strong: #0f766e;
  --brand-soft: #e3f5f2;
  --on-brand: #ffffff;
  --wa: #1fae5b;
  --c-whatsapp: #16a34a; --c-whatsapp-soft: #e7f7ec;
  --c-sajaya: #5b5bd6;   --c-sajaya-soft: #eeeeff;
  --c-mihwar: #e8730c;   --c-mihwar-soft: #fff0e2;
  --c-nawahi: #e11d5a;   --c-nawahi-soft: #ffe8ef;
  --c-jay: #c99300;      --c-jay-soft: #fff6d6;
  --c-ranna: #0a74b9;    --c-ranna-soft: #e4f1fb;
  --shadow: 0 18px 40px -22px rgba(20, 32, 40, .28);
  --f-display: "Tajawal", "IBM Plex Sans Arabic", Tahoma, sans-serif;
  --f-body: "Tajawal", "IBM Plex Sans Arabic", Tahoma, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --radius: 22px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1218; --bg-soft: #0f1820; --surface: #131e28; --line: #223241;
    --ink: #eef3f6; --muted: #9fb1bd; --brand: #2dd4bf; --brand-strong: #5eead4; --brand-soft: #0f2f2c; --on-brand: #04201c;
    --c-whatsapp: #4ade80; --c-whatsapp-soft: #11291b;
    --c-sajaya: #a5a6ff;   --c-sajaya-soft: #1b1d3a;
    --c-mihwar: #fdab5f;   --c-mihwar-soft: #33210f;
    --c-nawahi: #ff7aa2;   --c-nawahi-soft: #36141f;
    --c-jay: #f5cd4a;      --c-jay-soft: #2f2710;
    --c-ranna: #6cc4f5;    --c-ranna-soft: #10263a;
    --shadow: 0 18px 40px -22px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1218; --bg-soft: #0f1820; --surface: #131e28; --line: #223241;
  --ink: #eef3f6; --muted: #9fb1bd; --brand: #2dd4bf; --brand-strong: #5eead4; --brand-soft: #0f2f2c; --on-brand: #04201c;
  --c-whatsapp: #4ade80; --c-whatsapp-soft: #11291b;
  --c-sajaya: #a5a6ff;   --c-sajaya-soft: #1b1d3a;
  --c-mihwar: #fdab5f;   --c-mihwar-soft: #33210f;
  --c-nawahi: #ff7aa2;   --c-nawahi-soft: #36141f;
  --c-jay: #f5cd4a;      --c-jay-soft: #2f2710;
  --c-ranna: #6cc4f5;    --c-ranna-soft: #10263a;
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 17px; line-height: 1.75; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 800; line-height: 1.22; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.mono { font-family: var(--f-mono); direction: ltr; unicode-bidi: isolate; letter-spacing: .02em; }

.wrap { max-width: 1180px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.band { padding-block: 84px; }
.band.soft { background: var(--bg-soft); }
.section-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 44px); }
.section-head p { color: var(--muted); font-size: 18px; max-width: 60ch; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; padding: 5px 14px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-strong); }
.tag svg { width: 15px; height: 15px; }

/* announcement + header */
.announce { background: var(--brand-strong); color: #fff; font-size: 14.5px; text-align: center; padding-block: 8px; }
.announce a { font-weight: 700; text-underline-offset: 3px; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--bg); z-index: 40; }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--brand); display: grid; place-items: center; transform: rotate(-6deg); }
.brand-mark svg { width: 22px; height: 22px; color: var(--on-brand); transform: rotate(6deg); }
.brand-name { font-family: var(--f-display); font-weight: 800; font-size: 21px; line-height: 1.1; }
.nav { display: flex; align-items: center; gap: 26px; font-size: 16px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: var(--on-brand); }
@media (max-width: 820px) { .nav a:not(.btn) { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font-family: var(--f-display); font-weight: 700; font-size: 16px; text-decoration: none; border: 1.5px solid transparent; transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; cursor: pointer; }
.btn svg { width: 19px; height: 19px; }
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 10px 22px -12px var(--brand); }
.btn-primary:hover { transform: translateY(-2px); background: var(--brand-strong); }
.btn-outline { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-outline:hover { border-color: var(--brand); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-sm { padding: 9px 16px; font-size: 14.5px; }

/* hero */
.hero { padding-block: 56px 72px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.02fr .98fr; gap: 40px; align-items: center; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; } }
.hero-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; align-items: flex-start; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); }
.hero h1 .hl { color: var(--brand); position: relative; white-space: nowrap; }
.hero h1 .hl svg { position: absolute; inset-inline: 0; bottom: -10px; width: 100%; height: 16px; color: color-mix(in srgb, var(--brand) 45%, transparent); }
.hero .lead { color: var(--muted); font-size: 19px; max-width: 54ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, auto)); gap: 8px 26px; font-size: 15.5px; font-weight: 500; }
.checks span { display: inline-flex; align-items: center; gap: 8px; }
.checks svg { width: 18px; height: 18px; color: var(--c-whatsapp); flex: none; }
.reach { font-size: 15px; color: var(--muted); }
.reach b { color: var(--ink); }
@media (max-width: 520px) { .checks { grid-template-columns: 1fr; } }

/* the drawn collage in the hero */
.collage { position: relative; min-height: 470px; }
.collage .doodle { position: absolute; color: var(--brand); opacity: .8; }
.screen { position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.screen .bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 12.5px; font-weight: 700; color: var(--muted); }
.screen .bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); display: inline-block; }
.dash { inset-inline-end: 0; top: 30px; width: 76%; transform: rotate(-3deg); }
.dash .body { padding: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { border-radius: 12px; padding: 10px; background: var(--c-sajaya-soft); display: flex; flex-direction: column; gap: 2px; }
.stat b { font-size: 20px; font-weight: 800; color: var(--c-sajaya); font-variant-numeric: tabular-nums; }
.stat span { font-size: 11.5px; color: var(--muted); }
.rows { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; }
.rows div { height: 12px; border-radius: 6px; background: var(--bg-soft); }
.rows div:nth-child(1) { width: 92%; } .rows div:nth-child(2) { width: 74%; } .rows div:nth-child(3) { width: 84%; }
.phone { inset-inline-start: 4%; top: 150px; width: 210px; border-radius: 30px; border: 8px solid var(--ink); transform: rotate(4deg); }
.phone .chat-head { background: var(--c-whatsapp); color: #fff; font-size: 13px; font-weight: 700; padding: 10px 12px; }
.phone .chat { padding: 10px; display: flex; flex-direction: column; gap: 8px; background: var(--c-whatsapp-soft); min-height: 220px; }
.bubble { max-width: 86%; font-size: 12.5px; line-height: 1.55; padding: 7px 10px; border-radius: 12px; background: var(--surface); }
.bubble.me { align-self: flex-start; background: #d9fdd3; color: #102a12; }
.bubble.bot { align-self: flex-end; }
.chip-float { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 14px; font-weight: 700; white-space: nowrap; }
.chip-float .dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--c-soft); color: var(--c); }
.chip-float .dot svg { width: 15px; height: 15px; }
.cf-1 { inset-inline-end: 6%; top: 300px; --c: var(--c-jay); --c-soft: var(--c-jay-soft); }
.cf-2 { inset-inline-end: 30%; top: 395px; --c: var(--c-mihwar); --c-soft: var(--c-mihwar-soft); }
.cf-3 { inset-inline-end: 54%; top: 0; --c: var(--c-nawahi); --c-soft: var(--c-nawahi-soft); }
@media (max-width: 960px) { .collage { min-height: 500px; max-width: 560px; width: 100%; margin-inline: auto; } }
@media (max-width: 520px) { .dash { width: 92%; } .phone { width: 180px; top: 170px; } .cf-3 { display: none; } .cf-2 { inset-inline-end: 4%; top: 440px; } }

/* numbers */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 760px) { .numbers { grid-template-columns: repeat(2, 1fr); } }
.number-card { text-align: center; padding: 22px 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.number-card b { display: block; font-family: var(--f-display); font-size: 40px; font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; line-height: 1.1; }
.number-card span { color: var(--muted); font-size: 15px; }

/* services bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 960px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } }
.svc { position: relative; padding: 26px; border-radius: var(--radius); background: var(--c-soft, var(--bg-soft)); display: flex; flex-direction: column; gap: 10px; min-width: 0; overflow: hidden; }
.svc.featured { grid-row: span 2; background: var(--ink); color: var(--bg); }
@media (max-width: 960px) { .svc.featured { grid-row: auto; grid-column: 1 / -1; } }
.svc .badge { align-self: flex-start; font-size: 12.5px; font-weight: 700; padding: 3px 12px; border-radius: 999px; background: var(--brand); color: var(--on-brand); }
.svc .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--surface); color: var(--c, var(--brand)); }
.svc.featured .ic { background: color-mix(in srgb, var(--bg) 14%, transparent); color: var(--brand); }
.svc .ic svg { width: 23px; height: 23px; }
.svc h3 { font-size: 22px; }
.svc p { color: var(--muted); font-size: 15.5px; }
.svc.featured p { color: color-mix(in srgb, var(--bg) 75%, transparent); }
.svc .pills { display: flex; flex-wrap: wrap; gap: 8px; }
.svc .pills span { font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: color-mix(in srgb, var(--bg) 14%, transparent); }
.svc .stack { font-family: var(--f-mono); direction: ltr; text-align: right; font-size: 12.5px; color: var(--muted); }
.svc.featured .stack { color: color-mix(in srgb, var(--bg) 65%, transparent); }
.svc .mini { margin-top: auto; border-radius: 14px; background: color-mix(in srgb, var(--bg) 10%, transparent); padding: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.svc .mini div { height: 46px; border-radius: 10px; background: color-mix(in srgb, var(--bg) 16%, transparent); }
.svc .mini div:first-child { grid-column: span 2; background: color-mix(in srgb, var(--brand) 55%, transparent); }

/* projects store */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 30px; }
.filters button { font: inherit; font-weight: 700; font-size: 15px; padding: 8px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.store { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .store { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .store { grid-template-columns: 1fr; } }
.product { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; min-width: 0; transition: transform .2s, box-shadow .2s; }
.product:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.preview { position: relative; aspect-ratio: 16 / 10; max-width: 100%; background: var(--c-soft); display: grid; place-items: center; padding: 18px; }
.preview .kind { position: absolute; top: 14px; inset-inline-start: 14px; font-size: 12.5px; font-weight: 700; padding: 3px 12px; border-radius: 999px; background: var(--surface); color: var(--c); }
.preview .live { position: absolute; top: 14px; inset-inline-end: 14px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--c); color: #fff; }
.mock { width: 78%; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.mock .t { font-size: 12px; font-weight: 800; color: var(--c); }
.mock .l { height: 9px; border-radius: 5px; background: var(--bg-soft); }
.mock .l.s { width: 60%; }
.mock .row { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 11.5px; padding: 5px 8px; border-radius: 8px; background: var(--bg-soft); }
.mock .row em { font-style: normal; font-weight: 700; color: var(--c); }
.product-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-body .meta { font-size: 13.5px; color: var(--muted); font-weight: 500; }
.product-body h3 { font-size: 22px; }
.product-body p { color: var(--muted); font-size: 15px; flex: 1; }
.product-actions { display: flex; gap: 8px; margin-top: 8px; }
.product-actions .btn { flex: 1; }
.product-actions .btn-outline[aria-disabled="true"] { color: var(--muted); pointer-events: none; }

/* process: a real order, numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: s; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.steps li::before { content: counter(s); width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 19px; background: var(--brand-soft); color: var(--brand-strong); }
.steps h3 { font-size: 21px; }
.give { display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; }
.give small { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.give + .give { padding-top: 10px; border-top: 1px dashed var(--line); }

/* about */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: stretch; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }
.card { padding: 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card h2 { font-size: 32px; }
.card p { color: var(--muted); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; font-size: 15.5px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 700; }
.certificate { background: linear-gradient(160deg, var(--brand-soft), var(--surface) 70%); border: 1.5px dashed color-mix(in srgb, var(--brand) 50%, var(--line)); align-items: flex-start; }
.certificate .seal { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--on-brand); }
.certificate .seal svg { width: 30px; height: 30px; }
.certificate .code { font-family: var(--f-mono); font-size: 24px; direction: ltr; unicode-bidi: isolate; letter-spacing: .04em; color: var(--brand-strong); }
.note { font-size: 13.5px; color: var(--muted); }

/* faq */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } }
.ask { position: sticky; top: 100px; padding: 30px; border-radius: var(--radius); background: var(--ink); color: var(--bg); display: flex; flex-direction: column; gap: 12px; }
.ask h3 { font-size: 26px; }
.ask p { color: color-mix(in srgb, var(--bg) 72%, transparent); }
.faq { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.faq details { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); padding: 4px 22px; }
.faq summary { cursor: pointer; font-family: var(--f-display); font-weight: 700; font-size: 18px; padding-block: 16px; }
.faq details p { color: var(--muted); padding-bottom: 18px; font-size: 16px; }

/* contact + footer */
.contact { padding: 40px; border-radius: 28px; background: var(--brand-strong); color: #fff; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
.contact h2 { font-size: clamp(28px, 4vw, 40px); }
.contact p { color: rgba(255,255,255,.85); }
.contact .num { font-family: var(--f-mono); font-size: 26px; direction: ltr; unicode-bidi: isolate; letter-spacing: .04em; user-select: all; }
.contact .copy { font: inherit; font-size: 14px; font-weight: 700; padding: 6px 14px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.5); background: transparent; color: #fff; cursor: pointer; }
.contact .btn-wa { background: #fff; color: #0b3d2a; }
.site-footer { padding-block: 30px; color: var(--muted); font-size: 14.5px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 24px; }

.wa-float { position: fixed; z-index: 35; inset-inline-start: max(18px, env(safe-area-inset-left, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; background: var(--wa); color: #fff; font-family: var(--f-display); font-weight: 700; font-size: 15px; text-decoration: none; box-shadow: 0 12px 28px -10px rgba(10, 80, 40, .55); }
.wa-float svg { width: 22px; height: 22px; }
@media (max-width: 520px) { .wa-float span { display: none; } .wa-float { padding: 14px; } }

/* ---- real screens gallery + full feature list (landing pages) ---- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }
.shot { margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.shot button { all: unset; cursor: zoom-in; display: block; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-soft); box-shadow: var(--shadow); }
.shot button:focus-visible { outline: 3px solid var(--c, var(--brand)); outline-offset: 3px; }
.shot img { display: block; width: 100%; height: auto; max-width: 100%; }
.shot.mobile button { max-width: 260px; margin-inline: auto; border-radius: 24px; border: 6px solid var(--ink); }
.shot figcaption { font-size: 14.5px; color: var(--muted); text-align: center; }
.gallery-note { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 18px; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1200px, 94vw); max-height: 92vh; }
.lightbox::backdrop { background: rgba(8, 14, 20, .82); }
.lightbox img { display: block; max-width: 100%; max-height: 84vh; width: auto; height: auto; border-radius: 14px; margin-inline: auto; }
.lightbox p { color: #fff; text-align: center; margin-top: 10px; font-size: 15px; }
.lightbox .close { position: absolute; top: 8px; inset-inline-end: 8px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: #142028; font-size: 22px; line-height: 1; cursor: pointer; }
.all-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; align-items: start; }
@media (max-width: 860px) { .all-features { grid-template-columns: 1fr; } }
.fgroup { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.fgroup h3 { font-size: 20px; display: flex; align-items: center; gap: 10px; }
.fgroup h3 .count { font-size: 12.5px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--c-soft, var(--brand-soft)); color: var(--c, var(--brand-strong)); }
.fgroup ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.fgroup li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.fgroup li svg { width: 20px; height: 20px; color: var(--c, var(--brand)); margin-top: 4px; }
.fgroup li b { display: block; font-size: 16px; }
.fgroup li span { color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.planned { margin-top: 18px; padding: 16px 20px; border-radius: 16px; border: 1.5px dashed var(--line); color: var(--muted); font-size: 14.5px; }
.planned b { color: var(--ink); }

/* ---- landing pages ---- */
.lp-hero { padding-block: 48px 72px; background: linear-gradient(180deg, var(--c-soft), var(--bg) 85%); }
.lp-hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
@media (max-width: 960px) { .lp-hero .wrap { grid-template-columns: 1fr; } }
.lp-hero h1 { font-size: clamp(38px, 5.4vw, 62px); }
.lp-hero h1 .hl { color: var(--c); }
.crumb { font-size: 14.5px; color: var(--muted); }
.crumb a { text-decoration: none; font-weight: 700; }
.problem { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); font-size: 17px; }
.problem svg { width: 22px; height: 22px; color: var(--c); flex: none; margin-top: 4px; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: f; }
@media (max-width: 860px) { .flow { grid-template-columns: 1fr; } }
.flow li { counter-increment: f; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.flow li::before { content: counter(f); width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 20px; background: var(--c-soft); color: var(--c); }
.flow .who { font-size: 13.5px; font-weight: 700; color: var(--c); }
.flow h3 { font-size: 22px; }
.flow p { color: var(--muted); font-size: 15.5px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.feature { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.feature .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--c-soft); color: var(--c); }
.feature .ic svg { width: 24px; height: 24px; }
.feature h3 { font-size: 20px; }
.feature p { color: var(--muted); font-size: 15.5px; }
.apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .apps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .apps { grid-template-columns: 1fr; } }
.app { padding: 22px; border-radius: var(--radius); background: var(--c-soft); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.app .kind { align-self: flex-start; font-size: 12.5px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--surface); color: var(--c); }
.app h3 { font-size: 19px; }
.app p { color: var(--muted); font-size: 15px; }

/* ---------- Blog ---------- */
.blog-main { padding-block: 40px 72px; }
.blog-narrow { max-width: 820px; }
.crumbs { display: flex; gap: 8px; font-size: 14.5px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--brand-strong); }
.blog-head h1 { font-size: clamp(30px, 4.6vw, 46px); }
.blog-head .lead { margin-top: 14px; font-size: 19px; color: var(--muted); }
.blog-meta { margin-top: 10px; font-size: 14.5px; color: var(--muted); }
.draft-note { display: inline-block; margin: 0 0 14px; padding: 6px 14px; border-radius: 999px; background: #fff4d6; color: #7a5600; font-size: 14px; font-weight: 700; }
.prose { margin-top: 34px; font-size: 18px; line-height: 1.95; }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: clamp(23px, 3vw, 29px); margin-top: 42px; }
.prose h3 { font-size: 21px; margin-top: 30px; }
.prose p, .prose li { color: var(--ink); }
.prose ul, .prose ol { padding-inline-start: 26px; }
.prose li + li { margin-top: 8px; }
.prose a { color: var(--brand-strong); text-underline-offset: 4px; }
.prose strong { font-weight: 800; }
.prose img { display: block; max-width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow); margin-block: 26px; }
.prose blockquote { margin-inline: 0; padding: 14px 20px; border-inline-start: 4px solid var(--brand); background: var(--bg-soft); border-radius: 12px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: start; }
.blog-product { display: flex; flex-direction: column; gap: 4px; margin-top: 40px; padding: 22px 24px; border-radius: var(--radius, 20px); background: var(--c-soft); text-decoration: none; border: 1px solid var(--line); }
.blog-product .kicker { font-size: 13.5px; font-weight: 700; color: var(--muted); }
.blog-product b { font-family: var(--f-display); font-size: 26px; color: var(--c); }
.blog-product span:last-child { color: var(--ink); }
.blog-faq, .blog-more { margin-top: 44px; }
.blog-faq h2, .blog-more h2 { font-size: 26px; margin-bottom: 16px; }
.blog-more ul { padding-inline-start: 22px; }
.blog-more a { color: var(--brand-strong); }
.blog-index-title { font-size: clamp(30px, 4.6vw, 46px); }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.blog-card { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); text-decoration: none; box-shadow: var(--shadow); transition: transform .15s; min-width: 0; }
.blog-card:hover { transform: translateY(-3px); }
.blog-card img { width: 100%; height: auto; display: block; border-bottom: 1px solid var(--line); }
.blog-card .body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; }
.blog-card b { font-family: var(--f-display); font-size: 20px; line-height: 1.35; }
.blog-card .desc { color: var(--muted); font-size: 15.5px; line-height: 1.7; }
.blog-card time { font-size: 13.5px; color: var(--muted); }
.blog-card .chip { align-self: flex-start; font-size: 12.5px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--c-soft); color: var(--c); }

/* ---------- Demo pages: /demo/<slug> and /download (invite-only, phone-first) ---------- */
@media (max-width: 600px) {
  .dm .band { padding-block: 56px; }
  .dm .lp-hero { padding-block: 32px 44px; }
  .dm .section-head { margin-bottom: 30px; }
}
.dm-hero .wrap { grid-template-columns: minmax(0, 1fr) auto; }
@media (max-width: 960px) { .dm-hero .wrap { grid-template-columns: minmax(0, 1fr); } }
.dm-hero h1 { font-size: clamp(36px, 5.4vw, 58px); }
.dm-promise { color: var(--muted); font-size: 19px; max-width: 56ch; }
.dm-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 16px; background: var(--surface); border: 1.5px dashed color-mix(in srgb, var(--c) 45%, var(--line)); font-size: 15.5px; font-weight: 500; max-width: 56ch; }
.dm-note svg, .dm-tip svg, .dm-calm svg, .dm-app-note svg, .dm-os svg { width: 20px; height: 20px; flex: none; color: var(--c); margin-top: 3px; }
.qr-svg { display: block; background: #fff; }
.dm-qr { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 260px; padding: 22px; text-align: center; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.dm-qr .qr-svg { width: 196px; height: 196px; border-radius: 12px; }
.dm-qr b { font-family: var(--f-display); font-size: 18px; margin-top: 6px; }
.dm-qr span { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.dm-qr .mono { font-size: 13px; color: var(--ink); }
@media (max-width: 960px) { .dm-qr { display: none; } }

.dm-steps li .btn { align-self: flex-start; margin-top: auto; }

.dm-os { display: none; align-items: flex-start; gap: 8px; max-width: 680px; margin: -22px auto 24px; padding: 10px 16px; border-radius: 16px; background: var(--c-soft); font-size: 15px; font-weight: 600; }
[data-os="android"] .dm-os-android, [data-os="ios"] .dm-os-ios, [data-os="desktop"] .dm-os-desktop { display: flex; }
.dm-apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.dm-app { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.dm-app .kind { align-self: flex-start; font-size: 12.5px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--c-soft); color: var(--c); }
.dm-app h3 { font-size: 21px; }
.dm-app > p { color: var(--muted); font-size: 15.5px; }
.dm-app > .dm-app-note { display: flex; gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--bg-soft); color: var(--ink); font-size: 14px; line-height: 1.65; }
.dm-app-note svg { width: 17px; height: 17px; }
.dm-get { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 8px; }
.dm-get .btn { width: 100%; }
.dm-get small, .dm-dl-list small { font-size: 12.5px; font-weight: 500; opacity: .8; }
[data-os="android"] .get-android, [data-os="ios"] .get-ios, [data-os="desktop"] .get-dash { background: var(--brand); border-color: var(--brand); color: var(--on-brand); box-shadow: 0 10px 22px -12px var(--brand); }
[data-os="android"] .get-android::after, [data-os="ios"] .get-ios::after { content: "جهازك"; font-size: 12px; font-weight: 700; padding: 1px 9px; border-radius: 999px; background: color-mix(in srgb, var(--on-brand) 20%, transparent); }

.dm-narrow { max-width: 860px; }
.dm-scn { list-style: none; margin: 0; padding: 0; counter-reset: sc; }
.dm-scn li { counter-increment: sc; position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; row-gap: 2px; padding-bottom: 24px; }
.dm-scn li::before { content: counter(sc); grid-column: 1; grid-row: 1 / span 3; position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 20px; background: var(--c-soft); color: var(--c); }
.dm-scn li::after { content: ""; position: absolute; top: 50px; bottom: 6px; inset-inline-start: 21px; width: 2px; border-radius: 2px; background: var(--line); }
.dm-scn li:last-child { padding-bottom: 8px; }
.dm-scn li:last-child::after { display: none; }
.dm-scn .dm-where, .dm-scn h3, .dm-scn p { grid-column: 2; }
.dm-where { font-size: 13.5px; font-weight: 700; color: var(--c); }
.dm-scn h3 { font-size: 20px; }
.dm-scn p { color: var(--muted); font-size: 16px; }
.dm-tip { display: flex; gap: 10px; align-items: flex-start; margin-top: 8px; padding: 14px 18px; border-radius: 16px; background: var(--c-soft); font-size: 15.5px; }
.dm-live, .dm-help { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 26px 28px; border-radius: var(--radius); background: var(--ink); color: var(--bg); }
.dm-live { margin-top: 18px; }
.dm-live > div, .dm-help > div:first-child { flex: 1 1 320px; min-width: 0; }
.dm-live b, .dm-help b { display: block; font-family: var(--f-display); font-size: 23px; font-weight: 800; line-height: 1.3; margin-bottom: 6px; }
.dm-live p, .dm-help p { color: color-mix(in srgb, var(--bg) 75%, transparent); }
.dm-help .actions { flex: 0 1 auto; }
.dm-ghost { border-color: color-mix(in srgb, var(--bg) 45%, transparent); color: var(--bg); background: transparent; }
.dm-ghost:hover { border-color: var(--bg); }
@media (max-width: 520px) { .dm-live .btn, .dm-help .btn { width: 100%; } .dm-live, .dm-help { padding: 22px 20px; } }

.dm-install { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.dm-install.one { grid-template-columns: minmax(0, 760px); justify-content: center; }
@media (max-width: 860px) { .dm-install { grid-template-columns: minmax(0, 1fr); } }
[data-os="ios"] .dm-howto-ios { order: -1; }
.dm-howto h3 { display: flex; align-items: center; gap: 10px; font-size: 21px; }
.dm-howto h3 svg { width: 24px; height: 24px; flex: none; color: var(--brand); }
.dm-howto ol { margin: 0; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 10px; font-size: 16px; line-height: 1.7; }
.dm-howto li::marker { font-weight: 800; color: var(--brand-strong); }
.card .dm-calm { display: flex; gap: 10px; align-items: flex-start; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 14.5px; }
.dm-calm svg { color: var(--brand); }

.dm-limits { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dm-limits li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-size: 16px; }
.dm-limits svg { width: 20px; height: 20px; flex: none; margin-top: 4px; color: var(--c); }

.dm-dl { display: flex; flex-direction: column; gap: 22px; }
.dm-dl-group { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; scroll-margin-top: 90px; }
.dm-dl-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px; background: var(--c-soft); }
.dm-dl-title { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.dm-dl-title .kind { font-size: 12.5px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--surface); color: var(--c); }
.dm-dl-title h2 { font-size: 30px; color: var(--c); }
.dm-dl-title p { color: var(--muted); font-size: 16px; max-width: 62ch; }
.dm-dl-qr { flex: none; width: 150px; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.dm-dl-qr .qr-svg { width: 124px; height: 124px; border-radius: 10px; }
@media (max-width: 960px) { .dm-dl-qr { display: none; } }
.dm-dl-list { list-style: none; margin: 0; padding: 0; }
.dm-dl-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; border-top: 1px solid var(--line); }
.dm-dl-list li > div { display: flex; flex-direction: column; min-width: 0; }
.dm-dl-list b { font-size: 17px; }
.dm-dl-list span { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
@media (max-width: 600px) {
  .dm-dl-head { padding: 20px; }
  .dm-dl-list li { flex-direction: column; align-items: stretch; gap: 10px; padding: 16px 20px; }
  .dm-dl-list .btn { width: 100%; }
}
