/* ==========================================================================
   یاران کلاود — استایل اصلی
   ========================================================================== */

/* قلم پیدا در assets/css/fonts.css است — تولیدشده با scripts/build_fonts.py
   و پیش از این فایل بارگذاری می‌شود. دستی اینجا @font-face اضافه نکن. */

/* --- ریست --- */
*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	/* تیتر با لنگر زیر هدر چسبان پنهان نشود */
	scroll-padding-top: calc(var(--header-h) + var(--sp-5));
}

body {
	margin: 0;

	/* حفاظ سرریز افقی. «clip» به‌جای «hidden» چون hidden روی body
	   موقعیت sticky هدر را از کار می‌اندازد. */
	overflow-x: clip;

	font-family: var(--font-body);
	font-size: var(--fs-md);
	font-weight: var(--w-normal);
	line-height: var(--lh-body);
	color: var(--text);
	background: var(--bg);

	/* هیچ‌وقت وزن یا ایتالیک جعلی نساز. مرورگر وقتی وزنی را نداشته باشد
	   خودش آن را «چاق» می‌کند و نتیجه در فارسی افتضاح است. قلم متغیر
	   همهٔ وزن‌ها را واقعاً دارد، پس این را خاموش می‌کنیم. */
	font-synthesis: none;
	font-optical-sizing: auto;

	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; transition: color .16s var(--ease); }
a:hover { color: var(--brand-800); }

/* --- تیترها ---
   قلم استعداد، ارتفاع خط بسته‌تر، و بدون فاصله‌گذاری حرفی.
   نکتهٔ مهم فارسی: letter-spacing روی خط متصل، حروف را از هم باز می‌کند
   و کلمه را می‌شکند. در لاتین ترفند است، در فارسی خرابکاری. */
h1, h2, h3, h4, h5, h6 {
	margin: 0 0 var(--sp-4);
	font-family: var(--font-display);
	font-weight: var(--w-black);
	line-height: var(--lh-heading);
	letter-spacing: normal;
	color: var(--ink-800);
	/* سطرها را هم‌اندازه می‌کند تا یک کلمهٔ تنها در خط آخر نیفتد */
	text-wrap: balance;
}
h1 { font-size: var(--fs-4xl); font-weight: 900; line-height: var(--lh-display); }
h2 { font-size: var(--fs-3xl); font-weight: 800; line-height: var(--lh-display); }
h3 { font-size: var(--fs-xl);  font-weight: 700; }
h4 { font-size: var(--fs-lg);  font-weight: 700; }

p {
	margin: 0 0 var(--sp-4);
	/* از تک‌کلمه ماندن در سطر آخر پاراگراف جلوگیری می‌کند */
	text-wrap: pretty;
}
ul, ol { margin: 0 0 var(--sp-4); padding-inline-start: 1.4em; }
strong, b { font-weight: var(--w-bold); }
small { font-size: var(--fs-sm); }

button, input, select, textarea { font-family: inherit; }
button { font: inherit; }

/* اعداد در جدول و مشخصات باید زیر هم بنشینند */
.tabular, .plan-specs .v, .compare td, .hero-stat .value {
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum" 1;
}

:focus-visible { outline: 3px solid var(--brand-400); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--brand-100); color: var(--ink-900); }

