/* ==========================================================================
   assets/sinacare.css
   فایل CSS مشترک همه‌ی صفحه‌های سیناکر که فاطمه خودش می‌سازه.
   بلاگ (sinacare.ir/blog) و فروشگاه (shop.sinacare.ir) از این فایل استفاده
   نمی‌کنن و دست‌نخورده می‌مونن — این فقط برای صفحه‌های جدید Astro هست.
   منبع تصمیم‌ها: design_system.md (v0.7) — قبل از تغییر این فایل اونو بخون.
   ========================================================================== */

/* --------------------------------------------------------------------------
   ۱. فونت‌ها — self-hosted، هیچی از سرویس خارجی لود نمی‌شه
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'IRANYekan';
  src: url('/assets/fonts/iranyekan-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IRANYekan';
  src: url('/assets/fonts/iranyekan-medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IRANYekan';
  src: url('/assets/fonts/iranyekan-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Ubuntu';
  src: url('/assets/fonts/ubuntu-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Ubuntu';
  src: url('/assets/fonts/ubuntu-medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Ubuntu';
  src: url('/assets/fonts/ubuntu-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   ۲. توکن‌ها — همه‌ی رنگ، فاصله و اندازه از این‌جا میاد، عدد قلابی تو کد ننویس
   -------------------------------------------------------------------------- */
:root {
  /* رنگ‌های اصلی برند */
  --c-navy: #052C47;
  --c-blue: #007DC5;
  --c-teal: #00C5AB;
  --c-green: #A4CF57;

  /* رنگ‌های تاکیدی */
  --c-yellow: #FFCB05;
  --c-pink: #ED164F;
  --c-purple: #650081;

  /* زمینه — سفید سرد، نه سفید خالص نه کرم */
  --c-ground: #F4F8FA;
  --c-ink: var(--c-navy);
  --c-white: #FFFFFF;

  /* رنگ هر پارامتر سلامتی — از خود اپ گرفته شده، نه اختراعی.
     یه ست قدیمی‌تر تو برندبوک (site_renovation.md) هست که با این یکی نمی‌خونه —
     این‌جا از ست جدیدتر (design_system.md، «از اپ گرفته شده») استفاده شده.
     جزئیات تناقض تو README-FOR-AGENT.md توضیح داده شده. */
  --c-metric-glucose: #ED164F;      /* قند‌خون */
  --c-metric-pressure: #1C93E8;     /* فشارخون */
  --c-metric-weight: #F26522;       /* وزن و آنالیز بدن */
  --c-metric-medicine: #20C4F4;     /* دارو */
  --c-metric-temperature: #00A88F;  /* دمای بدن */
  --c-metric-lab: #6200EA;          /* آزمایش */

  /* حالت‌ها */
  --c-success: var(--c-green);
  --c-danger: var(--c-pink);   /* فقط برای عدد خارج از محدوده — قرمز رو ارزون خرج نکن */

  /* شعاع گردی — دقیقاً همین سه عدد، جای دیگه استفاده نشه */
  --r-btn: 10px;
  --r-card: 16px;
  --r-pill: 999px;

  /* فونت */
  --f-fa: 'IRANYekan', Tahoma, sans-serif;
  --f-latin: 'Ubuntu', Arial, sans-serif;

  /* گرادیان امضادار برند — مقیاس اندازه‌گیری (آبی ← فیروزه‌ای ← سبز)
     همیشه به‌عنوان خط نازک استفاده می‌شه، هیچ‌وقت به‌عنوان پس‌زمینه‌ی پهن تزئینی */
  --gradient-scale: linear-gradient(to left, var(--c-blue), var(--c-teal), var(--c-green));

  /* فاصله‌ی پایه — مضرب ۴ */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;

  /* عرض محتوا */
  --container-max: 1120px;

  /* مقیاس تایپ — فقط از این‌ها استفاده کن */
  --text-caption: 14px;
  --text-body: 16px;
  --text-lead: 18px;
  --text-h3: 18px;
  --text-h2: 22px;
  --text-h1: clamp(28px, 4vw, 36px);

  /* مرز و سایهٔ سبک — نه چندلایه، نه بنفش درخشان */
  --border-subtle: color-mix(in srgb, var(--c-navy) 12%, transparent);
  --border-field: color-mix(in srgb, var(--c-navy) 20%, white);
  --shadow-soft: 0 12px 32px -16px color-mix(in srgb, var(--c-navy) 22%, transparent);
}

/* --------------------------------------------------------------------------
   ۳. ریست + پایه
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  direction: rtl;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--c-ground);
  color: var(--c-ink);
  font-family: var(--f-fa);
  /* بدنه متن هیچ‌وقت زیر ۱۶px نیست — مخاطب شامل سالمند و دیابتیه */
  font-size: 16px;
  line-height: 1.85; /* بازه‌ی ۱.۸–۱.۹ برای فارسی */
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* کلمات و واحدهای لاتین (mg/dL، mmHg، اسم انگلیسی) با فونت لاتین؛
   ولی همه‌ی اعداد همیشه فارسی و با فونت فارسی می‌مونن — حتی وسط این کلاس */
