/* Al-Aseel Soft — one stylesheet for every page. Tokens first; components use tokens only. */
:root {
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --surface-2: #F1F5F9;
  --text: #0F172A;
  --text-2: #475569;
  --border: #E2E8F0;
  --primary: #0F172A;
  --on-primary: #FFFFFF;
  --navy: #0F172A;
  --navy-2: #1A2A5C;
  --gold: #E0A526;
  --gold-ink: #8C5E08;
  --wa: #15803D;
  --wa-hover: #166534;
  --dukkani: #4F46E5;
  --dukkani-2: #A78BFA;
  --dukkani-soft: #EEF2FF;
  --manfathi: #1A2A5C;
  --manfathi-soft: #FDF6E3;
  --ring: #0369A1;
  --radius: 16px;
  --shadow: 0 1px 2px rgb(15 23 42 / .06), 0 8px 24px rgb(15 23 42 / .08);
  --shadow-lg: 0 24px 60px rgb(15 23 42 / .18);
  --container: 1180px;
  /* faint 8-point-star lattice — the "أصيل" heritage motif */
  --stars: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23E0A526' stroke-width='1.5'%3E%3Crect x='22' y='22' width='28' height='28'/%3E%3Crect x='22' y='22' width='28' height='28' transform='rotate(45 36 36)'/%3E%3C/g%3E%3C/svg%3E");
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1120;
    --surface: #111A2E;
    --surface-2: #16213A;
    --text: #F1F5F9;
    --text-2: #A8B3C7;
    --border: #22304D;
    --primary: #E0A526;
    --on-primary: #0F172A;
    --gold-ink: #F2C14E;
    --dukkani: #8B8CFF;
    --dukkani-soft: #1B1F45;
    --manfathi: #9DB0F0;
    --manfathi-soft: #2A2410;
    --ring: #7DD3FC;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .3);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Cairo", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.35; margin: 0 0 .5em; font-weight: 800; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: clamp(56px, 9vw, 104px); }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }
.section-head { max-width: 680px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.section-head p { color: var(--text-2); font-size: 1.125rem; }
.eyebrow { display: inline-block; font-size: .9rem; font-weight: 700; color: var(--gold-ink); letter-spacing: .02em; margin-bottom: .5rem; }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--primary); color: var(--on-primary); padding: 8px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* Icons from assets/icons.svg */
.i { width: 24px; height: 24px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i-sm { width: 18px; height: 18px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 22px; border-radius: 12px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  touch-action: manipulation;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { box-shadow: 0 6px 20px rgb(15 23 42 / .25); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #F2C14E; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-hover); }
.btn-ghost { border-color: var(--border); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text-2); }
.btn-ghost-light { border-color: rgb(255 255 255 / .35); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; background: rgb(255 255 255 / .06); }
.btn-sm { min-height: 44px; padding: 6px 16px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-inline-end: auto; }
.brand svg { width: 40px; height: 40px; }
.brand b { display: block; font-size: 1.2rem; font-weight: 800; line-height: 1.1; }
.brand small { display: block; font-size: .75rem; color: var(--text-2); letter-spacing: .04em; line-height: 1.2; direction: ltr; text-align: end; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 10px 14px; border-radius: 10px; text-decoration: none; font-weight: 600; color: var(--text-2); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.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(--border); cursor: pointer; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile .nav { position: absolute; inset-inline-end: 0; top: 54px; flex-direction: column; min-width: 220px; padding: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); }
@media (max-width: 900px) {
  .site-header > .container > .nav { display: none; }
  .nav-mobile { display: block; }
}
@media (max-width: 420px) { .header-wa span { display: none; } .header-wa { padding-inline: 12px; } }

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; background: var(--navy); }
.hero::before, .cta::before { content: ""; position: absolute; inset: 0; opacity: .07; pointer-events: none; background-image: var(--stars); }
.hero::after { content: ""; position: absolute; inset: auto -20% -40% auto; width: 70%; aspect-ratio: 1; background: radial-gradient(closest-side, rgb(224 165 38 / .22), transparent); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(32px, 5vw, 64px); padding-block: clamp(56px, 8vw, 96px); }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: #CBD5E1; max-width: 560px; }
.hero .btn-row { margin-top: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 28px 0 0; padding: 0; list-style: none; color: #CBD5E1; font-size: .95rem; }
.chips li { display: inline-flex; align-items: center; gap: 8px; }
.chips .i { color: var(--gold); }
.hero-visual { position: relative; }
.shot { border-radius: 14px; overflow: hidden; border: 1px solid rgb(255 255 255 / .12); box-shadow: var(--shadow-lg); background: #fff; }
.shot-phone { position: absolute; width: 27%; inset-inline-end: -4%; bottom: -10%; border-radius: 22px; border: 6px solid #0B1120; box-shadow: var(--shadow-lg); overflow: hidden; }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .shot-phone { inset-inline-end: 2%; }
}

/* Product hero variants */
.hero-dukkani { background: linear-gradient(160deg, #1E1B4B 0%, #0F172A 70%); }
.hero-dukkani h1 em { color: var(--dukkani-2); }
.hero-manfathi { background: linear-gradient(160deg, #1A2A5C 0%, #0F172A 75%); }
.app-badge { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.app-badge img { width: 56px; height: 56px; border-radius: 14px; }
.app-badge span { font-weight: 800; font-size: 1.4rem; }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-top: -40px; position: relative; z-index: 2; box-shadow: var(--shadow); }
.stat { background: var(--surface); padding: 22px 20px; text-align: center; }
.stat b { display: block; font-size: 1.6rem; font-weight: 800; color: var(--text); }
.stat span { color: var(--text-2); font-size: .95rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Cards & grids */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.feature .ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--surface-2); color: var(--text); margin-bottom: 14px; }
.feature p { color: var(--text-2); margin: 0; }
.feature ul { margin: 8px 0 0; padding-inline-start: 1.1em; color: var(--text-2); }
.t-dukkani .ico { background: var(--dukkani-soft); color: var(--dukkani); }
.t-manfathi .ico { background: var(--manfathi-soft); color: var(--gold-ink); }

/* Product cards (home) */
.product { position: relative; display: flex; flex-direction: column; padding: 0; overflow: hidden; transition: box-shadow .2s ease, transform .2s ease; }
.product:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.product-top { display: flex; align-items: center; gap: 14px; padding: 26px 26px 0; }
.product-top img { width: 60px; height: 60px; border-radius: 15px; }
.product-top h3 { margin: 0; font-size: 1.5rem; }
.product-top p { margin: 0; color: var(--text-2); }
.product-body { padding: 18px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.product-body > p { color: var(--text-2); }
.product-shot { aspect-ratio: 16 / 9; object-fit: cover; object-position: top right; border-top: 1px solid var(--border); }
.ticks { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .i { color: var(--wa); margin-top: 4px; }
.product-foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.from { color: var(--text-2); font-size: .95rem; }
.from b { color: var(--text); font-size: 1.15rem; }

/* Feature rows with screenshots */
.row { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.row + .row { margin-top: clamp(48px, 7vw, 88px); }
.row:nth-child(even) .row-media { order: -1; }
.row-media .shot { border-color: var(--border); }
.row h3 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); font-weight: 800; }
.row p { color: var(--text-2); }
@media (max-width: 860px) { .row { grid-template-columns: 1fr; } .row:nth-child(even) .row-media { order: 0; } }

/* Gallery (horizontal scroll-snap, component-level only) */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 560px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; overscroll-behavior-x: contain; }
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery figcaption { margin-top: 10px; font-weight: 700; color: var(--text-2); }
.gallery .shot { border-color: var(--border); }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding-top: 64px; }
.steps li::before { content: counter(step); position: absolute; top: 0; inset-inline-start: 26px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--gold); font-weight: 800; font-size: 1.2rem; }
.steps .card { height: 100%; padding-top: 34px; }
.steps p { color: var(--text-2); margin: 0; }

/* Demo block */
.demo { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); background: var(--navy); color: #fff; }
.demo .ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; background: rgb(224 165 38 / .15); color: var(--gold); }
.demo .ico .i { width: 32px; height: 32px; }
.demo h2 { color: #fff; font-size: clamp(1.35rem, 2.6vw, 1.75rem); margin-bottom: .25em; }
.demo p { color: #CBD5E1; margin: 0; }
@media (max-width: 760px) { .demo { grid-template-columns: 1fr; } }

/* Pricing */
.plans { align-items: stretch; }
.plan { display: flex; flex-direction: column; position: relative; }
.plan h3 { margin-bottom: 4px; }
.plan .price { font-size: 2.4rem; font-weight: 800; line-height: 1.2; margin: 10px 0 2px; }
.plan .price small { font-size: 1rem; font-weight: 700; color: var(--text-2); }
.plan .per { color: var(--text-2); margin-bottom: 18px; }
.plan .ticks { flex: 1; }
.plan-best { border: 2px solid var(--gold); box-shadow: var(--shadow-lg); }
.badge { position: absolute; top: -14px; inset-inline-start: 24px; background: var(--gold); color: var(--navy); font-weight: 800; font-size: .85rem; padding: 4px 14px; border-radius: 999px; }
.note { text-align: center; color: var(--text-2); margin-top: 24px; font-size: .95rem; }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--text-2); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 18px; margin: 0; color: var(--text-2); }

/* CTA band */
.cta { text-align: center; color: #fff; background: var(--navy); position: relative; overflow: hidden; }
.cta > .container { position: relative; }
.cta h2 { color: #fff; }
.cta p { color: #CBD5E1; max-width: 560px; margin-inline: auto; }
.cta .btn-row { justify-content: center; margin-top: 24px; }

/* Footer */
.site-footer { padding-block: 48px 28px; background: var(--surface); border-top: 1px solid var(--border); color: var(--text-2); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: var(--text); margin: 0 0 10px; font-size: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer a { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.copy { border-top: 1px solid var(--border); margin-top: 32px; padding-top: 20px; text-align: center; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* Floating WhatsApp button */
.fab { position: fixed; inset-inline-start: 18px; bottom: 18px; z-index: 40; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; box-shadow: 0 10px 30px rgb(21 128 61 / .4); }
.fab .i { width: 28px; height: 28px; }
.fab:hover { background: var(--wa-hover); }

/* Entrance motion — only when the user allows it */
@media (prefers-reduced-motion: no-preference) {
  .hero-inner > * { animation: rise .5s ease-out both; }
  .hero-inner > :nth-child(2) { animation-delay: .08s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
