/* ألوان JUST START — مأخوذة من src/styles.css في التطبيق (السمة الداكنة) */
:root {
  --bg: oklch(0.14 0.018 265);
  --surface: oklch(0.18 0.019 265);
  --surface-2: oklch(0.225 0.021 265);
  --card: oklch(0.194 0.019 265);
  --ink: #ffffff;
  --muted: oklch(0.80 0.013 265);
  --soft: #cdcfd3;
  --red: oklch(0.67 0.245 27);
  --red-ink: oklch(0.742 0.174 27);
  --ok: oklch(0.79 0.19 151);
  --border: oklch(1 0 0 / 11%);
  --radius: 18px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Arabic", "Helvetica Neue", "Segoe UI", Tahoma, Arial, sans-serif;
  --latin: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--red-ink); }
strong { color: var(--ink); font-weight: 800; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 620px; }
.red { color: var(--red); }

/* الشريط العلوي */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in oklch, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.top__in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { border-radius: 10px; }
.brand__name { font-family: var(--latin); font-weight: 900; letter-spacing: -0.02em; font-size: 18px; }

/* الأزرار */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 28px;
  background: var(--red); color: #fff;
  border: 0; border-radius: 999px;
  font: 800 17px/1 var(--font);
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.98); }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* البطل */
.hero { padding: 72px 0 64px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto; height: 520px;
  background: radial-gradient(closest-side, oklch(0.67 0.245 27 / 22%), transparent);
  pointer-events: none;
}
.hero__in { position: relative; }
.eyebrow { color: var(--muted); font-weight: 600; margin: 0 0 14px; font-size: 15px; }
h1 { font-size: clamp(38px, 8vw, 68px); line-height: 1.2; font-weight: 900; margin: 0 0 20px; letter-spacing: -0.01em; }
.lead { font-size: clamp(18px, 2.6vw, 22px); color: var(--soft); max-width: 640px; margin: 0 auto 30px; }
.hint { color: var(--muted); font-size: 14px; margin: 14px 0 0; }
.tagline { font-family: var(--latin); font-weight: 700; letter-spacing: .22em; color: var(--muted); font-size: 13px; margin: 36px 0 0; }

/* العدو */
.band { background: var(--surface); border-block: 1px solid var(--border); padding: 56px 0; }
.big { font-size: clamp(19px, 2.6vw, 23px); color: var(--soft); margin: 0; max-width: 820px; }

.section { padding: 72px 0; }
.section--alt { background: var(--surface); border-block: 1px solid var(--border); }
h2 { font-size: clamp(26px, 4.2vw, 36px); line-height: 1.3; font-weight: 900; margin: 0 0 12px; }
.sub { color: var(--muted); margin: 0 0 28px; }

/* بطاقات الميزات مع ترقيم */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: f; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; counter-increment: f;
}
.card::before {
  content: "0" counter(f); display: block;
  font-family: var(--latin); font-weight: 900; font-size: 15px; color: var(--red); letter-spacing: .08em;
  margin-bottom: 10px;
}
.card h3 { margin: 0 0 6px; font-size: 20px; font-weight: 800; }
.card p { margin: 0; color: var(--soft); font-size: 16px; }

/* لك ومو لك */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { position: relative; padding: 10px 34px 10px 0; color: var(--soft); border-bottom: 1px solid var(--border); }
.list li::before { position: absolute; right: 0; top: 10px; font-weight: 900; width: 22px; text-align: center; }
.list--x li::before { content: "✕"; color: var(--red); }
.list--ok li::before { content: "✓"; color: var(--ok); }