.latin { font-family: var(--f-latin); }

/* خط ≤ ۶۵ کاراکتر برای پاراگراف‌های اصلی */
.prose { max-width: 65ch; }

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-3);
}

/* لینک خروجی از سایت به بلاگ/فروشگاه (دیزاین متفاوت) — علامت ↗ که بگه عمدیه */
a.outbound::after {
  content: '';
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  margin-inline-start: 0.35em;
  background-color: currentColor;
  opacity: 0.55;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
}
.site-header a.outbound::after,
.site-footer a.outbound::after {
  width: 0.75em;
  height: 0.75em;
  margin-inline-start: 0.25em;
}

/* --------------------------------------------------------------------------
   ۴. خط گرادیان امضادار — رول صفحه، نوار هدر، لبه‌ی بالای بنر CTA
   -------------------------------------------------------------------------- */
.scale-rule {
  height: 3px;
  background: var(--gradient-scale);
  border: none;
  margin: 0;
}

/* --------------------------------------------------------------------------
   ۵. دکمه‌ها — فعل، نه اسم؛ می‌گن با کلیک چه اتفاقی می‌افته
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border-radius: var(--r-btn);
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 500;
  border: 2px solid transparent;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--c-blue);
  color: var(--c-white);
}
.btn-primary:hover { opacity: 0.92; }

.btn-secondary {
  background: transparent;
  border-color: var(--c-blue);
  color: var(--c-blue);
}
.btn-secondary:hover { background: color-mix(in srgb, var(--c-blue) 8%, transparent); }

.btn-ghost {
  background: transparent;
  color: var(--c-navy);
}

/* --------------------------------------------------------------------------
   ۶. نشان وضعیت (status badge) — رنگ فقط وقتی معنی داره
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
}
.badge-normal { background: color-mix(in srgb, var(--c-green) 18%, white); color: #3f6b1a; }
.badge-out-of-range { background: color-mix(in srgb, var(--c-pink) 12%, white); color: var(--c-pink); }
/* عدد خودش معمولاً جوهری/معمولیه؛ فقط وقتی خارج از محدوده‌ست جوهر عوض می‌شه */
.value { color: var(--c-ink); font-weight: 700; }
.value.is-out-of-range { color: var(--c-danger); }

/* --------------------------------------------------------------------------
   ۷. فرم‌ها — خطا می‌گه چی اشتباهه و چطور درستش کنی
   -------------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: var(--space-1); margin-bottom: 0; }
.field label,
.radio-field legend {
  font-size: var(--text-body);
  font-weight: 500;
  color: var(--c-navy);
}
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: var(--text-body);
  line-height: 1.5;
  padding: 12px 16px;
  border-radius: var(--r-btn);
  border: 1.5px solid var(--border-field);
  background: var(--c-white);
  color: var(--c-ink);
  min-height: 48px; /* لمس آسان برای سالمند */
  width: 100%;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23052C47' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
  padding-inline-end: 16px;
  padding-inline-start: 40px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--c-blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-blue) 18%, transparent);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--c-pink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-pink) 14%, transparent);
}
.field-error { color: var(--c-pink); font-size: var(--text-caption); margin-top: 2px; }
.req { color: var(--c-pink); font-weight: 700; }

.form-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
  margin-bottom: var(--space-3);
}
@media (min-width: 768px) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.radio-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.radio-field legend { margin-bottom: var(--space-2); padding: 0; }

