/* ============================================================
   مراجعات الفصل الدراسي الأول | علّامة
   الفكرة: «دفتر المراجعة» — ورق مربعات، وقلم تظليل أصفر، وحبر أزرق،
   والدروس المبعترة بتترتّب وتبقى خطة. كل حركة بتخدم جملة في النص.
   Mobile-first على 390px
   ============================================================ */

:root {
  --ink: #0B2545;
  --text: #33415C;
  --muted: #5A6B86;
  --line: #E1EAF6;
  --bg: #F5F9FF;
  --paper: #FFFFFF;

  --brand: #1E9DFF;      /* أزرق الشعار: للرسم والمساحات الكبيرة */
  --blue: #0B6BD3;       /* الأزرق الغامق للأزرار والنصوص (تباين 5.2 مع الأبيض) */
  --blue-d: #0956AC;
  --blue-50: #EAF4FF;
  --blue-100: #D3E8FF;
  --yellow: #FFBF15;     /* أصفر الشعار: لمسة مساعدة وقلم التظليل */
  --yellow-50: #FFF7DC;
  --hl: rgba(255, 191, 21, .5);
  --wa: #1DA851;
  --err: #C62828;

  --r: 18px;
  --sh-1: 0 1px 2px rgba(11, 37, 69, .05), 0 6px 18px -6px rgba(11, 37, 69, .10);
  --sh-2: 0 2px 6px rgba(11, 37, 69, .06), 0 22px 44px -16px rgba(11, 37, 69, .24);

  --f-head: "Alexandria", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --f-body: "IBM Plex Sans Arabic", system-ui, "Segoe UI", Tahoma, sans-serif;
  --f-hand: "Aref Ruqaa", "IBM Plex Sans Arabic", serif;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.5, .64, 1);
  --head-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 8px); }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
html:has(dialog[open]) { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--f-head); color: var(--ink); line-height: 1.4; margin: 0; font-weight: 800; }
p { margin: 0; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 40px, 1160px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }

.skip {
  position: fixed; top: 10px; right: 10px; z-index: 100;
  background: var(--ink); color: #fff; padding: .6em 1.1em; border-radius: 12px;
  transform: translateY(-160%); transition: transform .2s;
}
.skip:focus { transform: none; }

/* شريط التقدم: قلم تظليل بيمشي مع القراية */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--yellow); transform-origin: right; transform: scaleX(var(--p, 0)); }

/* ---------- الأزرار ---------- */
.btn {
  --bg: var(--blue); --fg: #fff;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 50px; padding: .7em 1.45em;
  border: 0; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-family: var(--f-head); font-weight: 700; font-size: 1rem; line-height: 1.35;
  text-decoration: none; text-align: center; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .2s var(--ease), box-shadow .25s, background-color .2s;
}
.btn--primary { box-shadow: 0 10px 22px -10px rgba(11, 107, 211, .75), inset 0 -2px 0 rgba(0, 0, 0, .14); }
.btn--primary:hover { --bg: var(--blue-d); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.btn--lg { min-height: 58px; font-size: 1.05rem; padding-inline: 1.6em; }
.btn--sm { min-height: 44px; font-size: .92rem; padding: .5em 1.15em; }
.btn--block { width: 100%; }
.btn--ghost { --bg: #fff; --fg: var(--blue); box-shadow: inset 0 0 0 2px var(--blue-100); }
.btn--ghost:hover { --bg: var(--blue-50); }
.btn--wa { --bg: #fff; --fg: var(--ink); box-shadow: inset 0 0 0 2px rgba(29, 168, 81, .4), var(--sh-1); }
.btn--wa:hover { --bg: #F1FBF4; transform: translateY(-2px); }
.btn--wa .ico { color: var(--wa); }
.btn[disabled] { opacity: .7; cursor: progress; }
.ico { width: 1.3em; height: 1.3em; flex: none; }
.btn:hover .ico--nudge { transform: translateX(-4px); }
.ico--nudge { transition: transform .25s var(--ease); }
.btn--shine::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .38) 50%, transparent 70%);
  transform: translateX(130%);
  animation: shine 5s 3.4s infinite;
}
@keyframes shine { 0% { transform: translateX(130%); } 16%, 100% { transform: translateX(-130%); } }

/* ---------- الهيدر ---------- */
.top {
  position: sticky; top: 0; z-index: 50; height: var(--head-h);
  display: flex; align-items: center;
  transition: background-color .3s, box-shadow .3s;
}
.top.is-stuck { background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); box-shadow: 0 1px 0 var(--line); }
.top__in { display: flex; align-items: center; justify-content: space-between; }
.brand { display: block; border-radius: 8px; }
.brand img { height: 40px; width: auto; }
.top__cta { display: none; }

/* ---------- عناصر النص ---------- */
mark { background: none; color: inherit; }
.hl {
  background-image: linear-gradient(var(--hl), var(--hl));
  background-repeat: no-repeat;
  background-position: 100% 92%;
  background-size: 100% .44em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding-inline: .06em;
  border-radius: 3px;
}
.js .hl { background-size: 0% .44em; transition: background-size 1.1s var(--ease) .35s; }
.js .hero.on .hl, .js .in .hl { background-size: 100% .44em; }

.strike { position: relative; white-space: nowrap; transition: color .5s .6s; }
.strike::after {
  content: ""; position: absolute; inset-inline: -3px; top: 54%; height: 3px; border-radius: 3px;
  background: var(--blue); transform: rotate(-4deg) scaleX(1); transform-origin: right;
}
.js .strike::after { transform: rotate(-4deg) scaleX(0); transition: transform .6s var(--ease) .5s; }
.js .in .strike { color: var(--muted); }
.js .in .strike::after { transform: rotate(-4deg) scaleX(1); }

.squeeze { display: inline-block; }
.js .squeeze { transform: scaleX(.72); transition: transform 1s var(--spring) .45s; }
.js .in .squeeze { transform: none; }

