/* Forma DJR Arabic Deck Bold — رخصة اختبار فقط (Testing): لا يُنشر قبل شراء رخصة ويب من djr.com */
@font-face {
  font-family: "Forma DJR Arabic Deck";
  src: url("/fonts/FormaDJRArabicDeck-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #F4F5F2;
  --sheet: #FCFCFA;
  --ink: #1A2440;
  --ink-2: #222E50;
  --ink-soft: #4A5470;
  --mist: #C3C9D8;
  --seal: #0F6B4F;
  --seal-light: #7FC4A8;
  --stamp: #A3261E;
  --rule: #CDD3CB;

  --ui: "IBM Plex Sans Arabic", system-ui, "Segoe UI", Tahoma, sans-serif;
  --display: "Forma DJR Arabic Deck", "IBM Plex Sans Arabic", system-ui, sans-serif;

  --s-1: clamp(0.88rem, 0.85rem + 0.15vw, 0.95rem);
  --s0: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --s1: clamp(1.15rem, 1.05rem + 0.45vw, 1.4rem);
  --s2: clamp(1.7rem, 1.2rem + 2vw, 2.8rem);
  --s3: clamp(2.2rem, 1.4rem + 3.6vw, 4.4rem);

  --bar-h: 4.5rem;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; overflow: hidden;
  background: var(--paper); color: var(--ink);
  font-family: var(--ui); font-size: var(--s0); line-height: 1.7;
}
h1, h2 { margin: 0; line-height: 1.3; font-weight: 700; }
p, ul, figure { margin: 0; }
a { color: inherit; }
svg { display: block; }
:focus-visible { outline: 3px solid var(--seal); outline-offset: 3px; border-radius: 6px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; inset-inline-start: 1rem; top: -4rem; z-index: 50;
  background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* ───── الشريط العائم ───── */
.bar {
  position: fixed; z-index: 20; top: 0.9rem; inset-inline: 0; margin-inline: auto;
  width: min(60rem, calc(100% - 1.5rem));
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.45rem 0.55rem 0.45rem 1.1rem;
  padding-inline-start: 1.1rem; padding-inline-end: 0.55rem;
  background: rgba(252, 252, 250, 0.82);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(26, 36, 64, 0.08); border-radius: 999px;
  box-shadow: 0 6px 24px rgba(26, 36, 64, 0.1);
}
.brand { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; font-weight: 700; letter-spacing: 0.02em; }
.brand-mark { width: 26px; height: 26px; color: var(--seal); }
.tabs { position: relative; display: flex; gap: 0.15rem; }
.tabs a {
  position: relative; z-index: 1;
  text-decoration: none; font-size: var(--s-1); font-weight: 500; color: var(--ink-soft);
  padding: 0.45rem 0.95rem; border-radius: 999px; transition: color 0.3s;
}
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="true"] { color: var(--paper); }
.tabs-ink {
  position: absolute; z-index: 0; top: 0; bottom: 0;
  inset-inline-start: var(--ink-x, 0px); width: var(--ink-w, 0px);
  background: var(--ink); border-radius: 999px; opacity: var(--ink-o, 0);
  transition: inset-inline-start 0.5s var(--ease), width 0.5s var(--ease), opacity 0.3s;
}
.tab-contact {
  position: relative; z-index: 1;
  font-family: inherit; font-size: var(--s-1); font-weight: 700;
  color: var(--paper); background: var(--seal); border: 0; cursor: pointer;
  padding: 0.45rem 0.95rem; border-radius: 999px;
  transition: background 0.3s, transform 0.3s;
}
.tab-contact:hover { background: var(--ink); }

/* ───── نموذج التواصل ───── */
.contact-overlay {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center; padding: 1.2rem;
  background: rgba(26, 36, 64, 0.45);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.contact-overlay[hidden] { display: none; }
.contact-card {
  position: relative; width: min(26rem, 100%);
  background: var(--paper); color: var(--ink);
  border: 1px solid rgba(26, 36, 64, 0.1); border-radius: 1.4rem;
  box-shadow: 0 30px 80px rgba(26, 36, 64, 0.35);
  padding: 2rem 1.8rem 1.6rem;
  animation: contact-in 0.35s var(--ease);
}
@keyframes contact-in { from { opacity: 0; transform: translateY(14px) scale(0.97); } }
.contact-close {
  position: absolute; top: 0.9rem; inset-inline-end: 0.9rem;
  width: 2rem; height: 2rem; border: 0; border-radius: 50%;
  background: rgba(26, 36, 64, 0.07); color: var(--ink-soft);
  font-size: 0.85rem; cursor: pointer; transition: background 0.25s, color 0.25s;
}
.contact-close:hover { background: var(--stamp); color: var(--paper); }
.contact-card h2 { font-family: var(--display); font-size: var(--s1); }
.contact-sub { color: var(--ink-soft); font-size: var(--s-1); margin-bottom: 1.1rem; }
.contact-card label { display: block; font-size: var(--s-1); font-weight: 500; margin: 0.7rem 0 0.3rem; }
.contact-card input[type="text"], .contact-card textarea {
  width: 100%; font-family: inherit; font-size: var(--s0); color: var(--ink);
  background: #fff; border: 1.5px solid var(--rule); border-radius: 0.7rem;
  padding: 0.55rem 0.8rem; resize: vertical; transition: border-color 0.25s;
}
.contact-card input[type="text"]:focus, .contact-card textarea:focus {
  outline: none; border-color: var(--seal);
}
.contact-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-submit {
  width: 100%; margin-top: 1.1rem;
  font-family: inherit; font-size: var(--s0); font-weight: 700;
  color: var(--paper); background: var(--seal); border: 0; border-radius: 0.8rem;
  padding: 0.75rem; cursor: pointer; transition: background 0.3s, opacity 0.3s;
}
.contact-submit:hover { background: var(--ink); }
.contact-submit:disabled { opacity: 0.55; cursor: default; }
.contact-note { min-height: 1.5em; margin-top: 0.6rem; font-size: var(--s-1); text-align: center; }
.contact-note.ok { color: var(--seal); }
.contact-note.err { color: var(--stamp); }

/* ───── الشرائح ───── */
.deck {
  position: fixed; inset: 0;
  display: flex; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  overscroll-behavior: contain; scrollbar-width: none;
}
.deck::-webkit-scrollbar { display: none; }
.slide {
  position: relative; flex: 0 0 100%; width: 100%;
  height: 100vh; height: 100dvh;
  scroll-snap-align: start; scroll-snap-stop: always;
  overflow-y: auto; overflow-x: hidden; scrollbar-width: thin;
  padding: calc(var(--bar-h) + 1.5rem) clamp(1.25rem, 5vw, 5.5rem) clamp(2.5rem, 5vh, 4rem);
}

/* حركة دخول واحدة لكل شريحة */
.slide [data-in] {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.8s var(--ease);
}
.slide [data-in="1"] { transition-delay: 90ms; }
.slide [data-in="2"] { transition-delay: 180ms; }
.slide [data-in="3"] { transition-delay: 270ms; }
.slide.is-active [data-in] { opacity: 1; transform: none; }

/* ───── ٢ الشهادات ───── */
.s-cer { background: var(--paper); display: grid; align-items: center; }
.cer-grid {
  width: 100%; max-width: 82rem; margin-inline: auto;
  display: grid; gap: clamp(2rem, 4vw, 4.5rem); align-items: center;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
}
.cer-copy h2 { font-size: var(--s2); }
.perks { list-style: none; padding: 0; margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; color: var(--ink-soft); }
.perks li { display: inline-flex; align-items: center; gap: 0.45rem; }
.perks li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--seal); }

