/* ==========================================================================
   LEECH METRIC — سایت معرفی
   رنگ‌های برند از خود فایل لوگو نمونه‌برداری شده‌اند (همان توکن‌های اپ).
   رنگ هگز ثابت در بخش‌ها ننویسید؛ از توکن‌های :root استفاده کنید.
   ========================================================================== */

@font-face {
  font-family: 'Vazirmatn';
  src: url('../assets/fonts/vazirmatn-arabic.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+06??, U+0750-077F, U+200C-200E, U+2010-2011, U+204F, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../assets/fonts/vazirmatn-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+00??, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}

:root {
  --paper: #fafaf7;
  --paper-2: #f1f5f2;
  --paper-3: #e6efea;
  --white: #fff;

  --ink: #134351;
  --ink-2: #4e6770;
  --ink-3: #8397a0;

  --brand: #1c6463;
  --brand-deep: #134351;
  --navy: #152e53;
  --green: #1b9371;
  --mint: #c0efe3;
  --mint-soft: #e4f5ef;

  --amber: #f5b324;
  --amber-soft: #fff3d1;
  --danger: #c2453a;

  --grad: linear-gradient(135deg, #152e53 0%, #1c6463 55%, #1b9371 100%);
  --line: rgba(19, 67, 81, 0.12);
  --line-strong: rgba(19, 67, 81, 0.22);

  --shadow-sm: 0 10px 30px rgba(19, 67, 81, 0.08);
  --shadow-md: 0 18px 50px rgba(19, 67, 81, 0.12);
  --shadow-lg: 0 34px 100px rgba(19, 67, 81, 0.18);

  --r-sm: 16px;
  --r-md: 26px;
  --r-lg: 40px;
  --container: min(1240px, calc(100vw - 40px));
  --header-h: 96px;

  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink-2);
  background:
    radial-gradient(900px 600px at 88% -5%, rgba(192, 239, 227, 0.55), transparent 70%),
    radial-gradient(700px 500px at 5% 12%, rgba(245, 179, 36, 0.07), transparent 70%),
    var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.35; margin: 0; font-weight: 800; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.container { width: var(--container); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 18px; border-radius: 999px;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 8px; }

/* ------------------------------ دکمه‌ها ------------------------------ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 999px; border: 0;
  font-weight: 700; font-size: 15.5px; cursor: pointer; white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand); color: var(--white); box-shadow: 0 12px 30px rgba(28, 100, 99, 0.3); padding-inline-end: 8px; }
.btn-primary:hover { background: var(--brand-deep); box-shadow: 0 16px 38px rgba(19, 67, 81, 0.34); }
.btn-primary .btn-icon {
  width: 38px; height: 38px; border-radius: 50%; background: var(--amber); color: var(--ink);
  display: grid; place-items: center; flex: none;
}
.btn-ghost { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--brand), var(--shadow-sm); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-outline-light { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.4); }
.btn-outline-light:hover { box-shadow: inset 0 0 0 1.5px var(--white); }
.btn-sm { min-height: 44px; font-size: 14.5px; padding: 0 18px; }
.btn-sm.btn-primary { padding-inline-end: 6px; }
.btn-sm .btn-icon { width: 32px; height: 32px; }
.btn svg { width: 18px; height: 18px; }

/* ------------------------------ سربرگ ------------------------------ */

.site-header { position: fixed; inset-inline: 0; top: 14px; z-index: 50; pointer-events: none; }
.header-bar {
  pointer-events: auto;
  width: var(--container); margin-inline: auto;
  display: flex; align-items: center; gap: 20px;
  min-height: var(--header-h); padding: 10px 14px 10px 26px;
  padding-inline-start: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.7);
  transition: min-height 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-scrolled .header-bar { min-height: 74px; box-shadow: var(--shadow-md); }
.brand-logo { display: flex; align-items: center; flex: none; }
/* لوگو عمدا بزرگ است — هویت محصول باید در نگاه اول دیده شود */
.brand-logo img { height: 72px; width: auto; transition: height 0.25s ease; }
.site-header.is-scrolled .brand-logo img { height: 58px; }

.main-nav { margin-inline-start: auto; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav a {
  display: block; padding: 8px 14px; border-radius: 999px;
  font-weight: 600; font-size: 15px; color: var(--ink-2); transition: background 0.2s, color 0.2s;
}
.main-nav a:hover { background: var(--mint-soft); color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 8px; }

.menu-toggle {
  display: none; width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: var(--paper-2); color: var(--ink); cursor: pointer; place-items: center;
}
.menu-toggle svg { width: 22px; height: 22px; }

/* ------------------------------ عنوان بخش‌ها ------------------------------ */

.section { padding-block: 110px; position: relative; }
.section-alt { background: var(--paper-2); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 16px; border-radius: 999px;
  background: var(--mint-soft); color: var(--brand);
  font-weight: 700; font-size: 13.5px; margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(245, 179, 36, 0.22); }
.section-title { font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -0.3px; }
.section-lead { font-size: 18px; margin-top: 16px; color: var(--ink-2); }

/* z-index: 0 یک stacking context می‌سازد تا خط زیرین پشت متن بماند ولی زیر پس‌زمینه بخش نرود */
.hl { position: relative; z-index: 0; white-space: nowrap; color: var(--brand); }
.hl::after {
  content: ''; position: absolute; inset-inline: -2%; bottom: 0.02em; height: 0.2em;
  background: var(--amber); border-radius: 999px; z-index: -1; opacity: 0.85;
  transform-origin: right; animation: underline 0.9s 0.4s cubic-bezier(0.6, 0, 0.2, 1) both;
}
@keyframes underline { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ------------------------------ Hero ------------------------------ */

.hero { padding-top: calc(var(--header-h) + 70px); padding-bottom: 90px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.2vw, 64px); line-height: 1.28; letter-spacing: -0.8px; position: relative; z-index: 0; }
.hero-lead { font-size: clamp(17px, 1.6vw, 19.5px); margin-top: 24px; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.hero-trust li { display: flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 20px; height: 20px; color: var(--green); flex: none; }

.hero-visual { position: relative; min-height: 560px; }
.hero-mark {
  position: absolute; width: 118%; max-width: none; inset-inline-end: -22%; top: -8%;
  opacity: 0.09; pointer-events: none; filter: saturate(1.2);
}
.hero-photo {
  position: absolute; inset-inline-start: 0; top: 0; width: 78%;
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3.3;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(200deg, transparent 45%, rgba(19, 67, 81, 0.45)); }
.hero-photo figcaption {
  position: absolute; bottom: 18px; inset-inline-start: 20px; z-index: 1;
  color: var(--white); font-size: 13px; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.hero-photo figcaption::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(192, 239, 227, 0.3); }

/* پیش‌نمایش داشبورد — HTML/CSS، نه عکس: سبک، تیز روی هر صفحه، و قابل ترجمه */
.mock {
  position: absolute; inset-inline-end: 0; bottom: 0; width: 64%;
  background: var(--white); border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  padding: 18px; border: 1px solid var(--line);
}
.mock-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mock-title { font-weight: 800; color: var(--ink); font-size: 14px; }
.mock-dots { display: flex; gap: 5px; }
.mock-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--paper-3); }
.mock-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kpi { background: var(--paper-2); border-radius: 14px; padding: 10px 12px; }
.kpi small { display: block; font-size: 11.5px; color: var(--ink-3); font-weight: 600; line-height: 1.6; }
.kpi b { font-size: 18px; color: var(--ink); font-weight: 800; }
.kpi b em { font-style: normal; font-size: 11px; color: var(--ink-3); font-weight: 600; margin-inline-start: 3px; }
.kpi .up { color: var(--green); font-size: 11.5px; font-weight: 700; }
.mock-chart { margin-top: 12px; background: var(--paper-2); border-radius: 14px; padding: 10px 12px 6px; }
.mock-chart small { font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.mock-chart svg { width: 100%; height: 86px; display: block; }
.mock-note { margin-top: 8px; font-size: 10.5px; color: var(--ink-3); text-align: center; }

.float-card {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 20px; padding: 12px 16px 12px 14px; box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.8);
  animation: float 6s ease-in-out infinite;
}
.float-card .fc-icon { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--mint-soft); color: var(--brand); }
.float-card .fc-icon svg { width: 22px; height: 22px; }
.float-card small { display: block; font-size: 11.5px; color: var(--ink-3); font-weight: 600; line-height: 1.5; }
.float-card b { font-size: 15px; color: var(--ink); font-weight: 800; }
.fc-1 { top: 7%; inset-inline-end: -2%; }
.fc-2 { top: 36%; inset-inline-start: -7%; animation-delay: -2s; }
.fc-2 .fc-icon { background: var(--amber-soft); color: #9a6a00; }
.fc-3 { bottom: -4%; inset-inline-start: 10%; animation-delay: -4s; }
.progress { height: 6px; width: 120px; border-radius: 999px; background: var(--paper-3); margin-top: 6px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 56%; border-radius: inherit; background: linear-gradient(90deg, var(--green), var(--brand)); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ------------------------------ نوار واقعیت‌ها ------------------------------ */

.facts { margin-top: -10px; }
.facts-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--white); border-radius: var(--r-md); box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); overflow: hidden;
}
.fact { padding: 26px 24px; text-align: center; }
.fact + .fact { border-inline-start: 1px solid var(--line); }
.fact b { display: block; font-size: 34px; font-weight: 900; color: var(--brand); line-height: 1.3; }
.fact span { font-size: 14.5px; font-weight: 600; }

/* ------------------------------ ویترین زالو ------------------------------ */

/* زمینه سفید خالص: خود تصویر روی سفید ساخته شده و باید بی‌درز در صفحه بنشیند */
.showcase { background: var(--white); padding-block: 90px 80px; margin-top: 70px; overflow: hidden; }
.showcase-fig { max-width: 1240px; margin: 0 auto; }
.showcase-fig img { width: 100%; height: auto; }
.showcase-copy { max-width: 780px; margin: 10px auto 0; text-align: center; }
.showcase-copy .section-lead { margin-inline: auto; }
.showcase-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 22px; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.showcase-stats span { display: inline-flex; align-items: center; gap: 8px; }
.showcase-stats span::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }

