/* موقع RADYN وصفحة Sitevo (2026-11-30). ألوان الشعار: أزرق ولبني على ورق رسم هندسي فاتح، وخط Readex Pro
   الدائري زي حروف الشعار. اللحظة المميزة الوحيدة: خط القياس في رأس صفحة Sitevo (دورة الشغل من العرض للتحصيل). */
:root {
  --paper: #f3f6f8;
  --paper-2: #e8eef2;
  --surface: #ffffff;
  --ink: #0f2233;
  --ink-2: #44566a;
  --muted: #6b7c8d;
  --line: #d3dde5;
  --blue: #2f7bf0;
  --blue-ink: #1f5fc4;
  --cyan: #4cc9e0;
  --grid: rgb(47 123 240 / 0.07);
  --focus: #2f7bf0;
  --radius: 10px;
  --font: 'Readex Pro', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0d1a26;
    --paper-2: #12222f;
    --surface: #152836;
    --ink: #e6edf3;
    --ink-2: #b4c2cf;
    --muted: #8b9cad;
    --line: #23394a;
    --blue: #5b9bff;
    --blue-ink: #8ab8ff;
    --cyan: #5fd6ea;
    --grid: rgb(95 214 234 / 0.06);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

/* اللغة: نسختين من كل نص، واللي مش لغة الصفحة مخفي. */
html[lang='ar'] body [lang='en'], html[lang='en'] body [lang='ar'] { display: none !important; }
bdi, .ltr { unicode-bidi: isolate; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* الرأس */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 26px; width: auto; }
.brand .on-dark { display: none; }
@media (prefers-color-scheme: dark) { .brand .on-light { display: none; } .brand .on-dark { display: block; } }
.nav { display: flex; gap: 22px; margin-inline-start: auto; align-items: center; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 0.95rem; }
.nav a:hover { color: var(--ink); }
.lang-btn { font: inherit; font-size: 0.875rem; background: transparent; border: 1px solid var(--line); color: var(--ink); border-radius: 8px; padding: 4px 10px; cursor: pointer; }
@media (max-width: 640px) { .nav .hide-sm { display: none; } .nav { gap: 14px; } }

/* الأزرار */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2; padding: 13px 22px; border-radius: var(--radius); border: 1px solid transparent; text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-ink); }
@media (prefers-color-scheme: dark) { .btn-primary { color: #06121d; } .btn-primary:hover { background: #8ab8ff; } }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-quiet:hover { border-color: var(--ink-2); }
.btn-wa { background: #1f8f4e; color: #fff; }
.btn-wa:hover { background: #17733e; }
.btn-sm { padding: 8px 14px; font-size: 0.9rem; }

/* الأقسام */
section { padding-block: 72px; }
h1, h2, h3 { line-height: 1.3; margin: 0; font-weight: 600; letter-spacing: 0; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); }
h3 { font-size: 1.125rem; }
p { margin: 0; }
.lead { font-size: 1.1875rem; color: var(--ink-2); max-width: 46ch; margin-top: 18px; }
.sec-head { max-width: 640px; margin-bottom: 36px; }
.sec-head p { color: var(--ink-2); margin-top: 10px; }

/* رأس Sitevo */
.hero { padding-block: 72px 56px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .note { margin-top: 14px; color: var(--muted); font-size: 0.9375rem; }

/* خط القياس: دورة الشغل كرسم قياس في الرسومات الهندسية */
.dim { margin-top: 64px; position: relative; }
.dim ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.dim ol::before { content: ''; position: absolute; inset-inline: 0; top: 18px; height: 2px; background: linear-gradient(90deg, var(--cyan), var(--blue)); }
html[dir='rtl'] .dim ol::before { background: linear-gradient(270deg, var(--cyan), var(--blue)); }
.dim li { position: relative; padding-top: 44px; padding-inline-end: 12px; }
.dim li::before { content: ''; position: absolute; top: 8px; inset-inline-start: 0; width: 2px; height: 22px; background: var(--ink); }
.dim li:last-child::after { content: ''; position: absolute; top: 8px; inset-inline-end: 0; width: 2px; height: 22px; background: var(--ink); }
.dim .n { position: absolute; top: -10px; inset-inline-start: 10px; font-size: 0.8125rem; color: var(--muted); }
.dim b { display: block; font-weight: 600; font-size: 1.0625rem; }
.dim span.d { display: block; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.6; margin-top: 4px; }
.dim .tick { position: absolute; top: 12px; inset-inline-start: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--blue); }
@media (prefers-reduced-motion: no-preference) {
  .dim ol::before { transform-origin: right; animation: draw 1.1s 0.2s cubic-bezier(.2,.7,.2,1) both; }
  html[dir='ltr'] .dim ol::before { transform-origin: left; }
  .dim li { animation: rise 0.5s both; }
  .dim li:nth-child(1) { animation-delay: 0.35s; } .dim li:nth-child(2) { animation-delay: 0.5s; } .dim li:nth-child(3) { animation-delay: 0.65s; } .dim li:nth-child(4) { animation-delay: 0.8s; } .dim li:nth-child(5) { animation-delay: 0.95s; }
}
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .dim ol { grid-template-columns: 1fr; gap: 0; }
  .dim ol::before { inset-inline: auto; inset-inline-start: 0; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, var(--cyan), var(--blue)) !important; transform-origin: top !important; animation-name: drawv; }
  .dim li { padding: 0 0 26px; padding-inline-start: 28px; }
  .dim li::before, .dim li:last-child::after { display: none; }
  .dim .tick { top: 6px; inset-inline-start: -5px; }
  .dim .n { position: static; display: block; }
}
@keyframes drawv { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* اللي بيعمله: صفوف مش كروت */
.caps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.cap { padding: 22px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.cap svg { width: 26px; height: 26px; color: var(--blue); margin-top: 3px; }
.cap p { color: var(--ink-2); margin-top: 4px; font-size: 0.98rem; }
@media (max-width: 760px) { .caps { grid-template-columns: 1fr; } }

/* شريط الموقع */
.band { background: var(--ink); color: var(--paper); }
@media (prefers-color-scheme: dark) { .band { background: var(--paper-2); color: var(--ink); } }
.band .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.band p { color: color-mix(in srgb, currentColor 78%, transparent); margin-top: 12px; }
.band ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.band li { padding-inline-start: 22px; position: relative; }
.band li::before { content: ''; position: absolute; inset-inline-start: 0; top: 0.75em; width: 10px; height: 2px; background: var(--cyan); }
@media (max-width: 760px) { .band .wrap { grid-template-columns: 1fr; gap: 24px; } }

/* الأسعار */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.plan .price { font-size: 2rem; font-weight: 600; line-height: 1.1; }
.plan .price small { font-size: 0.95rem; font-weight: 400; color: var(--muted); }
.plan .yearly { color: var(--muted); font-size: 0.9rem; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--ink-2); font-size: 0.95rem; }
.plan li::before { content: '✓'; color: var(--blue); margin-inline-end: 8px; }
.plan .btn { margin-top: auto; }
.cycle { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; padding: 3px; margin-bottom: 20px; background: var(--surface); }
.cycle button { font: inherit; font-size: 0.9rem; border: 0; background: transparent; color: var(--ink-2); padding: 6px 14px; border-radius: 7px; cursor: pointer; }
.cycle button[aria-pressed='true'] { background: var(--ink); color: var(--paper); }
.contact-box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.contact-box p { color: var(--ink-2); max-width: 52ch; }
.contact-box .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.big-note { color: var(--muted); font-size: 0.95rem; margin-top: 16px; }

/* الأسئلة */
.faq { max-width: 760px; }
.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--blue); font-weight: 400; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--ink-2); margin-top: 10px; }

