/* ==========================================================================
   صفحهٔ اصلیِ واردنشده‌ها — فقط `home.html`
   --------------------------------------------------------------------------
   چرا فایل جدا: `page.css` یک ستون ۷۲۰ پیکسلی برای صفحات متنی است. صفحهٔ
   اصلی باید محصول را **نشان** بدهد، نه شرح بدهد؛ پس پهن‌تر و بخش‌بندی‌شده
   است. توکن‌های رنگ از `styles.css` می‌آیند.
   ========================================================================== */

.hm { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem 4rem; }
body:has(.hm) { overflow-x: clip; }   /* هاله و چرخشِ ماکت نباید اسکرول افقی بسازند */
.hm a { color: inherit; }
.hm h2 { font-size: 1.5rem; line-height: 1.5; margin: 0 0 .5rem; letter-spacing: -.01em; }
.hm h3 { font-size: 1rem; margin: 0 0 .35rem; }
.hm p { margin: 0; }

/* ---------------------------------------------------------------- قهرمان */
.hm-hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 3rem; align-items: center;
  padding: 3.5rem 0 3rem;
  position: relative;
}
.hm-hero::before {            /* هالهٔ طلاییِ کم‌رنگ پشت نمونه */
  content: ""; position: absolute; z-index: -1;
  inset: 0 auto 0 -8%; width: 60%;
  background: radial-gradient(closest-side, rgb(180 138 63 / .16), transparent 72%);
  pointer-events: none;
}
.hm-chip {
  display: inline-block; padding: .3rem .8rem; border-radius: 999px;
  background: var(--accent-bg); color: #8a6a2c; border: 1px solid #ecdcb9;
  font-size: .8rem; font-weight: 600; margin-bottom: 1rem;
}
.hm-hero h1 {
  font-size: clamp(1.8rem, 3.6vw, 2.7rem); line-height: 1.45;
  margin: 0 0 .9rem; font-weight: 800; letter-spacing: -.02em; text-wrap: balance;
}
.hm-hero h1 em {
  font-style: normal; color: #9a742f;
  background: linear-gradient(transparent 68%, rgb(180 138 63 / .22) 0);
}
.hm-lead { font-size: 1.08rem; line-height: 2; color: var(--brand-700); max-width: 34rem; margin-bottom: 1.5rem !important; }

.hm-hero .hero__box { border-width: 1.5px; border-radius: var(--r-xl); padding: .7rem .7rem .7rem .7rem; padding-inline-start: 1.1rem; }
.hm-hero .hero__ph { -webkit-line-clamp: 1; font-size: .92rem; }
.hm-hero .hero__go { border-radius: var(--r-lg); padding: .8rem 1.5rem; }

.hm-ticks {
  list-style: none; padding: 0; margin: 1rem 0 0;
  display: flex; flex-wrap: wrap; gap: .4rem 1.3rem;
  font-size: .86rem; color: var(--muted);
}
.hm-ticks li::before { content: "✓"; color: var(--emerald); font-weight: 700; margin-inline-end: .4rem; }
.hm-ticks a { text-decoration: underline; text-underline-offset: 3px; color: var(--brand-800); }

