/*
 * الصفحة الرئيسية: كحلي وأوف وايت مع تدرّج كحلي ← ليموني بالبداية والنهاية. خمس محطات بس:
 * جرّبها الآن ← كيف تعمل (موبايل بيتغيّر مع كل خطوة) ← بطاقة NFC ← الأسئلة ← ابدأ.
 */

body {
  overflow-x: clip;
}

/* ============ النافبار ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 247, 237, 0.94);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  /* بالتطبيق المثبّت (شريط حالة شفاف) الشريط بينزل تحت الساعة والبطارية؛ بسفاري القيمة صفر */
  padding-top: env(safe-area-inset-top, 0px);
  transition: border-color 0.2s ease, background 0.25s ease;
}

.nav.is-scrolled {
  border-bottom-color: var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}

.nav .kt-logo {
  font-size: 1.05rem;
}

.nav-links {
  display: flex;
  gap: 32px;
  margin-inline-start: auto;
}

.nav-links a,
.nav-login {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.nav-links a:hover,
.nav-login:hover {
  color: var(--navy);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* فوق الـ hero الكحلي: النافبار كحلي والكتابة بيضا */
.is-home .nav:not(.is-light) {
  background: var(--navy);
  border-bottom-color: rgba(246, 247, 237, 0.08);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* على الكحلي زر «أنشئ صفحتك» ليموني؛ لما ينزل عالمحتوى الفاتح بيرجع كحلي */
.is-home .nav:not(.is-light) .btn-primary {
  background: var(--lime);
  color: var(--navy);
}

.is-home .nav:not(.is-light) .btn-primary:hover {
  background: var(--lime-2);
}

.is-home .nav:not(.is-light) .kt-logo,
.is-home .nav:not(.is-light) .nav-links a,
.is-home .nav:not(.is-light) .nav-login {
  color: #f6f7ed;
}

.is-home .nav:not(.is-light) .nav-links a,
.is-home .nav:not(.is-light) .nav-login {
  opacity: 0.78;
}

.is-home .nav:not(.is-light) .nav-links a:hover,
.is-home .nav:not(.is-light) .nav-login:hover {
  opacity: 1;
}

.is-home .nav:not(.is-light) .btn-primary {
  background: #f6f7ed;
  color: var(--navy);
}

.kt-mark.on-dark,
.is-home .nav:not(.is-light) .kt-mark.on-light {
  display: none;
}

.is-home .nav:not(.is-light) .kt-mark.on-dark {
  display: block;
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .nav-actions {
    margin-inline-start: auto;
  }
}

@media (max-width: 420px) {
  .nav .kt-word-ar {
    display: none;
  }

  .nav-actions {
    gap: 12px;
  }

  .nav-login {
    white-space: nowrap;
  }

  .nav .kt-lang {
    min-width: 32px;
    height: 30px;
    padding: 0 8px;
  }
}

/* موبايل ضيق كتير: «دخول» بتنشال من فوق (موجودة تحت بآخر الصفحة) */
@media (max-width: 380px) {
  .nav-login {
    display: none;
  }
}

/* أصغر الشاشات (320): مسافات أقل، وزر «أنشئ صفحتك» أصغر شوي ليساع جنب اللوغو واللغة */
@media (max-width: 350px) {
  .nav-inner {
    gap: 12px;
  }
  .nav-actions {
    gap: 10px;
  }
  .nav-actions .btn-sm {
    padding-inline: 0.9em;
  }
}

/* ============ عام ============ */
.section {
  padding: 112px 0;
}

/* كل أقسام الصفحة بنفس الأوف وايت (البطاقات والعناصر بس بيضا)، وبلا خطوط فاصلة قاسية */
.section-tint {
  background: var(--bg);
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head h2,
.nfc h2,
.faq-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  text-wrap: balance;
}

.section-head p:not(.kicker) {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0;
}

.kicker {
  margin: 0 0 14px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--navy-2);
}

.kicker::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  margin-inline-end: 10px;
  vertical-align: middle;
  background: currentColor;
}

@media (max-width: 960px) {
  .section {
    padding: 64px 0;
  }
}

/* الهاتف: إطار كحلي بسيط */
.phone {
  width: 236px;
  padding: 10px;
  border-radius: 38px;
  background: #050f1f;
}

.phone-screen {
  position: relative;
  overflow: hidden;
  border-radius: 29px;
  background: #f6f7ed;
  aspect-ratio: 208 / 442;
}

.phone-screen > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

/* ============ 1. Hero ============ */
/* التدرّج الكحلي ← الليموني: تدرّج طويل وناعم بمسار oklch (كحلي ← تركوازي ← أخضر ← ليموني)،
   الكحلي بياخد الجهة اللي فيها النص، والليموني بيوصل عند الموبايل. بالعربي الموبايل عاليسار؛ بالإنجليزي معكوس.
   المتصفحات القديمة (بلا in oklch) بتاخد نفس المسار بدرجات مكتوبة يدوياً. */
:root {
  --hero-angle: 242deg;
  --cta-angle: 62deg;
}

[dir="ltr"] {
  --hero-angle: 118deg;
  --cta-angle: 298deg;
}

/* آخر الـ hero بيذوب بالأوف وايت تبع القسم اللي بعده */
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: clamp(90px, 16vh, 160px);
  background: linear-gradient(180deg, rgba(246, 247, 237, 0) 0%, rgba(246, 247, 237, 0.5) 60%, var(--bg) 100%);
  pointer-events: none;
  z-index: 0;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 96px;
  background-color: var(--navy);
  background-image: linear-gradient(var(--hero-angle), var(--navy) 0%, var(--navy) 25%, #0a4f66 48%, #0f8a83 66%, #7cc06a 84%, var(--lime) 100%);
  color: #f6f7ed;
}

@supports (background: linear-gradient(in oklch, red, blue)) {
  .hero {
    background-image: linear-gradient(var(--hero-angle) in oklch, var(--navy) 0%, var(--navy) 25%, var(--lime) 100%);
  }
}

/* دوائر رفيعة بتتوسّع على مهل خلف الموبايل: إشارة هادية للتواصل */
.rings {
  position: absolute;
  left: 24%;
  top: 50%;
  width: 380px;
  height: 380px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.rings span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(138, 152, 168, 0.4);
  opacity: 0;
  animation: ring 7.5s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
}

.rings span:nth-child(2) { animation-delay: 2.5s; }
.rings span:nth-child(3) { animation-delay: 5s; }

@keyframes ring {
  0% { transform: scale(0.55); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 64px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  padding: 6px 14px;
  border: 1px solid rgba(246, 247, 237, 0.18);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(246, 247, 237, 0.85);
}

.live-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--lime);
  animation: live 2s ease-out infinite;
}