/* --- چیدمان --- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-5); }
.section { padding-block: var(--sp-9); }
.section--soft { background: var(--bg-soft); }
.section--sunken { background: var(--bg-sunken); }
.section--ink { background: var(--bg-inverse); color: var(--text-inverse); }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--tight { padding-block: var(--sp-7); }

.section-head { max-width: 46rem; margin-inline: auto; text-align: center; margin-bottom: var(--sp-7); }
.section-head h2 { margin-bottom: var(--sp-3); }
.section-head p {
	color: var(--text-soft); font-size: var(--fs-lg); line-height: var(--lh-snug);
	margin: 0; text-wrap: pretty;
}
.section--ink .section-head p { color: var(--brand-200); }

.eyebrow {
	display: inline-flex; align-items: center; gap: var(--sp-2);
	font-family: var(--font-body);
	font-size: var(--fs-sm); font-weight: var(--w-semi); color: var(--brand-700);
	background: var(--brand-50); border: 1px solid var(--brand-100);
	padding: 5px 14px; border-radius: var(--r-pill); margin-bottom: var(--sp-4);
}
.section--ink .eyebrow { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); color: var(--brand-200); }

.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* --- دکمه‌ها --- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
	padding: 13px 28px; border-radius: var(--r-pill);
	font-family: var(--font-body);
	font-weight: var(--w-semi); font-size: var(--fs-base); line-height: 1.55;
	border: 1.5px solid transparent; cursor: pointer;
	transition: transform .16s var(--ease), box-shadow .16s var(--ease),
	            background .16s var(--ease), color .16s var(--ease);
	white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--brand-600); color: #fff; box-shadow: var(--shadow-brand); }
.btn--primary:hover { background: var(--brand-700); color: #fff; }
.btn--cta { background: var(--amber-500); color: var(--ink-900); box-shadow: 0 10px 28px rgba(245,158,11,.30); }
.btn--cta:hover { background: var(--amber-400); color: var(--ink-900); }
.btn--ghost { background: transparent; color: var(--brand-700); border-color: var(--brand-200); }
.btn--ghost:hover { background: var(--brand-50); color: var(--brand-800); border-color: var(--brand-300); }
.btn--on-ink { background: rgba(255,255,255,.10); color: #fff; border-color: rgba(255,255,255,.22); }
.btn--on-ink:hover { background: rgba(255,255,255,.18); color: #fff; }
.btn--sm { padding: 8px 18px; font-size: var(--fs-sm); }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; }

/* --- هدر --- */
.site-header {
	position: sticky; top: 0; z-index: 60;
	background: rgba(255,255,255,.88);
	backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: var(--sp-5); min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand svg, .brand img { height: 38px; width: auto; }
.brand-name {
	font-family: var(--font-display);
	font-weight: 800; font-size: var(--fs-lg);
	color: var(--ink-800); letter-spacing: normal; line-height: 1.2;
}
.brand-name span { color: var(--brand-600); }

.nav { margin-inline-start: auto; }
.nav ul { display: flex; align-items: center; gap: var(--sp-2); list-style: none; margin: 0; padding: 0; }
.nav li a {
	display: block; padding: 9px 14px; border-radius: var(--r-sm);
	color: var(--ink-700); font-weight: var(--w-medium); font-size: var(--fs-base);
	white-space: nowrap;
}
.nav li a:hover,
.nav li.current-menu-item > a,
.nav li.current-menu-parent > a { background: var(--brand-50); color: var(--brand-700); }
.header-actions { display: flex; align-items: center; gap: var(--sp-3); flex-shrink: 0; }

/* زیرمنو */
.nav li { position: relative; }
.nav .sub-menu {
	position: absolute; top: calc(100% + 8px); inset-inline-start: 0;
	min-width: 230px; background: #fff; border: 1px solid var(--border);
	border-radius: var(--r-md); box-shadow: var(--shadow-lg); padding: 6px;
	flex-direction: column; align-items: stretch; gap: 2px;
	opacity: 0; visibility: hidden; transform: translateY(-6px);
	transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s;
}
.nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu {
	opacity: 1; visibility: visible; transform: translateY(0);
}

.nav-toggle {
	display: none; width: 44px; height: 44px; border-radius: var(--r-sm);
	border: 1px solid var(--border); background: #fff; cursor: pointer;
	align-items: center; justify-content: center; margin-inline-start: auto;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink-800); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
	content: ""; position: absolute; inset-inline: 0; height: 2px; background: var(--ink-800);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }

/* --- هیرو --- */
.hero {
	position: relative; overflow: hidden;
	background:
		radial-gradient(900px 480px at 82% -12%, rgba(13,148,136,.16), transparent 62%),
		radial-gradient(700px 420px at 8% 8%, rgba(30,74,112,.10), transparent 60%),
		linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
	padding-block: var(--sp-9) var(--sp-8);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--sp-7); align-items: center; }

.hero h1 {
	margin-bottom: var(--sp-5);
	font-weight: 800;           /* ۹۰۰ در فارسی توپُر و کدر می‌شود */
	line-height: 1.34;          /* فارسی در اندازهٔ بزرگ هم هوا می‌خواهد */
	max-width: 20ch;
	text-wrap: balance;
}
/* واژهٔ برجسته: فقط رنگ. زیرخط روی حروف فارسی می‌افتد و کلمه را کور می‌کند. */
.hero h1 em {
	font-style: normal;
	color: var(--brand-600);
}

.hero-lead {
	font-size: var(--fs-lg);
	font-weight: var(--w-normal);
	color: var(--grey-600);
	line-height: var(--lh-body);
	max-width: var(--measure-tight);
	text-wrap: pretty;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
.hero-trust {
	display: flex; flex-wrap: wrap; gap: var(--sp-6); margin-top: var(--sp-6);
	padding-top: var(--sp-5); border-top: 1px dashed var(--border-strong);
}
.hero-trust div { font-size: var(--fs-sm); color: var(--text-soft); line-height: var(--lh-snug); }
.hero-trust strong {
	display: block;
	font-family: var(--font-display);
	font-size: var(--fs-xl); font-weight: 800;
	color: var(--ink-800); line-height: 1.25;
	font-variant-numeric: tabular-nums;
}

/* کارت تصویری هیرو */
.hero-visual {
	background: #fff; border: 1px solid var(--border); border-radius: var(--r-xl);
	box-shadow: var(--shadow-lg); padding: var(--sp-5); display: grid; gap: var(--sp-3);
}
.hero-stat {
	display: flex; align-items: center; gap: var(--sp-3);
	padding: 14px 16px; border-radius: var(--r-md); background: var(--bg-soft);
	border: 1px solid var(--border);
}
.hero-stat .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); flex-shrink: 0; }
.hero-stat .label { font-size: var(--fs-sm); color: var(--text-soft); }
.hero-stat .value { margin-inline-start: auto; font-weight: 800; color: var(--ink-800); }

