/* ==========================================================================
   بارکدبان — سیستمِ طراحیِ سایت
   پالت و شعاعِ گوشه‌ها عیناً از خودِ اپ (اندروید/ویندوز) گرفته شده تا سایت
   و اپ یک محصول به‌نظر برسن، نه دو تا چیزِ جدا.
   ========================================================================== */

@font-face {
  font-family: "Vazirmatn";
  src: url("fonts/Vazirmatn-Medium.ttf") format("truetype");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("fonts/Vazirmatn-Bold.ttf") format("truetype");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* رنگ‌ها — دقیقاً هم‌خانواده با core/theme اپ */
  --ink: #0f172a;
  --ink-soft: #475569;
  --paper: #fafafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --line: #e2e8f0;
  --blue: #2563eb;
  --blue-deep: #1d4ed8;
  --blue-pale: #dbeafe;
  --amber: #f59e0b;
  --amber-ink: #2b1700;
  --green: #16a34a;
  --green-pale: #dcfce7;
  --red: #dc2626;

  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;

  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px -12px rgba(15, 23, 42, 0.12);
  --shadow-pop: 0 20px 45px -18px rgba(37, 99, 235, 0.35);

  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: "Vazirmatn", Tahoma, sans-serif;
  background: var(--paper);
  color: var(--ink);
  direction: rtl;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.35; margin: 0 0 0.5em; }
p { margin: 0 0 1em; color: var(--ink-soft); }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--blue-deep);
  background: var(--blue-pale);
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 600;
  margin-bottom: 16px;
}

/* ---------- عنصرِ امضا #۱: نوارِ بارکد (جداکننده‌ی بخش‌ها) ---------- */
.barcode-rule {
  height: 26px;
  width: 100%;
  background-repeat: repeat-x;
  background-size: 34px 100%;
  background-image:
    linear-gradient(90deg,
      var(--code-color, var(--ink)) 0 2px, transparent 2px 6px,
      var(--code-color, var(--ink)) 6px 7px, transparent 7px 13px,
      var(--code-color, var(--ink)) 13px 16px, transparent 16px 21px,
      var(--code-color, var(--ink)) 21px 23px, transparent 23px 34px);
  opacity: 0.14;
}
.barcode-rule.on-dark { opacity: 0.22; --code-color: #ffffff; }

/* ---------- عنصرِ امضا #۲: برچسبِ کد (مثلِ برچسبِ قیمتِ فروشگاه) ---------- */
.sku-tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 14px 8px 12px;
  transform: rotate(-2deg);
  box-shadow: var(--shadow-card);
}
.sku-tag::before {
  content: "";
  position: absolute;
  inset-inline-end: -7px;
  top: 50%;
  translate: 0 -50%;
  width: 14px;
  height: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: inset -2px 0 0 var(--paper);
}
.sku-tag__bars {
  width: 22px;
  height: 22px;
  background-repeat: repeat-x;
  background-size: 5px 100%;
  background-image: linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 2px, var(--ink) 2px 4px, transparent 4px 5px);
  flex: none;
}
.sku-tag__code {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ink);
}

/* ---------- ناوبری ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 250, 252, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
}
.nav__brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__links a {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: background 0.15s, color 0.15s;
}
.nav__links a:hover { background: var(--surface-alt); color: var(--ink); }
.nav__links a[aria-current="page"] { color: var(--blue-deep); background: var(--blue-pale); }
.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav__toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  align-items: center; justify-content: center;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--ink); position: relative;
  transition: 0.2s;
}
.nav__toggle span::before { position: absolute; top: -6px; }
.nav__toggle span::after { position: absolute; top: 6px; }

@media (max-width: 860px) {
  .nav__links { position: fixed; inset-inline: 0; top: 72px; background: var(--surface); flex-direction: column;
    align-items: stretch; padding: 10px 20px 20px; border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: 0.18s; }
  .nav__links.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 12px 14px; }
  .nav__toggle { display: flex; }
  .nav .btn.btn--sm { display: none; }
}

/* ---------- دکمه‌ها (هم‌نامِ خودِ اپ: primary/secondary/premium) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius-md);
  padding: 13px 24px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-pop); }
.btn--primary:hover { background: var(--blue-deep); }
.btn--premium { background: var(--amber); color: var(--amber-ink); }
.btn--premium:hover { background: #e08e08; }
.btn--secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--secondary:hover { background: var(--surface-alt); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--sm { padding: 9px 16px; font-size: 13.5px; border-radius: var(--radius-sm); }
.btn--lg { padding: 16px 30px; font-size: 16.5px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn.is-soon { background: var(--surface-alt); color: var(--ink-soft); border-color: var(--line); box-shadow: none; cursor: not-allowed; }

/* ---------- کارت‌ها ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* ---------- نشان‌ها (بج) ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
}
.badge--amber { background: #fef3c7; color: #92400e; }
.badge--green { background: var(--green-pale); color: #166534; }
.badge--blue { background: var(--blue-pale); color: var(--blue-deep); }

/* ---------- ساختارهای عمومیِ صفحه ---------- */
.section { padding: 92px 0; }
.section--tight { padding: 64px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); }
.section-head p { font-size: 17px; margin-bottom: 0; }
.section--alt { background: var(--surface-alt); }