.focus { position: relative; display: inline-block; padding-inline: .18em; }
.focus i {
  position: absolute; inset: -.02em -.04em .04em; pointer-events: none;
  --c: var(--brand); --s: .32em; --w: 3px;
  background:
    linear-gradient(var(--c), var(--c)) top right / var(--s) var(--w),
    linear-gradient(var(--c), var(--c)) top right / var(--w) var(--s),
    linear-gradient(var(--c), var(--c)) top left / var(--s) var(--w),
    linear-gradient(var(--c), var(--c)) top left / var(--w) var(--s),
    linear-gradient(var(--c), var(--c)) bottom right / var(--s) var(--w),
    linear-gradient(var(--c), var(--c)) bottom right / var(--w) var(--s),
    linear-gradient(var(--c), var(--c)) bottom left / var(--s) var(--w),
    linear-gradient(var(--c), var(--c)) bottom left / var(--w) var(--s);
  background-repeat: no-repeat;
}
.js .focus i { opacity: 0; transform: scale(1.45); transition: transform .8s var(--spring) .5s, opacity .4s .5s; }
.js .in .focus i { opacity: 1; transform: none; }

/* ---------- 01 الشاشة الأولى ---------- */
.hero { position: relative; isolation: isolate; padding: 10px 0 36px; overflow: clip; }
.hero__bg { position: absolute; inset: calc(var(--head-h) * -1) 0 0; z-index: -1; pointer-events: none; }
.paper {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(30, 157, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 157, 255, .08) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 95% 75% at 50% 28%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 95% 75% at 50% 28%, #000 25%, transparent 78%);
}
.blob { position: absolute; border-radius: 50%; animation: drift 20s ease-in-out infinite alternate; }
.blob--b { width: 520px; height: 520px; top: -180px; left: -260px; background: radial-gradient(closest-side, rgba(30, 157, 255, .26), transparent); }
.blob--y { width: 420px; height: 420px; bottom: -120px; right: -220px; background: radial-gradient(closest-side, rgba(255, 191, 21, .30), transparent); animation-duration: 24s; }
@keyframes drift { to { transform: translate(50px, 40px) scale(1.12); } }
.doodle {
  position: absolute; left: var(--x); top: var(--y);
  font-family: var(--f-head); font-weight: 800; font-size: 26px; line-height: 1;
  color: var(--brand); opacity: .2;
  transform: rotate(var(--r));
  animation: float var(--t, 12s) ease-in-out infinite alternate;
}
.doodle--y { color: #E8A800; opacity: .32; }
@keyframes float { to { transform: translateY(-16px) rotate(calc(var(--r) * -1)); } }

.hero__grid { display: grid; gap: 40px; }
.hero__copy { position: relative; }
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .8rem; line-height: 1.5; }
.eyebrow__main {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .4em .95em; border-radius: 999px;
  background: #fff; color: var(--blue); font-weight: 700;
  box-shadow: var(--sh-1), inset 0 0 0 1px var(--line);
}
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); animation: ping 2.4s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255, 191, 21, .7); } 70%, 100% { box-shadow: 0 0 0 9px rgba(255, 191, 21, 0); } }
.eyebrow__sub { color: var(--muted); font-weight: 600; }
.hero__title { margin-top: 16px; font-size: clamp(1.8rem, 1.15rem + 3.3vw, 3.35rem); line-height: 1.45; text-wrap: balance; }
.hero__sub { margin-top: 10px; font-family: var(--f-head); font-weight: 700; font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem); color: var(--blue); }
.heart { display: inline-block; }
.js .hero.on .heart { animation: beat 1.4s ease-in-out 1.5s 2; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.3); } 30% { transform: scale(.95); } 45% { transform: scale(1.18); } 60% { transform: scale(1); } }
.hero__desc { margin-top: 12px; font-size: 1.02rem; line-height: 1.85; max-width: 34em; }
.hero__cta { margin-top: 22px; display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.hero__from { font-size: .92rem; color: var(--muted); text-align: center; }
.hero__from b { color: var(--ink); font-family: var(--f-head); }

/* حركة دخول نص أول الشاشة: CSS بس، فما بتستناش الـ JS ولا الخطوط */
.js .hero__copy > * { animation: rise .7s var(--ease) both; }
.js .hero__copy > :nth-child(2) { animation-delay: .07s; }
.js .hero__copy > :nth-child(3) { animation-delay: .16s; }
.js .hero__copy > :nth-child(4) { animation-delay: .23s; }
.js .hero__copy > :nth-child(5) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* لوحة «خطة المراجعة» */
.hero__art { position: relative; display: grid; justify-items: center; padding: 50px 6px 30px 22px; }
.board { position: relative; width: min(100%, 410px); }
.board__card {
  position: relative; z-index: 1;
  background: #fff; border-radius: 22px; border: 1px solid var(--line);
  box-shadow: var(--sh-2);
  padding: 20px 18px 18px; padding-inline-start: 36px;
}
/* ثقوب الكشكول على الطرف */
.board__card::before {
  content: ""; position: absolute; inset-block: 18px; inset-inline-start: 12px; width: 12px;
  background: radial-gradient(circle, var(--bg) 0 4px, var(--blue-100) 4.5px 5.5px, transparent 6px) 0 0 / 12px 24px repeat-y;
}
.board__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.board__title { font-family: var(--f-head); font-weight: 800; font-size: 1.02rem; color: var(--ink); }
.board__tab { font-size: .72rem; font-weight: 700; color: var(--ink); background: var(--yellow); padding: .25em .8em; border-radius: 999px; }
.notes { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 9px; }
.note {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line);
}
.note__dot { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.note__txt { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.note__txt b { font-family: var(--f-head); font-weight: 700; color: var(--ink); font-size: .9rem; }
.note__txt small { font-size: .76rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note__chk { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--blue-100); display: grid; place-items: center; background: #fff; color: #fff; }
.note__chk svg { width: 14px; height: 14px; }
.note:not(.note--now) .note__chk { background: var(--blue); border-color: var(--blue); }
.note--now .note__chk { border-color: var(--yellow); animation: ping 2s infinite 3.6s; }
.note--now .note__chk svg { opacity: 0; }
.board__foot { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: .76rem; color: var(--muted); }
.board__foot b { font-family: var(--f-head); color: var(--ink); white-space: nowrap; }
.bar { flex: 1; height: 8px; border-radius: 99px; background: var(--blue-50); overflow: hidden; }
.bar > span { display: block; width: 75%; height: 100%; border-radius: inherit; background: linear-gradient(270deg, var(--brand), var(--blue)); transform-origin: right; }
.board__hand {
  position: absolute; z-index: 2; top: -40px; left: 12px;
  font-family: var(--f-hand); font-weight: 700; font-size: 1.7rem; line-height: 1.2; color: var(--blue);
  transform: rotate(-6deg);
}
.board__arrow { position: absolute; z-index: 2; top: -4px; left: -20px; width: 40px; height: 77px; fill: none; stroke: var(--blue); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.board__chip {
  position: absolute; z-index: 2; bottom: -16px; right: 22px;
  display: inline-flex; align-items: center; gap: .5em;
  padding: .5em 1em; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: .78rem; font-weight: 600;
  box-shadow: var(--sh-2);
  animation: bob 5s ease-in-out infinite;
}
.board__chip .ico { width: 1.15em; height: 1.15em; color: var(--yellow); }
@keyframes bob { 50% { transform: translateY(-6px); } }

/* البداية: الدروس مبعترة زي ورق لاصق، وبعدين بتطير لمكانها في الخطة */
.js .board:not(.is-play) .note { transform: var(--from); background: var(--sticky); box-shadow: 0 14px 26px -12px rgba(11, 37, 69, .35); border-color: transparent; }
.js .board .note__chk { background: #fff; border-color: var(--blue-100); }
.js .board .note__chk use { stroke-dasharray: 30; stroke-dashoffset: 30; }
.js .board .bar > span { transform: scaleX(0); }
.js .board .board__hand { clip-path: inset(0 0 0 100%); }
.js .board .board__arrow path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .board .board__chip { opacity: 0; translate: 0 10px; }

.board.is-play .note {
  transition:
    transform .95s var(--spring) calc(.35s + var(--i) * .13s),
    background-color .5s ease calc(.75s + var(--i) * .13s),
    box-shadow .5s ease calc(.6s + var(--i) * .13s),
    border-color .5s ease calc(.75s + var(--i) * .13s);
}
.js .board.is-play .note:not(.note--now) .note__chk { background: var(--blue); border-color: var(--blue); transition: background-color .3s calc(1.75s + var(--i) * .28s), border-color .3s calc(1.75s + var(--i) * .28s); }
.js .board.is-play .note__chk use { stroke-dashoffset: 0; transition: stroke-dashoffset .4s ease calc(1.8s + var(--i) * .28s); }
.js .board.is-play .bar > span { transform: none; transition: transform 1.3s var(--ease) 1.8s; }
.js .board.is-play .board__hand { clip-path: inset(0); transition: clip-path 1s ease 2.75s; }
.js .board.is-play .board__arrow path { stroke-dashoffset: 0; transition: stroke-dashoffset .7s ease 3.4s; }
.js .board.is-play .board__chip { opacity: 1; translate: 0 0; transition: opacity .5s 2.4s, translate .6s var(--spring) 2.4s; }

.hero__photo { margin: 0 0 -70px; width: 82%; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; box-shadow: var(--sh-2); transform: rotate(3deg); justify-self: start; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__art.has-photo .board { width: min(92%, 380px); justify-self: end; }

/* ---------- الأقسام ---------- */
.sec { position: relative; padding-block: clamp(60px, 8vw, 96px); }
.sec-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head--c { margin-inline: auto; text-align: center; }
.kicker { display: inline-flex; align-items: center; gap: .6em; margin-bottom: 12px; font-family: var(--f-head); font-weight: 700; font-size: .86rem; color: var(--blue); }
.kicker::before { content: ""; width: 22px; height: 5px; border-radius: 5px; background: var(--yellow); }
.h2 { font-size: clamp(1.55rem, 1.05rem + 2.4vw, 2.55rem); line-height: 1.5; text-wrap: balance; }
.lead { margin-top: 14px; font-size: 1.06rem; line-height: 1.85; }
.sec-head--c .lead { margin-inline: auto; max-width: 36em; }

/* ظهور العناصر مع النزول */
.js .reveal { opacity: 0; transform: translateY(22px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .7s var(--ease) calc(var(--i, 0) * 90ms), transform .8s var(--ease) calc(var(--i, 0) * 90ms); }

/* ---------- 02 المزايا ---------- */
.benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.benefit {
  display: grid; grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 4px; align-items: start;
  padding: 20px; border-radius: var(--r);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1);
}
.js .benefit.reveal.in { transition-property: opacity, transform, box-shadow; }
.benefit:hover { box-shadow: var(--sh-2); }
.benefit__icon {
  grid-row: span 2; position: relative;
  width: 54px; height: 54px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue);
}
.benefit__icon::after { content: ""; position: absolute; top: -4px; left: -4px; width: 14px; height: 14px; border-radius: 50%; background: var(--yellow); border: 3px solid #fff; }
.benefit__icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.js .benefit__icon svg * { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .benefit.in .benefit__icon svg * { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s var(--ease) calc(.25s + var(--i, 0) * 90ms); }
.js .benefit__icon::after { transform: scale(0); }
.js .benefit.in .benefit__icon::after { transform: scale(1); transition: transform .5s var(--spring) calc(.8s + var(--i, 0) * 90ms); }
.benefit__title { font-size: 1.12rem; }
.benefit__text { font-size: .97rem; line-height: 1.75; }

/* ---------- 03 الرحلة ---------- */
.panel { background: #fff; border-radius: 32px; border: 1px solid var(--line); box-shadow: var(--sh-1); padding: clamp(28px, 5vw, 64px) clamp(18px, 4vw, 56px); }
.steps { --p: 0; list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 22px; }
.steps::before, .steps::after { content: ""; position: absolute; top: 24px; bottom: 30px; right: 23px; width: 3px; border-radius: 3px; }
.steps::before { background: var(--line); }
.steps::after {
  background: repeating-linear-gradient(to bottom, var(--blue) 0 9px, transparent 9px 15px);
  clip-path: inset(0 0 calc((1 - var(--p)) * 100%) 0);
}
.step { position: relative; z-index: 1; display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.step__n {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; border: 2px solid var(--blue-100); color: var(--blue);
  font-family: var(--f-head); font-weight: 800; font-size: 1.15rem;
  transition: background-color .4s, color .4s, border-color .4s, transform .5s var(--spring), box-shadow .4s;
}
.step.is-on .step__n { background: var(--blue); border-color: var(--blue); color: #fff; transform: scale(1.08); box-shadow: 0 0 0 6px rgba(30, 157, 255, .15); }
.step__card { padding: 16px 18px 18px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line); }
.step__text { color: var(--ink); font-weight: 500; font-size: 1.02rem; line-height: 1.8; }

/* لقطات صغيرة لكل خطوة (رسم، مش بيانات) */
.vig { margin-top: 14px; }
.vig--chips { display: flex; flex-wrap: wrap; gap: 6px; }
.vig--chips span { font-size: .74rem; font-weight: 600; padding: .3em .85em; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--muted); }
.vig--chips .on { background: var(--blue); border-color: var(--blue); color: #fff; }
.vig--chips .on::before { content: "✓ "; }
.js .vig--chips span { opacity: 0; transform: scale(.7); }
.js .step.is-on .vig--chips span { opacity: 1; transform: none; transition: opacity .3s, transform .45s var(--spring); }
.js .step.is-on .vig--chips span:nth-child(2) { transition-delay: .12s; }
.js .step.is-on .vig--chips span:nth-child(3) { transition-delay: .24s; }
.js .step.is-on .vig--chips span:nth-child(4) { transition-delay: .36s; }
.vig--cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; max-width: 230px; }
.vig--cal i { aspect-ratio: 1; border-radius: 6px; background: #fff; border: 1px solid var(--line); }
.vig--cal .on { background: var(--yellow); border-color: var(--yellow); }
.js .vig--cal .on { background: #fff; border-color: var(--line); }
.js .step.is-on .vig--cal .on { background: var(--yellow); border-color: var(--yellow); transition: background-color .3s, border-color .3s; }
.js .step.is-on .vig--cal .on:nth-of-type(5) { transition-delay: .15s; }
.js .step.is-on .vig--cal .on:nth-of-type(10) { transition-delay: .3s; }
.js .step.is-on .vig--cal .on:nth-of-type(13) { transition-delay: .45s; }
.vig--call { display: flex; align-items: stretch; gap: 8px; max-width: 280px; }
.vig__board { position: relative; flex: 1; min-height: 62px; border-radius: 12px; background: #0E3A5E; display: grid; place-items: center; overflow: hidden; }
.vig__eq { font-family: var(--f-head); font-weight: 700; color: #fff; font-size: .95rem; direction: ltr; letter-spacing: .04em; }
.js .vig__eq { clip-path: inset(0 100% 0 0); }
.js .step.is-on .vig__eq { clip-path: inset(0); transition: clip-path 1.4s steps(9) .2s; }
.vig__pen { position: absolute; bottom: 12px; left: 16px; width: 4px; height: 16px; border-radius: 2px; background: var(--yellow); transform: rotate(30deg); }
.js .step.is-on .vig__pen { animation: write 1.4s steps(9) .2s both; }
@keyframes write { from { left: 16px; } to { left: calc(100% - 22px); } }
.vig__faces { display: grid; gap: 6px; width: 46px; }
.av { border-radius: 10px; background: var(--blue-50); position: relative; overflow: hidden; }
.av::before { content: ""; position: absolute; left: 50%; top: 22%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--c, var(--brand)); }
.av::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 26px; height: 16px; margin-left: -13px; border-radius: 50% 50% 0 0; background: var(--c, var(--brand)); }
.av--s { --c: #FFB000; background: var(--yellow-50); }

/* ---------- 04 آراء الأمهات ---------- */
.voices__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 14px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 6px 20px 20px; margin-inline: -20px;
  scrollbar-width: none;
}
.voices__track::-webkit-scrollbar { display: none; }
.voice {
  margin: 0;
  scroll-snap-align: center;
  display: flex; flex-direction: column; gap: 16px;
  padding: 24px 22px; border-radius: var(--r);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1);
}
.voice__mark { font-family: var(--f-head); font-size: 3rem; line-height: .6; color: var(--yellow); height: 22px; }
.voice__q { color: var(--ink); font-size: 1.04rem; line-height: 1.9; }
.voice__stars { color: #E8A800; letter-spacing: .1em; font-size: .95rem; }
.voice__who { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.voice__av { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); font-family: var(--f-head); font-weight: 800; }
.voice__name { font-family: var(--f-head); font-weight: 700; color: var(--ink); font-size: .95rem; line-height: 1.4; }
.voice__ctx { font-size: .82rem; color: var(--muted); line-height: 1.4; }
.voice--ph { border: 2px dashed var(--yellow); background: repeating-linear-gradient(-45deg, #fff 0 14px, var(--yellow-50) 14px 28px); }
.voice--ph .voice__q { color: var(--muted); }
.voices__nav { display: flex; align-items: center; justify-content: center; gap: 12px; }
.voices__dots { display: flex; gap: 2px; }
.voices__dots button { width: 28px; height: 28px; border: 0; padding: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.voices__dots button::before { content: ""; width: 9px; height: 9px; border-radius: 99px; background: var(--blue-100); transition: width .3s, background-color .3s; }
.voices__dots button[aria-current="true"]::before { width: 24px; background: var(--blue); }
.round-btn { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--blue); display: grid; place-items: center; cursor: pointer; transition: background-color .2s, border-color .2s; }
.round-btn:hover { background: var(--blue-50); border-color: var(--blue-100); }
.round-btn .ico { width: 22px; height: 22px; }

/* ---------- 05 الباقات ---------- */
.sec--plans::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent, var(--blue-50) 30%, var(--blue-50) 75%, transparent); }
.plans { display: grid; gap: 22px; }
.plan {
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
  padding: 26px 22px 22px; border-radius: 26px;
  background: #fff; border: 1.5px solid var(--line); box-shadow: var(--sh-1);
}
.js .plan.reveal.in { transition-property: opacity, transform, box-shadow; }
.plan:hover { box-shadow: var(--sh-2); }
.plan--feat { border: 2px solid var(--blue); box-shadow: 0 0 0 5px rgba(30, 157, 255, .13), var(--sh-2); }
.plan__badge {
  position: absolute; top: -15px; right: 50%; transform: translateX(50%);
  padding: .3em 1.1em; border-radius: 999px; white-space: nowrap;
  background: var(--yellow); color: var(--ink);
  font-family: var(--f-head); font-weight: 700; font-size: .82rem;
  box-shadow: 0 8px 16px -8px rgba(232, 168, 0, .9);
}
.plan__name { font-size: 1.22rem; }
.plan__need { color: var(--muted); font-size: .95rem; line-height: 1.65; }
.plan__count { display: flex; align-items: baseline; gap: .35em; margin-top: 6px; font-family: var(--f-head); color: var(--ink); }
.plan__count b { font-size: 2.7rem; font-weight: 800; line-height: 1; color: var(--blue); }
.plan__count span { font-weight: 700; font-size: 1.15rem; }
.dots { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; max-width: 212px; margin-bottom: 6px; }
.dots i { aspect-ratio: 1; border-radius: 5px; background: var(--brand); border: 1px solid var(--brand); }
.js .dots i { background: var(--blue-50); border-color: var(--blue-100); transform: scale(.6); }
.js .dots.is-fill i { background: var(--brand); border-color: var(--brand); transform: none; transition: background-color .25s, border-color .25s, transform .45s var(--spring); transition-delay: calc(var(--k) * 45ms + .2s); }
.plan--feat .dots.is-fill i:nth-child(n) { background: var(--blue); border-color: var(--blue); }
.plan__price { display: flex; align-items: baseline; gap: .35em; margin-top: auto; padding: 14px 0 6px; border-top: 1.5px dashed var(--line); font-family: var(--f-head); color: var(--ink); }
.plan__price b { font-size: 2.45rem; font-weight: 800; line-height: 1; }
.plan__price span { font-weight: 700; color: var(--muted); font-size: 1.05rem; }
.plans__note { margin-top: 26px; display: grid; justify-items: center; gap: 12px; text-align: center; color: var(--muted); font-size: .95rem; }
.link-wa { display: inline-flex; align-items: center; gap: .5em; min-height: 44px; padding: .4em 1.1em; border-radius: 999px; background: #fff; border: 1.5px solid rgba(29, 168, 81, .35); color: var(--ink); font-weight: 600; text-decoration: none; transition: background-color .2s; }
.link-wa:hover { background: #F1FBF4; }
.link-wa .ico { color: var(--wa); width: 1.25em; height: 1.25em; }

/* ---------- 06 الأسئلة ---------- */
.faq { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.qa { border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1); overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.qa[open] { border-color: var(--blue-100); box-shadow: var(--sh-2); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 60px; padding: 16px 20px; cursor: pointer; list-style: none;
  font-family: var(--f-head); font-weight: 700; font-size: 1.02rem; color: var(--ink); line-height: 1.55;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:focus-visible { outline-offset: -3px; border-radius: 18px; }
.qa__icon { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--blue-50); transition: transform .4s var(--ease), background-color .3s; }
.qa__icon::before, .qa__icon::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 2.4px; margin: -1.2px 0 0 -6px; border-radius: 2px; background: var(--blue); transition: transform .35s var(--ease), background-color .3s; }
.qa__icon::after { transform: rotate(90deg); }
.qa[open] .qa__icon { transform: rotate(180deg); background: var(--blue); }
.qa[open] .qa__icon::before, .qa[open] .qa__icon::after { background: #fff; }
.qa[open] .qa__icon::after { transform: rotate(0deg); }
.qa__a { padding: 0 20px 20px; font-size: 1rem; line-height: 1.85; }
.qa__a a { color: var(--blue); font-weight: 600; }
@supports (interpolate-size: allow-keywords) {
  .qa { interpolate-size: allow-keywords; }
  .qa::details-content { block-size: 0; overflow: hidden; transition: block-size .4s var(--ease), content-visibility .4s allow-discrete; }
  .qa[open]::details-content { block-size: auto; }
}

/* ---------- 07 الدعوة الأخيرة ---------- */
.final { padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 110px); }
.final__card {
  position: relative; isolation: isolate; overflow: clip;
  display: grid; justify-items: center; gap: 16px; text-align: center;
  padding: clamp(30px, 5vw, 64px) clamp(20px, 5vw, 64px);
  border-radius: 32px;
  background: linear-gradient(165deg, #FFF6D6 0%, #FFFCF2 50%, #EAF4FF 100%);
  border: 1px solid #F3E2A6;
}
.final__card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(232, 168, 0, .1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 168, 0, .1) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 75%);
}
.final__title { font-size: clamp(1.6rem, 1.1rem + 2.6vw, 2.75rem); line-height: 1.5; max-width: 17em; text-wrap: balance; }
.final__text { max-width: 34em; font-size: 1.06rem; line-height: 1.85; }
.final__btns { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 440px; margin-top: 10px; }
.final__btns .btn { padding-inline: .9em; font-size: .98rem; }
@media (max-width: 420px) { .final__card { padding-inline: 16px; } }
@media (max-width: 360px) { .btn--lg { font-size: .95rem; padding-inline: 1em; } .wrap { width: calc(100% - 32px); } }

/* كومة الدروس: بتتراكم، وبعدين بتترتّب */
.pile { position: relative; width: 240px; height: 150px; margin-bottom: 4px; }
.leaf {
  position: absolute; top: 50%; left: 50%;
  width: 150px; height: 98px; margin: -49px 0 0 -75px;
  padding: 14px 14px 0; border-radius: 12px;
  background: #fff repeating-linear-gradient(to bottom, transparent 0 17px, var(--blue-50) 17px 18px) 0 34px / 100% calc(100% - 34px) no-repeat;
  border: 1px solid var(--line); border-top: 5px solid var(--c);
  box-shadow: 0 10px 20px -12px rgba(11, 37, 69, .45);
  font-family: var(--f-head); font-weight: 700; font-size: .82rem; color: var(--ink); text-align: right;
  transform: translate(var(--x), var(--y)) rotate(var(--r));
}
.js .leaf { opacity: 0; transform: translate(var(--x), calc(var(--y) - 170px)) rotate(calc(var(--r) * 2)); }
.js .pile.is-drop .leaf { opacity: 1; transform: translate(var(--x), var(--y)) rotate(var(--r)); transition: transform .75s var(--spring) calc(var(--k) * 140ms), opacity .25s calc(var(--k) * 140ms); }
.js .pile.is-tidy .leaf { transform: translate(calc(var(--k) * -2px), calc(var(--k) * -3px + 6px)) rotate(0deg); transition: transform .9s var(--ease) calc((4 - var(--k)) * 70ms); }
.pile__stamp {
  position: absolute; z-index: 3; top: 6px; left: 2px;
  padding: .05em .45em .2em; border: 2.5px solid var(--blue); border-radius: 12px;
  font-family: var(--f-hand); font-weight: 700; font-size: 1.55rem; line-height: 1.2; color: var(--blue);
  background: rgba(255, 255, 255, .85);
  transform: rotate(-12deg);
}
.js .pile__stamp { opacity: 0; transform: rotate(-12deg) scale(1.8); }
.js .pile.is-tidy .pile__stamp { opacity: 1; transform: rotate(-12deg) scale(1); transition: opacity .2s .55s, transform .45s var(--spring) .55s; }

/* ---------- الفوتر ---------- */
.foot { background: var(--ink); color: #BFD0E8; padding: 36px 0 120px; font-size: .92rem; }
.foot__in { display: grid; justify-items: center; gap: 12px; text-align: center; }
.foot img { height: 36px; width: auto; filter: brightness(0) invert(1); opacity: .95; }
.foot__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; color: #93A9C9; font-size: .86rem; }
.foot a { color: #fff; text-underline-offset: 3px; }

/* ---------- الشريط الثابت ---------- */
.dock {
  position: fixed; z-index: 40;
  inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 10px;
  pointer-events: none;
}
.dock > * { pointer-events: auto; }
.dock__main {
  flex: 1; min-height: 56px;
  box-shadow: 0 14px 30px -12px rgba(11, 107, 211, .8), inset 0 -2px 0 rgba(0, 0, 0, .14);
  transition: opacity .3s, transform .45s var(--ease), visibility 0s;
}
.dock.is-min .dock__main { opacity: 0; transform: translateY(24px) scale(.94); visibility: hidden; pointer-events: none; transition: opacity .25s, transform .35s var(--ease), visibility 0s .35s; }
.dock__wa {
  position: relative; flex: none; margin-inline-start: auto;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--wa); color: #fff;
  box-shadow: 0 12px 26px -10px rgba(29, 168, 81, .85), 0 0 0 4px rgba(255, 255, 255, .9);
  text-decoration: none;
  transition: transform .25s var(--ease);
}
.dock__wa:hover { transform: scale(1.06); }
.dock__wa svg { width: 30px; height: 30px; }
.dock__tip { display: none; }

/* ---------- نموذج الطلب ---------- */
dialog.sheet {
  position: fixed; inset: auto 0 0 0;
  width: 100%; max-width: 100%; max-height: 94dvh; margin: 0;
  padding: 0; border: 0; border-radius: 26px 26px 0 0;
  background: #fff; color: var(--text);
  box-shadow: 0 -24px 60px -20px rgba(11, 37, 69, .45);
  overflow: hidden;
}
dialog.sheet[open] { display: flex; flex-direction: column; animation: sheet-up .45s var(--ease); }
dialog.sheet.is-closing { animation: sheet-down .26s ease-in forwards; }
dialog.sheet::backdrop { background: rgba(11, 37, 69, .5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: fade .3s; }
dialog.sheet.is-closing::backdrop { animation: fade .26s reverse forwards; }
@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes sheet-down { to { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }
.sheet__form { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.sheet__head { position: relative; padding: 12px 20px 14px; border-bottom: 1px solid var(--line); }
.sheet__grab { display: block; width: 44px; height: 5px; margin: 0 auto 12px; border-radius: 5px; background: var(--line); }
.sheet__title { font-size: 1.25rem; padding-inline-end: 44px; }
.sheet__title:focus { outline: none; }
.sheet__sub { margin-top: 2px; font-size: .9rem; color: var(--muted); }
.sheet__x {
  position: absolute; top: 18px; left: 14px;
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  display: grid; place-items: center;
  background: var(--bg); color: var(--ink); cursor: pointer;
}
.sheet__x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.sheet__x:hover { background: var(--blue-50); }
.sheet__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 20px 6px; }
.sheet__foot { padding: 12px 20px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: #fff; }
.sheet__hint { margin-top: 8px; font-size: .8rem; color: var(--muted); text-align: center; line-height: 1.6; }
.btn.is-busy { pointer-events: none; }

.field { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.field > legend, .lbl { display: block; padding: 0; margin-bottom: 10px; font-family: var(--f-head); font-weight: 700; font-size: .96rem; color: var(--ink); }
.field > legend small { display: block; margin-top: 2px; font-family: var(--f-body); font-weight: 500; font-size: .8rem; color: var(--muted); }
.field input[type="radio"], .field input[type="checkbox"] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }

.pkgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pkg { display: block; cursor: pointer; }
.pkg__box {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 74px; padding: 10px 4px; border-radius: 16px; text-align: center;
  border: 1.5px solid var(--line); background: #fff;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.pkg__box b { font-family: var(--f-head); font-size: 1rem; color: var(--ink); line-height: 1.3; }
.pkg__box span { font-size: .84rem; color: var(--muted); font-weight: 600; }
.pkg__box::after { content: ""; position: absolute; top: 7px; left: 7px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--blue-100); background: #fff; }
.pkg input:checked + .pkg__box { border-color: var(--blue); background: var(--blue-50); box-shadow: 0 0 0 3px rgba(30, 157, 255, .18); }
.pkg input:checked + .pkg__box::after { border: 5px solid var(--blue); }
.pkg input:focus-visible + .pkg__box { outline: 3px solid var(--ink); outline-offset: 2px; }
.pkg-desc { margin-top: 10px; font-size: .86rem; color: var(--muted); min-height: 1.6em; line-height: 1.6; }
.pkg-desc b { color: var(--ink); font-family: var(--f-head); }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label { cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 50px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; transition: border-color .2s, background-color .2s, color .2s; }
.seg input:checked + span { border-color: var(--blue); background: var(--blue); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: .35em; min-height: 44px; padding: .35em 1em; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-size: .92rem; font-weight: 500; transition: border-color .2s, background-color .2s, color .2s; }
.chip input:checked + span { border-color: var(--blue); background: var(--blue); color: #fff; }
.chip input:checked + span::before { content: "✓"; font-weight: 700; }
.chip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
#subject-other { margin-top: 10px; }

.input, .field select {
  width: 100%; min-height: 52px; padding: .6em 1em;
  border-radius: 14px; border: 1.5px solid var(--line); background: #fff;
  font-size: 1rem; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field select {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  padding-left: 42px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B6BD3' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat left 14px center / 18px;
}
.input:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(30, 157, 255, .2); }
.input::placeholder { color: #98A6BC; }
.phone { display: grid; grid-template-columns: 116px 1fr; gap: 8px; }
.phone select { padding-left: 34px; background-position: left 10px center; }
.phone .input { text-align: left; letter-spacing: .03em; }

.check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: .92rem; line-height: 1.65; color: var(--ink); }
.check__box { flex: none; width: 26px; height: 26px; margin-top: 1px; border-radius: 8px; border: 2px solid var(--blue-100); background: #fff; display: grid; place-items: center; color: #fff; transition: background-color .2s, border-color .2s; }
.check__box svg { width: 15px; height: 15px; opacity: 0; transform: scale(.5); transition: opacity .15s, transform .25s var(--spring); }
.check input:checked + .check__box { background: var(--blue); border-color: var(--blue); }
.check input:checked + .check__box svg { opacity: 1; transform: none; }
.check input:focus-visible + .check__box { outline: 3px solid var(--ink); outline-offset: 2px; }
.check a { color: var(--blue); font-weight: 600; }
.privacy-note { margin-top: 8px; padding-inline-start: 38px; font-size: .8rem; color: var(--muted); line-height: 1.65; }

.err { display: none; margin-top: 8px; font-size: .86rem; font-weight: 600; color: var(--err); line-height: 1.5; }
.has-err .err { display: block; }
.has-err .err::before { content: "! "; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-inline-end: 4px; border-radius: 50%; background: var(--err); color: #fff; font-size: .72rem; }
.has-err .input, .has-err select, .has-err .seg span, .has-err .pkg__box, .has-err .check__box { border-color: var(--err); }
.has-err .chips .chip span { border-color: #F2B8B8; }
.field.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* بعد الإرسال */
.done { position: relative; display: grid; justify-items: center; gap: 12px; padding: 30px 22px calc(24px + env(safe-area-inset-bottom, 0px)); text-align: center; overflow-y: auto; }
.done .sheet__x { top: 14px; }
.done__art { position: relative; width: 120px; height: 120px; }
.done__ring { width: 120px; height: 120px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.done__ring circle { stroke: var(--blue-100); stroke-width: 6; }
.done__ring path { stroke: var(--blue); stroke-width: 8; }
.done__plane { position: absolute; top: 0; left: 0; width: 34px; height: 34px; fill: var(--yellow); stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; opacity: 0; }
.done.is-anim .done__ring circle { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .7s var(--ease) forwards; }
.done.is-anim .done__ring path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .45s var(--ease) .55s forwards; }
.done.is-anim .done__plane { animation: fly 1.3s var(--ease) .9s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fly { 0% { opacity: 0; transform: translate(50px, 60px) scale(.4) rotate(10deg); } 25% { opacity: 1; } 100% { opacity: 0; transform: translate(-70px, -70px) scale(1.1) rotate(-8deg); } }
.done__title { font-size: 1.45rem; }
.done__title:focus { outline: none; }
.done__text { max-width: 26em; font-size: 1rem; line-height: 1.8; }
.done__ref { padding: .5em 1.2em; border-radius: 14px; background: var(--blue-50); color: var(--muted); font-size: .92rem; }
.done__ref b { font-family: var(--f-head); color: var(--ink); letter-spacing: .06em; }
.done .btn { max-width: 420px; }
.done__hint { margin-top: 6px; margin-bottom: -4px; font-size: .86rem; color: var(--muted); }

/* ---------- لوحة المراجعة (?review) ---------- */
.rv {
  position: fixed; z-index: 90; top: 74px; left: 10px;
  width: min(340px, calc(100% - 20px)); max-height: calc(100dvh - 160px); overflow: auto;
  padding: 12px 14px; border-radius: 14px;
  background: rgba(11, 37, 69, .96); color: #E8F0FB;
  font: 500 12.5px/1.6 var(--f-body);
  box-shadow: var(--sh-2);
}
.rv.is-closed { width: auto; max-height: none; overflow: visible; }
.rv.is-closed > :not(.rv__top) { display: none; }
.rv__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rv__top b { font-family: var(--f-head); color: var(--yellow); font-size: 13px; }
.rv__top button { border: 0; border-radius: 8px; padding: .2em .7em; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; font-size: 12px; }
.rv dl { margin: 8px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; }
.rv dt { color: #93A9C9; }
.rv dd { margin: 0; word-break: break-word; }
.rv .ok { color: #7EE2A8; }
.rv .bad { color: #FF9B9B; }
.rv pre { margin: 8px 0 0; padding: 8px; border-radius: 8px; background: rgba(255, 255, 255, .08); white-space: pre-wrap; font: inherit; max-height: 160px; overflow: auto; }
.rv ol { margin: 6px 0 0; padding-inline-start: 18px; max-height: 150px; overflow: auto; }

/* ============================================================
   الشاشات الأكبر
   ============================================================ */
@media (min-width: 600px) {
  .hero__cta { flex-direction: row; align-items: center; gap: 18px; }
  .hero__from { text-align: start; }
  .benefits { grid-template-columns: 1fr 1fr; }
  .voices__track { grid-auto-columns: calc((100% - 14px) / 2); margin-inline: 0; padding-inline: 2px; }
  .final__btns { flex-direction: row; justify-content: center; max-width: none; width: auto; }
}

@media (min-width: 700px) {
  dialog.sheet {
    inset: 0; margin: auto;
    width: min(600px, calc(100% - 40px)); max-height: min(90dvh, 900px);
    border-radius: 28px;
  }
  dialog.sheet[open] { animation-name: sheet-pop; }
  dialog.sheet.is-closing { animation-name: sheet-out; }
  @keyframes sheet-pop { from { opacity: 0; transform: translateY(24px) scale(.97); } }
  @keyframes sheet-out { to { opacity: 0; transform: translateY(16px) scale(.97); } }
  .sheet__grab { display: none; }
  .sheet__head { padding-top: 22px; }
  .sheet__x { top: 16px; }
}

@media (min-width: 600px) and (max-width: 899px) {
  .plans { max-width: 540px; margin-inline: auto; }
}

@media (min-width: 900px) {
  .plans { grid-template-columns: repeat(3, 1fr); align-items: center; gap: 20px; }
  .plan { padding: 28px 24px 24px; }
  .plan--feat { padding-block: 40px 30px; }
  .plan__need { min-height: 3.3em; }
}

@media (min-width: 900px) {
  :root { --head-h: 76px; }
  .brand img { height: 46px; }
  .top__cta { display: inline-flex; }
  .hero { padding: 36px 0 56px; }
  .hero__grid { grid-template-columns: 1.08fr .92fr; align-items: center; gap: 56px; }
  .hero__art { padding: 60px 10px 40px 30px; }
  .board { width: min(100%, 460px); }
  .board__card { padding: 24px 22px 22px; padding-inline-start: 40px; }
  .notes { gap: 11px; }
  .note { padding: 11px 14px; }
  .note__txt b { font-size: .98rem; }
  .note__txt small { font-size: .8rem; }
  .doodle { font-size: 34px; }

  .sec-head--split { max-width: none; display: grid; grid-template-columns: 1.1fr .9fr; column-gap: 64px; align-items: end; }
  .sec-head--split .kicker { grid-column: 1 / -1; justify-self: start; }
  .sec-head--split .lead { margin-top: 0; padding-bottom: 8px; }

  .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .steps::before, .steps::after { top: 23px; bottom: auto; height: 3px; width: auto; right: 16%; left: 16%; }
  .steps::after { background: repeating-linear-gradient(to left, var(--blue) 0 9px, transparent 9px 15px); clip-path: inset(0 0 0 calc((1 - var(--p)) * 100%)); }
  .step { grid-template-columns: 1fr; grid-template-rows: auto 1fr; justify-items: center; text-align: center; gap: 18px; }
  .step__card { align-self: stretch; width: 100%; display: flex; flex-direction: column; align-items: center; }
  .vig--cal, .vig--call { width: 100%; }
  .vig--chips { justify-content: center; }
  .vig { margin-top: auto; padding-top: 14px; }

  .foot { padding-bottom: 36px; }
  .foot__in { grid-template-columns: auto 1fr auto; justify-items: start; text-align: start; }
  .foot__meta { justify-content: flex-end; }

  /* واتساب العائم على الكمبيوتر: تحت على الشمال، وجنبه كلمة تظهر مع الماوس */
  .dock { inset-inline: auto 24px; bottom: 24px; }
  .dock__main { display: none; }
  .dock__tip {
    display: block; position: absolute; left: calc(100% + 12px); top: 50%;
    padding: .45em .9em; border-radius: 10px; white-space: nowrap;
    background: var(--ink); color: #fff; font-size: .86rem; font-weight: 600;
    opacity: 0; transform: translate(-8px, -50%); transition: opacity .2s, transform .25s var(--ease);
    pointer-events: none;
  }
  .dock__wa:hover .dock__tip, .dock__wa:focus-visible .dock__tip { opacity: 1; transform: translate(0, -50%); }
}

@media (min-width: 1000px) {
  .benefits { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .benefit { grid-template-columns: 1fr; padding: 24px 22px; }
  .benefit__icon { grid-row: auto; margin-bottom: 12px; }
  .voices__track { grid-auto-columns: calc((100% - 28px) / 3); }
}

@media (hover: hover) {
  .benefit, .plan { transition: transform .35s var(--ease), box-shadow .35s; }
  .js .benefit.reveal.in:hover, .js .plan.reveal.in:hover { transform: translateY(-5px); transition-delay: 0s; }
}

/* ---------- تقليل الحركة: كل حاجة بتظهر في شكلها الأخير من غير حركة ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .blob, .doodle, .board__chip, .eyebrow__dot, .btn--shine::after { animation: none !important; }
}
