/* app.css — موبایل اول، راست‌به‌چپ، بدونِ هیچ منبعِ بیرونی.
   🎨 طرحِ سوم (۲۰۲۶-۱۰-۱۵، مالک: «دیزاین افتضاح … رنگ‌بندی افتضاح … منوی همبرگری … mobbin و سایت‌های مشابه
   رو ببین … یک دیزاینِ حرفه‌ای»). الگو از محصول‌های خوش‌طراحِ امروز (Mobbin، Stripe، Linear): زمینه‌ی روشن و
   خلوت، بیشترِ صفحه رنگِ خنثی و **یک** رنگِ برند، تیترِ درشتِ دو‌رنگ، کارت‌های سبک با خطِ نازک، منوی پنهان فقط
   روی گوشی و با برچسبِ «منو».
   🔷 رنگِ برند (۲۰۲۶-۱۰-۱۶، مالک: «لوگومون آبیه … یک رنگ انتخاب کن که برای کارِ ما خوب باشه و اپ و سایت و لوگو با
   هم مچ باشن»): آبیِ سرمه‌ای — اعتماد، امنیت و رسمیت برای کاری که با سند و کارت ملیِ مردم سروکار دارد — همان
   ACCENTِ اپ در روشن و تیره (آزمونِ brand_matches_app) و همان کاشیِ نشان؛ طلاییِ مُهرِ نشان فقط روی یک دکمه (نوارِ پایانی).
   🌓 روشن/تیره **فقط** از خودِ گوشی/ویندوز (prefers-color-scheme) — دکمه‌های «ظاهر» و «متنِ بزرگ‌تر» برداشته شد
   (مالک: «از روی خودِ سیستم بخون، نمی‌خواد دستی باشه»). */

@font-face {
  font-family: "Vazirmatn";
  src: url("/static/fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("/static/fonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --bg: #ffffff;
  --surface: #f4f7fb;
  --card: #ffffff;
  --ink: #0e1a2b;
  --ink-2: #2a3a50;
  --muted: #536176;
  --line: #e1e7ef;
  --line-soft: #edf1f6;
  --accent: #1d55a3;
  --accent-deep: #17457f;
  --accent-soft: #e8f0fb;
  --on-accent: #ffffff;
  --dark: #1d55a3;
  --on-dark: #ffffff;
  --band: #0f2f5c;
  --on-band: #ffffff;
  --gold: #e6b441;
  --on-gold: #2b1d00;
  --err: #b42318;
  --err-soft: #fdeceb;
  --warn: #7a4b00;
  --warn-soft: #fff4dc;
  --ok: #146c43;
  --ok-soft: #e5f3eb;
  --field: #ffffff;
  --field-line-hover: #c2cbd8;
  --field-line: #7f8ca0;
  --placeholder: #677385;
  --warn-line: #d9a441;
  --glow: rgba(29, 85, 163, .12);
  --shadow: 0 1px 2px rgba(14, 26, 43, .04), 0 8px 28px rgba(14, 26, 43, .07);
  --shadow-lg: 0 2px 6px rgba(14, 26, 43, .05), 0 24px 60px rgba(14, 26, 43, .11);
  /* 📐 مقیاس‌ها: docs/design.md بخش‌های ۴ و ۵ (آزمونِ design_system سند و این‌جا را مقایسه می‌کند) */
  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-md: 1rem;
  --fs-base: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: clamp(1.625rem, 3.6vw, 2rem);
  --fs-3xl: clamp(2rem, 5.6vw, 3rem);
  --fs-4xl: clamp(2.25rem, 7vw, 3.5rem);
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 72px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 999px;
  --gold-soft: #fff7e3;
  --gold-line: #e9c46a;
  --tier-vpn: #4b5d77;
  --tier-vpn-soft: #eef2f7;
  --violet: #5b21b6;
  --violet-deep: #3b0764;
  --on-violet: #ffffff;
  --violet-ink: #5b21b6;
  --violet-soft: #f3edff;
  --au-1: #fff8d6;
  --au-2: #fbe08a;
  --au-3: #f0c244;
  --au-4: #dcaa22;
  --on-au: #3b2a00;
  --au-ink: #8a6100;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1120;
    --surface: #0e1729;
    --card: #111c31;
    --ink: #e8eef7;
    --ink-2: #c6d2e3;
    --muted: #98a7bd;
    --line: #22314a;
    --line-soft: #18243a;
    --accent: #79b0ff;
    --accent-deep: #9cc4ff;
    --accent-soft: #172a44;
    --on-accent: #0a1120;
    --dark: #79b0ff;
    --on-dark: #0a1120;
    --band: #12305a;
    --on-band: #eef3fb;
    --gold: #e9bb57;
    --on-gold: #241a05;
    --err: #ff8a80;
    --err-soft: #3a1c1e;
    --warn: #f2c06b;
    --warn-soft: #33270f;
    --ok: #6fd39b;
    --ok-soft: #11301f;
    --field: #0d1626;
    --field-line-hover: #3a4b66;
    --field-line: #7f8ea6;
    --placeholder: #7f8ea6;
    --warn-line: #b8862a;
    --glow: rgba(121, 176, 255, .10);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-lg: 0 18px 50px rgba(0, 0, 0, .5);
    --gold-soft: #2a2310;
    --gold-line: #b88e2f;
    --tier-vpn: #a9b8cd;
    --tier-vpn-soft: #1a2538;
    --violet: #5b21b6;
    --violet-deep: #3b0764;
    --on-violet: #ffffff;
    --violet-ink: #c4b5fd;
    --violet-soft: #2a1f3d;
    --au-1: #fff8d6;
    --au-2: #fbe08a;
    --au-3: #f0c244;
    --au-4: #dcaa22;
    --on-au: #3b2a00;
    --au-ink: #f0c244;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: var(--fs-base)/1.9 "Vazirmatn", Tahoma, "Segoe UI", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}
a { color: var(--accent); }
[hidden] { display: none !important; }
ol { list-style-type: persian; }
h1, h2, h3 { text-wrap: balance; }
.ico { width: 22px; height: 22px; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* ♿ (۱۰-۲۰) با Tab اولین چیز: پرش از سرآیند به محتوا */
.skip { position: absolute; inset-inline-start: 12px; top: -80px; z-index: 50; background: var(--card); color: var(--ink);
  border: 2px solid var(--accent); border-radius: var(--r-md); padding: 12px 16px; font-weight: 700; }
.skip:focus { top: 12px; }
/* ✍️ (۱۰-۲۰) پلِ میانِ بخش‌ها: یک جمله که خواننده را پایین می‌برد */
.bridge { display: flex; gap: 8px; align-items: center; justify-content: center; margin: 24px 0 0; color: var(--accent);
  font-weight: 700; font-size: var(--fs-base); text-align: center; }
.bridge .ico { width: 20px; height: 20px; flex: none; }
.reassure { margin: 0 0 16px; padding: 12px 16px; border-radius: var(--r-lg); background: var(--accent-soft);
  color: var(--ink); font-weight: 700; line-height: 1.9; }
/* ── 💎 قیمتِ اشتراک‌ها (مالک ۱۰-۲۳: «کارت‌های دیزاین‌شده و خوشگل … تاکید داشته باش روش») ── */
.pricing-block { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-xl);
  padding: 40px clamp(16px, 4vw, 40px) 32px; margin-inline: auto; text-align: center; }
.pricing-block > h2 { font-size: var(--fs-2xl); margin: 0 0 8px; }
.pricing-block > .block-sub { margin-inline: auto; }
.pricing { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr));
  align-items: stretch; margin-top: 32px; text-align: start; }
