/* الموقع الرسمي — يلا نطلع
 *
 * نطاق هذا الملف هو `.yn` وحده: `index.html` تحمل صفحة الهبوط وصفحات الضيف
 * والتحميل في مستندٍ واحد، وأي قاعدة على `body` هنا تسرّب إلى تلك الصفحات.
 * لذلك لا يُستعمل هنا محدّد عام إلا في موضعين موسومين صراحةً.
 *
 * الألوان مأخوذة من هوية المشروع (`brand/identity/README.md`) ومن توكنات
 * التطبيق (`YallaNetlaa/Core/DesignSystem/AppTheme.swift`) — لا لون يُخترع هنا.
 * والاتجاه يُدار بالخصائص المنطقية وحدها، فالملف نفسه يخدم العربية RTL
 * والإنجليزية LTR بلا نسخة ثانية.
 */

.yn {
  /* الهوية */
  --yn-violet: #5b4cf0;
  --yn-accent: #5b4cf0;
  --yn-on-violet: #ffffff;
  --yn-violet-deep: #4135c6;
  --yn-violet-night: #24134f;
  --yn-lime: #c8f36a;
  --yn-peach: #ff6b3d;

  /* الأسطح والنص */
  --yn-bg: #fbf8f3;
  --yn-bg-2: #f4f0f8;
  --yn-surface: #ffffff;
  --yn-ink: #18181f;
  --yn-muted: #5f5a67;
  --yn-border: #e9e3da;
  --yn-line: #efeae3;

  /* أغسال الأقسام — واحدة لكل مساحة في المنتج */
  --yn-wash-violet: #efecfd;
  --yn-wash-lime: #f1f8dd;
  --yn-wash-gold: #fdf1e3;
  --yn-wash-berry: #fbeef2;
  --yn-on-lime: #24134f;
  --yn-lime-text: #4a6410;
  --yn-gold-text: #9a4a10;
  --yn-berry: #8d2246;

  --yn-shadow-sm: 0 1px 2px rgba(36, 19, 79, 0.05), 0 4px 12px rgba(36, 19, 79, 0.05);
  --yn-shadow-md: 0 2px 6px rgba(36, 19, 79, 0.06), 0 16px 36px rgba(36, 19, 79, 0.08);
  --yn-shadow-lg: 0 30px 70px rgba(36, 19, 79, 0.16);

  --yn-r-sm: 12px;
  --yn-r-md: 18px;
  --yn-r-lg: 26px;
  --yn-r-xl: 32px;

  --yn-shell: min(100% - 2.25rem, 1140px);
  --yn-pad: clamp(3.5rem, 8vw, 7rem);
  --yn-gap: clamp(1rem, 2.2vw, 1.5rem);

  --yn-display: "Baloo Bhaijaan 2", "Tajawal", system-ui, sans-serif;
  --yn-text: Alexandria, "Tajawal", system-ui, sans-serif;

  position: relative;
  display: block;
  background: var(--yn-bg);
  color: var(--yn-ink);
  font-family: var(--yn-text);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

/* الوضع الليلي — تُعاد التوكنات فقط، ولا يُعرَّف لون لأول مرة هنا. */
@media (prefers-color-scheme: dark) {
  .yn {
    --yn-bg: #12101a;
    --yn-bg-2: #17141f;
    --yn-surface: #1c1826;
    --yn-ink: #f7f4fa;
    --yn-muted: #a8a1b1;
    --yn-border: #322c3d;
    --yn-line: #282234;
    --yn-violet: #6355ee;
    --yn-accent: #9b86ff;
    --yn-violet-deep: #7160f0;
    --yn-wash-violet: #201a30;
    --yn-wash-lime: #1c2318;
    --yn-wash-gold: #251c14;
    --yn-wash-berry: #241620;
    --yn-lime-text: #bceb58;
    --yn-gold-text: #f0a668;
    --yn-berry: #f08fae;
    --yn-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --yn-shadow-md: 0 2px 6px rgba(0, 0, 0, 0.35), 0 16px 36px rgba(0, 0, 0, 0.35);
    --yn-shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.5);
  }
}