/* النموذج */
.form-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 24px;
  padding: 32px 24px; box-shadow: 0 30px 80px -40px oklch(0.67 0.245 27 / 45%);
}
.field { display: block; border: 0; margin: 0 0 18px; padding: 0; }
.field > span, .field legend { display: block; font-weight: 700; margin-bottom: 8px; font-size: 16px; padding: 0; }
.field small { color: var(--muted); font-weight: 400; }
input[type=text], input[type=tel], input[type=email], select {
  width: 100%; min-height: 52px; padding: 0 16px; margin-bottom: 10px;
  background: var(--surface-2); color: var(--ink);
  border: 1px solid var(--border); border-radius: 14px;
  font: 400 17px var(--font);
  appearance: none; -webkit-appearance: none;
}
input::placeholder { color: oklch(0.80 0.013 265 / 60%); }
input[dir="ltr"]:placeholder-shown { direction: rtl; text-align: right; }
input:focus, select:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: transparent; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: 22px 23px, 16px 23px; background-size: 6px 6px; background-repeat: no-repeat; }
.chips { display: flex; gap: 10px; }
.chips label { flex: 1; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: flex; align-items: center; justify-content: center; min-height: 52px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; cursor: pointer; font-weight: 700;
}
.chips input:checked + span { border-color: var(--red); background: oklch(0.67 0.245 27 / 16%); }
.chips input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 18px; color: var(--soft); font-size: 15px; line-height: 1.6; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--red); flex: none; }
.hp { position: absolute !important; top: 0 !important; right: 0 !important; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.err { background: oklch(0.67 0.245 27 / 14%); border: 1px solid oklch(0.67 0.245 27 / 45%); color: var(--ink); padding: 10px 14px; border-radius: 12px; margin: 0 0 14px; font-size: 15px; }
.promise { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; }
.promise li { color: var(--muted); font-size: 14px; padding-right: 24px; position: relative; }
.promise li::before { content: "✓"; position: absolute; right: 0; color: var(--ok); font-weight: 900; }

/* الأسئلة */
details { border-bottom: 1px solid var(--border); padding: 16px 0; }
summary { cursor: pointer; font-weight: 700; list-style: none; position: relative; padding-left: 28px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; left: 0; top: -2px; font-size: 22px; color: var(--red); font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { color: var(--soft); margin: 10px 0 0; }

/* التذييل */
.foot { padding: 40px 0 56px; border-top: 1px solid var(--border); text-align: center; }
.social { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-bottom: 16px; }
.social a { color: var(--soft); text-decoration: none; font-family: var(--latin); font-weight: 600; font-size: 15px; }
.social a:hover { color: var(--ink); }
.fine { color: var(--muted); font-size: 14px; margin: 0; }
.fine a { color: var(--muted); }

/* صفحات النص (الدليل والخصوصية) */
.doc { padding: 56px 0 72px; }
.doc h1 { font-size: clamp(30px, 6vw, 46px); }
.doc h2 { font-size: clamp(22px, 3.4vw, 28px); margin-top: 40px; }
.doc p, .doc li { color: var(--soft); }
.doc .do { background: var(--surface); border: 1px solid var(--border); border-right: 3px solid var(--ok); border-radius: 12px; padding: 12px 16px; margin: 12px 0 0; color: var(--ink); }
.doc .do b { color: var(--ok); }
.thanks { background: oklch(0.79 0.19 151 / 12%); border: 1px solid oklch(0.79 0.19 151 / 40%); border-radius: 16px; padding: 18px 20px; margin: 0 0 32px; }
.thanks h2 { margin: 0 0 6px; font-size: 22px; }
.thanks p { margin: 0; }
.share { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 24px; margin-top: 44px; text-align: center; }
.share h2 { margin-top: 0; }
.share .btn { margin-top: 8px; }

@media (max-width: 720px) {
  .two { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding: 52px 0 48px; }
  .section { padding: 56px 0; }
  .form-card { padding: 26px 18px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* اللغة والخط: اسم البراند يحتفظ بخط --latin وشكله الحالي. */
.language-toggle { flex: none; min-height: 40px; padding: 0 12px; background: transparent; border: 1px solid var(--border); border-radius: 9px; color: var(--ink); font: 600 13px/1 var(--font); cursor: pointer; }
.language-toggle:hover { background: var(--surface-2); }
.language-toggle:focus-visible { outline: 2px solid white; outline-offset: 4px; }
[dir="ltr"] .list li { padding-right: 0; padding-left: 34px; }
[dir="ltr"] .list li::before, [dir="ltr"] .promise li::before { right: auto; left: 0; }
[dir="ltr"] .promise li { padding-right: 0; padding-left: 24px; }
[dir="ltr"] .doc .do { border-right: 1px solid var(--border); border-left: 3px solid var(--ok); }
[dir="ltr"] input[dir="ltr"]:placeholder-shown { direction: ltr; text-align: left; }
[dir="ltr"] summary { padding-left: 0; padding-right: 28px; }
[dir="ltr"] summary::after { left: auto; right: 0; }
[dir="ltr"] select { background-position: calc(100% - 22px) 23px, calc(100% - 16px) 23px; }

.language-toggle { width: 44px; height: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: #ffffff05; transition: background .15s ease, border-color .15s ease; }
.language-toggle:hover { border-color: #ffffff40; background: #ffffff0c; }
.language-icon { flex: none; pointer-events: none; }


/* شاشات 4K (26 أكتوبر 2026): الموقع مبني بالبكسل، فعلى شاشة عملاقة بدون تكبير الويندوز يطلع عمود صغير وسط الشاشة.
   هنا يكبر كله بنسبة، والخطوط والأيقونات متجهة فتظل حادة. 1.25 أقصى: 1.5 يطلّع تمرير جانبي (مجرّب على كل الصفحات) */
@media (min-width: 2560px) { html { zoom: 1.15; } }
@media (min-width: 3200px) { html { zoom: 1.25; } }
