/* ===== دانلود اپلیکیشن (طرح «Download») =====
   روی home.css سوار است (رنگ‌ها، هدر، فوتر)؛ فقط بخش‌های خاص این صفحه اینجاست.
   نسخه و حجم APK (۱.۵.۱، ۶۸ مگابایت) در download.html چند جا تکرار شده؛ با انتشار نسخه‌ی تازه همه را عوض کنید. */

.blob1 { top: -260px; right: -160px; height: 640px; width: 640px; background: radial-gradient(closest-side, rgba(48,111,87,.14), rgba(48,111,87,0)); }
.blob2 { top: 40px; left: -220px; height: 560px; width: 560px; background: radial-gradient(closest-side, rgba(0,167,157,.09), rgba(0,167,157,0)); }
/* دکمه‌های مخصوص آیفون/اندروید/رایانه با hidden جابه‌جا می‌شوند؛ display خود دکمه نباید بر آن غلبه کند. */
.only-ios[hidden], .not-ios[hidden], .only-desk[hidden] { display: none !important; }

/* ---------- هیرو ---------- */
.dhero { position: relative; margin: 0 auto; max-width: 1200px; padding: 56px 24px 88px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.dh-text { display: flex; flex-direction: column; align-items: flex-start; text-align: right; }
.dh-text h1 { margin: 0; font-size: clamp(32px, 4.6vw, 54px); font-weight: 900; line-height: 1.3; letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.dh-text > p { margin: 18px 0 0; max-width: 34rem; font-size: clamp(15.5px, 1.5vw, 17px); line-height: 2.05; color: var(--muted); text-wrap: pretty; }
.dh-cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.dl-main, .dl-alt { display: inline-flex; align-items: center; gap: 12px; border-radius: 16px; padding-block: 13px; }
.dl-main { border: 1px solid transparent; background: var(--grad); padding-inline: 20px 22px; color: #ffffff; box-shadow: 0 16px 32px -16px rgba(39,88,63,.75); }
.dl-main:hover { color: #ffffff; filter: brightness(1.06); }
.dl-alt { border: 1px solid #cfe0d6; background: #ffffff; padding-inline: 20px; color: var(--gd); }
.dl-alt:hover { background: #f2f6f3; color: var(--gd); }
.dl-main > span, .dl-alt > span { display: flex; flex-direction: column; text-align: right; }
.dh-cta b { font-size: 16px; font-weight: 800; line-height: 1.4; }
.dh-cta small { font-size: 12px; font-weight: 500; opacity: .8; }
.dh-web { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--gd); }
.dh-web:hover { color: #1f4a35; }
.dh-facts { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 20px; }
.dh-facts > span { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--sub); }
.dh-facts i { display: grid; height: 26px; width: 26px; place-items: center; border-radius: 8px; background: var(--mint2); color: var(--g); }

/* گوشی با دو نما */
.dh-phone { position: relative; display: flex; flex-direction: column; align-items: center; }
.roles { position: relative; z-index: 2; display: flex; gap: 3px; border-radius: 14px; background: #e6efe9; padding: 4px; }
.roles button { border: none; border-radius: 11px; cursor: pointer; padding: 8px 18px; font-size: 14px; font-weight: 700; background: transparent; color: var(--soft); transition: all .2s; }
.roles button[aria-pressed="true"] { background: #ffffff; color: var(--gd); box-shadow: 0 1px 2px rgba(16,40,32,.08), 0 6px 14px -8px rgba(16,40,32,.2); }
.ph-wrap { position: relative; margin-top: 22px; width: 290px; }
.ph-glow { pointer-events: none; position: absolute; inset: 14% -18% 4%; border-radius: 999px; background: radial-gradient(closest-side, rgba(47,111,176,.32), rgba(47,111,176,0)); filter: blur(46px); transition: background .4s; }
.ph-wrap[data-role="client"] .ph-glow { background: radial-gradient(closest-side, rgba(48,111,87,.35), rgba(48,111,87,0)); }
.ph-wrap img { display: block; width: 100%; height: auto; filter: drop-shadow(0 40px 50px rgba(16,40,32,.28)); position: absolute; inset: 0; opacity: 0; transform: translateY(10px) scale(.98); pointer-events: none; transition: opacity .25s, transform .25s; }
.ph-wrap[data-role="lawyer"] .ph-lawyer, .ph-wrap[data-role="client"] .ph-client { position: relative; opacity: 1; transform: none; pointer-events: auto; transition: opacity .35s, transform .35s; }
.ph-note { margin: 18px 0 0; max-width: 22rem; text-align: center; font-size: 13.5px; line-height: 1.9; color: var(--soft); }

/* ---------- بخش‌ها ---------- */
.dsec { position: relative; background: #ffffff; border-top: 1px solid var(--line2); }
.dsec-mint { background: var(--mint); }
.dsec-in { margin: 0 auto; max-width: 1200px; padding: 96px 24px 104px; }
.dsec-head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.dsec-head h2 { margin: 14px 0 0; font-size: clamp(24px, 3.4vw, 40px); font-weight: 900; line-height: 1.45; letter-spacing: -.015em; color: var(--ink); text-wrap: balance; }
.dsec-head p { margin: 14px 0 0; max-width: 38rem; font-size: 16px; line-height: 1.95; color: var(--muted); text-wrap: balance; }

/* روش‌های نصب */
.ways { margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.way { position: relative; display: flex; flex-direction: column; border-radius: 24px; border: 1px solid #c3dacd; background: #f0f6f2; padding: 26px; box-shadow: 0 1px 2px rgba(16,40,32,.04), 0 24px 50px -40px rgba(16,48,36,.35); }
.way-rec { border: 1.5px solid var(--g); background: #ffffff; }
.way-flag { position: absolute; top: -12px; right: 24px; border-radius: 999px; background: var(--grad); padding: 4px 12px; font-size: 11.5px; font-weight: 800; color: #ffffff; }
.way-ic { display: grid; height: 50px; width: 50px; place-items: center; border-radius: 15px; background: #ffffff; color: var(--g); box-shadow: 0 1px 2px rgba(16,40,32,.06); }
.way-rec .way-ic { background: var(--mint2); box-shadow: none; }
.way h3 { margin: 18px 0 0; font-size: 19px; font-weight: 800; color: var(--ink); }
.way-t { margin-top: 18px; display: flex; align-items: center; gap: 8px; }
.way-t h3 { margin: 0; }
.way-t span { border-radius: 999px; background: #fdf0e7; padding: 2px 9px; font-size: 11px; font-weight: 800; color: #b5501a; }
.way p { margin: 8px 0 20px; font-size: 14.5px; line-height: 1.95; color: var(--muted); }
.way-b { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; border-radius: 16px; border: 1px solid #cfe0d6; background: #ffffff; padding: 10px 18px; font-size: 14.5px; font-weight: 800; color: var(--gd); }
.way-b:hover { background: #f2f6f3; color: var(--gd); }
.way-b1 { border-color: transparent; background: var(--grad); padding: 11px 18px; color: #ffffff; box-shadow: 0 16px 32px -16px rgba(39,88,63,.75); }
.way-b1:hover { background: var(--grad); color: #ffffff; filter: brightness(1.06); }

/* سه مرحله‌ی نصب مستقیم */
.isteps { position: relative; overflow: hidden; margin-top: 28px; border-radius: 28px; border: 1px solid #dfe9e3; background: #ffffff; padding: 34px 36px; box-shadow: 0 1px 2px rgba(16,40,32,.04), 0 30px 60px -48px rgba(16,48,36,.4); }
.isteps-mark { pointer-events: none; position: absolute; bottom: -50px; left: -20px; height: 200px; opacity: .04; }
.isteps-head { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.isteps-time { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; background: var(--mint2); padding: 4px 12px; font-size: 12px; font-weight: 700; color: var(--gd); }
.isteps-head h3 { margin: 10px 0 0; font-size: clamp(19px, 2vw, 23px); font-weight: 900; color: var(--ink); }
.isteps-head a { font-size: 13.5px; font-weight: 700; color: var(--gd); }
.isteps-head a:hover { color: #1f4a35; }
.step-list { position: relative; margin: 28px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.step-list li { position: relative; display: flex; flex-direction: column; gap: 16px; }
.st-rail { position: relative; display: flex; align-items: center; flex-shrink: 0; }
.st-ic { position: relative; z-index: 1; display: grid; flex-shrink: 0; height: 48px; width: 48px; place-items: center; border-radius: 999px; background: var(--grad); color: #ffffff; box-shadow: 0 0 0 6px var(--mint2); }
.st-warn .st-ic { background: linear-gradient(135deg, #fb8a3a, #f06d1d); box-shadow: 0 0 0 6px #fdf0e7; }
.st-line { flex: 1; height: 2px; margin: 0 12px; background: repeating-linear-gradient(270deg, #cfe0d6 0 6px, transparent 6px 11px); }
.st-t { min-width: 0; }
.st-t small { display: block; font-size: 12px; font-weight: 800; color: var(--g); }
.st-warn .st-t small { color: #b5501a; }
.st-t b { display: block; margin-top: 4px; font-size: 16px; font-weight: 800; color: var(--ink); }
.st-t p { margin: 6px 0 0; font-size: 14px; line-height: 1.95; color: var(--muted); }

/* موقعیت‌های استفاده */
.moms { margin-top: 44px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mom { display: flex; flex-direction: column; border-radius: 22px; border: 1px solid #d3e2d9; background: #ffffff; padding: 22px; box-shadow: 0 1px 2px rgba(16,40,32,.03); transition: all .25s; }
.mom:hover { transform: translateY(-3px); border-color: #d7e6dc; box-shadow: 0 24px 50px -30px rgba(16,48,36,.35); }
.mom-top { display: flex; align-items: center; justify-content: space-between; }
.mom-ic { display: grid; height: 44px; width: 44px; place-items: center; border-radius: 12px; background: var(--mint2); color: var(--g); }
.mom-tag { border-radius: 999px; padding: 3px 10px; font-size: 11.5px; font-weight: 800; background: #e9eff8; color: #174780; }
.mom-tag.mom-c { background: var(--mint3); color: var(--gd); }
.mom h3 { margin: 16px 0 0; font-size: 17px; font-weight: 800; color: var(--ink); }
.mom p { margin: 8px 0 0; font-size: 14px; line-height: 1.9; color: var(--muted); }

/* پرسش‌ها (مثل صفحه‌ی تماس) */
.dfaq { max-width: 820px; }
.faqs { margin-top: 36px; display: flex; flex-direction: column; gap: 10px; }
.faqs details { overflow: hidden; border-radius: 18px; border: 1px solid #e6ece8; background: #ffffff; transition: all .2s; }
.faqs details[open] { border-color: #cfe0d6; box-shadow: 0 18px 40px -30px rgba(16,48,36,.4); }
.faqs summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; cursor: pointer; padding: 18px 20px; list-style: none; font-size: 15.5px; font-weight: 800; color: var(--ink); }
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary:focus-visible { outline: 2px solid var(--g); outline-offset: -2px; border-radius: 18px; }
.fq-ic { display: grid; flex-shrink: 0; height: 30px; width: 30px; place-items: center; border-radius: 10px; background: var(--mint2); color: var(--g); transition: transform .25s; }
.faqs details[open] .fq-ic { background: var(--g); color: #ffffff; transform: rotate(45deg); }
.faqs details p { margin: 0; padding: 0 20px 20px; font-size: 15px; line-height: 2.05; color: var(--muted); animation: rise .3s var(--ease) both; }

/* دعوت پایانی */
.dend { position: relative; margin: 0 auto; max-width: 1200px; padding: 88px 24px; }
.dend-box { position: relative; overflow: hidden; border-radius: 32px; background: linear-gradient(135deg, #337a5e 0%, #27583f 50%, #1b4230 100%); padding: clamp(44px, 6vw, 76px) 24px; text-align: center; box-shadow: 0 44px 90px -48px rgba(24,64,46,.75); }
.dend-glow { pointer-events: none; position: absolute; top: -200px; right: -140px; height: 520px; width: 520px; border-radius: 999px; background: radial-gradient(closest-side, rgba(255,255,255,.14), rgba(255,255,255,0)); }
.dend-mark { pointer-events: none; position: absolute; bottom: -70px; left: 5%; height: 320px; opacity: .07; }
.dend-in { position: relative; display: flex; flex-direction: column; align-items: center; }
.dend h2 { margin: 0; font-size: clamp(26px, 3.6vw, 42px); font-weight: 900; line-height: 1.4; color: #ffffff; }
.dend p { margin: 12px 0 0; font-size: 16.5px; line-height: 1.95; color: rgba(255,255,255,.82); }
.dend-btns { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.dend-btns a { display: inline-flex; align-items: center; gap: 10px; border-radius: 14px; border: 1px solid rgba(255,255,255,.32); background: rgba(255,255,255,.06); padding: 14px 22px; font-size: 15.5px; font-weight: 700; color: #ffffff; }
.dend-btns a:hover { background: rgba(255,255,255,.14); color: #ffffff; }
.dend-btns a.w { border-color: transparent; background: #ffffff; font-weight: 800; color: var(--gd); }
.dend-btns a.w:hover { background: #f1f7f3; color: var(--gd); }

/* نوار چسبان موبایل */
.dsticky { display: none; }

/* ---------- تبلت ---------- */
@media (max-width: 900px) {
  .dhero { padding: 36px 20px 56px; grid-template-columns: minmax(0, 1fr); }
  .dh-text { align-items: center; text-align: center; }
  .dh-cta, .dh-facts { justify-content: center; }
  .ph-wrap { width: min(250px, 70vw); }
  .dsec-in { padding: 64px 20px 72px; }
  .isteps { padding: 24px 20px; }
  .moms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dend { padding: 56px 16px 96px; }
}
/* ---------- موبایل ---------- */
@media (max-width: 720px) {
  .ways { grid-template-columns: minmax(0, 1fr); }
  .way-flag { right: 20px; }
  .step-list { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .step-list li { flex-direction: row; }
  .st-rail { flex-direction: column; }
  .st-line { flex: 1; width: 2px; height: auto; min-height: 28px; margin: 6px 0; background: repeating-linear-gradient(180deg, #cfe0d6 0 6px, transparent 6px 11px); }
  .st-t { padding-top: 2px; }
  .mom { padding: 16px 14px; }
  .mom-ic { height: 38px; width: 38px; }
  .mom h3 { margin-top: 12px; font-size: 15px; }
  .mom p { font-size: 13px; }
  .dsticky { position: fixed; right: 12px; left: 12px; bottom: 12px; z-index: 70; gap: 8px; border-radius: 18px; border: 1px solid rgba(227,233,229,.9); background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); padding: 8px; box-shadow: 0 20px 40px -16px rgba(16,48,36,.45); }
  .dsticky.show { display: flex; animation: rise .3s var(--ease) both; }
  .ds-main { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; background: var(--grad); padding: 12px; font-size: 14.5px; font-weight: 800; color: #ffffff; }
  .ds-main:hover { color: #ffffff; }
  .ds-apk { display: grid; width: 48px; flex-shrink: 0; place-items: center; border-radius: 12px; border: 1px solid #cfe0d6; background: #ffffff; color: var(--gd); }
  /* نوار چسبان روی انتهای فوتر نیفتد */
  .foot { padding-bottom: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  .ph-wrap img, .ph-glow { transition: none; }
  .faqs details p { animation: none; }
}