/* الموضعان الوحيدان خارج `.yn`: لون ما وراء الصفحة عند السحب الزائد.
 * مشروط بظهور صفحة الهبوط، فلا يمسّ خلفية صفحات الضيف في المستند نفسه. */
body:has(> #landing:not([hidden])) {
  background: #fbf8f3;
}
@media (prefers-color-scheme: dark) {
  body:has(> #landing:not([hidden])) {
    background: #12101a;
  }
}

/* التمرير السلس للمراسي داخل الصفحة. `guest.css` تضعه على `html` مطلقًا،
 * وهذه الصفحة تُخدم أحيانًا بلا `guest.css` (النسخة الإنجليزية). */
@media (prefers-reduced-motion: no-preference) {
  html:has(.yn) {
    scroll-behavior: smooth;
  }
}

/* ─────────────────────────── الأساسيات ─────────────────────────── */

.yn *,
.yn *::before,
.yn *::after {
  box-sizing: border-box;
}
/* التصفير داخل `:where()` عمدًا: وزنه صفر، فأي قاعدة بفئةٍ واحدة تغلبه.
 *
 * كُتب أولًا بلا `:where()` فصار `.yn p` (0,1,1) يغلب `.yn-note--center`
 * (0,1,0) ويُصفّر `margin-inline: auto` — سطرٌ «مركزي» يقف عند الحافة —
 * وصار `.yn a` يغلب لون الزر فيكتب نصًّا أبيض على الليموني بتباين 1.27:1.
 * المشكلة واحدة في الحالتين: تصفيرٌ لا يجوز أن يُنافس. */
.yn :where(h1, h2, h3, p, ul, ol, figure) {
  margin: 0;
}
.yn :where(ul, ol) {
  padding: 0;
  list-style: none;
}
.yn :where(img) {
  max-width: 100%;
}
.yn :where(a) {
  color: inherit;
  text-decoration: none;
}
.yn :focus-visible {
  outline: 3px solid var(--yn-accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.yn .yn-skip {
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  clip-path: inset(50%);
  z-index: 60;
  padding: 12px 18px;
  background: var(--yn-violet);
  color: var(--yn-on-violet);
  border-end-end-radius: var(--yn-r-sm);
  font-weight: 700;
}
.yn .yn-skip:focus {
  clip-path: none;
}
#yn-content:focus {
  outline: none;
}

.yn-i {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}
.yn-i--sm {
  width: 19px;
  height: 19px;
}
.yn-i--xs {
  width: 15px;
  height: 15px;
}

.yn-logo {
  width: 100%;
  height: 100%;
  color: var(--yn-accent);
}
.yn-logo-lime {
  fill: var(--yn-lime);
}
.yn-logo-peach {
  fill: var(--yn-peach);
}

/* ─────────────────────────── الأزرار ─────────────────────────── */

.yn .yn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--yn-violet);
  color: var(--yn-on-violet);
  font-family: var(--yn-text);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(91, 76, 240, 0.28);
  transition: transform 0.18s cubic-bezier(0.2, 0.7, 0.3, 1), background-color 0.18s ease,
    box-shadow 0.18s ease;
}
.yn .yn-btn:hover {
  background: var(--yn-violet-deep);
  box-shadow: 0 12px 26px rgba(91, 76, 240, 0.34);
}
.yn .yn-btn:active {
  transform: translateY(1px) scale(0.985);
}
.yn .yn-btn--sm {
  min-height: 44px;
  padding: 8px 16px;
  font-size: 14px;
}
.yn .yn-btn--lg {
  min-height: 54px;
  padding: 14px 28px;
  font-size: 17px;
}
.yn .yn-btn--onDark {
  background: var(--yn-lime);
  color: var(--yn-on-lime);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}