@keyframes live {
  0% { box-shadow: 0 0 0 0 rgba(219, 230, 76, 0.45); }
  100% { box-shadow: 0 0 0 8px rgba(219, 230, 76, 0); }
}

.hero h1 {
  text-wrap: balance;
  font-size: clamp(2.3rem, 5vw, 3.7rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
}

.hero h1 span {
  color: var(--lime);
}

.lead {
  text-wrap: pretty;
  max-width: 32em;
  font-size: 1.12rem;
  color: rgba(246, 247, 237, 0.75);
  margin-bottom: 32px;
}

/* ---------- جرّبها الآن ---------- */
.studio {
  display: grid;
  gap: 14px;
  max-width: 520px;
}

.studio-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(246, 247, 237, 0.85);
}

.studio-input {
  position: relative;
}

.studio-input input {
  width: 100%;
  padding: 15px 18px;
  padding-inline-end: 46px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(246, 247, 237, 0.22);
  background: rgba(246, 247, 237, 0.07);
  color: #f6f7ed;
  font: inherit;
  font-size: 1.08rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.studio-input input::placeholder {
  color: rgba(246, 247, 237, 0.45);
}

.studio-input input:focus {
  outline: none;
  border-color: #f6f7ed;
  background: rgba(246, 247, 237, 0.1);
}

.studio-input i {
  position: absolute;
  top: 50%;
  inset-inline-end: 18px;
  transform: translateY(-50%);
  color: rgba(246, 247, 237, 0.45);
  pointer-events: none;
}

.studio-tpls {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: start;
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  background: rgba(246, 247, 237, 0.07);
  width: fit-content;
  max-width: 100%;
}

.studio-tpls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: rgba(246, 247, 237, 0.72);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.studio-tpls button:hover {
  color: #f6f7ed;
}

.studio-tpls button[aria-checked="true"] {
  background: #f6f7ed;
  color: var(--navy);
}

.studio-tpls button i {
  font-size: 0.85em;
}

.studio-colors {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
}

.studio-colors .sw {
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: 50%;
  border: 0;
  background: var(--c);
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(246, 247, 237, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.studio-colors .sw:hover {
  transform: scale(1.12);
}

.studio-colors .sw[aria-checked="true"] {
  box-shadow: 0 0 0 2px var(--navy), 0 0 0 4px #f6f7ed;
}

/* «ألوان القالب»: دائرة نصها أبيض ونصها رمادي */
.studio-colors .sw-auto {
  --c: linear-gradient(135deg, #f6f7ed 50%, var(--slate) 50%);
}

.studio-sig {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  margin: 0;
  font-size: 0.92rem;
  color: rgba(246, 247, 237, 0.8);
}

.studio-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 8px;
}

.studio-actions .fa-arrow-left {
  font-size: 0.85em;
  transition: translate 0.15s ease;
}

.studio-actions .btn:hover .fa-arrow-left {
  translate: -3px 0;
}

.studio-note {
  font-size: 0.88rem;
  color: rgba(246, 247, 237, 0.6);
}

/* ---------- موبايل الـ hero: صفحة حية ---------- */
.hero-visual {
  position: relative;
  display: grid;
  justify-items: center;
}

.phone-hero {
  position: relative;
  width: 290px;
  box-shadow: 0 0 0 1px rgba(246, 247, 237, 0.14), 0 40px 70px -30px rgba(0, 0, 0, 0.7);
  animation: float 7s ease-in-out infinite;
}

/* المعاينة الحية فوق الصورة الثابتة: بتبيّن بس توصل */
.phone-hero iframe {
  position: absolute;
  top: 0;
  right: 0;
  border: 0;
  transform-origin: top right;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.phone-hero.is-live iframe {
  opacity: 1;
  background: #f6f7ed;
}

/* لما تبيّن المعاينة الحية، الصورة الثابتة ورا بتختفي (كانت تبيّن تحت آخر الصفحة لما تنزل لآخرها) */
.phone-hero.is-live .phone-fallback {
  visibility: hidden;
  transition: visibility 0s 0.4s;
}

/* «تصميم خاص» مقفل: الصفحة مغبّشة وفوقها قفل */
.phone-lock {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  background: rgba(0, 31, 63, 0.45);
  color: #f6f7ed;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.phone-lock-ico {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: rgba(246, 247, 237, 0.16);
  border: 1px solid rgba(246, 247, 237, 0.5);
  font-size: 1.3rem;
}

.phone-lock b {
  font-size: 1.05rem;
}

.phone-lock small {
  font-size: 0.82rem;
  opacity: 0.8;
}

.phone-hero.is-locked .phone-lock {
  opacity: 1;
}

.phone-hero.is-locked + .fc-link {
  opacity: 0;
  visibility: hidden;
}

.phone-hero.is-locked iframe,
.phone-hero.is-locked .phone-fallback {
  filter: blur(16px);
  transition: filter 0.3s ease;
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 14px;
  border-radius: var(--radius);
  background: #f6f7ed;
  color: var(--navy);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6);
  line-height: 1.35;
  animation: float 6s ease-in-out infinite;
  animation-delay: -3s;
}

.float-card small {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
}

.float-card b {
  display: block;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fc-link {
  inset-inline-start: 0;
  bottom: 14%;
}

.fc-ico {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--navy);
  color: #f6f7ed;
  flex: none;
}

@media (max-width: 960px) {
  /* موبايل وتابلت: الـ hero كله بشاشة وحدة.
     العنوان والجملة فوق، وتحتهم الموبايل و«جرّبها» جنب بعض، فبيشوف التغيير وهو عم يكتب.
     عرض الموبايل من طول الشاشة (svh = الشاشة مع شريط المتصفح)، ليبيّن كامل حتى عالشاشات القصيرة */
  .hero {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 72px);
    min-height: calc(100svh - 72px);
    padding: 20px 0 28px;
  }

  /* بالموبايل الموبايل الصغير عاليمين بالعربي (أول عمود) وعاليسار بالإنجليزي: الليموني بزاويته تحت،
     و«جرّبها» (كتابة بيضا) بتضل على الكحلي */
  /* الموبايل الصغير تحت يمين بالعربي (أول عمود) وتحت يسار بالإنجليزي: الليموني بيوصل عنده، و«جرّبها» بتضل على الكحلي */
  :root {
    --hero-angle: 152deg;
  }

  [dir="ltr"] {
    --hero-angle: 208deg;
  }

  /* عنصر flex ما بيصغر أقل من محتواه إلا بـ min-width: 0 (وعرضه من .container، بهامش 16px) */
  .hero > .container,
  .nfc > .container {
    min-width: 0;
  }

  .hero-inner {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "h h"
      "l l"
      "p s";
    gap: 0 16px;
    align-items: center;
  }

  .hero-copy {
    display: contents;
  }

  .eyebrow {
    display: none;
  }

  .hero h1 {
    grid-area: h;
    font-size: clamp(1.75rem, 7.4vw, 2.6rem);
    margin-bottom: 8px;
  }

  .lead {
    grid-area: l;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 18px;
  }

  .hero-visual {
    grid-area: p;
  }

  .phone-hero {
    width: min(clamp(124px, calc((100svh - 300px) * 0.47), 230px), 44vw);
    padding: 7px;
    border-radius: 28px;
    animation: none;
  }

  .phone-hero .phone-screen {
    border-radius: 22px;
  }

  .fc-link {
    display: none;
  }

  .phone-lock-ico {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .phone-lock b {
    font-size: 0.85rem;
  }

  .phone-lock small {
    font-size: 0.7rem;
  }

  .studio {
    grid-area: s;
    min-width: 0;
    max-width: none;
    gap: 10px;
  }

  .studio-label {
    font-size: 0.86rem;
  }

  .studio-input input {
    padding: 11px 14px;
    padding-inline-end: 38px;
    font-size: 1rem; /* 16px: أقل من هيك آيفون بيعمل زوم لما تكتب */
  }

  .studio-input i {
    inset-inline-end: 14px;
    font-size: 0.85rem;
  }

  .studio-tpls {
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .studio-tpls button {
    min-width: 0;
    padding: 8px 4px;
    font-size: 0.84rem;
    line-height: 1.2;
    white-space: normal;
  }

  .studio-colors {
    flex-wrap: wrap;
    gap: 8px;
    min-height: 0;
  }

  .studio-colors .sw {
    width: 24px;
    height: 24px;
  }

  .studio-sig {
    min-height: 0;
    font-size: 0.82rem;
    align-items: flex-start;
  }

  .studio-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    margin-top: 2px;
  }

  .studio-actions .btn {
    width: 100%;
    padding: 12px 8px;
    font-size: 0.95rem;
    white-space: normal;
  }

  /* عالموبايل الزر بيوقع على الجزء التركوازي من التدرّج، فالكحلي أوضح وأرقى من الأصفر (عاللابتوب بيضل أصفر على الكحلي) */
  .studio-actions .btn-lime {
    background: var(--navy);
    color: #f6f7ed;
    box-shadow: 0 0 0 1px rgba(246, 247, 237, 0.28), 0 14px 30px -16px rgba(0, 0, 0, 0.6);
  }

  .studio-actions .btn-lime:hover {
    background: var(--navy-2);
  }

  .studio-actions .fa-arrow-left {
    display: none;
  }

  .studio-note {
    font-size: 0.74rem;
    text-align: center;
  }

  .rings {
    left: 26%;
    top: 72%;
    width: 300px;
    height: 300px;
  }
}

/* تابلت: الموبايل أكبر، و«جرّبها» بعرض مريح */
@media (min-width: 561px) and (max-width: 960px) {
  .hero-inner {
    gap: 0 32px;
  }

  .studio {
    max-width: 420px;
  }

  .studio-tpls {
    grid-template-columns: repeat(4, auto);
    width: fit-content;
  }
}

/* شاشات قصيرة كتير (آيفون SE مع شريط المتصفح): منشيل الجملة الصغيرة تحت الزر */
@media (max-width: 960px) and (max-height: 600px) {
  .studio-note {
    display: none;
  }

  .lead {
    margin-bottom: 12px;
  }
}

/* ============ 2. كيف تعمل ============ */
.story {
  padding: 112px 0 64px;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.story-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* كل خطوة بطول نص شاشة تقريباً: الموبايل بيتغيّر وانت عم تمرّر */
.story-step {
  position: relative;
  min-height: 46vh;
  padding: 8px 0 8px;
  padding-inline-start: 28px;
  border-inline-start: 2px solid var(--line);
  opacity: 0.35;
  cursor: pointer;
  transition: opacity 0.35s ease;
}

.story-step::before {
  content: "";
  position: absolute;
  top: 8px;
  inset-inline-start: -2px;
  width: 2px;
  height: 0;
  background: var(--navy);
  transition: height 0.5s ease;
}

.story-step.is-active {
  opacity: 1;
}

.story-step.is-active::before {
  height: 100%;
}

.story-num {
  display: block;
  margin-bottom: 14px;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: var(--slate);
}

.story-step h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  margin-bottom: 10px;
}

.story-step p {
  max-width: 28em;
  margin: 0;
  font-size: 1.05rem;
  color: var(--muted);
}

.pro-tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--navy);
  color: #f6f7ed;
  font-family: "Manrope", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.story-stage {
  position: sticky;
  top: max(96px, calc(50vh - 300px));
  display: grid;
  justify-items: center;
}

.phone-story {
  container-type: inline-size; /* مقاسات المشاهد جوّاه بالـ cqw */
  width: 272px;
  box-shadow: 0 30px 60px -30px rgba(0, 31, 63, 0.55);
}

/* المشاهد فوق بعض، والفعّال بيبيّن */
.scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.scene > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.phone-story[data-scene="scan"] .scene-scan,
.phone-story[data-scene="page"] .scene-page,
.phone-story[data-scene="save"] .scene-save,
.phone-story[data-scene="stats"] .scene-stats {
  opacity: 1;
  transform: none;
}

/* 1. الكاميرا */
.scene-scan {
  display: grid;
  place-items: center;
  background: #1a2230;
}

.scan-frame {
  position: relative;
  padding: 6.62cqw;
  background: #f6f7ed;
  border-radius: 5.15cqw;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.35);
}

/* زوايا الكاميرا */
.scan-frame::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 7.35cqw;
  background:
    linear-gradient(#f6f7ed, #f6f7ed) top left / 9.56cqw 1.10cqw no-repeat,
    linear-gradient(#f6f7ed, #f6f7ed) top left / 1.10cqw 9.56cqw no-repeat,
    linear-gradient(#f6f7ed, #f6f7ed) top right / 9.56cqw 1.10cqw no-repeat,
    linear-gradient(#f6f7ed, #f6f7ed) top right / 1.10cqw 9.56cqw no-repeat,
    linear-gradient(#f6f7ed, #f6f7ed) bottom left / 9.56cqw 1.10cqw no-repeat,
    linear-gradient(#f6f7ed, #f6f7ed) bottom left / 1.10cqw 9.56cqw no-repeat,
    linear-gradient(#f6f7ed, #f6f7ed) bottom right / 9.56cqw 1.10cqw no-repeat,
    linear-gradient(#f6f7ed, #f6f7ed) bottom right / 1.10cqw 9.56cqw no-repeat;
}

.scan-qr {
  width: 48.53cqw;
  height: 48.53cqw;
}

.scan-qr canvas,
.scan-qr img {
  width: 100% !important;
  height: 100% !important;
}

.scan-line {
  position: absolute;
  inset-inline: 3.68cqw;
  top: 4.41cqw;
  height: 0.74cqw;
  border-radius: 0.74cqw;
  background: #4ade80;
  animation: scan 2.4s ease-in-out infinite;
}

@keyframes scan {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 150px; }
}

.scan-pill {
  position: absolute;
  bottom: 11.03cqw;
  inset-inline: 5.88cqw;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.94cqw;
  padding: 3.68cqw 4.41cqw;
  border-radius: 367.28cqw;
  background: rgba(246, 247, 237, 0.95);
  color: var(--navy);
  font-size: max(10px, 4.82cqw);
  font-weight: 600;
  translate: 0 12px;
  opacity: 0;
  transition: translate 0.4s ease 0.6s, opacity 0.4s ease 0.6s;
}

.phone-story[data-scene="scan"] .scan-pill {
  translate: 0 0;
  opacity: 1;
}

/* 3. حفظ جهة الاتصال: نافذة بتطلع من تحت */
.sheet {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: grid;
  justify-items: center;
  gap: 0.74cqw;
  padding: 3.68cqw 6.62cqw 8.09cqw;
  border-radius: 7.35cqw 7.35cqw 0 0;
  background: #f6f7ed;
  box-shadow: 0 -20px 40px -10px rgba(0, 31, 63, 0.35);
  text-align: center;
  translate: 0 100%;
  transition: translate 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s;
}

.phone-story[data-scene="save"] .sheet {
  translate: 0 0;
}

.scene-save::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 31, 63, 0.35);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.phone-story[data-scene="save"] .scene-save::after {
  opacity: 1;
}

.sheet {
  z-index: 1;
}

.sheet-grip {
  width: 13.24cqw;
  height: 1.47cqw;
  margin-bottom: 4.41cqw;
  border-radius: 0.74cqw;
  background: #d5dbe2;
}

.sheet-av {
  width: 20.59cqw;
  height: 20.59cqw;
  margin-bottom: 2.21cqw;
  border-radius: 50%;
}

.sheet b {
  font-size: max(12.5px, 5.88cqw);
}

.sheet small {
  font-size: max(9px, 4.24cqw);
  color: var(--muted);
}

.sheet-row {
  display: flex;
  align-items: center;
  gap: 2.94cqw;
  width: 100%;
  margin: 4.41cqw 0;
  padding: 3.68cqw 4.41cqw;
  border-radius: 3.68cqw;
  background: var(--off-white);
  font-family: "Manrope", sans-serif;
  font-size: max(10px, 4.82cqw);
  white-space: nowrap;
}

.sheet-row i {
  color: var(--navy-2);
}

.sheet-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 14.71cqw;
  border-radius: 3.68cqw;
  background: var(--navy);
  color: #f6f7ed;
  font-size: max(10.5px, 5cqw);
  font-weight: 600;
  transition: background 0.3s ease;
}

.sheet-btn > span {
  grid-area: 1 / 1;
  transition: opacity 0.25s ease;
}

.sb-done {
  opacity: 0;
}

.phone-story.is-saved .sheet-btn {
  background: #157347;
}

.phone-story.is-saved .sb-idle {
  opacity: 0;
}

.phone-story.is-saved .sb-done {
  opacity: 1;
}

/* 4. الإحصائيات */
.scene-stats {
  padding: 44px 18px 18px;
  background: var(--off-white);
  color: var(--navy);
}

.ss-title {
  margin: 0 0 2.21cqw;
  font-size: max(10.5px, 5cqw);
  color: var(--muted);
}

.ss-big b {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: max(26px, 12.35cqw);
  font-weight: 600;
  line-height: 1.1;
  direction: ltr;
  text-align: right;
}

.ss-big small {
  font-size: max(9.5px, 4.41cqw);
  color: #157347;
  font-weight: 600;
}

.ss-chart {
  display: flex;
  align-items: flex-end;
  gap: 1.47cqw;
  height: 44.12cqw;
  margin: 6.62cqw 0 5.88cqw;
  padding: 4.41cqw 3.68cqw 0;
  border-radius: 4.41cqw;
  background: #f6f7ed;
  direction: ltr;
}

.ss-chart i {
  flex: 1;
  height: 4%;
  border-radius: 0.74cqw 0.74cqw 0 0;
  background: var(--navy-2);
  transition: height 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d);
}

.ss-chart i:last-child {
  background: var(--navy);
}

.phone-story[data-scene="stats"] .ss-chart i {
  height: var(--h);
}

.ss-rows {
  display: grid;
  gap: 3.68cqw;
  padding: 4.41cqw;
  border-radius: 4.41cqw;
  background: #f6f7ed;
}

.ss-rows > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.84cqw 2.94cqw;
  align-items: center;
  font-size: max(9px, 4.35cqw);
}

.ss-rows span {
  color: var(--ink-2);
}

.ss-rows b {
  font-family: "Manrope", sans-serif;
  font-weight: 600;
}

.ss-rows i {
  grid-column: 1 / -1;
  position: relative;
  height: 1.84cqw;
  border-radius: 1.10cqw;
  background: #e4e8d8;
  overflow: hidden;
}

.ss-rows i::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 0;
  border-radius: 1.10cqw;
  background: var(--navy-2);
  transition: width 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s;
}

.phone-story[data-scene="stats"] .ss-rows i::after {
  width: var(--w);
}

@media (max-width: 860px) {
  /* موبايل: الموبايل ثابت فوق، والخطوات بتمرّ تحته */
  .story {
    padding-top: 80px;
  }

  .story .section-head {
    margin-bottom: 24px;
  }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .story-stage {
    order: -1;
    top: 76px;
    z-index: 2;
    padding: 12px 0 20px;
    background: linear-gradient(var(--bg) 88%, rgba(246, 247, 237, 0));
  }

  .phone-story {
    width: 196px;
    padding: 7px;
    border-radius: 28px;
  }

  .phone-story .phone-screen {
    border-radius: 22px;
  }

  .story-step {
    min-height: 52vh;
  }

  /* المشاهد صغيرة: منصغّر محتواها */
  .sheet,
  .scan-frame {
    zoom: 0.7;
  }

  .scene-stats {
    zoom: 0.62;
  }

  .story-step:last-child {
    min-height: 40vh;
  }

  .scan-pill {
    zoom: 0.75;
  }
}

/* ============ 3. NFC ============ */
.nfc {
  padding: 96px 0 112px;
  background: var(--bg);
}

.nfc-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 64px;
}

.nfc-copy > p:not(.kicker) {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 30em;
}

.nfc-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.nfc-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.92rem;
}

