/* Rodixa Play — website v6. Minimal white product site: centred copy, screenshot carousel, feature grid, download block. */
:root {
  --red: #E50914; --red-dark: #B8070F; --red-soft: rgba(229,9,20,.08);
  --black: #171717; --ink: rgba(0,0,0,.87); --ink-2: rgba(0,0,0,.62); --ink-3: rgba(0,0,0,.42);
  --bg: #FFFFFF; --surface: #F7F7F5; --line: #e8e8e6; --line-2: #d9d9d6;
  --ok: #1a8f4a; --max: 1120px; --narrow: 760px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ar: "Cairo", "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body { overflow-x: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.55; font-size: 16px; }
html[lang="ar"] body { font-family: var(--font-ar); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .4em; letter-spacing: -.01em; color: var(--black); }
h1 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; }
h2 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 700; }
h3 { font-size: 1.02rem; font-weight: 650; }
p { margin: 0 0 1em; }
.muted { color: var(--ink-3); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--red); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 60; }
.skip:focus { inset-inline-start: 8px; }
.wrap { width: min(var(--max), 100% - 48px); margin-inline: auto; }
.narrow { width: min(var(--narrow), 100% - 48px); margin-inline: auto; }
@media (max-width: 640px) { .wrap, .narrow { width: calc(100% - 32px); } }
.center { text-align: center; }

