:root {
  --bg: #f6f5fb;
  --card: #ffffff;
  --card-2: #f3f1fb;
  --line: #e7e4f2;
  --text: #1d1b2e;
  --muted: #6e6a85;
  --accent: #7c3aed;
  --accent-2: #4f7cff;
  --accent-soft: #efe8ff;
  --pink: #ec4899;
  --ok: #16a34a;
  --ok-soft: #e7f8ee;
  --err: #dc2626;
  --err-soft: #fdecec;
  --warn-soft: #fff6e0;
  --radius: 20px;
  --shadow: 0 10px 30px -12px rgba(76, 52, 160, .18);
  --grad: linear-gradient(135deg, #7c3aed 0%, #4f7cff 100%);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* ─── header ─── */
header.top { position: sticky; top: 0; z-index: 40; background: rgba(246, 245, 251, .85); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; }
header.top.scrolled { border-bottom-color: var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.2rem; text-decoration: none; }
.logo .mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff;
  background: var(--grad); box-shadow: 0 6px 16px -6px rgba(124, 58, 237, .6); }
nav.menu { display: flex; gap: 22px; }
nav.menu a { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500; }
nav.menu a:hover { color: var(--accent); }
.top-actions { display: flex; gap: 8px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 14px;
  padding: 12px 22px; font: inherit; font-weight: 800; color: #fff; cursor: pointer; text-decoration: none;
  background: var(--grad); box-shadow: 0 8px 20px -8px rgba(124, 58, 237, .65); transition: transform .15s, filter .15s; }
.btn:hover:not(:disabled) { filter: brightness(1.07); transform: translateY(-1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn.ghost { background: var(--card); color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn.block { width: 100%; }
.btn.sm { padding: 8px 14px; font-size: .9rem; border-radius: 12px; }

/* ─── hero ─── */
.hero { padding: 48px 0 40px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: -200px -200px auto auto; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, .16), transparent 65%); z-index: -1; }
.hero::after { content: ''; position: absolute; inset: auto auto -260px -200px; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 124, 255, .14), transparent 65%); z-index: -1; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 99px;
  padding: 4px 14px; font-size: .85rem; color: var(--muted); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.45; margin: 16px 0 12px; font-weight: 900; }
.hero p.lead { color: var(--muted); font-size: 1.05rem; max-width: 520px; margin: 0 0 24px; }
.hero .cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero .stats { display: flex; gap: 28px; margin-top: 30px; }
.hero .stats div b { display: block; font-size: 1.4rem; font-weight: 900; }
.hero .stats div span { color: var(--muted); font-size: .85rem; }

/* phone mockup */
.phone-wrap { position: relative; display: grid; place-items: center; min-height: 480px; }
.phone { width: 270px; height: 470px; border-radius: 42px; background: #fff; border: 10px solid #1d1b2e; box-shadow: 0 40px 80px -30px rgba(29, 27, 46, .45);
  position: relative; overflow: hidden; direction: ltr; }