/* انتخاب‌گر چیپی — به‌جای رادیوی خام مرورگر */
.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}
.choice {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 8px 16px;
  border-radius: var(--r-btn);
  border: 1.5px solid var(--border-field);
  background: var(--c-white);
  font-size: var(--text-body);
  font-weight: 500;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.choice input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.choice:has(input:checked) {
  border-color: var(--c-blue);
  background: color-mix(in srgb, var(--c-blue) 8%, white);
  color: var(--c-blue);
}
.choice:has(input:focus-visible) {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-blue) 18%, transparent);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-weight: 400;
  cursor: pointer;
  line-height: 1.7;
}
.checkbox-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 4px;
  flex-shrink: 0;
  accent-color: var(--c-blue);
}
.checkbox-row a {
  color: var(--c-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* قاب فرم — خط گرادیان امضادار روی لبهٔ بالا */
.form-panel {
  position: relative;
  background: var(--c-white);
  border-radius: var(--r-card);
  border: 1.5px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  padding: var(--space-4);
  overflow: hidden;
}
.form-panel::before {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  background: var(--gradient-scale);
}
@media (min-width: 768px) {
  .form-panel { padding: var(--space-5); }
}
.warranty-form .btn {
  margin-top: var(--space-3);
  min-width: 220px;
  min-height: 52px;
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* --------------------------------------------------------------------------
   ۸. مسیر (numbered flow) — جایگزین کارت‌آیکونی برای «سه قدم / نحوه‌ی کار»
   -------------------------------------------------------------------------- */
.flow {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  list-style: none;
  margin: 0;
  padding: 0;
}
.flow::before {
  content: '';
  position: absolute;
  inset-inline-start: 19px;
  top: 8px; bottom: 8px;
  width: 2px;
  background: var(--gradient-scale);
}
.flow-step { position: relative; padding-inline-start: 56px; }
.flow-step-number {
  position: absolute;
  inset-inline-start: 0; top: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--c-white);
  border: 2px solid var(--c-blue);
  color: var(--c-blue);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   ۹. قاب اپ (device frame) — عکس واقعی صفحه‌ی اپ تو قاب گوشی
   نسبت درست‌شده: ۹/۱۹.۵، نه ۹/۱۷ (باگ قبلی که پایین اسکرین‌شات رو می‌برید)
   استثنا: هیچ خط گرادیانی روی این قاب نمی‌ره — تصمیم صریح فاطمه
   -------------------------------------------------------------------------- */
.dev {
  aspect-ratio: 9 / 19.5;
  border-radius: 32px;
  overflow: hidden;
  background: var(--c-navy);
  box-shadow: 0 20px 40px -12px color-mix(in srgb, var(--c-navy) 30%, transparent);
  max-width: 260px;
}
.dev img { width: 100%; height: 100%; object-fit: cover; }

/* قفسه‌ی سه گوشی — برای هیرو */
.dev-shelf {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: -20px;
}
.dev-shelf .dev:nth-child(2) { transform: translateY(-24px) scale(1.08); z-index: 1; }
.dev-shelf .dev:nth-child(1) { transform: rotate(-6deg) translateX(20px); opacity: 0.9; }
.dev-shelf .dev:nth-child(3) { transform: rotate(6deg) translateX(-20px); opacity: 0.9; }

/* --------------------------------------------------------------------------
   ۱۰. فهرست ویژگی (spec list) — تایپوگرافیک، بدون آیکون‌کارت
   -------------------------------------------------------------------------- */
.spec-list { list-style: none; margin: 0; padding: 0; }
.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid color-mix(in srgb, var(--c-navy) 12%, transparent);
}
.spec-list li:first-child { border-top: 1px solid color-mix(in srgb, var(--c-navy) 12%, transparent); }
.spec-list dt { font-weight: 500; color: color-mix(in srgb, var(--c-navy) 70%, transparent); }
.spec-list dd { margin: 0; font-weight: 700; }

/* --------------------------------------------------------------------------
   ۱۱. هدر و فوتر
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--c-white);
  border-bottom: 1px solid var(--border-subtle);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4);
  min-height: 76px;
}
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  font-size: var(--text-lead);
  color: var(--c-navy);
  flex-shrink: 0;
}
.site-logo img {
  width: auto;
  height: 60px;
}
.site-header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-2) var(--space-4);
  font-weight: 500;
}
.site-header nav a {
  color: color-mix(in srgb, var(--c-navy) 78%, transparent);
  padding-block: var(--space-1);
}
.site-header nav a:hover {
  color: var(--c-blue);
}

.nav-dropdown {
  position: relative;
}
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding-block: var(--space-1);
  color: color-mix(in srgb, var(--c-navy) 78%, transparent);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}
.nav-dropdown-trigger::-webkit-details-marker {
  display: none;
}
.nav-dropdown-trigger::marker {
  content: '';
}
.nav-dropdown-trigger:hover,
.nav-dropdown[open] .nav-dropdown-trigger {
  color: var(--c-blue);
}
.nav-dropdown-chevron {
  width: 0;
  height: 0;
  border-inline: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.15s ease;
}
.nav-dropdown[open] .nav-dropdown-chevron {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  z-index: 60;
  min-width: 180px;
  margin: 0;
  padding: var(--space-2);
  list-style: none;
  background: var(--c-white);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  box-shadow: 0 12px 32px color-mix(in srgb, var(--c-navy) 12%, transparent);
  display: grid;
  gap: 2px;
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--c-navy);
  white-space: nowrap;
}
.nav-dropdown-menu a:hover {
  background: color-mix(in srgb, var(--c-blue) 8%, transparent);
  color: var(--c-blue);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: var(--c-white);
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--c-navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.site-header.is-nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-header.is-nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.site-header.is-nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
body.nav-lock {
  overflow: hidden;
}

@media (max-width: 767px) {
  .site-logo img {
    height: 52px;
  }
  .nav-toggle {
    display: inline-flex;
    margin-inline-start: auto;
  }
  .site-header .container {
    flex-wrap: wrap;
    position: relative;
  }
  .site-header nav.site-nav {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    z-index: 70;
    max-height: min(80vh, 560px);
    overflow: auto;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 4px;
    padding: var(--space-3);
    background: var(--c-white);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 16px 40px color-mix(in srgb, var(--c-navy) 14%, transparent);
  }
  .site-header.is-nav-open nav.site-nav {
    display: flex;
  }
  .site-header nav.site-nav > a,
  .site-header nav.site-nav .nav-dropdown-trigger {
    display: flex;
    width: 100%;
    padding: 12px 10px;
    border-radius: 10px;
  }
  .nav-dropdown-menu {
    position: static;
    inset: auto;
    min-width: 0;
    margin-top: 4px;
    box-shadow: none;
    border-radius: 10px;
  }
}

.site-footer {
  background: var(--c-navy);
  color: var(--c-white);
  padding-block: var(--space-6);
}
.site-footer a { opacity: 0.85; }
.site-footer a:hover { opacity: 1; }
.footer-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.footer-heading {
  margin: 0 0 var(--space-3);
  font-size: var(--text-body);
  font-weight: 700;
}
.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: var(--text-body);
}
.footer-list--cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--space-5);
  row-gap: var(--space-2);
}
.footer-copy {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid color-mix(in srgb, white 18%, transparent);
  opacity: 0.85;
  font-size: var(--text-caption);
}
.footer-copy p { margin: 0; }

/* --------------------------------------------------------------------------
   ۱۲. بنر CTA — لبه‌ی بالاش همون خط گرادیان امضادار
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  background: var(--c-navy);
  color: var(--c-white);
  border-radius: var(--r-card);
  padding: var(--space-6) var(--space-4);
  text-align: center;
}
.cta-band::before {
  content: '';
  position: absolute; inset-inline: 0; top: 0;
  height: 4px;
  border-radius: var(--r-card) var(--r-card) 0 0;
  background: var(--gradient-scale);
}

/* --------------------------------------------------------------------------
   ۱۳. آکاردئون سوالات متداول
   -------------------------------------------------------------------------- */
.faq-item { border-bottom: 1px solid color-mix(in srgb, var(--c-navy) 12%, transparent); }
.faq-question {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-3) 0;
  background: none; border: none;
  font-size: 16px; font-weight: 500;
  text-align: start;
}
.faq-answer { padding-bottom: var(--space-3); color: color-mix(in srgb, var(--c-navy) 80%, transparent); }

/* --------------------------------------------------------------------------
   ۱۴. نوار دانلود چسبان موبایل
   -------------------------------------------------------------------------- */
.sticky-download-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 60;
  background: var(--c-white);
  border-top: 1px solid color-mix(in srgb, var(--c-navy) 10%, transparent);
  padding: var(--space-2) var(--space-3);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
}
@media (min-width: 768px) { .sticky-download-bar { display: none; } }