.pc { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: 28px 24px 24px; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; }
.pc:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pc::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; border-radius: var(--r-xl) var(--r-xl) 0 0;
  background: var(--pc-bar, var(--pc-c, var(--accent))); }
/* 🥇 مالک ۱۱-۰۴ (همان رنگ‌های پنجره‌ی پلن‌های اپ، theme.PLAN_*): «پلن پیشرفته طلایی باشه رنگش متوسط بنفش و مبتدی سبز و پایه
   ابی رنگ بنفشمون هم بنفش تیره باشه طلایی هم طلایی قشنگ رنگ طلا و شفاف شفاف باشه که انگار واقعا طلاس» → «Yes, the site too» */
.pc-vpn { --pc-c: var(--accent); --pc-soft: var(--accent-soft); }
.pc-basic { --pc-c: var(--ok); --pc-soft: var(--ok-soft); }
.pc-mid { --pc-c: var(--violet-ink); --pc-soft: var(--violet-soft);
  --pc-bar: linear-gradient(135deg, var(--violet), var(--violet-deep)); }
.pc-pro { --pc-c: var(--au-ink); --pc-soft: var(--gold-soft);
  --pc-bar: linear-gradient(135deg, var(--au-2), var(--au-1) 28%, var(--au-3) 50%, var(--au-4) 72%, var(--au-2));
  --pc-fill: var(--pc-bar); --pc-on: var(--on-au); --pc-line: var(--au-4);
  --pc-fill-h: linear-gradient(135deg, var(--au-3), var(--au-2) 30%, var(--au-4) 64%, var(--au-3)); }
.pc-pro .pc-ico { background: var(--pc-fill); color: var(--pc-on); box-shadow: inset 0 1px 0 var(--au-1); }
.pc-head { display: flex; align-items: center; gap: 12px; }
.pc-ico { display: grid; place-items: center; flex: none; width: 50px; height: 50px; border-radius: var(--r-lg);
  background: var(--pc-soft, var(--accent-soft)); color: var(--pc-c, var(--accent)); }
.pc-ico .ico { width: 26px; height: 26px; }
.pc-tag { margin: 0; font-size: var(--fs-sm); font-weight: 700; color: var(--pc-c, var(--accent)); }
/* ⭐ مالک ۱۱-۰۸: پایه ۲، متوسط ۳، پیشرفته ۵، فوق‌العاده ۷ ستاره — همان پنجره‌ی پلن‌های اپ */
.pc-stars { margin: 2px 0 0; font-size: var(--fs-sm); line-height: 1; color: var(--pc-c, var(--accent)); }
.pc h3 { margin: 0; font-size: var(--fs-xl); line-height: 1.5; }
.pc-desc { margin: 12px 0 0; color: var(--muted); min-height: 3.6em; }
.pc-price { margin: 16px 0 8px; padding: 16px 0; border-block: 1px dashed var(--line); display: flex; flex-wrap: wrap;
  align-items: baseline; gap: 8px; }
.pc-price b { font-size: var(--fs-2xl); font-weight: 700; color: var(--ink); line-height: 1.3; white-space: nowrap; }
.pc-price b small { font-size: var(--fs-md); font-weight: 700; color: var(--ink-2); margin-inline-start: 8px; }
.pc-price span { font-size: var(--fs-md); font-weight: 700; color: var(--muted); }
.pc-price span::before { content: "/ "; }
.pc-price.ask b { font-size: var(--fs-xl); color: var(--ink-2); }
.pc-price.ask span::before { content: ""; }
.pc-list { flex: 1; margin: 8px 0 20px; }
.pc-list li { font-size: var(--fs-md); padding: 4px 0; }
/* «.pc» جلویش: «.checks .ico» پایین‌تر آمده و هم‌وزن است و تیک‌ها را آبی می‌کرد */
.pc .pc-list .ico { color: var(--pc-c, var(--accent)); }
.pc-go { width: 100%; margin-top: auto; }
.btn.pc-btn { border-color: var(--pc-c, var(--accent)); color: var(--ink); }
.btn.pc-btn:hover { background: var(--pc-soft, var(--accent-soft)); border-color: var(--pc-c, var(--accent)); }
.btn.pc-solid { background: var(--pc-fill, var(--dark)); border-color: var(--pc-line, var(--dark)); color: var(--pc-on, var(--on-dark));
  box-shadow: inset 0 1px 0 var(--au-1); }
.btn.pc-solid:hover { background: var(--pc-fill-h, var(--accent-deep)); border-color: var(--pc-line, var(--accent-deep));
  color: var(--pc-on, var(--on-dark)); }
.pc-feat { border: 2px solid var(--au-3); background: linear-gradient(180deg, var(--gold-soft), var(--card) 46%);
  box-shadow: var(--shadow-lg); }
@media (min-width: 1040px) { .pc-feat { transform: translateY(-10px); } .pc-feat:hover { transform: translateY(-13px); } }
.pc-ribbon { position: absolute; top: -14px; inset-inline: 0; margin-inline: auto; width: max-content;
  background: var(--pc-fill, var(--gold)); color: var(--pc-on, var(--on-gold)); font-size: var(--fs-sm); font-weight: 700; padding: 3px 16px;
  border-radius: var(--r-full); box-shadow: var(--shadow); }
.pc-all { margin: 28px auto 0; max-width: 980px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 16px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px;
  justify-content: center; }