.nfc-list i {
  color: var(--navy-2);
}

.card-stage {
  display: grid;
  justify-items: center;
  gap: 22px;
  padding: 32px 0;
  perspective: 1200px;
}

.card3d {
  position: relative;
  width: min(400px, 92%);
  aspect-ratio: 85.6 / 54;
  container-type: inline-size;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
  cursor: pointer;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  animation: float 7s ease-in-out infinite;
}

.card3d:focus-visible {
  outline: none;
}

.card3d:focus-visible .card-face {
  box-shadow: 0 0 0 3px var(--navy-2);
}

.card3d.is-dragging {
  transition: none;
}

.card3d.is-animating {
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* سماكة البطاقة */
.card3d::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 4.6% / 7.3%;
  background: #061226;
  transform: translateZ(-2px);
  box-shadow: 0 40px 60px -30px rgba(0, 31, 63, 0.7);
}

.card-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 4cqw;
  border-radius: 4.6% / 7.3%;
  background: var(--navy);
  color: var(--off-white);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  overflow: hidden;
}

.cf-mark {
  width: 19cqw;
  height: 19cqw;
}

.cf-word {
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 5.6cqw;
  letter-spacing: 0.08em;
}

.cf-tap {
  position: absolute;
  top: 7%;
  inset-inline-end: 6%;
  width: 7cqw;
  height: 7cqw;
  color: var(--lime);
}

