/* Lounge Play APP - the website */

:root {
    --bg: #0b0a12;
    --bg-2: #100e19;
    --card: #15131f;
    --card-2: #1b1828;
    --line: rgba(255, 255, 255, 0.08);
    --line-2: rgba(255, 255, 255, 0.14);
    --text: #eeebf7;
    --muted: #a6a1bb;
    --faint: #6f6a86;
    --purple: #8b5cf6;
    --purple-2: #a283ff;
    --pink: #ff2e93;
    --cyan: #22d3ee;
    --green: #34d399;
    --radius: 14px;
    --wrap: 1160px;
    --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-ar: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 16px/1.65 var(--font);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
html[lang='ar'] body { font-family: var(--font-ar); line-height: 1.8; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: rgba(139, 92, 246, 0.45); }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* ---------- header ---------- */
.top {
    position: sticky; top: 0; z-index: 40;
    background: rgba(11, 10, 18, 0.82);
    backdrop-filter: saturate(140%) blur(12px);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.brand img { width: 34px; height: 34px; }
.brand b { font-weight: 800; }
.nav { display: flex; gap: 26px; margin-inline-start: 12px; }
.nav a { color: var(--muted); font-size: 14.5px; font-weight: 500; transition: color 0.15s; }
.nav a:hover { color: var(--text); }
.top .end { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.lang {
    border: 1px solid var(--line-2); background: transparent; border-radius: 999px;
    padding: 6px 13px; font-size: 13.5px; font-weight: 600; cursor: pointer; color: var(--muted);
}
.lang:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.28); }
html[lang='ar'] .lang { font-family: var(--font); }
html[lang='en'] .lang { font-family: var(--font-ar); }
.menu { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu span { display: block; width: 20px; height: 2px; background: var(--text); margin: 4px 0; border-radius: 2px; }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    height: 46px; padding: 0 20px; border-radius: 11px; font-weight: 600; font-size: 15px;
    border: 1px solid transparent; cursor: pointer; white-space: nowrap;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--purple); color: #fff; }
.btn.primary:hover { background: #7b4bf0; }
.btn.ghost { border-color: var(--line-2); color: var(--text); }
.btn.ghost:hover { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.03); }
.btn.small { height: 38px; padding: 0 15px; font-size: 14px; border-radius: 9px; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- hero ---------- */
.hero { padding: 76px 0 40px; position: relative; overflow: hidden; }
.hero::before {
    content: ''; position: absolute; inset: -240px 0 auto; height: 620px; pointer-events: none;
    background: radial-gradient(560px 300px at 50% 40%, rgba(139, 92, 246, 0.16), transparent 70%);
}
.hero .wrap { position: relative; text-align: center; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--muted);
    border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 14px 6px 10px; margin-bottom: 26px;
}
html[dir='rtl'] .eyebrow { padding: 6px 10px 6px 14px; }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.15); }
h1 {
    font-size: clamp(36px, 5.6vw, 64px); line-height: 1.06; letter-spacing: -0.035em; font-weight: 800;
    margin: 0 auto; max-width: 15ch;
}
html[lang='ar'] h1 { letter-spacing: 0; line-height: 1.3; max-width: 17ch; }
.hero p.lead { font-size: clamp(16.5px, 1.6vw, 19px); color: var(--muted); max-width: 640px; margin: 22px auto 0; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.hero .meta { margin-top: 18px; font-size: 13.5px; color: var(--faint); }
.hero .meta span + span::before { content: '·'; margin-inline: 10px; }

.shot {
    margin: 56px auto 0; max-width: 1080px; border-radius: 16px; padding: 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--line);
}
.shot img { border-radius: 9px; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: var(--card); }

/* ---------- facts strip ---------- */
.facts { border-block: 1px solid var(--line); margin-top: 72px; }
.facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts div { padding: 26px 22px; }
.facts div + div { border-inline-start: 1px solid var(--line); }
.facts b { display: block; font-size: 15.5px; font-weight: 700; margin-bottom: 4px; }
.facts span { color: var(--muted); font-size: 14px; line-height: 1.5; display: block; }

/* ---------- sections ---------- */
section.block { padding: 108px 0 0; }
.head { max-width: 720px; margin-bottom: 52px; }
.head.center { margin-inline: auto; text-align: center; }
.kicker { color: var(--purple-2); font-weight: 700; font-size: 13.5px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 12px; }
html[lang='ar'] .kicker { letter-spacing: 0; text-transform: none; }
h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.15; letter-spacing: -0.025em; font-weight: 800; margin: 0; }
html[lang='ar'] h2 { letter-spacing: 0; line-height: 1.35; }
.head p { color: var(--muted); font-size: 17.5px; margin: 16px 0 0; }
h3 { font-size: 22px; line-height: 1.3; letter-spacing: -0.015em; font-weight: 700; margin: 0 0 12px; }
html[lang='ar'] h3 { letter-spacing: 0; }