.pc-all > b { font-weight: 700; }
.pc-all ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; }
.pc-all li { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: var(--fs-md); }
.pc-all .ico { width: 18px; height: 18px; color: var(--accent); }
.pc-note { margin: 16px auto 0; }
.btn.pc-hero-btn { border-color: var(--gold-line); background: var(--gold-soft); color: var(--ink); }
.btn.pc-hero-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.cmp-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.cmp { width: 100%; min-width: 560px; border-collapse: collapse; }
.cmp th, .cmp td { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); text-align: center; }
.cmp thead th { font-size: var(--fs-md); color: var(--ink); background: var(--surface); }
.cmp tbody th { text-align: start; font-weight: 700; color: var(--ink-2); }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: 0; }
.cmp .cmp-feat { background: var(--gold-soft); }
.cmp-y .ico { width: 20px; height: 20px; color: var(--ok); }
.cmp-s { font-size: var(--fs-sm); font-weight: 700; color: var(--warn); }
.cmp-n { color: var(--muted); }
.benefit.plan > b { font-size: var(--fs-xl); color: var(--accent); }
.benefit.plan .checks { margin-top: 12px; text-align: start; }
.plan-price { margin: 8px 0 2px; font-size: var(--fs-xl); font-weight: 700; color: var(--ink); }
.plan-price span { font-size: var(--fs-md); font-weight: 700; color: var(--muted); }
.plan-price.ask { font-size: var(--fs-md); font-weight: 700; color: var(--muted); }
.benefit.plan .checks li { font-size: var(--fs-md); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: var(--r-sm); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
main.wrap { padding-bottom: 8px; }
.narrow { max-width: 760px; }
main.narrow { padding-top: 24px; }

/* ── سرآیند ── */
.top { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 12px 24px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 700; text-decoration: none; font-size: var(--fs-base); white-space: nowrap; }
.logo img { display: block; width: 36px; height: 36px; }
.iq-tag { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .04em; color: var(--accent); background: var(--accent-soft);
  border-radius: var(--r-sm); padding: 1px 8px; line-height: 1.5; font-family: system-ui, sans-serif; }
.nav { display: flex; gap: 2px; }
.nav a {
  color: var(--muted); padding: 8px 12px; border-radius: var(--r-md); text-decoration: none;
  font-weight: 700; font-size: var(--fs-md); white-space: nowrap;
}
.nav a:hover, .nav a[aria-current=page] { color: var(--ink); background: var(--surface); }
.head-cta { margin-inline-start: auto; }
.cta-short { display: none; }
.menu { display: none; }
@media (max-width: 1039px) {
  .nav { display: none; }
  .menu { display: block; }
}
@media (max-width: 559px) {
  .bar { min-height: 60px; gap: 8px; }
  .logo { font-size: var(--fs-md); gap: 8px; }
  .logo img { width: 32px; height: 32px; }
  .head-cta { min-height: 44px; padding: 8px 16px; font-size: var(--fs-md); }
  .cta-long { display: none; }
  .cta-short { display: inline; }
}
/* ☰ منو — بی جاوااسکریپت (details)، با برچسبِ «منو»؛ کارِ اصلی («شروعِ درخواست») بیرونِ منو می‌ماند */
.menu > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-full);
  font-weight: 700; color: var(--ink); background: var(--bg); font-size: var(--fs-md);
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary .ico { width: 20px; height: 20px; }
.menu .i-close { display: none; }
.menu[open] .i-close { display: block; }
.menu[open] .i-open { display: none; }
.menu[open] > summary { background: var(--surface); }
.menu-panel {
  position: absolute; inset-inline: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-lg); padding: 8px 20px 20px;
}
.menu-panel a {
  display: flex; align-items: center; justify-content: space-between; min-height: 58px;
  border-bottom: 1px solid var(--line-soft); color: var(--ink); text-decoration: none; font-weight: 700; font-size: var(--fs-base);
}
.menu-panel a[aria-current=page] { color: var(--accent); }
.menu-panel a .ico { color: var(--muted); width: 18px; height: 18px; }
.menu-panel .btn { margin-top: 16px; width: 100%; border-bottom: 1px solid var(--dark); justify-content: center; color: var(--on-dark); }

/* ── دکمه ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 8px 24px; border-radius: var(--r-full);
  border: 1px solid var(--line); background: var(--card); cursor: pointer;
  font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: var(--field-line-hover); background: var(--surface); }
.btn.primary { background: var(--dark); border-color: var(--dark); color: var(--on-dark); }
.btn.primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--on-dark); }
.btn.big { min-height: 56px; padding: 12px 32px; font-size: var(--fs-base); }
form .btn.big, .card .btn.big { width: 100%; }
.btn.small { min-height: 36px; padding: 4px 16px; font-size: var(--fs-sm); }
.btn:disabled { opacity: .55; cursor: default; }
.btn .ico { width: 18px; height: 18px; }
.row-btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 4px 0 12px; }

/* ── سرصفحه ── */
.hero { padding: 44px 0 36px; background: var(--surface); border-bottom: 1px solid var(--line); }
.hero h1 { font-size: var(--fs-3xl); line-height: 1.45; margin: 0 0 12px; max-width: 24em; }
.hero .lead { font-size: var(--fs-base); color: var(--muted); margin: 0; max-width: 40em; }
.hero-form { padding: 28px 0 24px; }
.hero-form h1 { font-size: var(--fs-xl); margin-bottom: 2px; }
.eyebrow {
  display: inline-block; margin: 0 0 16px; padding: 3px 16px; border-radius: var(--r-full);
  background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: var(--fs-sm);
}
.hero-form .eyebrow { margin-bottom: 8px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; align-items: center; }
.hero-link { font-weight: 700; color: var(--ink); text-underline-offset: 6px; padding: 12px 8px; }
.trust { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); font-size: var(--fs-md); }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust .ico { width: 18px; height: 18px; color: var(--accent); }
/* صفحه‌ی اصلی: وسط‌چین، تیترِ درشتِ دو‌رنگ، هاله‌ی کم‌رنگ از بالا */
.hero-home {
  text-align: center; border-bottom: none; padding: 68px 0 12px;
  background: radial-gradient(64% 60% at 50% 0%, var(--glow), transparent 72%), var(--bg);
}
.hero-home h1 { font-size: var(--fs-4xl); line-height: 1.35; max-width: 15em; margin: 0 auto 20px; }
.hero-home h1 .soft { color: var(--accent); display: block; }
.hero-home .lead { margin: 0 auto; font-size: var(--fs-lg); max-width: 32em; }
.hero-home .cta-row, .hero-home .trust { justify-content: center; }

/* پیش‌نمایشِ فرم زیرِ سرصفحه — «این‌جا چه می‌کنم» در یک نگاه (خانه‌ها خالی‌اند، داده‌ی واقعی نه) */
.preview { max-width: 900px; margin: 40px auto 0; }
.pv { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); overflow: hidden; text-align: right; }
.pv-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); background: var(--surface); }
.pv-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.pv-bar span { margin-inline-start: auto; color: var(--muted); font-size: var(--fs-sm); }
.pv-body { display: grid; gap: 20px; padding: 24px; }
@media (min-width: 760px) { .pv-body { grid-template-columns: 210px 1fr; padding: 28px; } }
.pv-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; align-content: start; }
.pv-steps li { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: var(--r-md); color: var(--muted); font-weight: 700; font-size: var(--fs-md); }
.pv-steps li b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line); font-size: var(--fs-sm); flex: none; }
.pv-steps li b .ico { width: 14px; height: 14px; }
.pv-steps li.on { background: var(--accent-soft); color: var(--ink); }
.pv-steps li.on b { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.pv-steps li.done b { background: var(--ink); border-color: var(--ink); color: var(--bg); }
@media (max-width: 759px) {
  .pv-steps { grid-template-columns: repeat(4, 1fr); }
  .pv-steps li { flex-direction: column; gap: 4px; padding: 8px 2px; font-size: var(--fs-xs); text-align: center; line-height: 1.4; }
}
.pv-form { display: grid; gap: 16px; align-content: start; }
.pv-form h3 { margin: 0; font-size: var(--fs-base); }
.pv-row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.pv-f { display: grid; gap: 8px; }
.pv-f > span { font-size: var(--fs-sm); font-weight: 700; color: var(--ink-2); }
.pv-f > i { display: flex; align-items: center; height: 46px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--field); font-style: normal; }
.pv-f > i::before { content: ""; width: 48%; height: 8px; border-radius: var(--r-sm); background: var(--line-soft); }
.pv-f.ok > i { border-color: var(--accent); justify-content: space-between; }
.pv-f.ok > i .ico { width: 18px; height: 18px; color: var(--accent); order: 2; }
.pv-go { justify-self: start; min-height: 44px; padding: 8px 24px; border-radius: var(--r-full); background: var(--dark); color: var(--on-dark); font-weight: 700; display: inline-flex; align-items: center; font-size: var(--fs-md); }