/* --------------------------------------------------------------------------
   ۱۵. پلن‌های قیمت‌گذاری (B2B) — پلن وسط برجسته، دکمه‌ی «تماس بگیرید» واضح
   -------------------------------------------------------------------------- */
.pricing-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.pricing-card {
  background: var(--c-white);
  border-radius: var(--r-card);
  padding: var(--space-4);
  border: 1.5px solid color-mix(in srgb, var(--c-navy) 10%, transparent);
}
.pricing-card.is-featured {
  border-color: var(--c-blue);
  box-shadow: 0 12px 32px -12px color-mix(in srgb, var(--c-blue) 30%, transparent);
}

/* --------------------------------------------------------------------------
   ۱۶. نوار اعتماد (لوگوی مشتری/تاییدیه) — فقط با اجازه‌ی صریح
   -------------------------------------------------------------------------- */
.trust-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5); opacity: 0.85; }
.trust-bar img { max-height: 40px; width: auto; filter: grayscale(1); }

/* --------------------------------------------------------------------------
   ۱۷. الگوی صفحه محتوایی — هیرو، بردکرامب، عنوان بخش، یادداشت
   -------------------------------------------------------------------------- */
.page-hero {
  padding-block: var(--space-5) var(--space-4);
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-caption);
  margin-bottom: var(--space-3);
  color: color-mix(in srgb, var(--c-navy) 62%, transparent);
}
.breadcrumbs a { display: inline-block; padding-block: 0.5rem; }
.breadcrumbs a:hover { color: var(--c-blue); }
.page-title {
  margin: 0 0 var(--space-2);
  color: var(--c-navy);
  font-size: var(--text-h1);
  font-weight: 700;
  line-height: 1.35;
}
.page-title.is-accent { color: var(--c-blue); }
.lead {
  margin: 0 0 var(--space-4);
  font-size: var(--text-lead);
  font-weight: 500;
  color: var(--c-navy);
}
.section-block {
  padding-block: var(--space-4) var(--space-6);
}
.section-title {
  margin: 0 0 var(--space-2);
  font-size: var(--text-h2);
  font-weight: 700;
  color: var(--c-navy);
  line-height: 1.45;
}
.section-intro {
  margin: 0 0 var(--space-5);
  max-width: 65ch;
  color: color-mix(in srgb, var(--c-navy) 82%, transparent);
}
.method-title {
  margin: 0 0 var(--space-1);
  font-size: var(--text-h3);
  font-weight: 700;
  color: var(--c-navy);
}
.flow-step p {
  margin: 0;
  color: color-mix(in srgb, var(--c-navy) 85%, transparent);
}
.code-chip {
  margin-top: var(--space-2);
  padding: 10px 14px;
  background: var(--c-white);
  border-radius: var(--r-btn);
  border: 1.5px solid var(--border-subtle);
  font-family: var(--f-fa);
  font-weight: 700;
  font-size: var(--text-body);
  line-height: 1.7;
  display: inline-block;
  color: var(--c-navy);
  direction: rtl;
  unicode-bidi: isolate;
}
/* # داخل قالب پیامک — IRANYekan گلیف # ندارد؛ عمداً Ubuntu */
.code-chip .latin {
  font-family: var(--f-latin);
  font-weight: 700;
}
.note {
  margin-top: var(--space-5);
  padding: var(--space-3) var(--space-4);
  background: var(--c-white);
  border-radius: var(--r-card);
  border: 1.5px solid var(--border-subtle);
  border-inline-start: 3px solid var(--c-teal);
  max-width: 65ch;
  color: color-mix(in srgb, var(--c-navy) 88%, transparent);
}
.form-band {
  padding-block: var(--space-5) var(--space-7);
}
.prose p { margin: 0 0 var(--space-3); }
.prose p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   ۱۷‑آ. صفحه‌ی گارانتی — هیرو متنی، بدون تصویر محصول
   -------------------------------------------------------------------------- */