/* the big features: words beside a picture, alternating */
.feature { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: center; padding: 44px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature.flip .text { order: 2; }
.feature .text p { color: var(--muted); margin: 0 0 18px; font-size: 16.5px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-inline-start: 28px; font-size: 15px; }
.ticks li::before {
    content: ''; position: absolute; inset-inline-start: 2px; top: 0.55em; width: 14px; height: 8px;
    border-left: 2px solid var(--purple-2); border-bottom: 2px solid var(--purple-2); transform: rotate(-45deg);
}
.feature .pic { border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); padding: 8px; }
.feature .pic img { border-radius: 9px; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }

/* the smaller ones */
.grid6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 72px; }
.grid6 > div { background: var(--bg); padding: 28px 26px; }
.grid6 svg { width: 22px; height: 22px; color: var(--purple-2); margin-bottom: 14px; }
.grid6 b { display: block; font-size: 16px; margin-bottom: 6px; }
.grid6 span { color: var(--muted); font-size: 14.5px; line-height: 1.6; display: block; }

/* how it starts */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.steps div { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; background: var(--bg-2); }
.steps div::before {
    counter-increment: step; content: counter(step); display: grid; place-items: center;
    width: 30px; height: 30px; border-radius: 9px; background: var(--card-2); border: 1px solid var(--line-2);
    font-weight: 700; font-size: 14px; margin-bottom: 16px; font-family: var(--font);
}
.steps b { display: block; font-size: 16px; margin-bottom: 6px; }
.steps span { color: var(--muted); font-size: 14.5px; line-height: 1.6; display: block; }