/* --- دو ستون: سرویس‌ها و خدمات مهندسی --- */
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
.pillar {
	position: relative; border-radius: var(--r-xl); padding: var(--sp-6);
	border: 1px solid var(--border); background: var(--surface);
	display: flex; flex-direction: column;
	transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.pillar:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.pillar--services { background: linear-gradient(180deg, var(--brand-50), #fff 55%); border-color: var(--brand-100); }
.pillar--engineering { background: linear-gradient(180deg, #F4F7FB, #fff 55%); border-color: #DCE5EF; }
.pillar-kicker {
	font-size: var(--fs-xs); font-weight: var(--w-semi); color: var(--text-soft);
	margin-bottom: var(--sp-2);
}
.pillar h3 { font-size: var(--fs-2xl); margin-bottom: var(--sp-3); }
.pillar > p { color: var(--grey-600); }
.pillar-list { list-style: none; padding: 0; margin: var(--sp-4) 0 var(--sp-6); display: grid; gap: 2px; }
.pillar-list a {
	display: flex; align-items: center; gap: var(--sp-3);
	padding: 12px 14px; border-radius: var(--r-md);
	color: var(--ink-700); font-weight: var(--w-medium); font-size: var(--fs-base);
}
.pillar-list a:hover { background: rgba(255,255,255,.9); box-shadow: var(--shadow-sm); color: var(--brand-700); }
.pillar-list .arrow { margin-inline-start: auto; color: var(--grey-400); font-size: var(--fs-lg); line-height: 1; }
.pillar-list a:hover .arrow { color: var(--brand-600); }
.pillar-foot { margin-top: auto; }

/* --- کارت سرویس --- */
.card {
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
	padding: var(--sp-5);
	transition: box-shadow .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--brand-200); }
.card h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-3); line-height: var(--lh-heading); }
.card p {
	color: var(--text-soft); font-size: var(--fs-base);
	line-height: var(--lh-snug); margin: 0; text-wrap: pretty;
}
.card-icon {
	width: 48px; height: 48px; border-radius: var(--r-md); margin-bottom: var(--sp-4);
	display: grid; place-items: center; background: var(--brand-50); color: var(--brand-700);
	border: 1px solid var(--brand-100);
}
.card-icon svg { width: 24px; height: 24px; }
.card--eng .card-icon { background: #EEF3F9; color: var(--ink-600); border-color: #DCE5EF; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--sp-4); font-weight: 700; font-size: var(--fs-sm); }

/* --- کارت پلن --- */
.plans { display: grid; gap: var(--sp-5); align-items: stretch; grid-template-columns: repeat(3, 1fr); }
.plan {
	position: relative; display: flex; flex-direction: column;
	background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r-xl);
	padding: var(--sp-6) var(--sp-5);
	transition: box-shadow .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease);
}
.plan:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.plan--popular { border-color: var(--brand-500); box-shadow: var(--shadow-brand); }
.plan-badge {
	position: absolute; top: -13px; inset-inline-start: 50%; transform: translateX(50%);
	background: var(--brand-600); color: #fff; font-size: var(--fs-xs); font-weight: 700;
	padding: 5px 16px; border-radius: var(--r-pill); white-space: nowrap;
}
.plan-name {
	font-family: var(--font-display);
	font-size: var(--fs-lg); font-weight: 800;
	color: var(--ink-800); margin-bottom: var(--sp-1); line-height: 1.4;
}
.plan-tagline {
	font-size: var(--fs-sm); color: var(--text-soft);
	line-height: var(--lh-snug); min-height: 3.4em; margin-bottom: var(--sp-4);
	text-wrap: pretty;
}
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: var(--sp-2); }
.plan-price .amount {
	font-family: var(--font-display);
	font-size: var(--fs-3xl); font-weight: 900;
	color: var(--ink-800); line-height: 1.1;
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum" 1;
}
.plan-price .unit { font-size: var(--fs-sm); color: var(--text-soft); font-weight: var(--w-medium); }
.plan-price-note {
	font-size: var(--fs-xs); color: var(--text-soft);
	margin-bottom: var(--sp-5); min-height: 1.8em; line-height: var(--lh-snug);
}
.plan-price-note s { color: var(--grey-400); }
.plan-specs { list-style: none; padding: 0; margin: 0 0 var(--sp-5); display: grid; gap: 9px; }
.plan-specs li {
	display: flex; align-items: baseline; gap: var(--sp-2);
	font-size: var(--fs-base); line-height: 1.6;
}
.plan-specs .k { color: var(--text-soft); flex-shrink: 0; }
/* خط‌چین بین برچسب و مقدار — مثل فهرست مطالب کتاب، چشم را هدایت می‌کند */
.plan-specs li::after {
	content: ""; order: 1; flex: 1 1 auto; height: 0;
	margin-inline: 6px; transform: translateY(-.2em);
	border-bottom: 1px dotted var(--border-strong);
}
.plan-specs .v {
	order: 2; font-weight: var(--w-bold); color: var(--ink-800); flex-shrink: 0;
	font-variant-numeric: tabular-nums;
}
.plan-features { list-style: none; padding: 0; margin: 0 0 var(--sp-5); display: grid; gap: 9px; }
.plan-features li {
	display: flex; align-items: flex-start; gap: var(--sp-2);
	font-size: var(--fs-sm); line-height: var(--lh-snug); color: var(--grey-600);
}
.plan-features li::before {
	content: ""; flex: 0 0 16px; height: 16px; margin-top: 5px; border-radius: 50%;
	background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230D9488' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E") center/11px no-repeat;
}
.plan-foot { margin-top: auto; }