/* 🖼 عکسِ واقعیِ برنامه در قابِ پنجره (ایکیو، ۱۰-۱۶) — مقدارها ساختگی */
.shot { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); }
.shot-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft);
  background: var(--surface); }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.shot-bar span { margin-inline-start: auto; color: var(--muted); font-size: var(--fs-sm); font-weight: 700; }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { padding: 12px 16px; color: var(--muted); font-size: var(--fs-sm); border-top: 1px solid var(--line-soft); }
.steps-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }

/* 📘 آموزش: درس‌های شماره‌دار */
.toc { margin: 0; }
.toc .chip { font-size: var(--fs-sm); }
.lessons { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.lesson { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); padding: 24px;
  scroll-margin-top: 84px; }
.lesson-h { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.lesson-h .step-n { margin: 0; flex: none; }
.lesson-h h2 { margin: 0; font-size: var(--fs-lg); }
.lesson .checks li { font-size: var(--fs-md); line-height: 1.9; }
.lesson .shot { margin-top: 16px; box-shadow: var(--shadow); }

/* ── بخش‌ها ── */
.block { margin: 72px 0; }
.block.first { margin-top: 44px; }
.block > h2 { font-size: var(--fs-2xl); margin: 0 0 8px; line-height: 1.45; }
.block-sub { color: var(--muted); margin: 0 0 24px; font-size: var(--fs-base); max-width: 40em; }
.center-h { text-align: center; }
.center-h > h2, .center-h > .block-sub { margin-inline: auto; }
.kicker { color: var(--accent); font-weight: 700; margin: 0 0 8px; font-size: var(--fs-md); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 20px; margin: 0 0 16px; }
.card h2 { font-size: var(--fs-lg); margin: 0 0 12px; }
.hint { color: var(--muted); font-size: var(--fs-sm); margin: -2px 0 16px; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.center { text-align: center; }

/* ── کاشی‌های خدمات ── */
.tiles { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.tile {
  display: flex; gap: 16px; align-items: center; padding: 20px; min-height: 100px;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card);
  color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.tile:hover, .tile:focus-visible { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); outline: none; }
.tile-ico { flex: none; width: 54px; height: 54px; border-radius: var(--r-lg); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.tile-ico .ico { width: 27px; height: 27px; }
.tile-txt { flex: 1; min-width: 0; line-height: 1.7; }
.tile-txt b { display: block; font-size: var(--fs-lg); }
.tile-txt span { color: var(--muted); font-size: var(--fs-md); }
.tile-go { flex: none; color: var(--muted); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); }
.tile:hover .tile-go { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.tile-go .ico { width: 18px; height: 18px; }

/* ── چطور کار می‌کند ── */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.steps li { background: var(--surface); border-radius: var(--r-lg); padding: 24px 24px; line-height: 1.85; }
.step-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); color: var(--accent); font-weight: 700; margin-bottom: 16px; }
.steps b { display: block; font-size: var(--fs-base); }
.steps li > span:last-child { color: var(--muted); }

/* ── چرا ── */
.benefits { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.benefit { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 24px; background: var(--card); }
.benefit > .ico { width: 26px; height: 26px; color: var(--accent); margin-bottom: 12px; display: block; }
.benefit b { display: block; font-size: var(--fs-base); }
.benefit p { margin: 8px 0 0; color: var(--muted); }

/* ── متن و فهرستِ تیک‌دار ── */
.split { display: grid; gap: 16px; align-items: start; }
@media (min-width: 760px) { .split { grid-template-columns: 3fr 2fr; } }
.split .card { margin: 0; }
@media (min-width: 760px) { .split-even { grid-template-columns: 1fr 1fr; } }
.split-even .card { height: 100%; }
.more { margin: 20px 0 0; }
.more a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; }
.more .ico { width: 18px; height: 18px; }
.prose p, .prose li { line-height: 2; }
.prose p { margin: 0 0 12px; }
.prose p:last-child { margin-bottom: 0; }
.prose h2 { font-size: var(--fs-lg); margin: 28px 0 8px; }
.prose h2:first-child { margin-top: 0; }
.docs h2 { margin: 0 0 8px; }
.checks { list-style: none; padding: 0; margin: 0 0 8px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; }
.checks .ico { width: 20px; height: 20px; color: var(--accent); margin-top: 8px; }
.checks.big li { font-size: var(--fs-base); }
.types { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 12px; }
.types li { padding: 16px 16px; border-radius: var(--r-md); background: var(--surface); }
.types b { display: block; }
.types span { color: var(--muted); font-size: var(--fs-md); }

/* ── پرسش‌ها ── */
.faq-list { padding: 4px 24px; }
.faq { border-bottom: 1px solid var(--line-soft); padding: 16px 0; }
.faq:last-child { border-bottom: none; }
.faq summary {
  cursor: pointer; font-weight: 700; list-style: none; min-height: 32px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: var(--fs-xl); line-height: 1; flex: none; transition: transform .15s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 12px 0 0; color: var(--muted); line-height: 2; }

/* ── نوارِ پایانی ── */
.cta-band {
  margin: 72px 0 8px; padding: 36px 32px; border-radius: var(--r-xl); background: var(--band); color: var(--on-band);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
}
.cta-band b { display: block; font-size: var(--fs-xl); line-height: 1.5; }
.cta-band p { margin: 8px 0 0; opacity: .8; }
.cta-band .btn.primary { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.cta-band .btn.primary:hover { background: var(--on-band); border-color: var(--on-band); color: var(--band); }

/* ── فهرستِ دفترخانه‌ها ── */
.search { position: relative; margin-bottom: 16px; }
.search .ico { position: absolute; inset-inline-start: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }
.search input:not([type=checkbox]) { padding-inline-start: 48px; min-height: 54px; border-radius: var(--r-full); }
.offices { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .offices { grid-template-columns: 1fr 1fr; } }
.office {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; min-height: 72px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); color: var(--ink); text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.office:hover, .office:focus-visible { border-color: var(--accent); box-shadow: var(--shadow); outline: none; }
.o-main { display: flex; flex-direction: column; min-width: 0; }
.o-name { font-weight: 700; }
.o-city { color: var(--muted); font-size: var(--fs-sm); }
.o-go { display: flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 700; font-size: var(--fs-md); white-space: nowrap; }
.o-go .ico { width: 18px; height: 18px; }

/* ── مرحله‌نما ── */
.stepper { margin: 32px 0 8px; }
.st-of { margin: 0 0 12px; color: var(--muted); font-weight: 700; }
.stepper ol { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0; margin: 0; }
.stepper li { display: flex; align-items: center; gap: 8px; padding: 12px 12px; border-radius: var(--r-md); border: 1px solid var(--line); color: var(--muted); background: var(--card); }
.stepper .st-n { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--line); font-weight: 700; }
.stepper .st-n .ico { width: 16px; height: 16px; }
.stepper li.done { color: var(--ink-2); }
.stepper li.done .st-n { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.stepper li.cur { color: var(--ink); border-color: var(--accent); background: var(--accent-soft); font-weight: 700; }
.stepper li.cur .st-n { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.st-t { line-height: 1.5; font-size: var(--fs-md); }
@media (max-width: 759px) { .stepper ol { grid-template-columns: 1fr 1fr; } }
.chosen { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 16px 0 0; padding: 16px 20px; border-radius: var(--r-md); background: var(--surface); }
.chosen .ico { width: 24px; height: 24px; color: var(--accent); }
.chosen a { margin-inline-start: auto; font-weight: 700; }

/* ── راهنما ── */
.guide { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.guide li { display: flex; gap: 16px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; background: var(--card); }
.g-ico { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-md); background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: var(--fs-base); }
.guide b { display: block; font-size: var(--fs-base); }
.guide p { margin: 8px 0 0; color: var(--muted); }
.guide-card {
  display: flex; gap: 16px; align-items: center; padding: 20px 24px; border-radius: var(--r-lg); text-decoration: none;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
}
.guide-card:hover, .guide-card:focus-visible { border-color: var(--accent); outline: none; }
.guide-card > span:nth-child(2) { flex: 1; }
.guide-card b { display: block; font-size: var(--fs-base); }
.guide-card span span { color: var(--muted); }
.guide-ico { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-md); background: var(--card); color: var(--accent); border: 1px solid var(--line); }
.guide-ico .ico { width: 24px; height: 24px; }

/* ── شهرها ── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.chip { padding: 8px 16px; border: 1px solid var(--line); border-radius: var(--r-full); text-decoration: none; color: var(--ink); background: var(--card); }
.chip:hover { border-color: var(--accent); color: var(--accent); }

/* ── فیلد ── */
.field { margin: 0 0 16px; }
.field > label, .flabel { display: block; font-weight: 700; font-size: var(--fs-md); margin-bottom: 8px; }
/* راهنمای کوتاهِ زیرِ عنوانِ فیلد — ⚠️ بیرونِ label (labelOf() در form.js متنِ label را برمی‌دارد) */
.fh { color: var(--muted); font-size: var(--fs-sm); line-height: 1.6; margin: -3px 0 8px; }
input, select, button, textarea { font: inherit; color: inherit; }
input:not([type=checkbox]), select, textarea {
  width: 100%; min-height: 50px; padding: 8px 16px;
  border: 1px solid var(--field-line); border-radius: var(--r-md); background: var(--field);
  transition: border-color .12s, box-shadow .12s;
}
textarea { resize: vertical; }
input:not([type=checkbox]):hover, select:hover, textarea:hover { border-color: var(--field-line-hover); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
input[dir=ltr] { text-align: left; }
input::placeholder, textarea::placeholder { color: var(--placeholder); }
.msg { font-size: var(--fs-sm); margin-top: 4px; }
.msg:empty { display: none; }
.is-error input, .is-error select { border-color: var(--err); background: var(--err-soft); }
.is-error .msg { color: var(--err); }
.is-warn input, .is-warn select { border-color: var(--warn-line); }
.is-warn .msg { color: var(--warn); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
/* ⚠️ آستانه با `.person .grid2` یکی است (۴۸۰) — روی گوشیِ ۳۷۵ پیکسلی برچسب‌های بلند تکه‌تکه می‌شکستند */
@media (max-width: 479px) { .grid2 { grid-template-columns: 1fr; } }

/* ── انتخابِ نوعِ سند (فرم) ── */
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice {
  min-height: 64px; padding: 12px; border: 1.5px solid var(--line); border-radius: var(--r-md);
  background: var(--card); cursor: pointer; font-weight: 700; line-height: 1.5;
}
.choice:hover { border-color: var(--field-line-hover); }
.choice[aria-pressed=true] { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--accent); }
.choice:disabled { cursor: default; color: var(--muted); font-weight: 400; background: var(--surface); }
.choice .soon { display: block; font-size: var(--fs-sm); font-weight: 400; }

/* ── افراد ── */
.person { border: 1px dashed var(--line); border-radius: var(--r-md); padding: 16px; margin: 0 0 12px; }
.person-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.person-head select { width: auto; min-width: 104px; min-height: 42px; }
.person-head .rm { margin-inline-start: auto; }
@media (max-width: 479px) { .person .grid2 { grid-template-columns: 1fr; } }

/* ── پلاک (تصویرِ خودِ پلاک: سفید با خطِ سیاه در هر دو ظاهر) ── */
.plate {
  display: flex; align-items: center; gap: 4px; width: 100%; max-width: 380px;
  border: 2px solid #26232e; border-radius: var(--r-sm); padding: 4px; background: #fff;
  color: #191725; color-scheme: light;
}
.plate input:not([type=checkbox]), .plate select { background: #fff; color: #191725; border-color: #d6d1e2; }
.plate .pin {
  flex: 2 1 0; min-width: 0; width: auto; min-height: 48px; padding: 4px 2px;
  text-align: center; font-size: var(--fs-lg); font-weight: 700; border-radius: var(--r-sm);
}
.plate .w3 { flex-grow: 3; }
.plate .letter { flex-grow: 2.6; font-size: var(--fs-md); }
.plate .iran {
  flex: 2.8 1 0; min-width: 0; display: flex; align-items: center; gap: 4px;
  border-left: 2px solid #26232e; padding-left: 4px;
}
.plate .iran .pin { flex: 1 1 0; }
.plate .iran-label { font-size: var(--fs-xs); }
.plate-motor { flex-direction: column; max-width: 220px; }
.plate-motor .pin { width: 100%; flex: none; }

/* ── انتخابِ متنِ وکالت ── */
.matn-list { margin-top: 8px; max-height: 320px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
.matn-list:empty { border: none; }
.matn-opt {
  display: block; width: 100%; text-align: right; cursor: pointer;
  padding: 12px 16px; min-height: 48px; border: none; border-bottom: 1px solid var(--line);
  background: var(--card); color: var(--ink);
}
.matn-opt:last-child { border-bottom: none; }
.matn-opt:hover { background: var(--surface); }
.matn-opt[aria-selected=true] { background: var(--accent-soft); box-shadow: inset -3px 0 0 var(--accent); }
.matn-opt .mn { font-weight: 700; display: block; }
.matn-opt .mp { color: var(--muted); font-size: var(--fs-sm); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── بازبینی و پایان ── */
.summary { margin: 0 0 12px; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.summary .ltr { direction: ltr; unicode-bidi: isolate; text-align: right; font-size: var(--fs-sm); }
.plate-txt { display: inline-flex; direction: ltr; gap: .4em; }
.notice { padding: 12px 16px; border-radius: var(--r-md); background: var(--warn-soft); color: var(--warn); margin: 0 0 12px; }
.notice ul { margin: 4px 0 0; padding-inline-start: 20px; }
.error-box { padding: 12px 16px; border-radius: var(--r-md); background: var(--err-soft); color: var(--err); margin: 0 0 12px; }
.ok-box { display: flex; gap: 12px; align-items: flex-start; padding: 16px 16px; border-radius: var(--r-md); background: var(--ok-soft); color: var(--ok); margin: 0 0 16px; }
.ok-box .ico { width: 24px; height: 24px; margin-top: 4px; }
.ok-box b { display: block; }
.ok-box p { margin: 2px 0 0; color: var(--ink); }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 12px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin-top: 4px; flex: none; accent-color: var(--accent); }
.code {
  direction: ltr; text-align: center; font-size: var(--fs-2xl); font-weight: 700; letter-spacing: .12em;
  padding: 12px; margin: 8px 0 12px; background: var(--accent-soft); color: var(--ink); border-radius: var(--r-md);
}
.state { font-size: var(--fs-base); font-weight: 700; }
.state.ok { color: var(--ok); }

/* ── فرمِ درخواستِ اشتراک ── */
.narrow-card { max-width: 720px; }
.hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ── پانویس ── */
.foot { border-top: 1px solid var(--line); margin-top: 80px; padding: 44px 0 48px; font-size: var(--fs-md); color: var(--muted); background: var(--surface); }
.foot-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.foot p { margin: 0 0 8px; }
.foot a { display: block; color: var(--muted); text-decoration: none; padding: 4px 0; }
.foot a:hover { color: var(--ink); }
.foot-brand, .foot-h { font-weight: 700; color: var(--ink); }
.foot-brand { display: flex; align-items: center; gap: 8px; font-size: var(--fs-base); }
.foot-brand img { width: 28px; height: 28px; }

/* ══ ⛔ همه وسط‌چین و هم‌اندازه (۲۰۲۶-۱۰-۱۶، مالک: «سایت یکسریش چپ‌چین یکسریش وسط‌چین، همه رو وسط‌چین و متناسب کن») ══
   سرصفحه، تیتر و توضیحِ هر بخش، کارت‌ها، قدم‌ها، کاشی‌ها، دکمه‌ها، برچسب‌ها و پانویس وسط‌چین‌اند. فقط متن‌هایی که
   خوانده می‌شوند (پاسخِ پرسش‌ها، فهرست‌های تیک‌دار، خانه‌های فرم) راست‌چین می‌مانند تا خطِ فارسی از راست شروع شود —
   ولی قابشان وسطِ صفحه و با یک پهنا: هر چیزِ «خواندنی» ۸۶۰ پیکسل، هر چیزِ «کارتی» تمامِ ۱۱۲۰. */
:root { --read: 760px; }

/* سرصفحه‌ی همه‌ی صفحه‌ها مثلِ صفحه‌ی اول */
.hero { text-align: center; }
.hero h1, .hero .lead { margin-inline: auto; }
.hero .cta-row, .hero .trust { justify-content: center; }

/* تیتر، زیرتیتر و برچسبِ بالای هر بخش */
.block > h2, .block > .kicker, .block-sub, .iq-intro > h2 { text-align: center; }
.block-sub { margin-inline: auto; }
.more { text-align: center; }
.chips { justify-content: center; }

/* کارت‌ها و قدم‌ها: آیکون، شماره، تیتر و متن وسط */
.benefit, .steps li { text-align: center; }
.benefit > .ico { margin-inline: auto; }
.step-n { margin-inline: auto; }

/* کاشی‌ها و کارتِ راهنما: عمودی و وسط (آیکون بالا، نام، توضیح، پیکان) */
.tile, .guide-card { flex-direction: column; text-align: center; justify-content: center; gap: 12px; padding: 24px 20px; }
/* ردیفِ ناقص (۵ کاشی در ۳ ستون) هم وسط بنشیند، نه یک‌طرفه */
.tiles { display: flex; flex-wrap: wrap; justify-content: center; }
/* ⛔ پهنای کاشی = (۱۰۰٪ − فاصله‌ها) / ستون‌ها، با همان متغیرِ gap؛ ۱۴ و ۲۸ پیکسل کمتر از فاصله‌ی واقعی بود و هر ردیف یکی کم می‌شد
   (رایانه دو ستون به‌جای سه، گوشی یک ستونِ باریک به‌جای دو؛ ۱۱-۰۳، آزمونِ copy_cut_and_focused) */
.tile { flex: 0 0 calc((100% - var(--s-4)) / 2); }
@media (max-width: 559px) {
  .tiles { gap: var(--s-3); }
  .tile { flex-basis: calc((100% - var(--s-3)) / 2); padding: 20px 12px; min-height: 0; gap: 8px; }
  .tile .tile-go { display: none; }
  .tile-txt b { font-size: var(--fs-md); }
  .tile-txt span { font-size: var(--fs-sm); }
}
@media (min-width: 1040px) { .tile { flex-basis: calc((100% - 2 * var(--s-4)) / 3); } }
.guide-card { max-width: var(--read); margin-inline: auto; }
.block > p.muted { text-align: center; }

/* نوارِ پایانی: متن و دکمه زیرِ هم، وسط */
.cta-band { flex-direction: column; justify-content: center; text-align: center; }

/* هر چیزِ خواندنی: یک پهنا، وسطِ صفحه (درونش راست‌چین) */
.faq-list, .lessons, .prose, .guide, .docs, .types, .narrow-card, #offices .card, .split, .toc {
  max-width: var(--read); margin-inline: auto; }
.split .card { max-width: none; }
.lesson-h { justify-content: center; }
.lesson .checks, .card .checks { text-align: right; }
.toc { display: flex; }
.chosen { max-width: var(--read); margin-inline: auto; justify-content: center; }
.chosen a { margin-inline-start: 0; }
.stepper { max-width: var(--read); margin-inline: auto; }
.st-of { text-align: center; }
.search { max-width: 560px; margin-inline: auto; }

/* پانویس */
.foot-grid { text-align: center; }
.foot-brand { justify-content: center; }

/* ══ 🎨 سرصفحه‌ی همه‌ی صفحه‌ها به سبکِ صفحه‌ی اول (۲۰۲۶-۱۰-۱۶، مالک: «hero همه‌شون … دیزاینش رو با توجه به صفحه‌ی اول
   طراحی کن ولی خلاقیت به خرج بده، خسته‌کننده نشه … mobbin») — وسط‌چین، هاله‌ی آبی از بالا، نقطه‌های کم‌رنگ که رو به
   پایین محو می‌شوند (الگوی Mobbin/Linear)، تیترِ درشتِ دو‌رنگ، و برای هر صفحه یک تصویرِ کوچکِ خودش. ══ */
.hero {
  position: relative; overflow: hidden; text-align: center; border-bottom: none; padding: 60px 0 36px;
  background: radial-gradient(62% 70% at 50% 0%, var(--glow), transparent 72%), var(--bg);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(var(--line) 1.2px, transparent 1.4px); background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(70% 85% at 50% 0%, black, transparent 78%);
  mask-image: radial-gradient(70% 85% at 50% 0%, black, transparent 78%);
}
.hero > .wrap { position: relative; }
.hero h1 { font-size: var(--fs-3xl); line-height: 1.35; max-width: 18em; margin: 0 auto 16px; }
.hero h1 .soft { display: block; color: var(--accent); font-size: .74em; line-height: 1.5; margin-top: 4px; }
.hero .lead { margin: 0 auto; max-width: 36em; font-size: var(--fs-lg); }
.hero-home h1 .soft { font-size: 1em; margin-top: 0; }
.hero-home { padding-top: 68px; }
.hero-form { padding: 36px 0 24px; }
.hero-form h1 { font-size: var(--fs-2xl); }

/* آیکونِ گردِ بالای تیتر، با حلقه‌ی هاله */
.hero-badge {
  display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: var(--r-xl); margin: 0 auto 16px;
  background: var(--card); color: var(--accent); border: 1px solid var(--line);
  box-shadow: 0 0 0 8px var(--glow), var(--shadow);
}
.hero-badge .ico { width: 30px; height: 30px; }
.hero-badge + .eyebrow { display: table; margin: 0 auto 12px; }

/* «ایکیو چیست؟»: چهار ایستگاهِ مسیر، با خطِ نقطه‌چینِ بینشان */
.flow-viz { list-style: none; padding: 0; margin: 36px auto 0; max-width: 900px; display: grid;
  grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
.flow-viz::before { content: ""; position: absolute; top: 36px; inset-inline: 12%; border-top: 2px dashed var(--line); }
.flow-viz li { position: relative; display: grid; justify-items: center; gap: 8px; }
.fv-ico { display: grid; place-items: center; width: 72px; height: 72px; border-radius: var(--r-xl); background: var(--card);
  border: 1px solid var(--line); color: var(--accent); box-shadow: var(--shadow); }
.fv-ico .ico { width: 32px; height: 32px; }
.fv-iq { border-color: var(--accent); box-shadow: 0 0 0 8px var(--glow), var(--shadow); }
.flow-viz b { font-size: var(--fs-base); }
.flow-viz span:last-child { color: var(--muted); font-size: var(--fs-sm); line-height: 1.6; }
@media (max-width: 759px) {
  .flow-viz { grid-template-columns: 1fr 1fr; gap: 20px 12px; }
  .flow-viz::before { display: none; }
}

/* راهنما: قدم‌ها روی یک خط */
.track-viz { list-style: none; padding: 0; margin: 32px auto 0; max-width: 760px; display: flex;
  justify-content: space-between; position: relative; }
.track-viz::before { content: ""; position: absolute; top: 21px; inset-inline: 8%; height: 2px;
  background: linear-gradient(90deg, var(--accent-soft), var(--accent), var(--accent-soft)); }
.track-viz li { position: relative; flex: 1; display: grid; justify-items: center; gap: 8px; }
.track-viz b { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--card);
  border: 2px solid var(--accent); color: var(--accent); font-size: var(--fs-base); box-shadow: 0 0 0 6px var(--bg); }
.track-viz li:last-child b { background: var(--accent); color: var(--on-accent); }
.track-viz span { color: var(--ink-2); font-weight: 700; font-size: var(--fs-sm); }
@media (max-width: 479px) { .track-viz span { font-size: var(--fs-xs); } .track-viz b { width: 38px; height: 38px; } }

/* خدمات: برچسب‌های آیکون‌دارِ همه‌ی سندها */
.svc-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 28px auto 0; max-width: 820px; }
.svc-chips .chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; font-weight: 700;
  box-shadow: var(--shadow); }
.svc-chips .ico { width: 20px; height: 20px; color: var(--accent); }

/* «بیشتر ▾» در منوی رایانه — همان صفحه‌های منوی گوشی (مالک ۱۰-۱۶: «هر دو همه‌ی صفحه‌ها») */
.nav-more { position: relative; }
.nav-more > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 4px; color: var(--muted);
  padding: 8px 12px; border-radius: var(--r-md); font-weight: 700; font-size: var(--fs-md); white-space: nowrap; }
.nav-more > summary::-webkit-details-marker { display: none; }
.nav-more > summary .ico { width: 16px; height: 16px; transition: transform .15s; }
.nav-more[open] > summary .ico { transform: rotate(180deg); }
.nav-more > summary:hover, .nav-more[open] > summary, .nav-more > summary.on { color: var(--ink); background: var(--surface); }
.nav-more-panel { position: absolute; top: calc(100% + 8px); inset-inline-start: 0; min-width: 230px; z-index: 40;
  display: grid; padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); }
.nav-more-panel a { padding: 12px 12px; border-radius: var(--r-md); color: var(--ink); text-decoration: none; font-weight: 700;
  font-size: var(--fs-md); }
.nav-more-panel a:hover, .nav-more-panel a[aria-current=page] { background: var(--surface); color: var(--accent); }

/* 📰 بلاگ و اخبار (مالک ۱۱-۰۲: «فرد باید علاقه پیدا کنه که کلیک کنه … تیتر بذار، توضیحات بذار») — قاعده‌ها: docs/design.md بخش ۱۰.
   کل کارت یک پیوند است (NN/g)، موضوع + تیتر + توضیح + چرا مهم است + تاریخ. جلد بدونِ عکس: رنگِ موضوع، نقطه‌های محو، آیکون. */
.cv-car { --cv: var(--accent); --cv-soft: var(--accent-soft); --cv-bg: var(--accent); }
.cv-home { --cv: var(--ok); --cv-soft: var(--ok-soft); --cv-bg: var(--ok); }
.cv-law { --cv: var(--warn); --cv-soft: var(--gold-soft); --cv-bg: var(--gold-line); }
.cv-office { --cv: var(--tier-vpn); --cv-soft: var(--tier-vpn-soft); --cv-bg: var(--tier-vpn); }
.cover { position: relative; overflow: hidden; display: grid; place-items: center; min-height: 148px; background: var(--cv-bg); }
.cover::before { content: ""; position: absolute; inset: 0; opacity: .3;
  background-image: radial-gradient(var(--on-accent) 1.2px, transparent 1.4px); background-size: 20px 20px; }
.cover::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; inset-inline-end: -80px; top: -110px;
  border: 40px solid var(--on-accent); opacity: .1; }
