/* RL Overlays website: black, grey and white like the control panel, every edge sharp, Alexandria.
   UI & UX by Stylr7. */
@font-face { font-family: Alexandria; font-weight: 100 900; font-display: swap; src: url(/vendor/fsv/alexandria/files/alexandria-arabic-wght-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: Alexandria; font-weight: 100 900; font-display: swap; src: url(/vendor/fsv/alexandria/files/alexandria-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #050505; --bg-2: #0b0b0b; --card: #101010; --card-2: #151515; --raise: #1c1c1c;
  --line: #1f1f1f; --line-2: #2e2e2e; --line-3: #474747;
  --text: #ededed; --muted: #8a8a8a; --dim: #575757; --white: #fff;
  --gut: clamp(16px, 4vw, 56px);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; border-radius: 0 !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.7 Alexandria, system-ui, sans-serif; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--white); color: #000; }

/* the panel's faint grid, fading out downwards */
.grid-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; opacity: .55;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 85%); -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 85%); }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 18px; border: 1px solid var(--line-2); background: transparent; color: var(--text); font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.btn:hover { border-color: var(--line-3); background: var(--card-2); }
.btn.primary { background: var(--white); color: #000; border-color: var(--white); }
.btn.primary:hover { background: #d9d9d9; border-color: #d9d9d9; }
.btn.big { padding: 14px 26px; font-size: 15.5px; }
.btn:disabled { opacity: .45; cursor: default; }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }

/* ---------- top bar */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 28px; padding: 14px var(--gut); background: rgba(5, 5, 5, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; }
.mark { width: 28px; height: 28px; flex: none; background: var(--white); clip-path: polygon(0 0, 100% 0, 100% 62%, 62% 100%, 0 100%); position: relative; display: inline-block; }
.mark::after { content: ''; position: absolute; inset: 8px; background: var(--bg); clip-path: polygon(0 0, 100% 0, 100% 50%, 50% 100%, 0 100%); }
.brand-txt { display: flex; flex-direction: column; line-height: 1.3; }
.brand-txt b { font-size: 14px; letter-spacing: .2em; font-weight: 800; }
.brand-txt small { font-size: 11px; color: var(--muted); }
.nav { display: flex; gap: 24px; margin-inline-start: 12px; }
.nav a { color: var(--muted); font-size: 14px; transition: color .15s; }
.nav a:hover { color: var(--white); }
.top-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.top-actions .guest, .top-actions .member { display: flex; align-items: center; gap: 8px; }
.top-actions [hidden] { display: none; }
.who { color: var(--muted); font-size: 13px; margin-inline-end: 6px; }
.lang { min-width: 44px; padding-inline: 10px; }

/* ---------- hero */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: center; padding: clamp(48px, 8vw, 110px) var(--gut) 40px; max-width: 1600px; margin: 0 auto; }
.kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 11.5px; letter-spacing: .22em; color: var(--muted); font-weight: 600; }
.kicker i { width: 26px; height: 2px; background: var(--white); }
/* Arabic needs room above and below the letters (marks, ق ي ج tails): an open line height, and nothing
   around the headline that clips (no masks, no text-clipped backgrounds, no outlines) */
