/* ==========================================================================
   TEYMAR — Landing Page Design System
   RTL-first · Persian-first · Flat · Minimal · Premium Healthcare SaaS
   ========================================================================== */

/* ---------- Fonts (self-hosted) ----------
   YekanBakh FaNum — the same family the app ships (Content/fonts/). The landing
   was wired to the wrong webfont previously. Only three weights exist here:
   Regular (400), SemiBold (600), Bold (700). The design asks for 400 / 500 / 700,
   so SemiBold is declared for BOTH 500 and 600 — that keeps the three-level
   hierarchy the page was designed around (body = Regular, emphasis = SemiBold,
   headings = Bold) instead of silently collapsing 500 down to 400. ---------- */
@font-face {
  font-family: 'YekanBakhFaNum';
  src: url('../fonts/YekanBakhFaNum-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'YekanBakhFaNum';
  src: url('../fonts/YekanBakhFaNum-SemiBold.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'YekanBakhFaNum';
  src: url('../fonts/YekanBakhFaNum-SemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'YekanBakhFaNum';
  src: url('../fonts/YekanBakhFaNum-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- Design Tokens ---------- */
:root {
  --brand: #0997A4;
  --brand-dark: #077A86;
  --brand-tint: #DFF0F2;
  --surface-soft: #ECF7F8;
  --dark: #0B1929;
  --dark-2: #102438;         /* raised surface on dark */
  --dark-line: #1E3A50;
  --ink: #16303F;            /* body text */
  --muted: #5B7080;          /* secondary text */
  --muted-2: #8296A5;        /* captions */
  --line: #E2ECEF;
  --line-soft: #EBF3F5;
  --coral: #E4806B;          /* from wound illustrations — sparing accent */
  --coral-deep: #C05A4E;
  --white: #FFFFFF;
  --paper: #F8FCFD;          /* سطح پرونده — هم‌خانواده surface-soft */
  --paper-line: #E2ECEF;

  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  /* سایه‌های نرم‌تر و عمیق‌تر — حس لوکس با عمق، نه با تیرگی */
  --shadow-soft: 0 1px 2px rgba(11, 25, 41, .03), 0 14px 36px -14px rgba(11, 25, 41, .10);
  --shadow-lift: 0 2px 6px rgba(11, 25, 41, .04), 0 26px 56px -18px rgba(11, 25, 41, .15);

  --font: 'YekanBakhFaNum', 'Segoe UI', Tahoma, sans-serif;
  --nav-h: 72px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); scrollbar-gutter: stable; }
html.motion-off { scroll-behavior: auto; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.95;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { color: var(--dark); font-weight: 700; line-height: 1.45; text-wrap: balance; }
p { color: var(--muted); }
p, li { text-wrap: pretty; }
strong { color: var(--dark); font-weight: 700; }
a { color: var(--brand-dark); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--brand); }
img { max-width: 100%; height: auto; }
ul, ol { padding: 0; margin: 0; list-style: none; }

/* متن فقط برای موتور جست‌وجو و صفحه‌خوان‌ها.
   از display:none استفاده نکنید: آن متن را از ایندکس هم حذف می‌کند. */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
/* تشخیص ورودی لمسی: hover واقعی می‌ماند، حالت فشرده لمسی اضافه می‌شود */
html.touch a, html.touch button { -webkit-touch-callout: none; }
html.touch .btn-teymar:active { transform: none; background: var(--brand-dark); }
html.touch .btn-ghost:active { background: #F1F8F9; }

::selection { background: var(--brand-tint); color: var(--dark); }

/* اسکرول‌بار ظریف — جزئیاتی که حس دست‌ساز می‌دهد */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #F2F7F8; }
::-webkit-scrollbar-thumb { background: #C6DDE2; border-radius: 8px; border: 2px solid #F2F7F8; }
::-webkit-scrollbar-thumb:hover { background: #9FC7CE; }
@supports (-moz-appearance: none) {
  * { scrollbar-color: #C6DDE2 #F2F7F8; scrollbar-width: thin; }
}

:focus-visible {
  outline: 3px solid rgba(9, 151, 164, .38);
  outline-offset: 2px;
  border-radius: 6px;
}

section[id], footer[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }

.container { max-width: 1160px; }

/* لمس: پاسخ فوری و بدون هایلایت پیش‌فرض مرورگر */
html { -webkit-tap-highlight-color: transparent; }
a, button, summary, [role="tab"] { touch-action: manipulation; }

/* ---------- Type scale ----------
   نکته: برای متن فارسی هرگز letter-spacing استفاده نمی‌شود؛
   حروف متصل فارسی با فاصله‌گذاری حرفی می‌شکند. */
/* تیترها: کشیدگی توازن‌شده سطرها — سطر یتیم/نیمه‌خالی در هیچ بریک‌پوینتی */
.h-hero {
  font-size: clamp(1.62rem, 2.25vw + 1.075rem, 3.1rem);
  font-weight: 700;
  line-height: 1.5;
}
.h-sec {
  font-size: clamp(1.44rem, 2.7vw, 2.3rem);
  font-weight: 700;
  line-height: 1.5;
}
/* هایلایت زیر کلمه — نوار برند شیشه‌ای، شفافیت کمتر تا به #0997A4 نزدیک‌تر شود */
.hl {
  box-shadow: inset 0 -.42em 0 rgba(9, 151, 164, 0.38);
  padding-inline: .08em;
  border-radius: 3px;
}
.lead-sec {
  color: var(--muted);
  font-size: clamp(.98rem, 1.4vw, 1.08rem);
  line-height: 2.05;
}

/* ---------- Section scaffolding ---------- */
.section { padding-block: clamp(4.5rem, 11vw, 8rem); }
.sec-soft { background: var(--surface-soft); }
.sec-dark { background: var(--dark); }
.sec-head { max-width: 660px; margin-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.sec-head-center { margin-inline: auto; text-align: center; }
.sec-head .lead-sec { margin-top: .9rem; }

/* ---------- Kicker ادیتوریال — جایگزین قرص‌های تکراری ----------
   مربع تخت + برچسب + خط مویی + شماره سکشن؛ زبان «برگه مشخصات فنی» */
.sec-kicker {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.15rem;
  font-size: .78rem;
  font-weight: 700;
  color: var(--brand-dark);
  letter-spacing: 0;
}
.sk-dot { width: 6px; height: 6px; flex: none; background: var(--brand); border-radius: 1.5px; }
.sk-line { flex: 1; min-width: 28px; height: 1px; background: var(--line); }
.sk-num {
  flex: none;
  font-size: .7rem;
  font-weight: 500;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}
/* در دسکتاپ، خط مویی کیکرِ هیرو و سکشن‌های غیرسنتری یک «خط‌کش» واقعی است:
   پرشدنش با اسکرول نشان می‌دهد چقدر از سکشن خوانده شده — ارجاع به خط‌کش بالینی سنجش زخم */
@media (min-width: 768px) {
  .sk-line { position: relative; overflow: hidden; background: var(--line-soft); }
  .sk-line::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--brand);
    transform: scaleX(var(--sk-p, 0));
    transform-origin: right center; /* RTL: از راست رشد می‌کند */
    transition: transform .35s cubic-bezier(.22, .61, .36, 1);
  }
  html.motion-off .sk-line::after { transition: none; }
}
@media (max-width: 767px) {
  .sk-line { background: var(--line-soft); }
}
/* سکشن در حال خواندن: شماره کیکر جان می‌گیرد */
.sec-kicker.on-stage .sk-num { color: var(--brand-dark); font-weight: 700; }
.sec-dark .sec-kicker.on-stage .sk-num { color: #7FD1DA; }
.sec-kicker--center { justify-content: center; }
.sec-kicker--center .sk-line { flex: 0 0 30px; }
.sec-kicker--hero { font-size: .84rem; }
.sec-dark .sec-kicker { color: #7FD1DA; }
.sec-dark .sk-dot { background: #4FC3CF; }
.sec-dark .sk-line { background: var(--dark-line); }
.sec-dark .sk-num { color: #6E869D; }

/* ---------- Buttons ---------- */
/* فلش داخلی دکمه اصلی — حرکتش RTL-طبیعی است و به ماوس/لمس پاسخ می‌دهد */
.btn-arrow {
  display: inline-grid;
  place-items: center;
  width: 24px; height: 24px;
  flex: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
}
.btn-arrow svg { width: 13px; height: 13px; transition: transform .3s var(--ease-out-soft, ease); }
.btn-teymar:hover .btn-arrow svg, .btn-teymar:focus-visible .btn-arrow svg { transform: translateX(-3px); }
html.touch .btn-teymar:active .btn-arrow svg { transform: translateX(-3px); }
.btn-teymar:active { transform: translateY(0); }
.btn-teymar:active .btn-arrow { background: rgba(255, 255, .16, .22); }
.btn-teymar {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  background: var(--brand);
  color: var(--white);
  font-family: var(--font);
  font-weight: 500;
  font-size: .98rem;
  border: 1px solid var(--brand);
  border-radius: 12px;
  padding: .78rem 1.6rem;
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease, transform .3s var(--ease-out-soft, ease), box-shadow .3s ease;
}
/* درخشش نرم روی دکمه اصلی هنگام هاور — لمس لوکس، بدون شلوغی */
.btn-teymar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .26) 50%, transparent 60%);
  transform: translateX(-130%);
  transition: transform .8s var(--ease-out-soft, ease);
  pointer-events: none;
}
.btn-teymar:hover::after, .btn-teymar:focus-visible::after { transform: translateX(130%); }
.btn-teymar:hover, .btn-teymar:focus-visible {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -10px rgba(9, 151, 164, .55);
}
.btn-teymar:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 500;
  font-size: .98rem;
  border: 1px solid #D3E2E6;
  border-radius: 12px;
  padding: .78rem 1.6rem;
  cursor: pointer;
  transition: border-color .25s ease, color .25s ease, background .25s ease, transform .3s var(--ease-out-soft, ease), box-shadow .3s ease;
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-dark); background: var(--white); transform: translateY(-1px); box-shadow: var(--shadow-soft); }

.btn-outline-dark-sec {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  background: transparent;
  color: #C9DCE2;
  font-family: var(--font);
  font-weight: 500;
  border: 1px solid #2A4A61;
  border-radius: 10px;
  padding: .78rem 1.6rem;
  transition: border-color .2s, color .2s, background .2s;
}
.btn-outline-dark-sec:hover { border-color: #7FD1DA; color: #EAF6F8; background: rgba(9,151,164,.08); }

.btn-lg { padding: .95rem 2rem; font-size: 1.02rem; border-radius: 12px; }

/* ---------- Icon badge (flat square, matches illustration language) ---------- */
.icon-badge {
  flex: none;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--surface-soft);
  border: 1px solid #D3EAED;
  border-radius: 12px;
  color: var(--brand-dark);
}
.icon-badge svg { width: 21px; height: 21px; }

/* ==========================================================================
   Navbar
   ========================================================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1040;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-nav.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 22px rgba(11, 25, 41, .05);
}
/* روی هیروی سورمه‌ای: ناوبری شفاف با متن روشن؛ پس از اسکرول سفید می‌شود.
   فقط وقتی JS فعال است (html.js) — بدون JS ناوبری سفیدِ همیشگی می‌ماند. */
html.js .site-nav:not(.scrolled) {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
html.js .site-nav:not(.scrolled) .brand-name { color: var(--white); }
html.js .site-nav:not(.scrolled) .brand-latin { color: #8FA6BA; }
html.js .site-nav:not(.scrolled) .nav-links a { color: #C9D9E8; }
html.js .site-nav:not(.scrolled) .nav-links a:hover,
html.js .site-nav:not(.scrolled) .nav-links a.active { color: var(--white); }
html.js .site-nav:not(.scrolled) .nav-links a:hover::after,
html.js .site-nav:not(.scrolled) .nav-links a.active::after { background: #4FC3CF; }
html.js .site-nav:not(.scrolled) .nav-toggle {
  background: rgba(255, 255, 255, .07);
  border-color: var(--dark-line);
  color: var(--white);
}
/* حاشیه‌ی نامرئی ناوبری فقط وقتی رندر می‌شود که واقعاً لازم است */
html.js .site-nav.scrolled { background: rgba(255, 255, 255, .82); }
.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  min-height: var(--nav-h);
}
.brand { display: inline-flex; align-items: center; gap: .65rem; transition: opacity .25s ease; }
.brand:hover { opacity: .88; }
.brand-mark {
  width: 50px; height: 50px; flex: none;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid #D3E2E6;
  display: grid; place-items: center;
  color: var(--white);
  transition: transform .35s var(--ease-out-soft, ease), box-shadow .35s ease;
}
.brand:hover .brand-mark { transform: translateY(-1px); box-shadow: 0 6px 16px -6px rgba(11, 25, 41, .18); }
.brand-mark svg { width: 19px; height: 19px; }
.brand-mark img { width: 50px; height: 50px; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-size: 1.22rem; font-weight: 700; color: var(--dark); }
.brand-latin { font-size: .62rem; letter-spacing: 3.5px; color: var(--muted-2); font-weight: 500; }

.nav-links { display: none; align-items: center; gap: 1.45rem; }
.nav-links a {
  color: var(--ink);
  font-size: .93rem;
  font-weight: 500;
  padding-block: .3rem;
  position: relative;
}
.nav-links a:hover { color: var(--brand-dark); }
.nav-links a.active { color: var(--brand-dark); }
/* زیرخط ناوبری: از سمت راست (ابتدای RTL) رشد می‌کند */
.nav-links a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -4px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform .25s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-side { margin-inline-start: auto; display: flex; align-items: center; gap: .55rem; }

/* ── دکمهٔ ورود (جفتِ دکمهٔ شیشه‌ای «مشاهده امکانات»ِ هیرو) ──────────────────
   قاعده: این دکمه باید *دقیقاً* کلاس .btn-ghost هیرو را بازتولید کند — همان
   رنگ، همان حاشیه، همان شعاع، همان هاور، همان سایه — تا «ورود» و «مشاهده
   امکانات» یک زبانِ بصری واحد داشته باشند. تنها تفاوتِ اجباری، اندازه است:
   در نوار بالا هر دو دکمه به‌اندازهٔ «شروع رایگان» کوچک می‌شوند (زیر را ببینید)
   تا در کنار هم بمانند و ساختار به هم نریزد.

   روی نوار شفافِ هیرو (که پس‌زمینه‌اش تیره است) .btn-ghost سفیدش کاملاً
   می‌درخشد؛ اما اینجا شیشه لازم است، پس همان بافت با شفافیت کم اعمال می‌شود.
   روی نوار سفیدِ پس از اسکرول، .btn-ghost عیناً خودش می‌شود (سفیدِ پُر). */
.nav-login {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  font-family: var(--font);
  font-weight: 500;
  font-size: .9rem;
  padding: .55rem 1.15rem;
  border-radius: 12px;
  /* بافت شیشه‌ایِ هیرو: همان حاشیهٔ #D3E2E6 و همان متنِ --ink، با شفافیت */
  border: 1px solid rgba(211, 226, 230, .72);
  background: rgba(255, 255, 255, .86);
  color: var(--ink);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), 0 2px 8px -4px rgba(11, 25, 41, .28);
  transition: border-color .25s ease, color .25s ease, background .25s ease,
              transform .3s var(--ease-out-soft, ease), box-shadow .3s ease;
}
/* درخشش نرم روی شیشه هنگام هاور — هم‌خانوادهٔ افکت دکمهٔ اصلی */
.nav-login::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .55) 50%, transparent 60%);
  transform: translateX(-130%);
  transition: transform .8s var(--ease-out-soft, ease);
  pointer-events: none;
}
.nav-login:hover::after,
.nav-login:focus-visible::after { transform: translateX(130%); }
/* همان هاورِ .btn-ghost، بدون جابه‌جایی عمودی (نوار بالا نباید بلرزد) */
.nav-login:hover,
.nav-login:focus-visible {
  border-color: var(--brand);
  color: var(--brand-dark);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}
.nav-login:active { transform: translateY(0); }
html.touch .nav-login:active { transform: none; background: var(--white); }

/* روی نوار سفیدِ پس از اسکرول: دکمه دقیقاً .btn-ghost هیرو می‌شود */
html.js .site-nav.scrolled .nav-login {
  border-color: #D3E2E6;
  background: var(--white);
  color: var(--ink);
  box-shadow: none;
}
html.js .site-nav.scrolled .nav-login:hover,
html.js .site-nav.scrolled .nav-login:focus-visible {
  border-color: var(--brand);
  color: var(--brand-dark);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}
/* بدون JS ناوبری همیشه سفید است — همان حالت بالا */
html:not(.js) .nav-login {
  border-color: #D3E2E6;
  background: var(--white);
  color: var(--ink);
  box-shadow: none;
}
html:not(.js) .nav-login:hover,
html:not(.js) .nav-login:focus-visible {
  border-color: var(--brand);
  color: var(--brand-dark);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

/* هر دو دکمهٔ نوار بالا یک اندازه‌اند، پس یک قاعده براي هر دو کافی است. */
.nav-side .btn-teymar,
.nav-side .nav-login { padding: .55rem 1.15rem; font-size: .9rem; border-radius: 12px; }

/* Mobile toggle */
.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--white);
  color: var(--dark);
  cursor: pointer;
  transition: transform .18s ease, border-color .2s;
}
.nav-toggle:hover { border-color: var(--brand); }
.nav-toggle:active { transform: scale(.94); }
.nav-toggle svg { width: 21px; height: 21px; }
.nav-toggle .ic-close { display: none; }
.nav-toggle[aria-expanded="true"] .ic-menu { display: none; }
.nav-toggle[aria-expanded="true"] .ic-close { display: block; }

/* پنل موبایل: ورق تنظیمات بالینی — عطف کاغذی با فهرست شماره‌دار */
.mobile-panel {
  display: none;
  position: fixed;
  top: var(--nav-h);
  inset-inline: 0;
  bottom: 0;
  z-index: 1035;
  background: var(--dark);
  border-top: 1px solid var(--dark-line);
  padding: .6rem 1.25rem 1.4rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-panel.open { display: block; }
.mobile-panel a.m-link {
  display: flex;
  align-items: baseline;
  gap: .85rem;
  padding: 1.02rem .35rem;
  color: #C9D9E8;
  font-weight: 500;
  font-size: 1.02rem;
  border-bottom: 1px solid var(--dark-line);
}
.mobile-panel a.m-link i {
  font-style: normal;
  font-size: .68rem;
  color: #5C7A93;
  font-variant-numeric: tabular-nums;
}
.mobile-panel a.m-link:hover,
.mobile-panel a.m-link:focus-visible { color: #7FD1DA; }
.mobile-panel .m-ctas {
  display: grid;
  gap: .6rem;
  margin-top: 1.15rem;
  padding-bottom: calc(1.15rem + env(safe-area-inset-bottom, 0px));
}
/* دکمه ثانویه پنل روی سورمه‌ای — همان زبان دکمه هیرو */
.mobile-panel .btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, .28);
}
.mobile-panel .btn-ghost:hover,
.mobile-panel .btn-ghost:focus-visible {
  border-color: #7FD1DA;
  color: #7FD1DA;
  background: rgba(255, 255, 255, .04);
}
.mobile-panel.open { display: block; animation: mPanel .3s cubic-bezier(.22, .61, .36, 1) both; }
@keyframes mPanel { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
/* قفل اسکرول پس‌زمینه وقتی منوی موبایل باز است */
body.panel-open { overflow: hidden; }
@media (max-width: 575px) {
  .mobile-panel a.m-link { padding: .92rem .35rem; font-size: 1rem; }
}

@media (min-width: 992px) {
  .nav-links { display: flex; }
  .nav-toggle, .mobile-panel { display: none !important; }
  .nav-side { margin-inline-start: auto; }
}
@media (max-width: 575px) {
  .nav-side .nav-login { display: none; }
  :root { --nav-h: 64px; }
  /* در موبایل، فریم واقعی دستگاه با تصویر هم‌راستاست؛ کراپ خنثی می‌شود */
  .hg-media img { aspect-ratio: auto; }
}

/* ==========================================================================
   Hero — سورمه‌ای برند: بستری تیره تا تصویر هیرو خودش را نشان بدهد
   گرید-ایریا: کنترل کامل ترتیب در موبایل و دسکتاپ
   موبایل: کیکر → تیتر → لید → CTA → تصویر → نکته (تصویر در اولین نما)
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden; /* هاله‌ی متحرک درخشش از مرز هیرو بیرون نزند */
  background: var(--dark);
  margin-top: calc(-1 * var(--nav-h)); /* زیر ناوبری شفاف می‌رود */
  padding-block: calc(var(--nav-h) + clamp(1.4rem, 3.5vw, 2.8rem)) clamp(2.6rem, 5vw, 4.5rem);
}
/* درخشش زنده‌ی برند روی سورمه‌ای — دو هاله‌ی نرم با جنبش بسیار آرام (لوکس، نه شلوغ) */
.hero::before {
  content: "";
  position: absolute;
  inset: -10%;
  pointer-events: none;
  background:
    radial-gradient(760px 440px at 84% 10%, rgba(9, 151, 164, .26), transparent 68%),
    radial-gradient(560px 360px at 8% 92%, rgba(9, 151, 164, .12), transparent 70%);
  animation: heroGlow 14s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  from { transform: translate3d(0, 0, 0) scale(1); opacity: .92; }
  to   { transform: translate3d(-1.5%, 1%, 0) scale(1.04); opacity: 1; }
}
html.motion-off .hero::before { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none !important; }
}
.hero > .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "logo" "kicker" "title" "lead" "ctas" "media" "note";
  align-items: start;
}
.hg-logo { grid-area: logo; display: flex; align-items: center; gap: .65rem; }
.hg-logo-badge {
  width: 44px; height: 44px; flex: none;
  background: var(--white);
  border-radius: 12px;
  display: grid; place-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .22);
}
.hg-logo-badge img { width: 30px; height: 30px; display: block; }
.hg-logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.hg-logo-name { font-size: 1.3rem; font-weight: 700; color: var(--white); }
.hg-logo-latin { font-size: .62rem; letter-spacing: 3.5px; color: #8FA6BA; font-weight: 500; }
.hg-kicker { grid-area: kicker; }
.hg-title { grid-area: title; margin-top: .5rem; }
.hg-lead { grid-area: lead; margin-top: .85rem; max-width: 540px; }
.hg-ctas { grid-area: ctas; }
.hg-media { grid-area: media; }
.hg-note { grid-area: note; }

/* رنگ‌های متن روی سورمه‌ای */
.hero .h-hero { color: var(--white); }
.hero .lead-sec { color: #B9C9D8; }
.hero .sec-kicker { color: #7FD1DA; }
.hero .sk-dot { background: #4FC3CF; }
.hero .sk-line { background: var(--dark-line); }
/* هایلایت تیتر روی تیره: با رنگ روشن‌تر برند، بدون نوار */
.hero .hl,
.sec-dark .hl { box-shadow: none; color: #7FD1DA; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }
.hero-note {
  margin-top: 1.1rem;
  display: flex;
  align-items: center;
  gap: .55rem;
  color: #9FB3C4;
  font-size: .86rem;
}
.hero-note svg { width: 16px; height: 16px; color: #4FC3CF; flex: none; }
/* دکمه ثانویه روی تیره */
.hero .btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, .28);
}
.hero .btn-ghost:hover,
.hero .btn-ghost:focus-visible {
  border-color: #7FD1DA;
  color: #7FD1DA;
  background: rgba(255, 255, 255, .04);
}

/* تصویر هیرو — روی سورمه‌ای، سایه عمیق‌تر و حاشیه تیره تا خودش بدرخشد */
.hg-media {
  position: relative;
  width: 100%;
  max-width: 760px; /* تصویر ۳:۲ — عرض بیشتر تا قاب هیرو در گرید ستونی هم‌قدِ متن بماند */
  margin-inline: auto;
  margin-top: 1.7rem;
}
.hg-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2; /* نسبت ثابت تصاویر فعلی؛ بدون پرش لایه‌اوت هنگام لود */
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--dark-line);
  background: var(--white);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .28), 0 30px 68px rgba(0, 0, 0, .4);
  display: block;
  transition: transform .8s var(--ease-out-soft, ease), box-shadow .8s ease;
}
@media (hover: hover) and (pointer: fine) {
  .hg-media:hover img {
    transform: translateY(-4px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .3), 0 36px 76px rgba(0, 0, 0, .46);
  }
}
/* پنل آفست پشت تصویر — تخت و ساکت، عمق بدون بافت */
.hg-media::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset-inline-end: -16px;
  bottom: -16px;
  width: 64%;
  height: 58%;
  border-radius: 18px;
  background: var(--dark-2);
  border: 1px solid var(--dark-line);
}

/* موبایل و تبلت: کراپ عریض‌تر تصویر تا در اولین نما جا شود */
@media (max-width: 767px) {
  .hg-media img { aspect-ratio: 16 / 10; object-fit: cover; }
  .hg-media::before { inset-inline-end: -10px; bottom: -10px; }
}
@media (min-width: 992px) {
  .hero .container { max-width: 1240px; }
  .hero-grid {
    /* ستون متن باریک‌تر، ستون تصویر پهن‌تر — تصویر هیرو در دسکتاپ بزرگ‌تر دیده می‌شود */
    grid-template-columns: minmax(0, 4.4fr) minmax(0, 7.2fr);
    grid-template-areas:
      "kicker media"
      "title  media"
      "lead   media"
      "ctas   media"
      "note   media";
    column-gap: clamp(2rem, 3.2vw, 3rem);
  }
  .hg-media { margin-top: 0; align-self: center; max-width: none; }
  .hero-ctas { margin-top: 1.9rem; }
  .hero-note { margin-top: 1.5rem; }
}
@media (max-width: 575px) {
  .hero-grid { text-align: center; }
  .hg-kicker .sec-kicker { justify-content: center; }
  .hg-lead { margin-inline: auto; }
  .hero-ctas { justify-content: center; }
  .hero-note { justify-content: center; }
  /* دکمه‌های فشرده‌تر تا دو دکمه در یک ردیف جا شوند */
  .btn-lg { padding: .74rem 1rem; font-size: .92rem; }
}

/* ==========================================================================
   Value strip
   ========================================================================== */
.value-strip-wrap { border-block: 1px solid var(--line); background: var(--white); }
.value-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.value-strip li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: 1.25rem .6rem;
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  transition: color .3s ease;
}
/* شماره فهرست‌وار به‌جای آیکون عمومی — زبان فهرست محتوا */
.value-strip .vs-i {
  font-size: .72rem;
  font-weight: 700;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
  transition: color .3s ease, transform .3s var(--ease-out-soft, ease);
}
.value-strip li::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline: 18%;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transition: transform .35s var(--ease-out-soft, ease);
}
.value-strip li:hover::after { transform: scaleX(1); }
.value-strip li:hover .vs-i { color: var(--brand); transform: translateY(-1px); }
.value-strip li:hover { color: var(--brand-dark); }
@media (min-width: 576px) { .value-strip { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) {
  .value-strip { grid-template-columns: repeat(6, 1fr); }
  .value-strip li + li { border-inline-start: 1px solid var(--line-soft); }
}

/* ==========================================================================
   پرونده‌ی بیمار — «از پراکندگی به نظم»
   تکه‌داده‌های بی‌نوشته (عکس، یادداشت، فرم، نمودار، یادداشت چسبی) دور پرونده‌اند؛
   با GSAP به داخل پرونده می‌روند، سربرگ و ردیف‌های خطی منظم می‌نشینند
   و نوری روی جلد می‌گذرد.
   زبان بصری: کاغذ گرم پرونده + تک‌رنگ برند؛ هیچ نوشته‌ای داخل صحنه نیست.
   ========================================================================== */
.cv-scene { margin-top: clamp(2.6rem, 5.5vw, 3.8rem); }
.cv-stage {
  position: relative;
  max-width: 980px;
  margin-inline: auto;
  min-height: 560px;
  display: grid;
  place-items: center;
  padding: 2.6rem 0 1.4rem;
}
/* هاله‌ی نرم پشت پرونده — عمق لوکس، بدون سایه‌های سنگین */
.cv-stage::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  width: min(700px, 94%);
  height: min(460px, 92%);
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(9, 151, 164, .16), rgba(11, 25, 41, 0) 72%);
  pointer-events: none;
}