/* translateZ بعد الدوران: الضهر بيصير قدّام طبقة السماكة لما تنقلب */
.card-back {
  transform: rotateY(180deg) translateZ(3px);
  background: var(--off-white);
  color: var(--navy);
  box-shadow: inset 0 0 0 1px var(--line);
}

/* الرمز بنص ضهر البطاقة، بحجم متناسب معها (حوالي ثلث عرضها) مش مالي الوجه */
.cb-qr {
  width: 30cqw;
  aspect-ratio: 1;
}

.cb-qr img,
.cb-qr canvas {
  display: block;
  width: 100% !important;
  height: auto !important;
}


.card-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--off-white);
  font-size: 0.85rem;
  color: var(--ink-2);
}

@media (max-width: 960px) {
  /* القسم كله بشاشة وحدة: النص، والإضافات، والبطاقة كاملة */
  .nfc {
    display: flex;
    align-items: center;
    min-height: calc(100svh - 72px);
    padding: 24px 0;
  }

  .nfc-inner {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .nfc h2 {
    font-size: 1.6rem;
    margin-bottom: 8px;
  }

  .nfc-copy > p:not(.kicker) {
    font-size: 1rem;
    margin-bottom: 0;
  }

  .nfc-list {
    margin-top: 14px;
    gap: 8px;
  }

  .nfc-list li {
    padding: 6px 12px;
    font-size: 0.86rem;
  }

  .card-stage {
    padding: 14px 0 0;
    gap: 14px;
  }

  .card3d {
    width: min(300px, 80vw, calc((100svh - 420px) * 1.58));
    min-width: 200px;
  }

  /* الأسئلة: أصغر شوي لتنقرا كلها بشاشة وحدة */
  .faq-head h2 {
    font-size: 1.6rem;
  }

  .faq-head p:not(.kicker) {
    margin-bottom: 0;
  }

  .faq-list summary {
    padding-block: 15px;
    font-size: 0.98rem;
  }

  #faq {
    padding: 36px 0;
  }

  .cta {
    padding: 56px 0;
  }

  .cta-mark {
    margin-bottom: 18px;
  }

  .cta-steps {
    margin-bottom: 24px;
  }
}

