/* ─────────────────────────────────────────────────────────────
   گسترده تیگوان — استایل سایت
   رنگ اصلی را از config.js عوض کن (accentColor)، نه اینجا.
   ───────────────────────────────────────────────────────────── */

/* فونت وزیرمتن: اول از پوشه‌ی assets/fonts خود سایت، اگر نبود از CDN، اگر آن هم نبود Tahoma */
@font-face {
  font-family: "Vazirmatn";
  src: url("fonts/Vazirmatn-Regular.woff2") format("woff2"),
       url("https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("fonts/Vazirmatn-Medium.woff2") format("woff2"),
       url("https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("fonts/Vazirmatn-Bold.woff2") format("woff2"),
       url("https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("fonts/Vazirmatn-ExtraBold.woff2") format("woff2"),
       url("https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-ExtraBold.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
}

:root {
  --accent: #2B59FF;
  --accent-soft: rgba(43, 89, 255, 0.1);
  --ink: #14161A;
  --text-2: #3B3F46;
  --muted: #5B6068;
  --ground: #F6F5F1;
  --surface: #FFFFFF;
  --line: #E3E1DA;
  --line-soft: #EEEDE8;
  --chip: #F3F4F7;
  --tg-btn: #EEF1F6;
  --ok: #0B7A5E;
  --ok-soft: #E3F4EC;
  --dark: #14161A;
  --dark-text: #B9BDC6;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: "Vazirmatn", Tahoma, system-ui, sans-serif;
  color: var(--ink);
  background: var(--ground);
  line-height: 1.8;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: var(--accent); }
svg { flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
.muted { color: var(--muted); }

.skip {
  position: absolute; right: 16px; top: -60px; z-index: 50;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: clamp(16px, 4vw, 40px);
  padding-right: clamp(16px, 4vw, 40px);
}
.section { padding-top: clamp(64px, 8vw, 104px); padding-bottom: clamp(64px, 8vw, 104px); }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band.no-bottom { border-bottom: 0; }

.split { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.split > * { flex: 1 1 420px; min-width: 0; }
.split.top { align-items: flex-start; }

.eyebrow { font-size: 14px; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
.h1 { font-size: clamp(32px, 5vw, 58px); line-height: 1.3; font-weight: 800; letter-spacing: -0.5px; }
.h2 { font-size: clamp(27px, 3.4vw, 40px); line-height: 1.35; font-weight: 800; }
.lead { margin-top: 14px; font-size: 17px; color: var(--muted); max-width: 40em; }

/* ── دکمه‌ها ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 14px; border: 0;
  background: var(--accent); color: #fff;
  font: inherit; font-weight: 700; font-size: 17px; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: filter .15s ease, background-color .15s ease;
}
.btn:hover { filter: brightness(1.08); color: #fff; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; border-radius: 12px; }
.btn-lg { min-height: 56px; padding: 0 28px; }
.btn-block { display: flex; width: 100%; margin-top: 16px; min-height: 52px; font-size: 16px; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid #D6D3CA; font-weight: 500; }
.btn-ghost:hover { background: #ECEBE6; filter: none; color: var(--ink); }

/* ── هدر ── */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246, 245, 241, 0.94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 21px; white-space: nowrap; }
.brand .logo { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; }
.nav a { color: #4A4F57; text-decoration: none; padding: 8px 0; }
.nav a:hover { color: var(--ink); }

/* ── هیرو ── */
.hero { padding-top: clamp(44px, 7vw, 96px); padding-bottom: clamp(64px, 8vw, 112px); }
.hero .split > .hero-text { flex-basis: 460px; }
.hero .split > .hero-visual { flex-basis: 380px; }
.pill {
  display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 700; margin-bottom: 22px;
}
.hero-sub { margin-top: 20px; font-size: 18px; color: var(--muted); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.checks { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 15px; color: var(--text-2); }
.checks li { display: flex; align-items: center; gap: 8px; }
.checks svg { color: var(--accent); }

/* ── نمونه‌های ربات ── */
.mock { width: 100%; max-width: 440px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 20px;
  box-shadow: 0 28px 60px -30px rgba(20, 22, 26, 0.28);
}
.chat-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); }
.avatar { width: 44px; height: 44px; border-radius: 999px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.avatar.gray { background: #E9E7E0; color: #4A4F57; }
.chat-name { font-weight: 700; font-size: 16px; line-height: 1.4; }
.chat-sub { font-size: 13px; color: var(--muted); line-height: 1.4; text-align: right; }
.bubble { margin-top: 16px; background: var(--chip); border-radius: 16px; padding: 16px 18px; font-size: 15px; }
.bubble-title { font-weight: 700; font-size: 16px; }
.kv { margin-top: 10px; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.progress-label { margin-top: 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 14px; }
.bar { margin-top: 8px; height: 10px; border-radius: 999px; background: #E2E3E8; display: flex; overflow: hidden; }
.bar > span { background: var(--accent); border-radius: 999px; }
.tg-btns { display: flex; gap: 8px; margin-top: 10px; }
.tg-btns.stack { flex-direction: column; }
.tg-btn {
  flex: 1 1 0; min-height: 44px; border-radius: 12px; background: var(--tg-btn); color: var(--ink);
  font-size: 14px; font-weight: 500; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 10px;
}
.tg-btns.stack .tg-btn { min-height: 46px; font-size: 15px; }
.tg-btn.accent { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.toast {
  align-self: flex-start; display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px;
  box-shadow: 0 16px 40px -28px rgba(20, 22, 26, 0.3); line-height: 1.5;
}
.toast.wide { align-self: stretch; padding: 14px 16px; }
.toast-title { font-size: 14px; font-weight: 700; }
.toast.wide .toast-title { font-size: 15px; }
.toast-sub { font-size: 13px; color: var(--muted); }
.ok-dot { width: 36px; height: 36px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); display: flex; align-items: center; justify-content: center; flex: none; }
.ok-dot.lg { width: 40px; height: 40px; }
.flow-arrow { display: flex; justify-content: center; color: #9CA1AB; margin: -4px 0; }
.caption { font-size: 12px; color: var(--muted); text-align: center; }

/* ── مراحل ── */
.steps { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 20px; }
.steps li { flex: 1 1 200px; min-width: 0; background: var(--ground); border-radius: 20px; padding: 24px; }
.num {
  width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent);
  font-weight: 800; font-size: 20px; display: flex; align-items: center; justify-content: center;
}
.steps h3 { margin-top: 18px; font-size: 18px; font-weight: 700; }
.steps p { margin-top: 6px; font-size: 15px; color: var(--muted); }

/* ── فهرست نکته‌ها ── */
.points { margin-top: 28px; display: flex; flex-direction: column; gap: 20px; }
.points li { display: flex; gap: 14px; align-items: flex-start; }
.points li > svg { color: var(--accent); margin-top: 4px; }
.points h3 { font-size: 17px; font-weight: 700; }
.points p { font-size: 15px; color: var(--muted); }
.num-sm {
  flex: none; width: 32px; height: 32px; margin-top: 2px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent); font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* ── امکانات ── */
.features { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 20px; }
.feature { flex: 1 1 300px; min-width: 0; border: 1px solid var(--line); border-radius: 20px; padding: 26px; background: var(--surface); }
.icon-box { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.feature h3 { margin-top: 18px; font-size: 18px; font-weight: 700; }
.feature p { margin-top: 6px; font-size: 15px; color: var(--muted); }

/* ── قیمت ── */
.limits { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.limit { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 18px; line-height: 1.6; }
.limit small { display: block; font-size: 13px; color: var(--muted); }
.limit strong { font-size: 18px; font-weight: 800; }

.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.table-wrap { overflow-x: auto; }
.price-card table { width: 100%; border-collapse: collapse; font-size: 16px; }
.price-card caption { text-align: right; padding: 20px 24px 8px; font-weight: 700; font-size: 17px; }
.price-card th { text-align: right; font-weight: 500; font-size: 14px; color: var(--muted); padding: 10px 24px; border-bottom: 1px solid var(--line-soft); }
.price-card td { padding: 16px 24px; border-bottom: 1px solid var(--line-soft); }
.price-card .end { text-align: left; }
.price-card td.end { font-weight: 700; white-space: nowrap; }
.price-card tr.is-match td { background: var(--accent-soft); }

.calc { padding: 20px 24px 24px; border-top: 1px solid var(--line-soft); }
.calc-title { font-weight: 700; font-size: 16px; }
.calc-fields { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 12px; }
.field { flex: 1 1 160px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; color: var(--text-2); }
.field input {
  min-height: 48px; padding: 0 14px; border: 1px solid #D6D3CA; border-radius: 12px; background: #fff;
  font: inherit; font-size: 16px; color: var(--ink); width: 100%;
}
.field input:focus { border-color: var(--accent); outline: 2px solid var(--accent-soft); outline-offset: 0; }
.calc-out {
  display: block; margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--ground);
  font-size: 15px; color: var(--text-2); line-height: 1.9;
}
.calc-out strong { color: var(--ink); font-size: 17px; }
.calc-out .warn { color: #9A3412; }

.price-empty { padding: 24px; }
.price-empty h3 { font-size: 18px; font-weight: 700; }
.price-empty p { margin-top: 6px; font-size: 15px; color: var(--muted); }
.price-note { background: var(--ground); padding: 16px 24px; font-size: 14px; color: #4A4F57; }

/* ── سوال‌ها ── */
.faq { margin-top: 40px; display: flex; flex-wrap: wrap; column-gap: 56px; }
.qa { flex: 1 1 440px; min-width: 0; padding: 22px 0; border-top: 1px solid var(--line); }
.qa h3 { font-size: 18px; font-weight: 700; }
.qa p { margin-top: 6px; font-size: 15px; color: var(--muted); }

/* ── دعوت آخر و فوتر ── */
.cta { background: var(--dark); color: #fff; }
.cta-row-wrap {
  padding-top: clamp(56px, 7vw, 88px); padding-bottom: clamp(56px, 7vw, 88px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px;
}
.cta-text { flex: 1 1 420px; min-width: 0; }
.cta-text p { margin-top: 12px; font-size: 17px; color: var(--dark-text); }
.cta-action { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.handle { font-size: 15px; color: var(--dark-text); }

.site-footer { background: var(--dark); border-top: 1px solid #2A2D33; color: var(--dark-text); }
.footer-row { padding-top: 24px; padding-bottom: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; font-size: 14px; }
.brand.light { color: #fff; font-size: 18px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
.footer-nav a { color: #C9CDD4; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.footer-nav a:hover { color: #fff; }
.copy { color: #9CA1AB; }

/* ── موبایل ── */
@media (max-width: 880px) {
  .nav { display: none; }
}
@media (max-width: 420px) {
  .brand { font-size: 18px; gap: 8px; }
  .brand .logo { width: 32px; height: 32px; }
  .btn { padding: 0 20px; }
  .cta-row .btn { flex: 1 1 100%; }
  .hero-sub { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
