/* Areeb Video. Brand tokens follow the Areeb Digital colour logo (purple, orange, pink). */
@font-face { font-family: "Plex Arabic"; font-weight: 400; font-display: swap; src: url("/fonts/plex-arabic-arabic-400.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plex Arabic"; font-weight: 600; font-display: swap; src: url("/fonts/plex-arabic-arabic-600.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plex Arabic"; font-weight: 700; font-display: swap; src: url("/fonts/plex-arabic-arabic-700.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Plex Arabic"; font-weight: 400; font-display: swap; src: url("/fonts/plex-arabic-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Arabic"; font-weight: 600; font-display: swap; src: url("/fonts/plex-arabic-latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Arabic"; font-weight: 700; font-display: swap; src: url("/fonts/plex-arabic-latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --tint: #F7F7FB;
  --ink: #121936;
  --ink-2: #46506A;
  --muted: #68708A;
  --line: #E7E9F2;
  --line-2: #D3D7E4;
  --accent: #5C2FC2;
  --accent-ink: #4A26A3;
  --accent-soft: #F1ECFC;
  --on-accent: #ffffff;
  --ok: #17794B;
  --bad: #B3261E;
  --bad-soft: #FDECEA;
  --grad: linear-gradient(100deg, #7633BA, #BA2874 60%, #E8650F);
  --shadow: 0 30px 60px -34px rgba(60, 30, 140, .38);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1124;
    --surface: #161A33;
    --tint: #12152B;
    --ink: #F3F4FB;
    --ink-2: #C6CADC;
    --muted: #979EBB;
    --line: #272C4D;
    --line-2: #363C63;
    --accent: #8F6BEA;
    --accent-ink: #C3ADFA;
    --accent-soft: #231C46;
    --on-accent: #ffffff;
    --ok: #5FD39A;
    --bad: #FF9A91;
    --bad-soft: #3A1917;
    --grad: linear-gradient(100deg, #B18CFF, #F27BB4 60%, #FFA45C);
    --shadow: 0 30px 60px -34px rgba(0, 0, 0, .8);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Plex Arabic", ui-sans-serif, system-ui, sans-serif; font-size: 17px; line-height: 1.8; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
main { flex: 1; }
h1, h2, h3, p, ul, ol, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 10; background: var(--ink); color: var(--bg); padding: 8px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Header */
.top { border-bottom: 1px solid var(--line); background: var(--bg); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.brand img { display: block; }
.brand-name { font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.brand-by { color: var(--muted); font-size: 13px; padding-inline-start: 10px; border-inline-start: 1px solid var(--line-2); }
.lang { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; }
.lang:hover { border-color: var(--accent); color: var(--accent-ink); }
@media (max-width: 420px) { .brand-by { display: none; } }

/* Hero + tool */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(60% 55% at 85% 0%, color-mix(in srgb, #7633BA 16%, transparent), transparent 70%),
  radial-gradient(50% 50% at 8% 10%, color-mix(in srgb, #FE9B3B 14%, transparent), transparent 70%),
  linear-gradient(180deg, var(--tint), var(--bg) 78%); }
.hero-in { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; padding-block: 44px 56px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--accent-ink); }
.kicker::before { content: ""; width: 22px; height: 3px; border-radius: 99px; background: linear-gradient(90deg, #FE9B3B, #BA2874); }
h1 { font-size: clamp(30px, 6.2vw, 54px); line-height: 1.25; font-weight: 700; letter-spacing: -.015em; max-width: 16em; text-wrap: balance; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
.lead { color: var(--ink-2); font-size: clamp(16px, 2.2vw, 19px); max-width: 34em; text-wrap: pretty; }

.tool { width: 100%; max-width: 760px; margin-top: 10px; text-align: start; }
.bar { display: flex; gap: 10px; padding: 10px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 22px; box-shadow: var(--shadow); }
.field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding-inline: 12px 6px; border-radius: 14px; background: var(--tint); border: 1px solid transparent; }
.field:focus-within { border-color: var(--accent); background: var(--surface); }
.field .ico { color: var(--muted); }
.field input { flex: 1; min-width: 0; height: 52px; border: 0; background: transparent; outline: 0; font-size: 16px; text-align: start; }
.field input::placeholder { color: var(--muted); text-align: start; }
[dir="rtl"] .field input:placeholder-shown { direction: rtl; }
.btn, .btn-line, .btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 14px; font-weight: 600; border: 1px solid transparent; text-decoration: none; white-space: nowrap; transition: background-color .15s, border-color .15s, transform .15s; }
.btn { background: var(--accent); color: var(--on-accent); }
.btn:hover { background: var(--accent-ink); }
@media (prefers-color-scheme: dark) { .btn:hover { background: #7E57E0; } }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-wide { width: 100%; }
.btn-line { background: transparent; border-color: var(--line-2); }
.btn-line:hover { border-color: var(--accent); color: var(--accent-ink); }
.btn-ghost { min-height: 40px; padding: 0 14px; border-radius: 10px; background: transparent; color: var(--accent-ink); font-size: 15px; }
.btn-ghost:hover { background: var(--accent-soft); }
.link { background: none; border: 0; padding: 0; min-height: 40px; color: var(--accent-ink); font-weight: 600; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 600px) { .bar { flex-direction: column; } .btn { width: 100%; } }

.msg { min-height: 0; margin-top: 12px; font-size: 15px; color: var(--ink-2); }
.msg:empty { display: none; }
.msg.bad { color: var(--bad); background: var(--bad-soft); padding: 10px 14px; border-radius: 12px; }
.msg.busy::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-inline-end: 8px; vertical-align: -2px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.result { margin-top: 16px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 18px; }
.media { display: flex; gap: 16px; align-items: flex-start; }
.thumb { position: relative; flex: none; width: 168px; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, var(--accent-soft), var(--tint)); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.badge { position: absolute; inset-inline-end: 6px; bottom: 6px; background: rgba(10, 12, 28, .82); color: #fff; font-size: 12px; font-weight: 600; line-height: 1; padding: 5px 7px; border-radius: 6px; }
.info { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.info .title { font-size: 18px; line-height: 1.5; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.info .muted { font-size: 14px; }
@media (max-width: 520px) { .media { flex-direction: column; } .thumb { width: 100%; } }

.q legend { font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; padding: 0; }
.q-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; margin-bottom: 14px; }
.q-item { position: relative; }
.q-item input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.q-item span { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 60px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 12px; line-height: 1.35; }
.q-item b { font-weight: 600; font-size: 16px; }
.q-item small { color: var(--muted); font-size: 13px; }
.q-item input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.q-item input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

.work { display: flex; flex-direction: column; gap: 8px; }
.work-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; min-height: 28px; }
.work-row .muted { font-weight: 400; font-size: 14px; }
.track { height: 12px; border-radius: 99px; background: var(--tint); border: 1px solid var(--line); overflow: hidden; }
.track span { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #7633BA, #BA2874 60%, #FE9B3B); transition: width .4s ease; }
[dir="rtl"] .track span { background: linear-gradient(270deg, #7633BA, #BA2874 60%, #FE9B3B); }
.done { display: flex; flex-direction: column; gap: 12px; }
.ok { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ok); overflow-wrap: anywhere; }
.done-row { display: flex; gap: 10px; flex-wrap: wrap; }
.done-row .btn { flex: 1 1 220px; }
.done-row .btn-line { flex: 0 1 auto; }

.platforms { margin-top: 18px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: 13.5px; font-weight: 600; line-height: 1; }
.chip-on { border-color: transparent; background: var(--accent-soft); color: var(--accent-ink); }
.chip-on:empty { display: none; }

.recent { margin-top: 22px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.recent-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.recent h2 { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.recent li + li { border-top: 1px solid var(--line); }
.recent li button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 6px 0; background: none; border: 0; text-align: start; }
.recent li button:hover .r-title { color: var(--accent-ink); }
.r-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.r-tag { flex: none; color: var(--muted); font-size: 13px; }

/* Sections */
.sec { padding-block: 56px; }
.tint { background: var(--tint); border-block: 1px solid var(--line); }
.h2 { font-size: clamp(24px, 3.6vw, 32px); line-height: 1.35; font-weight: 700; letter-spacing: -.01em; margin-bottom: 26px; }
.steps { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.steps li { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.steps .n { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; margin-bottom: 12px; }
.steps h3, .feats h3 { font-size: 18px; font-weight: 600; line-height: 1.5; }
.steps p, .feats p { color: var(--ink-2); font-size: 15.5px; margin-top: 4px; }
.feats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.feats li { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.feats .ico { width: 26px; height: 26px; color: var(--accent); margin-bottom: 10px; }
.faq-wrap { display: grid; gap: 8px 48px; }
@media (min-width: 900px) { .faq-wrap { grid-template-columns: 1fr 1.9fr; } }
.faq { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding-inline: 20px; }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding-block: 12px; cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 9px; height: 9px; border-inline-end: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; margin-inline-end: 4px; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { color: var(--ink-2); padding-bottom: 18px; margin-top: -4px; }
.rights { margin-top: 28px; padding: 16px 20px; border-radius: 16px; background: var(--tint); border: 1px solid var(--line); color: var(--ink-2); font-size: 15px; }
.rights strong { color: var(--ink); }

/* Footer */
.foot { background: var(--tint); color: var(--muted); font-size: 14px; }
.rail { height: 3px; background: linear-gradient(90deg, #7633BA 0%, #FE9B3B 50%, #BA2874 100%); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; min-height: 64px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 4px; }
.foot a:hover { color: var(--accent-ink); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation-duration: 0s !important; scroll-behavior: auto !important; } }