.cover-ico { position: relative; z-index: 1; display: grid; place-items: center; width: 72px; height: 72px; border-radius: var(--r-xl);
  background: var(--card); color: var(--cv); box-shadow: var(--shadow); }
.cover-ico .ico { width: 36px; height: 36px; }
.post-grid { list-style: none; padding: 0; margin: var(--s-5) 0 0; display: grid; gap: var(--s-5);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.post-card { display: flex; flex-direction: column; height: 100%; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; color: var(--ink); text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .15s; }
.post-card:hover, .post-card:focus-visible { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); outline: none; }
.post-body { display: flex; flex-direction: column; flex: 1; gap: var(--s-2); padding: var(--s-4) var(--s-5) var(--s-5); line-height: 1.8; }
.post-topic { align-self: flex-start; padding: 0 var(--s-3); border-radius: var(--r-full); background: var(--cv-soft); color: var(--cv);
  font-size: var(--fs-sm); font-weight: 700; }
.post-title { margin: 0; font-size: var(--fs-lg); line-height: 1.55; font-weight: 700; text-wrap: pretty; }
.post-card:hover .post-title { color: var(--accent); }
.post-short { margin: 0; color: var(--ink-2); font-size: var(--fs-md); }
.post-hook { margin: var(--s-1) 0 0; padding: var(--s-2) var(--s-3); border-inline-start: 3px solid var(--cv); background: var(--surface);
  border-radius: var(--r-sm); color: var(--ink); font-size: var(--fs-md); }