/* ------------------------------ درد مشترک ------------------------------ */

.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pain {
  background: var(--white); border-radius: var(--r-md); padding: 30px 28px; border: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.pain-q { font-size: 44px; line-height: 1; font-weight: 900; color: var(--mint); position: absolute; inset-inline-end: 24px; top: 20px; }
.pain h3 { font-size: 20px; margin-bottom: 10px; max-width: 85%; }
.pain p { font-size: 15.5px; }
.pain-answer {
  margin-top: 28px; display: flex; align-items: center; gap: 14px; justify-content: center;
  font-size: 18px; font-weight: 700; color: var(--ink); text-align: center;
}
.pain-answer img { height: 38px; width: auto; }

/* ------------------------------ قابلیت‌ها ------------------------------ */

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.feature {
  grid-column: span 3;
  background: var(--white); border-radius: var(--r-lg); padding: 34px 32px 30px;
  border: 1px solid var(--line); position: relative; overflow: hidden;
  display: flex; flex-direction: column; transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-dark { background: var(--grad); border: 0; color: rgba(255, 255, 255, 0.82); }
.feature-dark h3 { color: var(--white); }
.feature-dark .f-icon { background: rgba(255, 255, 255, 0.14); color: var(--mint); }
.feature-dark .f-list li::before { background: var(--amber); }
.f-icon { width: 56px; height: 56px; border-radius: 18px; background: var(--mint-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 22px; }
.f-icon svg { width: 28px; height: 28px; }
.feature h3 { font-size: 23px; margin-bottom: 10px; }
.f-list { margin-top: 16px; display: grid; gap: 8px; font-size: 15px; }
.f-list li { display: flex; align-items: baseline; gap: 10px; }
.f-list li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none; transform: translateY(-2px); }
.f-visual { margin-top: auto; padding-top: 26px; }

.mini-bars { display: flex; align-items: flex-end; gap: 8px; height: 90px; }
.mini-bars i { flex: 1; border-radius: 10px 10px 4px 4px; background: rgba(255, 255, 255, 0.18); }
.mini-bars i.on { background: var(--amber); }
.mini-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: 14px; background: var(--paper-2); font-size: 14px; font-weight: 600; color: var(--ink); }
.mini-row + .mini-row { margin-top: 8px; }
.tag { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--mint-soft); color: var(--brand); }
.tag.warn { background: var(--amber-soft); color: #8a5d00; }
.tag.bad { background: #fde8e6; color: var(--danger); }

.feature-sm { grid-column: span 2; padding: 26px 26px 24px; border-radius: var(--r-md); }
.feature-sm .f-icon { width: 48px; height: 48px; border-radius: 15px; margin-bottom: 16px; }
.feature-sm .f-icon svg { width: 24px; height: 24px; }
.feature-sm h3 { font-size: 18px; margin-bottom: 6px; }
.feature-sm p { font-size: 14.5px; }

/* ------------------------------ روایت یک دوره ------------------------------ */

.story { background: var(--navy); color: rgba(255, 255, 255, 0.78); overflow: hidden; }
.story::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(800px 500px at 90% 10%, rgba(27, 147, 113, 0.35), transparent 70%),
              radial-gradient(600px 400px at 0% 100%, rgba(28, 100, 99, 0.5), transparent 70%);
  pointer-events: none;
}
.story .section-title { color: var(--white); }
.story .section-lead { color: rgba(255, 255, 255, 0.72); }
.story .eyebrow { background: rgba(255, 255, 255, 0.1); color: var(--mint); }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; position: relative; }
.story-steps { display: grid; gap: 14px; }
.story-step {
  display: grid; grid-template-columns: 54px 1fr; gap: 18px; align-items: start;
  padding: 24px 24px 24px 26px; border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
  cursor: default;
}
.story-step.is-active { background: rgba(255, 255, 255, 0.1); border-color: rgba(192, 239, 227, 0.35); transform: translateX(-6px); }
.story-num {
  width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center;
  font-weight: 900; font-size: 20px; color: var(--mint); background: rgba(192, 239, 227, 0.1);
  transition: background 0.35s, color 0.35s;
}
.story-step.is-active .story-num { background: var(--amber); color: var(--ink); }
.story-step h3 { color: var(--white); font-size: 20px; margin-bottom: 6px; }
.story-step p { font-size: 15px; }
.story-step .story-img-m { display: none; }