/* --- تب‌ها (لوکیشن / دوره پرداخت) --- */
.switcher { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-4); margin-bottom: var(--sp-6); }
.tabs {
	display: inline-flex; gap: 3px; padding: 4px;
	background: var(--bg-sunken); border: 1px solid var(--border); border-radius: var(--r-pill);
}
.tabs button {
	border: 0; background: transparent; cursor: pointer; border-radius: var(--r-pill);
	padding: 9px 20px; font-size: var(--fs-sm); font-weight: var(--w-semi); color: var(--grey-600);
	transition: background .16s var(--ease), color .16s var(--ease), box-shadow .16s var(--ease);
	display: inline-flex; align-items: center; gap: 6px;
}
.tabs button:hover { color: var(--ink-800); }
.tabs button[aria-selected="true"] { background: #fff; color: var(--brand-700); box-shadow: var(--shadow-sm); }
.tabs .save { font-size: var(--fs-xs); color: var(--amber-600); font-weight: 700; }

/* --- جدول مقایسه --- */
.compare-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); background: #fff; }
.compare { width: 100%; border-collapse: collapse; min-width: 680px; font-size: var(--fs-sm); }
.compare th, .compare td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--border); }
.compare thead th {
	background: var(--bg-sunken); font-family: var(--font-display);
	font-weight: 800; color: var(--ink-800);
}
.compare tbody th { text-align: start; font-weight: 600; color: var(--grey-600); background: var(--grey-50); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }

/* --- نمونه‌کار --- */
.work { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.work img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.work-body { padding: var(--sp-5); display: flex; flex-direction: column; flex: 1; }
.work-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--sp-3); }
.tag {
	font-size: var(--fs-xs); font-weight: 700; padding: 3px 10px; border-radius: var(--r-pill);
	background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-100);
}
.work-metric { margin-top: auto; padding-top: var(--sp-4); border-top: 1px dashed var(--border-strong); }
.work-metric strong {
	display: block; font-family: var(--font-display);
	font-size: var(--fs-xl); font-weight: 800; color: var(--brand-700); line-height: 1.3;
}
.work-metric span { font-size: var(--fs-sm); color: var(--text-soft); }

/* --- سوالات متداول --- */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: var(--sp-3); }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.faq details[open] { border-color: var(--brand-200); box-shadow: var(--shadow-sm); }
.faq summary {
	list-style: none; cursor: pointer; padding: 19px var(--sp-5);
	font-family: var(--font-display); font-weight: 700; font-size: var(--fs-base);
	line-height: var(--lh-heading); color: var(--ink-800);
	display: flex; align-items: center; gap: var(--sp-3);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
	content: "+"; margin-inline-start: auto; font-size: var(--fs-xl); font-weight: 400;
	color: var(--brand-600); line-height: 1; transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body {
	padding: 0 var(--sp-5) var(--sp-5);
	color: var(--grey-600); line-height: var(--lh-body); max-width: var(--measure);
}
.faq .faq-body > :last-child { margin-bottom: 0; }

/* --- نظرات --- */
.quote { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-5); margin: 0; }
.quote blockquote {
	margin: 0 0 var(--sp-4); color: var(--grey-700);
	font-size: var(--fs-base); line-height: var(--lh-body); text-wrap: pretty;
}
.quote figcaption { display: flex; align-items: center; gap: var(--sp-3); }
.quote img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.quote .who { font-weight: 700; color: var(--ink-800); font-size: var(--fs-sm); }
.quote .role { font-size: var(--fs-xs); color: var(--text-soft); }