.post-hook b { color: var(--cv); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-3); margin: auto 0 0; padding-top: var(--s-3);
  color: var(--muted); font-size: var(--fs-sm); }
/* مطلبِ اصلی: پهن، جلد کنارِ متن روی رایانه */
.post-lead { background: var(--card); }
.post-lead .post-card { border-radius: var(--r-xl); box-shadow: var(--shadow); }
.post-lead .post-title { font-size: var(--fs-2xl); line-height: 1.45; }
.post-lead .post-short { font-size: var(--fs-base); }
.post-lead .post-body { padding: var(--s-5); }
.post-lead .cover { min-height: 200px; }
@media (min-width: 760px) {
  .post-lead .post-card { flex-direction: row; }
  .post-lead .cover { flex: 0 0 38%; }
  .post-lead .post-body { padding: var(--s-6); }
}
.post-more { display: inline-flex; align-items: center; gap: var(--s-1); color: var(--accent); font-weight: 700; font-size: var(--fs-md); }
.post-more .ico { width: 18px; height: 18px; }
/* فهرستِ خبر و بلاگ: سرصفحه‌ی کوتاه تا اولین تیتر بالای صفحه دیده شود */
.hero-list { padding: var(--s-6) 0 0; }
.hero-list h1 { font-size: var(--fs-2xl); margin-bottom: var(--s-2); }
.hero-list h1 .soft { display: none; }
.more-all { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); margin: var(--s-5) 0 0; }
/* صفحه‌ی مطلب */
.post-head-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-1) var(--s-3); margin: var(--s-4) 0 0;
  color: var(--muted); font-size: var(--fs-sm); }
