/* Layout: navy hero with a live till beside it, then ivory sections in one 1120px column; Arabic (RTL) and English (LTR). */
:root {
  --navy: #14233c;
  --copper: #b87333;
  --copper-light: #c9834a;
  --ivory: #f5f3ef;
  --surface: #f5f3ef;
  --surface-raised: #ffffff;
  --ink: #14233c;
  --ink-muted: #58616e;
  --primary: #14233c;
  --on-primary: #f5f3ef;
  --notice: #f7e6d6;
  --on-notice: #4a2a10;
  --outline: #e0dcd5;
  --band: #14233c;
  --on-band: #f5f3ef;
  --on-band-muted: #c3cad6;
  --cta: #b87333;
  --on-cta: #ffffff;
  --font: "Cairo", "Segoe UI", Tahoma, sans-serif;
  --r-field: 12px; --r-button: 14px; --r-card: 16px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface: #0e1622; --surface-raised: #0a111b; --ink: #e2e2e9; --ink-muted: #a3a9b4;
    --primary: #a9bedd; --on-primary: #0a1424; --notice: #4a2e18; --on-notice: #ffdcc2; --outline: #263247;
    --band: #0a111b; --on-band: #f5f3ef; --on-band-muted: #a3a9b4; --cta: #c9834a; --on-cta: #1e1006;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --surface: #0e1622; --surface-raised: #0a111b; --ink: #e2e2e9; --ink-muted: #a3a9b4;
  --primary: #a9bedd; --on-primary: #0a1424; --notice: #4a2e18; --on-notice: #ffdcc2; --outline: #263247;
  --band: #0a111b; --on-band: #f5f3ef; --on-band-muted: #a3a9b4; --cta: #c9834a; --on-cta: #1e1006;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--surface); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.7; margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; margin: 0; line-height: 1.3; }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: var(--r-button); font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.btn:focus-visible, .seg button:focus-visible, summary:focus-visible { outline: 2px solid var(--copper-light); outline-offset: 2px; }
.btn-cta { background: var(--cta); color: var(--on-cta); }
.btn-ghost { border-color: color-mix(in srgb, var(--on-band) 45%, transparent); color: var(--on-band); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-outline { border-color: var(--copper); color: var(--ink); background: transparent; }

/* Header + hero */
.band { background: var(--band); color: var(--on-band); }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.logo svg { height: 34px; width: auto; display: block; }
header nav { display: flex; gap: 22px; align-items: center; font-size: 14px; }
header nav a { text-decoration: none; color: var(--on-band-muted); }
header nav a:hover { color: var(--on-band); }
@media (max-width: 720px) { header nav .hide-sm { display: none; } }

.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-block: 40px 72px; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 36px; padding-block: 24px 48px; } }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 600; color: var(--copper-light);
  border: 1px solid color-mix(in srgb, var(--copper-light) 50%, transparent); padding: 4px 12px; border-radius: 999px; }