.story-stage { position: sticky; top: calc(var(--header-h) + 60px); height: min(560px, 70vh); }
.story-frame { position: relative; height: 100%; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35); background: #0d2340; }
.story-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06); transition: opacity 0.6s ease, transform 1.2s ease;
}
.story-frame img.is-active { opacity: 1; transform: scale(1); }
.story-frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(13, 35, 64, 0.85), transparent 55%); }
.story-caption {
  position: absolute; z-index: 2; inset-inline: 26px; bottom: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--white);
}
.story-caption b { font-size: 19px; }
.story-caption .chip { font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); backdrop-filter: blur(8px); white-space: nowrap; }

/* ------------------------------ شروع در ۳ قدم ------------------------------ */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; position: relative; }
.steps::before {
  content: ''; position: absolute; top: 44px; inset-inline: 16%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 16px);
}
.step { text-align: center; position: relative; padding: 0 12px; }
.step-icon {
  width: 88px; height: 88px; margin: 0 auto 22px; border-radius: 30px;
  background: var(--white); box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--brand); position: relative;
}
.step-icon svg { width: 36px; height: 36px; }
.step-icon::after {
  counter-increment: step; content: counter(step, persian);
  position: absolute; top: -8px; inset-inline-end: -8px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--amber); color: var(--ink); font-weight: 900; font-size: 15px; display: grid; place-items: center;
  box-shadow: 0 0 0 5px var(--paper);
}
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { font-size: 15px; max-width: 300px; margin-inline: auto; }