.post-page { max-width: var(--read); margin-inline: auto; padding: var(--s-5); }
.post-key { margin: 0 0 var(--s-5); padding: var(--s-3) var(--s-4); border-inline-start: 4px solid var(--cv); border-radius: var(--r-md);
  background: var(--cv-soft); color: var(--ink); line-height: 1.9; }
.post-key b { display: block; color: var(--cv); }
.post-toc { margin: 0 0 var(--s-5); padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: var(--surface); }
.post-toc b { display: block; margin-bottom: var(--s-1); }
.post-toc ol { margin: 0; padding-inline-start: var(--s-5); line-height: 1.9; }
.post-toc a { display: inline-block; padding: var(--s-1) 0; }
.prose h2[id] { scroll-margin-top: 88px; }
.prose h3 { font-size: var(--fs-base); margin: var(--s-5) 0 var(--s-1); }
.post-note { color: var(--muted); font-size: var(--fs-sm); border-top: 1px solid var(--line); margin-top: var(--s-5); padding-top: var(--s-3); }
.post-note + .post-note { border-top: 0; margin-top: 0; padding-top: 0; }

/* مسیر (مالک ۱۱-۰۲، NN/g): خانه ‹ اخبار ‹ … */
.crumbs { border-bottom: 1px solid var(--line-soft); background: var(--bg); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0 var(--s-2); margin: 0; padding: var(--s-2) 0; font-size: var(--fs-sm); color: var(--muted); }
.crumbs li + li::before { content: "‹"; margin-inline-end: var(--s-2); }
.crumbs a { display: inline-block; padding: var(--s-1) 0; color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.crumbs li[aria-current] { color: var(--muted); max-width: 42ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ☰ منوی گوشی: گروه‌ها، و اگر بلندتر از صفحه بود خودش اسکرول می‌خورد (سرآیند چسبان است) */
.menu-panel { max-height: calc(100vh - 68px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.menu-h { margin: var(--s-4) 0 0; color: var(--muted); font-size: var(--fs-sm); font-weight: 700; }
.nav-more-panel { max-height: calc(100vh - 96px); overflow-y: auto; }

/* پاورقی: ردیفِ پایینی (مالک ۱۱-۰۲) */
.foot { padding-bottom: var(--s-5); }
.foot a { padding: var(--s-2) 0; }
.foot-p { max-width: 34em; margin-inline: auto; }
.foot-end { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--s-1) var(--s-5);
  margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.foot-end p { margin: 0; }
.foot-end nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 var(--s-5); }

/* پیوندهای داخلِ متن: همیشه زیرخط‌دار (رنگ به‌تنهایی کافی نیست) */
.prose a { text-underline-offset: 4px; }

/* 🎞 حرکت: اگر کاربر خواسته باشد، هیچ (docs/design.md بخش ۶) */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .post-card:hover, .tile:hover, .pc:hover { transform: none; }
}

/* ردیفِ ناقصِ کارت‌ها هم وسط بنشیند (مالک ۱۰-۱۶: «همه رو وسط‌چین») */
.post-grid { display: flex; flex-wrap: wrap; justify-content: center; }
.post-grid > li { flex: 0 0 100%; min-width: 0; }
@media (min-width: 560px) { .post-grid > li { flex-basis: calc((100% - var(--s-5)) / 2); } }
@media (min-width: 1040px) { .post-grid > li { flex-basis: calc((100% - 2 * var(--s-5)) / 3); } }

/* پاورقی روی گوشی: دو ستون تا کوتاه‌تر شود؛ معرفی تمام‌عرض */
@media (max-width: 759px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
}

/* ══ ✍️ ۲۰۲۶-۱۱-۰۳، مالک: «بعضی از متن‌ها اضافی هست … به یک سری چیزها باید بیشتر تأکید کنی» (docs/design.md بخش ۹ و ۱۱) ══ */
/* کارتِ «آشناست؟»: درد و جوابش در یک کارت؛ جواب سبز (حالتِ «درست») و درشت */
.benefit .fix { display: flex; gap: var(--s-2); align-items: flex-start; justify-content: center; margin: var(--s-3) 0 0;
  padding-top: var(--s-3); border-top: 1px solid var(--line-soft); color: var(--ok); font-weight: 700; }
.benefit .fix .ico { width: 20px; height: 20px; flex: none; margin-top: 4px; }
/* جمله‌ی جمع‌بندیِ صفحه (WORDS بی عنوان): بی کارت و تیتر، در پهنای خواندنی */
.page-note { max-width: var(--read); margin: var(--s-5) auto 0; text-align: center; color: var(--ink-2); line-height: 1.9;
  font-size: var(--fs-md); }
main > .page-note { margin: var(--s-7) auto; }
/* نوارِ کم‌رنگِ تمام‌عرض برای «آماده شدن» (کنارِ دستتان + سه قدم): ریتمِ صفحه؛ سایه‌ی پهن اسکرولِ افقی نمی‌سازد */
.band { background: var(--surface); box-shadow: 0 0 0 100vmax var(--surface); clip-path: inset(0 -100vmax);
  margin: var(--s-8) 0; padding: var(--s-1) 0; }
.band > .block { margin: var(--s-7) 0; }
.band .steps li { background: var(--card); border: 1px solid var(--line); }
@media (max-width: 759px) { .band { margin: var(--s-7) 0; } }