.try { margin-top: 2rem; display: grid; gap: 0.9rem; }
.try-input {
  width: 100%; font: inherit; font-size: var(--s1); color: var(--ink);
  background: var(--sheet); border: 2px solid var(--rule); border-radius: 14px;
  padding: 0.8rem 1.1rem; transition: border-color 0.2s, box-shadow 0.2s;
}
.try-input::placeholder { color: #8A92A6; }
.try-input:focus { outline: none; border-color: var(--seal); box-shadow: 0 0 0 5px rgba(15, 107, 79, 0.14); }
.occasion { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.occasion label { position: relative; cursor: pointer; }
.occasion input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.occasion span {
  display: inline-block; padding: 0.45rem 1rem; border-radius: 999px;
  border: 1.5px solid var(--rule); background: var(--sheet); font-size: var(--s-1); font-weight: 500;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.occasion label:hover span { border-color: var(--ink-soft); }
.occasion input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.occasion input:focus-visible + span { outline: 3px solid var(--seal); outline-offset: 2px; }
.cta {
  justify-self: start; margin-top: 0.3rem;
  font: inherit; font-weight: 700; color: #fff; background: var(--seal);
  border: 0; border-radius: 14px; padding: 0.9rem 1.8rem; cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 107, 79, 0.28);
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s;
}
.cta:hover { background: #0B5A42; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(15, 107, 79, 0.34); }

.stage { perspective: 1400px; --rx: 0deg; --ry: 0deg; }
.cert {
  width: 100%; height: auto; overflow: visible;
  transform: rotateX(var(--rx)) rotateY(var(--ry)) rotate(-1.5deg);
  transition: transform 0.6s var(--ease);
  filter: drop-shadow(0 2px 2px rgba(26, 36, 64, 0.08)) drop-shadow(0 26px 40px rgba(26, 36, 64, 0.16));
}
.stage.is-tilting .cert { transition: transform 0.08s linear; }
.s-cer .stage { opacity: 0; transform: translateX(-60px) rotate(6deg) scale(0.94); transition: opacity 0.8s var(--ease), transform 1s var(--ease); }
.s-cer.is-active .stage { opacity: 1; transform: none; }

.c-sheet { fill: var(--sheet); }
.c-frame-outer { fill: none; stroke: var(--ink); stroke-width: 3; }
.c-frame-inner { fill: none; stroke: var(--seal); stroke-width: 1; stroke-dasharray: 1 5; stroke-linecap: round; }
.c-rosette-bg path { fill: none; stroke: var(--seal); stroke-width: 0.6; opacity: 0.11; }
.c-title { font-family: var(--display); font-weight: 700; font-size: 58px; fill: var(--ink); transition: opacity 0.3s; }
.c-line { font-family: var(--ui); font-size: 26px; fill: var(--ink-soft); }
.c-name { font-family: var(--display); font-weight: 700; font-size: 84px; fill: var(--ink); }
.c-body { font-family: var(--ui); font-size: 25px; fill: var(--ink-soft); }
.c-rule { stroke: var(--rule); stroke-width: 1.5; }
.c-small, .c-meta { font-family: var(--ui); font-size: 19px; fill: var(--ink-soft); }
.c-sign-ink { fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.c-seal-ring { fill: none; stroke: var(--stamp); stroke-width: 2.5; }
.c-seal-ring.thin { stroke-width: 1; }
.c-seal path { fill: none; stroke: var(--stamp); stroke-width: 0.9; }
.c-seal-core { fill: var(--stamp); }
.c-seal { transform-box: fill-box; transform-origin: center; }
.c-seal.is-stamping { animation: stamp 0.5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes stamp { from { transform: scale(1.22); opacity: 0.3; } to { transform: scale(1); opacity: 1; } }
.draw { transition: stroke-dashoffset 1.2s cubic-bezier(.4, 0, .2, 1); }
.swap { animation: swap 0.45s var(--ease); }
@keyframes swap { from { opacity: 0; } to { opacity: 1; } }

/* ───── ٣ PDF ───── */
.s-pdf {
  background: radial-gradient(120% 80% at 20% 30%, var(--ink-2), var(--ink) 60%);
  color: var(--paper);
  display: grid; align-content: center; gap: clamp(2rem, 5vh, 3.5rem);
}
.pdf-grid {
  width: 100%; max-width: 82rem; margin-inline: auto;
  display: grid; gap: clamp(2rem, 4vw, 4.5rem); align-items: center;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
}
.pdf-copy h2 { font-size: var(--s2); }
.pdf-sub { margin-top: 0.6rem; color: var(--mist); font-size: var(--s1); }

.drop {
  margin-top: 2rem; display: flex; align-items: center; gap: 0.8rem;
  padding: 1.1rem 1.3rem; border-radius: 16px; cursor: pointer;
  border: 2px dashed rgba(244, 245, 242, 0.35); color: #E4E7EE;
  transition: border-color 0.25s, background 0.25s;
}
.drop:hover, .drop.is-over { border-color: var(--seal-light); background: rgba(127, 196, 168, 0.1); }
.drop.is-over { border-style: solid; }
.drop:focus-within { outline: 3px solid var(--seal-light); outline-offset: 4px; }
.drop-icon { flex: none; width: 28px; height: 28px; color: var(--seal-light); }

.advice { margin-top: 1rem; padding: 1rem 1.2rem; border-radius: 16px; background: rgba(244, 245, 242, 0.07); }
.advice-files { color: var(--mist); font-size: var(--s-1); overflow-wrap: anywhere; }
.advice-head { font-weight: 700; font-size: var(--s1); margin-top: 0.2rem; }
.advice-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.8rem; }
.advice-actions a {
  text-decoration: none; font-weight: 700; font-size: var(--s-1);
  padding: 0.45rem 0.95rem; border-radius: 999px; border: 1.5px solid rgba(244, 245, 242, 0.32);
}
.advice-actions a:first-child { background: var(--seal-light); border-color: var(--seal-light); color: var(--ink); }
.advice-actions a:hover { border-color: var(--paper); }
.advice-hint { margin-top: 0.7rem; font-size: var(--s-1); color: var(--mist); }

/* آلة الأوراق: دمج ← ضغط ← تقسيم */
.machine { display: grid; justify-items: center; gap: 1.8rem; }
.sheets { position: relative; width: clamp(9rem, 16vw, 13rem); aspect-ratio: 3 / 4; }
.sheet {
  position: absolute; inset: 0; border-radius: 8px; background: var(--sheet);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  display: grid; align-content: start; gap: 9%; padding: 16% 14%;
  transition: transform 0.95s var(--ease), opacity 0.6s;
}
.sheet b { display: block; height: 5px; border-radius: 3px; background: var(--rule); }
.sheet b:first-child { height: 34%; height: auto; aspect-ratio: 2.2; background: #E3E7E1; border-radius: 4px; }
.sheet b:nth-child(3) { width: 78%; }
.sheet b:nth-child(4) { width: 56%; }
.sheet:nth-child(1) b:first-child { background: #D6EADF; }
.sheet:nth-child(3) b:first-child { background: #F0DAD8; }

.machine[data-state="split"] .sheet:nth-child(1) { transform: translateX(118%) rotate(9deg); }
.machine[data-state="split"] .sheet:nth-child(2) { transform: translateY(-6%); }
.machine[data-state="split"] .sheet:nth-child(3) { transform: translateX(-118%) rotate(-9deg); }
.machine[data-state="merge"] .sheet:nth-child(1) { transform: translate(5%, 5%) rotate(2deg); }
.machine[data-state="merge"] .sheet:nth-child(2) { transform: none; }
.machine[data-state="merge"] .sheet:nth-child(3) { transform: translate(-5%, -5%) rotate(-2deg); }
.machine[data-state="compress"] .sheet:nth-child(1) { transform: scale(0.58) translate(4%, 4%) rotate(2deg); }
.machine[data-state="compress"] .sheet:nth-child(2) { transform: scale(0.58); }
.machine[data-state="compress"] .sheet:nth-child(3) { transform: scale(0.58) translate(-4%, -4%) rotate(-2deg); }

.machine-label { display: flex; gap: 0.4rem; padding: 0.3rem; border-radius: 999px; background: rgba(244, 245, 242, 0.08); }
.machine-label span { padding: 0.35rem 1rem; border-radius: 999px; font-size: var(--s-1); color: var(--mist); transition: background 0.4s, color 0.4s; }
.machine[data-state="merge"] [data-step="merge"],
.machine[data-state="compress"] [data-step="compress"],
.machine[data-state="split"] [data-step="split"] { background: var(--seal-light); color: var(--ink); font-weight: 700; }

.chips {
  width: 100%; max-width: 82rem; margin-inline: auto;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem;
}
.chips a {
  text-decoration: none; font-size: var(--s-1); color: #E4E7EE;
  padding: 0.45rem 1rem; border-radius: 999px; border: 1px solid rgba(244, 245, 242, 0.2);
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.chips a:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); transform: translateY(-2px); }

/* ───── ٤ مطبعة QR ───── */
@property --qr-rim {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
.s-qr {
  padding-inline: clamp(5.6rem, 8vw, 7.5rem);
  background:
    radial-gradient(80% 60% at 12% 0%, rgba(94, 208, 184, 0.2), transparent 58%),
    radial-gradient(70% 50% at 100% 100%, rgba(242, 165, 106, 0.16), transparent 55%),
    #0f242b;
  color: #e7f3ef;
  display: grid; align-items: center;
}
.qr-grid {
  width: 100%; max-width: 82rem; margin-inline: auto;
  display: grid; gap: clamp(2rem, 4vw, 4.5rem); align-items: center;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
}
.qr-copy h2 { font-size: var(--s2); }
.qr-sub { margin-top: 0.7rem; color: #c5ddd6; font-size: var(--s1); }
.s-qr .perks { color: #d5ebe4; }
.s-qr .perks li::before { background: #5ed0b8; }
.qr-cta {
  display: inline-block; margin-top: 1.6rem; text-decoration: none;
  background: #5ed0b8; color: #10262c;
  box-shadow: 0 10px 24px rgba(94, 208, 184, 0.28);
}
.qr-cta:hover { background: #7adcc8; }
.qr-stage { margin: 0; display: grid; place-items: center; }
.qr-card {
  position: relative; width: min(100%, 22rem);
  padding: 1.4rem 1.4rem 1.1rem; border-radius: 1.4rem;
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(94, 208, 184, 0.18), transparent 60%),
    #14343c;
  text-align: center;
  animation: qr-breath 5.6s ease-in-out infinite;
}
.qr-card::after {
  content: "";
  position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--qr-rim), transparent 0deg, #5ed0b8 70deg, #f2a56a 120deg, transparent 170deg, transparent 230deg, #8ec8e8 290deg, #5ed0b8 330deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: qr-rim 12s linear infinite;
}
.qr-mark { width: min(100%, 16rem); height: auto; margin-inline: auto; border-radius: 0.6rem; }
.qr-card figcaption { margin-top: 0.8rem; font-weight: 700; color: #e7f3ef; }
@keyframes qr-rim { to { --qr-rim: 360deg; } }
@keyframes qr-breath {
  0%, 100% { box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28), 0 0 22px rgba(94, 208, 184, 0.16); }
  50% { box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28), 0 0 32px rgba(242, 165, 106, 0.22); }
}

/* ───── ١ الروابط ───── */
.s-links {
  background:
    radial-gradient(60% 50% at 85% 10%, rgba(127, 196, 168, 0.18), transparent 70%),
    radial-gradient(50% 45% at 10% 90%, rgba(163, 38, 30, 0.07), transparent 70%),
    var(--sheet);
  display: grid; align-content: safe center; justify-items: center; gap: clamp(1.4rem, 4vh, 3rem);
  overflow: hidden;
}
.finale { text-align: center; }
.finale h1 { font-family: var(--display); font-weight: 700; font-size: var(--s3); line-height: 1.3; max-width: 18ch; margin-inline: auto; }
.finale-sub { margin-top: 0.9rem; font-size: var(--s1); color: var(--ink-soft); }
.finale-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; }
.big-btn {
  text-decoration: none; font-weight: 700; font-size: var(--s1);
  padding: 1rem 2.2rem; border-radius: 18px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.big-btn:hover { transform: translateY(-3px); }
.big-btn-cer { background: var(--seal); color: #fff; box-shadow: 0 12px 28px rgba(15, 107, 79, 0.3); }
.big-btn-pdf { background: var(--ink); color: var(--paper); box-shadow: 0 12px 28px rgba(26, 36, 64, 0.28); }
.big-btn-qr { background: #143e4a; color: #f4f8f6; box-shadow: 0 12px 28px rgba(20, 62, 74, 0.32); }
.big-btn-upl { background: #1a3148; color: #e8eef6; box-shadow: 0 12px 28px rgba(26, 49, 72, 0.32); }
.links-grid {
  width: 100%; max-width: 72rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
  padding-top: 2rem; border-top: 1px solid var(--rule);
}
.links-col h2 { font-size: var(--s0); color: var(--ink); }
.links-col ul { list-style: none; padding: 0; margin-top: 0.6rem; display: grid; gap: 0.1rem; font-size: var(--s-1); }
.links-col a { text-decoration: none; color: var(--ink-soft); }
.links-col a:hover { color: var(--seal); text-decoration: underline; text-underline-offset: 5px; }
[data-tool].is-off { display: none !important; }
.s-qr .qr-sub a, .s-upl .upl-sub a { color: inherit; }
.more-links { margin-top: 1rem; color: var(--ink-soft); font-size: var(--s-1); }
.more-links a { color: var(--ink); }
.foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 1.5rem; font-size: var(--s-1); color: var(--ink-soft); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--seal); }

/* ───── أسهم وتقدم ───── */
.arrow {
  position: fixed; z-index: 15; top: 50%; translate: 0 -50%;
  width: 3.1rem; height: 3.1rem; display: grid; place-items: center;
  border: 1px solid rgba(26, 36, 64, 0.1); border-radius: 50%; cursor: pointer;
  background: rgba(252, 252, 250, 0.85); color: var(--ink);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(26, 36, 64, 0.14);
  transition: opacity 0.3s, transform 0.2s var(--ease);
}
.arrow svg { width: 22px; height: 22px; }
.arrow:hover { transform: scale(1.08); }
.arrow[disabled] { opacity: 0; pointer-events: none; }
.arrow-prev { inset-inline-start: 1.1rem; }
.arrow-next { inset-inline-end: 1.1rem; }

.progress { position: fixed; z-index: 15; inset-inline: 0; bottom: 0; height: 3px; background: rgba(26, 36, 64, 0.08); }
.progress span {
  display: block; height: 100%; width: var(--p, 25%); margin-inline-start: 0;
  background: var(--seal-light); transition: width 0.6s var(--ease);
}

/* ───── رفع الملفات ───── */
.s-upl {
  background:
    radial-gradient(80% 60% at 88% 8%, rgba(60, 157, 255, 0.16), transparent 58%),
    radial-gradient(70% 50% at 8% 100%, rgba(215, 176, 122, 0.14), transparent 55%),
    #071018;
  color: #e8eef6;
  display: grid; align-items: center;
}
.upl-grid {
  width: 100%; max-width: 82rem; margin-inline: auto;
  display: grid; gap: clamp(2rem, 4vw, 4.5rem); align-items: center;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
}
.upl-copy h2 { font-size: var(--s2); }
.upl-sub { margin-top: 0.7rem; color: #93a4b8; font-size: var(--s1); }
.s-upl .perks { color: #c5d4e4; }
.s-upl .perks li::before { background: #3c9dff; }
.upl-cta {
  display: inline-block; margin-top: 1.6rem; text-decoration: none;
  background: #3c9dff; color: #06203c;
  box-shadow: 0 10px 24px rgba(60, 157, 255, 0.28);
}
.upl-cta:hover { background: #69b4ff; }
.upl-stage { margin: 0; display: grid; place-items: center; }
.upl-card {
  width: min(100%, 22rem);
  padding: 1.4rem 1.4rem 1.1rem; border-radius: 1.4rem;
  background: rgba(12, 24, 36, 0.86);
  border: 1px solid rgba(186, 214, 236, 0.14);
  text-align: center;
}
.upl-mark { width: min(100%, 16rem); height: auto; margin-inline: auto; border-radius: 0.8rem; }
.upl-card figcaption { margin-top: 0.8rem; font-weight: 700; color: #e8eef6; }

/* ───── تجاوب ───── */
@media (max-width: 960px) {
  .cer-grid, .pdf-grid, .qr-grid, .upl-grid { grid-template-columns: minmax(0, 1fr); }
  .s-cer, .s-pdf, .s-qr, .s-upl { align-content: start; }
  .stage, .qr-stage, .upl-stage { order: -1; }
  .machine { display: none; }
  .drop { margin-top: 1.4rem; }
  .links-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  :root { --bar-h: 4rem; }
  .bar { top: 0.6rem; padding-inline-start: 0.8rem; }
  .brand span { display: none; }
  .tabs a { padding: 0.4rem 0.7rem; }
  .arrow { display: none; }
  .links-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .s-links { align-content: start; padding-top: calc(var(--bar-h) + 2.5rem); overflow-y: auto; }
  .cta { justify-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  .deck { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .slide [data-in], .s-cer .stage { opacity: 1; transform: none; }
}