.yn .yn-btn--onDark:hover {
  background: #d5f985;
}
/* الاتجاه يقلب السهم مرةً واحدة: الأيقونة نفسها تُختار حسب اللغة في الرسم،
 * فلا حاجة لقلب بصري هنا. */

/* ─────────────────────────── الشريط العلوي ─────────────────────────── */

.yn-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--yn-bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.yn-nav.is-stuck {
  border-bottom-color: var(--yn-line);
  background: color-mix(in srgb, var(--yn-bg) 92%, transparent);
}
.yn-nav-in {
  width: var(--yn-shell);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 66px;
  padding-block: 10px;
}
.yn-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
}
.yn-brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
}
.yn-brand-name {
  font-family: var(--yn-display);
  font-size: 21px;
  font-weight: 800;
  color: var(--yn-violet-night);
  letter-spacing: 0;
}
@media (prefers-color-scheme: dark) {
  .yn-brand-name {
    color: var(--yn-ink);
  }
}
.yn-nav-links {
  display: none;
  gap: clamp(14px, 1.8vw, 26px);
  margin-inline: auto;
}
.yn-nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
  color: var(--yn-muted);
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.yn-nav-links a:hover {
  color: var(--yn-accent);
  border-bottom-color: var(--yn-accent);
}
.yn-nav-end {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
}
.yn-nav-links + .yn-nav-end {
  margin-inline-start: 0;
}
.yn-lang {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--yn-border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--yn-muted);
  transition: border-color 0.18s ease, color 0.18s ease;
}
.yn-lang:hover {
  border-color: var(--yn-accent);
  color: var(--yn-accent);
}

@media (min-width: 900px) {
  .yn-nav-links {
    display: flex;
  }
}

/* ─────────────────────────── نصّ مشترك ─────────────────────────── */

.yn-h1 {
  font-family: var(--yn-display);
  font-size: clamp(1.75rem, 6.2vw, 3.7rem);
  overflow-wrap: break-word;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: 0;
  color: var(--yn-violet-night);
  text-wrap: balance;
}
@media (prefers-color-scheme: dark) {
  .yn-h1 {
    color: var(--yn-ink);
  }
}
.yn-h1 em {
  display: block;
  font-style: normal;
  color: var(--yn-accent);
}
.yn-h2 {
  font-family: var(--yn-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  overflow-wrap: break-word;
  font-weight: 800;
  line-height: 1.28;
  color: var(--yn-violet-night);
  text-wrap: balance;
}
@media (prefers-color-scheme: dark) {
  .yn-h2 {
    color: var(--yn-ink);
  }
}
.yn-h3 {
  font-family: var(--yn-display);
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--yn-ink);
}
.yn-lede {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.85;
  color: var(--yn-muted);
  max-width: 62ch;
}
.yn-kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--yn-accent);
  margin-bottom: 10px;
}
.yn-note {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--yn-muted);
}
.yn-note--center {
  text-align: center;
  max-width: 58ch;
  margin-inline: auto;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.yn-head {
  max-width: 66ch;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}
.yn-head .yn-lede {
  margin-top: 14px;
}

.yn-sec {
  padding-block: var(--yn-pad);
  scroll-margin-top: 78px;
}
.yn-sec:focus {
  outline: none;
}
.yn-sec-in {
  width: var(--yn-shell);
  margin-inline: auto;
}
.yn-sec + .yn-sec .yn-sec-in {
  margin-top: 0;
}
.yn-sec--lime {
  background: var(--yn-wash-lime);
}
.yn-sec--gold {
  background: var(--yn-wash-gold);
}
.yn-sec--berry {
  background: var(--yn-wash-berry);
}
.yn-sec--free {
  background: var(--yn-wash-violet);
}
.yn-sec--trust,
.yn-sec--steps {
  background: var(--yn-bg-2);
}
.yn-sec--lime .yn-kicker {
  color: var(--yn-lime-text);
}
.yn-sec--gold .yn-kicker {
  color: var(--yn-gold-text);
}
.yn-sec--berry .yn-kicker {
  color: var(--yn-berry);
}

/* ─────────────────────────── البطل ─────────────────────────── */

.yn-hero {
  width: var(--yn-shell);
  margin-inline: auto;
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
  padding-block: clamp(2.25rem, 6vw, 4.5rem) clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
@media (min-width: 900px) {
  .yn-hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(2rem, 4vw, 3.5rem);
  }
}
.yn-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--yn-wash-violet);
  color: var(--yn-accent);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 18px;
}
.yn-hero .yn-lede {
  margin-top: 18px;
}
.yn-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: clamp(1.5rem, 3vw, 2rem);
}
/* على الجوال يأخذ الزر السطر كاملًا وينزل سطر التوفّر تحته.
 *
 * ليس ذوقًا: الاثنان كانا يتجاوران بالكاد بالخطّ الاحتياطي، فإذا وصل خطّ
 * الهوية اتّسع الزر وانتقل السطر تحته — انزياحٌ قدره ٥٣ بكسل يدفع الجوّالين
 * معه، وهو وحده كان يرفع CLS إلى 0.12. عمودٌ صريح لا التفاف فيه ولا انزياح. */