.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
}

.feature-card { padding: 28px; }
.feature-card__icon {
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--blue-pale); color: var(--blue-deep);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.feature-card__icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 17.5px; margin-bottom: 8px; }
.feature-card p { font-size: 14.5px; margin: 0; }

/* ---------- پانویس ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 12px; }
.footer-brand img { width: 30px; height: 30px; border-radius: 8px; }
.footer-col h4 { font-size: 13px; color: var(--ink-soft); margin-bottom: 14px; }
.footer-col a, .footer-col p { display: block; font-size: 14px; color: var(--ink-soft); margin-bottom: 10px; }
.footer-col a:hover { color: var(--blue-deep); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: var(--ink-soft); }

/* ---------- هیرو (صفحه‌ی خانه) ---------- */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .hero__grid { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); letter-spacing: -0.01em; }
.hero__lede { font-size: 18.5px; max-width: 480px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero__meta { display: flex; gap: 22px; margin-top: 34px; flex-wrap: wrap; }
.hero__meta div { display: flex; flex-direction: column; }
.hero__meta strong { font-size: 22px; font-family: var(--mono); }
.hero__meta span { font-size: 12.5px; color: var(--ink-soft); }

.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; }
.scan-sweep {
  animation: sweep 2.6s cubic-bezier(.65,0,.35,1) infinite;
  transform-origin: center;
}
@keyframes sweep {
  0%, 100% { transform: translateY(-46px); opacity: 0; }
  8% { opacity: 1; }
  50% { transform: translateY(46px); opacity: 1; }
  92% { opacity: 1; }
}
.connector-flow { stroke-dasharray: 6 8; animation: flow 1.1s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -28; } }
.pulse-dot { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 0.25; r: 3; } 50% { opacity: 1; r: 4.5; } }
.type-cell { font-family: var(--mono); }
.type-caret { animation: caret 0.9s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* ---------- گام‌های «چطور کار می‌کند» ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 26px 26px 24px; position: relative; }
.step__num {
  font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--blue-deep);
  display: flex; align-items: center; gap: 8px; margin-bottom: 16px;
}
.step__num .bars { width: 16px; height: 14px; background-repeat: repeat-x; background-size: 3px 100%;
  background-image: linear-gradient(90deg, var(--blue) 0 1px, transparent 1px 2px, var(--blue) 2px 3px, transparent 3px 3.4px); }
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 14.5px; margin: 0; }