/* شاشات قصيرة: منشيل الزيادات ليضل القسم بشاشة وحدة */
@media (max-width: 960px) and (max-height: 600px) {
  .nfc .kicker,
  .card-hint {
    display: none;
  }

  .nfc-copy > p:not(.kicker) {
    font-size: 0.92rem;
  }

  .nfc-list li {
    padding: 4px 10px;
    font-size: 0.8rem;
  }

  .nfc-list {
    margin-top: 10px;
  }

  .nfc h2 {
    font-size: 1.35rem;
  }

  .card3d {
    min-width: 180px;
  }

  .faq .kicker,
  .faq-head p:not(.kicker) {
    display: none;
  }

  .faq-head h2 {
    font-size: 1.35rem;
    margin-bottom: 6px;
  }

  .faq {
    gap: 12px;
  }

  .faq-list summary {
    padding-block: 10px;
    font-size: 0.92rem;
  }

  #faq {
    padding: 20px 0;
  }

  .cta {
    padding: 32px 0;
  }

  .cta-mark {
    display: none;
  }

  .cta h2 {
    font-size: 1.5rem;
  }
}

/* ============ 4. الأسئلة ============ */
.faq {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 56px;
  align-items: start;
}

.faq-head p:not(.kicker) {
  color: var(--muted);
}