/* ------------------------------------------------- نمونهٔ خروجی (ماکت) */
.hm-mock {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: 0 24px 60px -20px rgb(15 23 42 / .28), var(--shadow-md);
  overflow: hidden; transform: rotate(-1.2deg);
}
.hm-mock__bar {
  display: flex; align-items: center; gap: .35rem;
  padding: .6rem .9rem; background: var(--brand-900); color: #cbd5e1; font-size: .78rem;
}
.hm-mock__bar i { width: 9px; height: 9px; border-radius: 50%; background: #475569; }
.hm-mock__bar span { margin-inline-start: auto; }
.hm-mock__body { padding: 1rem 1.1rem .4rem; }
.hm-mock__issue {
  font-size: .86rem; line-height: 1.9; color: var(--brand-700);
  padding-bottom: .8rem; margin-bottom: .8rem !important; border-bottom: 1px dashed var(--line);
}
.hm-step { display: flex; gap: .7rem; margin-bottom: .85rem; }
.hm-step__n {
  flex: 0 0 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--line-soft); color: var(--brand-700);
  display: grid; place-items: center; font-size: .8rem; font-weight: 700;
}
.hm-step p { font-size: .88rem; line-height: 1.85; margin-bottom: .4rem !important; }
.hm-src, .hm-ok, .hm-warn {
  display: inline-block; font-size: .74rem; padding: .16rem .55rem;
  border-radius: 999px; margin: 0 0 .25rem .3rem; white-space: nowrap;
}
.hm-src  { background: var(--accent-bg); color: #8a6a2c; border: 1px solid #ecdcb9; }
.hm-ok   { background: var(--emerald-bg); color: var(--emerald); }
.hm-warn { background: var(--amber-bg); color: var(--amber); border: 1px solid #fde68a; white-space: normal; }
.hm-step--warn p { color: var(--muted); }
.hm-mock__cap {
  text-align: center; font-size: .72rem; color: var(--muted-2);
  padding: .5rem; border-top: 1px solid var(--line-soft);
}

/* ---------------------------------------------------------------- آمار */
.hm-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--brand-900); color: #fff; border-radius: 18px;
  padding: 1.5rem 1rem; text-align: center;
}
.hm-stats div + div { border-inline-start: 1px solid rgb(255 255 255 / .12); }
.hm-stats b { display: block; font-size: 1.5rem; font-weight: 800; color: #e7c98a; line-height: 1.6; }
.hm-stats span { font-size: .84rem; color: #cbd5e1; }

/* ---------------------------------------------------------------- بخش‌ها */
.hm-sec { padding: 4rem 0 0; text-align: center; }
.hm-sub { color: var(--muted); font-size: .98rem; line-height: 1.95; max-width: 44rem; margin: 0 auto 2rem !important; }
.hm-sec--narrow { max-width: 46rem; margin: 0 auto; }
.hm-sec--narrow h2 { margin-bottom: 1.4rem; }
.hm-sec--narrow .pg-faq { text-align: right; }
.hm-sec--narrow .pg-faq a { text-decoration: underline; text-underline-offset: 3px; }

.hm-how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; text-align: right; }
.hm-how__i {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 1.5rem 1.3rem 1.3rem; box-shadow: var(--shadow-sm);
}
.hm-how__n {
  display: grid; place-items: center; width: 2.3rem; height: 2.3rem;
  border-radius: 12px; background: var(--brand-900); color: #e7c98a;
  font-weight: 800; font-size: 1.05rem; margin-bottom: .9rem;
}
.hm-how__i p { font-size: .9rem; line-height: 1.9; color: var(--muted); }

.hm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: right; }
.hm-card {
  display: block; text-decoration: none; background: var(--surface);
  border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem 1.1rem;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.hm-card:hover, .hm-card:focus-visible {
  transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--accent);
}
.hm-ico {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem;
  border-radius: 12px; background: var(--accent-bg); color: #9a742f;
  font-size: 1.2rem; margin-bottom: .8rem;
}
.hm-card b { display: block; font-size: .96rem; margin-bottom: .3rem; }
.hm-card > span:last-child { font-size: .85rem; line-height: 1.8; color: var(--muted); }
.hm-more { margin-top: 1.4rem !important; font-size: .88rem; color: var(--muted); }
.hm-more a { color: var(--brand-800); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- فراخوان */
.hm-band {
  margin-top: 4rem; padding: 2.2rem 2.4rem; border-radius: 20px;
  background: linear-gradient(120deg, var(--brand-900), #1e293b 60%, #3b3220);
  color: #fff; display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
}
.hm-band h2 { color: #fff; margin-bottom: .3rem; }
.hm-band p { color: #cbd5e1; font-size: .95rem; }
.hm-band__btns { display: flex; gap: .7rem; flex-wrap: wrap; }
.hm-btn {
  display: inline-block; text-decoration: none; padding: .8rem 1.7rem;
  border-radius: 12px; font-weight: 700; font-size: .95rem;
  background: #e7c98a; color: #1f1a0e !important; border: 1px solid #e7c98a;
}
.hm-btn:hover { background: #f0d7a3; }
.hm-btn--line { background: transparent; color: #fff !important; border-color: rgb(255 255 255 / .35); }
.hm-btn--line:hover { background: rgb(255 255 255 / .08); }

/* ---------------------------------------------------------------- واکنش‌گرا */
@media (max-width: 900px) {
  .hm-hero { grid-template-columns: 1fr; gap: 2.2rem; padding: 2.2rem 0 2.4rem; }
  .hm-hero::before { display: none; }
  .hm-mock { transform: none; }
  .hm-grid { grid-template-columns: repeat(2, 1fr); }
  .hm-how { grid-template-columns: 1fr; }
  .hm-sec { padding-top: 3rem; }
}
@media (max-width: 560px) {
  .hm { padding-inline: 1rem; }
  .hm h2 { font-size: 1.25rem; }
  .hm-stats { grid-template-columns: repeat(2, 1fr); gap: 1rem 0; padding: 1.2rem .5rem; }
  .hm-stats div:nth-child(3) { border-inline-start: 0; }
  .hm-stats b { font-size: 1.25rem; }
  .hm-hero .hero__ph { -webkit-line-clamp: 2; }
  .hm-grid { gap: .7rem; }
  .hm-card { padding: 1rem .85rem; }
  .hm-band { padding: 1.6rem 1.3rem; }
  .hm-band__btns, .hm-btn { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-card { transition: none; }
  .hm-card:hover { transform: none; }
}