.club-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: var(--space-5) var(--space-6);
  background:
    radial-gradient(110% 85% at 0% 10%, color-mix(in srgb, var(--c-teal) 14%, transparent), transparent 52%),
    radial-gradient(95% 80% at 100% 0%, color-mix(in srgb, var(--c-blue) 16%, transparent), transparent 55%),
    linear-gradient(165deg, #EAF4FA 0%, var(--c-ground) 46%, #EEF7F4 100%);
}
.club-stage__wash {
  pointer-events: none;
  position: absolute;
  inset: auto auto -36% -10%;
  width: min(420px, 52vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 45% 40%, color-mix(in srgb, var(--c-blue) 20%, transparent), transparent 62%),
    radial-gradient(circle at 65% 70%, color-mix(in srgb, var(--c-green) 14%, transparent), transparent 55%);
  filter: blur(10px);
  z-index: 0;
  opacity: 0.9;
}
.club-stage__copy {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}
.club-stage__title {
  color: var(--c-navy);
  font-size: clamp(30px, 4.6vw, 42px);
  margin-bottom: var(--space-3);
}
.club-stage__lead {
  margin-bottom: var(--space-3);
  max-width: 28ch;
}
.club-stage__support {
  margin: 0 0 var(--space-5);
  max-width: 48ch;
  color: color-mix(in srgb, var(--c-navy) 82%, transparent);
}
.club-stage__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.club-notes {
  padding-block: var(--space-4) var(--space-2);
}
.club-notes__prose {
  max-width: 62ch;
  color: color-mix(in srgb, var(--c-navy) 84%, transparent);
}

@media (max-width: 480px) {
  .club-stage__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .club-stage__actions .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   ۱۷‑ب. صفحه‌ی تماس — صحنهٔ تمام‌عرض، شماره لنگر بصری، بدون کارت سفید
   -------------------------------------------------------------------------- */
.contact-page {
  padding-bottom: 0;
}

.contact-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: var(--space-5) var(--space-7);
  display: flex;
  align-items: center;
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--c-blue) 18%, transparent), transparent 55%),
    radial-gradient(90% 70% at 0% 100%, color-mix(in srgb, var(--c-teal) 14%, transparent), transparent 50%),
    linear-gradient(165deg, #EAF4FA 0%, var(--c-ground) 48%, #EEF7F4 100%);
}
@media (min-width: 900px) {
  .contact-stage {
    min-height: clamp(520px, calc(100svh - 72px), 720px);
  }
}
.contact-stage__wash {
  pointer-events: none;
  position: absolute;
  inset: auto -12% -28% auto;
  width: min(520px, 58vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 40%, color-mix(in srgb, var(--c-blue) 22%, transparent), transparent 62%),
    radial-gradient(circle at 70% 65%, color-mix(in srgb, var(--c-green) 18%, transparent), transparent 55%);
  filter: blur(8px);
  z-index: 0;
  opacity: 0.9;
}
.contact-stage__grid {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  gap: var(--space-6);
  align-items: center;
}
@media (min-width: 900px) {
  .contact-stage__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
    gap: var(--space-7);
  }
}
.contact-stage__copy {
  max-width: 36rem;
}
.contact-stage__copy .lead {
  margin-bottom: var(--space-4);
  max-width: 42ch;
  color: color-mix(in srgb, var(--c-navy) 88%, transparent);
}
.contact-stage__copy .page-title {
  color: var(--c-navy);
  font-size: clamp(32px, 5vw, 44px);
  margin-bottom: var(--space-3);
}

.contact-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0 0 var(--space-4);
  color: var(--c-navy);
}
.contact-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--c-blue) 55%, transparent);
}
.contact-brand span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.25;
}
.contact-brand strong {
  font-size: 18px;
  font-weight: 700;
}
.contact-brand__sub {
  font-size: 13px;
  font-weight: 500;
  color: color-mix(in srgb, var(--c-navy) 62%, transparent);
}
@media (max-width: 480px) {
  .contact-brand__sub { display: none; }
  .contact-phone__number { font-size: clamp(34px, 11vw, 44px); }
  .contact-stage { padding-block: var(--space-4) var(--space-5); }
  .contact-dial { width: min(200px, 58vw); margin-bottom: var(--space-3); }
  .contact-actions { flex-direction: column; align-items: stretch; }
  .contact-actions .btn { width: 100%; }
}