h1 { margin: 0; font-size: clamp(38px, 5.2vw, 80px); line-height: 1.36; font-weight: 800; letter-spacing: -.01em; }
.reveal-lines .ln { display: block; }
.reveal-lines .ln > span { display: inline; }
.reveal-lines .ln:last-child { color: #7a7a7a; }
.sub { margin: 22px 0 0; max-width: 560px; color: var(--muted); font-size: clamp(15px, 1.25vw, 17px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-facts { list-style: none; display: flex; gap: 0; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--line); }
.hero-facts li { flex: 1; padding: 16px 0 0; display: flex; flex-direction: column; border-inline-start: 1px solid var(--line); padding-inline-start: 18px; }
.hero-facts li:first-child { border-inline-start: 0; padding-inline-start: 0; }
.hero-facts b { font-size: 34px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hero-facts span { color: var(--muted); font-size: 12.5px; }

/* the broadcast monitor */
.screen { position: relative; }
.screen-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 0 10px; }
.live { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.live i { width: 8px; height: 8px; background: #ff2d2d; box-shadow: 0 0 0 0 rgba(255, 45, 45, .6); animation: live 1.6s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(255, 45, 45, .55); } 70% { box-shadow: 0 0 0 8px rgba(255, 45, 45, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 45, 45, 0); } }
.switch { display: flex; border: 1px solid var(--line-2); }
.switch button { position: relative; padding: 7px 16px; background: transparent; border: 0; color: var(--muted); font-size: 12px; letter-spacing: .14em; font-weight: 700; cursor: pointer; overflow: hidden; }
.switch button + button { border-inline-start: 1px solid var(--line-2); }
.switch button.on { background: var(--white); color: #000; }
.switch button s { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: #000; }
.frame { position: relative; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--line-2); overflow: hidden; box-shadow: 0 40px 120px -40px rgba(255, 255, 255, .08); }
.frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; opacity: 0; transition: opacity .6s ease; }
.frame iframe.on { opacity: 1; }
.tick { position: absolute; width: 16px; height: 16px; border: 0 solid var(--white); z-index: 2; pointer-events: none; }
.tick.tl { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.tick.tr { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.tick.bl { bottom: -1px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; }
.tick.br { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }
.screen-note { margin: 10px 0 0; color: var(--dim); font-size: 12.5px; }

/* ---------- marquee */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; margin-top: 40px; direction: ltr; }
.marquee .track { display: flex; gap: 48px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-size: clamp(22px, 2.6vw, 38px); font-weight: 800; letter-spacing: .06em; color: #2c2c2c; white-space: nowrap; display: flex; align-items: center; gap: 48px; }
.marquee span:nth-child(3n + 1) { color: #4d4d4d; }
.marquee span::after { content: ''; width: 10px; height: 10px; background: var(--line-3); transform: skewX(-30deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections */
.sec { max-width: 1600px; margin: 0 auto; padding: clamp(70px, 9vw, 130px) var(--gut) 0; }
.sec-head { display: grid; grid-template-columns: auto 1fr; column-gap: 22px; align-items: baseline; margin-bottom: 40px; max-width: 980px; }
.sec-head .idx { font-size: 12px; letter-spacing: .2em; color: var(--dim); font-weight: 700; padding: 4px 8px; border: 1px solid var(--line-2); }
.sec-head h2 { margin: 0; font-size: clamp(28px, 3.4vw, 50px); font-weight: 800; line-height: 1.38; }
.sec-head p { grid-column: 2; margin: 12px 0 0; color: var(--muted); max-width: 680px; }

/* designs */
.designs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.design { background: var(--card); border: 1px solid var(--line); transition: border-color .2s; }
.design:hover { border-color: var(--line-3); }
.shot { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #000; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.design:hover .shot img { transform: scale(1.04); }
.sweep { position: absolute; top: 0; bottom: 0; width: 30%; left: -40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .18), transparent); transform: skewX(-22deg); pointer-events: none; }
.design:hover .sweep { animation: sweep 1.1s ease; }
@keyframes sweep { to { left: 130%; } }
.d-body { padding: 22px 24px 26px; }
.d-name { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.d-name b { font-size: 22px; letter-spacing: .16em; font-weight: 800; }
.d-name span { color: var(--muted); }
.d-body p { margin: 0; color: var(--muted); font-size: 14px; }
.chips { display: flex; gap: 6px; margin-top: 16px; }
.chips i { width: 26px; height: 8px; transform: skewX(-30deg); outline: 1px solid var(--line-2); }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.feat { position: relative; padding: 28px 26px 30px; border-bottom: 1px solid var(--line); border-inline-end: 1px solid var(--line); overflow: hidden; transition: background .2s; }
.feat:hover { background: var(--card); }
.feat::before { content: ''; position: absolute; inset-inline-start: 0; top: 0; height: 2px; width: 0; background: var(--white); transition: width .35s cubic-bezier(.2, .7, .2, 1); }
.feat:hover::before { width: 100%; }
.f-ico { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line-2); margin-bottom: 18px; }
.f-ico svg { width: 20px; height: 20px; fill: none; stroke: var(--white); stroke-width: 1.6; stroke-linejoin: miter; }
.feat h3 { margin: 0 0 6px; font-size: 17px; font-weight: 700; }
.feat p { margin: 0; color: var(--muted); font-size: 13.5px; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { position: relative; padding: 26px 24px 28px; background: var(--card); border: 1px solid var(--line); }
.steps .num { display: block; font-size: 64px; font-weight: 800; line-height: 1; color: #2e2e2e; margin-bottom: 18px; direction: ltr; text-align: start; }
.steps h3 { margin: 0 0 6px; font-size: 19px; }
.steps p { margin: 0; color: var(--muted); font-size: 14px; }

/* pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 980px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 30px 28px; background: var(--card); border: 1px solid var(--line-2); overflow: hidden; }
.plan:first-child { border-color: var(--white); }
.p-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.p-top b { font-size: 18px; }
.price { font-size: 46px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.price small { font-size: 13px; color: var(--muted); font-weight: 500; margin-inline-start: 6px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.plan li { position: relative; padding-inline-start: 20px; color: var(--text); font-size: 14px; }
.plan li::before { content: ''; position: absolute; inset-inline-start: 0; top: .72em; width: 9px; height: 2px; background: var(--white); }
.plan p { margin: 0; color: var(--muted); font-size: 14px; }
.plan .btn { margin-top: auto; }
.plan.soon { color: var(--muted); }
.ribbon { position: absolute; top: 16px; inset-inline-end: -38px; transform: rotate(45deg); background: var(--white); color: #000; font-size: 11px; font-weight: 800; letter-spacing: .14em; padding: 4px 44px; }
[dir='rtl'] .ribbon { transform: rotate(-45deg); }

/* faq */
.faq { max-width: 980px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 600; font-size: 16px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--muted); font-weight: 400; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq p { margin: 0 0 20px; color: var(--muted); max-width: 760px; }

/* footer */
.foot { margin-top: clamp(80px, 10vw, 140px); padding: 34px var(--gut) 40px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.f-brand { display: flex; align-items: center; gap: 10px; letter-spacing: .2em; font-size: 13px; }
.f-brand .mark { width: 22px; height: 22px; }
.f-brand .mark::after { inset: 6px; }
.f-credit { margin: 0; color: var(--muted); font-size: 13px; }
.f-credit b { color: var(--white); letter-spacing: .04em; }
.f-note { margin: 0 0 0 auto; color: var(--dim); font-size: 12px; }
[dir='rtl'] .f-note { margin: 0 auto 0 0; }

/* ---------- sign up / sign in */
.auth { width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto; padding: 0; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); }
.auth::backdrop { background: rgba(0, 0, 0, .72); backdrop-filter: blur(6px); }
.auth-x { position: absolute; top: 8px; inset-inline-end: 8px; margin: 0; }
.auth-x button { width: 34px; height: 34px; border: 0; background: transparent; color: var(--muted); font-size: 22px; cursor: pointer; }
.auth-tabs { display: flex; border-bottom: 1px solid var(--line); }
.auth-tabs button { flex: 1; padding: 16px 12px 14px; border: 0; background: transparent; color: var(--muted); font-weight: 700; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.auth-tabs button.on { color: var(--white); border-bottom-color: var(--white); }
.auth-head { padding: 26px 24px 0; }
.auth-head h2 { margin: 0 0 6px; font-size: 20px; font-weight: 800; line-height: 1.4; }
.auth-head p { margin: 0; color: var(--muted); font-size: 13.5px; }
.auth > .auth-msg { padding: 12px 24px 0; }
.auth > .auth-fine { padding: 4px 24px 24px; }
/* Google's own button (rendered by Google into this box) */
.gsi { display: flex; justify-content: center; min-height: 44px; }
.auth .or { padding: 0 24px; margin-top: 16px; }
.auth-form [hidden] { display: none !important; }
.auth-form .auth-tabs { margin: 0 0 4px; }
.ts { display: flex; justify-content: center; min-height: 65px; }
.code-note { margin: 0; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.linkish { background: none; border: 0; padding: 0; color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkish:hover { color: var(--white); }
.auth-providers { display: grid; gap: 8px; padding: 22px 24px 0; }
.auth-providers [hidden] { display: none; }
.prov { gap: 12px; padding: 12px 16px; background: #000; font-size: 14.5px; }
.prov svg { width: 18px; height: 18px; flex: none; }
.or { display: flex; align-items: center; gap: 12px; margin-top: 8px; color: var(--dim); font-size: 12px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-form { display: grid; gap: 14px; padding: 18px 24px 24px; }
.auth-form label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.auth-form input { width: 100%; padding: 11px 12px; background: #000; border: 1px solid var(--line-2); color: var(--text); font: inherit; font-size: 15px; }
.auth-form input:focus { outline: none; border-color: var(--white); }
.auth-form .btn { width: 100%; }
.auth-msg { margin: 0; min-height: 1.2em; font-size: 13px; color: #ff6b6b; }
.auth-msg.ok { color: var(--text); }
.auth-fine { margin: 0; font-size: 12px; color: var(--dim); text-align: center; }
.auth.login .f-name, .auth.login .f-channel, .auth.login .auth-fine { display: none; }

/* ---------- motion (GSAP sets the start states; without it everything simply shows) */
.js .reveal { opacity: 0; transform: translateY(26px); }
@media (prefers-reduced-motion: reduce) {
  .marquee .track, .live i { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- narrow screens */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; }
  .nav { display: none; }
}
@media (max-width: 900px) {
  .designs, .plans, .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .top { gap: 10px; padding-block: 10px; }
  .brand-txt small, .who { display: none; }
  .top-actions .guest [data-auth='login'] { display: none; }
  .btn { padding: 8px 12px; font-size: 13px; }
  .btn.big { padding: 13px 18px; font-size: 14.5px; }
  .features { grid-template-columns: 1fr; }
  .sec-head { grid-template-columns: 1fr; }
  .sec-head .idx { justify-self: start; margin-bottom: 10px; }
  .sec-head p { grid-column: 1; }
  .hero-facts b { font-size: 26px; }
  .kicker { font-size: 10px; letter-spacing: .1em; }
  .kicker i { width: 16px; }
  .switch button { padding: 6px 10px; letter-spacing: .08em; }
  .f-note, [dir='rtl'] .f-note { margin: 0; }
}
