/* موقع رتبلي أونلاين — نفس الألوان الهادية بتاعة البرنامج (ورقي دافي في الفاتح، فحمي هادي في الغامق، وذهبي للتمييز) */
:root {
  --bg: #FBFAF6; --bg2: #F3F1EB; --surface: #FFFEFA; --text: #2A2824; --muted: #6E6A61; --line: rgba(42, 40, 36, .1);
  --gold: #C9971A; --gold2: #E8C15A; --gold-soft: rgba(215, 157, 23, .12); --green: #3F8E64; --green-soft: rgba(63, 142, 100, .1);
  --shadow: 0 24px 60px -28px rgba(42, 40, 36, .35); --r: 18px;
  font-family: "Segoe UI", "IBM Plex Sans Arabic", Tahoma, system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #17181A; --bg2: #1C1D20; --surface: #222427; --text: #E6E2D8; --muted: #A39E93; --line: rgba(230, 226, 216, .09); --gold-soft: rgba(232, 193, 90, .12); --green: #74BE93; --green-soft: rgba(116, 190, 147, .12); --shadow: 0 24px 60px -28px rgba(0, 0, 0, .7); }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 16.5px; line-height: 1.7; overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; letter-spacing: -.2px; }
h1 { font-size: clamp(34px, 5.2vw, 60px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 750; }
h3 { font-size: 18.5px; font-weight: 700; margin-bottom: .3em; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(17px, 1.6vw, 19.5px); color: var(--muted); max-width: 640px; }
.kicker { display: inline-block; font-size: 13.5px; font-weight: 700; color: var(--gold); background: var(--gold-soft); padding: 4px 12px; border-radius: 99px; margin-bottom: 14px; }
.grad { background: linear-gradient(100deg, var(--gold), var(--gold2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* أزرار */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 0 20px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; transition: transform .12s, box-shadow .2s, background .2s; }
.btn:hover { box-shadow: 0 8px 22px -12px rgba(0, 0, 0, .35); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(180deg, #D9A62E, var(--gold)); border-color: transparent; color: #1E1A10; }
.btn.lg { min-height: 54px; padding: 0 26px; font-size: 17px; border-radius: 14px; }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: 14.5px; }
.btn.ghost { background: transparent; }
.btn[aria-disabled="true"] { opacity: .6; pointer-events: none; }
.btn.soon { cursor: default; color: var(--muted); }
.btn.soon:hover { box-shadow: none; }

/* الشريط اللي فوق */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 22px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; text-decoration: none; }
.links { display: flex; gap: 22px; margin-inline-start: 12px; }
.links a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; }
.links a:hover { color: var(--text); }
.nav-end { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.lang { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; font-size: 14.5px; color: var(--muted); padding: 8px 10px; border-radius: 10px; }
.lang:hover { background: var(--bg2); color: var(--text); }

/* البداية */
.hero { position: relative; padding: 70px 0 40px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 640px; background: radial-gradient(600px 380px at 75% 30%, var(--gold-soft), transparent 70%), radial-gradient(500px 340px at 10% 10%, var(--green-soft), transparent 70%); pointer-events: none; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; align-items: center; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 12px; }
.note { font-size: 14px; color: var(--muted); }
.trust { position: relative; list-style: none; padding: 0; margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.trust li { display: flex; align-items: center; gap: 10px; justify-content: center; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 14.5px; }
.trust li svg { color: var(--gold); flex: none; }

/* معاينة البرنامج */
.mock { position: relative; height: 420px; }
.mw { position: absolute; inset: 44px 6% auto 6%; border-radius: 18px; overflow: hidden; background: #201F1C; color: #E6E2D8; border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55); }
.mw-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: rgba(255, 255, 255, .04); border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: 12px; color: rgba(230, 226, 216, .6); }
.mw-bar i { width: 10px; height: 10px; border-radius: 50%; }
.mw-bar i:nth-child(1) { background: #CF7A6E; } .mw-bar i:nth-child(2) { background: #D2A53F; } .mw-bar i:nth-child(3) { background: #5FA27C; }
.mw-bar span { margin-inline-start: auto; }
.mw-body { display: flex; min-height: 240px; }
.mw-side { display: flex; flex-direction: column; gap: 10px; padding: 14px 10px; border-inline-end: 1px solid rgba(255, 255, 255, .06); }
.mw-side span { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: rgba(230, 226, 216, .5); }
.mw-side span.on { background: rgba(215, 157, 23, .2); color: #E8C15A; }
.mw-main { flex: 1; padding: 16px 18px; display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.mw-now { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; background: linear-gradient(160deg, rgba(215, 157, 23, .16), rgba(255, 255, 255, .03)); border: 1px solid rgba(215, 157, 23, .32); margin-bottom: 4px; }
.mw-ring { position: relative; width: 50px; height: 50px; flex: none; }
.mw-ring svg { width: 100%; height: 100%; }
.mw-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; }
.mw-now-t { display: flex; flex-direction: column; min-width: 0; }
.mw-now-t small { color: #E8C15A; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }
.mw-now-t b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mw-clock { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 21px; letter-spacing: .5px; }
.mk-task { display: flex; align-items: center; gap: 9px; font-size: 14px; }
.mk-task i { width: 18px; height: 18px; border-radius: 6px; border: 1.6px solid rgba(230, 226, 216, .35); display: grid; place-items: center; flex: none; }
.mk-task.done i { background: #5FA27C; border-color: #5FA27C; color: #fff; }
.mk-task.done span { text-decoration: line-through; opacity: .55; }
.fc { position: absolute; padding: 12px 14px; border-radius: 14px; background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow); animation: float 7s ease-in-out infinite; }
.fc small { display: block; color: var(--muted); font-size: 12px; }
.fc b { font-size: 14.5px; }
.fc-a { inset: auto auto 0 0; width: 200px; }
.fc-a b { font-size: 24px; color: var(--green); }
.fc-a svg { width: 100%; height: 30px; display: block; }
.fc-p { inset: 0 0 auto auto; display: flex; align-items: center; gap: 10px; animation-delay: -2.5s; }
.fc-p > svg { color: var(--gold); }
.fc-s { inset: auto 0 18px auto; display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--green); animation-delay: -4.5s; }
@keyframes float { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .fc { animation: none; } html { scroll-behavior: auto; } }

/* الأقسام */
.sec { padding: 90px 0; scroll-margin-top: 70px; }
#download { scroll-margin-top: 120px; }
.sec.alt { background: var(--bg2); }
.sec h2 { max-width: 760px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 34px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 34px; }
.card { padding: 24px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; font-size: 15.5px; }
.card.row { display: flex; gap: 16px; align-items: flex-start; }
.ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); margin-bottom: 14px; flex: none; }
.card.row .ic { margin: 0; }
.ic.green { background: var(--green-soft); color: var(--green); }

/* الأسعار */
.seg { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); margin-top: 18px; }
.seg button { min-width: 110px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: inherit; font-weight: 650; cursor: pointer; }
.seg button.on { background: var(--gold-soft); color: var(--text); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 28px 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.plan.hot { border: 2px solid var(--gold); box-shadow: var(--shadow); }
.badge { position: absolute; top: -13px; inset-inline-start: 24px; background: var(--gold); color: #1E1A10; font-size: 12.5px; font-weight: 800; padding: 3px 12px; border-radius: 99px; }
.price { margin: 14px 0 4px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price b { font-size: 42px; font-weight: 800; line-height: 1; }
.price s { color: var(--muted); font-size: 18px; }
.price em { font-style: normal; color: var(--muted); font-size: 14px; }
.sale { display: inline-block; align-self: flex-start; font-size: 13px; font-weight: 700; color: var(--green); background: var(--green-soft); padding: 2px 10px; border-radius: 99px; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 22px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.plan li { display: flex; gap: 9px; align-items: flex-start; font-size: 15px; }
.plan li svg { color: var(--green); flex: none; margin-top: 4px; }
.pay { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 22px; font-size: 14.5px; }

/* الأسئلة */
.qa { border-bottom: 1px solid var(--line); padding: 4px 0; }
.qa summary { cursor: pointer; padding: 16px 0; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.qa summary::after { content: "+"; color: var(--gold); font-size: 22px; line-height: 1; }
.qa[open] summary::after { content: "−"; }
.qa p { color: var(--muted); }
.cta-sec { background: radial-gradient(600px 300px at 50% 0%, var(--gold-soft), transparent 70%); }

/* الصفحات القانونية */
.legal { padding: 48px 0 80px; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); }
.legal h2 { font-size: 21px; margin-top: 30px; }
.legal ul { padding-inline-start: 22px; }
.legal li { margin-bottom: 8px; }
.back { display: inline-block; margin-bottom: 18px; color: var(--muted); text-decoration: none; font-weight: 600; }
[dir="rtl"] .back { direction: rtl; }

/* الفوتر */
.foot { border-top: 1px solid var(--line); padding: 34px 0; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot nav a { text-decoration: none; color: var(--muted); font-size: 14.5px; }
.foot nav a:hover { color: var(--text); }
.foot p { margin: 0; margin-inline-start: auto; font-size: 14px; }

/* الشاشات الصغيرة */
@media (max-width: 980px) {
  .links { display: none; }
  .hero-in { grid-template-columns: 1fr; gap: 24px; }
  .mock { height: 380px; }
  .grid3, .plans { grid-template-columns: 1fr 1fr; }
  .trust { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding-top: 40px; }
  .nav-end .dl-btn span { display: none; }
  .grid3, .grid2, .plans { grid-template-columns: 1fr; }
  .mock { height: 340px; }
  .mw { inset: 40px 0 auto 0; }
  .fc-a { width: 160px; }
  .fc-s { display: none; }
  .sec { padding: 64px 0; }
  .cta .btn { width: 100%; }
  .foot p { margin-inline-start: 0; }
}