/* ---------- header (always the same slim bar) + drawer ---------- */
.shell { display: block; min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 40; height: 64px; overflow: hidden; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 10px; height: 100%; }
.topbar .burger { order: -1; }
.topbar .brand { order: 1; }
.topbar .actions { order: 0; margin-inline-start: 8px; }
.topbar .brand { margin-inline-start: auto; position: relative; display: inline-block; line-height: 0; overflow: hidden; border-radius: 6px; }
.topbar .brand img { height: 34px; width: auto; animation: logo-breathe 5s ease-in-out infinite; transform-origin: center; }
.topbar .brand::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.85) 50%, transparent 65%); mix-blend-mode: screen; opacity: 0; animation: logo-shine 6s ease-in-out infinite; pointer-events: none; }
@keyframes logo-breathe { 0%,100% { filter: drop-shadow(0 0 0 rgba(229,9,20,0)); } 50% { filter: drop-shadow(0 3px 10px rgba(229,9,20,.4)); } }
@keyframes logo-shine { 0%,70%,100% { opacity: 0; transform: translateX(-120%); } 78% { opacity: 1; } 86% { opacity: 0; transform: translateX(120%); } }
html[dir="rtl"] .topbar .brand::after { animation-name: logo-shine-rtl; }
@keyframes logo-shine-rtl { 0%,70%,100% { opacity: 0; transform: translateX(120%); } 78% { opacity: 1; } 86% { opacity: 0; transform: translateX(-120%); } }
@media (prefers-reduced-motion: reduce) { .topbar .brand img, .topbar .brand::after { animation: none; } }
.topbar .actions { display: flex; align-items: center; gap: 8px; }
.topbar .actions .btn { padding: 8px 16px; font-size: .9rem; border-radius: 999px; }
.topbar .burger { width: 40px; height: 40px; padding: 0; display: grid; place-items: center; }
.topbar .burger svg { width: 20px; height: 20px; }
@media (max-width: 640px) { .topbar .actions .hide-sm { display: none; } }
.side { position: fixed; inset: 0 auto 0 0; width: min(85vw, 340px); overflow-y: auto; transform: translateX(-100%); transition: transform .26s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; gap: 4px; padding: 16px 14px; background: #fff; border-inline-end: 1px solid var(--line); z-index: 50; box-shadow: 0 0 0 100vw rgba(0,0,0,0); }
html[dir="rtl"] .side { inset: 0 0 0 auto; transform: translateX(100%); }
html.nav-open .side { transform: none; box-shadow: 0 0 0 100vw rgba(23,23,23,.45); }
html.nav-open { overflow: hidden; }
.side .brand { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 8px 14px; }
.side .brand img { height: 26px; width: auto; }
.side .close { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); cursor: pointer; }
.side .close svg { width: 18px; height: 18px; }
.side svg, .topbar svg, .btn svg, .feature svg { max-width: 24px; max-height: 24px; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: 1rem; }
.side nav a svg { width: 20px; height: 20px; flex: none; }
.side nav a:hover { background: var(--surface); color: var(--black); }
.side nav a[aria-current="page"] { background: var(--red-soft); color: var(--red-dark); }
.side .spacer { flex: 1; }
.side .cta-side { display: grid; gap: 8px; }
.side .fine { color: var(--ink-3); font-size: .75rem; padding: 10px 8px 0; line-height: 1.45; }
.lang, .burger { border: 1px solid var(--line-2); background: #fff; color: var(--ink); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
.lang:hover, .burger:hover { border-color: var(--black); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 26px; border-radius: 999px; font-weight: 650; border: 1px solid transparent; cursor: pointer; font-family: inherit; font-size: 1rem; transition: background .15s, border-color .15s, box-shadow .15s; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(229,9,20,.25); }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost { background: #fff; border-color: var(--line-2); color: var(--black); }
.btn-ghost:hover { border-color: var(--black); }
.btn-wa { background: #25d366; color: #052e16; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--surface); color: var(--ink-2); font-weight: 600; font-size: .8rem; }
.pill.ok { background: #e6f5ec; color: var(--ok); }

/* ---------- home: centred hero, disclaimer, carousel ---------- */
.hero { padding: 44px 0 8px; text-align: center; }
.hero h1 { margin: 0 auto .5em; max-width: 24ch; }
.hero .sub { color: var(--ink-2); font-size: 1.05rem; max-width: 62ch; margin: 0 auto 18px; }
.hero .cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 6px 0 12px; }
.notice { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; color: var(--ink-2); font-size: .9rem; text-align: start; }
.notice strong { color: var(--black); }
.notice a { color: var(--red-dark); font-weight: 600; }
.carousel { position: relative; margin: 26px auto 0; max-width: 980px; }
.carousel .track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; gap: 0; border-radius: 16px; background: #000; scrollbar-width: none; box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.carousel .track::-webkit-scrollbar { display: none; }
.carousel .slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 16/9; }
.carousel .slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel .slide .cap { position: absolute; inset-inline-start: 4%; top: 7%; max-width: 44%; color: #fff; text-align: start; text-shadow: 0 2px 12px rgba(0,0,0,.7); }
.carousel .slide .cap b { display: block; font-size: clamp(1.1rem, 2.6vw, 2rem); font-weight: 750; line-height: 1.15; }
.carousel .slide .cap span { display: block; font-size: clamp(.8rem, 1.4vw, 1rem); opacity: .9; margin-top: 6px; }
.carousel .arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--black); display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.carousel .arrow svg { width: 18px; height: 18px; }
.carousel .arrow.prev { inset-inline-start: -14px; } .carousel .arrow.next { inset-inline-end: -14px; }
html[dir="rtl"] .carousel .arrow svg { transform: scaleX(-1); }
.carousel .dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.carousel .dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.carousel .dots i.on { background: var(--red); }
.carousel .fine { color: var(--ink-3); font-size: .8rem; margin-top: 10px; text-align: center; }
@media (max-width: 640px) { .carousel .arrow { display: none; } .carousel .track { border-radius: 10px; } .carousel .slide .cap { max-width: 60%; } }

/* platforms — full-colour device illustrations; hover = lift, brighten, glow */
.platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.platform { position: relative; display: block; text-align: center; padding: 22px 12px 16px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, #fff, #fafaf8); transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s, border-color .28s; }
.platform:hover, .platform:focus-visible { transform: translateY(-5px); border-color: rgba(229,9,20,.4); box-shadow: 0 22px 44px rgba(23,23,23,.12), 0 0 0 4px rgba(229,9,20,.06); }
.platform .dev { width: 120px; height: 84px; margin: 0 auto 12px; filter: drop-shadow(0 8px 14px rgba(0,0,0,.18)); transition: filter .3s, transform .3s; }
.platform .dev svg { width: 100%; height: 100%; overflow: visible; }
.platform .dev .shadow { fill: #000; opacity: .18; }
.platform:hover .dev, .platform:focus-visible .dev { filter: drop-shadow(0 14px 20px rgba(229,9,20,.28)) brightness(1.12) saturate(1.15); transform: scale(1.04); }
.platform h3 { font-size: .95rem; margin-bottom: 2px; }
.platform p { color: var(--ink-3); font-size: .82rem; margin: 0 0 10px; }
.platform .pill { font-size: .72rem; padding: 4px 10px; }
.platform.soon { background: linear-gradient(180deg, #fbfbfa, #f3f3f0); }
.platform.soon .dev { filter: drop-shadow(0 6px 10px rgba(0,0,0,.12)) saturate(.55) opacity(.85); }
.platform.soon:hover .dev { filter: drop-shadow(0 10px 16px rgba(0,0,0,.16)) saturate(1) opacity(1); transform: scale(1.02); }
.platform.soon:hover { transform: translateY(-2px); border-color: var(--line-2); box-shadow: 0 14px 30px rgba(23,23,23,.08); cursor: default; }
.platform.soon .pill { animation: soon-pulse 3s ease-in-out infinite; }
.platform:not(.soon) .dev { animation: dev-float 6s ease-in-out infinite; }
.platform:nth-child(2):not(.soon) .dev { animation-delay: -2s; } .platform:nth-child(3):not(.soon) .dev { animation-delay: -4s; }
@keyframes dev-float { 0%,100% { translate: 0 0; } 50% { translate: 0 -3px; } }
@keyframes soon-pulse { 0%,100% { opacity: .75; } 50% { opacity: 1; } }
@media (max-width: 640px) { .platforms { grid-template-columns: repeat(2, 1fr); gap: 10px; } .platform { padding: 16px 10px 12px; } .platform .dev { width: 100px; height: 70px; } }
@media (prefers-reduced-motion: reduce) { .platform .dev, .platform.soon .pill { animation: none; } }

/* ---------- sections ---------- */
section { padding: 56px 0; }
section.tight { padding: 40px 0; }
.head { margin-bottom: 26px; }
.head p { color: var(--ink-2); max-width: 62ch; margin-inline: auto; }
.features { display: grid; gap: 22px 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); text-align: center; }
.feature { padding: 8px; }
.feature .ico { width: 48px; height: 48px; margin: 0 auto 12px; border-radius: 14px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); }
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { margin-bottom: .25em; }
.feature p { color: var(--ink-2); margin: 0; font-size: .94rem; }
.list { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); padding: 0; margin: 0; }
.list li { list-style: none; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; background: var(--surface); border-radius: 10px; color: var(--ink-2); font-size: .95rem; }
.list li::before { content: "✓"; color: var(--ok); font-weight: 800; flex: none; }
.download-block { text-align: center; }
.download-block .code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.05rem; background: #fff; border: 1px solid var(--line); padding: 6px 12px; border-radius: 8px; direction: ltr; display: inline-block; }
.download-block .fine { color: var(--ink-3); font-size: .85rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.card p { color: var(--ink-2); margin: 0; font-size: .95rem; }
.card h3 { margin-bottom: .3em; }
.card .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); margin-bottom: 12px; }
.card .ico svg { width: 20px; height: 20px; }
.badge { display: inline-block; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-3); margin-bottom: 10px; }
.badge.live { color: var(--ok); border-color: #b9e3c8; }
code, .code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .92em; background: var(--surface); padding: 2px 7px; border-radius: 6px; direction: ltr; unicode-bidi: embed; }
.dark { background: var(--black); color: #fff; } .dark h2, .dark h3 { color: #fff; } .dark p { color: rgba(255,255,255,.7); }
.device { border-radius: 12px; background: #000; padding: 6px; box-shadow: 0 20px 50px rgba(0,0,0,.35); } .device img { border-radius: 8px; width: 100%; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; align-items: stretch; }
.plan { position: relative; border: 1px solid var(--line); border-radius: 18px; padding: 26px 22px 22px; background: #fff; display: flex; flex-direction: column; gap: 8px; text-align: center; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.plan .name { font-weight: 700; color: var(--ink-2); font-size: .95rem; letter-spacing: .02em; }
.plan .price { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin: 4px 0 0; direction: ltr; }
.plan .price b { font-size: 2.6rem; font-weight: 800; line-height: 1; color: var(--black); }
.plan .price small { font-size: .95rem; color: var(--ink-3); font-weight: 600; }
.plan .price s { color: var(--ink-3); font-size: .95rem; font-weight: 500; margin-inline-end: 4px; }
.plan .per { color: var(--ink-3); font-size: .85rem; margin-bottom: 8px; }
.plan ul { list-style: none; margin: 4px 0 14px; padding: 12px 0 0; border-top: 1px solid var(--line); text-align: start; display: grid; gap: 6px; }
.plan li { font-size: .92rem; color: var(--ink-2); padding-inline-start: 22px; position: relative; }
.plan li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--ok); font-weight: 800; }
.plan .btn { margin-top: auto; width: 100%; }
.plan.featured { border-color: var(--red); box-shadow: 0 16px 40px rgba(229,9,20,.14); }
.plan.featured .name { color: var(--red-dark); }
.plan .ribbon { position: absolute; top: -12px; inset-inline-start: 50%; transform: translateX(-50%); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; background: var(--red); color: #fff; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
html[dir="rtl"] .plan .ribbon { transform: translateX(50%); }

/* activation form + steps */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 20px; } }
.steps { counter-reset: s; display: grid; gap: 10px; }
.step { position: relative; padding: 16px 16px 16px 54px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
html[dir="rtl"] .step { padding: 16px 54px 16px 16px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; inset-inline-start: 16px; top: 16px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; font-weight: 800; font-size: .82rem; }
.step p { color: var(--ink-2); margin: 0; font-size: .93rem; }
.form { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 22px; display: grid; gap: 14px; }
.field > label { display: block; font-weight: 650; margin-bottom: 6px; }
.field .hint { color: var(--ink-3); font-size: .86rem; margin-top: 6px; }
.field input, .field select { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); font: inherit; font-size: 1rem; }
.field input.code { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .16em; text-transform: uppercase; direction: ltr; text-align: center; font-size: 1.25rem; }
.field input:focus, .field select:focus { outline: 2px solid var(--red); outline-offset: 0; border-color: transparent; }
.field .err { color: var(--red); font-size: .9rem; margin-top: 6px; display: none; }
.field.invalid .err { display: block; } .field.invalid input { border-color: var(--red); }
.field .lbl { display: block; font-weight: 650; margin-bottom: 6px; }
.choices { display: grid; grid-template-columns: 1fr; gap: 8px; }
.choices label { display: flex; align-items: center; gap: 10px; min-width: 0; width: 100%; margin: 0; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer; background: #fff; font-weight: 600; }
.choices label .n { flex: 1; min-width: 0; }
.choices label .pr { color: var(--ink-3); font-weight: 600; font-size: .9rem; direction: ltr; }
.choices input { accent-color: var(--red); flex: none; width: 18px; height: 18px; margin: 0; }
.choices label:has(input:checked) { border-color: var(--red); background: var(--red-soft); }
.choices label:has(input:checked) .pr { color: var(--red-dark); }

/* news / faq / band */
.news { display: grid; gap: 10px; }
.news article { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; }
.news time { color: var(--red-dark); font-weight: 650; font-size: .88rem; direction: ltr; }
@media (max-width: 560px) { .news article { grid-template-columns: 1fr; gap: 4px; } }
details { border-bottom: 1px solid var(--line); padding: 0 4px; }
summary { cursor: pointer; padding: 14px 0; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--red); font-weight: 800; }
details[open] summary::after { content: "−"; }
details p { color: var(--ink-2); padding-bottom: 14px; }
.band { border-radius: 14px; padding: 26px; background: var(--surface); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.band h2 { margin: 0; font-size: 1.3rem; } .band p { margin: 4px 0 0; color: var(--ink-2); }

/* sub-pages + legal docs */
.page-hero { padding: 44px 0 6px; text-align: center; }
.page-hero .lead { color: var(--ink-2); max-width: 62ch; margin: 0 auto; }
.crumbs { font-size: .85rem; color: var(--ink-3); margin-bottom: 8px; }
.doc { padding: 16px 0 64px; }
.doc .wrap { max-width: var(--narrow); }
.doc h2 { font-size: 1.25rem; margin-top: 2em; }
.doc table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 1em 0; }
.doc th, .doc td { text-align: start; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--ink-3); font-weight: 600; white-space: nowrap; }
.doc ol, .doc ul { padding-inline-start: 22px; }
.doc li { margin: .4em 0; }
.doc .eff { color: var(--ink-3); font-size: .9rem; }
.doc a { color: var(--red-dark); }
@media (max-width: 560px) { .doc table, .doc thead, .doc tbody, .doc tr, .doc th, .doc td { display: block; } .doc thead { display: none; } .doc th { white-space: normal; border: 0; padding-bottom: 0; } .doc tr { border-bottom: 1px solid var(--line); } .doc td { border: 0; } }

/* footer: one slim line */
footer { border-top: 1px solid var(--line); padding: 22px 0 32px; color: var(--ink-3); font-size: .85rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: center; }
footer a:hover { color: var(--black); }
footer .fine { width: 100%; text-align: center; margin-top: 10px; font-size: .8rem; }

/* language switching + reveal */
html[lang="en"] [lang-block="ar"], html[lang="ar"] [lang-block="en"] { display: none !important; }
html.js-reveal .reveal { opacity: 0; transform: translateY(8px); transition: opacity .45s ease, transform .45s ease; }
html.js-reveal .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .btn, .side { transition: none; } .carousel .track { scroll-behavior: auto; } }