/* ------------------------------ برای چه کسانی ------------------------------ */

.audience { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; max-width: 980px; margin-inline: auto; }
.aud {
  display: flex; align-items: center; gap: 14px; padding: 12px 22px 12px 14px;
  background: var(--white); border-radius: 999px; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
}
.aud:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.aud .a-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--mint-soft); color: var(--brand); display: grid; place-items: center; }
.aud .a-icon svg { width: 22px; height: 22px; }
.aud b { color: var(--ink); font-size: 15.5px; display: block; line-height: 1.5; }
.aud small { font-size: 13px; color: var(--ink-3); }

/* ------------------------------ قیمت ------------------------------ */

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan {
  background: var(--white); border-radius: var(--r-lg); padding: 34px 30px 30px; border: 1px solid var(--line);
  display: flex; flex-direction: column; position: relative;
}
.plan-featured { background: var(--grad); border: 0; color: rgba(255, 255, 255, 0.8); box-shadow: var(--shadow-lg); transform: translateY(-12px); }
.plan-featured h3, .plan-featured .price b { color: var(--white); }
.plan-featured .plan-list li::before { background: var(--amber); }
.plan-badge {
  position: absolute; top: -14px; inset-inline-start: 50%; transform: translateX(50%);
  background: var(--amber); color: var(--ink); font-size: 13px; font-weight: 800; padding: 5px 16px; border-radius: 999px; white-space: nowrap;
}
.plan h3 { font-size: 22px; }
.plan-limit { font-weight: 700; font-size: 15px; margin-top: 4px; }
.price { margin: 22px 0 6px; min-height: 64px; }
.price b { font-size: 30px; font-weight: 900; color: var(--ink); }
.price small { display: block; font-size: 13.5px; }
.plan-list { display: grid; gap: 10px; margin: 18px 0 28px; font-size: 15px; }
.plan-list li { display: flex; gap: 10px; align-items: baseline; }
.plan-list li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none; transform: translateY(-2px); }
.plan .btn { margin-top: auto; width: 100%; }
.plan-featured .btn-primary { background: var(--white); color: var(--ink); box-shadow: none; }
.plan-featured .btn-primary:hover { background: var(--mint-soft); }

