/* EduVira — الموقع التعريفي (النسخة الثانية: فاتحة، بحركة، وصقر يرافق الزائر)
   الألوان من الشعار: تركوازيّ للهوية، وبرتقاليّ للفعل وحده. */
:root {
  --white: #FFFFFF;
  --mist: #F1F8F7;       /* نعناعيّ شاحب — خلفية الأقسام المتناوبة */
  --sky: #E3F2F1;
  --teal: #125E6E;
  --teal-2: #1C7A8C;
  --deep: #0E3E48;       /* لون العناوين */
  --text: #24414A;
  --muted: #5E7A82;
  --line: #D8E8E7;
  --orange: #F07F2A;
  --orange-soft: #FFF1E6;
  --orange-ink: #B4530F;

  --f-head: "Readex Pro", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --f-body: "IBM Plex Sans Arabic", "Readex Pro", system-ui, sans-serif;
  --wrap: 1200px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--text); font-family: var(--f-body);
  font-size: 17px; line-height: 1.75; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-head); color: var(--deep); margin: 0; line-height: 1.22; }
h1 { font-weight: 700; font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
/* العربية: الهمزة والتشكيل فوق السطر وذيول الحروف تحته، فتتراكب السطور بتباعد اللاتينية */
:dir(rtl) h1 { line-height: 1.45; }
:dir(rtl) h2, :dir(rtl) h3 { line-height: 1.4; }
/* عنوانٌ ينكسر سطرين يتوازن سطراه، فلا تبقى كلمةٌ وحدها في السطر الأخير */
h1, h2, h3 { text-wrap: balance; }
.hp-field { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
h2 { font-weight: 700; font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
h3 { font-weight: 500; font-size: 1.2rem; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--orange); color: #fff;
  padding: 8px 14px; border-radius: 8px; z-index: 60; text-decoration: none; }
.skip:focus { top: 12px; }
.kicker { font-family: var(--f-head); font-weight: 500; color: var(--teal-2); margin: 0 0 14px; font-size: 1rem; }

/* ── الأزرار ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--f-head);
  font-weight: 500; font-size: 1rem; text-decoration: none; padding: 15px 28px; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s, background .2s; }
.btn-sm { padding: 9px 18px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn-accent { background: #E9711C; color: #fff; font-weight: 700; letter-spacing: .01em; box-shadow: 0 10px 24px rgba(233, 113, 28, .30); }
.btn-accent:hover { transform: translateY(-2px); background: #D8611A; box-shadow: 0 14px 30px rgba(233, 113, 28, .38); }
.btn-line { border-color: var(--line); color: var(--deep); background: var(--white); }
.btn-line:hover { border-color: var(--teal); }

/* ── الترويسة ── */
.top { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.top.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(14, 62, 72, .06); }
.top-row { display: flex; align-items: center; gap: 28px; min-height: 74px; }
.brand img { height: 42px; width: auto; }
.nav { display: flex; gap: 26px; margin-inline-start: 10px; }
.nav a { text-decoration: none; color: var(--muted); font-size: .96rem; position: relative; }
.nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: -4px; height: 2px; background: var(--orange);
  transform: scaleX(0); transition: transform .3s var(--ease); }
.nav a:hover { color: var(--deep); }
.nav a:hover::after { transform: scaleX(1); }
.top-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.lang { background: var(--white); color: var(--deep); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; font-family: var(--f-head); font-size: .85rem; cursor: pointer; }
.lang:hover { border-color: var(--teal); }

/* ── الافتتاح ── */
.hero { position: relative; padding: 70px 0 110px; background: linear-gradient(180deg, var(--white) 0%, var(--mist) 100%); overflow: hidden; }
.sky span { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.sky span:nth-child(1) { width: 420px; height: 420px; background: #CDEBE7; top: -120px; inset-inline-end: -80px; }
.sky span:nth-child(2) { width: 300px; height: 300px; background: #FFE3CC; bottom: -80px; inset-inline-start: 8%; animation-duration: 22s; }
.sky span:nth-child(3) { width: 260px; height: 260px; background: #D9EEF6; top: 30%; inset-inline-start: 40%; animation-duration: 26s; }
@keyframes drift { to { transform: translate3d(40px, 30px, 0) scale(1.08); } }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.hero-copy h1 { max-width: 14ch; text-wrap: balance; }
.h-split .w { display: inline-block; opacity: 0; transform: translateY(26px); animation: rise .8s var(--ease) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.lead { color: var(--muted); font-size: 1.17rem; max-width: 46ch; margin: 22px 0 32px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.chips { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: .88rem; color: var(--teal); background: var(--white); border: 1px solid var(--line);
  padding: 5px 14px; border-radius: 999px; }

.hero-stage { position: relative; perspective: 1400px; }
.stage-card { border-radius: 22px; overflow: hidden; background: #0B3039; aspect-ratio: 16 / 10;
  box-shadow: 0 40px 90px rgba(14, 62, 72, .28), 0 0 0 1px rgba(14, 62, 72, .08);
  transform: rotateY(-14deg) rotateX(6deg); transform-origin: center;
  animation: stageIn 1.3s .3s var(--ease) both, float 7s 1.6s ease-in-out infinite; }
:dir(ltr) .stage-card { transform: rotateY(14deg) rotateX(6deg); }
.stage-card img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
@keyframes stageIn { from { opacity: 0; transform: rotateY(-30deg) rotateX(18deg) translateY(60px) scale(.92); } }
@keyframes float { 50% { translate: 0 -12px; } }
.float-note { position: absolute; background: var(--white); border-radius: 14px; padding: 12px 16px; font-size: .9rem;
  color: var(--deep); box-shadow: 0 16px 40px rgba(14, 62, 72, .16); display: flex; gap: 10px; align-items: center;
  max-width: 270px; line-height: 1.5; opacity: 0; animation: pop .7s var(--ease) forwards; }
.float-note i { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.float-note.n1 { bottom: -26px; inset-inline-start: -30px; animation-delay: 1.4s; }
.float-note.n2 { top: 18px; inset-inline-end: -26px; animation-delay: 2s; }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.9); } to { opacity: 1; transform: none; } }
.perch { position: absolute; width: 1px; height: 1px; }
#perchHero { top: 4px; inset-inline-start: 9%; }

/* ── صقر ── */
.saqr-fly { position: fixed; top: 0; left: 0; width: 120px; height: 120px; z-index: 25; pointer-events: none;
  will-change: transform; transition: opacity .4s; filter: drop-shadow(0 10px 14px rgba(14, 62, 72, .18)); }
.saqr-fly img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; }
.saqr-fly.up .f-up, .saqr-fly.down .f-down { opacity: 1; }
.saqr-fly.flip { scale: -1 1; }
.saqr-fly.hide { opacity: 0; }

/* ── الأقسام ── */
.sec-head { max-width: 760px; }
.sec-lead { color: var(--muted); font-size: 1.1rem; margin: 14px 0 0; max-width: 60ch; }
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ── هرم المشاكل ── */
.problems { padding: 110px 0 120px; }
.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; margin-top: 56px; align-items: start; }
.story-steps { list-style: none; margin: 0; padding: 0; }
.story-steps li { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding: 28px 0;
  opacity: .32; transition: opacity .5s var(--ease); }
.story-steps li.on { opacity: 1; }
.story-steps .pain { font-family: var(--f-head); font-weight: 300; font-size: 1.05rem; color: var(--muted); margin: 0 0 6px;
  position: relative; display: inline-block; width: fit-content; }
.story-steps .pain::after { content: ""; position: absolute; inset-inline-start: 0; top: 55%; height: 2px; width: 100%;
  background: var(--orange); transform: scaleX(0); transform-origin: var(--origin, right); transition: transform .7s .25s var(--ease); }
:dir(ltr) .story-steps .pain::after { --origin: left; }
.story-steps li.on .pain::after { transform: scaleX(1); }
.story-steps h3 { font-weight: 700; font-size: clamp(1.4rem, 2.3vw, 1.9rem); color: var(--deep); margin: 6px 0 10px; }
.story-steps p { margin: 0; color: var(--text); max-width: 46ch; }
.story-steps .who { margin-top: 14px; font-size: .9rem; color: var(--teal); }
.story-stage { position: sticky; top: 130px; }
#perchStory { top: 6px; inset-inline-start: 7%; z-index: 1; }
.story-frame { border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--mist);
  box-shadow: 0 30px 70px rgba(14, 62, 72, .18), 0 0 0 1px var(--line); position: relative; }
.story-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transition: clip-path 1s var(--ease), transform 1.2s var(--ease); clip-path: circle(150% at 50% 50%); }
.story-frame img.enter { clip-path: circle(0% at 50% 50%); transform: scale(1.08); }
.story-progress { height: 4px; background: var(--line); border-radius: 4px; margin-top: 18px; overflow: hidden; }
.story-progress span { display: block; height: 100%; width: 20%; background: var(--orange); transition: width .6s var(--ease); }

/* ── صقر الذكي ── */
.saqr { padding: 120px 0; background: radial-gradient(1200px 500px at 80% 0%, #E2F3F1 0%, transparent 60%),
  linear-gradient(180deg, var(--mist), var(--white)); position: relative; overflow: hidden; }
.saqr-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: center; }
.ai-list { list-style: none; padding: 0; margin: 28px 0 0; }
.ai-list li { padding: 14px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.ai-list .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--orange-soft); color: var(--orange-ink);
  display: grid; place-items: center; font-family: var(--f-head); font-weight: 700; }
