/**
 * هوشیار — لایه قالب وردپرس روی صفحه معرفی
 * فونت یکان‌بخ برای همه متن‌ها، بخش ویدیو، نوار خرید موبایل و پابرگ.
 */

/* ── فونت ─────────────────────────────────────── */
@font-face { font-family: "hy-yekanbakh"; font-weight: 300; font-style: normal; font-display: swap; src: url("fonts/YekanBakhFaNum-Light.woff2") format("woff2"); }
@font-face { font-family: "hy-yekanbakh"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/YekanBakhFaNum-Regular.woff2") format("woff2"); }
@font-face { font-family: "hy-yekanbakh"; font-weight: 500 599; font-style: normal; font-display: swap; src: url("fonts/YekanBakhFaNum-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "hy-yekanbakh"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/YekanBakhFaNum-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "hy-yekanbakh"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/YekanBakhFaNum-Bold.woff2") format("woff2"); }
@font-face { font-family: "hy-yekanbakh"; font-weight: 800 1000; font-style: normal; font-display: swap; src: url("fonts/YekanBakh-VF.woff") format("woff"); }

:root {
	--font-body: "hy-yekanbakh", Tahoma, sans-serif;
	--font-title: "hy-yekanbakh", Tahoma, sans-serif;
	--font-num: "hy-yekanbakh", Tahoma, sans-serif;
}

h1, h2, h3, h4 { font-weight: 850; letter-spacing: -.2px; }
.hero__title { font-weight: 900; }
.brand { font-weight: 900; }
.btn { font-weight: 700; }

/* ویجت نمایشی با فونت پیش‌فرض خود افزونه (وزیرمتن، رایگان با مجوز OFL) می‌ماند
   تا خریدار دقیقاً همان چیزی را ببیند که روی سایت خودش نصب می‌شود. */

/* ── نشان برند در نوار بالا ────────────────────── */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { width: 30px; height: 30px; flex: none; }

/* ── دکمه ویدیو در قهرمان: کارت کوچک با تصویر ── */
.watch {
	display: inline-flex; align-items: center; gap: 12px; padding: 6px 6px 6px 16px;
	border-radius: 16px; border: 1px solid var(--border); background: var(--surface);
	color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm);
	transition: border-color .2s, transform .2s, box-shadow .2s;
}
.watch:hover { border-color: var(--green-strong); transform: translateY(-2px); box-shadow: 0 14px 30px -16px rgba(47,132,53,.55); }
.watch__thumb { position: relative; width: 84px; height: 48px; border-radius: 11px; overflow: hidden; flex: none; background: #06100a; }
.watch__thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.watch__play { position: absolute; inset: 0; display: grid; place-items: center; }
.watch__play svg { width: 26px; height: 26px; padding: 5px 4px 5px 6px; border-radius: 50%; background: #fff; color: var(--green-strong); box-shadow: 0 0 0 5px rgba(255,255,255,.25); }
.watch__txt b { display: block; font-size: var(--t-sm); font-weight: 800; line-height: 1.5; }
.watch__txt small { display: block; font-size: var(--t-xs); color: var(--muted); line-height: 1.4; }

.hero__trust { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: var(--s-4) 0 0; font-size: var(--t-sm); color: var(--muted); }
.hero__trust li { display: inline-flex; align-items: center; gap: 7px; }
.hero__trust li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%232f8435' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat; }

/* ── بخش ویدیو ───────────────────────────────── */
.vid { padding-block: var(--s-7); }
.vid__frame {
	position: relative; max-width: 1080px; margin: var(--s-5) auto 0; border-radius: 28px; padding: 10px;
	background: linear-gradient(160deg, #2f8435, #0b1a0e 55%, #06100a);
	box-shadow: 0 40px 90px -40px rgba(20, 70, 25, .65), 0 0 0 1px rgba(47, 132, 53, .25);
}
.vid__screen { position: relative; overflow: hidden; border-radius: 20px; background: #050806; aspect-ratio: 16 / 9; }
.vid__screen video { display: block; width: 100%; height: 100%; object-fit: contain; background: #050806; }
.vid__play {
	position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
	border: 0; padding: 0; cursor: pointer; font: inherit; color: #fff;
	background: radial-gradient(closest-side, rgba(0,0,0,.05), rgba(0,0,0,.55));
	transition: opacity .3s ease, background .3s ease;
}
.vid__play:hover { background: radial-gradient(closest-side, rgba(0,0,0,0), rgba(0,0,0,.45)); }
.vid__btn {
	position: relative; display: grid; place-items: center; width: 104px; height: 104px; border-radius: 50%;
	background: linear-gradient(145deg, #7ee08a, #2f8435 70%);
	box-shadow: inset 0 2px 0 rgba(255,255,255,.45), 0 18px 44px -10px rgba(0,0,0,.7), 0 0 60px -6px rgba(95,208,104,.7);
	transition: transform .25s ease;
}
.vid__play:hover .vid__btn { transform: scale(1.08); }
.vid__btn svg { position: relative; z-index: 1; width: 44px; height: 44px; margin-left: 6px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); }
.vid__ring { position: absolute; inset: -2px; border-radius: 50%; border: 2px solid rgba(126,224,138,.7); animation: vidRing 2.4s ease-out infinite; }
.vid__ring--2 { animation-delay: 1.2s; }
@keyframes vidRing { from { transform: scale(1); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
.vid__label { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 20px; border-radius: 16px; background: rgba(6,16,10,.62); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.14); }
.vid__label b { font-size: var(--t-base); font-weight: 800; }
.vid__label small { font-size: var(--t-xs); opacity: .75; }
.vid.is-playing .vid__play { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .vid__ring { animation: none; opacity: 0; } }

.chapters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 1080px; margin: var(--s-4) auto 0; }
.chapter {
	display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; cursor: pointer;
	border: 1px solid var(--border); background: var(--surface); color: var(--ink); font: inherit; font-size: var(--t-sm); font-weight: 600;
	transition: border-color .2s, background .2s;
}
.chapter b { color: var(--green-strong); font-weight: 800; font-size: var(--t-xs); }
.chapter:hover, .chapter.is-on { border-color: var(--green-strong); background: var(--green-tint); }

@media (max-width: 640px) {
	.vid__frame { max-width: 380px; border-radius: 26px; padding: 8px; }
	.vid__screen { aspect-ratio: 9 / 16; border-radius: 20px; }
	.vid__btn { width: 84px; height: 84px; }
	.vid__btn svg { width: 36px; height: 36px; }
}

/* ── نوار سازگاری ─────────────────────────────── */
.marquee { overflow: hidden; padding-block: var(--s-3); border-block: 1px solid var(--border); background: var(--bg-soft);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 12px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--ink); font-size: var(--t-sm); font-weight: 700; white-space: nowrap; }
.marquee__track span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } .marquee__track span[aria-hidden] { display: none; } }

/* ── سه قدم ──────────────────────────────────── */
.steps { list-style: none; padding: 0; margin: var(--s-5) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); counter-reset: none; }
.step { position: relative; padding: var(--s-4); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.step__n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; margin-block-end: var(--s-2);
	background: linear-gradient(145deg, #6fd476, #2f8435); color: #fff; font-weight: 900; font-size: 20px; box-shadow: 0 10px 22px -10px rgba(47,132,53,.8); }
.step h3 { font-size: var(--t-lg); }
.step p { margin-block-start: 6px; color: var(--muted); font-size: var(--t-sm); }
.step:not(:last-child)::after { content: ""; position: absolute; top: 44px; inset-inline-end: -14px; width: 12px; height: 12px; border-top: 2px solid var(--green); border-left: 2px solid var(--green); transform: rotate(-45deg); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } .step:not(:last-child)::after { display: none; } }

/* ── ماشین‌حساب ──────────────────────────────── */
.calc { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--s-4); margin-block-start: var(--s-5); align-items: stretch; }
.calc__in { padding: var(--s-4); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.calc__in .row { margin-block-end: var(--s-3); }
.calc__in input[type="range"] { flex: 1; min-width: 120px; }
.calc__out { padding: var(--s-4); border-radius: var(--r-lg); color: #fff; display: flex; flex-direction: column; gap: 12px;
	background: radial-gradient(120% 80% at 100% 0%, rgba(126,224,138,.25), transparent 60%), linear-gradient(160deg, #2f8435, #133d17); }
.calc__big span { display: block; font-size: clamp(44px, 6vw, 64px); font-weight: 950; line-height: 1.1; }
.calc__big small { display: block; font-size: var(--t-sm); opacity: .85; }
.calc__row { display: flex; align-items: baseline; gap: 10px; padding-block-start: 12px; border-top: 1px solid rgba(255,255,255,.18); font-size: var(--t-sm); }
.calc__row b { font-size: var(--t-xl); font-weight: 900; }
.calc__note { margin-top: auto; font-size: var(--t-xs); opacity: .7; }
@media (max-width: 820px) { .calc { grid-template-columns: 1fr; } }

/* ── گالری تم صفحه گفتگو و انتخاب جای دکمه ─────── */
.cthemes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 560px) { .cthemes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ctheme { display: flex; flex-direction: column; gap: 6px; padding: 6px 6px 7px; border: 1.5px solid var(--border); border-radius: var(--r-sm); background: var(--bg); font-family: inherit; cursor: pointer; transition: border-color .16s, transform .16s; }
.ctheme:hover { transform: translateY(-1px); }
.ctheme.is-on { border-color: var(--green); box-shadow: 0 0 0 3px rgba(47,132,53,.14); }
.ctheme .hy { pointer-events: none; }
.ctheme .hy.hy--mini .hy-panel { height: 118px; }
.ctheme .hy.hy--mini .hy-header { padding: 6px 8px; }
.ctheme .hy.hy--mini .hy-body { padding: 7px; }
.ctheme .hy.hy--mini .hy-bubble { font-size: 9.5px; padding: 3px 8px; }
.ctheme__name { color: var(--ink); font-size: 11.5px; font-weight: 600; text-align: center; }

.pospick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pospick button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 6px; border: 1.5px solid var(--border); border-radius: var(--r-sm); background: var(--bg); font: inherit; font-size: 11.5px; font-weight: 600; color: var(--ink); cursor: pointer; }
.pospick button.is-on { border-color: var(--green); box-shadow: 0 0 0 3px rgba(47,132,53,.14); }
.pospick i { position: relative; width: 54px; height: 36px; border-radius: 6px; border: 1.5px solid var(--border); background: var(--bg-soft); }
.pospick i::after { content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.pospick [data-pos="bottom-right"] i::after { right: 4px; bottom: 4px; }
.pospick [data-pos="bottom-left"] i::after { left: 4px; bottom: 4px; }
.pospick [data-pos="middle-right"] i::after { right: 4px; top: calc(50% - 4.5px); }
.pospick [data-pos="middle-left"] i::after { left: 4px; top: calc(50% - 4.5px); }

/* ── نوار پیشرفت و بازگشت به بالا ─────────────── */
.progress { position: fixed; inset-inline: 0; top: 0; height: 3px; z-index: 1000; pointer-events: none; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, #4caf4f, #2f8435); transform-origin: right; transform: scaleX(0); }
.totop { position: fixed; left: 20px; bottom: 20px; z-index: 900; width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); display: grid; place-items: center; cursor: pointer; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s; }
.totop.is-on { opacity: 1; transform: none; pointer-events: auto; }
.totop svg { width: 22px; height: 22px; }
@media (max-width: 760px) { .totop { display: none; } }

/* ── نوار خرید چسبان موبایل ──────────────────── */
.buybar { display: none; }
@media (max-width: 760px) {
	.buybar {
		position: fixed; inset-inline: 12px; bottom: 12px; z-index: 900;
		display: flex; align-items: center; justify-content: space-between; gap: 12px;
		padding: 10px 10px 10px 16px; border-radius: 18px;
		background: rgba(24, 25, 31, .92); color: #fff; backdrop-filter: blur(10px);
		box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .5);
		transform: translateY(140%); transition: transform .35s ease;
	}
	.buybar.is-on { transform: none; }
	.buybar b { font-size: var(--t-sm); font-weight: 800; }
	.buybar small { display: block; font-size: var(--t-xs); opacity: .7; font-weight: 400; }
	.buybar .btn { flex: none; }
	/* دکمه شناور دمو بالای نوار بنشیند */
	body.has-buybar .hy:not(.hy--inline):not(.hy--static) { --hy-offset-y: 92px; }
}

/* ── پابرگ ────────────────────────────────── */
.foot__in { flex-wrap: wrap; gap: var(--s-3); }
.foot__links { display: flex; flex-wrap: wrap; gap: var(--s-3); font-size: var(--t-sm); }
.foot__links a { color: #d3d6dc; text-decoration: none; opacity: .85; }
.foot__links a:hover { opacity: 1; color: #fff; }
.foot .brand__mark { width: 26px; height: 26px; }

/* ── برگه‌های معمولی ─────────────────────────── */
.page { max-width: 820px; }
.page__item { margin-block-end: var(--s-6); }
.page__body { margin-block-start: var(--s-3); color: var(--body); }
.page__body > * + * { margin-block-start: var(--s-2); }
.page__body img { border-radius: var(--r-lg); }
