/* ═══════════════════════════════════════════════════
   سینوکس دیزاین — (۱۸ اکتبر، ۲b-beta) نمونه‌کار و صف دسترسی زودهنگام
   هم در design/showcase.html و هم وقتی gate.js محتوای آن را در /design/ می‌گذارد. بر پایهٔ tokens.css (تیره/روشن).
   ═══════════════════════════════════════════════════ */
[hidden] { display: none !important; }
/* گیت index.html: تا تصمیم gate.js، بدنهٔ برنامه دیده نشود (بدون پرش «هنوز باز نیست») */
html.dz-gating .dz-main, html.dz-gating .dz-banner, html.dz-gating #billingSelect { visibility: hidden; }
/* (۲۱ اکتبر، سئو) نمونه‌کارِ داخل index.html هم تا تصمیم گیت پنهان است */
html.dz-gating #sxShowcase { visibility: hidden; }

/* تراشهٔ سهمیهٔ امروز در نوار بالای برنامه */
.dz-quota { font-size: var(--fs-xs); font-weight: var(--fw-bold); white-space: nowrap; padding: 6px 12px; border-radius: var(--radius-full); background: var(--primary-tint); color: var(--primary-light); border: 1px solid var(--primary-border-tint); }
.dz-quota.is-low { background: var(--yellow-tint); color: var(--yellow-light, #fcd34d); border-color: rgba(245, 158, 11, .35); }
.dz-quota.is-out { background: var(--red-tint); color: var(--red-light); border-color: var(--red-border-tint, rgba(239, 68, 68, .35)); }
.dz-quota-s { display: none; }
/* با تراشه، انتخاب پلن در نوار باریک جمع می‌شود تا دکمهٔ تم و «داشبورد» بیرون نزنند */
@media (max-width: 560px) { .dz-topbar:has(#dzQuota) .dz-select-billing { min-width: 0; width: 0; flex: 1 1 0; } .dz-topbar:has(#dzQuota) .dz-spacer { display: none; } }
@media (max-width: 560px) { .dz-quota { padding: 5px 9px; font-size: 11px; } .dz-quota-l { display: none; } .dz-quota-s { display: inline; } }

.sxs-body { background: var(--grad-mesh); background-attachment: fixed; color: var(--text-1); min-height: 100dvh; overflow-x: hidden; }
.sxs-body.sxs-lock { overflow: hidden; }
.sxs { --sxs-w: 1180px; min-height: 100dvh; display: flex; flex-direction: column; }
.sxs * { box-sizing: border-box; }
.sxs a { color: inherit; text-decoration: none; }

/* ─── نوار بالا ─── */
.sxs-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 max(16px, calc((100vw - var(--sxs-w)) / 2));
  background: var(--surface-glass-strong); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-1); }
.sxs-brand { display: flex; align-items: center; gap: 9px; font-weight: var(--fw-extrabold); font-size: var(--fs-lg); white-space: nowrap; }
.sxs-logo { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--grad-brand); color: #fff; }
.sxs-beta { font-size: 10.5px; font-weight: var(--fw-bold); padding: 2px 9px; border-radius: var(--radius-full); background: var(--primary-tint); color: var(--primary-light); border: 1px solid var(--primary-border-tint); }
.sxs-spacer { flex: 1; }
.sxs-icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 11px; background: var(--elev-1); border: 1px solid var(--border-1); color: var(--text-muted); cursor: pointer; font: inherit; }
.sxs-icon-btn:hover { color: var(--text-1); background: var(--elev-2); }
.sxs-top-link { font-size: var(--fs-sm); font-weight: var(--fw-bold); padding: 8px 16px; border-radius: 11px; border: 1px solid var(--border-2); background: var(--elev-1); white-space: nowrap; }
.sxs-top-link:hover { background: var(--elev-2); }

/* ─── چیدمان ─── */
.sxs-main { width: 100%; max-width: var(--sxs-w); margin: 0 auto; padding: 0 16px 72px; flex: 1; }
.sxs-section { margin-top: 76px; }
.sxs-h2 { font-size: clamp(22px, 3vw, 30px); font-weight: var(--fw-black); line-height: 1.35; margin: 0 0 10px; }
.sxs-muted { color: var(--text-muted); line-height: 1.9; margin: 0; }
.sxs-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.sxs-section-head > div { max-width: 640px; }

/* ─── دکمه‌ها ─── */
.sxs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 13px; font: inherit; font-weight: var(--fw-bold); font-size: var(--fs-md, 15px);
  border: 1px solid var(--border-2); background: var(--elev-1); color: var(--text-1); cursor: pointer; white-space: nowrap; transition: transform var(--dur-fast, .15s), box-shadow var(--dur-fast, .15s), background var(--dur-fast, .15s); }