/* ---------- pricing ---------- */
.offer {
    display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; text-align: center;
    border: 1px solid rgba(255, 46, 147, 0.35); background: rgba(255, 46, 147, 0.07); color: #ffd1e6;
    border-radius: 12px; padding: 12px 18px; font-size: 15px; font-weight: 600; max-width: 760px; margin: 0 auto 28px;
}
.offer em { font-style: normal; background: var(--pink); color: #fff; border-radius: 6px; padding: 2px 8px; font-size: 13px; font-weight: 700; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 20px; justify-content: center; }
.plan { border: 1px solid var(--line-2); border-radius: 18px; padding: 30px 28px; background: var(--card); position: relative; display: flex; flex-direction: column; }
.plan .ticks { flex: 1; align-content: start; }
.plan.best { border-color: rgba(139, 92, 246, 0.6); background: linear-gradient(180deg, rgba(139, 92, 246, 0.1), var(--card) 55%); }
.plan .tag { position: absolute; top: -12px; inset-inline-end: 22px; background: var(--purple); color: #fff; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.plan h3 { font-size: 18px; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price b { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; font-family: var(--font); }
.price small { font-size: 15px; color: var(--muted); font-weight: 600; }
.price s { color: var(--faint); font-size: 18px; font-weight: 600; }
.plan .per { color: var(--faint); font-size: 14px; margin: 6px 0 22px; }
.plan .btn { width: 100%; margin-top: 26px; }
.plan .ticks li { font-size: 14.5px; color: #d9d5e8; }
.paynote { text-align: center; color: var(--muted); font-size: 14.5px; margin: 26px auto 0; max-width: 620px; }

/* ---------- requirements ---------- */
.reqs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.reqs div { border-top: 2px solid var(--line-2); padding-top: 16px; }
.reqs b { display: block; margin-bottom: 4px; }
.reqs span { color: var(--muted); font-size: 14.5px; line-height: 1.6; display: block; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
    list-style: none; cursor: pointer; padding: 20px 4px; font-weight: 600; font-size: 16.5px;
    display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; font-weight: 400; color: var(--muted); line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -6px 4px 22px; color: var(--muted); font-size: 15.5px; max-width: 700px; }

/* ---------- download ---------- */
.downloads { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.dl { border: 1px solid var(--line-2); border-radius: 18px; padding: 28px; background: var(--card); display: flex; flex-direction: column; }
.dl .kind { font-size: 13.5px; font-weight: 700; color: var(--purple-2); margin-bottom: 8px; }
.dl p { color: var(--muted); font-size: 15px; margin: 0 0 22px; flex: 1; }
.dl .file { color: var(--faint); font-size: 13.5px; margin-top: 12px; }
.guide { text-align: center; margin-top: 22px; color: var(--muted); font-size: 15px; }
.guide a { color: var(--purple-2); font-weight: 600; }

/* ---------- resellers ---------- */
.resell {
    border: 1px solid var(--line-2); border-radius: 20px; padding: 44px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
    background: radial-gradient(500px 220px at 85% 0%, rgba(34, 211, 238, 0.08), transparent 70%), var(--bg-2);
}
html[dir='rtl'] .resell { background: radial-gradient(500px 220px at 15% 0%, rgba(34, 211, 238, 0.08), transparent 70%), var(--bg-2); }
.resell p { color: var(--muted); margin: 14px 0 0; font-size: 16.5px; }
.resell .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- footer ---------- */
footer { margin-top: 120px; border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--muted); font-size: 14.5px; }
footer .wrap { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: center; }
footer .links { display: flex; gap: 22px; flex-wrap: wrap; }
footer a:hover { color: var(--text); }

/* ---------- the support chat ---------- */
.chat-open {
    position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 60; height: 50px; padding: 0 18px 0 14px; border-radius: 999px;
    background: var(--purple); color: #fff; border: 0; font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 9px;
    cursor: pointer; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
html[dir='rtl'] .chat-open { padding: 0 14px 0 18px; }
.chat-open svg { width: 22px; height: 22px; }
.chat-open .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); display: none; }
.chat-open.unread .dot { display: block; }
.chat {
    position: fixed; bottom: 86px; inset-inline-end: 22px; z-index: 61; width: min(380px, calc(100vw - 28px)); height: min(560px, calc(100vh - 120px));
    background: var(--card); border: 1px solid var(--line-2); border-radius: 18px; display: none; flex-direction: column; overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.chat.open { display: flex; }
.chat header { padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.chat header img { width: 34px; height: 34px; }
.chat header b { display: block; font-size: 15px; }
.chat header span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.chat header button { margin-inline-start: auto; background: none; border: 0; color: var(--muted); font-size: 22px; cursor: pointer; padding: 4px 8px; line-height: 1; }
.chat .msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 82%; padding: 9px 13px; border-radius: 14px; font-size: 14.5px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.them { background: var(--card-2); border: 1px solid var(--line); align-self: flex-start; border-start-start-radius: 4px; }
.msg.me { background: var(--purple); color: #fff; align-self: flex-end; border-start-end-radius: 4px; }
.msg.note { align-self: center; background: none; color: var(--faint); font-size: 12.5px; text-align: center; padding: 2px 8px; }
.chat form { border-top: 1px solid var(--line); padding: 12px; display: grid; gap: 8px; }
.chat input, .chat textarea {
    width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; color: var(--text);
    font: inherit; font-size: 14.5px; padding: 9px 12px; resize: none; outline: none;
}
.chat input:focus, .chat textarea:focus { border-color: rgba(139, 92, 246, 0.7); }
.chat .row { display: flex; gap: 8px; align-items: flex-end; }
.chat .row textarea { flex: 1; min-height: 42px; max-height: 120px; }
.chat .row button { height: 42px; width: 42px; border-radius: 10px; border: 0; background: var(--purple); color: #fff; cursor: pointer; display: grid; place-items: center; flex: none; }
.chat .row button svg { width: 18px; height: 18px; }
html[dir='rtl'] .chat .row button svg { transform: scaleX(-1); }
.chat .tg { font-size: 12.5px; color: var(--muted); text-align: center; }
.chat .tg a { color: var(--purple-2); font-weight: 600; }

/* ---------- the terms page ---------- */
.doc { max-width: 780px; margin: 0 auto; padding: 64px 0 0; }
.doc h1 { font-size: clamp(32px, 4vw, 44px); max-width: none; text-align: start; }
.doc .updated { color: var(--faint); margin: 10px 0 40px; font-size: 14.5px; }
.doc h2 { font-size: 21px; margin: 38px 0 10px; letter-spacing: -0.01em; }
.doc p, .doc li { color: #cfcade; font-size: 16px; }
.doc ul { padding-inline-start: 22px; }

/* ---------- smaller screens ---------- */
@media (max-width: 980px) {
    .nav { display: none; }
    .nav.open {
        display: flex; flex-direction: column; position: absolute; top: 68px; inset-inline: 0; margin: 0; gap: 0;
        background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
    }
    .nav.open a { padding: 12px 0; font-size: 16px; }
    .menu { display: block; }
    .top .end .btn { display: none; }
    .feature, .feature.flip { grid-template-columns: 1fr; gap: 26px; }
    .feature.flip .text { order: 0; }
    .facts .wrap, .steps { grid-template-columns: repeat(2, 1fr); }
    .facts div:nth-child(3) { border-inline-start: 0; }
    .facts div:nth-child(n + 3) { border-top: 1px solid var(--line); }
    .grid6, .reqs { grid-template-columns: repeat(2, 1fr); }
    .resell { grid-template-columns: 1fr; padding: 32px; }
    .resell .actions { justify-content: flex-start; }
}
@media (max-width: 640px) {
    .hero { padding-top: 52px; }
    .plans, .downloads, .grid6, .reqs, .steps, .facts .wrap { grid-template-columns: 1fr; }
    .facts div + div { border-inline-start: 0; border-top: 1px solid var(--line); }
    section.block { padding-top: 80px; }
    .chat-open .label { display: none; }
    .chat-open { padding: 0 14px; }
}
