/* سایت معرفی دایرکت‌هاب (روی رنگ‌ها و فونت app.css ساخته شده) */
.site { background: var(--surface); }
.site-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.site-head { position: sticky; top: 0; z-index: 20; background: var(--bar); }
.site-head-inner { display: flex; align-items: center; gap: 24px; height: 62px; }
.site-brand { font-size: 18px; }
.site-nav { display: flex; gap: 4px; flex: 1; }
.site-nav a { color: var(--bar-text); padding: 6px 10px; }
.site-nav a:hover { color: #fff; text-decoration: none; }
.site-login { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .25); }
.site-login:hover { background: rgba(255, 255, 255, .08); }
.btn-lg { padding: 11px 22px; font-size: 15px; border-radius: 10px; }

/* ---------- قهرمان ---------- */
.hero { background: var(--bar); color: #fff; padding: 56px 0 72px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: 38px; line-height: 1.55; margin: 0 0 18px; letter-spacing: -.2px; }
.hero-sub { color: var(--bar-text); font-size: 16px; line-height: 2; max-width: 34em; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero .btn:not(.btn-primary) { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .28); }
.hero .btn:not(.btn-primary):hover { background: rgba(255, 255, 255, .08); }
.hero .btn-primary { background: #7fe0d6; border-color: #7fe0d6; color: #0f1a2c; }

/* نمونه پنل: همان نوار مهلت ۲۴ ساعته که در پنل اصلی است */
.mock {
  background: var(--surface); color: var(--text); border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35); transform: rotate(-1.2deg);
}
.mock-bar { display: flex; gap: 6px; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.mock-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.mock-body { padding: 4px 0 12px; }
.mock-item { position: relative; display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: center; padding: 12px 16px 16px; border-bottom: 1px solid var(--line); }
.mock-item .avatar { width: 38px; height: 38px; font-size: 14px; }
.mock-text { display: flex; flex-direction: column; min-width: 0; }
.mock-text b { font-weight: 500; font-size: 14px; direction: ltr; text-align: right; }
.mock-text small { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-item.is-unread .mock-text b { font-weight: 700; }
.mock-item.is-unread .mock-text small { color: var(--text); }
.mock-item .window-meter { position: absolute; left: 16px; right: 64px; bottom: 6px; height: 2px; background: transparent; }
.mock-reply { display: flex; flex-direction: column; align-items: flex-end; padding: 14px 16px 0; }
.mock-bubble { background: var(--out-bubble); color: var(--out-text); padding: 8px 13px; border-radius: 16px 5px 16px 16px; font-size: 13px; }
.mock-who { font-size: 11px; color: var(--muted); margin-top: 3px; }
.mock-caption { font-size: 12px; color: var(--muted); padding: 10px 16px; background: var(--surface-2); border-top: 1px solid var(--line); }

/* ---------- بخش‌ها ---------- */
.band { padding: 72px 0; background: var(--bg); }
.band-plain { background: var(--surface); }
.section-title { font-size: 26px; margin: 0 0 10px; }
.section-sub { color: var(--muted); font-size: 15px; max-width: 42em; margin-bottom: 28px; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.steps li { counter-increment: step; display: flex; flex-direction: column; gap: 6px; padding-top: 16px; border-top: 2px solid var(--accent); }
.steps li::before { content: counter(step, persian); font-size: 30px; font-weight: 700; color: var(--accent); line-height: 1; margin-bottom: 6px; }
.steps b { font-size: 16px; }
.steps span { color: var(--muted); line-height: 1.9; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 26px; border-top: 1px solid var(--line); }
.features > div { padding: 22px 0 22px 26px; border-bottom: 1px solid var(--line); }
.features b { font-size: 15px; display: block; margin-bottom: 6px; }
.features p { color: var(--muted); line-height: 1.9; margin: 0; }

.plan-group { font-size: 17px; margin: 30px 0 14px; display: flex; gap: 10px; align-items: baseline; }
.plan-group span { font-size: 13px; color: var(--muted); font-weight: 400; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 8px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; }
.plan.is-featured { border: 2px solid var(--accent); }
.plan h4 { font-size: 15px; margin: 0 0 8px; }
.plan-price { font-size: 22px; font-weight: 700; margin-bottom: 14px; }
.plan-price span { font-size: 13px; color: var(--muted); font-weight: 400; }
.plan .btn { margin-top: auto; }
.checks { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 6px; }
.checks li { position: relative; padding-right: 20px; line-height: 1.8; }
.checks li::before { content: ""; position: absolute; right: 2px; top: .7em; width: 8px; height: 5px; border: solid var(--live); border-width: 0 0 2px 2px; transform: rotate(-45deg); }

.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; max-width: 46em; }
.faq summary { cursor: pointer; font-weight: 500; font-size: 15px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 18px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { color: var(--muted); margin: 10px 0 0; line-height: 1.9; }

.closing { background: var(--accent); color: #fff; padding: 48px 0; }
.closing-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.closing h2 { margin: 0; font-size: 24px; }
.closing-btn { background: #fff; color: var(--accent); border-color: #fff; }

.prose .site-wrap { max-width: 760px; }
.prose h1 { font-size: 28px; }
.prose h2 { font-size: 17px; margin-top: 26px; }
.prose p { line-height: 2; }
.contact-list { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; margin: 18px 0; }
.contact-list dt { color: var(--muted); }
.contact-list dd { margin: 0; text-align: right; }

.site-foot { background: var(--bar); color: var(--bar-text); padding: 36px 0; }
.site-foot-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 24px; align-items: start; }
.site-foot-links { display: flex; flex-direction: column; gap: 6px; }
.site-foot a { color: var(--bar-text); }
.site-foot a:hover { color: #fff; }
.site-foot-contact { display: grid; gap: 4px; }
.site-trust:empty { display: none; }

@media (prefers-color-scheme: dark) {
  .site { background: var(--bg); }
  .band-plain { background: var(--surface); }
  .closing { background: #2d4a9a; }
}

@media (max-width: 860px) {
  .hero { padding: 36px 0 48px; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { font-size: 27px; }
  .hero-sub { font-size: 15px; }
  .mock { transform: none; }
  .steps, .features, .plans { grid-template-columns: 1fr; }
  .features > div { padding: 18px 0; }
  .band { padding: 48px 0; }
  .section-title { font-size: 22px; }
  .site-nav { display: none; }
  .site-head-inner { justify-content: space-between; }
  .site-foot-inner { grid-template-columns: 1fr; }
}