.guarantee {
  margin-top: 36px; display: flex; gap: 18px; align-items: center;
  background: var(--white); border-radius: var(--r-md); padding: 22px 26px; border: 1px dashed var(--line-strong);
}
.guarantee .g-icon { width: 52px; height: 52px; border-radius: 16px; background: var(--amber-soft); color: #8a5d00; display: grid; place-items: center; flex: none; }
.guarantee .g-icon svg { width: 26px; height: 26px; }
.guarantee b { color: var(--ink); }

/* ------------------------------ اعتماد ------------------------------ */

.trust-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.trust-gallery { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; min-height: 480px; }
.tg-item { border-radius: var(--r-md); overflow: hidden; position: relative; margin: 0; }
.tg-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.tg-item:hover img { transform: scale(1.05); }
.tg-item:first-child { grid-row: span 2; }
.tg-item figcaption {
  position: absolute; inset-inline: 12px; bottom: 12px; font-size: 13px; font-weight: 700; color: var(--white);
  background: rgba(19, 67, 81, 0.62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 6px 12px; border-radius: 12px; line-height: 1.7;
}
.trust-side { display: grid; gap: 14px; align-content: start; }
.credit-card { background: var(--grad); color: rgba(255, 255, 255, 0.82); border-radius: var(--r-md); padding: 28px; }
.credit-card b { color: var(--white); font-size: 19px; display: block; margin-bottom: 8px; line-height: 1.6; }
.sec-item { display: flex; gap: 14px; align-items: flex-start; background: var(--white); border-radius: var(--r-sm); padding: 18px 20px; border: 1px solid var(--line); }
.sec-item .s-icon { width: 42px; height: 42px; border-radius: 13px; background: var(--mint-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.sec-item .s-icon svg { width: 21px; height: 21px; }
.sec-item b { color: var(--ink); display: block; font-size: 15.5px; line-height: 1.6; }
.sec-item p { font-size: 14px; }

/* ------------------------------ سوالات متداول ------------------------------ */

.faq-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.faq-wrap .section-head { position: sticky; top: calc(var(--header-h) + 40px); margin-bottom: 0; }
.faq { display: grid; gap: 12px; }
.faq details { background: var(--white); border-radius: var(--r-sm); border: 1px solid var(--line); transition: box-shadow 0.25s; }
.faq details[open] { box-shadow: var(--shadow-sm); border-color: var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 700; color: var(--ink); font-size: 16.5px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; width: 32px; height: 32px; border-radius: 50%; background: var(--paper-2); flex: none;
  display: grid; place-items: center; font-size: 20px; font-weight: 500; color: var(--brand); transition: transform 0.25s, background 0.25s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--amber-soft); }
.faq details p { padding: 0 24px 22px; font-size: 15.5px; }

/* ------------------------------ CTA پایانی و تماس ------------------------------ */

.cta { padding-block: 40px 110px; }
.cta-box {
  background: var(--grad); border-radius: var(--r-lg); padding: 60px; color: rgba(255, 255, 255, 0.82);
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; position: relative; overflow: hidden;
}
.cta-box::before {
  content: ''; position: absolute; width: 520px; height: 520px; inset-inline-start: -160px; bottom: -220px;
  background: url('../assets/brand/logo-mark-white-512.webp') center / contain no-repeat; opacity: 0.07;
}
.cta-logo { height: 70px; width: auto; margin-bottom: 26px; }
.cta-box h2 { color: var(--white); font-size: clamp(28px, 3.4vw, 40px); }
.cta-box .section-lead { color: rgba(255, 255, 255, 0.78); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.cta-form { background: var(--white); border-radius: var(--r-md); padding: 30px; color: var(--ink-2); position: relative; }
.cta-form h3 { font-size: 20px; margin-bottom: 4px; }
.cta-form > p { font-size: 14.5px; margin-bottom: 18px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 700; font-size: 14px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; border: 1.5px solid var(--line-strong); border-radius: 14px; padding: 12px 16px; background: var(--paper);
  transition: border-color 0.2s, box-shadow 0.2s; font-size: 15.5px;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(28, 100, 99, 0.12); background: var(--white); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cta-form .btn { width: 100%; }
/* تله ربات — بیرون از دید، ولی نه display:none که بعضی ربات‌ها ردش می‌کنند */
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 12px; font-size: 14px; font-weight: 600; text-align: center; min-height: 1.5em; }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--danger); }

/* ------------------------------ فوتر ------------------------------ */

.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.7); padding: 76px 0 28px; position: relative; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; }
.footer-logo { height: 76px; width: auto; margin-bottom: 20px; }
.footer-about { font-size: 15px; max-width: 340px; }
.site-footer h4 { color: var(--white); font-size: 16px; margin-bottom: 16px; }
.footer-links { display: grid; gap: 10px; font-size: 15px; }
.footer-links a:hover { color: var(--mint); }
.enamad-slot {
  margin-top: 16px; width: 112px; height: 112px; border-radius: 16px; background: rgba(255, 255, 255, 0.95);
  display: grid; place-items: center; text-align: center; font-size: 12px; color: var(--ink-3); line-height: 1.6;
}
.footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px;
}
.to-top {
  width: 44px; height: 44px; border-radius: 50%; background: var(--amber); color: var(--ink); display: grid; place-items: center;
}
.to-top svg { width: 20px; height: 20px; }