@media (max-width: 560px) {
  .yn-cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .yn-cta-row .yn-btn {
    width: 100%;
  }
  .yn-availability {
    justify-content: center;
  }
}

.yn-availability {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--yn-muted);
}
.yn-availability i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yn-lime);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--yn-lime) 30%, transparent);
}
.yn-cta-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 16px;
  font-size: 13.5px;
}
.yn-soon {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 12px;
  border: 1px dashed var(--yn-border);
  border-radius: 999px;
  color: var(--yn-muted);
  font-weight: 600;
}
.yn-cta-sub a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--yn-accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
  text-decoration-color: color-mix(in srgb, var(--yn-accent) 40%, transparent);
}
.yn-cta-sub a:hover {
  text-decoration-color: currentColor;
}
.yn-cta-sub .yn-web-app {
  display: none;
}
@media (min-width: 900px) {
  .yn-cta-sub .yn-web-app {
    display: inline-flex;
  }
}

.yn-hero-art {
  position: relative;
  display: grid;
  place-items: center;
  padding-block: clamp(0.5rem, 3vw, 2rem);
}
.yn-hero-glow {
  position: absolute;
  inset: -8% -6%;
  z-index: 0;
  background:
    radial-gradient(46% 42% at 30% 22%, color-mix(in srgb, var(--yn-violet) 26%, transparent), transparent 70%),
    radial-gradient(40% 40% at 78% 68%, color-mix(in srgb, var(--yn-lime) 46%, transparent), transparent 70%),
    radial-gradient(36% 36% at 72% 12%, color-mix(in srgb, var(--yn-peach) 26%, transparent), transparent 70%);
  filter: blur(28px);
  opacity: 0.85;
  pointer-events: none;
}
.yn-hero-phones {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 460px);
}
.yn-hero-phones .yn-phone {
  width: 52%;
}
.yn-phone--back {
  transform: rotate(-5deg) translateY(4%);
  margin-inline-end: -14%;
  opacity: 0.98;
}
.yn-phone--front {
  transform: rotate(3deg);
  z-index: 2;
}
@media (prefers-reduced-motion: no-preference) {
  .yn-phone--front {
    animation: yn-float 7s ease-in-out infinite;
  }
  .yn-phone--back {
    animation: yn-float 7s ease-in-out -3.5s infinite;
  }
}
@keyframes yn-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -10px;
  }
}

.yn-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--yn-r-md);
  background: var(--yn-surface);
  box-shadow: var(--yn-shadow-md);
  font-size: 12.5px;
  line-height: 1.4;
}
.yn-chip b {
  display: block;
  font-size: 13.5px;
  color: var(--yn-ink);
}
.yn-chip span {
  color: var(--yn-muted);
}
.yn-chip .yn-i {
  color: var(--yn-accent);
}
.yn-chip--ready {
  inset-inline-start: 0;
  top: 14%;
}
.yn-chip--free {
  inset-inline-end: 0;
  bottom: 12%;
}
.yn-chip--free .yn-i {
  color: var(--yn-lime-text);
}
@media (max-width: 560px) {
  .yn-chip {
    display: none;
  }
}