.faq-head a {
  color: var(--navy);
  font-weight: 600;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 22px 0;
  padding-inline-end: 40px;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  transition: color 0.15s ease;
}

.faq-list summary:hover {
  color: var(--navy-2);
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

/* + بيدور وبيصير × */
.faq-list summary::after {
  content: "+";
  position: absolute;
  inset-inline-end: 0;
  top: 50%;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-family: "Manrope", sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1;
  color: var(--navy);
  transition: transform 0.25s ease, background 0.2s ease, color 0.2s ease;
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
  background: var(--navy);
  border-color: var(--navy);
  color: #f6f7ed;
}

.faq-list details p {
  margin: -6px 0 22px;
  color: var(--muted);
  max-width: 40em;
}

.faq-list details[open] p {
  animation: faq-in 0.3s ease;
}

@keyframes faq-in {
  from { opacity: 0; translate: 0 -4px; }
}

@media (max-width: 860px) {
  .faq {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ============ 5. CTA ============ */
/* الانتقال من الأوف وايت للكحلي بدون حد قاسي: طبقة أوف وايت بتتلاشى على أول القسم */
.cta {
  position: relative;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: clamp(120px, 22vh, 220px);
  background: linear-gradient(180deg, var(--bg) 0%, rgba(246, 247, 237, 0.55) 35%, rgba(246, 247, 237, 0) 100%);
  pointer-events: none;
}

.cta > .container {
  position: relative;
  z-index: 1;
}

.cta {
  padding: 136px 0 112px;
  background-color: var(--navy);
  /* نفس التدرّج معكوس: الليموني بزاوية فوق، والنص والأزرار على الكحلي */
  background-image: linear-gradient(var(--cta-angle), var(--navy) 0%, var(--navy) 40%, #0a4f66 58%, #0f8a83 72%, #7cc06a 88%, var(--lime) 100%);
  color: #f6f7ed;
  text-align: center;
}

@supports (background: linear-gradient(in oklch, red, blue)) {
  .cta {
    background-image: linear-gradient(var(--cta-angle) in oklch, var(--navy) 0%, var(--navy) 40%, var(--lime) 100%);
  }
}

.cta-inner {
  display: grid;
  justify-items: center;
}

.cta-mark {
  margin-bottom: 28px;
}

.cta h2 {
  max-width: 20em;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  text-wrap: balance;
}

.cta-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin: 10px 0 36px;
  padding: 0;
  list-style: none;
  color: rgba(246, 247, 237, 0.8);
}

.cta-steps li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.cta-steps span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(246, 247, 237, 0.3);
  font-family: "Manrope", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

@media (max-width: 560px) {
  .cta {
    padding: 56px 0;
  }

  .cta-steps {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-actions .btn {
    flex: 1 1 100%;
  }
}

/* ============ الفوتر ============ */
.footer {
  padding: 56px 0 40px;
  background: var(--navy);
  color: rgba(246, 247, 237, 0.62);
  font-size: 0.92rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px 64px;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .kt-logo {
  color: #f6f7ed;
}

.footer-brand p {
  margin: 14px 0 0;
  line-height: 1.7;
}

.footer-cols {
  display: flex;
  gap: 64px;
}

.footer-col {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.footer-col h4 {
  margin: 0 0 4px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime);
}

.footer-col a {
  color: rgba(246, 247, 237, 0.82);
  text-decoration: none;
}

.footer-col a:hover {
  color: #f6f7ed;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(246, 247, 237, 0.1);
  font-size: 0.82rem;
  color: rgba(246, 247, 237, 0.5);
}

.footer-domain {
  font-family: "Manrope", sans-serif;
  letter-spacing: 0.02em;
}

@media (max-width: 760px) {
  .footer {
    /* زر واتساب العائم تحت يمين: الفوتر بياخد مكان إله لحتى ما يغطّي شي */
    padding: 44px 0 calc(96px + env(safe-area-inset-bottom, 0px));
  }

  .footer-top {
    flex-direction: column;
    gap: 32px;
  }

  .footer-cols {
    width: 100%;
    gap: 24px;
  }

  .footer-col {
    flex: 1;
    gap: 12px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 32px;
  }
}

/* ============ ظهور الأقسام وانت عم تنزل ============ */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ============ الأداء والحركة المخففة ============ */
.is-offscreen .rings span,
.is-offscreen .phone-hero,
.is-offscreen .float-card,
.is-offscreen .scan-line,
.is-offscreen .card3d,
.is-offscreen.card-stage .card3d {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .rings span,
  .phone-hero,
  .float-card,
  .card3d,
  .scan-line,
  .live-dot {
    animation: none;
  }

  .scene,
  .sheet,
  .ss-chart i,
  .ss-rows i::after,
  .story-step,
  .story-step::before {
    transition: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.addons-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.addons-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: #f6f7ed;
}

.addons-list li div {
  display: grid;
}

.addons-list li span:not(.addon-ico) {
  color: var(--muted);
  font-size: 0.9rem;
}

.addon-ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 10px;
  background: var(--navy);
  color: #f6f7ed;
}


/* ============ بطاقة NFC ثلاثية الأبعاد: مطفية، كحلي، الرمز بالنص (حسب دليل الهوية) ============ */
.card-stage {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 24px 0;
  perspective: 1200px;
}

.card3d {
  position: relative;
  width: min(380px, 92%);
  aspect-ratio: 85.6 / 54;
  container-type: inline-size;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
  cursor: pointer;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  animation: float 7s ease-in-out infinite;
}

.card3d.is-dragging {
  transition: none;
}

.card3d.is-animating {
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* سماكة البطاقة */
.card3d::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 4.6% / 7.3%;
  background: #061226;
  transform: translateZ(-2px);
  box-shadow: 0 40px 60px -30px rgba(0, 31, 63, 0.7);
}

.card-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 4cqw;
  border-radius: 4.6% / 7.3%;
  background: var(--navy);
  color: var(--off-white);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  overflow: hidden;
}

.cf-mark {
  width: 19cqw;
  height: 19cqw;
}

.cf-word {
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 5.6cqw;
  letter-spacing: 0.08em;
}

.cf-tap {
  position: absolute;
  top: 7%;
  inset-inline-end: 6%;
  width: 7cqw;
  height: 7cqw;
  color: var(--lime);
}

.card-back {
  /* translateZ بعد الدوران: الضهر بيصير قدّام طبقة السماكة لما تنقلب */
  transform: rotateY(180deg) translateZ(3px);
  background: var(--off-white);
  color: var(--navy);
  box-shadow: inset 0 0 0 1px var(--line);
}

/* الرمز بنص ضهر البطاقة، بحجم متناسب معها (حوالي ثلث عرضها) مش مالي الوجه */
.cb-qr {
  width: 30cqw;
  aspect-ratio: 1;
}

.cb-qr img,
.cb-qr canvas {
  display: block;
  width: 100% !important;
  height: auto !important;
}


.card-hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 960px) {
  .addons {
    padding: 24px;
  }
}

/* ============ ظهور الأقسام وانت عم تنزل ============ */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease var(--d, 0ms), transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0ms);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ============ الأداء والحركة المخففة ============ */
.is-offscreen .rings span,
.is-offscreen .marquee-track,
.is-offscreen .phone-hero,
.is-offscreen .float-card,
.is-offscreen .card3d {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .rings span,
  .marquee-track,
  .phone-hero,
  .float-card,
  .card3d,
  .live-dot {
    animation: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ملصق وميدالية NFC: لسا ما توفّروا */
.nfc-soon {
  margin-inline-start: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(219, 230, 76, 0.22);
  color: var(--lime);
  font-size: 0.72rem;
  font-weight: 700;
}