.hero h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; margin-top: 16px; }
.hero h1 em { font-style: normal; color: var(--copper-light); }
.hero .lead { font-size: 18px; color: var(--on-band-muted); margin-top: 16px; max-width: 34em; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 15px; }
.ticks li { display: flex; align-items: center; gap: 8px; }
.tick { width: 20px; height: 20px; flex: none; }
.tick circle { fill: var(--copper-light); } .tick path { stroke: var(--navy); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .small { margin-top: 12px; font-size: 13px; color: var(--on-band-muted); }

/* The till mock */
.till { background: #f5f3ef; color: #14233c; border-radius: 20px; padding: 10px; box-shadow: 0 24px 60px rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.08); min-width: 0; }
.till-in { display: grid; grid-template-columns: 1fr 1.25fr; gap: 10px; direction: rtl; font-size: 12px; }
.ticket { background: #fff; border-radius: 14px; border: 1px solid #e0dcd5; padding: 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ticket h4 { margin: 0 0 4px; font-size: 14px; }
.line { display: flex; justify-content: space-between; gap: 6px; }
.line small { display: block; color: #58616e; font-size: 11px; }
.tot { border-top: 1px solid #e0dcd5; margin-top: auto; padding-top: 8px; }
.tot .big { font-weight: 800; font-size: 16px; }
.pay { background: #b87333; color: #fff; border-radius: 10px; text-align: center; padding: 9px; font-weight: 700; margin-top: 6px; }
.menu { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cats { display: flex; gap: 6px; flex-wrap: wrap; }
.cats span { padding: 4px 10px; border-radius: 999px; border: 1px solid #e0dcd5; background: #fff; }
.cats .on { background: #14233c; color: #f5f3ef; border-color: #14233c; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tile { background: #fff; border: 1px solid #e0dcd5; border-radius: 10px; overflow: hidden; }
.tile .ph { height: 38px; background: #f7e6d6; display: grid; place-items: center; color: #b87333; font-weight: 800; font-size: 16px; }
.tile .nm { padding: 4px 6px 6px; line-height: 1.35; }
.tile .pr { color: #b87333; font-weight: 700; }
.tile.sel { border-color: #b87333; }
.ready { display: flex; align-items: center; gap: 6px; background: #f7e6d6; color: #4a2a10; border-radius: 10px; padding: 6px 8px; font-size: 11px; }
.ready b { border: 1px solid #4a2a10; border-radius: 999px; padding: 0 6px; font-size: 10px; }
@media (max-width: 520px) { .till-in { grid-template-columns: 1fr; } .tiles { grid-template-columns: repeat(2, 1fr); } }


/* AI section */
.ai { background: var(--surface-raised); border-block: 1px solid var(--outline); }
.ai .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding-block: 72px; }
@media (max-width: 900px) { .ai .wrap { grid-template-columns: 1fr; gap: 28px; } }
.ai-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--on-notice); background: var(--notice); padding: 4px 12px; border-radius: 999px; }
.ai-badge svg { width: 16px; height: 16px; fill: currentColor; }
.ai-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; }
.ai-list li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.ai-list .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--notice); display: grid; place-items: center; }
.ai-list .ico svg { width: 22px; height: 22px; stroke: var(--on-notice); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ai-list h3 { font-size: 17px; font-weight: 700; }
.ai-list p { color: var(--ink-muted); font-size: 15px; }
.soon { font-size: 12px; font-weight: 700; color: var(--ink-muted); border: 1px solid var(--outline); border-radius: 999px; padding: 0 8px; margin-inline-start: 6px; vertical-align: middle; }
.ai-note { color: var(--ink-muted); font-size: 13px; margin-top: 20px; }
.chat { background: var(--surface); border: 1px solid var(--outline); border-radius: 20px; padding: 18px; display: grid; gap: 12px; min-width: 0; }
.chat .head { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.chat .head svg { width: 20px; height: 20px; fill: var(--copper); }
.q { justify-self: start; background: var(--primary); color: var(--on-primary); border-radius: 16px 16px 16px 4px; padding: 10px 14px; max-width: 85%; }
.a { justify-self: end; background: var(--surface-raised); border: 1px solid var(--outline); border-radius: 16px 16px 4px 16px; padding: 12px 14px; max-width: 92%; font-size: 15px; }
.a ul { margin: 6px 0; padding-inline-start: 18px; }
.a .src { display: block; font-size: 12px; color: var(--ink-muted); margin-top: 6px; }
.photo { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; background: var(--surface-raised); border: 1px dashed var(--copper); border-radius: 14px; padding: 10px; font-size: 14px; }
.photo .pic { height: 72px; border-radius: 10px; background: repeating-linear-gradient(0deg, var(--notice) 0 10px, var(--surface-raised) 10px 14px); border: 1px solid var(--outline); }
.photo b { color: var(--copper); }

/* Offer strip */
.offer { background: var(--notice); color: var(--on-notice); }
.offer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 18px; }
.offer strong { font-size: 17px; }
.offer .until { font-size: 14px; }

/* Sections */
section.block { padding-block: 72px; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: 0; color: var(--copper); }
:root[data-theme="dark"] .kicker { color: var(--copper-light); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .kicker { color: var(--copper-light); } }
h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; margin-top: 6px; }
.sub { color: var(--ink-muted); margin-top: 10px; max-width: 40em; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.feat { background: var(--surface-raised); border: 1px solid var(--outline); border-radius: var(--r-card); padding: 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.feat .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--notice); display: grid; place-items: center; }
.feat .ico svg { width: 22px; height: 22px; stroke: var(--on-notice); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feat h3 { font-size: 18px; font-weight: 700; }
.feat p { color: var(--ink-muted); font-size: 15px; }

.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: s; border-top: 3px solid var(--copper); padding-top: 16px; }
.steps li::before { content: counter(s, arabic-indic); font-size: 28px; font-weight: 800; color: var(--copper); display: block; line-height: 1; margin-bottom: 8px; }
.steps h3 { font-size: 18px; font-weight: 700; }
.steps p { color: var(--ink-muted); font-size: 15px; margin-top: 4px; }

/* Pricing */
.price-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; }
.seg { display: inline-flex; border: 1px solid var(--outline); border-radius: 999px; padding: 4px; background: var(--surface-raised); }
.seg button { font: 600 14px var(--font); border: 0; background: transparent; color: var(--ink); padding: 8px 16px; border-radius: 999px; cursor: pointer; min-height: 40px; }
.seg button[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--surface-raised); border: 1px solid var(--outline); border-radius: var(--r-card); padding: 26px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.plan.pop { border: 2px solid var(--copper); }
.plan .tag { align-self: flex-start; font-size: 12px; font-weight: 700; background: var(--notice); color: var(--on-notice); padding: 2px 10px; border-radius: 999px; }
.plan h3 { font-size: 20px; font-weight: 800; }
.plan .for { color: var(--ink-muted); font-size: 14px; margin-top: -8px; }
.amount { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.amount .v { font-size: 40px; font-weight: 800; line-height: 1; }
.amount .c { font-weight: 700; }
.amount .per { color: var(--ink-muted); font-size: 14px; }
.was { font-size: 13px; color: var(--on-notice); background: var(--notice); padding: 2px 8px; border-radius: 8px; align-self: flex-start; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15px; }
.plan li { display: flex; gap: 8px; align-items: flex-start; }
.plan li .tick { margin-top: 4px; width: 16px; height: 16px; }
.plan li .tick circle { fill: var(--copper); } .plan li .tick path { stroke: #fff; }
.plan .btn { margin-top: auto; }
.fine { color: var(--ink-muted); font-size: 13px; margin-top: 16px; }

/* FAQ */
.faq { margin-top: 28px; display: grid; gap: 10px; max-width: 820px; }
details { background: var(--surface-raised); border: 1px solid var(--outline); border-radius: var(--r-field); padding: 0 18px; }
summary { cursor: pointer; list-style: none; font-weight: 700; padding: 16px 0; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--copper); font-weight: 800; }
details[open] summary::after { content: "−"; }
details p { color: var(--ink-muted); padding-bottom: 16px; }

/* Closing band + footer */
.close .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-block: 56px; }
.close h2 { color: var(--on-band); }
.close p { color: var(--on-band-muted); margin-top: 8px; }
.close .actions { display: flex; gap: 12px; flex-wrap: wrap; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; padding-block: 24px;
  border-top: 1px solid color-mix(in srgb, var(--on-band) 15%, transparent); font-size: 14px; color: var(--on-band-muted); }
footer .logo svg { height: 26px; }
.phone { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; color: var(--on-band); }

/* The English page reads left to right, its till too. */
html[dir="ltr"] .till-in { direction: ltr; }