/* ─────────────────────────── الجوال ─────────────────────────── */

.yn-phone {
  position: relative;
  width: 100%;
  max-width: 320px;
  padding: 7px;
  border-radius: 40px;
  background: linear-gradient(160deg, #3b3547, #17141d 45%, #2c2637);
  box-shadow: var(--yn-shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.yn-phone-screen {
  position: relative;
  border-radius: 33px;
  overflow: hidden;
  background: #f7f5f0;
  aspect-ratio: 330 / 717;
}
.yn-phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─────────────────────────── الأعمدة الأربعة ─────────────────────────── */

.yn-pillars {
  width: var(--yn-shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--yn-gap);
  padding-block: clamp(1rem, 3vw, 2rem) clamp(2rem, 5vw, 3rem);
}
@media (min-width: 820px) {
  .yn-pillars {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.yn-pillar {
  padding: clamp(1rem, 2.4vw, 1.4rem);
  border-radius: var(--yn-r-lg);
  background: var(--yn-surface);
  border: 1px solid var(--yn-line);
  box-shadow: var(--yn-shadow-sm);
  transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.22s ease;
}
.yn-pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--yn-shadow-md);
}
.yn-pillar h2 {
  font-family: var(--yn-display);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 700;
  line-height: 1.4;
  margin-block: 12px 6px;
}
.yn-pillar p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--yn-muted);
}
.yn-pillar-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
}
[data-tone="violet"] .yn-pillar-icon,
[data-tone="violet"] .yn-card-icon {
  background: var(--yn-wash-violet);
  color: var(--yn-accent);
}
[data-tone="lime"] .yn-pillar-icon,
[data-tone="lime"] .yn-card-icon {
  background: var(--yn-wash-lime);
  color: var(--yn-lime-text);
}
[data-tone="gold"] .yn-pillar-icon,
[data-tone="gold"] .yn-card-icon {
  background: var(--yn-wash-gold);
  color: var(--yn-gold-text);
}
[data-tone="berry"] .yn-pillar-icon,
[data-tone="berry"] .yn-card-icon {
  background: var(--yn-wash-berry);
  color: var(--yn-berry);
}

/* ─────────────────────────── تخطيط عمودين ─────────────────────────── */

.yn-split {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
@media (min-width: 900px) {
  .yn-split {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
  .yn-split--reverse > .yn-split-copy {
    order: 2;
  }
  .yn-split--reverse > .yn-split-art {
    order: 1;
  }
}
.yn-split-art {
  display: grid;
  place-items: center;
}
.yn-sec .yn-split + .yn-grid,
.yn-sec .yn-split + .yn-points,
.yn-sec .yn-grid + .yn-split {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

/* ─────────────────────────── الحبّات ─────────────────────────── */

.yn-picker {
  margin-top: clamp(1.5rem, 3vw, 2rem);
  padding: clamp(1rem, 2.4vw, 1.5rem);
  border-radius: var(--yn-r-lg);
  background: var(--yn-surface);
  border: 1px solid var(--yn-line);
  box-shadow: var(--yn-shadow-sm);
}
.yn-picker-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--yn-muted);
  margin-bottom: 10px;
}
.yn-picker-label + * + .yn-picker-label {
  margin-top: 18px;
}
.yn-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.yn-tags li {
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--yn-bg-2);
  border: 1px solid var(--yn-line);
  font-size: 13px;
  line-height: 1.5;
  color: var(--yn-ink);
}
.yn-tags--pill li {
  background: transparent;
  color: var(--yn-muted);
  font-weight: 600;
}
.yn-tags li.is-on {
  background: var(--yn-violet);
  border-color: var(--yn-violet);
  color: var(--yn-on-violet);
  font-weight: 700;
}
.yn-sec--lime .yn-tags li.is-on {
  background: var(--yn-lime);
  border-color: var(--yn-lime);
  color: var(--yn-on-lime);
}

