/* ALMALLAH Operations Suite: product site. Tokens from the app's dark theme (Theme.swift). */
:root { color-scheme: dark;
  --bg: #09090A; --bg-2: #0E0E10; --surface: #131315; --raised: #1A1A1D;
  --line: rgba(255,255,255,.075); --line-2: rgba(255,255,255,.14);
  --text: #F4F3F0; --text-2: #A3A2A8; --text-3: #6E6D73;
  --gold: #C9A465; --gold-bright: #DDC08A; --gold-deep: #8E6C36;
  --gold-grad: linear-gradient(180deg, #D2B47B 0%, #B89154 50%, #957240 100%);
  --gold-soft: rgba(201,164,101,.12);
  --profit: #45D08A; --value: #62B9EE; --cost: #F0A04B; --danger: #FF6A5E;
  --r-sm: 10px; --r: 16px; --r-lg: 24px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  --font-ar: "SF Arabic", "Geeza Pro", "Noto Sans Arabic", "Segoe UI", system-ui, sans-serif;
  --wide: 1200px;
  --ease: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; max-width: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; max-width: 100%; }
html[dir="rtl"] body { font-family: var(--font-ar); line-height: 1.8; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--gold); color: #17120A; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { inset-inline-start: 8px; }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; border-radius: 6px; }

/* type */
h1, h2, h3 { margin: 0; letter-spacing: -.02em; font-weight: 700; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { letter-spacing: 0; }
h1 { font-size: clamp(42px, 6.4vw, 84px); line-height: 1.02; }
h1 em { font-style: normal; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { font-size: clamp(30px, 4vw, 52px); line-height: 1.08; }
h3 { font-size: 22px; line-height: 1.25; }
html[dir="rtl"] h1 { line-height: 1.25; }
html[dir="rtl"] h2 { line-height: 1.3; }
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: .22em; font-size: 12.5px; font-weight: 600; margin: 0 0 16px; }
html[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: 15px; text-transform: none; }
.lead { color: var(--text-2); font-size: clamp(17px, 1.6vw, 20px); max-width: 640px; margin: 18px 0 0; }
.small { color: var(--text-3); font-size: 13px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 26px; border-radius: 999px; font: 600 16px/1 inherit; font-family: inherit; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s; }
.btn.sm { height: 38px; padding: 0 18px; font-size: 14px; }
.btn.gold { background: var(--gold-grad); color: #17120A; box-shadow: 0 8px 30px -10px rgba(201,164,101,.55); }
.btn.gold:hover { transform: translateY(-1px); box-shadow: 0 12px 34px -10px rgba(201,164,101,.7); }
.btn.ghost { border-color: var(--line-2); color: var(--text); background: rgba(255,255,255,.02); }
.btn.ghost:hover { border-color: var(--gold); }

/* nav */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; backdrop-filter: saturate(140%) blur(18px); -webkit-backdrop-filter: saturate(140%) blur(18px); background: rgba(9,9,10,.72); border-bottom: 1px solid var(--line); }
.nav-in { max-width: var(--wide); margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand span { display: flex; flex-direction: column; line-height: 1.05; }
.brand b { letter-spacing: .18em; font-size: 15px; color: var(--gold-bright); }
.brand small { letter-spacing: .24em; font-size: 9px; color: var(--text-2); }
.links { display: flex; gap: 22px; margin-inline-start: auto; }
.links a { text-decoration: none; color: var(--text-2); font-size: 14.5px; transition: color .2s; }
.links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang, .motion { height: 36px; min-width: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); font: 600 14px var(--font-ar); cursor: pointer; }
.motion { padding: 0; display: grid; place-items: center; }
.motion svg { width: 18px; height: 18px; }
.motion[aria-pressed="true"] { color: var(--gold); border-color: var(--gold); }
.lang:hover, .motion:hover { color: var(--text); }

/* sections */
section { position: relative; padding: clamp(80px, 11vw, 150px) 24px; overflow-x: clip; }
#main { overflow-x: clip; }
.section-head { max-width: var(--wide); margin: 0 auto 56px; }
.section-head h2 { max-width: 860px; }

/* hero */
.hero { min-height: min(calc(100vh - 64px), 860px); display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: 40px; max-width: var(--wide); margin: 0 auto; padding-top: 70px; }
.glow { position: absolute; inset: -10% -20% auto auto; width: 900px; height: 900px; background: radial-gradient(closest-side, rgba(201,164,101,.16), transparent 70%); pointer-events: none; filter: blur(10px); }
html[dir="rtl"] .glow { inset: -10% auto auto -20%; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 34px 0 0; color: var(--text-3); font-size: 14px; }
.hero-points li::before { content: "◆"; color: var(--gold-deep); margin-inline-end: 8px; font-size: 9px; vertical-align: 2px; }
.hero-visual { position: relative; perspective: 1600px; }
.mac { transform: rotateY(-9deg) rotateX(3deg); transform-style: preserve-3d; transition: transform 1.2s var(--ease); }
html[dir="rtl"] .mac { transform: rotateY(9deg) rotateX(3deg); }
.hero-visual:hover .mac { transform: rotateY(-4deg) rotateX(1deg); }
.mac-screen { border-radius: 14px; padding: 9px; background: linear-gradient(145deg, #2a2a2e, #111113); border: 1px solid #3a3a3f; box-shadow: 0 50px 120px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(0,0,0,.6), 0 30px 80px -40px rgba(201,164,101,.35); }
.mac-screen img { border-radius: 7px; }
.mac-base { height: 14px; margin: 0 -5%; border-radius: 0 0 16px 16px; background: linear-gradient(180deg, #3b3b40, #1b1b1e); box-shadow: 0 18px 40px -12px rgba(0,0,0,.8); }
.phone { position: absolute; width: 28%; inset-inline-end: -4%; bottom: -12%; border-radius: 30px; padding: 7px; background: linear-gradient(145deg, #2b2b30, #0f0f11); border: 1px solid #3a3a3f; box-shadow: 0 40px 80px -20px rgba(0,0,0,.9); }
.phone img { border-radius: 24px; }
.float { animation: float 7s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* story */
.story-grid { max-width: var(--wide); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.step { min-height: min(62vh, 560px); display: flex; flex-direction: column; justify-content: center; opacity: .28; transition: opacity .6s var(--ease); }
.step.on { opacity: 1; }
.step .num { font-variant-numeric: tabular-nums; color: var(--gold); font-weight: 700; letter-spacing: .1em; margin-bottom: 14px; }
.step h3 { font-size: clamp(26px, 2.6vw, 36px); }
.step p { color: var(--text-2); font-size: 18px; max-width: 470px; }
.story-device { position: sticky; top: 92px; height: min(calc(100vh - 120px), 820px); display: flex; align-items: center; justify-content: center; }
.ipad { width: min(100%, 520px, calc((min(100vh, 940px) - 170px) * .75)); border-radius: 30px; padding: 12px; background: linear-gradient(145deg, #2b2b30, #0f0f11); border: 1px solid #3a3a3f; box-shadow: 0 50px 110px -30px rgba(0,0,0,.95), 0 30px 90px -50px rgba(201,164,101,.4); }
.ipad img { border-radius: 20px; transition: opacity .45s var(--ease), transform .6s var(--ease); }
.ipad img.swap { opacity: 0; transform: scale(.985); }

/* try */
.try { background: radial-gradient(1000px 500px at 50% 0%, rgba(201,164,101,.07), transparent 70%), var(--bg-2); border-block: 1px solid var(--line); }
.scenarios { max-width: var(--wide); margin: 0 auto 22px; display: flex; gap: 10px; flex-wrap: wrap; }
.sc { height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); font: 600 15px inherit; font-family: inherit; cursor: pointer; }
.sc.active { background: var(--gold-soft); color: var(--gold-bright); border-color: rgba(201,164,101,.45); }
.sc.reset { margin-inline-start: auto; }
.sim-wrap { max-width: var(--wide); margin: 0 auto; display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }
.coach { position: sticky; top: 90px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.coach h4 { margin: 0 0 6px; color: var(--gold-bright); font-size: 15px; }
.coach p { margin: 0; color: var(--text-2); font-size: 15px; }
.coach ol { margin: 14px 0 0; padding-inline-start: 18px; color: var(--text-3); font-size: 14px; }
.coach li.done { color: var(--profit); }
.coach li.now { color: var(--text); font-weight: 600; }

/* the simulated app */
.sim { --s-bg: #0B0B0C; background: var(--s-bg); border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; display: grid; grid-template-columns: 200px 1fr; min-height: 560px; box-shadow: 0 40px 100px -40px rgba(0,0,0,.9); font-size: 14px; }
.sim-side { background: #0D0D0F; border-inline-end: 1px solid var(--line); padding: 14px 10px; }
.sim-logo { display: flex; gap: 8px; align-items: center; padding: 4px 8px 14px; }
.sim-logo img { width: 30px; }
.sim-logo b { font-size: 11px; letter-spacing: .16em; color: var(--gold-bright); line-height: 1.1; }
.sim-logo small { display: block; font-size: 7.5px; letter-spacing: .2em; color: var(--text-3); }
.sim-nav { list-style: none; margin: 0; padding: 0; }
.sim-nav li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--text-2); cursor: pointer; }
.sim-nav li.on { background: var(--gold-grad); color: #17120A; font-weight: 600; }
.sim-nav li .badge { margin-inline-start: auto; font-size: 11px; color: var(--text-3); }
.sim-nav li.on .badge { color: #17120A; }
.sim-main { padding: 22px; overflow: auto; }
.sim-top { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.sim-top h5 { margin: 0; font-size: 22px; }
.sim-top .sp { margin-inline-start: auto; }
.sbtn { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: #151517; color: var(--text); font: 600 13px inherit; font-family: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.sbtn.gold { background: var(--gold-grad); color: #17120A; border-color: transparent; }
.sbtn:disabled { opacity: .4; cursor: default; }
.pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(201,164,101,.55); } 50% { box-shadow: 0 0 0 8px rgba(201,164,101,0); } }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.kpi { background: #141416; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.kpi span { color: var(--text-3); font-size: 12px; }
.kpi b { display: block; font-size: 20px; margin-top: 2px; font-variant-numeric: tabular-nums; transition: color .4s; }
.kpi b.bump { color: var(--gold-bright); }
.list { background: #141416; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); transition: background .3s; }
.row:last-child { border-bottom: 0; }
.row.click { cursor: pointer; }
.row.click:hover { background: rgba(255,255,255,.03); }
.row .ico { width: 34px; height: 34px; border-radius: 9px; background: #1D1D20; display: grid; place-items: center; color: var(--gold); flex: none; }
.row .meta { flex: 1; min-width: 0; }
.row .meta b { display: block; font-size: 14px; }
.row .meta span { color: var(--text-3); font-size: 12px; }
.row .price { font-weight: 600; font-variant-numeric: tabular-nums; }
.pill { font-size: 11px; padding: 3px 8px; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.pill.ok { background: rgba(69,208,138,.13); color: var(--profit); }
.pill.res { background: rgba(98,185,238,.13); color: var(--value); }
.pill.sold { background: rgba(255,255,255,.07); color: var(--text-3); }
.pill.gold { background: var(--gold-soft); color: var(--gold-bright); }
.row.flash { background: rgba(201,164,101,.10); }
.cart { margin-top: 14px; background: #141416; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.cart-line { display: flex; justify-content: space-between; padding: 6px 0; color: var(--text-2); }
.cart-line.total { color: var(--text); font-weight: 700; font-size: 16px; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.pay { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.pay .sbtn.sel { border-color: var(--gold); color: var(--gold-bright); }
.receipt { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(5,5,6,.72); backdrop-filter: blur(6px); z-index: 5; animation: fade .35s var(--ease); }
.receipt-card { width: min(340px, 90%); background: #F4F3F0; color: #16161A; border-radius: 14px; padding: 22px; box-shadow: 0 30px 80px -20px #000; font-size: 13px; animation: rise .45s var(--ease); }
.receipt-card h6 { margin: 0; font-size: 15px; letter-spacing: .12em; }
.receipt-card .r-line { display: flex; justify-content: space-between; padding: 4px 0; }
.receipt-card .r-total { border-top: 1px dashed #bbb; margin-top: 8px; padding-top: 8px; font-weight: 700; }
.receipt-card .sbtn { margin-top: 14px; width: 100%; justify-content: center; background: #16161A; color: #F4F3F0; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.order { background: #141416; border: 1px solid rgba(98,185,238,.35); border-radius: 12px; padding: 14px; margin-bottom: 14px; animation: rise .5s var(--ease); }
.order h6 { margin: 0 0 8px; font-size: 14px; display: flex; gap: 8px; align-items: center; }
.timeline { list-style: none; padding: 0; margin: 10px 0 0; }
.timeline li { display: flex; gap: 10px; align-items: center; padding: 6px 0; color: var(--text-3); transition: color .4s; }
.timeline li .dot { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; font-size: 11px; flex: none; }
.timeline li.done { color: var(--text); }
.timeline li.done .dot { background: var(--profit); border-color: var(--profit); color: #08130d; }
.money { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 12px; }
.sim-main { position: relative; }

/* modules */
.grid { max-width: var(--wide); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mod { background: linear-gradient(180deg, var(--surface), #0F0F11); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; transition: transform .3s var(--ease), border-color .3s; }
.mod:hover { transform: translateY(-3px); border-color: rgba(201,164,101,.35); }
.mod svg { width: 26px; height: 26px; color: var(--gold); }
.mod h3 { font-size: 17px; margin: 14px 0 6px; }
.mod p { color: var(--text-2); font-size: 14.5px; margin: 0; line-height: 1.55; }

/* family */
.fam-grid { max-width: var(--wide); margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.fam { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.fam img, .fam-icon { width: 56px; height: 56px; border-radius: 14px; }
.fam-icon { display: grid; place-items: center; background: #1C1C1F; color: var(--gold); border: 1px solid var(--line-2); }
.fam-icon svg { width: 28px; height: 28px; }
.fam h3 { font-size: 18px; margin-top: 16px; }
.fam .tag { color: var(--gold); font-size: 13px; margin: 4px 0 10px; }
.fam p { color: var(--text-2); font-size: 14.5px; margin: 0; }
.fam.soon { border-style: dashed; border-color: rgba(201,164,101,.35); background: linear-gradient(180deg, rgba(201,164,101,.06), transparent); }
.soon-tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--gold-soft); }

/* server */
.server-in { max-width: var(--wide); margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; background: linear-gradient(135deg, #141416, #0D0D0F); border: 1px solid var(--line); border-radius: 32px; padding: clamp(32px, 5vw, 64px); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; color: var(--text); }
.checks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--gold-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23DDC08A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }

/* numbers */
.numbers { max-width: var(--wide); margin: 0 auto; padding: 20px 24px 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.numbers b { display: block; font-size: clamp(44px, 5vw, 68px); background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.numbers span { color: var(--text-2); font-size: 15px; }

/* reserve */
.reserve-in { max-width: var(--wide); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.form label { display: grid; gap: 6px; font-size: 14px; color: var(--text-2); }
.form .wide { grid-column: 1 / -1; }
.form input, .form select, .form textarea { width: 100%; background: #0E0E10; border: 1px solid var(--line-2); color: var(--text); border-radius: 12px; padding: 12px 14px; font: 16px inherit; font-family: inherit; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--gold); outline: none; }
.form-note { grid-column: 1 / -1; margin: 0; color: var(--text-3); font-size: 13px; }
.form-note.ok { color: var(--profit); }

/* footer */
.foot { text-align: center; padding: 60px 24px 50px; border-top: 1px solid var(--line); color: var(--text-2); }
.foot img { margin: 0 auto 10px; width: 150px; height: auto; border-radius: 12px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* reduced motion: system setting or the site's own switch */
@media (prefers-reduced-motion: reduce) { html:not(.motion-on) * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } html:not(.motion-on) .reveal { opacity: 1; transform: none; } }
html.calm, html.calm * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.calm .reveal { opacity: 1; transform: none; }
html.calm .step { opacity: 1; }

/* responsive */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .fam-grid { grid-template-columns: repeat(2, 1fr); }
  .fam.soon { grid-column: 1 / -1; }
  .sim-wrap { grid-template-columns: 1fr; }
  .coach { position: static; order: -1; padding: 14px 16px; }
  .coach ol { margin-top: 8px; }
}
@media (max-width: 860px) {
  .links { display: none; }
  .nav-actions { margin-inline-start: auto; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 50px; }
  .hero-visual { margin-top: 30px; }
  .story-grid { grid-template-columns: 1fr; }
  .story-device { display: none; }
  .step { min-height: auto; opacity: 1; padding: 22px 0; border-top: 1px solid var(--line); }
  .step::after { content: ""; display: block; margin-top: 16px; aspect-ratio: 3/4; max-width: 420px; border-radius: 18px; background: var(--shot) center/cover no-repeat; border: 1px solid var(--line-2); }
  .server-in, .reserve-in { grid-template-columns: 1fr; gap: 30px; }
  .numbers { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .sim { grid-template-columns: 1fr; min-height: 520px; }
  /* Phones: the app's menu becomes a scrollable tab bar on top, so every step can be tapped. */
  .sim-side { border-inline-end: 0; border-bottom: 1px solid var(--line); padding: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .sim-logo { display: none; }
  .sim-nav { display: flex; gap: 6px; width: max-content; }
  .sim-nav li { padding: 8px 12px; white-space: nowrap; }
  .sim-nav li .badge { display: none; }
  .cards { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  section { padding-inline: 16px; }
  .nav-in { padding: 10px 16px; gap: 10px; }
  .brand small { display: none; }
  .grid, .fam-grid { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; padding: 20px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .sim-main { padding: 14px; }
  .btn { height: 46px; padding: 0 20px; }
}
/* sim additions */
.kpi.chart { padding-bottom: 6px; }
.kpi.chart svg { width: 100%; height: 92px; display: block; margin-top: 6px; }
.pulse { outline: 1.5px solid rgba(221,192,138,.85); outline-offset: 2px; }
.foot-lang { display: flex; gap: 8px; justify-content: center; margin: 18px 0 6px; }
.lang-alt { height: 40px; padding: 0 18px; }
/* Phones: keep the top bar's buttons clear of the edges, where the viewer may place its own controls. */
@media (max-width: 560px) { .nav-in { padding-inline: 16px 16px; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lang-pick select { height: 36px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); padding: 0 30px 0 14px; font: 600 14px var(--font-ar); appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%23A3A2A8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 14px; }
html[dir="rtl"] .lang-pick select { padding: 0 14px 0 30px; background-position: left 10px center; }
.lang-pick select:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
/* The demo keeps the app's own left-to-right layout and English font inside any page language. */
.sim-wrap[dir="ltr"], .scenarios[dir="ltr"] { font-family: var(--font); }
/* Language row at the top of the content: always reachable on phones, away from the screen corners. */
.hero-langs { display: flex; gap: 6px; margin-bottom: 22px; }
html[dir="rtl"] .hero-langs { justify-content: flex-end; }
.hl { height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); font: 600 13.5px var(--font-ar); cursor: pointer; }
.hl[aria-pressed="true"] { border-color: var(--gold); color: var(--gold-bright); background: var(--gold-soft); }
/* The top bar keeps one layout in every language, so its controls never move into a corner the viewer covers. */
.nav-in[dir="ltr"] .links a { font-family: var(--font-ar); }

/* ===== v2: whole-app demo ===== */
.scenarios { align-items: center; }
.sc-label { color: var(--text-3); font-size: 13px; margin-inline-end: 4px; }
.sc-gap { flex: 1; }
.sim { grid-template-columns: 214px 1fr; height: min(780px, 86vh); min-height: 560px; }
.sim-side { overflow-y: auto; overscroll-behavior: contain; }
.sim-main { overflow: auto; min-height: 0; min-width: 0; overscroll-behavior: contain; }
.sim-top { flex-wrap: wrap; }
.sim-nav li { padding: 7px 10px; font-size: 13.5px; }
.sim-nav li.grp { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); padding: 12px 10px 4px; cursor: default; }
.sim-label { margin: 14px 0 8px; }
.sbtn.sel { border-color: var(--gold); color: var(--gold-bright); }
.sbtn svg { width: 14px; height: 14px; }
.pay { margin: 12px 0 0; }
.cart .pay { margin: 10px 0 0; }
.note { margin-top: 12px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: #141416; font-size: 13px; color: var(--text-2); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.note svg { flex: none; }
.note > span { flex: 1 1 220px; }
.note.warn { border-color: rgba(240,160,75,.4); color: #F0C38F; }
.note.ok { border-color: rgba(69,208,138,.35); color: var(--profit); }
.pill.bad { background: rgba(255,106,94,.14); color: var(--danger); }
.small.cost { margin-inline-end: 8px; white-space: nowrap; }
.row .ico b { font-size: 12px; }
.order.plain { border-color: var(--line-2); }
.checkcard { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 12px; border: 1px solid var(--line-2); margin: 12px 0; background: #141416; }
.checkcard.good { border-color: rgba(69,208,138,.4); color: var(--profit); }
.checkcard.bad { border-color: rgba(255,106,94,.5); background: rgba(255,106,94,.06); color: var(--danger); }
.checkcard b { color: var(--text); }
.ring { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 2px solid currentColor; font-weight: 700; font-size: 20px; }
.steps { display: flex; gap: 4px; margin: 10px 0 0; }
.steps i { flex: 1; height: 5px; border-radius: 3px; background: #26262a; }
.steps i.on { background: var(--gold); }
.chat { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.bubble { max-width: 80%; padding: 9px 12px; border-radius: 14px; font-size: 14px; line-height: 1.45; }
.bubble.them { align-self: flex-start; background: #1f1f23; }
.bubble.me { align-self: flex-end; background: #1d3a2b; color: #dff5e7; }
.bubble svg { vertical-align: -3px; }
.card-in { display: block; }
.receipt { position: fixed; z-index: 300; }
.coach-done { margin-top: 14px !important; color: var(--gold-bright) !important; }
.coach-bar { height: 4px; background: #26262a; border-radius: 2px; margin: 14px 0 6px; overflow: hidden; }
.coach-bar i { display: block; height: 100%; background: var(--gold); }
/* full screen */
html.demo-full { overflow: hidden; }
.sim-wrap.full { position: fixed; inset: 0; z-index: 200; max-width: none; margin: 0; padding: 56px 12px 12px; background: var(--bg-2); overflow: auto; opacity: 1; transform: none; }
.sim-wrap.full .sim { height: calc(100vh - 68px); height: calc(100dvh - 68px); }
.sim-exit { position: absolute; top: 8px; inset-inline-end: 12px; background: var(--surface); }

/* ===== v2: compare ===== */
.cmp { max-width: var(--wide); margin: 0 auto; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.cmp-head, .cmp-row { display: grid; grid-template-columns: 1fr 1fr; }
.cmp-head span { padding: 14px 22px; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.cmp-head span:last-child { color: var(--gold); background: rgba(201,164,101,.05); }
html[dir="rtl"] .cmp-head span { letter-spacing: 0; font-size: 14px; }
.cmp-row { border-top: 1px solid var(--line); }
.cmp-a, .cmp-b { padding: 18px 22px; display: flex; gap: 12px; }
.cmp-a { color: var(--text-3); }
.cmp-a::before { content: "✕"; color: #7a5a55; flex: none; }
.cmp-b { color: var(--text); background: rgba(201,164,101,.05); }
.cmp-b::before { content: "✓"; color: var(--gold-bright); flex: none; font-weight: 700; }

/* ===== v2: module explorer ===== */
.ex { max-width: var(--wide); margin: 0 auto; display: grid; grid-template-columns: 232px 1fr; gap: 28px; align-items: start; }
.ex-tabs { display: flex; flex-direction: column; gap: 4px; }
.ex-tab { text-align: start; padding: 10px 14px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--text-2); font: 500 15px inherit; font-family: inherit; cursor: pointer; }
.ex-tab:hover { color: var(--text); }
.ex-tab.on { background: var(--gold-soft); color: var(--gold-bright); border-color: rgba(201,164,101,.35); }
.ex-panel { display: grid; grid-template-columns: 1fr 1.15fr; gap: 32px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; min-width: 0; }
.ex-text { min-width: 0; }
.ex-text h3 { font-size: clamp(24px, 2.4vw, 32px); }
.ex-text p { color: var(--text-2); margin: 14px 0 0; }
.ex-text .checks { margin: 20px 0 26px; }
.ex-text .checks li { font-size: 15.5px; }
.ex-visual { min-width: 0; }
.ex-devs { display: flex; gap: 6px; margin-bottom: 12px; justify-content: flex-end; }
.ex-frame { border-radius: 14px; padding: 6px; background: linear-gradient(145deg, #2a2a2e, #111113); border: 1px solid #3a3a3f; box-shadow: 0 30px 70px -30px rgba(0,0,0,.9); }
.ex-frame img { border-radius: 9px; width: 100%; }
.ex-frame.ipad { max-width: 420px; margin: 0 auto; border-radius: 22px; padding: 8px; }
.ex-frame.ipad img { border-radius: 14px; }
.ex-frame.iphone { max-width: 270px; margin: 0 auto; border-radius: 30px; }
.ex-frame.iphone img { border-radius: 24px; }
.ex-art { background: #0B0B0C; border: 1px solid var(--line-2); border-radius: 14px; padding: 16px; font-family: var(--font); font-size: 14px; line-height: 1.5; text-align: left; }
.ex-art .order { margin: 0; }

/* ===== v2: FAQ ===== */
.faq .section-head { max-width: 860px; }
.faq-list { max-width: 860px; margin: 0 auto; display: grid; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.faq-item summary { cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--gold); font-size: 22px; line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0 0 18px; color: var(--text-2); }
.grid .mod { opacity: 1; }

@media (max-width: 1100px) {
  .ex-panel { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .sim { height: auto; grid-template-columns: 1fr; }
  .sim-main { overflow: visible; }
  .sim-nav li.grp { display: none; }
  .sim-wrap.full .sim { height: auto; min-height: calc(100vh - 68px); }
  .ex { grid-template-columns: 1fr; gap: 14px; }
  .ex-tabs { flex-direction: row; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .ex-tab { white-space: nowrap; border-color: var(--line-2); padding: 8px 14px; }
  .ex-panel { padding: 20px; }
  .ex-devs { justify-content: flex-start; }
  .sc-gap { display: none; }
}
@media (max-width: 560px) {
  .cmp-head, .cmp-row { grid-template-columns: 1fr; }
  .cmp-head span:first-child { display: none; }
  .cmp-a, .cmp-b { padding: 12px 16px; }
  .row { flex-wrap: wrap; }
  .row .meta { flex: 1 1 60%; }
  .cards { grid-template-columns: 1fr 1fr; }
  .cards .kpi:first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .sim { grid-template-rows: auto 1fr; min-height: 0; }
  .scenarios { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
  .scenarios .sc, .sc-label { flex: none; white-space: nowrap; }
}
@media (max-width: 560px) {
  .nav-in { gap: 6px; }
  .brand img { width: 36px; height: auto; }
  .brand b { letter-spacing: .1em; font-size: 13.5px; }
  .nav-actions { gap: 6px; }
  .lang-pick select { font-size: 13px; padding: 0 24px 0 10px; background-position: right 7px center; }
  html[dir="rtl"] .lang-pick select { padding: 0 24px 0 10px; background-position: right 7px center; }
  .nav .btn.sm { padding: 0 13px; }
}

/* ===== v3: the demo looks like the app (warm glow, glass cards) ===== */
.sim { background: radial-gradient(900px 520px at 88% -12%, rgba(201,164,101,.20), transparent 62%), radial-gradient(700px 520px at -5% 105%, rgba(140,92,32,.16), transparent 60%), #0A0A0B; border-color: rgba(201,164,101,.22); border-radius: 22px; }
.sim-side { background: rgba(10,10,11,.62); }
.sim .kpi, .sim .list, .sim .cart, .sim .order, .sim .note, .sim .checkcard { background: rgba(255,255,255,.038); border-color: rgba(255,255,255,.085); border-radius: 16px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.sim .order { border-color: rgba(98,185,238,.32); }
.sim .order.plain { border-color: rgba(255,255,255,.085); }
.sim .note.warn { border-color: rgba(240,160,75,.4); }
.sim .note.ok { border-color: rgba(69,208,138,.35); }
.sim .checkcard.good { border-color: rgba(69,208,138,.4); }
.sim .checkcard.bad { border-color: rgba(255,106,94,.5); background: rgba(255,106,94,.07); }
.sim-top h5 { font-size: 26px; letter-spacing: -.02em; }
.sim .kpi b { font-size: 22px; }
.sim .row { padding: 12px 14px; }
.sim .row .ico { border-radius: 11px; background: rgba(201,164,101,.10); border: 1px solid rgba(201,164,101,.16); }
.sim .sbtn { height: 36px; background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); }
.sim .sbtn.gold { background: var(--gold-grad); border-color: transparent; box-shadow: 0 6px 20px -8px rgba(201,164,101,.6); }
.sim .sbtn.sel { background: var(--gold-soft); border-color: var(--gold); }
.sim-nav li.on { box-shadow: 0 6px 18px -8px rgba(201,164,101,.6); }
.sim .order { margin-bottom: 12px; }
/* tour */
.sc.tour { background: var(--gold-grad); color: #17120A; border-color: transparent; font-weight: 700; }
.tourbar { position: sticky; top: 0; z-index: 3; margin: -6px 0 12px; padding: 8px 12px; border-radius: 10px; background: rgba(201,164,101,.16); border: 1px solid rgba(201,164,101,.4); color: var(--gold-bright); font-size: 13px; font-weight: 600; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hot { outline: 2px solid var(--gold-bright) !important; outline-offset: 3px; box-shadow: 0 0 0 8px rgba(201,164,101,.18) !important; transition: box-shadow .3s, outline-color .3s; }

/* ===== v3: module depth ===== */
.ex-how { margin: 0 0 10px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
html[dir="rtl"] .ex-how { letter-spacing: 0; font-size: 15px; }
.ex-steps { list-style: none; margin: 0 0 26px; padding: 0; counter-reset: s; display: grid; gap: 10px; }
.ex-steps li { counter-increment: s; display: flex; gap: 12px; color: var(--text-2); font-size: 15.5px; }
.ex-steps li::before { content: counter(s); flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(201,164,101,.5); color: var(--gold-bright); font-size: 12.5px; font-weight: 700; display: grid; place-items: center; margin-top: 1px; }
.ex-text .checks { margin: 20px 0 24px; }
button.ex-frame { display: block; width: 100%; cursor: zoom-in; font: inherit; color: inherit; }
.ex-frame.ipad, .ex-frame.iphone { width: 100%; }
.ex-thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.ex-thumb { flex: none; width: 76px; height: 56px; padding: 0; border-radius: 9px; overflow: hidden; border: 1px solid var(--line-2); background: #000; cursor: pointer; opacity: .6; }
.ex-thumb.on { border-color: var(--gold); opacity: 1; }
.ex-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ex-zoomhint { margin: 10px 0 0; text-align: center; }
.ipad { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 400; background: rgba(4,4,5,.92); display: grid; place-items: center; padding: 16px; cursor: zoom-out; overflow: auto; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(100%, 1500px); max-height: none; width: auto; border-radius: 12px; border: 1px solid #3a3a3f; box-shadow: 0 40px 120px -20px #000; }
@media (min-width: 861px) { .lightbox img { max-height: 94vh; } }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-privacy { margin: 0; color: var(--text-3); font-size: 13px; }
.form-privacy a, .foot a { color: var(--gold); }