.contact-phone {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  padding: var(--space-3) 0;
  border: none;
  background: transparent;
  transition: opacity .2s ease, transform .2s ease;
  cursor: pointer;
}
.contact-phone:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}
.contact-phone:focus-visible {
  outline: 3px solid var(--c-blue);
  outline-offset: 6px;
  border-radius: var(--r-btn);
}
.contact-phone__label {
  font-size: var(--text-caption);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: color-mix(in srgb, var(--c-navy) 58%, transparent);
}
.contact-phone__number {
  font-size: clamp(40px, 6.5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--c-navy);
  letter-spacing: 0.01em;
}
.contact-phone__rule {
  width: 88px;
  margin-top: var(--space-2);
  border-radius: var(--r-pill);
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.contact-actions .btn {
  min-height: 48px;
  cursor: pointer;
}
.contact-btn-icon {
  display: inline-flex;
  color: currentColor;
  line-height: 0;
}

.contact-stage__aside {
  justify-self: center;
  text-align: center;
  max-width: 280px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, opacity .2s ease;
}
.contact-stage__aside:hover { transform: translateY(-2px); }
.contact-stage__aside:focus-visible {
  outline: 3px solid var(--c-blue);
  outline-offset: 8px;
  border-radius: var(--r-card);
}
.contact-dial {
  position: relative;
  width: min(260px, 70vw);
  aspect-ratio: 1;
  margin-inline: auto;
  margin-bottom: var(--space-4);
}
.contact-dial__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--c-blue) 18%, transparent);
}
.contact-dial__ring--outer {
  background:
    radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c-white) 70%, transparent), transparent 45%),
    color-mix(in srgb, var(--c-white) 55%, transparent);
  box-shadow: var(--shadow-soft);
}
.contact-dial__ring--mid {
  inset: 14%;
  border-color: color-mix(in srgb, var(--c-teal) 28%, transparent);
  background: color-mix(in srgb, var(--c-white) 35%, transparent);
}
.contact-dial__ring--inner {
  inset: 28%;
  border-color: color-mix(in srgb, var(--c-blue) 35%, transparent);
  background: color-mix(in srgb, var(--c-blue) 6%, var(--c-white));
}
.contact-dial__core {
  position: absolute;
  inset: 38%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--c-blue);
  color: var(--c-white);
  box-shadow: 0 14px 28px -12px color-mix(in srgb, var(--c-blue) 65%, transparent);
  animation: contact-dial-pulse 2.8s ease-in-out infinite;
}
.contact-dial__icon {
  display: inline-flex;
  line-height: 0;
  transform: scale(1.15);
}
.contact-dial__caption {
  margin: 0 0 var(--space-1);
  font-size: var(--text-h3);
  font-weight: 700;
  color: var(--c-navy);
}
.contact-dial__note {
  margin: 0;
  font-size: var(--text-caption);
  color: color-mix(in srgb, var(--c-navy) 62%, transparent);
}

.contact-channels-band {
  padding-block: var(--space-6) var(--space-7);
  background: var(--c-white);
  border-top: 1px solid var(--border-subtle);
}
.contact-channels-band__head {
  margin-bottom: var(--space-5);
  max-width: 40rem;
}
.contact-channels-band__rule {
  width: 72px;
  margin-top: var(--space-3);
  border-radius: var(--r-pill);
}
.contact-channel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 720px) {
  .contact-channel-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-5);
  }
}
.contact-channel-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: var(--space-3);
  align-items: start;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--border-subtle);
  border-radius: 1.25rem;
  background: color-mix(in srgb, var(--c-ground) 55%, var(--c-white));
}
.contact-channel-item__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--c-blue);
  background: color-mix(in srgb, var(--c-blue) 10%, var(--c-ground));
  line-height: 0;
}
.contact-channel-item__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 0;
}
.contact-channel-item__label {
  font-size: var(--text-caption);
  font-weight: 500;
  color: color-mix(in srgb, var(--c-navy) 58%, transparent);
}
.contact-channel-item__value {
  font-size: var(--text-lead);
  font-weight: 500;
  color: var(--c-navy);
  line-height: 1.7;
}
a.contact-channel-item__value {
  transition: color .15s ease;
  cursor: pointer;
}
a.contact-channel-item__value:hover { color: var(--c-blue); }
.contact-channel-item__extra {
  margin-top: var(--space-1);
  font-size: var(--text-caption);
  font-weight: 500;
  color: var(--c-blue);
  width: fit-content;
  border-bottom: 1px solid color-mix(in srgb, var(--c-blue) 35%, transparent);
  transition: color .15s ease, border-color .15s ease;
  cursor: pointer;
}
.contact-channel-item__extra:hover {
  color: var(--c-navy);
  border-color: color-mix(in srgb, var(--c-navy) 35%, transparent);
}
.contact-channel-item__extra:focus-visible,
a.contact-channel-item__value:focus-visible {
  outline: 3px solid var(--c-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ورود نرم — فقط برای صفحه‌ی تماس؛ با prefers-reduced-motion خاموش */
.contact-reveal {
  animation: contact-rise .55s ease both;
  animation-delay: var(--reveal-delay, 0ms);
}
@keyframes contact-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes contact-dial-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
  .contact-reveal { animation: none; }
  .contact-dial__core { animation: none; }
  .contact-phone { transition: none; }
  .contact-phone:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   ۱۸. هیرو اپ — متن + شلف گوشی + بج فروشگاه + آمار (صفحه‌ی /sinacare-app/)
   -------------------------------------------------------------------------- */
.hero-app {
  padding-block: var(--space-6) var(--space-7);
}
.hero-app__grid {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}
@media (min-width: 960px) {
  .hero-app__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--space-7);
  }
}
.hero-app__visual {
  display: flex;
  justify-content: center;
}
.hero-app .dev-shelf {
  width: 100%;
  max-width: 420px;
}
.hero-app .dev {
  max-width: 170px;
  width: 34%;
}
.hero-app .dev-shelf .dev:nth-child(2) {
  max-width: 200px;
  width: 38%;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}