/* ─────────────────────────── البطاقات ─────────────────────────── */

.yn-grid {
  display: grid;
  gap: var(--yn-gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
/* ثلاثة أعمدة لأقسام الستّ بطاقات: أربعةٌ منها تترك صفًّا ثانيًا بخانتين
 * فارغتين. أما أقسام الأربع بطاقات (يلا AI، الخصوصية) فتبقى على `.yn-grid`
 * وحدها فتصطفّ أربعةً في صفٍّ واحد — وهو المقصود لا المصادفة: لا صفَّ أعرج
 * في الحالتين. أي قسمٍ بخمس بطاقات يحتاج قرارًا جديدًا. */
.yn-grid--three {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.yn-card {
  padding: clamp(1.15rem, 2.6vw, 1.6rem);
  border-radius: var(--yn-r-lg);
  background: var(--yn-surface);
  border: 1px solid var(--yn-line);
  box-shadow: var(--yn-shadow-sm);
  transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 0.22s ease;
}
.yn-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--yn-shadow-md);
}
.yn-card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  margin-bottom: 14px;
}
.yn-card h3,
.yn-tile h3 {
  font-family: var(--yn-display);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--yn-ink);
}
.yn-card > p,
.yn-tile p {
  margin-top: 7px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--yn-muted);
}

.yn-tile {
  padding: clamp(1rem, 2.2vw, 1.35rem);
  border-radius: var(--yn-r-md);
  background: color-mix(in srgb, var(--yn-surface) 78%, transparent);
  border: 1px solid color-mix(in srgb, var(--yn-ink) 8%, transparent);
  transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.3, 1), background-color 0.22s ease;
}
.yn-tile:hover {
  transform: translateY(-3px);
  background: var(--yn-surface);
}

.yn-ticks {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}
.yn-ticks li {
  position: relative;
  padding-inline-start: 26px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--yn-ink);
}
.yn-ticks li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.52em;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--yn-wash-lime);
}
/* علامة الصح مرسومة لا محرفًا: المحرف يتغيّر شكله بين الأنظمة. وهي قناع لا
 * صورة، فلونها توكنٌ يتبع الوضع الفاتح والليلي بدل أن يُطبع مرة واحدة. */
.yn-ticks li::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.52em;
  width: 15px;
  height: 15px;
  background-color: var(--yn-lime-text);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 15'%3E%3Cpath d='m4 7.7 2.2 2.2L11 4.6' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px 15px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 15'%3E%3Cpath d='m4 7.7 2.2 2.2L11 4.6' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px 15px no-repeat;
}
.yn-ticks--lg {
  margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
  gap: 12px;
}
.yn-ticks--lg li {
  font-size: 15px;
}

.yn-card .yn-note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--yn-line);
}

.yn-shots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.yn-shots .yn-phone {
  width: min(46%, 290px);
}
@media (max-width: 640px) {
  .yn-shots .yn-phone {
    width: min(74%, 268px);
  }
}

