/* =========================================================
   صفحهٔ اصلی — استایل اختصاصی لندینگ (ایندیگو/بنفش)
   ========================================================= */

.lp-wrap {
  position: relative; z-index: 1;
  width: 100%; max-width: none; margin: 0 auto;
  padding: 20px 24px 64px;
}
.lp-wrap.has-ads {
  display: grid; align-items: start; gap: 30px;
  grid-template-columns: 272px minmax(0, 1fr);
  grid-template-areas: "ads main";
  max-width: none;
}
.lp-wrap.has-ads .lp { grid-area: main; }

.lp-ads {
  grid-area: ads; display: flex; flex-direction: column; gap: 10px;
  position: sticky; top: 88px; max-height: calc(100vh - 108px); overflow-y: auto;
}
.lp-ad { background: #fff; border: 1px solid var(--site-line); border-radius: 14px; overflow: hidden; }
.lp-ad-head {
  padding: 8px 11px; font-size: 11.5px; color: var(--muted);
  border-bottom: 1px solid var(--line-soft); background: var(--panel-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lp-ad-frame { position: relative; aspect-ratio: 4 / 3; background: var(--panel-2); }
.lp-ad-slide { position: absolute; inset: 0; display: block; opacity: 0; transition: opacity .5s ease; }
.lp-ad-slide.is-active { opacity: 1; }
.lp-ad-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-ad-dots { position: absolute; inset-inline: 0; bottom: 8px; display: flex; gap: 5px; justify-content: center; z-index: 2; }
.lp-ad-dots button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 999px; cursor: pointer; background: rgba(17, 20, 39, .25); }
.lp-ad-dots button.is-active { width: 16px; background: #4f46e5; }

.lp { display: flex; flex-direction: column; gap: clamp(34px, 4.4vw, 56px); min-width: 0; }
.lp-sec { display: flex; flex-direction: column; gap: 18px; }

/* ---------- هیرو ---------- */

.lp-hero {
  position: relative; overflow: hidden;
  border-radius: 26px;
  padding: clamp(26px, 4vw, 54px);
  background:
    radial-gradient(720px 340px at 94% -12%, rgba(167, 139, 250, .58), transparent 68%),
    radial-gradient(520px 300px at 6% 110%, rgba(56, 189, 248, .22), transparent 70%),
    linear-gradient(135deg, #2f2b78 0%, #4a44d4 55%, #7c3aed 100%);
  box-shadow: 0 34px 70px -48px rgba(49, 46, 129, .95);
}
.lp-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 70% at 85% 20%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 85% 20%, #000, transparent 72%);
}
.lp-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(26px, 4vw, 52px); align-items: center; }
.lp-hero-text { min-width: 0; }
.lp-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(27px, 3.9vw, 45px); line-height: 1.36;
  letter-spacing: -.025em; font-weight: 700; color: #ffffff;
}
.lp-hero p { margin: 0 0 28px; max-width: 540px; color: #dcd8ff; font-size: 14.5px; line-height: 2.1; }

.lp-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.lp-actions .btn {
  padding: 12px 24px; font-size: 13.5px; border-radius: 12px;
  background: rgba(255, 255, 255, .12); color: #ffffff; border-color: rgba(255, 255, 255, .3);
  box-shadow: none;
}
.lp-actions .btn:hover { background: rgba(255, 255, 255, .2); color: #ffffff; border-color: rgba(255, 255, 255, .5); }
.lp-actions .btn-primary { background: #ffffff; color: #3b3486; border-color: #ffffff; font-weight: 700; }
.lp-actions .btn-primary:hover { background: #f1efff; color: #2f2b78; }
.lp-actions .btn-ghost { background: transparent; color: #ffffff; border-color: rgba(255, 255, 255, .35); }
.lp-actions .btn-ghost:hover { background: rgba(255, 255, 255, .14); color: #ffffff; }

.lp-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; }
.lp-badges span {
  font-size: 11.5px; color: #efeaff;
  border: 1px solid rgba(255, 255, 255, .26);
  background: rgba(255, 255, 255, .13);
  border-radius: 999px; padding: 6px 13px;
}

/* پنجرهٔ نمونهٔ چت */
.lp-hero-mock {
  background: #ffffff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(16, 12, 60, .75);
  border: 1px solid rgba(255, 255, 255, .5);
}
.lp-mock-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 11px 14px; border-bottom: 1px solid var(--line-soft);
  background: #fbfaff; font-size: 11.5px; color: var(--muted);
}
.lp-mock-bar span { width: 8px; height: 8px; border-radius: 50%; background: #e3e1f4; }
.lp-mock-bar span:nth-child(1) { background: #f4a3a3; }
.lp-mock-bar span:nth-child(2) { background: #f5cf87; }
.lp-mock-bar span:nth-child(3) { background: #93d9b8; }
.lp-mock-bar b { margin-inline-start: auto; font-size: 11.5px; color: var(--text-soft); }
.lp-mock-body { padding: 14px; display: flex; flex-direction: column; gap: 9px; }
.lp-mock-msg { max-width: 88%; padding: 9px 12px; border-radius: 12px; font-size: 12.5px; line-height: 1.85; }
.lp-mock-msg.user { align-self: flex-start; background: #eef0fe; border: 1px solid #e0e2fb; color: #2b2a55; }
.lp-mock-msg.ai { align-self: flex-end; background: #f8f8fd; border: 1px solid var(--line-soft); color: var(--text-soft); display: flex; align-items: center; gap: 7px; }
.lp-mock-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: lp-blink 1.2s infinite; }
@keyframes lp-blink { 0%, 100% { opacity: .25 } 50% { opacity: 1 } }
.lp-mock-input {
  margin-top: 4px; display: flex; align-items: center; gap: 8px;
  background: #ffffff; border: 1px solid var(--site-line);
  border-radius: 11px; padding: 8px 10px; color: #9aa1b4; font-size: 12px;
}
.lp-mock-input button {
  margin-inline-start: auto; border: 0; width: 27px; height: 27px;
  border-radius: 8px; cursor: pointer; font-weight: 700;
  background: var(--brand-grad); color: #ffffff;
}

/* ---------- تیتر بخش‌ها ---------- */

.lp-section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.lp-section-title h2 {
  position: relative; margin: 0; padding-inline-start: 15px;
  font-size: 21px; font-weight: 700; letter-spacing: -.01em;
}
.lp-section-title h2::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .42em;
  width: 4px; height: .95em; border-radius: 3px; background: var(--brand-grad);
}
.lp-section-title p { margin: 0; font-size: 12.5px; color: var(--muted); }

/* ---------- امکانات ---------- */

.lp-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); gap: 12px; }
.lp-feature {
  display: flex; gap: 11px; align-items: flex-start;
  background: #ffffff; border: 1px solid var(--site-line);
  border-radius: 14px; padding: 16px;
  font-size: 13px; color: var(--text-soft);
  box-shadow: 0 1px 2px rgba(17, 20, 39, .03);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.lp-feature:hover {
  transform: translateY(-2px);
  border-color: #cfcdf1;
  box-shadow: 0 22px 40px -34px rgba(79, 70, 229, .6);
}
.lp-feature .tick {
  width: 23px; height: 23px; flex: none; margin-top: 2px;
  border-radius: 8px; display: grid; place-items: center;
  background: var(--accent-soft); color: #4b3ec4;
  font-size: 11px; font-weight: 700;
}

/* ---------- بخش هوش مصنوعی ---------- */

.lp-ai-card {
  background: linear-gradient(135deg, #f4f2ff 0%, #faf9ff 70%);
  border: 1px solid #e3dffb;
  border-radius: 18px;
  padding: clamp(22px, 3vw, 32px);
  color: var(--text-soft);
  font-size: 14px; line-height: 2.1;
}
.lp-ai-card p { margin: 0; }

/* ---------- مراحل ---------- */

.lp-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 12px; }
.lp-step {
  background: #ffffff; border: 1px solid var(--site-line);
  border-radius: 16px; padding: 20px;
  box-shadow: 0 1px 2px rgba(17, 20, 39, .03);
}
.lp-step .n {
  width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center;
  font-size: 12.5px; font-weight: 700; margin-bottom: 12px;
  background: var(--accent-soft); color: #4b3ec4;
}
.lp-step h3 { margin: 0 0 5px; font-size: 13.5px; font-weight: 700; }
.lp-step p { margin: 0; font-size: 12.5px; line-height: 1.95; color: var(--muted); }

/* ---------- پلن‌ها ---------- */

.lp-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(262px, 1fr)); gap: 14px; align-items: stretch; }
.lp-plan {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  background: #ffffff; border: 1px solid var(--site-line);
  border-radius: 18px; padding: 24px;
  box-shadow: 0 1px 2px rgba(17, 20, 39, .04);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.lp-plan:hover {
  transform: translateY(-4px);
  border-color: #cfcdf1;
  box-shadow: 0 28px 52px -38px rgba(49, 46, 129, .6);
}
.lp-plan h3 { margin: 0; font-size: 16px; font-weight: 700; }
.lp-plan .price { font-size: 27px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.lp-plan .price span { font-size: 12px; font-weight: 400; color: var(--muted); }
.lp-plan .limits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.lp-plan .limits div {
  background: var(--panel-2); border: 1px solid var(--line-soft);
  border-radius: 10px; padding: 8px 10px; font-size: 11px; color: var(--muted);
}
.lp-plan .limits b { display: block; font-size: 12.5px; color: var(--text); margin-top: 2px; font-weight: 700; }
.lp-plan .limits b.ok-text { color: #4b3ec4; }
.lp-plan .limits b.off-text { color: var(--muted); font-weight: 400; }
.lp-plan ul { margin: 0; padding-inline-start: 16px; font-size: 12.5px; color: var(--text-soft); line-height: 2; }
.lp-plan .btn { margin-top: auto; border-radius: 12px; }

.lp-plan.featured {
  background:
    radial-gradient(420px 200px at 100% 0%, rgba(167, 139, 250, .55), transparent 70%),
    linear-gradient(150deg, #322d80 0%, #4b45d6 58%, #6d28d9 100%);
  border-color: transparent;
  box-shadow: 0 28px 54px -34px rgba(49, 46, 129, .8);
}
.lp-plan.featured::before {
  content: "پیشنهادی";
  position: absolute; top: -11px; inset-inline: 0; margin-inline: auto;
  width: max-content;
  background: #ffffff; color: #3b3486;
  font-size: 10.5px; font-weight: 700; padding: 4px 12px; border-radius: 999px;
  box-shadow: 0 8px 16px -10px rgba(17, 20, 39, .7);
}
.lp-plan.featured h3,
.lp-plan.featured .price { color: #ffffff; }
.lp-plan.featured .price span { color: #cfc9ff; }
.lp-plan.featured .limits div { background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .18); color: #ddd9ff; }
.lp-plan.featured .limits b { color: #ffffff; }
.lp-plan.featured .limits b.ok-text { color: #a7f3d0; }
.lp-plan.featured .limits b.off-text { color: #c5c0f0; font-weight: 400; }
.lp-plan.featured ul { color: #dedaff; }
.lp-plan.featured .badge { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .26); color: #ffffff; }
.lp-plan.featured .btn-primary { background: #ffffff; color: #3b3486; border-color: #ffffff; box-shadow: none; }
.lp-plan.featured .btn-primary:hover { background: #f1efff; color: #2f2b78; }

/* ---------- قوانین ---------- */

.lp-terms { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.lp-term {
  background: #ffffff; border: 1px solid var(--site-line);
  border-radius: 14px; padding: 17px 18px;
  transition: border-color .2s ease, transform .2s ease;
}
.lp-term:hover { border-color: #cfcdf1; transform: translateY(-2px); }
.lp-term h3 { margin: 0 0 6px; font-size: 13px; font-weight: 700; }
.lp-term p { margin: 0; font-size: 12.5px; line-height: 1.95; color: var(--muted); }

/* ---------- تماس ---------- */

.lp-contact { display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; align-items: stretch; }
.lp-contact .card { display: flex; flex-direction: column; gap: 12px; border-radius: 18px; }
.lp-contact h3 { margin: 0; font-size: 16px; font-weight: 700; }
.lp-rows { display: flex; flex-direction: column; gap: 0; font-size: 13px; }
.lp-rows > div {
  display: flex; align-items: center; gap: 10px; justify-content: space-between;
  border-bottom: 1px solid var(--line-soft); padding: 9px 0;
}
.lp-rows > div:last-child { border-bottom: 0; padding-bottom: 0; }
.lp-rows .k { color: var(--muted); font-size: 12px; }
.lp-rows .v { direction: ltr; font-family: var(--mono); font-size: 12.5px; color: var(--text); }
.lp-trust { align-items: center; justify-content: center; text-align: center; }
.lp-trust img { max-width: 116px; height: auto; }

/* ---------- دانلود اپ و فوتر ---------- */

.lp-section {
  background: linear-gradient(135deg, #f2f0ff 0%, #f9f8ff 75%);
  border: 1px solid #e3dffb;
  border-radius: 20px;
  padding: clamp(24px, 3.4vw, 38px);
}
.lp-h2 { margin: 0; font-size: 20px; font-weight: 700; }

.lp-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 12px; color: var(--muted);
  border-top: 1px solid var(--site-line);
  padding-top: 20px;
}
.lp-foot a { color: var(--text-soft); }

.lp-empty {
  border: 1px dashed #d5d3ec; border-radius: 14px;
  padding: 26px 18px; text-align: center;
  color: var(--muted); font-size: 13px;
  background: #ffffff;
}

/* ---------- پنجرهٔ خرید ---------- */

.lp-buy {
  position: fixed; inset: 0; z-index: 60;
  display: none; align-items: flex-start; justify-content: center;
  padding: 22px 16px; overflow-y: auto;
  background: rgba(24, 20, 60, .48);
  backdrop-filter: blur(4px);
}
.lp-buy.is-open { display: flex; }
.lp-buy-card {
  width: min(680px, 100%); margin: auto;
  background: #ffffff; border: 1px solid var(--site-line);
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 40px 90px -50px rgba(16, 12, 60, .8);
}
.lp-buy-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 18px 20px; border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(135deg, #f5f3ff, #ffffff 70%);
}
.lp-buy-head h2 { margin: 0 0 4px; font-size: 17px; font-weight: 700; }
.lp-buy-price { font-size: 18px; font-weight: 700; white-space: nowrap; color: #3b3486; }
.lp-buy-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; max-height: 68vh; overflow-y: auto; }
.lp-flow { display: flex; flex-direction: column; gap: 10px; }
.lp-flow-step { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; line-height: 1.95; color: var(--text-soft); }
.lp-flow-step .n {
  width: 24px; height: 24px; flex: none; border-radius: 8px;
  display: grid; place-items: center; font-size: 11.5px; font-weight: 700;
  background: var(--accent-soft); color: #4b3ec4;
}
.lp-flow-step b { color: var(--text); }
.lp-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); gap: 8px; }
.lp-specs div { background: var(--panel-2); border: 1px solid var(--line-soft); border-radius: 10px; padding: 8px 10px; font-size: 11px; color: var(--muted); }
.lp-specs b { display: block; font-size: 12.5px; color: var(--text); margin-top: 2px; }
.lp-buy-feats { margin: 0; padding-inline-start: 18px; font-size: 12.5px; line-height: 2; color: var(--text-soft); }
.lp-cardbox {
  background: var(--panel-2); border: 1px dashed var(--site-line);
  border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px;
}
.lp-cardbox .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--text-soft); flex-wrap: wrap; }
.lp-cardbox code { font-family: var(--mono); font-size: 15.5px; letter-spacing: .05em; color: #3b3486; }
.lp-notify {
  background: var(--accent-soft); border: 1px solid #ddd9fa;
  border-radius: 12px; padding: 12px;
  display: flex; flex-direction: column; gap: 8px;
  font-size: 12.5px; line-height: 1.95;
}
.lp-notify b { color: var(--text); }
.lp-buy-foot {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 14px 20px; border-top: 1px solid var(--line-soft);
  background: var(--panel-2);
}
.lp-buy-foot .btn { flex: 1 1 auto; justify-content: center; border-radius: 12px; }
body.lp-buy-open { overflow: hidden; }

/* ---------- موبایل ---------- */

@media (max-width: 1080px) {
  .lp-wrap.has-ads { grid-template-columns: 1fr; grid-template-areas: "main" "ads"; gap: 24px; }
  .lp-ads { position: static; max-height: none; flex-direction: row; flex-wrap: wrap; }
  .lp-ad { flex: 1 1 240px; }
}

@media (max-width: 900px) {
  .lp-hero-grid { grid-template-columns: 1fr; }
  .lp-hero-mock { display: none; }
  .lp-contact { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .lp-wrap { padding: 14px 16px 52px; }
  .lp-hero { border-radius: 20px; padding: 24px 20px; }
  .lp-hero h1 { font-size: 25px; }
  .lp-hero p { font-size: 13.5px; }
  .lp-actions .btn { flex: 1 1 140px; }
  .lp-section-title h2 { font-size: 18px; }
  .lp-plan .limits { grid-template-columns: 1fr 1fr; }
  .lp-buy-card { border-radius: 16px; }
}