/* ------------------------------ صفحه‌های فرعی ------------------------------ */

.page-hero { padding-top: calc(var(--header-h) + 80px); padding-bottom: 50px; }
.page-hero h1 { font-size: clamp(32px, 4.4vw, 52px); }
.breadcrumb { font-size: 14px; color: var(--ink-3); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--brand); }
.prose { max-width: 820px; padding-bottom: 100px; font-size: 16.5px; }
.prose h2 { font-size: 24px; margin: 42px 0 12px; }
.prose p + p { margin-top: 14px; }
.prose ul { list-style: disc; padding-inline-start: 22px; margin-top: 10px; display: grid; gap: 6px; }
.prose .note { background: var(--amber-soft); border-radius: var(--r-sm); padding: 16px 20px; margin-top: 20px; font-size: 15px; color: #6b4a00; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; padding-bottom: 100px; }
.contact-cards { display: grid; gap: 14px; align-content: start; }
.placeholder { background: var(--amber-soft); color: #7a5300; padding: 0 6px; border-radius: 6px; font-weight: 700; }

/* ------------------------------ آموزش: فهرست مقاله‌ها ------------------------------ */

.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; padding-bottom: 100px; }
.post-card {
  background: var(--white); border-radius: var(--r-md); border: 1px solid var(--line); overflow: hidden;
  display: flex; flex-direction: column; transition: transform 0.3s, box-shadow 0.3s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-card .pc-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-3); }