/* الختام */
.close { text-align: center; }
.close p { color: var(--ink-2); margin: 12px auto 26px; max-width: 48ch; }

/* RADYN الرئيسية */
.home-hero { padding-block: 96px 64px; }
.home-hero h1 { max-width: 18ch; }
.product { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; padding: 32px 0; border-top: 2px solid var(--ink); }
.product .tag { color: var(--muted); font-size: 0.95rem; }
.product h3 { font-size: 1.75rem; margin-top: 4px; }
.product p { color: var(--ink-2); margin-top: 10px; max-width: 56ch; }
.product .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.product.soon { border-top: 1px dashed var(--line); color: var(--muted); }
@media (max-width: 760px) { .product { grid-template-columns: 1fr; } }
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.about p { color: var(--ink-2); margin-top: 12px; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; gap: 20px; } }

/* شعار Sitevo النصي المؤقت */
.sitevo-mark { font-weight: 600; font-size: 1.15rem; color: var(--ink); text-decoration: none; display: inline-flex; align-items: baseline; gap: 6px; }
.sitevo-mark i { font-style: normal; width: 9px; height: 9px; border-radius: 3px; background: linear-gradient(135deg, var(--cyan), var(--blue)); display: inline-block; }
.by { color: var(--muted); font-size: 0.8125rem; }

/* التذييل */
footer { border-top: 1px solid var(--line); padding-block: 28px; color: var(--muted); font-size: 0.9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--ink-2); text-decoration: none; }
footer img { height: 18px; width: auto; }
.close .btn + .btn { margin-inline-start: 10px; }
.band .about p { color: color-mix(in srgb, currentColor 80%, transparent); }
.dim li { padding-inline-start: 14px; }
@media (max-width: 760px) { .dim li { padding-inline-start: 28px; } }
