/* ══════════════════════════════════════════════════════════════
   Nowly — shared system for every page of nowlyapp.com (31 Oct 2026, direction «المسرح»).
   Royal Black ground; ivory ink; violet #8968F4 only as a hairline, a dot or a focus ring;
   champagne gold #EECA7C only where VIP or gold coins are meant. Type: Readex Pro for Latin
   and numbers, the app's «Nowly Arabic» (IBM Plex Sans Arabic) for Arabic. Latin digits always.
   Every translatable element appears twice (lang-en / lang-ar); lang.js picks one.
   ══════════════════════════════════════════════════════════════ */

@font-face { font-family: 'Readex'; font-weight: 160 700; font-display: swap; src: url(fonts/ReadexPro-latin.woff2) format('woff2'); }
@font-face { font-family: 'Nowly Arabic'; font-weight: 400; font-display: swap; src: url(fonts/NowlyArabic-Regular.woff2) format('woff2'), url(fonts/NowlyArabic-Regular.woff) format('woff');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Nowly Arabic'; font-weight: 500 600; font-display: swap; src: url(fonts/NowlyArabic-SemiBold.woff2) format('woff2'), url(fonts/NowlyArabic-SemiBold.woff) format('woff');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Nowly Arabic'; font-weight: 700 800; font-display: swap; src: url(fonts/NowlyArabic-Bold.woff2) format('woff2'), url(fonts/NowlyArabic-Bold.woff) format('woff');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }

:root {
  --bg: #0A0A0C; --bg-2: #0E0E11; --surface: #141417; --surface-2: #1A1A1E;
  --ink: #F3F1EE; --ink-2: #C4C0BA; --mute: #9A968F; --faint: #8C8882;
  --rim: rgba(236, 232, 226, .10); --rim-2: rgba(236, 232, 226, .18);
  --violet: #8968F4; --violet-solid: #6521FA; --violet-soft: rgba(137, 104, 244, .16);
  --gold: #EECA7C;
  --font: 'Readex', 'Nowly Arabic', -apple-system, 'Segoe UI', system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(20px, 4vw, 56px);
  --head: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color-scheme: dark; -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: calc(var(--head) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; font-variant-numeric: lining-nums; text-rendering: optimizeLegibility; }
body[dir="rtl"] { line-height: 1.85; }
body[data-lang="en"] [lang-ar], body[data-lang="ar"] [lang-en] { display: none !important; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--violet); color: #fff; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
html { scrollbar-color: #2b2a2e var(--bg); }
::-webkit-scrollbar { width: 10px; } ::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2b2a2e; border-radius: 10px; border: 2px solid var(--bg); }

.skip { position: absolute; top: -60px; inset-inline-start: 12px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

/* ── Header ── */
.hdr { position: sticky; top: 0; z-index: 60; height: var(--head); transition: background .4s var(--ease), border-color .4s var(--ease); border-bottom: 1px solid transparent; }
.hdr.stuck, .hdr.solid { background: rgba(10, 10, 12, .78); -webkit-backdrop-filter: saturate(140%) blur(18px); backdrop-filter: saturate(140%) blur(18px); border-bottom-color: var(--rim); }
.hdr-in { height: 100%; display: flex; align-items: center; gap: 28px; padding: 0 var(--gutter); max-width: 1440px; margin: 0 auto; }
.brand { display: flex; flex: none; border-radius: 8px; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav a { font-size: 14.5px; color: var(--ink-2); text-decoration: none; padding: 8px 12px; border-radius: 99px; transition: color .2s; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); }
.lang { flex: none; font-size: 13.5px; background: transparent; border: 1px solid var(--rim-2); padding: 7px 15px; border-radius: 99px; cursor: pointer; transition: border-color .2s, background .2s; }
.lang:hover { border-color: var(--violet); background: var(--violet-soft); }
body[data-lang="en"] .lang { font-family: 'Nowly Arabic', var(--font); }
.cta-sm { flex: none; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--bg); background: var(--ink); padding: 9px 18px; border-radius: 99px; transition: background .2s; }
.cta-sm:hover { background: #fff; }
@media (max-width: 960px) { .nav { display: none; } .lang { margin-inline-start: auto; } }
@media (max-width: 420px) { .cta-sm { display: none; } .brand img { height: 27px; } }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 99px; font-size: 16px; font-weight: 600; text-decoration: none; border: 1px solid transparent; transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease); }
.btn:active { transform: scale(.98); }
.btn.pri { background: var(--ink); color: var(--bg); }
.btn.pri:hover { background: #fff; }
.btn.sec { border-color: var(--rim-2); color: var(--ink); }
.btn.sec:hover { border-color: var(--violet); background: var(--violet-soft); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ── Text links ── */
.tlink { color: var(--ink); text-decoration: underline; text-decoration-color: var(--violet); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: text-decoration-color .2s; }
.tlink:hover { text-decoration-color: var(--ink); }

/* ── Footer ── */
.foot { border-top: 1px solid var(--rim); padding: 64px 0 40px; background: var(--bg); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.foot-brand img { height: 30px; width: auto; margin-bottom: 18px; }
.foot-brand p { color: var(--mute); font-size: 14.5px; max-width: 30ch; }
.foot h2 { font-size: 13px; font-weight: 500; color: var(--mute); letter-spacing: .02em; margin-bottom: 14px; }
body[dir="rtl"] .foot h2 { font-size: 14px; letter-spacing: 0; }
.foot ul { list-style: none; display: grid; gap: 9px; }
.foot ul a { font-size: 15px; color: var(--ink-2); text-decoration: none; }
.foot ul a:hover { color: var(--ink); }
.foot-legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--rim); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13.5px; color: var(--faint); }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ── The phone frame (real captures inside) ── */
.phone { position: relative; aspect-ratio: 1320 / 2868; border-radius: 15% / 7%; padding: 2.6%; background: linear-gradient(155deg, #3a393e 0%, #121214 22%, #0b0b0d 60%, #2a292e 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09), 0 50px 90px -20px rgba(0, 0, 0, .75), 0 18px 36px -12px rgba(0, 0, 0, .6); }
.phone > img, .phone .screen { position: absolute; inset: 2.6%; width: 94.8%; height: 94.8%; object-fit: cover; border-radius: 12.6% / 5.9%; background: #000; }