.yn-points {
  display: grid;
  gap: var(--yn-gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  margin-top: clamp(2rem, 4vw, 3rem);
}
.yn-points li {
  padding-inline-start: 16px;
  border-inline-start: 3px solid var(--yn-accent);
}
.yn-sec--lime .yn-points li {
  border-inline-start-color: var(--yn-lime-text);
}
.yn-points h3 {
  font-family: var(--yn-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
}
.yn-points p {
  margin-top: 5px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--yn-muted);
}
.yn-points--tight {
  margin-top: clamp(2rem, 4vw, 3rem);
}

.yn-flag {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
  padding: 14px 16px;
  border-radius: var(--yn-r-md);
  background: color-mix(in srgb, var(--yn-surface) 70%, transparent);
  border: 1px solid color-mix(in srgb, var(--yn-ink) 8%, transparent);
  font-size: 14px;
  line-height: 1.75;
  color: var(--yn-ink);
}
.yn-flag .yn-i {
  margin-top: 4px;
  color: var(--yn-accent);
}
.yn-flag--block {
  display: block;
  padding: clamp(1rem, 2.2vw, 1.35rem);
}
.yn-flag--block h3 {
  font-family: var(--yn-display);
  font-size: 1.1rem;
  font-weight: 700;
}
.yn-flag--block p {
  margin-top: 6px;
  font-size: 14px;
  color: var(--yn-muted);
}

/* ─────────────────────────── يلا AI ─────────────────────────── */

.yn-sec--ink {
  background: linear-gradient(165deg, #2a1a5e, #1a1030 62%, #241241);
  color: #f4f0ff;
}
.yn-sec--ink .yn-h2,
.yn-sec--ink .yn-tile h3,
.yn-sec--ink .yn-guard h3 {
  color: #fff;
}
.yn-sec--ink .yn-kicker {
  color: var(--yn-lime);
}
.yn-sec--ink .yn-lede,
.yn-sec--ink .yn-tile p,
.yn-sec--ink .yn-note,
.yn-sec--ink .yn-guard p {
  color: #cfc4ea;
}
.yn-sec--ink .yn-tile {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}
.yn-sec--ink .yn-tile:hover {
  background: rgba(255, 255, 255, 0.1);
}
.yn-guard {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  padding: clamp(1.15rem, 2.6vw, 1.6rem);
  border-radius: var(--yn-r-lg);
  background: rgba(200, 243, 106, 0.1);
  border: 1px solid rgba(200, 243, 106, 0.28);
}
.yn-guard-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 14px;
  background: var(--yn-lime);
  color: var(--yn-on-lime);
}
.yn-guard h3 {
  font-family: var(--yn-display);
  font-size: 1.1rem;
  font-weight: 700;
}
.yn-guard p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.8;
}

/* ─────────────────────────── الخطوات ─────────────────────────── */

.yn-steps {
  display: grid;
  gap: var(--yn-gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  counter-reset: yn-step;
}
.yn-steps li {
  position: relative;
  padding: clamp(1.15rem, 2.6vw, 1.6rem);
  border-radius: var(--yn-r-lg);
  background: var(--yn-surface);
  border: 1px solid var(--yn-line);
  box-shadow: var(--yn-shadow-sm);
}
.yn-step-n {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: var(--yn-violet);
  color: var(--yn-on-violet);
  font-family: var(--yn-display);
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 13px;
}
.yn-steps h3 {
  font-family: var(--yn-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
}
.yn-steps p {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--yn-muted);
}

/* ─────────────────────────── الباقات ─────────────────────────── */

.yn-plans {
  display: grid;
  gap: var(--yn-gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  align-items: start;
}
.yn-plan {
  position: relative;
  padding: clamp(1.25rem, 2.8vw, 1.75rem);
  border-radius: var(--yn-r-lg);
  background: var(--yn-surface);
  border: 1px solid var(--yn-line);
  box-shadow: var(--yn-shadow-sm);
}
.yn-plan.is-featured {
  border-color: color-mix(in srgb, var(--yn-violet) 45%, transparent);
  box-shadow: var(--yn-shadow-md);
}
.yn-plan-badge {
  position: absolute;
  top: -11px;
  inset-inline-start: clamp(1.25rem, 2.8vw, 1.75rem);
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--yn-violet);
  color: var(--yn-on-violet);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.6;
}
.yn-plan h3 {
  font-family: var(--yn-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--yn-ink);
}
.yn-plan-price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 8px;
  font-family: var(--yn-display);
}
.yn-plan-price b {
  font-size: clamp(1.9rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--yn-accent);
  font-variant-numeric: tabular-nums;
}
.yn-plan-price span {
  font-family: var(--yn-text);
  font-size: 13px;
  font-weight: 600;
  color: var(--yn-muted);
}
.yn-plan-tag {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--yn-muted);
}
.yn-plan .yn-ticks {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--yn-line);
}