.store-badge {
  display: block;
  border-radius: var(--r-btn);
  overflow: hidden;
  transition: opacity .15s ease;
}
.store-badge:hover { opacity: 0.92; }
.store-badge img {
  width: 150px;
  height: auto;
  display: block;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}
@media (min-width: 640px) {
  .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.stat {
  background: var(--c-white);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--r-card);
  padding: var(--space-3);
}
.stat strong {
  display: block;
  font-size: var(--text-h2);
  color: var(--c-navy);
  margin-bottom: var(--space-1);
  line-height: 1.3;
}
.stat span {
  font-size: var(--text-caption);
  color: color-mix(in srgb, var(--c-navy) 70%, transparent);
}

/* فهرست ویژگی تایپوگرافیک — بدون آیکون‌کارت */
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.feature-list li {
  padding: var(--space-3) 0;
  border-bottom: 1px solid color-mix(in srgb, var(--c-navy) 12%, transparent);
}
.feature-list li:first-child {
  border-top: 1px solid color-mix(in srgb, var(--c-navy) 12%, transparent);
}
.feature-list strong {
  display: block;
  margin-bottom: var(--space-1);
  font-size: var(--text-h3);
  color: var(--c-navy);
}
.feature-list p {
  margin: 0;
  max-width: 65ch;
  color: color-mix(in srgb, var(--c-navy) 85%, transparent);
}

/* متن کنار قاب اپ */
.media-split {
  display: grid;
  gap: var(--space-5);
  align-items: center;
}
@media (min-width: 900px) {
  .media-split {
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-6);
  }
}
.media-split .dev {
  margin-inline: auto;
}

.cta-band h2 {
  margin: 0 0 var(--space-2);
  font-size: var(--text-h2);
  font-weight: 700;
  color: var(--c-white);
}
.cta-band p {
  margin: 0 0 var(--space-4);
  color: color-mix(in srgb, white 88%, transparent);
}
.cta-band .badge-row {
  justify-content: center;
  margin-bottom: 0;
}

/* FAQ با details/summary */
.faq-list { margin: 0; }
details.faq-item > summary.faq-question {
  cursor: pointer;
  list-style: none;
  font-family: inherit;
  color: var(--c-navy);
}
details.faq-item > summary.faq-question::-webkit-details-marker { display: none; }
details.faq-item > summary.faq-question::after {
  content: '+';
  font-weight: 700;
  color: var(--c-blue);
  margin-inline-start: var(--space-3);
}
details.faq-item[open] > summary.faq-question::after { content: '−'; }
.faq-answer p { margin: 0; max-width: 65ch; }

.sticky-download-bar .btn {
  width: 100%;
  min-height: 48px;
}

.has-sticky-bar {
  padding-bottom: 72px;
}
@media (min-width: 768px) {
  .has-sticky-bar { padding-bottom: 0; }
}

/* --------------------------------------------------------------------------
   الگوی ممنوع — این‌جا فقط برای یادآوری، هیچ کلاسی براش تعریف نکن:
   «آیکون‌کارت» (کارت مربعی با آیکون بزرگ رنگی وسط + عنوان کوتاه زیرش) رد شده،
   فاطمه گفته «خیلی مشخصه AI عه». به‌جاش: .flow / .dev / .spec-list بالا.
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   همه‌ی متن‌ها justify (دسکتاپ و موبایل)
   - هر متنی داخل main و footer از دو طرف تراز می‌شود (پاراگراف، تیتر، لیست، لینک و ...).
   - خط آخرِ بلاک‌های وسط‌چین همچنان وسط می‌ماند (text-align-last روی خودِ بلاک؛
     بچه‌ها ارث می‌برند)، تا تیترها و توضیح‌های تک‌خطیِ وسط‌چین جابه‌جا نشوند.
     خط آخرِ start/end هم همان‌جا می‌ماند.
   - هر المانی با کلاس .no-justify، فرم‌ها (form) و بنرهای صفحه‌ی اصلی (.home-promo-banner)، تیترها (h1-h6)، دکمه‌ها، فیلدهای فرم، هدر جدول و آیکون‌های SVG مستثنی‌اند.
   - اگر جایی با style="text-align:..." مستقیم تنظیم شده باشد، همان اولویت دارد.
   -------------------------------------------------------------------------- */
