/* صفحه اصلی میرزا. رنگ‌ها و فونت‌ها از site.css (body.mzx) می‌آیند.
   هیرو وسط‌چین با تایپ متحرک، بلافاصله زیرش سه کارت محصول کنار هم.
   بخش‌های مشترک (بنتو، مسیر، سؤال‌ها، مجله) در صفحه معرفی میرزا ورود هم استفاده می‌شوند. */

.mzh {
	--r-big: 28px;
	direction: rtl;
	background: var(--cream);
	color: var(--ink);
	font-family: var(--font);
	line-height: 1.8;
	overflow-x: clip;
}
.mzh *, .mzh *::before, .mzh *::after { box-sizing: border-box; }
.mzh h1, .mzh h2, .mzh h3 { font-family: var(--font-display); font-weight: 900; letter-spacing: 0; margin: 0; color: var(--ink); text-wrap: balance; }
.mzh p { margin: 0; }
.mzh a { color: inherit; }
.mzh img { max-width: 100%; height: auto; display: block; }

.mzh-wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.mzh-head { margin-bottom: 32px; max-width: 640px; }
.mzh-head p { margin-top: 10px; color: var(--muted); font-size: 17px; }
.mzh-head--row { display: flex; align-items: end; justify-content: space-between; gap: 16px; max-width: none; }
.mzh-h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.35; }

/* دکمه‌ها */
.mzh-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.mzh-actions--center { justify-content: center; }
.mzh-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 52px; padding: 12px 26px; white-space: nowrap;
	border: 2px solid var(--ink); border-radius: var(--r-ctl);
	background: var(--coral); color: var(--ink); text-decoration: none;
	font: 800 16px/1.2 var(--font);
	box-shadow: 0 4px 0 var(--ink);
	transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s;
}
.mzh-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.mzh-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.mzh-btn--ghost { background: var(--paper); }
.mzh-btn--ghost:hover { background: var(--coral-soft); }
.mzh-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 800; color: var(--coral-ink); text-decoration: none; }
.mzh-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.mzh-link .mzh-icon { transition: transform .25s var(--ease); }
.mzh-link:hover .mzh-icon { transform: translateX(-4px); }