/* ─────────────────────────── الخصوصية ─────────────────────────── */

.yn-inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: clamp(1.5rem, 3vw, 2rem);
}
.yn-inline-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 700;
  color: var(--yn-accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
  text-decoration-color: color-mix(in srgb, var(--yn-accent) 40%, transparent);
}
.yn-inline-links a:hover {
  text-decoration-color: currentColor;
}

/* ─────────────────────────── الختام ─────────────────────────── */

.yn-closing {
  width: var(--yn-shell);
  margin-inline: auto;
  padding-block: var(--yn-pad);
}
.yn-closing-card {
  position: relative;
  overflow: hidden;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 14px;
  padding: clamp(2.25rem, 6vw, 4rem) clamp(1.25rem, 4vw, 3rem);
  border-radius: var(--yn-r-xl);
  background: linear-gradient(150deg, #5b4cf0, #3d2bb8 55%, #24134f);
  color: #fff;
  box-shadow: var(--yn-shadow-lg);
}
.yn-closing-card::after {
  content: "";
  position: absolute;
  inset-inline-end: -12%;
  bottom: -46%;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 243, 106, 0.42), transparent 62%);
  pointer-events: none;
}
.yn-closing-mark {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.14);
}
.yn-closing-mark .yn-logo {
  color: #fff;
  width: 70%;
  height: 70%;
}
.yn-closing-card h2 {
  position: relative;
  z-index: 1;
  font-family: var(--yn-display);
  font-size: clamp(1.7rem, 4.4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.28;
}
.yn-closing-card p {
  position: relative;
  z-index: 1;
  max-width: 46ch;
  font-size: clamp(0.95rem, 1.5vw, 1.075rem);
  line-height: 1.8;
  color: #efeaff;
}
.yn-closing-card .yn-btn {
  position: relative;
  z-index: 1;
  margin-top: 10px;
}

/* ─────────────────────────── التذييل ─────────────────────────── */

.yn-footer {
  border-top: 1px solid var(--yn-line);
  background: var(--yn-bg-2);
  padding-block: clamp(2.5rem, 5vw, 3.5rem) clamp(1.5rem, 3vw, 2rem);
}
.yn-footer-in {
  width: var(--yn-shell);
  margin-inline: auto;
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
}
.yn-footer-brand .yn-brand-mark {
  width: 40px;
  height: 40px;
}
.yn-footer-brand strong {
  display: block;
  margin-top: 10px;
  font-family: var(--yn-display);
  font-size: 19px;
  font-weight: 800;
  color: var(--yn-violet-night);
}
@media (prefers-color-scheme: dark) {
  .yn-footer-brand strong {
    color: var(--yn-ink);
  }
}
.yn-footer-brand p {
  margin-top: 8px;
  max-width: 34ch;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--yn-muted);
}
.yn-footer-col h2 {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--yn-muted);
  margin-bottom: 12px;
}
.yn-footer-col ul {
  display: grid;
  gap: 9px;
}
.yn-footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 14px;
  color: var(--yn-ink);
  transition: color 0.18s ease;
}
.yn-footer-col a:hover {
  color: var(--yn-accent);
}
.yn-footer-legal {
  width: var(--yn-shell);
  margin: clamp(2rem, 4vw, 2.75rem) auto 0;
  padding-top: clamp(1rem, 2vw, 1.5rem);
  border-top: 1px solid var(--yn-line);
  font-size: 12.5px;
  color: var(--yn-muted);
}

/* ─────────────────────────── الظهور بالتمرير ─────────────────────────── */

@media (prefers-reduced-motion: no-preference) {
  .yn [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s ease-out var(--yn-d, 0ms),
      transform 0.55s cubic-bezier(0.2, 0.7, 0.3, 1) var(--yn-d, 0ms);
  }
  .yn [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .yn *,
  .yn *::before,
  .yn *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