/* --- نوار CTA --- */
.cta-band {
	background: linear-gradient(135deg, var(--ink-800), var(--brand-800));
	border-radius: var(--r-xl); padding: var(--sp-7); color: #fff; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p {
	color: var(--brand-100); font-size: var(--fs-lg); line-height: var(--lh-snug);
	max-width: var(--measure); margin-inline: auto; text-wrap: pretty;
}
.cta-band .hero-actions { justify-content: center; }

/* --- فرم --- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-sm); font-weight: var(--w-semi); color: var(--ink-700); }
.field .req { color: var(--err); }
.field input, .field select, .field textarea {
	font: inherit; font-size: var(--fs-base); padding: 12px 14px; border-radius: var(--r-md);
	border: 1.5px solid var(--border-strong); background: #fff; color: var(--text);
	transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
	outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 4px var(--brand-50);
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.9; }
.field .hint { font-size: var(--fs-xs); color: var(--text-soft); }
.form-note { font-size: var(--fs-sm); color: var(--text-soft); }
.alert { padding: 14px 18px; border-radius: var(--r-md); font-weight: 600; margin-bottom: var(--sp-5); }
.alert--ok  { background: #ECFDF5; border: 1px solid #A7F3D0; color: #065F46; }
.alert--err { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; }
/* تلهٔ ربات — به همان دلیل بالا، عمودی پنهان می‌شود نه افقی. */
.hp-field { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

/* --- بلاگ --- */
.post-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.post-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.post-card .post-body { padding: var(--sp-5); display: flex; flex-direction: column; flex: 1; }
.post-meta { font-size: var(--fs-xs); color: var(--text-soft); margin-bottom: var(--sp-2); }
.post-card h3 { font-size: var(--fs-lg); line-height: var(--lh-heading); }
.post-card h3 a { color: var(--ink-800); }
.post-card h3 a:hover { color: var(--brand-700); }
.post-card p { margin-bottom: var(--sp-4); }
.post-card .card-link { margin-top: auto; }

.entry { max-width: 50rem; margin-inline: auto; }
.entry-content {
	font-size: var(--fs-md);
	line-height: var(--lh-loose);
	color: var(--grey-700);
}
.entry-content > p { max-width: var(--measure); }
/* اولین پاراگراف کمی بزرگ‌تر — ورودی نرم به متن، مثل مجله */
.entry-content > p:first-of-type { font-size: var(--fs-lg); line-height: var(--lh-body); color: var(--grey-600); }
.entry-content h2 {
	font-size: var(--fs-2xl); margin-top: var(--sp-7); margin-bottom: var(--sp-4);
	line-height: var(--lh-heading);
}
.entry-content h3 { font-size: var(--fs-xl); margin-top: var(--sp-6); margin-bottom: var(--sp-3); }
.entry-content h2:first-child, .entry-content h3:first-child { margin-top: 0; }
.entry-content li { margin-bottom: var(--sp-2); max-width: var(--measure); }

/* شمارهٔ فهرست‌ها فارسی باشد.
   بدون این، مرورگر «1. 2. 3.» می‌گذارد در حالی که تیتر بالایش «۱.» است و
   قیمت‌ها و تاریخ‌ها هم فارسی‌اند — ناهماهنگی‌ای که در هر راهنمای گام‌به‌گام
   دیده می‌شود.
   `@counter-style` را خودمان تعریف می‌کنیم و به `list-style-type: persian`
   تکیه نمی‌کنیم، چون آن یکی از سبک‌های از-پیش-تعریف‌شدهٔ مرورگر است و
   پشتیبانی‌اش یکدست نیست. اگر مرورگری این را هم نفهمد، به `decimal`
   برمی‌گردد — یعنی همان حالت امروز، نه چیزی شکسته. */
@counter-style yaran-persian {
	system: numeric;
	symbols: "۰" "۱" "۲" "۳" "۴" "۵" "۶" "۷" "۸" "۹";
	suffix: ". ";
}
.entry-content ol { list-style-type: yaran-persian; }
.entry-content a { text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px; }
.entry-content a:hover { text-decoration-thickness: 2px; }
.entry-content img { border-radius: var(--r-md); margin-block: var(--sp-5); }
.entry-content blockquote {
	margin: var(--sp-5) 0; padding: var(--sp-4) var(--sp-5);
	border-inline-start: 4px solid var(--brand-500); background: var(--brand-50);
	border-radius: var(--r-md); color: var(--grey-700);
}
.entry-content pre {
	background: var(--ink-900); color: #E2E8F0; padding: var(--sp-4);
	border-radius: var(--r-md); overflow-x: auto; direction: ltr; text-align: left;
}
.entry-content code {
	font-family: var(--font-mono); font-size: .88em; direction: ltr; unicode-bidi: embed;
	background: var(--grey-100); padding: .12em .4em; border-radius: 5px;
}
.entry-content pre code { background: none; padding: 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin-block: var(--sp-5); }
.entry-content th, .entry-content td { border: 1px solid var(--border); padding: 10px 14px; }
.entry-content th { background: var(--bg-sunken); }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: var(--sp-7); }
.pagination .page-numbers {
	display: grid; place-items: center; min-width: 42px; height: 42px; padding-inline: 12px;
	border-radius: var(--r-md); border: 1px solid var(--border); color: var(--ink-700); font-weight: 700;
}
.pagination .page-numbers:hover { border-color: var(--brand-300); background: var(--brand-50); }
.pagination .page-numbers.current { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }

/* --- بردکرامب و سرصفحهٔ برگه --- */
.crumbs { font-size: var(--fs-sm); color: var(--text-soft); padding-block: var(--sp-4); }
.crumbs a { color: var(--text-soft); }
.crumbs a:hover { color: var(--brand-700); }
.crumbs .sep { margin-inline: 8px; color: var(--grey-300); }

.page-hero { background: var(--bg-soft); border-bottom: 1px solid var(--border); padding-block: var(--sp-6) var(--sp-7); }
.page-hero h1 { margin-bottom: var(--sp-3); }
.page-hero p {
	color: var(--grey-600); font-size: var(--fs-lg); line-height: var(--lh-snug);
	max-width: var(--measure); margin: 0; text-wrap: pretty;
}

/* --- فوتر --- */
.site-footer { background: var(--ink-900); color: #93A7BD; padding-block: var(--sp-8) var(--sp-5); font-size: var(--fs-sm); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--sp-6); }
.site-footer h4 { color: #fff; font-size: var(--fs-base); margin-bottom: var(--sp-4); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #93A7BD; }
.site-footer a:hover { color: var(--brand-300); }
.footer-brand .brand-name { color: #fff; }
.footer-about { margin-top: var(--sp-4); line-height: 1.95; max-width: 34em; }
.footer-contact { display: grid; gap: 8px; margin-top: var(--sp-4); }
.footer-contact a { color: #fff; font-weight: 700; }
.footer-badges { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
.footer-badges > * { background: #fff; border-radius: var(--r-sm); padding: 6px; }
.footer-bottom {
	margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid rgba(255,255,255,.10);
	display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center; justify-content: space-between;
}
.socials { display: flex; gap: var(--sp-2); }
.socials a {
	width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
	background: rgba(255,255,255,.07); transition: background .16s var(--ease);
}
.socials a:hover { background: var(--brand-700); }
.socials svg { width: 18px; height: 18px; }

/* --- کمکی --- */
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
/* پنهان‌سازی با جابه‌جایی عمودی، نه با منفیِ افقی بزرگ.
   inset-inline-start: -9999px در راست‌به‌چپ یعنی «۹۹۹۹ پیکسل سمت راست»
   و صفحه را افقی می‌کشد. */
.skip-link {
	position: absolute; inset-inline-start: var(--sp-5); top: 0;
	transform: translateY(-200%); z-index: 200;
	background: #fff; padding: 10px 18px; border-radius: var(--r-sm);
	box-shadow: var(--shadow-lg); font-weight: var(--w-semi);
	transition: transform .18s var(--ease);
}
.skip-link:focus { transform: translateY(var(--sp-3)); }
.text-center { text-align: center; }
.mt-6 { margin-top: var(--sp-6); }
.muted { color: var(--text-soft); }
[hidden] { display: none !important; }

/* --- ریسپانسیو --- */
@media (max-width: 1024px) {
	.grid--4 { grid-template-columns: repeat(2, 1fr); }
	.plans { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	:root { --fs-4xl: 2.35rem; --fs-3xl: 1.95rem; }
}
@media (max-width: 880px) {
	.hero-grid { grid-template-columns: 1fr; }
	.pillars { grid-template-columns: 1fr; }
	.grid--3 { grid-template-columns: repeat(2, 1fr); }
	.nav-toggle { display: flex; }
	.nav {
		display: none; position: absolute; inset-inline: 0; top: var(--header-h);
		background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
		padding: var(--sp-4) var(--sp-5); max-height: calc(100vh - var(--header-h)); overflow-y: auto;
	}
	.nav.is-open { display: block; }
	.nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
	.nav li a { padding: 12px 14px; }
	.nav .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none;
		box-shadow: none; border: 0; padding: 0 0 0 var(--sp-4); min-width: 0;
	}
	.header-actions .btn--ghost { display: none; }
}
@media (max-width: 620px) {
	:root { --fs-4xl: 2rem; --fs-3xl: 1.7rem; --fs-2xl: 1.45rem; --sp-9: 3.5rem; --sp-8: 2.75rem; }

	/* هدر در عرض کم شلوغ می‌شد و صفحه را افقی می‌کشید:
	   لوگو + دکمهٔ منو + دکمهٔ CTA از عرض گوشی بیشتر می‌شدند. */
	.container { padding-inline: var(--sp-4); }
	.header-inner { gap: var(--sp-3); }
	.brand svg, .brand img { height: 32px; }
	.brand-name { font-size: var(--fs-base); }
	.header-actions .btn { padding-inline: 16px; font-size: var(--fs-sm); }
	.nav-toggle { width: 40px; height: 40px; }
	.grid--2, .grid--3, .grid--4, .plans { grid-template-columns: 1fr; }
	.form-grid { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; }
	.section { padding-block: var(--sp-8); }
	.hero-trust { gap: var(--sp-4); }
	.hero-actions .btn, .cta-band .btn { width: 100%; }
	.cta-band { padding: var(--sp-6) var(--sp-5); }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .01ms !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
}

@media print {
	.site-header, .site-footer, .cta-band, .btn { display: none !important; }
}

/* ── برگهٔ تمام‌عرض (المنتور) ──────────────────────────────────────
 *
 * عمداً تقریباً خالی. این برگه را مالک سایت می‌چیند، و هر قاعده‌ای که اینجا
 * بنویسیم چیزی است که او در ویرایشگر می‌بیند و در صفحه نمی‌بیند — یا برعکس.
 *
 * فقط دو چیز: فاصله از هدر و فوتر وقتی المنتور نیست، و اینکه تصاویر سرریز
 * نکنند. بقیه‌اش کار اوست. */
.page-wide { display: block; }

/* بدون المنتور، محتوای ویرایشگر وردپرس بدون این به هدر می‌چسبد. با المنتور،
 * بخش‌ها فاصلهٔ خودشان را دارند و این صفر می‌شود تا دو فاصله روی هم نیفتد. */
.page-wide > :not(.elementor) {
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--sp-5);
	padding-block: var(--sp-7);
}