.sxs-btn:hover { background: var(--elev-2); }
.sxs-btn:focus-visible, .sxs-card-btn:focus-visible, .sxs-filter button:focus-visible, .sxs-icon-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.sxs-btn-primary { background: var(--grad-brand); border-color: transparent; color: #fff; box-shadow: var(--glow-primary-md, 0 8px 28px rgba(99, 102, 241, .35)); }
.sxs-btn-primary:hover { background: var(--grad-brand); transform: translateY(-1px); box-shadow: var(--glow-primary-lg, 0 12px 36px rgba(99, 102, 241, .45)); }
.sxs-btn-primary:disabled { opacity: .7; cursor: progress; transform: none; }
.sxs-btn-ghost { background: transparent; }
.sxs-btn-sm { min-height: 36px; padding: 0 13px; font-size: var(--fs-sm); border-radius: 10px; }

/* ─── هیرو ─── */
.sxs-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-top: 56px; }
.sxs-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--primary-light); padding: 6px 14px; border-radius: var(--radius-full); background: var(--primary-tint); border: 1px solid var(--primary-border-tint); }
.sxs-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-tint); }
.sxs-h1 { font-size: clamp(36px, 5.6vw, 60px); font-weight: var(--fw-black); line-height: 1.2; margin: 18px 0 0; letter-spacing: -.5px; }
.sxs-h1-sub { display: block; font-size: clamp(20px, 2.7vw, 30px); font-weight: var(--fw-extrabold); line-height: 1.5; margin-top: 10px;
  background: var(--grad-text-brand, var(--grad-brand)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sxs-lead { font-size: clamp(15.5px, 1.6vw, 17.5px); line-height: 2; color: var(--text-2); margin: 18px 0 0; max-width: 560px; }
.sxs-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.sxs-hint { font-size: var(--fs-sm); color: var(--text-muted); margin: 12px 0 0; }
.sxs-hero-art { position: relative; aspect-ratio: 1 / .86; }
.sxs-art { position: absolute; width: 74%; height: auto; border-radius: 14px; border: 1px solid var(--border-2); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); background: #fff; }
.sxs-art-1 { top: 0; left: 0; transform: rotate(-3deg); }
.sxs-art-2 { top: 30%; right: 0; transform: rotate(2.5deg); z-index: 2; }
.sxs-art-3 { bottom: 0; left: 6%; transform: rotate(-1.5deg); width: 66%; }

/* ─── سه قدم ─── */
.sxs-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.sxs-steps li { background: var(--card); border: 1px solid var(--border-1); border-radius: var(--radius-2xl); padding: 22px; }
.sxs-step-n { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--grad-brand); color: #fff; font-weight: var(--fw-black); font-size: 18px; }
.sxs-steps h3 { font-size: 18px; font-weight: var(--fw-extrabold); margin: 14px 0 6px; }
.sxs-steps p { color: var(--text-muted); line-height: 1.9; margin: 0; font-size: var(--fs-sm); }

/* ─── گالری ─── */
.sxs-filter { display: inline-flex; gap: 4px; padding: 4px; border-radius: 13px; background: var(--elev-1); border: 1px solid var(--border-1); }
.sxs-filter button { font: inherit; font-size: var(--fs-sm); font-weight: var(--fw-bold); padding: 8px 14px; border-radius: 10px; border: 0; background: transparent; color: var(--text-muted); cursor: pointer; }
.sxs-filter button[aria-selected="true"] { background: var(--card); color: var(--text-1); box-shadow: 0 1px 0 var(--border-2) inset, 0 4px 14px rgba(0, 0, 0, .18); }
.sxs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.sxs-card { min-width: 0; }
.sxs-card-btn { display: flex; flex-direction: column; width: 100%; height: 100%; text-align: start; font: inherit; color: inherit; padding: 0; cursor: pointer; overflow: hidden;
  background: var(--card); border: 1px solid var(--border-1); border-radius: 18px; transition: transform var(--dur-base, .2s), border-color var(--dur-base, .2s), box-shadow var(--dur-base, .2s); }
.sxs-card-btn:hover { transform: translateY(-3px); border-color: var(--primary-border-tint); box-shadow: 0 18px 40px rgba(0, 0, 0, .28); }
.sxs-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--elev-1); border-bottom: 1px solid var(--border-1); }
.sxs-thumb > img:first-child { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.sxs-inner { position: absolute; width: 44%; height: auto; left: 10px; bottom: 10px; border-radius: 8px; border: 1px solid rgba(0, 0, 0, .12); box-shadow: 0 10px 26px rgba(0, 0, 0, .35); transition: transform var(--dur-base, .2s); }
.sxs-card-btn:hover .sxs-inner { transform: translateY(-4px) scale(1.04); }
.sxs-view { position: absolute; top: 10px; right: 10px; font-size: 12px; font-weight: var(--fw-bold); padding: 5px 11px; border-radius: var(--radius-full); background: rgba(7, 7, 15, .72); color: #fff; opacity: 0; transition: opacity var(--dur-base, .2s); }
.sxs-card-btn:hover .sxs-view, .sxs-card-btn:focus-visible .sxs-view { opacity: 1; }
.sxs-card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.sxs-tag { align-self: flex-start; font-size: 11.5px; font-weight: var(--fw-bold); padding: 3px 10px; border-radius: var(--radius-full); background: var(--primary-tint); color: var(--primary-light); }
.is-long .sxs-tag { background: var(--green-tint); color: var(--green-light); }
.sxs-card[data-kind="landing"] .sxs-tag { background: var(--cyan-tint, rgba(6, 182, 212, .14)); color: var(--cyan-light, #67e8f9); }
.sxs-card-title { font-size: 17px; font-weight: var(--fw-extrabold); }
.sxs-card-desc { font-size: 13.5px; color: var(--text-muted); line-height: 1.85; }
.sxs-card-meta { font-size: 12px; color: var(--text-dim); margin-top: auto; padding-top: 4px; }
.sxs-skel { aspect-ratio: 16 / 13; border-radius: 18px; background: var(--grad-shimmer, var(--elev-1)); background-size: 200% 100%; animation: sxs-sh 1.4s linear infinite; }
@keyframes sxs-sh { to { background-position: -200% 0; } }

/* ─── چه چیزهایی می‌سازد ─── */
.sxs-makes { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.sxs-makes li { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 2px; align-items: start; padding: 18px; border-radius: var(--radius-2xl); background: var(--card); border: 1px solid var(--border-1); }
.sxs-makes li > span:first-child { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--primary-tint); color: var(--primary-light); }
.sxs-makes b { font-size: 16px; font-weight: var(--fw-extrabold); }
.sxs-makes li > span:last-child { font-size: 13.5px; color: var(--text-muted); line-height: 1.85; }

/* ─── صف ─── */
.sxs-join-card { position: relative; overflow: hidden; max-width: 760px; margin: 0 auto; padding: 34px; border-radius: 24px; background: var(--card); border: 1px solid var(--primary-border-tint);
  box-shadow: 0 30px 80px rgba(99, 102, 241, .14); }
.sxs-join-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad-brand); }
.sxs-join-card .sxs-muted { margin-bottom: 18px; }
.sxs-pos { color: var(--text-1); font-size: 1.15em; }
.sxs-form { display: flex; flex-direction: column; gap: 8px; }
.sxs-label { font-weight: var(--fw-bold); font-size: var(--fs-sm); }
.sxs-label small { color: var(--text-muted); font-weight: var(--fw-regular); }
.sxs-form textarea { width: 100%; font: inherit; font-size: 15px; line-height: 1.9; padding: 12px 14px; border-radius: 13px; border: 1px solid var(--border-2); background: var(--elev-1); color: var(--text-1); resize: vertical; min-height: 96px; }
.sxs-form textarea:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.sxs-form-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
.sxs-count { font-size: 12px; color: var(--text-dim); }
.sxs-err { margin: 6px 0 0; color: var(--red-light); font-size: var(--fs-sm); }
.sxs-ok { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; background: var(--green-tint); border: 1px solid var(--green-border-tint); line-height: 2; color: var(--text-2); }
.sxs-ok-icon { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: #fff; font-weight: var(--fw-black); }

.sxs-foot { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; padding: 26px 16px 34px; font-size: var(--fs-sm); color: var(--text-muted); border-top: 1px solid var(--border-1); }
.sxs-foot a:hover { color: var(--text-1); }

/* ─── پیش‌نمایش ─── */
.sxs-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(4, 4, 10, .72); backdrop-filter: blur(4px); }
.sxs-modal-box { width: min(1280px, 100%); height: min(860px, 100%); display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--card); border: 1px solid var(--border-2); box-shadow: 0 40px 100px rgba(0, 0, 0, .5); }
.sxs-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 10px 14px; border-bottom: 1px solid var(--border-1); flex-wrap: wrap; }
.sxs-modal-title { display: flex; flex-direction: column; min-width: 0; padding-inline-start: 4px; }
.sxs-modal-title b { font-size: 16px; font-weight: var(--fw-extrabold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sxs-modal-title .sxs-muted { font-size: 12px; line-height: 1.5; }
.sxs-modal-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sxs-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: var(--elev-1); border: 1px solid var(--border-1); }
.sxs-seg button { font: inherit; font-size: 12.5px; font-weight: var(--fw-bold); padding: 6px 10px; border-radius: 8px; border: 0; background: transparent; color: var(--text-muted); cursor: pointer; }
.sxs-seg button[aria-pressed="true"] { background: var(--card); color: var(--text-1); }
.sxs-frame-wrap { flex: 1; min-height: 0; position: relative; display: flex; justify-content: center; background: var(--elev-1); overflow: auto; -webkit-overflow-scrolling: touch; }   /* overflow:auto — iOS Safari آیفریم را به اندازهٔ محتوا بلند می‌کند؛ باید خودِ قاب اسکرول شود */
.sxs-frame-wrap iframe { width: 100%; height: 100%; border: 0; background: #fff; display: block; flex: none; }
.sxs-frame-wrap.is-mobile iframe { width: 390px; max-width: 100%; border-inline: 1px solid var(--border-2); }
/* «دسکتاپ» روی صفحهٔ باریک: آیفریم ۱۲۸۰px رندر و با transform کوچک می‌شود (وگرنه با موبایل فرقی نداشت) — --sxs-s و --sxs-fh را showcase.js می‌گذارد */
.sxs-frame-wrap.is-scaled { display: block; }
.sxs-frame-wrap.is-scaled iframe { position: absolute; top: 0; left: 0; width: 1280px; height: var(--sxs-fh, 2000px); transform: scale(var(--sxs-s, .3)); transform-origin: 0 0; }

@media (max-width: 960px) {
  .sxs-hero { grid-template-columns: 1fr; gap: 28px; padding-top: 34px; }
  .sxs-hero-art { max-width: 520px; width: 100%; margin: 0 auto; }
  .sxs-steps, .sxs-makes { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .sxs-section { margin-top: 56px; }
  .sxs-steps, .sxs-makes { grid-template-columns: 1fr; }
  .sxs-grid { grid-template-columns: 1fr; }
  .sxs-cta .sxs-btn { flex: 1 1 100%; }
  .sxs-join-card { padding: 24px 18px; }
  .sxs-filter { width: 100%; overflow-x: auto; }
  .sxs-filter button { flex: 1; white-space: nowrap; padding: 8px 10px; }
  .sxs-modal { padding: 0; }
  .sxs-modal-box { height: 100%; border-radius: 0; border: 0; }
  .sxs-hide-sm { display: none !important; }
  .sxs-top-link { padding: 7px 12px; }
  .sxs-view { opacity: 1; }
}

/* ─── (۲۱ اکتبر، سئو) پرسش‌های پرتکرار ─── */
.sxs-faq { display: grid; gap: 10px; margin-top: 18px; }
.sxs-faq-item { background: var(--card); border: 1px solid var(--border-1); border-radius: var(--radius-2xl); padding: 4px 20px; }
.sxs-faq-item summary { cursor: pointer; font-weight: var(--fw-extrabold); font-size: 16px; padding: 14px 0; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sxs-faq-item summary::-webkit-details-marker { display: none; }
.sxs-faq-item summary::after { content: '+'; font-size: 22px; font-weight: 400; color: var(--text-muted); flex: none; }
.sxs-faq-item[open] summary::after { content: '×'; }
.sxs-faq-item p { margin: 0 0 16px; color: var(--text-muted); line-height: 1.95; font-size: var(--fs-sm); }