/* ================= ۱. هیرو ================= */
.mzh-hero {
	position: relative;
	padding: 40px 0 72px;
	background:
		radial-gradient(60% 50% at 50% 0%, rgba(250, 96, 78, .14), transparent 70%),
		var(--cream);
}
/* نقطه‌های ریز پس‌زمینه، محو در پایین */
.mzh-hero::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image: radial-gradient(rgba(32, 33, 31, .13) 1px, transparent 1.4px);
	background-size: 22px 22px;
	-webkit-mask-image: linear-gradient(#000 0%, transparent 70%);
	mask-image: linear-gradient(#000 0%, transparent 70%);
}
.mzh-hero__copy { position: relative; display: grid; justify-items: center; text-align: center; }
.mzh-hero__kicker {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 6px 14px 6px 16px; margin-bottom: 20px;
	border: 2px solid var(--ink); border-radius: 999px;
	background: var(--paper);
	font-size: 14px; font-weight: 800;
	box-shadow: 0 2px 0 var(--ink);
}
.mzh-hero__kicker .mzh-icon { width: 18px; height: 18px; color: var(--coral-ink); }
.mzh-hero__title { font-size: clamp(34px, 5.6vw, 66px); line-height: 1.32; }

/* تایپ: عرض قاب = بلندترین عبارت، تا خط جابه‌جا نشود */
.mzh-type { display: inline-grid; justify-items: start; vertical-align: bottom; color: var(--coral-ink); }
.mzh-type > span, .mzh-type::before { grid-area: 1 / 1; white-space: nowrap; }
/* جای بلندترین عبارت؛ متن pseudo-element در H1 خوانده و ایندکس نمی‌شود */
.mzh-type::before { content: attr(data-longest); visibility: hidden; }
.mzh-type__text { position: relative; }
.mzh-type__text::after {
	content: ""; display: inline-block; width: 3px; height: .9em;
	margin-inline-start: 4px; vertical-align: -.08em;
	background: var(--coral); border-radius: 2px;
	animation: mzh-caret 1s steps(1) infinite;
}
.mzh-type.is-typing .mzh-type__text::after { animation: none; }
@keyframes mzh-caret { 50% { opacity: 0; } }
/* خط زیر عبارت فعال */
.mzh-type__text { background: linear-gradient(var(--coral-soft), var(--coral-soft)) no-repeat 0 88% / 100% .32em; }

.mzh-hero__lead { font-size: 18px; color: var(--muted); max-width: 52ch; margin: 18px 0 28px; line-height: 2; }
.mzh-hero__proof { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.mzh-hero__proof li { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--muted); }
.mzh-hero__proof .mzh-icon { width: 20px; height: 20px; color: var(--green); }

/* ================= سه محصول، کنار هم (فقط صفحه اصلی) ================= */
.mzh-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; scroll-margin-top: 120px; }
.mzh-card {
	display: flex; flex-direction: column;
	padding: 24px;
	border: 2px solid var(--ink);
	border-radius: var(--r-big);
	box-shadow: 0 5px 0 var(--ink);
}
.mzh-tone-coral { background: var(--coral-soft); }
.mzh-tone-green { background: var(--green-soft); }
.mzh-tone-blue  { background: var(--blue-soft); }
.mzh-card__top { display: flex; align-items: center; gap: 14px; }
.mzh-card__top img {
	flex: none; width: 72px; height: 72px; object-fit: cover;
	border: 2px solid var(--ink); border-radius: 18px; background: var(--paper);
}
.mzh-card__tag { font-weight: 800; font-size: 13px; color: var(--coral-ink); }
.mzh-card__name { font-size: 26px; line-height: 1.3; }
.mzh-card__name a { text-decoration: none; }
.mzh-card__name a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.mzh-card__installs { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: 12px; padding: 3px 12px 3px 10px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); font-size: 13px; font-weight: 800; }
.mzh-card__installs .mzh-icon { width: 18px; height: 18px; color: var(--green); }
.mzh-card__lead { font-size: 15px; color: var(--muted); line-height: 1.9; margin-top: 14px; }
.mzh-card__points { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.mzh-card__points li { display: flex; align-items: flex-start; gap: 8px; font-weight: 700; font-size: 14px; line-height: 1.7; }
.mzh-card__points .mzh-icon { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--green); stroke-width: 2.5; }
.mzh .mzh-card__price { margin: auto 0 0; padding-top: 18px; font-weight: 900; font-size: 18px; font-variant-numeric: tabular-nums; }
.mzh-card__price del { display: block; font-size: 14px; font-weight: 700; color: var(--muted); }
.mzh-card__price small { display: block; margin-top: 4px; font-size: 13px; font-weight: 700; line-height: 1.7; color: var(--muted); }
.mzh-card .mzh-actions { margin-top: 14px; flex-wrap: nowrap; }
.mzh-card .mzh-actions .mzh-btn { flex: 1 1 auto; min-height: 48px; padding: 10px 14px; font-size: 15px; }
.mzh-card .mzh-actions .mzh-btn--ghost { flex: 0 0 auto; }

/* بخش «اول امتحان کن، بعد بخر» و لینک مقاله‌ها در صفحه اصلی */
.mzh-home-steps { position: relative; }
.mzh-anchor { position: absolute; top: -120px; }
.mzh-steps__list .mzh-link { justify-self: start; }
.mzh-notes { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.mzh-notes li { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--muted); }
.mzh-notes .mzh-icon { flex: none; width: 22px; height: 22px; color: var(--ink); }
.mzh-home-cta { padding-top: 72px; border-top: 2px solid var(--ink); }
.mzh-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: 28px; }
.mzh-links__title { font-size: 17px; }
.mzh-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; flex: 1 1 auto; }
.mzh-links li a { font-size: 15px; font-weight: 700; color: var(--muted); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 5px; }
.mzh-links li a:hover { color: var(--ink); text-decoration-color: currentColor; }

