/* RPOS public landing page */
:root {
  --brand: #1C26FA;
  --brand-dark: #0B1240;
  --brand-ink: #111A8F;
  --ink: #0F172A;
  --muted: #5B6478;
  --line: #E3E7F0;
  --bg: #FFFFFF;
  --bg-alt: #F5F7FC;
  --card: #FFFFFF;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 30px 60px -20px rgba(11, 18, 64, .35);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
:root[lang="ar"] { --font: "Noto Kufi Arabic", "Inter", system-ui, sans-serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0; letter-spacing: -.01em; }
:root[lang="ar"] h1, :root[lang="ar"] h2, :root[lang="ar"] h3, :root[lang="ar"] h4 { letter-spacing: 0; line-height: 1.45; }
p { margin: 0; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { inset-inline-start: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 12px 20px;
  font: 700 15px/1.2 var(--font); text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; font-style: normal; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, .tab:focus-visible, .lang-btn:focus-visible, a:focus-visible { outline: 3px solid #99A2FF; outline-offset: 2px; }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -8px rgba(28, 38, 250, .6); }
.btn-primary:hover { background: #121CE0; }
.btn-ghost { background: #EEF0FF; color: var(--brand-ink); }
.btn-light { background: #fff; color: var(--brand-ink); }
.btn-outline-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.brand img { border-radius: 10px; }
.main-nav { display: flex; gap: 4px; margin-inline-start: 12px; }
.main-nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 8px; }
.main-nav a:hover { color: var(--ink); background: var(--bg-alt); }
.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.lang-btn { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 10px; padding: 8px 12px; font: 600 14px var(--font); cursor: pointer; }
:root[lang="ar"] .lang-btn { font-family: "Inter", sans-serif; }
.menu-toggle { display: none; border: 1px solid var(--line); background: #fff; border-radius: 10px; width: 42px; height: 40px; padding: 8px; cursor: pointer; }
.menu-toggle svg { width: 100%; height: 100%; stroke: var(--ink); stroke-width: 2; fill: none; stroke-linecap: round; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 64px 0 80px;
  background: radial-gradient(1000px 500px at 85% -10%, #E0E4FF 0%, transparent 60%), radial-gradient(700px 400px at -10% 110%, #EAF7FF 0%, transparent 60%), #fff; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; color: var(--brand); font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
:root[lang="ar"] .eyebrow { letter-spacing: 0; text-transform: none; }
.hero h1 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 800; letter-spacing: -.03em; }
:root[lang="ar"] .hero h1 { letter-spacing: 0; }
.lead { margin-top: 18px; font-size: 18px; color: var(--muted); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 8px; color: var(--ink); font-weight: 500; font-size: 15px; }
.hero-points li { display: flex; align-items: center; gap: 10px; }
.hero-points li::before { content: ""; width: 20px; height: 20px; flex: none; border-radius: 50%;
  background: #DCFCE7 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='%2316A34A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.hero-media { position: relative; padding-bottom: 40px; }
.device-desktop { margin: 0; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); border: 1px solid #D9DEEE; }
.device-phone { position: absolute; inset-inline-end: -10px; bottom: 0; width: 26%; margin: 0; border-radius: 22px; overflow: hidden; border: 6px solid #0B1240; box-shadow: var(--shadow-lg); background: #fff; aspect-ratio: 1000 / 1800; }
.device-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Platform strip */
.strip { background: var(--brand-dark); color: #fff; }
.strip-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-item { padding: 26px 20px; border-inline-start: 1px solid rgba(255, 255, 255, .1); }
.strip-item:first-child { border-inline-start: 0; padding-inline-start: 0; }
.strip-item b { display: block; font-size: 18px; }
.strip-item span { display: block; color: #B9C0F5; font-size: 14px; margin-top: 4px; }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
.section-lead { margin-top: 14px; color: var(--muted); font-size: 17px; }

/* Features */
.feature-group + .feature-group { margin-top: 48px; }
.group-title { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; margin-bottom: 18px; }
.group-title .dot { width: 12px; height: 12px; border-radius: 4px; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 18%, transparent); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; transition: border-color .15s, box-shadow .15s; }
.feature:hover { border-color: #C9CFF5; box-shadow: var(--shadow); }
.feature h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 14.5px; }

.feature.is-new { position: relative; border-color: #C7CCFF; background: linear-gradient(180deg, #F6F7FF 0%, #fff 70%); }
.feature.is-new::after { content: "NEW"; position: absolute; top: 14px; inset-inline-end: 14px; font: 800 10.5px/1 var(--font); letter-spacing: .08em;
  color: #fff; background: var(--brand); padding: 5px 8px; border-radius: 999px; }
.feature.is-new h4 { padding-inline-end: 52px; }
:root[lang="ar"] .feature.is-new::after { content: "جديد"; letter-spacing: 0; }

/* What's new: alternating picture + text rows */
.spot { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: center; }
.spot + .spot { margin-top: 88px; }
.spot:nth-of-type(even) .spot-media { order: -1; }
.badge-new { display: inline-block; font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--brand);
  background: #EEF0FF; padding: 6px 12px; border-radius: 999px; margin-bottom: 14px; }
:root[lang="ar"] .badge-new { letter-spacing: 0; }
.spot h3 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; }
.spot-copy > p { margin-top: 12px; color: var(--muted); font-size: 16.5px; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 15px; }
.ticks li::before { content: ""; width: 20px; height: 20px; flex: none; margin-top: 2px; border-radius: 50%;
  background: #DCFCE7 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='%2316A34A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.spot-media { margin: 0; position: relative; }
.spot-media > img { border-radius: 14px; border: 1px solid #D9DEEE; box-shadow: var(--shadow-lg); background: #fff; margin-inline: auto; }
.spot-media > img[width="400"] { max-width: min(100%, 360px); }   /* the tall bill */
.spot-media > img[width="666"], .spot-media > img[width="784"] { max-width: min(100%, 560px); }
.spot > * { min-width: 0; }
.spot-pair { padding-bottom: 12%; }
.spot-pair .spot-inset { position: absolute; width: 52%; inset-inline-end: -4%; bottom: 0; border: 4px solid #fff; }

/* Gallery */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tab { border: 1px solid var(--line); background: #fff; color: var(--ink); font: 600 14px var(--font); padding: 9px 16px; border-radius: 999px; cursor: pointer; }
.tab.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.shot { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; cursor: zoom-in; transition: transform .15s, box-shadow .15s; }
.shot:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.shot img { width: 100%; aspect-ratio: 1426 / 862; object-fit: cover; object-position: top; background: var(--bg-alt); }
.shot figcaption { padding: 12px 14px; font-size: 14px; font-weight: 600; border-top: 1px solid var(--line); }
.shot-tall img { aspect-ratio: auto; height: 420px; object-fit: cover; object-position: top; }
.shot[hidden] { display: none; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.steps li { background: var(--bg-alt); border-radius: var(--radius); padding: 26px; }
.step-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 14px; }
.steps h3 { font-size: 19px; margin-bottom: 6px; }
.steps p { color: var(--muted); }

/* Download */
.section-dark { background: linear-gradient(160deg, #0B1240 0%, #141E8C 100%); color: #fff; }
.section-dark .eyebrow { color: #9AA5FF; }
.section-dark .section-lead { color: #C3C9F7; }
.download-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.dl-card { display: flex; flex-direction: column; gap: 6px; padding: 28px; border-radius: 18px; text-decoration: none; color: #fff;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); transition: background .15s, transform .15s; }
.dl-card:hover { background: rgba(255, 255, 255, .12); transform: translateY(-2px); }
.dl-card svg { width: 40px; height: 40px; margin-bottom: 8px; }
.dl-card b { font-size: 22px; }
.dl-card span { color: #C3C9F7; font-size: 14px; }
.dl-card .btn { margin-top: 16px; align-self: flex-start; }
.dl-card[hidden] { display: none; }
.dl-note { margin-top: 22px; color: #AEB6EE; font-size: 14px; }

/* FAQ */
.faq { border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; background: #fff; }
.faq + .faq { margin-top: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 700; font-size: 16.5px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--brand); flex: none; }
.faq[open] summary::after { content: "−"; }
.faq p { color: var(--muted); padding-bottom: 18px; }

/* Final CTA */
.cta { padding: 0 0 88px; }
.cta-box { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 44px; border-radius: 24px; color: #fff;
  background: radial-gradient(600px 300px at 90% 0%, rgba(255, 255, 255, .18), transparent 60%), var(--brand); }
.cta-box h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; }
.cta-box p { margin-top: 8px; color: #DADDFE; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 28px; background: #fff; }
.footer-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-brand p { margin-top: 10px; color: var(--muted); font-size: 14px; max-width: 320px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--ink); text-decoration: none; font-size: 14.5px; }
.footer-links a:hover { color: var(--brand); }
.footer-contact { display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; }
.footer-contact span { font-weight: 700; }
.copyright { margin-top: 32px; color: var(--muted); font-size: 13px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(6, 10, 30, .92); display: flex; align-items: center; justify-content: center; padding: 56px 64px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 150px); width: auto; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox figcaption { color: #E2E6FF; font-weight: 600; text-align: center; }
.lb-close, .lb-nav { position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; border-radius: 12px; font-size: 32px; line-height: 1; }
.lb-close { top: 14px; inset-inline-end: 14px; width: 46px; height: 46px; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 48px; height: 64px; }
.lb-prev { inset-inline-start: 10px; }
.lb-next { inset-inline-end: 10px; }
:root[dir="rtl"] .lb-prev, :root[dir="rtl"] .lb-next { transform: translateY(-50%) scaleX(-1); }

/* Responsive */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 56px; }
  .spot { grid-template-columns: 1fr; gap: 28px; }
  .spot:nth-of-type(even) .spot-media { order: 0; }
  .spot + .spot { margin-top: 64px; }
  .spot-pair .spot-inset { inset-inline-end: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .strip-row { grid-template-columns: repeat(2, 1fr); }
  .strip-item:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .strip-item { padding-inline-start: 20px; }
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-block; }
  .main-nav { display: none; position: absolute; top: 68px; inset-inline: 0; flex-direction: column; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px; margin: 0; box-shadow: var(--shadow); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px; font-size: 16px; }
  .steps, .download-grid { grid-template-columns: 1fr; }
  .footer-row { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .section { padding: 64px 0; }
}
@media (max-width: 560px) {
  .header-actions .btn-sm { padding: 8px 12px; }
  .brand span { font-size: 20px; }
  .gallery { grid-template-columns: 1fr; }
  .shot-tall img { height: 360px; }
  .strip-row { grid-template-columns: 1fr; }
  .strip-item, .strip-item:first-child, .strip-item:nth-child(3) { border-inline-start: 0; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
  .strip-item:first-child { border-top: 0; }
  .hero-cta .btn { width: 100%; }
  .device-phone { width: 32%; inset-inline-end: -4px; border-width: 4px; border-radius: 16px; }
  .cta-box { padding: 28px; }
  .cta-actions .btn { width: 100%; }
  .lightbox { padding: 56px 8px; }
  .lb-nav { width: 40px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .shot, .dl-card, .feature { transition: none; }
}

/* Pricing (packages from the Super Admin panel) */
[hidden] { display: none !important; }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; align-items: stretch; }
.price-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); }
.price-card.is-popular { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand), var(--shadow-lg); }
.price-ribbon { position: absolute; top: -13px; inset-inline-start: 24px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.price-card h3 { font-size: 20px; font-weight: 800; }
.price-amount { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-amount b { font-size: 40px; font-weight: 800; line-height: 1; color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.price-amount span { color: var(--muted); font-weight: 600; }
.price-limits { color: var(--muted); font-size: 14px; margin: 0; }
.price-feat { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 9px; }
.price-feat li { display: flex; gap: 8px; align-items: flex-start; }
.price-feat li::before { content: "✓"; color: #10B981; font-weight: 800; }
.price-cta { margin-top: auto; }
/* Update history (What's new) */
.updates-title { font-size: 22px; font-weight: 800; margin: 56px 0 18px; }
.updates { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.update { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.update h4 { font-size: 16px; margin: 8px 0 6px; }
.update p { color: var(--muted); font-size: 14px; margin: 0; }
.ver-tag { display: inline-block; background: #EEF0FF; color: var(--brand-ink); font-size: 12px; font-weight: 800; padding: 2px 9px; border-radius: 999px; font-family: "Inter", sans-serif; }
@media (min-width: 861px) and (max-width: 1100px) { .download-grid { grid-template-columns: repeat(2, 1fr); } }