/* تکه‌داده‌های پراکنده — بدون هیچ نوشته‌ای؛ فقط فرم و شکل */
.cv-debris { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.cv-bit {
  position: absolute;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(11, 25, 41, .09));
}
.cv-bit svg { display: block; width: 100%; height: auto; }
.cv-b1 { top: 4%;    inset-inline-start: 5%;  width: 72px; transform: rotate(-7deg); }
.cv-b2 { top: 8%;    inset-inline-end: 6%;   width: 66px; transform: rotate(6deg); }
.cv-b3 { bottom: 16%; inset-inline-start: 8%; width: 58px; transform: rotate(4deg); }
.cv-b4 { bottom: 6%;  inset-inline-end: 7%;  width: 76px; transform: rotate(-5deg); }
.cv-b5 { top: 46%;   inset-inline-start: 1%;  width: 56px; transform: rotate(-3deg); }

/* بدنه پرونده: دو برگه از لبه بالایی بیرون زده‌اند — مثل پرونده‌ی واقعی */
.cv-folderwrap { position: relative; width: min(440px, 100%); z-index: 2; }
.cv-sheet {
  position: absolute;
  top: -12px;
  height: 30px;
  background: #FDFBF6;
  border: 1.5px solid var(--paper-line, #E9E2D4);
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
  z-index: 0;
}
.cv-sheet::before {
  content: "";
  position: absolute;
  top: 7px;
  inset-inline: 12px;
  height: 4px;
  border-radius: 3px;
  background: #EFE8DA;
  box-shadow: 0 9px 0 #F4EFE4;
}
.cv-s1 { inset-inline-start: 33%; width: 38%; transform: rotate(-1.4deg); }
.cv-s2 { inset-inline-start: 55%; width: 27%; top: -15px; transform: rotate(1.2deg); }

/* جلد پرونده — سطح روشن با لهجه برند، لبه‌ی تا‌خورده‌ی بالا (زبانه) */
.cv-card {
  position: relative;
  z-index: 1;
  width: 100%;
  background: linear-gradient(180deg, #FFFDF8 0%, var(--white) 100%);
  border: 1.5px solid var(--paper-line, #E9E2D4);
  /* گوشه بالایی سمت راست (جای زبانه در RTL) صاف است تا پرونده یکپارچه دیده شود */
  border-radius: var(--radius-lg) 0 var(--radius-lg) var(--radius-lg);
  box-shadow:
    0 1px 2px rgba(11, 25, 41, .04),
    0 6px 16px -6px rgba(11, 25, 41, .08),
    0 28px 56px -18px rgba(11, 25, 41, .16);
  padding: 1.4rem 1.35rem 1.05rem;
  overflow: visible;
}
/* چین تا در بالای جلد — نوار برند */
.cv-card::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 5px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(233, 226, 212, .55), transparent);
  pointer-events: none;
}
.cv-tab {
  position: absolute;
  bottom: calc(100% - 1.5px);
  inset-inline-start: -1.5px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: #F7F2E7;
  border: 1.5px solid var(--paper-line, #E9E2D4);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  padding: .44rem 1.05rem .55rem;
  font-size: .8rem;
  font-weight: 700;
  color: var(--dark);
  white-space: nowrap;
}
.cv-tab svg { width: 15px; height: 15px; color: var(--brand); }

/* درخشش نور روی جلد — آخرین لمس انیمیشن نظم (با برش گوشه‌ها) */
.cv-sheen-wrap {
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}
.cv-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .85) 50%, transparent 58%);
  transform: translateX(-140%);
  opacity: 0;
}