/* ================= ۲. بنتو ================= */
.mzh-why { padding: 80px 0; border-top: 2px solid var(--ink); background: var(--paper); }
.mzh-bento { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.mzh-cell { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: var(--r-card); border: 2px solid var(--ink); text-decoration: none; }
.mzh-cell .mzh-icon { width: 40px; height: 40px; }
.mzh-cell h3 { font-size: 21px; line-height: 1.45; }
.mzh-cell p { color: var(--muted); }
.mzh-cell--demo { grid-row: span 2; background: var(--coral); justify-content: flex-end; min-height: 320px; box-shadow: 0 5px 0 var(--ink); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.mzh-cell--demo p { color: #3a1c14; }
.mzh-cell--demo .mzh-link { color: var(--ink); margin-top: 4px; }
.mzh-cell--demo:hover { transform: translateY(-3px); box-shadow: 0 8px 0 var(--ink); }
.mzh-cell--fa { background: var(--cream); }
.mzh-cell--data { background: var(--green-soft); }
.mzh-cell--install { grid-column: span 2; background: var(--blue-soft); }

/* ================= ۳. مسیر ================= */
.mzh-steps { padding: 80px 0; border-top: 2px solid var(--ink); }
.mzh-steps__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mzh-steps__list li {
	position: relative; display: grid; gap: 8px; align-content: start;
	padding: 24px; border: 2px solid var(--ink); border-radius: var(--r-card); background: var(--paper);
}
.mzh-steps__num {
	width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 8px;
	border: 2px solid var(--ink); border-radius: 14px; background: var(--coral);
	font: 900 22px/1 var(--font-display); box-shadow: 0 3px 0 var(--ink);
}
.mzh-steps__list h3 { font-size: 20px; }
.mzh-steps__list p { color: var(--muted); }
/* پیکان بین قدم‌ها */
.mzh-steps__list li + li::before {
	content: ""; position: absolute; top: 46px; right: -14px; width: 12px; height: 2px; background: var(--ink);
}

/* ================= ۴. سؤال‌ها ================= */
.mzh-faq { padding: 80px 0; border-top: 2px solid var(--ink); background: var(--paper); }
.mzh-faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: start; }
.mzh-faq__grid .mzh-head { position: sticky; top: 140px; }
.mzh-faq__list { display: grid; gap: 12px; }
.mzh-qa { border: 2px solid var(--ink); border-radius: var(--r-card); background: var(--cream); transition: background-color .25s; }
.mzh-qa[open] { background: var(--paper); box-shadow: 0 4px 0 var(--ink); }
.mzh-qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px; padding: 16px 22px; font-weight: 800; font-size: 17px; }
.mzh-qa summary::-webkit-details-marker { display: none; }
.mzh-qa summary .mzh-icon { width: 24px; height: 24px; transition: transform .3s var(--ease); }
.mzh-qa[open] summary .mzh-icon { transform: rotate(45deg); }
.mzh-qa p { padding: 0 22px 20px; color: var(--muted); line-height: 2; }

/* ================= ۵. مجله ================= */
.mzh-blog { padding: 80px 0; border-top: 2px solid var(--ink); }
.mzh-blog__grid { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.mzh-post { display: grid; gap: 8px; align-content: start; padding: 16px; border: 2px solid var(--ink); border-radius: var(--r-card); background: var(--paper); text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.mzh-post:hover { transform: translateY(-3px); box-shadow: 0 6px 0 var(--ink); }
.mzh-post img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; border: 2px solid var(--ink); }
.mzh-post--lead { grid-row: span 2; }
.mzh-post h3 { font-size: 18px; line-height: 1.7; }
.mzh-post--lead h3 { font-size: 23px; }
.mzh-post__date { font-size: 13px; color: var(--muted); }

/* ================= ۶. دعوت پایانی ================= */
.mzh-cta { padding: 0 0 88px; }
.mzh-cta__box {
	display: grid; justify-items: center; text-align: center; gap: 14px;
	padding: 56px 28px; border: 2px solid var(--ink); border-radius: var(--r-big);
	background: var(--coral); box-shadow: 0 6px 0 var(--ink);
}
.mzh-cta__box p { color: #3a1c14; font-size: 17px; max-width: 48ch; margin-bottom: 8px; }
.mzh-cta__box .mzh-btn { background: var(--paper); }

@media (prefers-reduced-motion: reduce) {
	.mzh-type__text::after { animation: none; }
}

/* ================= تبلت ================= */
@media (max-width: 1023px) and (min-width: 761px) {
	.mzh-products { grid-template-columns: 1fr 1fr; }
	.mzh-products .mzh-card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 1023px) {
	.mzh-faq__grid .mzh-head { position: static; }
}

/* ================= موبایل ================= */
@media (max-width: 760px) {
	.mzh-hero { padding: 24px 0 48px; }
	.mzh-hero__kicker { font-size: 13px; margin-bottom: 14px; }
	.mzh-hero__title { font-size: clamp(27px, 8vw, 34px); line-height: 1.45; }
	.mzh-hero__lead { font-size: 15.5px; margin: 12px 0 20px; line-height: 1.95; }
	.mzh-hero__proof { gap: 6px 14px; margin-top: 18px; }
	.mzh-hero__proof li { font-size: 13px; }
	.mzh-actions--center .mzh-btn { flex: 1 1 140px; padding-inline: 16px; }

	.mzh-hero__proof li:not(.mzh-hero__sites):nth-child(n+3) { display: none; }

	.mzh-products { grid-template-columns: 1fr; gap: 14px; margin-top: 36px; }
	.mzh-card { padding: 18px; border-radius: 22px; }
	.mzh-card__top img { width: 60px; height: 60px; border-radius: 15px; }
	.mzh-card__name { font-size: 23px; }
	.mzh-card__lead { font-size: 14.5px; line-height: 1.85; margin-top: 10px; }
	.mzh-card__points li { font-size: 13.5px; }
	.mzh-card__price { padding-top: 14px; font-size: 17px; }

	.mzh-home-steps .mzh-steps__list li { grid-template-columns: 40px 1fr; column-gap: 12px; row-gap: 2px; padding: 16px; }
	.mzh-home-steps .mzh-steps__list li > * { grid-column: 2; }
	.mzh-home-steps .mzh-steps__list .mzh-steps__num { grid-column: 1; grid-row: 1 / span 2; width: 40px; height: 40px; margin: 0; font-size: 18px; border-radius: 12px; }
	.mzh-home-steps .mzh-steps__list h3 { font-size: 18px; }
	.mzh-notes { flex-direction: column; margin-top: 18px; }
	.mzh-notes li { font-size: 14px; align-items: flex-start; }
	.mzh-home-cta { padding-top: 56px; }
	.mzh-links { flex-direction: column; align-items: flex-start; }
	.mzh-links ul { flex-direction: column; }

	/* دکمه شناور پشتیبانی (افزونه میرزا پشتیبانی) کوچک‌تر، تا روی متن کارت‌ها ننشیند */
	.mzs-support { width: 46px !important; height: 46px !important; left: 10px !important; }
	.mzs-support .mzs-support__icon { width: 20px !important; height: 20px !important; }

	.mzh-why, .mzh-steps, .mzh-faq, .mzh-blog { padding: 56px 0; }
	.mzh-head { margin-bottom: 22px; }
	.mzh-head p { font-size: 15px; }
	.mzh-head--row { align-items: center; }
	.mzh-bento { grid-template-columns: 1fr; }
	.mzh-cell { padding: 22px; }
	.mzh-cell--demo { grid-row: auto; min-height: 220px; }
	.mzh-cell--install { grid-column: auto; }
	.mzh-steps__list { grid-template-columns: 1fr; gap: 12px; }
	.mzh-steps__list li + li::before { display: none; }
	.mzh-faq__grid { grid-template-columns: 1fr; gap: 0; }
	.mzh-qa summary { font-size: 16px; padding: 14px 18px; }
	.mzh-qa p { padding: 0 18px 18px; }
	.mzh-blog__grid { grid-template-columns: 1fr; }
	.mzh-post--lead { grid-row: auto; }
	.mzh-post--lead h3 { font-size: 20px; }
	.mzh-cta { padding-bottom: 56px; }
	.mzh-cta__box { padding: 36px 20px; }
}
