/* ═══════════════════════════════════════════════════════════════
   الرئيسية ونجوم الحفلات — فاتحة، شبابية، حيّة
   كريمي دافي من أول الصفحة لآخرها: الألوان، البداية (الكلام والقلم وزر الجولة)، الأسئلة، انضم إلينا
   الهيدر والقائمة والفوتر: shell.css · الكتالوج: browse.css · الخريطة: map.css
   ═══════════════════════════════════════════════════════════════ */

body.v3 {
  /* نعيد تعريف ألوان site.css حتى الدرج والدعم الذكي يصيرون فاتحين ويانا */
  --bg: #fff8f1;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #fff4ea;
  --surface-3: #ffeadb;
  --line: rgba(43, 26, 70, .09);
  --line-2: rgba(43, 26, 70, .16);
  --text: #2b1a46;
  --muted: #6d6383;
  --dim: #9a92ad;
  --ink: #2b1a46;
  --gold: #ff9f1c;
  --coral: #ff5c7a;
  --violet: #8b5cf6;
  --mint: #12b886;
  --sky: #38bdf8;
  --grad: linear-gradient(105deg, #ff9f1c 0%, #ff5c8a 50%, #8b5cf6 100%);
  --grad-soft: linear-gradient(105deg, #fff0dc, #ffe3ee 50%, #efe7ff);
  --shadow: 0 20px 50px -24px rgba(80, 40, 120, .35);
  --shadow-glow: 0 16px 36px -14px rgba(255, 92, 138, .55);
  --hot: linear-gradient(105deg, #ff9f1c 0%, #ff5c8a 55%, #b25cf6 100%);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font-head: "Alexandria", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --kufi: "Reem Kufi", "Alexandria", sans-serif;
  --pen-dim: #8f86a6; /* حبر القلم قبل ما يكتب */
  --mix-ink: #000; /* نص الشارات الملوّنة يختلط بيه (أبيض بالليلي) */
  color-scheme: light;
  background: transparent; /* الخلفية على html حتى الفقاعات (z-index:-1) تبين */
  color: var(--text);
  overflow-x: clip;
}
html:has(body.v3) { color-scheme: light; background: #fff8f1; overflow-x: clip; }
.v3 ::selection { background: #ffd6e6; color: var(--text); }
.v3 a { color: inherit; }
.v3 a.v3-btn--hot { color: #fff; }
.v3 h1, .v3 h2, .v3 h3, .v3 h4 { font-family: var(--font-head); margin: 0; letter-spacing: 0; }
.v3 p { margin: 0; }
.v3 .ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.v3-kufi { font-family: var(--kufi); font-weight: 700; }

/* ─── خلفية: فقاعات ألوان هادئة تتحرك ببطء ─── */
.v3-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.v3-bg i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.v3-bg .b1 { width: 46vmax; height: 46vmax; background: #ffd9b8; top: -18vmax; right: -12vmax; animation: drift1 26s ease-in-out infinite alternate; }
.v3-bg .b2 { width: 38vmax; height: 38vmax; background: #ffd3e6; top: 30vh; left: -16vmax; animation: drift2 30s ease-in-out infinite alternate; }
.v3-bg .b3 { width: 34vmax; height: 34vmax; background: #e4dbff; bottom: -14vmax; right: 10vw; animation: drift3 34s ease-in-out infinite alternate; }
.v3-bg .b4 { width: 24vmax; height: 24vmax; background: #c9f4e6; top: 55vh; right: 38vw; opacity: .45; animation: drift1 38s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(-8vw, 10vh) scale(1.12); } }
@keyframes drift2 { to { transform: translate(10vw, -8vh) scale(.9); } }
@keyframes drift3 { to { transform: translate(-6vw, -12vh) scale(1.1); } }

/* ─── البداية ─── */
.v3-hero { position: relative; padding: 28px 0 70px; }

/* ═══ جولة الموقع: بنهاية خط القلم (يسار السطر الأخير — آخر نقطة يوصلها الزائر بالقراءة) ═══
   وقت القراءة: مثلث تشغيل هادئ (دائرة بيضة تتنفّس) — ينضغط من أول ثانية.
   يخلص القلم: نقطته تنزل للمثلث → الدائرة تنملي ألوان، الحلقة تطلع وتدور، شرارات وموجة، والكلام يطلع يمّها.
   بعد ما يشوف الجولة: حلقة رمادية ساكنة (مثل ستوري انشافت) */
.v3-tourdock { display: flex; justify-content: flex-end; margin-top: 12px; }
.v3-tourbtn { display: inline-flex; align-items: center; padding: 4px; border: 0; background: none; cursor: pointer; color: var(--text); text-align: end; border-radius: 999px; }
.v3-tourbtn:focus-visible { outline: 3px solid #8b5cf6; outline-offset: 4px; }
/* الكلام: عرضه ينفتح وقت الانفتاح (الحلقة تبقى بمكانها لأن الأيقونة لازگة باليسار) */
.v3-tourbtn__t { display: grid; max-width: 290px; margin-inline-end: 12px; overflow: hidden; white-space: nowrap; line-height: 1.3;
  transition: max-width .75s var(--ease), margin .75s var(--ease), opacity .45s .2s, translate .7s var(--spring) .15s; }
.v3-tourbtn__t small { font: 800 13px var(--font-head); color: #e8467c; }
.v3-tourbtn__t b { font: 900 18.5px var(--font-head); }
.v3-tourbtn__t em { font: 700 12.5px var(--font-head); font-style: normal; color: var(--muted); }
.v3-tring { position: relative; flex: none; width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; transition: transform .35s var(--spring); }
.v3-tring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(#ffb23f, #ff5c8a, #8b5cf6, #ff5c8a, #ffb23f);
  animation: spin 3.2s linear infinite; transition: scale .8s var(--spring) .1s, opacity .4s .1s; }
.v3-tring::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid #ff9fc4; animation: v3-ping 2.2s ease-out infinite; }
.v3-tring__in { position: relative; z-index: 1; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: var(--surface);
  box-shadow: 0 0 0 3.5px var(--surface), 0 10px 22px -8px rgba(255, 92, 138, .8); transition: box-shadow .5s; }
/* لون الدائرة طبقة تنفتح من النص — حتى "تنملي" وقت الانفتاح */
.v3-tring__in::before { content: ""; position: absolute; inset: 0; background: var(--hot); clip-path: circle(72% at 50% 50%); transition: clip-path .7s var(--ease); }
.v3-tring__in svg { position: relative; width: 24px; height: 24px; fill: #fff; margin-left: 4px; filter: drop-shadow(0 2px 3px rgba(43, 26, 70, .25)); transition: fill .45s .2s; }
.v3-tourbtn:hover .v3-tring { transform: scale(1.08); }
.v3-tourbtn:active .v3-tring { transform: scale(.94); }
/* وقت القراءة: مثلث بس — هادئ وينضغط */
.v3-tourdock.is-early .v3-tourbtn__t { max-width: 0; margin-inline-end: 0; opacity: 0; translate: -18px 0; transition-delay: 0s; }
.v3-tourdock.is-early .v3-tring::before { scale: .8; opacity: 0; }
.v3-tourdock.is-early .v3-tring::after { display: none; }
.v3-tourdock.is-early .v3-tring__in { box-shadow: 0 0 0 2px #ffd0e0, 0 10px 22px -12px rgba(255, 92, 138, .7); animation: v3-breathe 2.6s ease-in-out infinite; }
.v3-tourdock.is-early .v3-tring__in::before { clip-path: circle(0% at 50% 50%); }
.v3-tourdock.is-early .v3-tring__in svg { fill: #ff5c8a; filter: none; }
@keyframes v3-breathe { 50% { box-shadow: 0 0 0 7px rgba(255, 170, 200, .3), 0 10px 22px -12px rgba(255, 92, 138, .7); } }
/* وقت سؤال أول زيارة: الضوء على الحلقة بس، وكلامها يختفي (نفس الكلام صار بالفقاعة) */
.v3-tourdock.is-asking .v3-tourbtn__t { opacity: 0; }
/* انشافت: حلقة رمادية ساكنة، والزر أهدأ */
.v3-tourdock.is-seen .v3-tring::before { background: #ddd5ea; animation: none; }
.v3-tourdock.is-seen .v3-tring::after { display: none; }
.v3-tourdock.is-seen .v3-tring__in { box-shadow: 0 0 0 3.5px var(--surface), 0 8px 18px -10px rgba(43, 26, 70, .45); }
.v3-tourdock.is-seen .v3-tring__in::before { clip-path: circle(0% at 50% 50%); }
.v3-tourdock.is-seen .v3-tring__in svg { fill: #e8467c; filter: none; }
.v3-tourdock.is-seen .v3-tourbtn__t small { color: var(--muted); }
.v3-tourdock.is-seen .v3-tourbtn__t b { font-size: 16.5px; }
/* الانفتاح: نطّة + موجة + شرارات (الموجة والشرارات من home.js) */
.v3-tourdock.is-born .v3-tring { animation: v3-born .85s var(--spring); }
@keyframes v3-born { 0% { transform: scale(.92); } 35% { transform: scale(1.24) rotate(-8deg); } 100% { transform: none; } }
.v3-tdrop { position: fixed; left: 0; top: 0; z-index: 70; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, #fff 0 30%, #ff9fc4 55%, rgba(255, 92, 138, 0) 72%); box-shadow: 0 0 18px 6px rgba(255, 140, 190, .7); }
.v3-tspark { position: fixed; left: 0; top: 0; z-index: 70; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; pointer-events: none;
  background: var(--c, #ffc93c); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.v3-twave { position: fixed; left: 0; top: 0; z-index: 69; width: 66px; height: 66px; margin: -33px 0 0 -33px; border-radius: 50%; pointer-events: none;
  border: 3px solid #ff9fc4; box-shadow: 0 0 22px rgba(255, 140, 190, .6); }
@media (max-width: 640px) {
  .v3-tourdock { margin-top: 10px; }
  .v3-tourbtn__t b { font-size: 17.5px; }
}
.v3-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 16px; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); font-size: 14px; font-weight: 600; color: var(--muted); }
/* «جديد: …» — آخر إضافات الموقع، رابط لها */
a.v3-eyebrow--new { text-decoration: none; color: var(--text); transition: box-shadow .2s, transform .3s var(--spring); }
a.v3-eyebrow--new:hover { transform: translateY(-2px); box-shadow: 0 0 0 1.5px #ffb3cb, 0 10px 20px -14px rgba(255, 92, 138, .7); }
.v3-live { width: 9px; height: 9px; border-radius: 50%; background: #12b886; box-shadow: 0 0 0 0 rgba(18, 184, 134, .5); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(18, 184, 134, 0); } 100% { box-shadow: 0 0 0 0 rgba(18, 184, 134, 0); } }
.v3-h1 { margin: 18px 0 14px !important; font-size: clamp(38px, 5.6vw, 66px); font-weight: 900; line-height: 1.22; }
.v3-h1 .v3-kufi { display: inline-block; }
.v3-mark {
  position: relative; display: inline-block; white-space: nowrap;
  background: linear-gradient(90deg, #ff8a00, #ff4f8b, #9b5cff, #12b8a6, #ff8a00); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: flow 8s linear infinite;
}
.v3-mark::after {
  content: ""; position: absolute; inset-inline: -2%; bottom: -.08em; height: .28em; z-index: -1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 14 Q 40 2 80 11 T 197 7' fill='none' stroke='%23ffc93c' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  transform-origin: right; animation: draw 1.1s .5s var(--ease) both;
}
@keyframes flow { to { background-position: 300% 0; } }
@keyframes draw { from { transform: scaleX(0); } }
/* سطر التعريف: جملتين، كل وحدة سطر كامل بالشاشة الكبيرة (وبالموبايل تنلف طبيعي) */
.v3-intro { font-size: clamp(17px, 1.9vw, 24.5px); font-weight: 600; color: #4f4566; line-height: 1.8; text-wrap: pretty; }
.v3-intro > span { display: block; }
@media (min-width: 641px) { .v3-intro > span { white-space: nowrap; } }
@media (min-width: 641px) and (max-width: 900px) { .v3-intro { font-size: clamp(17px, 2.9vw, 24px); } }

/* ─── القلم: خط "بمكان واحد" يكمل لسطور التعريف ويلوّنها كلمة كلمة (pen.js) ─── */
.v3-intro { position: relative; isolation: isolate; }
@media (prefers-reduced-motion: no-preference) {
  /* قبل ما يوصلها القلم الكلمات فاتحة — ولو الجافاسكربت ما اشتغل ترجع غامقة وحدها */
  .v3-intro:not(.ink):not(.ink-done) { color: #8f86a6; animation: ink-wait .6s 7s forwards; }
}
@keyframes ink-wait { to { color: #4f4566; } }
/* الحشوة توسّع مساحة اللون حتى ذيول الحروف ما تنقص — والهامش السالب يرجّع المحاذاة مثل ما چانت */
.v3-intro .ink-w { padding: .22em .14em; margin-inline: -.14em; }
.v3-intro.ink .ink-w {
  --p: 0;
  color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(to left, var(--text) calc(var(--p) * (100% + 16px) - 16px), var(--pen-dim) calc(var(--p) * (100% + 16px)));
}
.v3-intro.ink .ink-w.is-on, .v3-intro.ink-done .ink-w { color: var(--ink, inherit); background: none; }
.ink-line {
  position: absolute; z-index: -1; height: .3em; margin-top: -.34em; pointer-events: none;
  transform-origin: right; transform: scaleX(0);
  background: var(--tint, #ffc93c); opacity: .9;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 13 Q 30 5 62 11 T 128 9 T 197 10' fill='none' stroke='%23000' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 13 Q 30 5 62 11 T 128 9 T 197 10' fill='none' stroke='%23000' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
/* رأس القلم: نقطة تضوي تمشي قدّام الخط، وتطيّر شرارات وراها */
.v3-pen {
  position: absolute; left: 0; top: 0; z-index: 3; width: 16px; height: 16px; margin: -8px 0 0 -8px;
  border-radius: 50%; pointer-events: none; opacity: 0; will-change: transform, opacity;
  background: radial-gradient(circle, #fff 0 24%, #ffe9a8 42%, rgba(255, 159, 28, .65) 60%, rgba(255, 92, 138, 0) 72%);
  box-shadow: 0 0 16px 5px rgba(255, 184, 77, .5), 0 0 30px 10px rgba(255, 92, 138, .2);
}
.v3-spark {
  position: absolute; left: 0; top: 0; z-index: 3; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; pointer-events: none;
  background: var(--c, #ffc93c); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

@keyframes bob { 50% { translate: 0 -14px; rotate: 12deg; } }

/* حركات مشتركة (الأسئلة، الجولة، الشرائح) */
@keyframes flash { 30% { box-shadow: 0 0 0 6px #ffc93c, 0 30px 70px -36px rgba(80, 40, 120, .5); } }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* الكتالوج: يبين تحت الهيدر الثابت لما ننزله */
#explore { scroll-margin-top: 84px; }

/* أزرار صغيرة */
.v3-btn--xs { min-height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn-ai.v3-btn--xs { min-height: 36px; padding: 0 14px; font-size: 13.5px; }

@keyframes hint { 25%, 65% { transform: scale(1.22); box-shadow: 0 0 0 10px rgba(255, 92, 138, .2), 0 16px 32px -12px rgba(255, 92, 138, .75); } }

/* ─── الأقسام ─── */
.v3-sec { position: relative; padding: 70px 0; }
.v3-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; }
.v3-head--center { justify-content: center; text-align: center; }
.v3-head h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 900; line-height: 1.4; }
.v3-head p:not(.v3-kicker) { color: var(--muted); margin-top: 6px !important; font-size: 16.5px; }
.v3-kicker { display: inline-flex; align-items: center; gap: 8px; font: 700 14.5px var(--font-head); color: #e8467c; margin-bottom: 12px !important; }
.v3-kicker::before { content: ""; width: 22px; height: 6px; border-radius: 999px; background: var(--hot); }
@keyframes shimmer { to { background-position: -300% 0; } }

@keyframes v3-track { to { background-position: -20px 0; } }

@keyframes v3-ping { 0% { opacity: .85; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.5); } }

/* ─── انضم كمشهور ─── */
.v3-join {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 36px; align-items: center;
  padding: clamp(26px, 4vw, 52px); border-radius: 40px; background: linear-gradient(125deg, #ffe2c4 0%, #ffd2e4 45%, #e2d6ff 100%);
}
.v3-join::before, .v3-join::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.v3-join::before { width: 260px; height: 260px; top: -90px; left: -60px; background: rgba(255, 255, 255, .45); }
.v3-join::after { width: 140px; height: 140px; bottom: -40px; right: 36%; border: 22px solid rgba(255, 255, 255, .5); animation: bob 7s ease-in-out infinite; }
.v3-join > * { position: relative; z-index: 1; }
.v3-join h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 900; margin-bottom: 10px; }
.v3-join > div > p { color: #5a4a72; font-size: 16.5px; }
.v3-join ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.v3-join li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.v3-join li::before { content: "✓"; width: 28px; height: 28px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--surface); color: #12b886; font-weight: 900; }
.v3-kicker--light { color: #c2255c; }
.v3-joincta { display: grid; gap: 18px; padding: 26px; border-radius: 28px; background: color-mix(in srgb, var(--surface) 92%, transparent); box-shadow: 0 30px 60px -30px rgba(80, 40, 120, .45); }
.v3-joinsteps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; text-align: center; }
.v3-joinsteps::before { content: ""; position: absolute; top: 25px; right: 17%; left: 17%; height: 4px; border-radius: 4px; background: repeating-linear-gradient(270deg, #ffb3cf 0 10px, transparent 10px 20px); animation: v3-track 1.2s linear infinite; }
.v3-joinsteps li { position: relative; display: grid; justify-items: center; gap: 2px; --c: #ff7a3d; }
.v3-joinsteps li::before { content: none; }
.v3-joinsteps li:nth-child(2) { --c: #8b5cf6; }
.v3-joinsteps li:nth-child(3) { --c: #12b886; }
.v3-joinsteps span { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 32% 26%, color-mix(in srgb, var(--c) 55%, var(--surface)), var(--c) 70%); box-shadow: 0 0 0 6px var(--surface), 0 14px 26px -12px var(--c); margin-bottom: 8px; }
.v3-joinsteps span .ic { width: 24px; height: 24px; stroke-width: 2.1; }
.v3-joinsteps b { font: 800 15px var(--font-head); }
.v3-joinsteps small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.v3-joincta .v3-btn { min-height: 56px; font-size: 17px; }
.v3-joincta__login { margin: -6px 0 0; text-align: center; color: var(--muted); font-size: 14px; }
.v3-joincta__login a { color: #e8467c; font-weight: 700; }
.v3 .form input, .v3 .form select { background-color: #fbf8ff; border-color: rgba(43, 26, 70, .12); border-radius: 16px; }
.v3 .form input:focus, .v3 .form select:focus { border-color: #ff8fb8; box-shadow: 0 0 0 4px rgba(255, 92, 138, .14); }
.v3 .form select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236d6383' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
.v3 .form .hint { display: block; margin-top: 6px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.v3 .form__msg.err { color: #e03131; }
.v3 .form__msg.ok { color: #0c8a63; }

/* ─── الأسئلة ─── */
.v3-faq { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.v3-faq details { border-radius: 24px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 16px 34px -28px rgba(80, 40, 120, .4); overflow: hidden; transition: box-shadow .3s; }
.v3-faq details[open] { box-shadow: 0 0 0 2px #ffc2d8, 0 20px 40px -26px rgba(255, 92, 138, .5); }
.v3-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font: 700 17px var(--font-head); }
.v3-faq summary::-webkit-details-marker { display: none; }
.v3-faq summary::after { content: "+"; flex: none; width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: var(--hot); color: #fff; font-size: 22px; font-weight: 500; transition: transform .45s var(--spring); }
.v3-faq details[open] summary::after { transform: rotate(135deg); }
.v3-faq details p { padding: 0 22px 20px; color: var(--muted); line-height: 1.9; animation: rise .35s var(--ease); }

@keyframes fade { from { opacity: 0; } }

/* ─── الظهور عند النزول ─── */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--spring); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ─── عناصر مشتركة من site.css على الخلفية الفاتحة ─── */

.v3 .scrim { background: rgba(43, 26, 70, .3); }
.v3 .drawer:focus { outline: none; }
.v3 .drawer { box-shadow: 30px 0 80px -30px rgba(80, 40, 120, .4); }
.v3 .toast { background: var(--text); color: #fff; border-radius: 999px; }
.v3 .skip { position: absolute; top: -60px; right: 16px; z-index: 300; padding: 10px 16px; border-radius: 12px; background: var(--text); color: #fff; }
.v3 .skip:focus { top: 12px; }
body.v3.lock { overflow: hidden; }

/* ═══ الشاشات ═══ */

@media (max-width: 900px) {
  .v3-join { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .v3-hero { padding-top: 12px; }
  .v3-h1 { font-size: clamp(34px, 10vw, 44px); }
  .v3-sec { padding: 52px 0; }
  /* بالموبايل: الجملتين يمشون ورا بعض بـ3 سطور كاملة — الخط يكبر ويا عرض الشاشة (≈5.6% من العمود)
     حتى النص يتوزع على 3 سطور متساوية، وكل السطور (حتى الأخير) ممدودة لآخر العرض */
  .v3-intro { font-size: clamp(16px, calc((100vw - 32px) * .056), 22px); line-height: 1.75; text-wrap: balance; text-align: justify; text-align-last: justify; }
  .v3-intro > span { display: inline; }
  .v3 .form { grid-template-columns: minmax(0, 1fr); }
  .v3-joincta { padding: 18px 14px; }
  .v3-joinsteps { gap: 10px; }
  .v3-joinsteps b { font-size: 13px; white-space: nowrap; }
  .v3-joinsteps small { font-size: 11.5px; line-height: 1.5; }
  .v3-joinsteps span { width: 48px; height: 48px; }
  .v3-joinsteps::before { top: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .v3 *, .v3 *::before, .v3 *::after { animation: none !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