/* ---------- قیمت‌گذاری ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; } }
.plan { padding: 30px 26px; display: flex; flex-direction: column; position: relative; }
.plan--featured { border-color: var(--amber); box-shadow: 0 24px 50px -22px rgba(245, 158, 11, 0.45); }
.plan__ribbon {
  position: absolute; top: -13px; inset-inline-start: 26px; background: var(--amber); color: var(--amber-ink);
  font-size: 12px; font-weight: 800; padding: 5px 12px; border-radius: 999px;
}
.plan__name { font-size: 15px; color: var(--ink-soft); font-weight: 700; margin-bottom: 6px; }
.plan__price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.plan__price strong { font-size: 32px; font-family: var(--mono); letter-spacing: -0.01em; }
.plan__price span { color: var(--ink-soft); font-size: 13.5px; }
.plan__note { font-size: 12.5px; color: var(--green); font-weight: 700; margin-bottom: 20px; min-height: 18px; }
.plan__list { margin: 0 0 26px; display: flex; flex-direction: column; gap: 12px; }
.plan__list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink); }
.plan__list svg { flex: none; width: 18px; height: 18px; color: var(--green); margin-top: 2px; }
.plan__cta { margin-top: auto; }

.trial-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 26px 28px; background: var(--ink); color: #fff; border-radius: var(--radius-lg);
}
.trial-banner p { color: #cbd5e1; margin: 4px 0 0; }
.trial-banner h3 { margin: 0; font-size: 19px; }

/* ---------- تب فرق‌ها (پرسش‌های متداول) ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; padding: 20px 4px; font-weight: 700; font-size: 15.5px;
  display: flex; align-items: center; justify-content: space-between; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 22px; font-weight: 400; color: var(--blue); transition: transform 0.15s; flex: none;
  margin-inline-start: 16px;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 4px 20px; margin: 0; font-size: 14.5px; }

/* ---------- گواهی/نظرات کاربران ---------- */
.testimonials-empty {
  border: 1.5px dashed var(--line); border-radius: var(--radius-lg); padding: 46px 30px;
  text-align: center; background: var(--surface);
}
.testimonials-empty .sku-tag { margin-bottom: 18px; }
.testimonials-empty h3 { font-size: 18px; margin-bottom: 6px; }
.testimonials-empty p { max-width: 460px; margin-inline: auto; font-size: 14.5px; }

/* ---------- جعبه‌های اطلاع/هشدار (برای دانلود و قوانین) ---------- */
.notice { border-radius: var(--radius-md); padding: 16px 18px; font-size: 14px; display: flex; gap: 12px; }
.notice svg { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.notice--blue { background: var(--blue-pale); color: #1e3a8a; }
.notice--green { background: var(--green-pale); color: #14532d; }
.notice--amber { background: #fef3c7; color: #78350f; }
.notice p { margin: 0; color: inherit; }
.notice strong { display: block; margin-bottom: 2px; }

/* ---------- دانلود ---------- */
.download-card { padding: 34px; display: flex; flex-direction: column; gap: 18px; }
.download-card__head { display: flex; align-items: center; gap: 14px; }
.download-card__icon { width: 54px; height: 54px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex: none; }
.download-card__icon.android { background: var(--green-pale); color: #166534; }
.download-card__icon.windows { background: var(--blue-pale); color: var(--blue-deep); }
.download-card__icon svg { width: 26px; height: 26px; }
.req-list { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: var(--ink-soft); }
.req-list li { display: flex; gap: 8px; align-items: flex-start; }
.req-list svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--ink-soft); }

/* ---------- قوانین (متن بلند) ---------- */
.legal-shell { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .legal-shell { grid-template-columns: 1fr; } }
.legal-toc { position: sticky; top: 96px; }
.legal-toc h4 { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 12px; }
.legal-toc a { display: block; padding: 7px 0; font-size: 13.5px; color: var(--ink-soft); border-inline-start: 2px solid transparent; padding-inline-start: 12px; }
.legal-toc a:hover { color: var(--blue-deep); }
.legal-body h2 { font-size: 22px; margin-top: 44px; padding-top: 12px; scroll-margin-top: 96px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 16.5px; margin-top: 26px; }
.legal-body p, .legal-body li { font-size: 15px; color: var(--ink-soft); }
.legal-body ul { margin: 0 0 16px; padding-inline-start: 22px; list-style: disc; }
.legal-body li { margin-bottom: 8px; }
.legal-updated { font-family: var(--mono); font-size: 12.5px; color: var(--ink-soft); background: var(--surface-alt); display: inline-block; padding: 6px 12px; border-radius: 8px; margin-bottom: 8px; }

/* ---------- انیمیشنِ نمایان‌شدن هنگام اسکرول ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- کمکی ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: absolute; right: -999px; top: 0; background: var(--ink); color: #fff; padding: 12px 18px;
  border-radius: 0 0 10px 10px; z-index: 100;
}
.skip-link:focus { right: 16px; }