/* سربرگ پرونده — جای عکس بیمار + دو خط هویت */
.cv-head {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding-bottom: .85rem;
  margin-bottom: .35rem;
  border-bottom: 1.5px solid rgba(233, 226, 212, .85);
}
.cv-photo { flex: none; width: 40px; height: 40px; display: block; }
.cv-photo svg { display: block; width: 100%; height: 100%; border-radius: 10px; }
.cv-idlines { display: grid; gap: .42rem; flex: 1; min-width: 0; }
.cv-idl {
  display: block;
  height: 7px;
  border-radius: 99px;
  background: #ECE5D6;
}
.cv-idl1 { width: 68%; background: #C4B48E; opacity: .7; }
.cv-idl2 { width: 44%; background: #DDD6C6; opacity: .85; }

/* ردیف‌های منظم — فقط نشان + خط سند؛ بدون هیچ نوشته‌ای */
.cv-rows { display: grid; }
.cv-rows li {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding-block: .7rem;
  border-bottom: 1px solid rgba(233, 226, 212, .65);
}
.cv-rows li:last-child { border-bottom: 0; padding-bottom: .2rem; }
.cv-ck {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--brand-tint);
  color: var(--brand-dark);
  display: grid;
  place-items: center;
}
.cv-ck svg { width: 15px; height: 15px; }
.cv-rows li:nth-child(1) .cv-ck { background: #DFF0F2; color: #077A86; }
.cv-rows li:nth-child(2) .cv-ck { background: #E8F0F7; color: #3D6A8A; }
.cv-rows li:nth-child(3) .cv-ck { background: #F3EFE4; color: #8A7340; }
.cv-rows li:nth-child(4) .cv-ck { background: #E7F4EE; color: #2F7A5A; }
.cv-rows li:nth-child(5) .cv-ck { background: #F4EAF0; color: #8A4A6A; }
/* خط سند — طول متغیر برای حس «محتوای متفاوتِ مرتب» */
.cv-rline {
  display: block;
  height: 8px;
  width: calc(var(--rl, .7) * 100%);
  max-width: 100%;
  border-radius: 99px;
  background: #E9E4D8;
}
.cv-rows li:nth-child(odd) .cv-rline { background: #EDE8DC; }

/* راهنمای موبایل: همه‌چیز، در یک پرونده */
.cv-hint { display: none; }

/* موبایل: پرونده کوچک‌تر و مرکز‌چین؛ تکه‌ها اطرافش می‌چرخند تا
   کل انیمیشن همگرایی در یک نما دیده شود (نه شبکه جدا بالای پرونده) */
@media (max-width: 767px) {
  .cv-stage {
    min-height: 420px;
    padding: 1.6rem 0 .8rem;
  }
  .cv-stage::after { width: 130%; height: 78%; }
  .cv-debris {
    position: absolute;
    inset: 0;
    display: block;
    max-width: none;
    margin: 0;
  }
  .cv-bit {
    position: absolute;
    max-width: none;
    width: auto;
    justify-self: auto;
  }
  /* تکه‌ها فشرده‌تر و نزدیک‌تر به پرونده — همه در viewport موبایل */
  .cv-b1 { top: 2%;    inset-inline-start: 3%;  width: 52px; transform: rotate(-7deg); }
  .cv-b2 { top: 4%;    inset-inline-end: 4%;   width: 48px; transform: rotate(6deg); }
  .cv-b3 { bottom: 20%; inset-inline-start: 2%; width: 44px; transform: rotate(4deg); }
  .cv-b4 { bottom: 9%;  inset-inline-end: 3%;  width: 56px; transform: rotate(-5deg); }
  .cv-b5 { top: 44%;   inset-inline-start: 0;  width: 42px; transform: rotate(-3deg); }

  /* پرونده کوچک‌تر در موبایل */
  .cv-folderwrap { width: min(270px, 76%); margin-inline: auto; }
  .cv-card { padding: 1rem 1rem .8rem; }
  .cv-tab {
    padding: .32rem .8rem .42rem;
    font-size: .72rem;
    gap: .35rem;
  }
  .cv-tab svg { width: 13px; height: 13px; }
  .cv-sheet { height: 22px; top: -9px; }
  .cv-sheet::before { top: 5px; box-shadow: 0 7px 0 #F4EFE4; }
  .cv-s2 { top: -11px; }
  .cv-head { gap: .55rem; padding-bottom: .65rem; margin-bottom: .2rem; }
  .cv-photo { width: 32px; height: 32px; }
  .cv-photo svg { border-radius: 8px; }
  .cv-idl { height: 6px; }

  .cv-rows li { padding-block: .5rem; gap: .6rem; }
  .cv-ck { width: 22px; height: 22px; border-radius: 7px; }
  .cv-ck svg { width: 13px; height: 13px; }
  .cv-rline { height: 6px; }

  .cv-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    font-size: .8rem;
    font-weight: 500;
    color: var(--muted-2);
    margin-top: .35rem;
  }
  .cv-hint svg { width: 14px; height: 14px; color: var(--brand); animation: hintBob 2.2s ease-in-out infinite; }
}
@keyframes hintBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
/* پس از همگرایی در موبایل، تکه‌ها پنهان می‌شوند (فقط با JS و فقط زیر ۷۶۸px) */
@media (max-width: 767px) {
  .cv-debris.is-absorbed { display: none; }
}

/* صفحات خیلی باریک: پرونده و تکه‌ها جمع‌وجورتر */
@media (max-width: 380px) {
  .cv-stage { min-height: 390px; }
  .cv-folderwrap { width: min(248px, 80%); }
  .cv-b1, .cv-b2 { width: 44px; }
  .cv-b3, .cv-b5 { width: 38px; }
  .cv-b4 { width: 48px; }
}

/* ---------- بخش‌بندی سکشن‌ها: «مکث» به‌جای تیترِ تکراری ----------
   جمله‌ی کلیدی هر سکشن با شاخص تایپوگرافیک — ریتم گزارش بالینی، نه کارت پوستر AI */
.pause-break {
  max-width: 680px;
  margin: clamp(2.4rem, 5vw, 3.2rem) auto 0;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1.1rem;
  align-items: start;
  padding-block: .4rem;
}
.pb-index {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--brand);
  opacity: .28;
  font-variant-numeric: tabular-nums;
}
.pb-text {
  margin: 0;
  font-size: clamp(1.04rem, 1.8vw, 1.24rem);
  font-weight: 500;
  color: var(--dark);
  line-height: 2;
}
.pb-strong { color: var(--brand-dark); font-weight: 700; }

/* فضای ساکت و یکدست — بدون بافت شبکه؛ آرامش بصری بیشتر */

/* ناحیه لمسی دکمه‌های کوچک‌تر از ۴۴px با پدینگ ترمیم می‌شود */
.faq-chev { min-height: 44px; }

/* حرکت یکدست: همه transition ها یک منحنی مشترک دارند */
:root { --ease-out-soft: cubic-bezier(.22, .61, .36, 1); }

/* key message under a section */
.key-message {
  max-width: 680px;
  margin: clamp(2rem, 4vw, 2.8rem) auto 0;
  text-align: center;
  font-size: clamp(1.02rem, 1.7vw, 1.18rem);
  font-weight: 500;
  color: var(--dark);
  line-height: 2;
}

/* قاب تصویر موتور ارزیابی بهبود زخم — همان زبان split-media با سقف عرض ملایم زیر تیتر سنتری */
.he-media { max-width: 880px; margin-inline: auto; }

/* ==========================================================================
   Feature split layout (text + media)
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 4.5vw, 3.5rem); align-items: center; }
/* گارد ضد-بههمریختگی: فرزندان گرید هرگز عرض مسیر را بیشتر از ویوپورت نمی‌کنند
   (min-width:auto پیش‌فرض گرید، عامل کلاسیک سرریز افقی در موبایل است) */
.split > * { min-width: 0; }
@media (min-width: 992px) { .split { grid-template-columns: 5fr 6fr; } }
.split--flip .split-media { order: -1; }
/* موبایل: قاب تصویر همیشه بالای متن — نمایش جذاب و یکدست در هر سه سکشن زیگزاگ */
@media (max-width: 991px) {
  .split-media-first .split-media { order: -1; }
}
@media (min-width: 992px) {
  .split--flip { grid-template-columns: 6fr 5fr; }
  .split--flip .split-media { order: 0; }
  .split--flip .split-copy { order: 1; }
  /* تصویر ۳:۲ در سکشن‌های رسانه‌اول (مراقبت در منزل، کامیونیتی): هم‌قد شدن ستون رسانه با متن */
  .split-media-first .split-media {
    align-self: stretch;
    display: grid;
    align-content: center;
  }
}
.split-copy .lead-sec { margin-top: .9rem; }
.split-media { position: relative; z-index: 0; } /* stacking context تا پنل آفست پشت تصویر دیده شود */
.split-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-lift);
  transition: transform .7s var(--ease-out-soft, ease), box-shadow .7s ease;
}
@media (hover: hover) and (pointer: fine) {
  .split-media:hover img { transform: translateY(-5px); box-shadow: 0 2px 6px rgba(11, 25, 41, .04), 0 34px 66px -22px rgba(11, 25, 41, .2); }
}
/* پنل آفست پشت عکس سکشن‌ها — همان زبان هیرو، بدون هیچ کارت اضافه */
.split-media::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset-inline-end: -14px;
  bottom: -14px;
  width: 58%;
  height: 52%;
  border-radius: 18px;
  background: var(--brand-tint);
}
.split-media--dark::after { background: var(--dark-2); border: 1px solid var(--dark-line); }
@media (max-width: 575px) {
  .split-media::after { inset-inline-end: -8px; bottom: -8px; }
}
/* گرید رسانه‌پهن برای تصاویر ۳:۲ (بایگانی امن) — ستون تصویر عریض‌تر از ستون متن */
@media (min-width: 992px) {
  .split--wide-media.split--flip { grid-template-columns: 7fr 5fr; }
  .split--wide-media:not(.split--flip) { grid-template-columns: 5fr 7fr; }
}
.media-caption {
  margin-top: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-size: .78rem;
  color: var(--muted-2);
}
.media-caption::before { content: ""; width: 16px; height: 1px; background: #C3DCE1; }

/* mini check list (used in inventory etc.) */
.mini-points { margin-top: 1.4rem; display: grid; gap: .7rem; }
.mini-points li { display: flex; align-items: center; gap: .7rem; font-size: .95rem; color: var(--ink); font-weight: 500; }
.mini-points li svg { width: 17px; height: 17px; color: var(--brand); flex: none; }

/* ==========================================================================
   App frame — reusable container for real product screenshots
   (smart assessment form, timeline view, …)
   ========================================================================== */
.app-frame {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  overflow: visible;
}
/* برچسب‌های گوشه — مثل قاب‌گذاری عکسبرداری بالینی؛ دو گوشه متقاطع، عمداً نامتقارن */
.app-frame::before,
.app-frame::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid var(--brand);
  pointer-events: none;
}
.app-frame::before { top: -7px; inset-inline-start: -7px; border-bottom: 0; border-inline-end: 0; }
.app-frame::after { bottom: -7px; inset-inline-end: -7px; border-top: 0; border-inline-start: 0; }
.app-frame-bar {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .62rem 1rem;
  background: #F6FAFB;
  border-bottom: 1px solid var(--line-soft);
}
.af-dot { width: 8px; height: 8px; border-radius: 50%; background: #D9E6EB; flex: none; }
.af-title {
  margin-inline-start: .4rem;
  font-size: .72rem;
  font-weight: 500;
  color: var(--muted-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* تصاویر عریض ۳:۲ — قاب کم‌حاشیه تا تصویر بزرگ‌تر دیده شود */
.app-frame-body { padding: clamp(.55rem, 1.4vw, .9rem); overflow: hidden; border-radius: 0 0 15px 15px; }
.app-frame-body img { display: block; width: 100%; height: auto; border-radius: 10px; }

/* ---------- تصویر-اسلات: جای خالیِ معتبر و صادق برای اسکرین‌شات کاربر ---------- */
/* داخل گرید split، قاب کمی بلندتر تا ردیف دوستونه با متن هم‌تراز و متوازن دیده شود */
.split-media .img-slot { min-height: 300px; }
@media (max-width: 991px) { .split-media .img-slot { min-height: 230px; } }
.img-slot {
  min-height: 230px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: .26rem;
  padding: 1.7rem 1.2rem;
  text-align: center;
  background: #FBFDFD;
  border: 1.5px dashed #C7DFE4;
  border-radius: 10px;
}
.img-slot svg { width: 26px; height: 26px; color: #9FC0C9; margin-bottom: .2rem; }
.img-slot b { font-size: .92rem; font-weight: 700; color: var(--muted); }
.img-slot span { font-size: .76rem; color: var(--muted-2); line-height: 1.85; max-width: 330px; }
@media (max-width: 400px) { .img-slot { min-height: 190px; padding: 1.4rem .9rem; } }

/* برچسب‌های کوتاه زیر لید — به‌جای فهرست متنی بلند */
.assess-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.5rem;
}
.assess-tags li {
  font-size: .8rem;
  font-weight: 500;
  color: var(--brand-dark);
  background: var(--surface-soft);
  border: 1px solid #D3EAED;
  border-radius: 99px;
  padding: .32rem .9rem;
  line-height: 1.6;
}

/* سکشن‌های قدیمی (فهرست متنی) — اگر جایی دیگر استفاده شود */
.smart-list { margin-top: 1.7rem; display: grid; }
.smart-list li {
  display: grid;
  grid-template-columns: 30px 1fr;
  column-gap: .85rem;
  padding-block: .95rem;
  border-bottom: 1px solid var(--line-soft);
}
.smart-list li:last-child { border-bottom: 0; padding-bottom: .35rem; }
/* شماره تایپوگرافیک به‌جای آیکون — ریتم برگه مشخصات */
.smart-list .sl-num {
  font-size: .86rem;
  font-weight: 700;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  padding-top: .2rem;
}
.smart-list h3 { font-size: .98rem; font-weight: 700; color: var(--dark); }
.smart-list p { font-size: .88rem; color: var(--muted); line-height: 1.9; margin-top: .18rem; }

/* inline lead points (visits) */
.lead-points { margin-top: 1.5rem; display: grid; gap: .85rem; }
.lead-points li { display: flex; gap: .65rem; font-size: .93rem; color: var(--muted); line-height: 1.95; }
.lead-points li svg { width: 18px; height: 18px; color: var(--brand); flex: none; margin-top: .38rem; }
.lead-points b { color: var(--dark); font-weight: 700; }

/* ==========================================================================
   Wound healing timeline (signature) — narrative + screenshot slot
   ========================================================================== */
.tl-layout { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 4.5vw, 3.2rem); align-items: start; }
.tl-frame-col { align-self: start; }
@media (min-width: 992px) {
  .tl-layout { grid-template-columns: 1.04fr .96fr; }
  .tl-frame-col { position: sticky; top: calc(var(--nav-h) + 26px); }
}

.heal-timeline { position: relative; }
.tl-rail {
  position: absolute;
  inset-inline-start: 15px;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 3px;
  background: #CFE5E9;
  overflow: hidden;
}
.tl-fill {
  height: 0;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--brand) 0%, #3FBF9A 100%);
  transition: height 2.4s cubic-bezier(.22, .61, .36, 1) .15s;
  will-change: height;
}
.in-view .tl-fill { height: 100%; }

.tl-steps { display: grid; gap: clamp(1rem, 2.2vw, 1.35rem); }
.tl-step { position: relative; padding-inline-start: 54px; }

/* مارکر: دایره‌ی سبز با تیک که همزمان با رسیدن خط پر می‌شود */
.tl-marker {
  position: absolute;
  inset-inline-start: 1px;
  top: 18px;
  width: 29px; height: 29px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid #B7DCE1;
  display: grid; place-items: center;
  color: var(--white);
  z-index: 1;
  transition: background .35s ease, border-color .35s ease, transform .35s cubic-bezier(.34, 1.56, .64, 1);
}
.tl-marker svg {
  width: 12px; height: 12px;
  opacity: 0;
  transform: scale(.4);
  transition: opacity .25s ease, transform .3s cubic-bezier(.34, 1.56, .64, 1);
}
.in-view .tl-marker {
  background: var(--brand);
  border-color: var(--brand);
}
.in-view .tl-marker svg { opacity: 1; transform: scale(1); }
.in-view .tl-step:nth-child(1) .tl-marker { transition-delay: .35s; }
.in-view .tl-step:nth-child(2) .tl-marker { transition-delay: .9s; }
.in-view .tl-step:nth-child(3) .tl-marker { transition-delay: 1.45s; }
.in-view .tl-step:nth-child(4) .tl-marker { transition-delay: 2s; }
.in-view .tl-step:nth-child(1) .tl-marker svg { transition-delay: .5s; }
.in-view .tl-step:nth-child(2) .tl-marker svg { transition-delay: 1.05s; }
.in-view .tl-step:nth-child(3) .tl-marker svg { transition-delay: 1.6s; }
.in-view .tl-step:nth-child(4) .tl-marker svg { transition-delay: 2.15s; }

/* کارت هر گام — سفید، کم‌حاشیه، بدون پاراگراف؛ فقط سربرگ + تگ‌های داده */
.tl-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: .9rem 1.1rem 1rem;
  box-shadow: 0 1px 2px rgba(11, 31, 45, .03);
  transition: box-shadow .3s ease, border-color .3s ease, transform .3s ease;
}
.tl-card:hover {
  border-color: #B7DCE1;
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}
.tl-head { display: flex; align-items: center; gap: .7rem; }
.tl-wstate { width: 40px; height: 40px; flex: none; border-radius: 10px; }
.tl-meta { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.tl-day {
  align-self: flex-start;
  background: var(--brand-tint);
  border: 1px solid transparent;
  color: var(--brand-dark);
  font-size: .7rem;
  font-weight: 700;
  border-radius: 99px;
  padding: .1rem .65rem;
  letter-spacing: .01em;
}
.tl-title { font-size: .98rem; font-weight: 700; color: var(--dark); line-height: 1.5; }
.tl-data { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .75rem; padding-top: .7rem; border-top: 1px dashed var(--line-soft); }
.tl-data span {
  font-size: .76rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--surface-soft);
  border: 1px solid #E2EEF0;
  border-radius: 6px;
  padding: .2rem .7rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.7;
}
/* گام آخر: حالت «بسته‌شده» — حاشیه سبز ملایم */
.tl-step:last-child .tl-card { border-color: #B7E0D4; background: linear-gradient(180deg, #FFF 0%, #F3FBF8 100%); }

/* موبایل: مارکر و کارت فشرده‌تر */
@media (max-width: 575px) {
  .tl-step { padding-inline-start: 44px; }
  .tl-rail { inset-inline-start: 12px; top: 12px; bottom: 12px; width: 2.5px; }
  .tl-marker { width: 25px; height: 25px; top: 16px; border-width: 2.5px; }
  .tl-marker svg { width: 10px; height: 10px; }
  .tl-card { padding: .8rem .9rem .9rem; border-radius: 12px; }
  .tl-wstate { width: 34px; height: 34px; }
  .tl-title { font-size: .92rem; }
}

/* ==========================================================================
   Paperless — paper → digital
   ========================================================================== */
.paper-to-digital {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 1.6rem 1.4rem;
  max-width: 470px;
  margin-inline: auto;
}
.ptd-side { width: 100%; }
.ptd-label {
  display: block;
  text-align: center;
  font-size: .78rem;
  color: var(--muted-2);
  margin-bottom: .6rem;
  font-weight: 500;
}
.paper-stack { position: relative; height: 92px; width: 150px; margin-inline: auto; }
.paper {
  position: absolute;
  inset-inline-start: 50%;
  top: 4px;
  width: 118px; height: 84px;
  margin-inline-start: -59px;
  background: #FDFEFE;
  border: 1.5px dashed #C4D6DB;
  border-radius: 8px;
  transition: transform .5s ease;
}
.paper::before {
  content: "";
  position: absolute;
  inset: 16px 18px auto;
  height: 6px;
  border-radius: 4px;
  background: #E4EDF0;
  box-shadow: 0 14px 0 #E4EDF0, 0 28px 0 #EEF4F6;
}
.paper.p1 { transform: rotate(-7deg) translateX(-16px); }
.paper.p2 { transform: rotate(5deg) translateX(16px); top: 0; }
.ptd-arrow {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--surface-soft);
  border: 1px solid #D3EAED;
  color: var(--brand);
}
.ptd-arrow svg { width: 19px; height: 19px; }
@media (min-width: 768px) {
  .paper-to-digital { flex-direction: row; justify-content: space-between; gap: .8rem; padding: 1.8rem 1.6rem; }
  .ptd-arrow { transform: none; flex: none; }
  .ptd-side { width: 42%; }
}
.file-rows { display: grid; gap: .5rem; }
.file-row {
  display: flex;
  align-items: center;
  gap: .6rem;
  border: 1px solid var(--line);
  background: #FBFDFD;
  border-radius: 10px;
  padding: .5rem .7rem;
}
.file-row svg { width: 15px; height: 15px; color: var(--brand); flex: none; }
.file-row .fr-line { height: 6px; border-radius: 99px; background: #E4EDF0; }
.file-row .fr-line.w1 { width: 58%; }
.file-row .fr-line.w2 { width: 40%; }
.file-row .fr-line.w3 { width: 70%; }

/* ==========================================================================
   Finance (dark) — شبکه مهندسی ظریف پس‌زمینه + KPI ادیتوریال با نقطه‌چین رهبر
   ========================================================================== */
.sec-dark, .sec-dark p { color: #A9BDD1; }
.sec-dark h2, .sec-dark h3 { color: var(--white); }
.kpi-stack { display: grid; margin-top: 1.8rem; position: relative; border-top: 1px solid var(--dark-line); }
.kpi {
  display: flex;
  align-items: baseline;
  gap: 0;
  padding: 1.05rem .15rem;
  border-bottom: 1px solid var(--dark-line);
}
.kpi-label { font-size: .86rem; color: #8FA6BC; font-weight: 500; flex: none; }
/* نقطه‌چین رهبر — مثل فهرست قیمت‌های چاپی؛ چشم را مستقیم به عدد می‌برد */
.kpi-dots {
  flex: 1;
  min-width: 24px;
  border-bottom: 1px dotted #2E516B;
  margin-inline: .8rem;
  transform: translateY(-4px);
}
.kpi-value {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 700;
  color: var(--white);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.kpi-unit { font-size: .74rem; color: #6E869D; margin-inline-start: .3rem; font-weight: 400; }
/* صفحات باریک: برچسب بالا، عدد پایین — بدون سرریز */
@media (max-width: 430px) {
  .kpi { flex-wrap: wrap; row-gap: .2rem; }
  .kpi-dots { display: none; }
  .kpi-value { flex-basis: 100%; }
}
.sample-tag {
  position: absolute;
  top: -14px;
  inset-inline-end: 14px;
  font-size: .68rem;
  color: #7FD1DA;
  background: rgba(9, 151, 164, .16);
  border: 1px solid var(--dark-line);
  border-radius: 6px;
  padding: .14rem .7rem;
}
.sample-tag--light { color: var(--brand-dark); background: var(--white); border-color: #C8E3E7; }
.fin-list { margin-top: 1.6rem; display: grid; gap: .65rem; }
.fin-list li { display: flex; align-items: center; gap: .65rem; font-size: .93rem; color: #C9D9E8; }
.fin-list li svg { width: 16px; height: 16px; color: #4FC3CF; flex: none; }
.split-media--dark img { border-color: var(--dark-line); box-shadow: 0 2px 6px rgba(0,0,0,.22), 0 24px 54px rgba(0,0,0,.34); }

/* ==========================================================================
   Comparison table
   ========================================================================== */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  -webkit-overflow-scrolling: touch;
  box-shadow: var(--shadow-soft);
}
.cmp-table { width: 100%; min-width: 690px; border-collapse: collapse; font-size: .93rem; }
.cmp-table th, .cmp-table td {
  padding: .82rem 1.1rem;
  text-align: start;
  border-top: 1px solid var(--line-soft);
  vertical-align: middle;
}
.cmp-table thead th {
  border-top: 0;
  font-size: .84rem;
  font-weight: 500;
  color: var(--muted);
  background: #F7FBFC;
  white-space: nowrap;
}
.cmp-table thead th:first-child { border-start-end-radius: var(--radius-lg); }
.cmp-table thead th:last-child { border-start-start-radius: var(--radius-lg); }
.cmp-table .col-t { background: var(--surface-soft); }
.cmp-table thead .col-t {
  color: var(--brand-dark);
  font-weight: 700;
  font-size: .95rem;
}
.cmp-table tbody th {
  font-weight: 500;
  color: var(--ink);
  font-size: .9rem;
}
.cmp-table td { color: var(--muted); white-space: nowrap; }
.ic-yes { width: 18px; height: 18px; color: var(--brand); }
.ic-no { width: 16px; height: 16px; color: #C2685C; }
.chip-x {
  display: inline-block;
  font-size: .76rem;
  color: var(--muted);
  background: #F3F6F8;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: .12rem .65rem;
}
.chip-t {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  color: var(--brand-dark);
  background: var(--white);
  border: 1px solid #BFE0E5;
  border-radius: 6px;
  padding: .14rem .75rem;
}
/* موبایل: جدول پنهان و نمای گروهی جایگزین می‌شود — کل مقایسه بدون اسکرول افقی و با مفهوم واضح */
.cmp-mobile { display: none; }
@media (max-width: 767px) {
  .table-scroll { display: none; }
  .cmp-mobile { display: grid; gap: .8rem; }
  .cmp-base {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: .95rem 1rem 1rem;
    display: grid;
    gap: .8rem;
    box-shadow: 0 1px 2px rgba(11, 25, 41, .04);
  }
  .cmp-base-head { display: flex; align-items: flex-start; gap: .65rem; }
  .cmp-base-badge {
    width: 30px; height: 30px; flex: none;
    border-radius: 9px;
    background: var(--surface-soft);
    border: 1px solid #CDE7EA;
    color: var(--brand-dark);
    display: grid; place-items: center;
  }
  .cmp-base-badge svg { width: 14px; height: 14px; }
  .cmp-base-head div { display: grid; gap: .1rem; }
  .cmp-base-head strong { font-size: .92rem; font-weight: 700; color: var(--dark); }
  .cmp-base-head span { font-size: .78rem; color: var(--muted); line-height: 1.85; }
  .cmp-base-list { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
  .cmp-base-list li {
    display: flex; align-items: center; gap: .45rem;
    font-size: .8rem; font-weight: 500; color: var(--ink);
    background: #F6FAFB;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    padding: .42rem .6rem;
  }
  .cmp-base-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); flex: none; }
  @media (max-width: 355px) { .cmp-base-list { grid-template-columns: 1fr; } }

  .cmp-divider { display: flex; align-items: center; gap: .7rem; margin: .1rem 0; color: var(--muted-2); font-size: .76rem; font-weight: 700; }
  .cmp-divider::before, .cmp-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }

  .cmp-cards { display: grid; gap: .55rem; }
  .cmp-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: .8rem .85rem .85rem;
    box-shadow: 0 1px 2px rgba(11, 25, 41, .04);
  }
  .cmp-feat {
    font-size: .92rem;
    font-weight: 700;
    color: var(--dark);
    padding-bottom: .55rem;
    margin-bottom: .55rem;
    border-bottom: 1px dashed var(--line-soft);
  }
  .cmp-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
  .cmp-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: .3rem;
    min-height: 60px;
    padding: .48rem .6rem .55rem;
    border-radius: 9px;
  }
  .cmp-cell em { font-style: normal; font-size: .64rem; font-weight: 500; color: var(--muted-2); }
  .cmp-cell--g { background: #F7FAFB; border: 1px solid var(--line-soft); }
  .cmp-cell--g .chip-x { background: none; border: 0; padding: 0; font-size: .8rem; color: var(--muted); font-weight: 500; }
  .cmp-cell--g .ic-no { width: 16px; height: 16px; }
  .cmp-cell--t { background: var(--surface-soft); border: 1px solid #CDE7EA; }
  .cmp-cell--t em { color: var(--brand-dark); font-weight: 700; }
  .cmp-cell--t .ic-yes { width: 19px; height: 19px; }
  .cmp-cell--t .chip-t { background: none; border: 0; padding: 0; font-size: .84rem; }
}

/* ==========================================================================
   Value — سکشن تیره تعرفه: فقط تیتر + توضیح + قاب تصویر (حس حفظ پول در روایت متن)
   ========================================================================== */
.sec-dark .media-caption { color: #7E95AB; }
.sec-dark .media-caption::before { background: #2E516B; }

/* SECTION · ROLE-BASED VALUE حذف شد — CSS مرتبط پاک شد */

/* SECTION · WHY TEYMAR حذف شد — CSS مرتبط پاک شد */

/* ==========================================================================
   Security — زنجیره کنترل: چهار لایه روی یک خط عمودی (موبایل‌فرست)
   ========================================================================== */
.sec-chain {
  position: relative;
  max-width: 720px;
  margin-inline: auto;
  display: grid;
  gap: 1.15rem;
}
/* خط عمودی زنجیره — از گره اول تا گره آخر، پشت گره‌ها */
.sec-chain::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 24px;
  inset-inline-start: 21px;
  width: 0;
  border-inline-start: 2px dashed #BFE0E5;
}
.sec-item {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 1.05rem;
  align-items: start;
}
.sec-node {
  position: relative;
  z-index: 1;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid #BFE0E5;
  box-shadow: 0 1px 2px rgba(11, 25, 41, .05);
  display: grid; place-items: center;
  transition: border-color .25s ease;
}
.sec-num {
  font-size: .78rem;
  font-weight: 700;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.sec-body {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .95rem 1.15rem 1rem;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.sec-item:hover .sec-body { border-color: #BFE0E5; box-shadow: var(--shadow-soft); }
.sec-item:hover .sec-node { border-color: var(--brand); }
.sec-title { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: .25rem; }
.sec-desc { font-size: .87rem; color: var(--muted); line-height: 1.9; }
.sec-close {
  max-width: 720px;
  margin: 1.35rem auto 0;
  text-align: center;
  font-size: .9rem;
  color: var(--muted);
}
.sec-close strong { color: var(--dark); font-weight: 700; }
@media (max-width: 400px) {
  .sec-item { grid-template-columns: 38px 1fr; column-gap: .8rem; }
  .sec-node { width: 38px; height: 38px; }
  .sec-chain::before { inset-inline-start: 18px; }
}

/* ==========================================================================
   CTA panels
   ========================================================================== */
.cta-panel {
  position: relative;
  background: var(--surface-soft);
  border: 1px solid #CBE4E8;
  border-radius: 20px;
  padding: clamp(2.6rem, 6vw, 4.2rem) clamp(1.4rem, 4vw, 3rem);
  text-align: center;
  max-width: 860px;
  margin-inline: auto;
  overflow: hidden;
}
/* درخشش بسیار ملایم گوشه‌ای — لوکس، بدون حواس‌پرتی */
.cta-panel::before {
  content: "";
  position: absolute;
  top: -40%;
  inset-inline-start: -20%;
  width: 60%;
  height: 120%;
  background: radial-gradient(closest-side, rgba(9, 151, 164, .1), transparent);
  pointer-events: none;
}
.cta-panel > * { position: relative; }
.cta-panel .lead-sec { max-width: 560px; margin: .9rem auto 0; }
.cta-logo {
  display: block;
  width: 58px; height: 58px;
  margin: 0 auto 1.15rem;
  background: var(--white);
  border-radius: 14px;
  padding: 7px;
  box-shadow: 0 2px 10px rgba(11, 25, 41, .08);
  transition: transform .4s var(--ease-out-soft, ease);
}
.cta-panel:hover .cta-logo { transform: translateY(-2px) scale(1.03); }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 1.9rem; }

.final { position: relative; z-index: 0; overflow: hidden; background: var(--dark); color: #C9D9E8; padding-block: clamp(4rem, 8vw, 6.5rem) 0; }
/* واترمارک تایپوگرافیک — امضای برند، بدون هیچ گرافیک خارجی */
.final::before {
  content: "تیمار";
  position: absolute;
  top: clamp(.4rem, 3vw, 2rem);
  inset-inline: 0;
  text-align: center;
  font-size: clamp(7rem, 22vw, 15rem);
  line-height: 1;
  font-weight: 700;
  color: rgba(255, 255, 255, .035);
  pointer-events: none;
  user-select: none;
}
@supports ((-webkit-text-stroke: 1px black)) {
  .final::before { color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .06); }
}
.final h2, .final h3 { color: var(--white); }
.final-inner { position: relative; text-align: center; max-width: 680px; margin-inline: auto; }
.final h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.6; }
.final p { margin-top: 1rem; }
.final .cta-actions { margin-top: 2.1rem; }

.site-footer { background: var(--dark); border-top: 1px solid rgba(255, 255, 255, .08); margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  padding-block: 2.2rem;
}
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}
.footer-brand { display: flex; align-items: center; gap: .65rem; }
.footer-brand .brand-name { color: var(--white); }
.footer-brand .brand-latin { color: #6E869D; }
.footer-brand .brand-mark { background: var(--white); border: 1px solid rgba(255, 255, 255, .16); }
.footer-links { display: flex; flex-wrap: wrap; gap: .35rem 1.4rem; }
.footer-links a { color: #9DB2C6; font-size: .86rem; }
.footer-links a:hover { color: #E4F1F5; }
.footer-copy { color: #6E869D; font-size: .8rem; }
.footer-latin {
  display: block;
  margin-top: .35rem;
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: 2.8px; /* فقط برای لاتین مجاز است */
  color: #54707F;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-wrap { max-width: 800px; margin-inline: auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
  transition: background .3s ease;
  border-radius: 10px;
}
.faq-item:hover { background: rgba(236, 247, 248, .45); }
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  padding: 1.2rem .55rem;
  font-size: .99rem;
  font-weight: 500;
  color: var(--dark);
  transition: color .25s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--brand-dark); }
/* شماره سؤال — ریتم سند رسمی */
.faq-num {
  flex: none;
  font-size: .74rem;
  font-weight: 700;
  color: var(--brand-dark);
  font-variant-numeric: tabular-nums;
  opacity: .55;
}
.faq-q { flex: 1; text-align: start; }
.faq-chev {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  display: grid; place-items: center;
  color: var(--muted);
  transition: transform .35s var(--ease-out-soft, ease), color .3s ease, border-color .3s ease, background .3s ease;
}
.faq-chev svg { width: 14px; height: 14px; }
.faq-item[open] .faq-chev { transform: rotate(180deg); color: var(--white); background: var(--brand); border-color: var(--brand); }
.faq-item summary:hover .faq-chev { border-color: var(--brand); color: var(--brand-dark); }
.faq-a { padding: 0 3.3rem 1.3rem .3rem; font-size: .92rem; color: var(--muted); line-height: 2.05; max-width: 700px; padding-inline-start: 2.5rem; }
@media (max-width: 575px) { .faq-a { padding-inline-end: .3rem; padding-inline-start: 2.3rem; } }
@media (max-width: 575px) {
  .faq-item summary { padding: 1.05rem .35rem; font-size: .95rem; }
  .faq-chev { width: 34px; height: 34px; }
}

/* ==========================================================================
   حالت اولیه انیمیشن‌های GSAP — فقط با کلاس js-motion (اگر GSAP نیاید برداشته می‌شود)
   ========================================================================== */
.js-motion .hg-kicker, .js-motion .hg-title, .js-motion .hg-lead,
.js-motion .hg-ctas, .js-motion .hg-note, .js-motion .hg-media { opacity: 0; }
/* صحنه پرونده: ردیف‌ها، سربرگ و خطوط تا شروع انیمیشن پنهان‌اند */
.js-motion .cv-rows li,
.js-motion .cv-head { opacity: 0; }
.js-motion .cv-rline, .js-motion .cv-idl { transform: scaleX(0); transform-origin: right center; }

/* حرکت خاموش: همۀ حالت‌های اولیه لغو + انیمیشن‌های تازه */
html.motion-off .mobile-panel.open { animation: none; }

/* ==========================================================================
   Reveal animation system
   حالت اولیه فقط با نشان html.js فعال می‌شود — اگر فایل JS لود نشود،
   هیچ سکشنی نامرئی نمی‌ماند (ضد «بههمریختگی ساختار»).
   ========================================================================== */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .9s cubic-bezier(.22, .61, .36, 1);
  transition-delay: var(--rd, 0s);
  will-change: opacity, transform;
}
html.js [data-reveal].in-view { opacity: 1; transform: none; }
[data-delay="1"] { --rd: .08s; }
[data-delay="2"] { --rd: .16s; }
[data-delay="3"] { --rd: .24s; }
[data-delay="4"] { --rd: .32s; }
[data-delay="5"] { --rd: .4s; }
[data-delay="6"] { --rd: .48s; }
[data-delay="7"] { --rd: .56s; }
[data-delay="8"] { --rd: .64s; }
[data-delay="9"] { --rd: .72s; }
[data-delay="10"] { --rd: .8s; }

html.motion-off [data-reveal] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
/* گارد نهایی ضد سرریز افقی در دستگاه‌های واقعی */
html, body { overflow-x: clip; }

/* ==========================================================================
   نوار اقدام موبایل — ناحیه شست
   دکمه اصلی همیشه در دسترس؛ پس از عبور از هیرو ظاهر می‌شود.
   جا برای نوار سیستم (safe-area) رعایت شده است.
   ========================================================================== */
.mobile-cta {
  position: fixed;
  z-index: 1030;
  inset-inline: 0;
  bottom: 0;
  display: none;
  padding: .6rem max(1rem, env(safe-area-inset-left, 0px)) calc(.6rem + env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-right, 0px));
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform .32s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}
html.touch .mobile-cta { display: block; }
html.touch .mobile-cta.show { transform: none; }
html.touch body.panel-open .mobile-cta { transform: translateY(110%); }
.mobile-cta .btn-teymar {
  width: 100%;
  min-height: 48px;
  box-shadow: 0 10px 26px rgba(9, 151, 164, .28);
}
/* فاصله پایانی صفحه: محتوای آخر زیر نوار دفن نشود */
@media (max-width: 767px) {
  html.touch .final { padding-bottom: 5.4rem; }
}
@media (min-width: 992px) {
  .mobile-cta { display: none !important; }
}
html.motion-off .tl-fill {
  width: auto !important;
  height: 100% !important;
  transition: none !important;
}
html.motion-off .tl-marker {
  background: var(--brand) !important;
  border-color: var(--brand) !important;
  transition: none !important;
}
html.motion-off .tl-marker svg { opacity: 1 !important; transform: scale(1) !important; transition: none !important; }
html.motion-off .cv-rows li, html.motion-off .cv-head { opacity: 1 !important; transform: none !important; }
html.motion-off .cv-rline, html.motion-off .cv-idl { transform: none !important; }
html.motion-off .cv-hint svg { animation: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .tl-fill { height: 100% !important; transition: none !important; }
  .tl-marker { background: var(--brand) !important; border-color: var(--brand) !important; transition: none !important; }
  .tl-marker svg { opacity: 1 !important; transform: scale(1) !important; transition: none !important; }
  .cv-rows li, .cv-head { opacity: 1 !important; transform: none !important; }
  .cv-rline, .cv-idl { transform: none !important; }
  .cv-hint svg { animation: none !important; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ── باکس نصب PWA (فاز ۵ — ۲۰۲۶-۱۰-۰۸) ─────────────────────────────── */
.install-box { margin-top: 30px; padding-top: 26px; border-top: 1px solid rgba(11,25,41,.10); text-align: center; }
.install-title { font-size: .95rem; font-weight: 800; color: #0b1929; margin: 0 0 16px; }
.install-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.install-card { display: inline-flex; align-items: center; gap: 10px; min-width: 168px; padding: 13px 18px; border: 1px solid #d6e3e7; border-radius: 14px; background: #fff; color: #0b1929; text-decoration: none; font-weight: 700; font-size: .9rem; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.install-card svg { width: 22px; height: 22px; color: #0997A4; flex: 0 0 auto; }
.install-card:hover, .install-card:focus-visible { border-color: #0997A4; box-shadow: 0 10px 24px rgba(9,151,164,.14); transform: translateY(-1px); }
.install-card.is-current { border-color: #0997A4; box-shadow: 0 0 0 2px rgba(9,151,164,.18); }
.install-note { margin: 16px 0 0; font-size: .8rem; color: #5b6b78; }