.phone::before { content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 80px; height: 22px; background: #1d1b2e; border-radius: 20px; }
.phone .scr { padding: 46px 14px 14px; text-align: center; font-family: system-ui, sans-serif; }
.phone .avatar { width: 78px; height: 78px; border-radius: 50%; margin: 6px auto 8px; background: var(--grad); display: grid; place-items: center;
  color: #fff; font-size: 2rem; font-weight: 800; }
.phone .nm { font-weight: 800; font-size: 1.05rem; display: inline-flex; align-items: center; gap: 4px; }
.phone .nm .badge { color: #7c3aed; }
.phone .st { color: #8a87a0; font-size: .75rem; margin-bottom: 12px; }
.phone .row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; background: #f5f4fa; margin-bottom: 6px; font-size: .78rem; text-align: left; }
.phone .row i { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-style: normal; color: #fff; font-size: .8rem; }
.chip { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px 14px; font-size: .85rem; font-weight: 700;
  box-shadow: var(--shadow); white-space: nowrap; animation: float 5s ease-in-out infinite; }
.chip.c1 { top: 60px; right: 0; }
.chip.c2 { top: 220px; left: 0; animation-delay: -1.5s; }
.chip.c3 { bottom: 110px; right: 0; animation-delay: -3s; }
.chip.c4 { bottom: 24px; left: 10px; animation-delay: -2s; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ─── sections ─── */
section.sec { padding: 56px 0; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 32px; }
.sec-head .kicker { color: var(--accent); font-weight: 800; font-size: .9rem; }
.sec-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 4px 0 8px; font-weight: 900; }
.sec-head p { color: var(--muted); margin: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }

/* pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 28px 24px; transition: transform .2s; }
.price-card:hover { transform: translateY(-4px); }
.price-card.featured { border: 2px solid var(--accent); }
.price-card .ribbon { position: absolute; top: -14px; right: 24px; background: var(--grad); color: #fff; font-size: .8rem; font-weight: 800;
  padding: 3px 14px; border-radius: 99px; }
.price-card .instant { color: var(--ok); font-size: .82rem; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.price-card h3 { margin: 4px 0 0; font-size: 1.3rem; font-weight: 900; }
.price-card .sub { color: var(--muted); font-size: .9rem; margin: 0 0 10px; }
.price-card .amount { font-size: 2rem; font-weight: 900; }
.price-card .amount small { font-size: .9rem; color: var(--muted); font-weight: 500; }
.price-card .per { color: var(--muted); font-size: .85rem; margin-bottom: 14px; }
.price-card ul { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 6px; font-size: .92rem; }
.price-card li::before { content: '✓'; color: var(--accent); font-weight: 900; margin-left: 8px; }
.price-card .btn { margin-top: auto; }
.save { display: inline-block; background: var(--ok-soft); color: var(--ok); font-size: .78rem; font-weight: 800; padding: 1px 10px; border-radius: 99px; margin-inline-start: 6px; }

.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 28px; }
.perk { display: flex; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; font-weight: 700; font-size: .92rem; }
.perk .ic { flex: 0 0 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; font-size: 1.2rem; }

/* how-to steps */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: st; }
.step { position: relative; padding: 24px 20px; counter-increment: st; }
.step::before { content: counter(st, persian); position: absolute; top: 18px; left: 20px; font-size: 2.4rem; font-weight: 900; color: var(--accent-soft); line-height: 1; }
.step .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 12px; }
.step h3 { margin: 0 0 4px; font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); font-size: .9rem; }

/* guides (tabs) */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 20px; }
.tab { border: 1px solid var(--line); background: var(--card); padding: 8px 18px; border-radius: 99px; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; }
.tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.guide { display: none; grid-template-columns: 1fr 300px; gap: 28px; align-items: center; }
.guide.active { display: grid; }
.guide h3 { margin: 0 0 12px; font-size: 1.2rem; }
.guide ol { margin: 0; padding: 0; list-style: none; counter-reset: g; display: grid; gap: 12px; }
.guide ol li { counter-increment: g; display: flex; gap: 12px; align-items: flex-start; }
.guide ol li::before { content: counter(g, persian); flex: 0 0 30px; height: 30px; border-radius: 10px; background: var(--accent-soft); color: var(--accent);
  font-weight: 900; display: grid; place-items: center; margin-top: 2px; }
.kbd { display: inline-block; background: var(--card-2); border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; font-size: .85rem; font-weight: 700; }
.note { border-radius: 14px; padding: 12px 16px; font-size: .9rem; margin-top: 16px; display: flex; gap: 10px; }
.note.info { background: var(--accent-soft); }
.note.warn { background: var(--warn-soft); }
.note.ok { background: var(--ok-soft); }

/* mini phone illustrations inside guides */
.mini { direction: ltr; width: 260px; margin: 0 auto; border-radius: 28px; border: 8px solid #1d1b2e; background: #fff; padding: 16px 12px; font-family: system-ui, sans-serif; font-size: .8rem; box-shadow: var(--shadow); }
.mini .bar { font-weight: 800; text-align: center; margin-bottom: 10px; }
.mini .item { display: flex; justify-content: space-between; align-items: center; padding: 9px 10px; border-radius: 10px; background: #f5f4fa; margin-bottom: 6px; }
.mini .item.hl { outline: 2px solid var(--accent); background: var(--accent-soft); }
.mini .item span:last-child { color: #8a87a0; }
.mini .hint { text-align: center; color: var(--accent); font-weight: 700; margin-top: 8px; }

/* features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { padding: 22px 20px; }
.feature .ic { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 10px; background: var(--accent-soft); }
.feature h3 { margin: 0 0 4px; font-size: 1rem; }
.feature p { margin: 0; color: var(--muted); font-size: .88rem; }

/* compare table */
.table-wrap { overflow-x: auto; }
table.cmp { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 480px; }
table.cmp th, table.cmp td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: right; }
table.cmp th { color: var(--muted); font-weight: 500; font-size: .88rem; }
table.cmp td.y { color: var(--accent); font-weight: 800; }
table.cmp tr:last-child td { border-bottom: 0; }

/* faq */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; margin-bottom: 10px; }
.faq details[open] { border-color: #cfc3f5; }
.faq summary { cursor: pointer; font-weight: 800; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 1.3rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 14px; }
.faq-group { display: none; }
.faq-group.active { display: block; }

/* cta band */
.band { background: var(--grad); color: #fff; border-radius: 28px; padding: 40px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.band h2 { margin: 0 0 4px; font-size: 1.6rem; }
.band p { margin: 0; opacity: .85; }
.band .btn { background: #fff; color: var(--accent); }

footer.foot { padding: 40px 0 90px; color: var(--muted); font-size: .9rem; }
footer.foot .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 24px; }
footer.foot a { text-decoration: none; margin-inline-start: 16px; }
footer.foot a:hover { color: var(--accent); }

.support-fab { position: fixed; bottom: 20px; left: 20px; z-index: 50; display: flex; align-items: center; gap: 8px; background: #fff; color: var(--text);
  border: 1px solid var(--line); border-radius: 99px; padding: 10px 18px; font-weight: 800; text-decoration: none; box-shadow: var(--shadow); }
.support-fab .d { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); }

/* ─── purchase modal ─── */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 16px;
  background: rgba(29, 27, 46, .45); backdrop-filter: blur(4px); }
.modal.open { display: flex; }
.sheet { width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border-radius: 26px; padding: 24px; position: relative;
  animation: pop .2s ease-out; }
@keyframes pop { from { transform: translateY(12px); opacity: 0; } }
.sheet .close { position: absolute; top: 16px; left: 16px; width: 36px; height: 36px; border-radius: 12px; border: 1px solid var(--line); background: #fff;
  font-size: 1.2rem; cursor: pointer; color: var(--muted); }
.sheet h2 { margin: 0 0 4px; font-size: 1.25rem; }
.sheet .sub { color: var(--muted); margin: 0 0 18px; font-size: .9rem; }
.progress { display: flex; gap: 6px; margin: 0 0 20px; }
.progress span { flex: 1; height: 5px; border-radius: 9px; background: var(--line); }
.progress span.on { background: var(--accent); }
.plan-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.plan-opt { border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 6px; text-align: center; cursor: pointer; background: #fff; font: inherit; }
.plan-opt b { display: block; }
.plan-opt span { color: var(--muted); font-size: .8rem; }
.plan-opt.active { border-color: var(--accent); background: var(--accent-soft); }
label.lbl { display: block; font-weight: 700; margin-bottom: 6px; font-size: .92rem; }
.field { position: relative; }
.field input { width: 100%; padding: 14px 16px 14px 44px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; color: var(--text);
  font: inherit; direction: ltr; text-align: left; outline: none; transition: border-color .15s; }
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field .at { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; }
.field .state { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); }
.helper { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.linkbtn { background: none; border: 0; color: var(--accent); font: inherit; font-weight: 700; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 4px; }
.inline-guide { display: none; background: var(--card-2); border-radius: 14px; padding: 12px 16px; margin-top: 10px; font-size: .88rem; }
.inline-guide.open { display: block; }
.inline-guide ol { margin: 4px 0 0; padding-inline-start: 20px; }
.user-card { display: none; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; border: 1.5px solid var(--ok); background: var(--ok-soft); margin-top: 12px; }
.user-card.show { display: flex; }
.user-card img, .user-card .ph { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; }
.user-card .n { font-weight: 800; }
.user-card .u { color: var(--muted); font-size: .85rem; }
.user-card .tick { margin-inline-start: auto; color: var(--ok); font-weight: 800; font-size: .85rem; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; margin: 14px 0 0; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); margin-top: 5px; }
.summary { border: 1px dashed var(--line); border-radius: 16px; padding: 14px 16px; margin: 16px 0; display: grid; gap: 6px; font-size: .92rem; }
.summary div { display: flex; justify-content: space-between; }
.summary div span:first-child { color: var(--muted); }
.summary .total { font-weight: 900; font-size: 1.05rem; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; }
.msg { min-height: 1.4em; font-size: .88rem; margin-top: 10px; text-align: center; }
.msg.err { color: var(--err); }
.spinner { width: 34px; height: 34px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; }
.spinner.sm { width: 18px; height: 18px; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.row-actions { display: flex; gap: 8px; margin-top: 8px; }
.row-actions .btn.ghost { flex: 0 0 auto; }
.row-actions .btn:not(.ghost) { flex: 1; }

/* ─── order page ─── */
.order-box { max-width: 560px; margin: 32px auto; }
.status { text-align: center; }
.status .icon { width: 76px; height: 76px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; background: var(--card-2); }
.status.ok .icon { background: var(--ok-soft); color: var(--ok); }
.status.bad .icon { background: var(--err-soft); color: var(--err); }
.timeline { display: grid; gap: 0; margin: 20px 0 0; text-align: right; }
.timeline .t { display: flex; gap: 12px; align-items: center; padding: 8px 0; color: var(--muted); }
.timeline .t i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .8rem; background: var(--card-2); border: 1px solid var(--line); }
.timeline .t.done { color: var(--text); }
.timeline .t.done i { background: var(--ok); border-color: var(--ok); color: #fff; }
.timeline .t.now { color: var(--text); font-weight: 800; }
.timeline .t.now i { border-color: var(--accent); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin-top: 18px; text-align: right; font-size: .92rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.after { text-align: right; margin-top: 18px; }
.after h3 { font-size: 1rem; margin: 0 0 8px; }
.after ol { margin: 0; padding-inline-start: 20px; color: var(--muted); font-size: .92rem; }

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .phone-wrap { min-height: 440px; }
  .pricing { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .perks, .features { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .guide.active { grid-template-columns: 1fr; }
  nav.menu { display: none; }
}
@media (max-width: 560px) {
  .perks, .features, .steps-grid { grid-template-columns: 1fr; }
  .top-actions .ghost { display: none; }
  .band { padding: 28px 20px; }
  .hero .stats { gap: 18px; }
  .chip { font-size: .75rem; padding: 6px 10px; }
  .chip.c2 { left: 0; }
  .sheet { padding: 20px 16px; border-radius: 22px; }
}
