/* صفحة Q NOTES — نفس معمل Q Products، ولون المنتج بنفسجي كأيقونة التطبيق */
:root {
  --nv: #5B48E8;        /* المنتج على الفاتح */
  --nv-glow: #8E7DFF;   /* المنتج على الداكن */
  --nv-soft: #EEEBFF;
}

.btn-violet { background: var(--nv-glow); color: #0C1636; }
.btn-violet:hover { background: #A597FF; }
.btn-lg { min-height: 56px; padding: 0 26px; font-size: 1.05rem; border-radius: 14px; }

/* ——— الواجهة ——— */
.n-hero { position: relative; overflow: hidden; color: #fff; padding: 118px 0 72px; background: radial-gradient(760px 460px at 80% 10%, rgba(142,125,255,.16), transparent 62%), var(--ink-deep); }
.n-hero-in { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; }
.crumb { display: inline-flex; gap: 8px; align-items: center; color: rgba(255,255,255,.7); text-decoration: none; font-size: .92rem; margin-bottom: 26px; }
.crumb:hover { color: #fff; }
.n-lockup { display: block; width: fit-content; }
.n-lockup svg { height: 54px; width: auto; }
.n-lockup.sm svg { height: 34px; }
.n-hero .eyebrow { color: var(--nv-glow); margin: 26px 0 12px; }
.n-hero h1 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); font-weight: 700; max-width: 18ch; }
.n-hero .lead { margin-top: 18px; font-size: clamp(1rem, 1.5vw, 1.14rem); color: rgba(255,255,255,.76); max-width: 560px; }

.dl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 30px; }
.dl-meta { font-size: .86rem; color: rgba(255,255,255,.62); }
.play-soon { flex-basis: 100%; font-size: .84rem; color: rgba(255,255,255,.5); }
.dl-wait { margin-top: 30px; padding: 12px 16px; border-radius: 12px; background: rgba(255,255,255,.06); color: rgba(255,255,255,.75); }

.facts { display: flex; flex-wrap: wrap; gap: 0; margin: 36px 0 0; border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; }
.facts div { padding-inline-end: 28px; margin-inline-end: 28px; border-inline-end: 1px solid rgba(255,255,255,.1); }
.facts div:last-child { border: 0; margin: 0; padding: 0; }
.facts dt { font-size: .78rem; color: rgba(255,255,255,.5); }
.facts dd { margin: 2px 0 0; font-weight: 700; font-size: 1.05rem; }

/* إطار الهاتف */
.phone { margin: 0; border-radius: 34px; padding: 9px; background: #0A1130; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 60px -20px rgba(4,8,30,.55); }
.phone img { width: 100%; height: auto; border-radius: 26px; background: #EEF2FA; }
.n-phone { max-width: 320px; justify-self: center; transform: rotate(-2deg); }
[dir="rtl"] .n-phone { transform: rotate(2deg); }

/* ——— الأقسام ——— */
.n-sec { padding: 88px 0 24px; }
.muted { color: var(--muted); margin-top: 10px; }

/* شريط اللقطات: يتمرر أفقياً ويقف عند كل صورة */
.shots { list-style: none; margin: 0; padding: 8px max(16px, (100% - var(--wrap)) / 2) 28px; display: grid; grid-auto-flow: column; grid-auto-columns: 236px; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(16px, (100% - var(--wrap)) / 2); scrollbar-width: thin; }
.shots:focus-visible { outline-offset: -3px; }
.shots li { scroll-snap-align: start; }
.shots .phone { padding: 7px; border-radius: 28px; box-shadow: 0 0 0 1px rgba(19,32,74,.08), 0 18px 36px -18px rgba(19,32,74,.45); }
.shots .phone img { border-radius: 22px; }
.shots figcaption { margin-top: 12px; font-weight: 600; color: var(--ink); font-size: .95rem; text-align: center; }

/* المزايا: بطاقات تحمل خط المنتج في أعلاها */
.feats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feat { position: relative; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 28px; overflow: hidden; }
.feat::before { content: ''; position: absolute; top: 0; inset-inline-start: 28px; width: 56px; height: var(--rail); border-radius: 0 0 3px 3px; background: var(--nv); }
.feat h3 { font-size: 1.25rem; font-weight: 700; color: var(--ink); }
.feat-lead { color: var(--nv); font-weight: 600; margin-top: 4px; }
.feat ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.feat li { position: relative; padding-inline-start: 20px; color: var(--muted); }
.feat li::before { content: ''; position: absolute; inset-inline-start: 2px; top: .72em; width: 8px; height: 3px; border-radius: 2px; background: var(--nv-glow); }
.feat.f-finance { grid-row: span 2; }

/* الخصوصية: شريط داكن */
.n-privacy { margin-top: 88px; background: var(--ink-deep); color: #fff; padding: 72px 0; }
.n-privacy-in { display: grid; grid-template-columns: 150px 1fr; gap: 48px; align-items: center; }
.pv-mark svg { width: 140px; height: auto; }
.n-privacy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
.pv-sub { margin-top: 10px; color: rgba(255,255,255,.72); }
.pv-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pv-list li { padding: 14px 16px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: rgba(255,255,255,.03); color: rgba(255,255,255,.86); }
.pv-link { display: inline-block; margin-top: 22px; color: var(--nv-glow); font-weight: 600; }

/* اللغات */
.n-langs h2, #install h2, #faq h2, .n-cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; color: var(--ink); }
.pills { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pills li { padding: 8px 18px; border-radius: 999px; background: var(--card); border: 1px solid var(--rule); font-weight: 600; color: var(--ink); }

/* خطوات التثبيت: تسلسل حقيقي، لذلك مرقّمة */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { counter-increment: s; position: relative; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--nv-soft); color: var(--nv); font-weight: 700; margin-bottom: 14px; font-family: 'Plex Mono', monospace; }
.steps h3 { font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.steps p { margin-top: 6px; color: var(--muted); font-size: .95rem; }
.verify { margin-top: 20px; background: var(--card); border: 1px dashed var(--rule); border-radius: 14px; padding: 14px 18px; }
.verify summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.verify p { margin-top: 10px; color: var(--muted); font-size: .92rem; }
.verify code { display: block; margin-top: 8px; font-family: 'Plex Mono', monospace; font-size: .8rem; word-break: break-all; background: var(--paper); padding: 10px 12px; border-radius: 10px; color: var(--ink); }

/* الأسئلة */
.faq-wrap { display: grid; grid-template-columns: .7fr 1.3fr; gap: 40px; align-items: start; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: 0 18px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-weight: 700; color: var(--nv); font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 0 16px; color: var(--muted); }

/* الدعوة الأخيرة */
.n-cta { padding: 88px 0 96px; }
.n-cta-in { background: var(--ink-deep); border-radius: 28px; padding: 48px; color: #fff; text-align: center; display: grid; justify-items: center; }
.n-cta h2 { color: #fff; }
.n-cta p { margin-top: 8px; color: rgba(255,255,255,.72); }
.n-cta .dl { justify-content: center; }
.n-cta .play-soon { text-align: center; }

.foot-link { color: var(--ink); font-weight: 600; }

/* سياسة الخصوصية */
.policy { padding: 118px 0 80px; }
.policy-in { max-width: 760px; }
.policy h1 { margin-top: 26px; font-size: clamp(1.7rem, 3.4vw, 2.4rem); color: var(--ink); }
.updated { margin-top: 8px; color: var(--steel); font-size: .8rem; }
.intro { margin-top: 18px; color: var(--muted); font-size: 1.05rem; }
.policy section { margin-top: 30px; }
.policy h2 { font-size: 1.2rem; color: var(--ink); }
.policy section p, .policy li { margin-top: 8px; color: var(--muted); }
.policy table { margin-top: 10px; width: 100%; border-collapse: collapse; background: var(--card); border-radius: 12px; overflow: hidden; border: 1px solid var(--rule); }
.policy th, .policy td { text-align: start; padding: 10px 14px; border-bottom: 1px solid var(--rule); font-size: .95rem; }
.policy th { color: var(--ink); width: 34%; }
.policy td { color: var(--muted); }
.policy .btn { margin-top: 36px; }

@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .faq-wrap { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 860px) {
  .n-hero { padding-top: 140px; }
  .n-hero-in { grid-template-columns: 1fr; gap: 40px; }
  .n-phone { max-width: 260px; }
  .feats { grid-template-columns: 1fr; }
  .feat.f-finance { grid-row: auto; }
  .n-privacy-in { grid-template-columns: 1fr; gap: 20px; }
  .pv-mark svg { width: 72px; }
  .pv-list { grid-template-columns: 1fr; }
  .policy { padding-top: 140px; }
}
@media (max-width: 560px) {
  .n-lockup svg { height: 40px; }
  .steps { grid-template-columns: 1fr; }
  .shots { grid-auto-columns: 72%; }
  .n-cta-in { padding: 32px 20px; }
  .facts div { padding-inline-end: 16px; margin-inline-end: 16px; }
  .btn-lg { width: 100%; }
}