.post-card .pc-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card .pc-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.post-card h2, .post-card h3 { font-size: 21px; margin: 10px 0 10px; }
.post-card p { font-size: 15px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--ink-3); font-weight: 600; }
.post-meta .tag { font-size: 12px; }
.post-card .more { margin-top: auto; padding-top: 18px; color: var(--brand); font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.post-card .more svg { width: 16px; height: 16px; }

/* ------------------------------ آموزش: صفحه مقاله ------------------------------ */

.article-hero { padding-top: calc(var(--header-h) + 70px); padding-bottom: 36px; }
.article-hero h1 { font-size: clamp(30px, 4vw, 46px); max-width: 900px; margin: 12px 0 18px; }
.article-hero .lead { font-size: 19px; max-width: 800px; }
.article-cover { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 21 / 9; box-shadow: var(--shadow-md); margin-bottom: 50px; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; align-items: start; padding-bottom: 90px; }
.article-body { font-size: 17px; line-height: 2.05; color: var(--ink-2); min-width: 0; }
.article-body h2 { font-size: 27px; margin: 48px 0 14px; scroll-margin-top: calc(var(--header-h) + 30px); }
.article-body h3 { font-size: 20px; margin: 30px 0 10px; }
.article-body p + p { margin-top: 16px; }
.article-body ul, .article-body ol { padding-inline-start: 22px; margin: 14px 0; display: grid; gap: 8px; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: persian; }
.article-body li::marker { color: var(--brand); font-weight: 700; }
.article-body a { color: var(--brand); font-weight: 700; text-decoration: underline; text-decoration-color: var(--mint); text-underline-offset: 4px; }
.article-body strong { color: var(--ink); }
.article-body figure { margin: 28px 0; }
.article-body figure img { border-radius: var(--r-md); width: 100%; }
.article-body figcaption { font-size: 14px; color: var(--ink-3); text-align: center; margin-top: 10px; }
.table-wrap { overflow-x: auto; margin: 22px 0; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--white); }
.article-body table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.article-body th { background: var(--paper-2); color: var(--ink); font-weight: 800; text-align: start; padding: 12px 16px; white-space: nowrap; }
.article-body td { padding: 11px 16px; border-top: 1px solid var(--line); }
.article-body tr.hl-row td { background: var(--mint-soft); font-weight: 700; color: var(--ink); }
.callout { border-radius: var(--r-sm); padding: 18px 22px; margin: 24px 0; background: var(--mint-soft); border-inline-start: 4px solid var(--brand); font-size: 16px; }
.callout.warn { background: var(--amber-soft); border-color: var(--amber); color: #5f4200; }
.callout b { color: var(--ink); }
.formula { direction: ltr; text-align: center; font-weight: 800; color: var(--ink); background: var(--white); border: 1px dashed var(--line-strong); border-radius: var(--r-sm); padding: 16px; margin: 22px 0; font-size: 17px; }
.inline-cta {
  margin: 40px 0; background: var(--grad); color: rgba(255, 255, 255, 0.85); border-radius: var(--r-md);
  padding: 28px 30px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
}
.inline-cta b { color: var(--white); font-size: 20px; display: block; margin-bottom: 4px; }
.inline-cta p { font-size: 15px; margin: 0; }
.article-body .inline-cta a.btn { color: var(--ink); text-decoration: none; }

.article-aside { position: sticky; top: calc(var(--header-h) + 36px); display: grid; gap: 16px; }
.toc { background: var(--white); border-radius: var(--r-md); border: 1px solid var(--line); padding: 22px 22px 18px; }
.toc b { color: var(--ink); display: block; margin-bottom: 10px; font-size: 16px; }
.toc ol { list-style: none; display: grid; gap: 4px; counter-reset: toc; }
.toc a { display: block; font-size: 14.5px; padding: 6px 10px; border-radius: 10px; color: var(--ink-2); line-height: 1.7; }
.toc a:hover, .toc a.is-active { background: var(--mint-soft); color: var(--ink); }
.aside-cta { background: var(--navy); color: rgba(255, 255, 255, 0.78); border-radius: var(--r-md); padding: 24px; font-size: 14.5px; }
.aside-cta img { height: 44px; width: auto; margin-bottom: 14px; }
.aside-cta b { color: var(--white); display: block; font-size: 17px; margin-bottom: 6px; }
.aside-cta .btn { width: 100%; margin-top: 16px; }

.related { padding-block: 70px 100px; border-top: 1px solid var(--line); }
.related h2 { font-size: 26px; margin-bottom: 26px; }
.related .posts { grid-template-columns: repeat(3, 1fr); padding-bottom: 0; }

/* ------------------------------ راهنمای نصب ------------------------------ */

.guide-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.guide-tab {
  border: 0; cursor: pointer; padding: 10px 20px; border-radius: 999px; font-weight: 700; font-size: 15px;
  background: var(--white); color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--line-strong);
  display: inline-flex; align-items: center; gap: 8px;
}
.guide-tab svg { width: 18px; height: 18px; }
.guide-tab[aria-selected="true"] { background: var(--brand); color: var(--white); box-shadow: none; }
.guide-panel[hidden] { display: none; }
.guide-steps { display: grid; gap: 14px; counter-reset: g; }
.guide-step {
  display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start;
  background: var(--white); border-radius: var(--r-md); border: 1px solid var(--line); padding: 22px 24px;
}
.guide-step::before {
  counter-increment: g; content: counter(g, persian);
  width: 52px; height: 52px; border-radius: 17px; background: var(--mint-soft); color: var(--brand);
  display: grid; place-items: center; font-weight: 900; font-size: 20px;
}
.guide-step h3 { font-size: 18.5px; margin-bottom: 4px; }
.guide-step p { font-size: 15.5px; }
.kbd { display: inline-block; padding: 1px 9px; border-radius: 8px; background: var(--paper-2); border: 1px solid var(--line-strong); font-weight: 700; color: var(--ink); font-size: 14px; white-space: nowrap; }
.guide-section { padding-bottom: 70px; }
.guide-section > h2 { font-size: 28px; margin-bottom: 8px; }
.guide-section > p { margin-bottom: 26px; }
.menu-map { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.menu-map .sec-item p { font-size: 14px; }

/* ------------------------------ ظاهر شدن با اسکرول ------------------------------ */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
/*
 * بالای صفحه نباید منتظر جاوااسکریپت بماند: اگر اسکریپت دیر یا اصلا نرسد، Hero
 * خالی می‌ماند و امتیاز سرعت گوگل (LCP) هم پایین می‌آید. پس آن را با انیمیشن
 * CSS ظاهر می‌کنیم که به JS وابسته نیست.
 */
.hero .reveal, .page-hero .reveal { opacity: 1; transform: none; animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero .reveal:nth-child(2) { animation-delay: 0.08s; }
.hero .reveal:nth-child(3) { animation-delay: 0.16s; }
.hero .reveal:nth-child(4) { animation-delay: 0.24s; }
.hero-visual.reveal { animation-delay: 0.2s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   واکنش‌گرا
   ========================================================================== */

@media (max-width: 1080px) {
  .main-nav { display: none; }
  .header-actions { margin-inline-start: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { min-height: 520px; max-width: 640px; width: 100%; margin-inline: auto; }
  .story-grid { grid-template-columns: 1fr; }
  .story-stage { display: none; }
  .story-step { grid-template-columns: 1fr; }
  .story-step .story-num { display: none; }
  .story-step .story-img-m { display: block; border-radius: var(--r-sm); height: clamp(180px, 34vw, 280px); object-fit: cover; width: 100%; margin-bottom: 14px; }
  .story-step.is-active { transform: none; }
  .trust-grid, .faq-wrap, .cta-box, .contact-grid { grid-template-columns: 1fr; }
  .faq-wrap .section-head { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .plan-featured { transform: none; }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; }
  .related .posts { grid-template-columns: 1fr 1fr; }
}

/* منوی موبایل */
@media (max-width: 1080px) {
  .menu-toggle { display: grid; }
  .main-nav.is-open {
    display: block; position: absolute; top: calc(100% + 10px); inset-inline: 0;
    width: var(--container); margin-inline: auto; background: var(--white); border-radius: var(--r-md);
    box-shadow: var(--shadow-lg); padding: 14px; pointer-events: auto;
  }
  .main-nav.is-open ul { flex-direction: column; }
  .main-nav.is-open a { padding: 12px 16px; font-size: 16px; }
}

@media (max-width: 860px) {
  .bento .feature { grid-column: span 6; }
  .bento .feature-sm { grid-column: span 2; }
}

@media (max-width: 720px) {
  :root { --header-h: 72px; --container: calc(100vw - 32px); }
  .site-header { top: 10px; }
  .header-bar { padding: 8px 8px 8px 8px; padding-inline-start: 16px; gap: 10px; }
  .brand-logo img { height: 46px; }
  .site-header.is-scrolled .brand-logo img { height: 42px; }
  .site-header.is-scrolled .header-bar { min-height: 64px; }
  .header-actions .btn-ghost { display: none; }
  .header-actions .btn-primary .btn-label-long { display: none; }
  .section { padding-block: 76px; }
  .section-head { margin-bottom: 38px; }
  .hero { padding-top: calc(var(--header-h) + 50px); padding-bottom: 60px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-visual { min-height: 520px; }
  .hero-photo { width: 100%; aspect-ratio: 16 / 11; border-radius: var(--r-md); }
  .hero-photo figcaption { display: none; }
  .mock { width: 84%; padding: 14px; }
  .fact span { font-size: 13.5px; line-height: 1.7; display: block; }
  .kpi b { font-size: 15px; }
  .mock-chart svg { height: 64px; }
  .fc-1 { top: -3%; inset-inline-end: 0; }
  .fc-2 { display: none; }
  .fc-3 { bottom: -6%; inset-inline-start: 0; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { border-inline-start: 0; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .fact b { font-size: 28px; }
  .pain-grid, .steps { grid-template-columns: 1fr; }
  .showcase { padding-block: 50px 50px; margin-top: 40px; }
  .showcase-fig { margin-inline: -16px; } /* تصویر تا لبه صفحه — روی گوشی بزرگ‌تر دیده شود */
  .steps { gap: 36px; }
  .steps::before { display: none; }
  .bento .feature-sm { grid-column: span 6; }
  .feature { padding: 28px 24px 24px; border-radius: var(--r-md); }
  .trust-gallery { min-height: 380px; }
  .cta-box { padding: 36px 22px; border-radius: var(--r-md); }
  .cta-form { padding: 22px 18px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .guarantee { flex-direction: column; text-align: center; }
  .pain-answer { flex-direction: column; }
  .posts, .related .posts { grid-template-columns: 1fr; }
  .article-cover { aspect-ratio: 16 / 10; border-radius: var(--r-md); margin-bottom: 34px; }
  .article-body { font-size: 16.5px; }
  .article-body h2 { font-size: 23px; }
  .inline-cta { padding: 24px 20px; }
  .guide-step { grid-template-columns: 1fr; gap: 10px; padding: 20px; }
  .guide-step::before { width: 42px; height: 42px; border-radius: 14px; font-size: 17px; }
}