.ai-list b { font-family: var(--f-head); font-weight: 500; color: var(--deep); display: block; }
.ai-list span { color: var(--muted); font-size: .96rem; }
.chat { background: var(--white); border-radius: 24px; box-shadow: 0 40px 90px rgba(14, 62, 72, .18), 0 0 0 1px var(--line);
  overflow: hidden; position: relative; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); position: relative; }
.chat-head img { width: 40px; height: 40px; border-radius: 50%; background: var(--mist); object-fit: cover; }
.chat-head b { font-family: var(--f-head); color: var(--deep); display: block; line-height: 1.2; }
.chat-head span { font-size: .82rem; color: var(--muted); }
.perch-chat { top: -6px; inset-inline-end: 34px; }
.chat-body { padding: 20px; min-height: 380px; display: flex; flex-direction: column; gap: 12px; }
.bubble { max-width: 88%; padding: 12px 16px; border-radius: 16px; font-size: .96rem; line-height: 1.65;
  opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.bubble.in { opacity: 1; transform: none; }
.bubble.q { align-self: flex-start; background: var(--teal); color: #fff; border-end-start-radius: 4px; }
.bubble.a { align-self: flex-end; background: var(--mist); color: var(--text); border-end-end-radius: 4px; width: 88%; }
.bubble table { width: 100%; border-collapse: collapse; font-size: .88rem; margin: 6px 0 8px; }
.bubble td, .bubble th { padding: 6px 4px; border-bottom: 1px solid var(--line); text-align: start; }
.bubble th { color: var(--muted); font-weight: 500; }
.bubble tr { opacity: 0; transition: opacity .4s; }
.bubble tr.in { opacity: 1; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .2; } }
.chat-input { margin: 0 20px 20px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; color: var(--muted);
  display: flex; align-items: center; justify-content: space-between; font-size: .95rem; }
.chat-input i { width: 34px; height: 34px; border-radius: 10px; background: var(--teal); }

/* ── الأرقام ── */
.numbers { padding: 70px 0; background: var(--deep); color: #fff; }
.nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.nums div { text-align: center; }
.nums b { display: block; font-family: var(--f-head); font-weight: 700; font-size: clamp(2.2rem, 4vw, 3.2rem); color: #fff; line-height: 1.1; }
.nums span { color: #A9CFD2; font-size: .98rem; }
.nums b span { color: inherit; font-size: inherit; }   /* الرقم نفسه بحجم العنوان — قاعدة الوصف كانت تصغّره وتترك «%» وحدها كبيرة */
.nums div > span { display: block; margin-top: 8px; }

/* ── لماذا ── */
.trust { padding: 110px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; margin-top: 44px; }
.trust-grid div { padding: 22px 0; border-top: 2px solid var(--line); transition: border-color .4s; }
.trust-grid div:hover { border-top-color: var(--orange); }
.trust-grid b { font-family: var(--f-head); font-weight: 500; font-size: 1.15rem; color: var(--deep); display: block; }
.trust-grid span { color: var(--muted); font-size: .98rem; }
.more { margin: 40px 0 0; font-family: var(--f-head); font-weight: 300; font-size: 1.3rem; color: var(--teal); max-width: 52ch; }

/* ── ابدأ ── */
.start { padding: 110px 0; background: linear-gradient(180deg, var(--mist), var(--sky)); }
.start-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: start; }
.start-copy { position: relative; }
.steps { list-style: none; counter-reset: s; margin: 36px 0 0; padding: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 56px 1fr; gap: 4px 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(s); grid-row: span 2; font-family: var(--f-head); font-weight: 300; font-size: 2.4rem; line-height: 1; color: var(--orange); }
.steps b { font-family: var(--f-head); font-weight: 500; font-size: 1.12rem; color: var(--deep); }
.steps span { color: var(--muted); }
.perch-start { top: 72px; inset-inline-end: 4%; }

.quote { background: var(--white); border-radius: 24px; padding: 30px; box-shadow: 0 30px 70px rgba(14, 62, 72, .14); }
.quote h3 { font-weight: 700; color: var(--deep); font-size: 1.4rem; }
.form-note { margin: 4px 0 18px; color: var(--muted); font-size: .95rem; }
.quote label { display: block; margin-bottom: 14px; font-size: .9rem; color: var(--muted); }
.quote label span { display: block; margin-bottom: 5px; }
.quote input, .quote select { width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--mist);
  border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; transition: border-color .2s, box-shadow .2s; }
.quote input:focus, .quote select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(18, 94, 110, .14); }
.quote input[aria-invalid="true"], .quote select[aria-invalid="true"] { border-color: #C2410C; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.interest { border: 0; padding: 0; margin: 4px 0 18px; }
.interest legend { font-size: .9rem; color: var(--muted); margin-bottom: 8px; }
#interestBoxes { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: .9rem; background: var(--white); transition: background .2s, color .2s; }
.chip input:checked + span { background: var(--teal); border-color: var(--teal); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--orange); outline-offset: 2px; }
.form-msg { margin: 12px 0 0; font-size: .95rem; min-height: 1.5em; }
.form-msg.ok { color: var(--teal); }
.form-msg.err { color: #B42318; }

.foot { padding: 32px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.foot-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot-row p { margin: 0; }
.foot .copy { margin-inline-start: auto; }

/* ── الشاشات الأصغر ── */
@media (max-width: 1000px) {
  .nav { display: none; }
  .hero-grid, .story, .saqr-grid, .start-grid { grid-template-columns: 1fr; }
  .hero { padding-bottom: 80px; }
  .stage-card, :dir(ltr) .stage-card { transform: none; }
  .float-note.n1 { inset-inline-start: 8px; } .float-note.n2 { inset-inline-end: 8px; }
  .story-stage { position: sticky; top: 60px; order: -1; z-index: 2; background: var(--white); padding: 14px 0 12px; box-shadow: 0 18px 22px -14px rgba(14, 62, 72, .14); }
  .story-progress { margin-top: 12px; }
  .story-steps li { min-height: 46vh; }
  .nums { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .saqr-fly { width: 74px; height: 74px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .top-actions .btn { display: none; }
  .trust-grid, .row2 { grid-template-columns: 1fr; }
  .float-note { max-width: 210px; font-size: .82rem; }
  .quote { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .h-split .w, .reveal, .bubble, .bubble tr, .float-note { opacity: 1 !important; transform: none !important; }
  .saqr-fly { display: none; }
}

/* ═══════════ النسخة الثالثة: هويةٌ تنبض ═══════════ */
:root { --mint: #2BB8A0; --mint-soft: #DDF6F0; --sun: #FFB547; --coral: #E8604C; }

/* سماءٌ حيّة في الافتتاح: ألوانٌ أغنى وتتنفّس */
.hero { background: linear-gradient(180deg, #FFFFFF 0%, #EEF9F6 60%, #E6F5F1 100%); padding-bottom: 150px; }
.sky span:nth-child(1) { background: #BDEBDF; opacity: .7; }
.sky span:nth-child(2) { background: #FFD9B8; opacity: .65; }
.sky span:nth-child(3) { background: #CDE7F5; }
.h-split .w:last-child { background: linear-gradient(90deg, var(--teal-2), var(--mint)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.btn-ask { gap: 10px; padding-inline: 18px 24px; }
.btn-ask img { width: 28px; height: 28px; border-radius: 50%; background: var(--mint-soft); }

/* نبض المدرسة */
.pulse { position: absolute; inset-inline: 0; bottom: 0; height: 120px; pointer-events: none; }
.pulse svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pulse-line { fill: none; stroke: url(#pg); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: trace 3.2s .8s var(--ease) forwards, glow 2.3s 4s ease-in-out infinite; }
@keyframes trace { to { stroke-dashoffset: 0; } }
@keyframes glow { 50% { stroke-width: 4; filter: drop-shadow(0 0 6px rgba(43, 184, 160, .6)); } }
.pulse-feed { position: absolute; inset: 0; overflow: hidden; }
.beat { position: absolute; top: var(--y); left: 100%; white-space: nowrap; font-size: .84rem; color: var(--deep);
  background: rgba(255, 255, 255, .92); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px 4px 10px;
  box-shadow: 0 6px 18px rgba(14, 62, 72, .08); display: inline-flex; align-items: center; gap: 8px;
  animation: travel 14s linear forwards; }
.beat::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px var(--mint-soft); }
.beat.b2::before { background: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.beat.b3::before { background: var(--teal-2); box-shadow: 0 0 0 4px var(--sky); }
@keyframes travel { from { transform: translateX(0); } to { transform: translateX(calc(-100vw - 100%)); } }

/* مسار الحالة */
.case { padding: 110px 0; background: linear-gradient(180deg, var(--white), var(--mint-soft) 140%); }
.case-line { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; counter-reset: c; position: relative; }
.case-line li { counter-increment: c; background: var(--white); border-radius: 20px; padding: 26px 24px 24px; position: relative;
  box-shadow: 0 18px 44px rgba(14, 62, 72, .08); border: 1px solid var(--line); }
.case-line li::before { content: counter(c); position: absolute; top: -16px; inset-inline-start: 22px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--f-head); font-weight: 700; color: #fff; background: var(--teal-2); box-shadow: 0 0 0 5px var(--white); }
.case-line li:nth-child(2)::before { background: var(--coral); }
.case-line li:nth-child(3)::before { background: var(--orange); }
.case-line li:nth-child(4)::before { background: var(--sun); color: var(--deep); }
.case-line li:nth-child(5)::before, .case-line li:nth-child(6)::before { background: var(--mint); }
.case-line .when { font-size: .85rem; color: var(--muted); }
.case-line h3 { font-weight: 700; margin: 4px 0 8px; font-size: 1.2rem; }
.case-line p { margin: 0; color: var(--text); font-size: .98rem; }

.chat-demo { margin: -8px 20px 8px; font-size: .78rem; color: var(--muted); }
.saqr-copy .btn { margin-top: 26px; }

/* الأرقام */
.numbers { background: radial-gradient(900px 300px at 15% 0%, rgba(43, 184, 160, .25), transparent 70%),
  radial-gradient(700px 260px at 90% 100%, rgba(240, 127, 42, .2), transparent 70%), var(--deep); }
.nums-head { text-align: center; color: #BFE3DE; margin: 0 0 30px; font-family: var(--f-head); font-weight: 300; font-size: 1.1rem; }

/* كل المنصة */
.modules { padding: 110px 0; }
.mod-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 40px 0 26px; }
.mod-tabs button { font: inherit; font-family: var(--f-head); font-size: .95rem; padding: 9px 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--white); color: var(--deep); transition: background .25s, color .25s, border-color .25s; }
.mod-tabs button:hover { border-color: var(--mint); }
.mod-tabs button[aria-selected="true"] { background: var(--deep); border-color: var(--deep); color: #fff; }
.mod-panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center;
  background: linear-gradient(135deg, var(--mist), var(--white)); border: 1px solid var(--line); border-radius: 28px; padding: 36px; }
.mod-copy h3 { font-weight: 700; font-size: 1.6rem; }
.mod-copy p { color: var(--muted); margin: 8px 0 18px; }
.mod-copy ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.mod-copy li { font-size: .95rem; color: var(--deep); padding-inline-start: 18px; position: relative; }
.mod-copy li::before { content: ""; position: absolute; inset-inline-start: 0; top: .7em; width: 8px; height: 8px; border-radius: 3px; background: var(--mint); }
.mod-shot { border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 10; box-shadow: 0 26px 60px rgba(14, 62, 72, .18); }
.mod-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.mod-panel.swap .mod-copy li { animation: pop .5s var(--ease) both; animation-delay: var(--d); }
.mod-panel.swap .mod-shot img { animation: shotIn .8s var(--ease) both; }
@keyframes shotIn { from { clip-path: inset(0 0 100% 0); transform: scale(1.05); } to { clip-path: inset(0); transform: none; } }

/* الباقات */
.plans { padding: 110px 0; background: linear-gradient(180deg, var(--mist), var(--white)); }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 46px; align-items: stretch; }
.plan { background: var(--white); border-radius: 24px; padding: 30px 26px; border: 1px solid var(--line); display: flex; flex-direction: column;
  box-shadow: 0 18px 44px rgba(14, 62, 72, .07); position: relative; overflow: hidden; }
.plan::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 6px; background: var(--tier); }
.plan-basic { --tier: linear-gradient(90deg, #7FA7AE, #A9C6CB); }
.plan-silver { --tier: linear-gradient(90deg, var(--teal-2), var(--mint)); box-shadow: 0 30px 70px rgba(18, 94, 110, .18); border-color: #BFE3DE; }
.plan-gold { --tier: linear-gradient(90deg, var(--orange), var(--sun)); }
.plan h3 { font-weight: 700; font-size: 1.5rem; }
.plan > p { color: var(--muted); margin: 6px 0 16px; font-size: .98rem; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.plan li { padding: 7px 0; border-top: 1px dashed var(--line); font-size: .95rem; display: flex; gap: 10px; align-items: baseline; }
.plan li::before { content: "✓"; color: var(--mint); font-weight: 700; }
.compare { margin-top: 30px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.compare summary { cursor: pointer; padding: 16px 22px; font-family: var(--f-head); color: var(--teal); }
.compare-wrap { overflow-x: auto; padding: 0 12px 16px; }
.compare table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 520px; }
.compare th, .compare td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: start; }
.compare thead th { position: sticky; top: 0; background: var(--white); font-family: var(--f-head); color: var(--deep); }
.compare small { color: var(--muted); font-size: .76rem; }
.compare .yes { color: var(--mint); font-weight: 700; } .compare .no { color: #B8C9CC; }

/* زرّ واتساب العائم */
.wa-launch { position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 40; display: flex; align-items: center; gap: 10px;
  text-decoration: none; background: var(--white); border-radius: 999px; padding: 10px 20px 10px 12px; font-family: var(--f-head); font-weight: 500;
  color: var(--deep); box-shadow: 0 14px 34px rgba(14, 62, 72, .22), 0 0 0 1px var(--line); transition: transform .25s var(--ease); }
:dir(rtl) .wa-launch { padding: 10px 12px 10px 20px; }
.wa-launch .wa-ico { width: 40px; height: 40px; padding: 7px; border-radius: 50%; background: #25D366; color: #fff; flex: none; }
.wa-launch:hover { transform: translateY(-3px); }
.wa-launch:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }
[data-wa][hidden] { display: none !important; }
.btn-ask .wa-ico { width: 24px; height: 24px; color: #128C4B; flex: none; }
@keyframes bob { 50% { transform: translateY(-4px) rotate(-3deg); } }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(43, 184, 160, 0); } 100% { box-shadow: 0 0 0 0 rgba(43, 184, 160, 0); } }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 1000px) {
  .case-line { grid-template-columns: 1fr 1fr; }
  .mod-panel { grid-template-columns: 1fr; padding: 22px; }
  .plan-grid { grid-template-columns: 1fr; }
  .hero { padding-bottom: 150px; }
}
@media (max-width: 600px) {
  .case-line, .mod-copy ul { grid-template-columns: 1fr; }
  .wa-launch span { display: none; }
  .wa-launch, :dir(rtl) .wa-launch { padding: 6px; bottom: 14px; inset-inline-end: 14px; }
  .wa-launch .wa-ico { width: 46px; height: 46px; padding: 9px; }
  .beat { font-size: .78rem; }
}
@media (prefers-reduced-motion: reduce) {
  .pulse-line { stroke-dashoffset: 0; }
  .beat { position: relative; inset: auto; display: inline-flex; margin: 0 6px; }
  .pulse-feed { display: flex; align-items: center; justify-content: center; }
}


/* نقاط هبوط صقر في الأقسام الجديدة: في الفراغ بجانب العنوان */
.case .wrap, .modules .wrap, .plans .wrap { position: relative; }
.perch-sec { top: 118px; inset-inline-end: 3%; }
.saqr-fly { transition: opacity .4s; }
.saqr-fly img { transition: opacity .06s linear; }
.saqr-fly .f-body { position: absolute; inset: 0; transform-origin: 50% 60%; }
.saqr-fly.flip .f-body { scale: -1 1; }
.saqr-fly.flip { scale: 1 1; }
.saqr-fly.sit .f-sit { opacity: 1; }
@media (max-width: 1000px) { .perch-sec { top: 64px; } }
@media (max-width: 700px) { .saqr-fly { width: 56px; height: 56px; } }
@media (max-width: 1000px) { .perch-sec, .perch-start { top: -26px; inset-inline-end: 8%; } }

/* ── v4: معرض صور لكل مجال + جوال في الواجهة ── */
.mod-media { min-width: 0; }
.mod-thumbs { display: flex; gap: 10px; margin-top: 14px; }
.mod-thumbs button { flex: 1 1 0; min-width: 0; max-width: 150px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden;
  cursor: pointer; background: none; aspect-ratio: 16 / 10; opacity: .62; transition: opacity .2s, border-color .2s, transform .2s; }
.mod-thumbs button img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.mod-thumbs button:hover { opacity: 1; transform: translateY(-2px); }
.mod-thumbs button[aria-pressed="true"] { opacity: 1; border-color: var(--mint); }
.mod-thumbs button:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }
.hero-phone { position: absolute; inset-inline-end: -4%; bottom: -9%; width: 23%; aspect-ratio: 9 / 18.5; border-radius: 26px;
  border: 7px solid #0d2f36; background: #0d2f36; overflow: hidden; box-shadow: 0 24px 50px rgba(8, 40, 48, .35); z-index: 3; }
.hero-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
@media (max-width: 760px) { .hero-phone { width: 30%; inset-inline-end: -2%; bottom: -6%; border-width: 5px; border-radius: 18px; } }

/* ── أسئلة شائعة ── */
.faq { padding: 96px 0; background: #fff; }
.faq-list { max-width: 860px; margin-top: 36px; border-top: 1px solid rgba(14, 62, 72, .12); }
.faq-item { border-bottom: 1px solid rgba(14, 62, 72, .12); }
.faq-item summary { cursor: pointer; list-style: none; padding: 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--mint); flex: none; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary h3 { margin: 0; font-family: var(--f-head); font-size: 1.12rem; font-weight: 500; color: var(--deep); }
.faq-item summary:focus-visible { outline: 3px solid var(--mint); outline-offset: 4px; border-radius: 6px; }
.faq-item p { margin: 0; padding: 0 0 22px; max-width: 70ch; line-height: 1.9; color: #3d5a61; }
@media (max-width: 760px) { .faq { padding: 64px 0; } .faq-item summary h3 { font-size: 1.02rem; } }

/* ── سياسة الخصوصية وروابطها ── */
.foot-link, .foot a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.form-consent { margin: 12px 0 0; font-size: .86rem; color: #5b7479; line-height: 1.7; }
.form-consent a { color: var(--teal-2); }
.legal-page { background: #fff; }
.legal-nav { display: flex; gap: 18px; align-items: center; font-family: var(--f-head); font-size: .95rem; }
.legal-nav a { color: var(--deep); text-decoration: none; }
.legal-nav a:hover { text-decoration: underline; }
.legal { max-width: 780px; padding-top: 132px; padding-bottom: 88px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.7rem); }
.legal-date { color: #6b858a; margin: 10px 0 22px; font-size: .95rem; }
.legal-lead { font-size: 1.12rem; line-height: 1.9; color: #2c4a51; margin: 0 0 12px; }
.legal section { margin-top: 38px; }
.legal h2 { font-size: 1.3rem; margin-bottom: 12px; }
.legal p, .legal li { line-height: 1.95; color: #33525a; }
.legal ul { margin: 0; padding-inline-start: 22px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--teal-2); }

/* ── الجوال: الصورة بجانب نصّها (2026-11-14) ── */
.story-steps .st { display: flex; flex-direction: column; }
@media (max-width: 760px) {
  /* الافتتاح: النص في عمود وجوال وليّ الأمر قبالته، ثم الأزرار، ثم لوحة المدير بعرض الشاشة */
  .hero { padding-top: 34px; }
  .hero-grid { grid-template-columns: minmax(0, 11fr) minmax(0, 8fr); column-gap: 14px; row-gap: 0; align-items: start; }
  .hero-copy, .hero-stage { display: contents; }
  .hero-copy .kicker { grid-column: 1; grid-row: 1; margin-top: 6px; }
  .hero-copy h1 { grid-column: 1; grid-row: 2; max-width: none; font-size: clamp(1.5rem, 7.2vw, 2rem); line-height: 1.45; }
  .hero-copy .lead { grid-column: 1; grid-row: 3; font-size: .97rem; margin: 12px 0 0; }
  .hero-phone { position: relative; inset: auto; grid-column: 2; grid-row: 1 / span 3; align-self: center; width: 100%;
    border-width: 5px; border-radius: 20px; animation: phoneIn 1s .25s var(--ease) both; }
  .hero-ctas { grid-column: 1 / -1; grid-row: 4; margin-top: 26px; }
  .chips { grid-column: 1 / -1; grid-row: 5; margin-top: 20px; }
  .stage-card { grid-column: 1 / -1; grid-row: 6; margin-top: 30px; border-radius: 16px; }
  .hero .float-note { display: none; }
  #perchHero { top: -14px; inset-inline-start: auto; inset-inline-end: 14%; }

  /* «هل هذه مدرستك؟»: الصورة مثبّتة أعلى الشاشة ونصّ كل خطوة يقف تحتها مباشرة ما دامت صورته معروضة */
  .story { --stage-h: calc((100vw - 32px) * .625 + 42px); margin-top: 28px; }
  .story-steps li { display: block; min-height: 66vh; padding: 0; opacity: 1; }
  .story-steps .st { position: sticky; top: calc(60px + var(--stage-h)); padding: 14px 0 0; transition: opacity .4s var(--ease); }
  .story-steps li:not(.on) .st { opacity: .2; }
  .story-steps h3 { font-size: 1.3rem; margin: 4px 0 8px; }
  .story-steps .who { margin-top: 10px; }
  /* سطر المشكلة قد ينكسر سطرين على الجوال: خطّ الشطب يمرّ على كل سطر لا بينهما */
  .story-steps .st { display: block; }
  .story-steps .pain { display: inline; -webkit-box-decoration-break: clone; box-decoration-break: clone;
    background: linear-gradient(var(--orange), var(--orange)) no-repeat right 58% / 0 2px; transition: background-size .7s .25s var(--ease); }
  :dir(ltr) .story-steps .pain { background-position: left 58%; }
  .story-steps .pain::after { display: none; }
  .story-steps li.on .pain { background-size: 100% 2px; }
  .story-steps .who { display: block; }

  /* كل المنصة: الصورة فوق نصّها مباشرة تحت أزرار المجالات */
  .mod-media { order: -1; }
}
@keyframes phoneIn { from { opacity: 0; transform: translateY(40px) scale(.94); } }

/* ── العرض المتوسط (جوال بوضع «موقع سطح المكتب»، والأجهزة اللوحية): يبقى التخطيط كسطح المكتب، الصورة قبالة النص ── */
@media (min-width: 761px) and (max-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 28px; }
  .hero-copy h1 { font-size: clamp(1.9rem, 4.6vw, 2.9rem); }
  .hero-copy .lead { font-size: 1.02rem; margin: 16px 0 24px; }
  .hero .float-note { max-width: 200px; font-size: .8rem; padding: 9px 12px; }
  .story { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; }
  .story-stage { order: 0; top: calc(50vh - 18vw - 16px); z-index: auto; background: none; padding: 0; box-shadow: none; }
  .story-steps li { min-height: min(62vh, 560px); }
  .mod-media { order: -1; }
}


/* ── العرض المتوسط والشاشة طولية (جوال بوضع «موقع سطح المكتب»، ولوحي واقف): عمودان يتركان الصورة صغيرة وفراغًا كبيرًا،
      فتأخذ الصورة عرض الشاشة وتثبت أعلاها ونصّ كل خطوة تحتها، كما في الجوال (2026-11-14) ── */
@media (min-width: 761px) and (max-width: 1000px) and (orientation: portrait) {
  .story { grid-template-columns: 1fr; gap: 0; --stage-h: calc((100vw - 32px) * .625 + 46px); margin-top: 32px; }
  .story-stage { order: -1; top: 60px; z-index: 2; background: var(--white); padding: 14px 0 12px; box-shadow: 0 18px 22px -14px rgba(14, 62, 72, .14); }
  .story-steps li { display: block; min-height: min(66vh, 600px); padding: 0; opacity: 1; }
  .story-steps .st { display: block; position: sticky; top: calc(60px + var(--stage-h)); padding: 22px 0 0; transition: opacity .4s var(--ease); }
  .story-steps li:not(.on) .st { opacity: .3; }
  .story-steps h3 { font-size: 1.7rem; }
  .story-steps p { max-width: 60ch; font-size: 1.08rem; }
  .story-steps .who { display: block; }
}

/* بطاقة الباقة تعرض أبرز ما فيها فقط: سطرٌ يقول كم بقي ويفتح المقارنة الكاملة */
.plan-more { display: block; margin: 2px 0 18px; font-size: .92rem; color: var(--teal); text-decoration: underline; text-underline-offset: 4px; }
.plan-more:hover { color: var(--deep); }
#compare { scroll-margin-top: 90px; }
