/* ═══════════════════════════════════════════════════════════════
   نورولینگو — طراحیِ سایت (۲۰۲۶-۱۰)
   روشن، صمیمی، هم‌رنگِ ویترینِ بازار و مایکت: سبزِ کرم‌کتاب‌خوار
   روی کاغذِ گرم. یک فایل برای همهٔ صفحه‌ها؛ موبایل اول.
   ═══════════════════════════════════════════════════════════════ */

:root {
	--bg: #fbf8f1;
	--surface: #ffffff;
	--sunk: #f3eee2;
	--ink: #14231f;
	--ink-2: #3f4d49;
	--muted: #5f6c68;
	--line: #e7e0d0;
	--brand: #1f6f5c;
	--brand-ink: #155244;
	--teal: #2f8f83;
	--navy: #1d4f6e;
	--mint: #dff3ee;
	--sun: #f2b544;
	--sun-soft: #fff4d9;
	--rose: #c8452f;
	--ok: #1f7a4d;

	--font: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
	--display: 'Baloo Bhaijaan 2', 'Vazirmatn', system-ui, sans-serif;
	--en: 'Georgia', 'Times New Roman', serif;

	--r-s: 10px;
	--r: 16px;
	--r-l: 26px;
	--shadow-s: 0 1px 2px rgba(20, 35, 31, .06), 0 2px 8px rgba(20, 35, 31, .05);
	--shadow: 0 2px 6px rgba(20, 35, 31, .06), 0 14px 40px rgba(20, 35, 31, .09);
	--shadow-l: 0 30px 80px rgba(13, 40, 48, .28);
	--ease: cubic-bezier(.2, .7, .2, 1);
	--wrap: 1160px;
	color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 400 16px/1.9 var(--font);
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-ink); }
h1, h2, h3 { font-family: var(--display); line-height: 1.35; margin: 0; letter-spacing: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.en, [lang="en"] { font-family: var(--en); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 18px; }
.wrap-narrow { max-width: 780px; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── دکمه‌ها ─────────────────────────────────────────── */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 9px;
	min-height: 48px; padding: 10px 22px; border-radius: 999px;
	font: 700 15.5px/1.4 var(--font); text-decoration: none; cursor: pointer;
	border: 1.5px solid transparent; transition: transform .18s var(--ease), background .18s, box-shadow .18s, color .18s;
	-webkit-tap-highlight-color: transparent; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(31, 111, 92, .28); }
.btn-primary:hover { background: var(--brand-ink); color: #fff; }
.btn-sun { background: var(--sun); color: #2b2108; box-shadow: 0 8px 22px rgba(242, 181, 68, .35); }
.btn-sun:hover { background: #f7c565; color: #2b2108; }
.btn-ghost { background: transparent; color: var(--brand); border-color: rgba(31, 111, 92, .35); }
.btn-ghost:hover { background: var(--mint); color: var(--brand-ink); }
.btn-light { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-light:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: wait; }
.btn-quiet { background: var(--surface); color: var(--brand); border-color: var(--line); }
.btn-quiet:hover { border-color: var(--brand); color: var(--brand-ink); }
.link-arrow { font-weight: 700; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* ── نوارِ بالا ────────────────────────────────────────── */
.topbar {
	position: sticky; top: 0; z-index: 40;
	background: rgba(251, 248, 241, .86);
	-webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
	border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.topbar.is-stuck { border-bottom-color: var(--line); box-shadow: 0 6px 20px rgba(20, 35, 31, .05); }
.topbar-in { display: flex; align-items: center; gap: 14px; min-height: 64px; }
.brandmark { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font: 800 21px/1 var(--display); }
.brandmark img { width: 40px; height: 40px; border-radius: 12px; }
.brandmark:hover { color: var(--ink); }
.nav { display: none; margin-inline-start: auto; align-items: center; gap: 4px; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--sunk); color: var(--ink); }
.topbar .btn { min-height: 42px; padding: 8px 18px; font-size: 14.5px; margin-inline-start: auto; }
.nav + .btn { margin-inline-start: 6px; }
.menu-btn { display: inline-flex; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.menu-btn svg { width: 22px; height: 22px; }
.acct { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.acct-phone { font-weight: 700; color: var(--ink); }
.acct-out { font: inherit; font-size: 13px; background: none; border: 0; color: var(--brand); cursor: pointer; text-decoration: underline; padding: 6px; }
.drawer { display: none; border-top: 1px solid var(--line); padding-block: 8px 14px; }
.drawer.is-open { display: block; }
.drawer a { display: block; padding: 12px 4px; font-size: 16px; font-weight: 500; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.drawer a:last-child { border-bottom: 0; }
@media (min-width: 900px) {
	.nav { display: flex; }
	.menu-btn, .drawer, .drawer.is-open { display: none; }
	.topbar .btn { margin-inline-start: 6px; }
}

/* ── بخش‌ها ─────────────────────────────────────────── */
.sec { padding: 64px 0; }
.sec-tight { padding: 40px 0; }
.sec-sunk { background: var(--sunk); }
.sec-white { background: var(--surface); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--brand); background: var(--mint); padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }
.h2 { font-size: clamp(27px, 6vw, 40px); }
.h3 { font-size: 22px; }
.lead { font-size: clamp(16px, 2.2vw, 18px); color: var(--ink-2); line-height: 2; margin-top: 12px; max-width: 64ch; }
.sec-head { margin-bottom: 34px; }
.sec-head.center { text-align: center; }
.sec-head.center .lead { margin-inline: auto; }

/* ── قهرمان ─────────────────────────────────────────── */
.hero {
	position: relative; overflow: hidden; color: #fff;
	background:
		radial-gradient(1200px 600px at 85% -10%, rgba(242, 181, 68, .22), transparent 60%),
		radial-gradient(900px 600px at 0% 110%, rgba(47, 143, 131, .55), transparent 60%),
		linear-gradient(160deg, #2f8f83 0%, #1f6f5c 45%, #1d4f6e 100%);
}
.hero::after { /* لبهٔ کاغذی */
	content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 38px;
	background: var(--bg); clip-path: ellipse(70% 100% at 50% 100%);
}
.hero-in { position: relative; z-index: 1; display: grid; gap: 34px; padding-block: 34px 78px; align-items: center; }
.hero h1 { font-size: clamp(34px, 8.6vw, 60px); line-height: 1.25; }
.hero h1 .hl { color: var(--sun); }
.hero-sub { font-size: clamp(16.5px, 2.4vw, 19px); line-height: 2; color: rgba(255, 255, 255, .9); margin-top: 16px; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.hero-chips li { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); padding: 5px 12px; border-radius: 999px; }
.hero-chips svg { width: 16px; height: 16px; color: var(--sun); }
.hero-art { position: relative; justify-self: center; width: min(300px, 78vw); }
.gift-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--sun-soft); color: #5a4108; font-weight: 700; font-size: 14px; padding: 6px 14px 6px 8px; border-radius: 999px; margin-bottom: 16px; text-decoration: none; }
.gift-pill img { width: 30px; height: 30px; border-radius: 50%; }
.gift-pill:hover { color: #3f2d05; }
@media (min-width: 900px) {
	.hero-in { grid-template-columns: 1.15fr .85fr; padding-block: 56px 100px; gap: 40px; }
	.hero-art { width: 320px; }
}

/* قابِ گوشی */
.phone {
	position: relative; border-radius: 42px; padding: 10px; background: #0f1a18;
	box-shadow: var(--shadow-l), inset 0 0 0 2px #2a3a37;
	aspect-ratio: 1080 / 2340;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 33px; background: #fff; }
.float {
	position: absolute; z-index: 3; background: #fff; color: var(--ink); border-radius: 18px; box-shadow: var(--shadow);
	font-size: 13.5px; line-height: 1.8; padding: 10px 14px; animation: bob 6s ease-in-out infinite;
}
.float-worm { width: 92px; height: 92px; padding: 0; border-radius: 50%; overflow: hidden; border: 5px solid #fff; inset-inline-start: -36px; bottom: 16%; }
.float-worm img { width: 100%; height: 100%; object-fit: cover; }
.float-tx { inset-inline-end: -26px; top: 22%; max-width: 210px; animation-delay: -2s; }
.float-tx b { color: var(--brand); }
.float-tx .en { display: block; direction: ltr; text-align: left; color: var(--muted); font-size: 13px; }
@keyframes bob { 50% { transform: translateY(-8px); } }
@media (max-width: 420px) { .float-tx { inset-inline-end: -8px; } .float-worm { inset-inline-start: -10px; } }

/* نشانِ فروشگاه */
.store-row { display: flex; flex-wrap: wrap; gap: 10px; }
.store {
	display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 7px 16px 7px 14px; border-radius: 14px;
	background: #0f1a18; color: #fff; text-decoration: none; border: 1px solid rgba(255, 255, 255, .16); transition: transform .18s var(--ease), background .18s;
}
.store:hover { color: #fff; background: #000; transform: translateY(-2px); }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: grid; line-height: 1.35; }
.store small { font-size: 11px; opacity: .75; }
.store b { font-size: 15px; }
.store.is-soon { opacity: .72; cursor: default; }
.store.is-soon:hover { transform: none; background: #0f1a18; }

/* ── امتحانش کن ─────────────────────────────────────── */
.try { display: grid; gap: 22px; align-items: start; }
.try-card { background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); }
.try-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fcfbf8; font-size: 13.5px; color: var(--muted); }
.try-bar b { color: var(--ink); font-family: var(--en); font-weight: 600; direction: ltr; }
.try-bar .sp { flex: 1; }
.chip {
	display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 13px; border-radius: 999px;
	border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: 500 13.5px/1.4 var(--font); cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.try-body { padding: 20px 20px 24px; }
.try-h { font: 700 25px/1.3 var(--en); direction: ltr; text-align: left; margin-bottom: 4px; }
.try-h-fa { font: 800 21px/1.6 var(--display); color: var(--ink-2); margin-bottom: 12px; }
.try-p { direction: ltr; text-align: left; font: 18px/1.85 var(--en); color: #1c2624; }
.sent { cursor: pointer; border-radius: 6px; transition: background .2s; padding: 1px 0; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.sent:hover { background: #f4ecd6; }
.sent.is-on { background: #f2e7c4; text-decoration: underline; text-decoration-color: #c9a64a; text-underline-offset: 5px; }
.word { cursor: pointer; border-bottom: 2px dotted var(--teal); }
.word:hover { color: var(--brand); }
.tx { direction: rtl; text-align: right; font: 400 17px/2.05 var(--font); color: var(--ink-2); border-inline-start: 3px solid var(--mint); padding-inline-start: 12px; margin: 12px 0 4px; }
.tx[hidden] { display: none; }
.tx .is-on { background: #e6f4ef; border-radius: 5px; }
.gloss {
	position: absolute; z-index: 20; width: 240px; background: var(--ink); color: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow-l);
	font-size: 14px; line-height: 1.85; animation: pop .18s var(--ease);
}
.gloss b { font-family: var(--en); font-size: 16px; direction: ltr; display: block; text-align: left; }
.gloss .btn { min-height: 36px; padding: 4px 14px; font-size: 13px; margin-top: 8px; }
@keyframes pop { from { opacity: 0; transform: translateY(4px) scale(.97); } }
.try-side { display: grid; gap: 12px; }
.tip { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.tip img { width: 52px; height: 52px; border-radius: 50%; flex: none; }
.tip p { font-size: 15px; line-height: 1.95; color: var(--ink-2); }
.tip b { color: var(--ink); }
.deck { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.deck-n { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px; background: var(--sun); color: #2b2108; font-weight: 800; }
@media (min-width: 900px) { .try { grid-template-columns: 1.4fr .9fr; } }

/* ── امکانات ───────────────────────────────────────── */
.feat { display: grid; gap: 30px; align-items: center; padding: 26px 0; }
.feat + .feat { border-top: 1px dashed var(--line); }
.feat-art { position: relative; justify-self: center; width: min(250px, 66vw); }
.feat-art .float-worm { width: 78px; height: 78px; bottom: 10%; }
.feat h3 { font-size: clamp(24px, 4.6vw, 32px); }
.feat .lead { margin-top: 10px; }
.ticks { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-inline-start: 30px; color: var(--ink-2); line-height: 1.9; }
.ticks li::before {
	content: ""; position: absolute; inset-inline-start: 0; top: 6px; width: 20px; height: 20px; border-radius: 50%;
	background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%231f6f5c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
.tag { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 2px 10px; border-radius: 999px; vertical-align: middle; margin-inline-start: 6px; }
.tag-free { background: var(--mint); color: var(--brand); }
.tag-food { background: var(--sun-soft); color: #7a5508; }
@media (min-width: 740px) {
	.feat { grid-template-columns: 1fr 1fr; gap: 40px; padding: 34px 0; }
	.feat:nth-of-type(even) .feat-art { order: -1; }
	.feat-art { width: 230px; }
}
@media (min-width: 1000px) { .feat { gap: 60px; } .feat-art { width: 270px; } }

/* ── رایگان / لینگوفود ─────────────────────────────── */
.split { display: grid; gap: 16px; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 24px 22px; box-shadow: var(--shadow-s); }
.box-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.box-head img { width: 56px; height: 56px; border-radius: 50%; }
.box-head h3 { font-size: 23px; }
.box-head p { font-size: 14px; color: var(--muted); }
.box-food { background: linear-gradient(180deg, #fffaf0, #fff); border-color: #f0dfb4; }
.box .ticks li::before { background-color: var(--mint); }
.box-food .ticks li::before { background-color: var(--sun-soft); }
@media (min-width: 760px) { .split { grid-template-columns: 1fr 1fr; } }

/* ── قیمت (کارت‌های لینگوفود؛ shop.js می‌سازد) ─────── */
.plans { display: grid; gap: 16px; margin-top: 8px; }
.plan {
	position: relative; display: flex; flex-direction: column; gap: 12px; background: var(--surface); border: 1.5px solid var(--line);
	border-radius: var(--r-l); padding: 24px 22px; box-shadow: var(--shadow-s);
}
.plan-main { border-color: var(--brand); box-shadow: 0 18px 50px rgba(31, 111, 92, .16); }
.plan-badge { position: absolute; top: -13px; inset-inline-start: 20px; background: var(--brand); color: #fff; font-size: 12.5px; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.plan-top { display: flex; align-items: center; gap: 12px; }
.plan-top img { width: 54px; height: 54px; border-radius: 50%; }
.plan h3 { font-size: 22px; }
.plan-kind { font-size: 13.5px; color: var(--muted); }
.plan-food { font: 800 30px/1.3 var(--display); color: var(--brand); }
.plan-food small { font: 500 15px var(--font); color: var(--muted); }
.plan-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14.5px; color: var(--ink-2); }
.plan-rows li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed var(--line); padding: 6px 0; }
.plan-rows li span:last-child { font-weight: 700; color: var(--ink); text-align: left; }
.plan-price { font: 800 28px/1.3 var(--display); margin-top: auto; padding-top: 4px; }
.plan-price small { font: 500 14px var(--font); color: var(--muted); }
.plan-note { font-size: 13px; color: var(--muted); line-height: 1.9; }
.gift {
	display: flex; gap: 14px; align-items: center; background: var(--sun-soft); border: 1px solid #f0dfb4; border-radius: var(--r-l); padding: 16px 18px; margin-top: 18px;
}
.gift img { width: 64px; height: 64px; border-radius: 50%; flex: none; }
.gift p { font-size: 15px; line-height: 1.95; color: #4a3a12; }
.gift b { color: #2b2108; }
.shop-empty { padding: 22px; text-align: center; color: var(--muted); background: var(--surface); border-radius: var(--r); border: 1px dashed var(--line); }
.pay-ways { display: grid; gap: 12px; margin-top: 18px; }
.pay-way { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; font-size: 14.5px; color: var(--ink-2); line-height: 1.95; }
.pay-way svg { width: 26px; height: 26px; color: var(--brand); flex: none; margin-top: 2px; }
.pay-way b { color: var(--ink); }
@media (min-width: 760px) {
	.plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pay-ways { grid-template-columns: 1fr 1fr; }
}

/* ── گام‌ها ─────────────────────────────────────────── */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px 16px 18px; padding-inline-start: 64px; color: var(--ink-2); line-height: 1.95; }
.steps li::before { content: counter(s, persian); position: absolute; inset-inline-start: 16px; top: 14px; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font: 800 17px/34px var(--display); text-align: center; }
.steps b { color: var(--ink); }
@media (min-width: 900px) { .steps-row { grid-template-columns: repeat(3, 1fr); } }

/* ── بلاگ ──────────────────────────────────────────── */
.posts { display: grid; gap: 16px; }
.post-card {
	display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l);
	padding: 20px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-s); transition: transform .2s var(--ease), box-shadow .2s;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.post-card img { width: calc(100% + 40px); max-width: none; margin: -20px -20px 6px; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--r-l) var(--r-l) 0 0; }
.post-card h2, .post-card h3 { font-size: 20px; }
.post-card p { color: var(--ink-2); font-size: 15px; line-height: 1.95; }
.post-date { font-size: 13px; color: var(--muted); }
.post-more { margin-top: auto; padding-top: 4px; color: var(--brand); font-weight: 700; font-size: 14.5px; }
@media (min-width: 760px) { .posts { grid-template-columns: repeat(3, 1fr); } .posts-2 { grid-template-columns: repeat(2, 1fr); } }

/* نوشته */
.post { padding: 40px 0 70px; }
.crumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { text-decoration: none; }
.post h1 { font-size: clamp(29px, 6vw, 42px); }
.post-lead { font-size: 18.5px; color: var(--ink-2); line-height: 2; margin-top: 14px; }
.post-meta { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 14px; color: var(--muted); }
.post-meta img { width: 40px; height: 40px; border-radius: 50%; }
.post-cover { width: 100%; border-radius: var(--r-l); margin: 26px 0 0; }

/* متنِ بلند (نوشته‌ها، حریمِ خصوصی) */
.prose { font-size: 17.5px; line-height: 2.15; color: #24332f; margin-top: 26px; }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: 25px; margin-top: 38px; }
.prose h3 { font-size: 20px; margin-top: 28px; }
.prose ul, .prose ol { padding-inline-start: 22px; }
.prose li + li { margin-top: 6px; }
.prose blockquote { margin-inline: 0; padding: 14px 18px; border-inline-start: 4px solid var(--sun); background: var(--sun-soft); border-radius: 0 var(--r) var(--r) 0; color: #4a3a12; }
.prose code { font-size: .9em; background: var(--sunk); padding: 2px 6px; border-radius: 6px; direction: ltr; unicode-bidi: isolate; }
.prose img { border-radius: var(--r); margin-inline: auto; }
.prose a { font-weight: 500; }
.post-cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 40px; padding: 20px; border-radius: var(--r-l); background: linear-gradient(150deg, #2f8f83, #1d4f6e); color: #fff; }
.post-cta img { width: 64px; height: 64px; border-radius: 50%; border: 3px solid #fff; }
.post-cta p { flex: 1 1 220px; line-height: 1.9; }
.post-cta b { font-family: var(--display); font-size: 19px; display: block; }

/* ── پرسش‌ها ───────────────────────────────────────── */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 0 18px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow-s); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; align-items: center; line-height: 1.8; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--sunk); display: grid; place-items: center; font-size: 19px; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--ink-2); line-height: 2.05; }

/* ── دعوتِ آخر ─────────────────────────────────────── */
.final {
	position: relative; overflow: hidden; border-radius: 32px; color: #fff; padding: 36px 24px; text-align: center;
	background: radial-gradient(600px 300px at 90% 0%, rgba(242, 181, 68, .3), transparent 60%), linear-gradient(150deg, #2f8f83, #1f6f5c 50%, #1d4f6e);
}
.final img.final-worm { width: 110px; height: 110px; border-radius: 50%; border: 5px solid #fff; margin: 0 auto 14px; }
.final h2 { font-size: clamp(26px, 5.4vw, 38px); }
.final p { color: rgba(255, 255, 255, .88); margin: 10px auto 22px; max-width: 34em; line-height: 2; }
.final .store-row { justify-content: center; }

/* ── پاورقی ─────────────────────────────────────────── */
.foot { margin-top: 70px; background: #11201c; color: #c9d4d0; padding: 44px 0 110px; font-size: 14.5px; }
.foot a { color: #e7efe9; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; gap: 28px; }
.foot-brand p { margin-top: 10px; line-height: 2; color: #a9b8b3; max-width: 30em; }
.foot .brandmark { color: #fff; }
.foot h2 { font: 700 15px var(--font); color: #fff; margin-bottom: 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-legal { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 30px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; font-size: 13px; color: #93a49f; line-height: 1.9; }
.foot-enamad img { width: 86px; background: #fff; border-radius: 10px; padding: 4px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } .foot { padding-bottom: 44px; } }

/* نوارِ پایینِ گوشی */
.m-cta {
	position: fixed; z-index: 30; inset-inline: 10px; bottom: max(10px, env(safe-area-inset-bottom)); display: flex; gap: 8px;
	padding: 8px; border-radius: 20px; background: rgba(17, 32, 28, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	box-shadow: var(--shadow-l); transform: translateY(140%); transition: transform .3s var(--ease);
}
.m-cta.is-shown { transform: none; }
.m-cta .btn { flex: 1; min-height: 46px; font-size: 14.5px; padding: 8px 12px; }
@media (min-width: 760px) { .m-cta { display: none; } }

/* ── صفحه‌های داخلی ───────────────────────────────── */
.page-hero { padding: 40px 0 10px; }
.page-hero h1 { font-size: clamp(30px, 7vw, 46px); }
.page-hero .lead { margin-top: 12px; }
.cards { display: grid; gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 22px; box-shadow: var(--shadow-s); }
.card h2, .card h3 { font-size: 21px; }
.card p { color: var(--ink-2); line-height: 1.95; margin-top: 8px; font-size: 15px; }
.card-ico { width: 52px; height: 52px; border-radius: 50%; margin-bottom: 12px; }
@media (min-width: 760px) { .cards-2 { grid-template-columns: 1fr 1fr; } .cards-3 { grid-template-columns: repeat(3, 1fr); } }
.plat-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.plat-head svg { width: 34px; height: 34px; color: var(--brand); }
.plat-meta { font-size: 14px; color: var(--muted); margin: 6px 0 14px; }
.plat-hint { font-size: 13.5px; color: var(--muted); line-height: 1.95; margin-top: 12px; }
.plat-actions { display: grid; gap: 10px; }
.release-notes { padding-inline-start: 20px; color: var(--ink-2); line-height: 2; }
.note { font-size: 14px; color: var(--muted); line-height: 2; margin-top: 16px; }

/* بسته‌های مطالعاتی (shop.js) */
.shelf { display: grid; gap: 16px; }
.soon-card { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px dashed #d8cdb2; border-radius: var(--r-l); padding: 18px; color: var(--ink-2); line-height: 1.95; }
.soon-card img { width: 60px; height: 60px; border-radius: 50%; flex: none; }
.soon-badge { display: inline-block; background: var(--sun-soft); color: #7a5508; font-weight: 700; font-size: 12.5px; padding: 2px 10px; border-radius: 999px; margin-bottom: 4px; }
.tome { display: grid; grid-template-columns: 96px 1fr; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 14px; box-shadow: var(--shadow-s); }
.tome-cover { border-radius: 8px; overflow: hidden; background: var(--spine, var(--teal)); aspect-ratio: 18/25; display: grid; place-items: center; color: #fff; font-size: 12px; text-align: center; padding: 6px; }
.tome-cover img { width: 100%; height: 100%; object-fit: cover; }
.tome-title { font-size: 18px; }
.tome-en, .tome-author, .tome-meta, .tome-desc { font-size: 13.5px; color: var(--muted); line-height: 1.85; }
.tome-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.tome-price b { font-size: 18px; }
.tome-owned { font-size: 13.5px; color: var(--ok); }
@media (min-width: 760px) { .shelf { grid-template-columns: 1fr 1fr; } }

/* ── پنجرهٔ خرید (shop.js) ─────────────────────────── */
.till {
	width: min(440px, calc(100vw - 20px)); max-height: calc(100dvh - 20px); overflow: auto; border: 0; border-radius: 24px;
	padding: 16px 20px 22px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-l);
}
.till::backdrop { background: rgba(10, 20, 18, .6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.till[open] { animation: pop .25s var(--ease); }
@media (max-width: 559px) {
	.till { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 24px 24px 0 0; max-height: 92dvh; padding-bottom: max(22px, env(safe-area-inset-bottom)); }
	.till[open] { animation: sheet .28s var(--ease); }
}
@keyframes sheet { from { transform: translateY(40px); opacity: .4; } }
.till-close-row { display: flex; justify-content: flex-end; margin: 0 -8px -6px 0; }
.till-x { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--sunk); font-size: 24px; line-height: 1; cursor: pointer; color: var(--ink-2); }
.till-x:hover { background: #ebe4d3; }
.till-what { font-size: 13.5px; color: var(--muted); }
.till-title { font-size: 24px; margin: 2px 0 14px; }
.till-form { display: grid; gap: 10px; }
.till-form label { font-size: 14.5px; line-height: 1.9; color: var(--ink-2); }
.till-form input {
	width: 100%; min-height: 52px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff;
	font: 500 18px/1.4 var(--font); color: var(--ink); letter-spacing: .04em;
}
.till-form input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(31, 111, 92, .16); }
.till-code { font-size: 28px !important; letter-spacing: .5em !important; text-align: center; }
.till-status { font-size: 14px; line-height: 1.9; color: var(--brand); min-height: 1.9em; }
.till-status.is-error { color: var(--rose); }
.till-link { font: inherit; font-size: 14px; background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 10px; justify-self: center; }
.till-amount { display: grid; justify-items: center; gap: 2px; background: var(--sun-soft); border: 1px solid #f0dfb4; border-radius: 18px; padding: 14px 12px 16px; text-align: center; }
.till-amount-label { font-size: 13.5px; color: #7a5508; font-weight: 700; }
.till-amount-num { font: 800 clamp(36px, 10vw, 46px)/1.3 var(--display); color: var(--ink); direction: ltr; }
.till-amount-unit { font-size: 14px; color: var(--muted); margin-top: -4px; }
.till-why { font-size: 13.5px; line-height: 1.95; color: var(--ink-2); margin: 10px 2px 14px; }
.till-card { display: grid; justify-items: center; gap: 2px; padding: 16px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, #1d4f6e, #1f6f5c); }
.till-card-bank { font-size: 13px; opacity: .8; }
.till-card-no { font-size: clamp(20px, 5.6vw, 24px); letter-spacing: .06em; padding: 6px 0; font-weight: 700; direction: ltr; }
.till-card-holder { font-size: 14px; }
.till-copy { margin-top: 8px; min-height: 40px; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--brand); font: 700 13.5px var(--font); cursor: pointer; }
.till-card .till-copy { border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .14); color: #fff; }
.till-wait { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.95; color: var(--ink-2); margin: 16px 0 6px; background: var(--mint); padding: 12px 14px; border-radius: 14px; }
.till-wait .spinner { margin-top: 4px; }
.till-claim, .till-coupon { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 4px; }
.till-claim summary, .till-coupon summary { cursor: pointer; font-size: 14.5px; color: var(--brand); padding: 10px 0; font-weight: 700; }
.till-coupon-row { display: flex; gap: 8px; }
.till-coupon-row input { flex: 1; min-width: 0; text-transform: uppercase; }
.till-deal { margin: 0 0 10px; padding: 8px 12px; border-radius: 12px; background: var(--mint); color: var(--brand); font-size: 14px; }
.till-deal.is-error { background: #fbe9e5; color: var(--rose); }
.till-done { text-align: center; }
.till-done img { width: 110px; height: 110px; border-radius: 50%; margin: 0 auto 10px; }
.till-done p { font-size: 15.5px; line-height: 2.05; margin: 0 0 10px; }
.till-done .btn { margin-top: 10px; }
.spinner { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(31, 111, 92, .2); border-top-color: var(--brand); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ورود به دیدرس — فقط وقتی جاوااسکریپت هست */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-seen { opacity: 1; transform: none; }