:where(main, footer) :where(*):not(
button,
button *,
input,
select,
textarea,
option,
th,
h1,
h2,
h3,
h4,
h5,
h6,
:where(h1, h2, h3, h4, h5, h6) *,
svg,
svg *,
[role="button"],
[role="button"] *,
.home-final-cta__stores *,
.home-promo-banner,
.home-promo-banner *,
form,
form *,
.no-justify,
.no-justify *
) {
  text-align: justify;
  text-justify: inter-word;
}
:where(main, footer) :is(
.text-center,
.home-header,
.cta-band,
.contact-stage__aside,
[style*="text-align: center"],
[style*="text-align:center"]
) {
  text-align-last: center;
}
:where(main, footer) :is(
.text-start,
.text-left,
[style*="text-align: start"],
[style*="text-align:start"],
[style*="text-align: left"],
[style*="text-align:left"]
) {
  text-align-last: start;
}
:where(main, footer) :is(
.text-end,
.text-right,
[style*="text-align: end"],
[style*="text-align:end"],
[style*="text-align: right"],
[style*="text-align:right"]
) {
  text-align-last: end;
}
@media (min-width: 640px) {
  :where(main, footer) .sm\:text-center {
    text-align-last: center;
  }
  :where(main, footer) .sm\:text-start {
    text-align-last: start;
  }
}
@media (min-width: 1024px) {
  :where(main, footer) .lg\:text-center {
    text-align-last: center;
  }
}

/* تیترها (h1-h6) justify نمی‌شوند: همان تراز بلاک اطرافشان (وسط‌چین/start/end) را دارند */
:where(main, footer) :where(h1, h2, h3, h4, h5, h6) {
  text-align: start;
}
:where(main, footer) :is(
.text-center,
.home-header,
.cta-band,
.contact-stage__aside,
.home-title,
[style*="text-align: center"],
[style*="text-align:center"]
):where(h1, h2, h3, h4, h5, h6),
:where(main, footer) :is(
.text-center,
.home-header,
.cta-band,
.contact-stage__aside,
[style*="text-align: center"],
[style*="text-align:center"]
) :where(h1, h2, h3, h4, h5, h6) {
  text-align: center;
}
:where(main, footer) :is(.text-start, .text-left):where(h1, h2, h3, h4, h5, h6),
:where(main, footer) :is(.text-start, .text-left) :where(h1, h2, h3, h4, h5, h6) {
  text-align: start;
}
:where(main, footer) :is(.text-end, .text-right):where(h1, h2, h3, h4, h5, h6),
:where(main, footer) :is(.text-end, .text-right) :where(h1, h2, h3, h4, h5, h6) {
  text-align: end;
}
@media (min-width: 640px) {
  :where(main, footer) .sm\:text-center:where(h1, h2, h3, h4, h5, h6),
  :where(main, footer) .sm\:text-center :where(h1, h2, h3, h4, h5, h6) {
    text-align: center;
  }
  :where(main, footer) .sm\:text-start:where(h1, h2, h3, h4, h5, h6),
  :where(main, footer) .sm\:text-start :where(h1, h2, h3, h4, h5, h6) {
    text-align: start;
  }
}
@media (min-width: 1024px) {
  :where(main, footer) .lg\:text-center:where(h1, h2, h3, h4, h5, h6),
  :where(main, footer) .lg\:text-center :where(h1, h2, h3, h4, h5, h6) {
    text-align: center;
  }
}

/* بنرهای صفحه‌ی اصلی justify نمی‌شوند */
:where(main) .home-promo-banner {
  text-align: start;
  text-align-last: auto;
}

/* متن داخل فرم‌ها و .no-justify justify نمی‌شود (کلاس‌های text-center/text-end خودشان همچنان کار می‌کنند) */
:where(main, footer) :is(form, .no-justify) {
  text-align: start;
  text-align-last: auto;
}

/* --- فرم تماس: چرخنده‌ی دکمه و پیام موفقیت ------------------------------ */
.btn-spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-inline-end: 0.5em;
  vertical-align: -0.12em;
  border: 2px solid currentColor;
  border-inline-end-color: transparent;
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }
.form-panel--success { text-align: center; }
.form-panel--success h3:focus { outline: none; }
.form-success-icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto var(--space-3);
  border-radius: 50%;
  color: var(--c-teal);
  background: color-mix(in srgb, var(--c-teal) 14%, transparent);
  animation: form-success-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes form-success-pop {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .btn-spinner { animation-duration: 1.6s; }
  .form-success-icon { animation: none; }
}

/* موبایل: لینک‌های فوتر ارتفاع لمسی کافی داشته باشند (هم‌راستا با sinacare-chrome.css) */
@media (max-width: 767px) {
  .footer-list { gap: 0; }
  .footer-list--cols { row-gap: 0; }
  .footer-list a,
  .footer-compact-nav a,
  .footer-copy a {
    display: inline-block;
    padding-block: 0.6rem;
  }
}
