/* پیگیر CRM — the product website. One stylesheet, no outside files. */
@font-face { font-family: Vazirmatn; src: url(../fonts/vazirmatn.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #10201d; --ink-2: #33423f; --muted: #62716e; --line: #dfe7e5; --bg: #f6f9f8; --surface: #ffffff;
  --brand: #0d7a69; --brand-dark: #0a4f45; --brand-deep: #072f2a; --brand-soft: #e2f4f0; --accent: #f0a23a; --bad: #be2a1d;
  --radius: 18px; --shadow: 0 18px 50px rgb(8 47 42 / 12%); --wrap: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16.5px/1.95 Vazirmatn, Tahoma, sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.45; margin: 0; font-weight: 900; letter-spacing: 0; }
h3 { font-weight: 800; }
h1 { font-size: clamp(30px, 4.6vw, 52px); }
h2 { font-size: clamp(24px, 3.1vw, 36px); }
h3 { font-size: 19px; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.center { text-align: center; }
.lead { font-size: clamp(16.5px, 1.5vw, 19px); color: var(--ink-2); max-width: 46em; }
.center .lead { margin-inline: auto; }
.kicker { display: inline-block; font-size: 13.5px; font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: 4px 14px; border-radius: 999px; margin-bottom: 14px; }

/* header */
.top { position: sticky; top: 0; z-index: 30; background: rgb(255 255 255 / 88%); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 22px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo img { width: 38px; height: 38px; border-radius: 10px; }
.logo span small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); line-height: 1.2; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a { padding: 8px 14px; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: 15px; }
.nav a:hover, .nav a.on { background: var(--brand-soft); color: var(--brand-dark); text-decoration: none; }
.menu { display: none; margin-inline-start: auto; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 20px; cursor: pointer; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 10px 26px; border-radius: 14px; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; border: 1px solid transparent; transition: transform .15s, box-shadow .15s; }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn.primary { background: linear-gradient(135deg, #129b85, var(--brand-dark)); color: #fff; box-shadow: 0 10px 26px rgb(13 122 105 / 32%); }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.light { background: #fff; color: var(--brand-dark); }
.btn.clear { background: rgb(255 255 255 / 12%); color: #fff; border-color: rgb(255 255 255 / 30%); }
.top .btn { min-height: 42px; padding: 6px 18px; font-size: 14.5px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.center .actions { justify-content: center; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 74px 0 0; background: radial-gradient(1200px 520px at 80% -10%, #d8f1eb 0%, transparent 60%), radial-gradient(900px 480px at 0% 10%, #fdf0d9 0%, transparent 55%), var(--bg); }
.hero .lead { margin-top: 18px; }
.hero-art { position: relative; margin: 54px auto -4px; max-width: 1080px; }
.browser { border-radius: 16px 16px 0 0; overflow: hidden; background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line); border-bottom: 0; }
.browser::before { content: ''; display: block; height: 34px; background: #eef3f2 radial-gradient(circle at 20px 17px, #f26b5e 5px, transparent 6px), #eef3f2; background-image: radial-gradient(circle at calc(100% - 20px) 17px, #f26b5e 5px, transparent 6px), radial-gradient(circle at calc(100% - 40px) 17px, #f4bf4f 5px, transparent 6px), radial-gradient(circle at calc(100% - 60px) 17px, #61c554 5px, transparent 6px); border-bottom: 1px solid var(--line); }
.browser.whole { border-radius: 16px; border-bottom: 1px solid var(--line); }
.phone { position: absolute; inset-inline-start: 4%; bottom: 0; width: 21%; min-width: 150px; border-radius: 26px 26px 0 0; border: 7px solid #10201d; border-bottom: 0; overflow: hidden; background: #fff; box-shadow: 0 20px 50px rgb(8 47 42 / 30%); }
.phone.whole { position: static; width: min(300px, 78%); margin-inline: auto; border-radius: 34px; border-bottom: 7px solid #10201d; }

/* sections */
section { padding: 84px 0; }
section.tight { padding: 56px 0; }
.band { background: var(--surface); border-block: 1px solid var(--line); }
.dark { background: linear-gradient(150deg, var(--brand-deep), #0b4a40 70%, #0d6657); color: #fff; }
.dark .lead, .dark p { color: rgb(255 255 255 / 82%); }
.dark .kicker { background: rgb(255 255 255 / 14%); color: #c7f3e9; }
.head { margin-bottom: 44px; }
.head h2 + .lead { margin-top: 12px; }

.pains { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pain { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; border-top: 4px solid var(--bad); }
.pain b { display: block; font-size: 17px; margin-bottom: 4px; }
.pain p { color: var(--muted); font-size: 15px; line-height: 1.85; }

.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
.split + .split { margin-top: 96px; }
.split.flip > :first-child { order: 2; }
.split h2 { margin-bottom: 12px; }
.split .lead { font-size: 17px; }
.ticks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-inline-start: 34px; color: var(--ink-2); }
.ticks li::before { content: '✓'; position: absolute; inset-inline-start: 0; top: 3px; width: 24px; height: 24px; line-height: 24px; text-align: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: 14px; }
.dark .ticks li { color: rgb(255 255 255 / 88%); }
.dark .ticks li::before { background: rgb(255 255 255 / 16%); color: #fff; }
.shot { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; cursor: zoom-in; }
.shot img { width: 100%; }
.more { display: inline-block; margin-top: 20px; font-weight: 700; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .18s, box-shadow .18s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: var(--brand-soft); margin-bottom: 14px; }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 15.5px; line-height: 1.9; }
.dark .card { background: rgb(255 255 255 / 7%); border-color: rgb(255 255 255 / 14%); }
.dark .card h3 { color: #fff; }
.dark .card .ico { background: rgb(255 255 255 / 14%); }

.video { max-width: 980px; margin-inline: auto; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 80px rgb(0 0 0 / 35%); background: #000; aspect-ratio: 16 / 9; }
.video video { width: 100%; height: 100%; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; counter-increment: step; }
.step::before { content: counter(step, persian); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; font-size: 19px; margin-bottom: 12px; }
.step p { color: var(--muted); font-size: 15.5px; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery figure { margin: 0; }
.gallery figcaption { font-size: 14px; color: var(--muted); padding: 8px 4px 0; text-align: center; }
.phones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: start; }

.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 22px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 14px; }
.faq summary::after { content: '+'; color: var(--brand); font-size: 22px; line-height: 1.3; }
.faq details[open] summary::after { content: '−'; }
.faq p { color: var(--ink-2); padding-bottom: 16px; }

.cta { border-radius: 28px; padding: 56px 34px; text-align: center; background: linear-gradient(135deg, #129b85, var(--brand-deep)); color: #fff; box-shadow: var(--shadow); }
.cta p { color: rgb(255 255 255 / 85%); max-width: 40em; margin: 12px auto 0; }
.cta .actions { justify-content: center; }

.page-hero { padding: 64px 0 30px; background: radial-gradient(1000px 420px at 85% -20%, #d8f1eb 0%, transparent 60%), var(--bg); }
.contact-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.contact-box dl { display: grid; grid-template-columns: auto 1fr; gap: 12px 22px; margin: 18px 0 0; }
.contact-box dt { color: var(--muted); }
.contact-box dd { margin: 0; font-weight: 700; }
.note { background: #fff8ea; border: 1px solid #f3dcae; color: #6b4a08; border-radius: 12px; padding: 12px 16px; font-size: 14.5px; }

footer { background: var(--brand-deep); color: rgb(255 255 255 / 76%); padding: 48px 0 28px; font-size: 14.5px; }
footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 34px; }
footer h4 { color: #fff; margin: 0 0 10px; font-size: 15px; }
footer a { color: rgb(255 255 255 / 80%); display: block; padding: 3px 0; }
footer .end { margin-top: 30px; padding-top: 18px; border-top: 1px solid rgb(255 255 255 / 14%); font-size: 13px; }

.lightbox { position: fixed; inset: 0; z-index: 60; display: none; place-items: center; background: rgb(6 20 18 / 88%); padding: 20px; cursor: zoom-out; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 92vh; border-radius: 12px; box-shadow: 0 30px 80px rgb(0 0 0 / 60%); }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

@media (max-width: 960px) {
  .pains, .grid.four, .phones { grid-template-columns: repeat(2, 1fr); }
  .grid, .steps, .gallery { grid-template-columns: repeat(2, 1fr); }
  .split, .split.flip { grid-template-columns: 1fr; gap: 26px; }
  .split.flip > :first-child { order: 0; }
  .split + .split { margin-top: 64px; }
  footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  body { font-size: 15.5px; }
  section { padding: 56px 0; }
  .nav { display: none; position: absolute; inset-inline: 0; top: 100%; flex-direction: column; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 20px 16px; box-shadow: 0 20px 40px rgb(0 0 0 / 10%); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; font-size: 16px; }
  .menu { display: block; }
  .top .btn { display: none; }
  .hero { padding-top: 44px; }
  .hero-art { margin-top: 34px; }
  .phone { width: 30%; min-width: 96px; border-width: 5px; border-radius: 18px 18px 0 0; }
  .pains, .grid, .grid.two, .grid.four, .steps, .gallery { grid-template-columns: 1fr; }
  .actions .btn { flex: 1 1 100%; }
  .cta { padding: 40px 20px; border-radius: 22px; }
  footer .cols { grid-template-columns: 1fr; }
  .contact-box dl { grid-template-columns: 1fr; gap: 2px 0; }
  .contact-box dd { margin-bottom: 10px; }
}

/* the four editions */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 34px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; }
.plan.best { border-color: var(--brand); box-shadow: var(--shadow); }
.plan h3 { margin: 0 0 4px; font-size: 21px; color: var(--brand-dark); }
.plan .for { margin: 0 0 10px; color: var(--muted); font-size: 14.5px; line-height: 1.8; min-height: 3.6em; }
.plan .seats { margin: 0 0 12px; font-weight: 700; color: var(--ink); }
.plan .ticks { flex: 1; font-size: 15px; }
.plan .btn { margin-top: 18px; min-height: 46px; font-size: 15px; padding: 8px 14px; }
@media (max-width: 1080px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .plans { grid-template-columns: 1fr; } .plan .for { min-height: 0; } }
/* forms: activation code, demo request */
.code-form { display: grid; gap: 8px; }
.code-form label { font-weight: 600; font-size: 14.5px; margin-top: 6px; }
.code-form input, .code-form textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; width: 100%; box-sizing: border-box; }
.code-form textarea#code { font-family: Consolas, monospace; font-size: 13px; }
.code-form .btn { margin-top: 10px; justify-self: start; }
.code-form .trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { min-height: 1.5em; margin: 6px 0 0; font-weight: 600; }
.form-msg.bad { color: var(--bad); } .form-msg.good { color: var(--brand-dark); }
.hidden { display: none !important; }
#code-ok { margin-top: 18px; }
#code-ok pre { background: #0f1f1c; color: #e6f4f1; padding: 12px 14px; border-radius: 10px; overflow-x: auto; font-size: 13px; line-height: 1.7; white-space: pre-wrap; word-break: break-all; }
.steps-list { padding-inline-start: 22px; line-height: 2; }
.copy-wrap { position: relative; }
.copy-wrap pre { padding-left: 76px !important; }
.copy-btn { font: inherit; font-size: 13px; line-height: 1.4; cursor: pointer; border: 1px solid #2f8f7f; background: #e8f6f3; color: #12594d; border-radius: 8px; padding: 4px 12px; }
.copy-btn:hover { background: #d3efe9; }
.copy-btn.done { background: #12594d; color: #fff; }
.copy-wrap .copy-btn { position: absolute; top: 8px; left: 8px; }
.copy-btn.inline { margin-inline-start: 8px; vertical-align: middle; }
.steps-list li { margin-bottom: 8px; }
.card-pay dd { font-family: Consolas, monospace; direction: ltr; text-align: right; font-size: 17px; }
