/* سایت معرفی یارجان (yarajan.com) — صفحه‌های ایستا که مستقیم از بک‌اند سرو می‌شوند (app/static/site). */

@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("vazirmatn-arabic-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("vazirmatn-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #faf7f3;
  --bg-alt: #f3ede6;
  --card: #ffffff;
  --ink: #1d1a26;
  --muted: #625b6e;
  --line: #e8e0d7;
  --accent: #c25f45;
  --accent-ink: #ffffff;
  --accent-soft: #fbe8e1;
  --gold: #b88a3b;
  --note-bg: #fff6e6;
  --note-line: #efd9a8;
  --shadow: 0 1px 2px rgba(29, 26, 38, 0.05), 0 8px 24px rgba(29, 26, 38, 0.06);
  --radius: 18px;
  --wrap: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14121f;
    --bg-alt: #1a1727;
    --card: #1f1c2f;
    --ink: #f3eff8;
    --muted: #aaa3be;
    --line: rgba(255, 255, 255, 0.09);
    --accent: #e8836b;
    --accent-ink: #160b0e;
    --accent-soft: rgba(232, 131, 107, 0.14);
    --gold: #e0b970;
    --note-bg: rgba(224, 185, 112, 0.08);
    --note-line: rgba(224, 185, 112, 0.3);
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Vazirmatn", Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.45; margin: 0; letter-spacing: 0; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.num { font-feature-settings: "ss01"; }

/* ---------- سربرگ ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top__row { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 19px; }
.brand svg { width: 34px; height: 34px; }
.nav { display: none; gap: 4px; margin-inline-start: auto; }
.nav a { color: var(--muted); text-decoration: none; padding: 6px 12px; border-radius: 10px; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--bg-alt); }
.top__cta { margin-inline-start: auto; }
@media (min-width: 860px) { .nav { display: flex; } .top__cta { margin-inline-start: 8px; } }
.subnav { display: flex; gap: 6px; overflow-x: auto; padding: 0 0 10px; scrollbar-width: none; }
.subnav::-webkit-scrollbar { display: none; }
.subnav a { flex: none; color: var(--muted); text-decoration: none; font-size: 14px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; }
.subnav a[aria-current="page"] { color: var(--ink); border-color: var(--ink); }
@media (min-width: 860px) { .subnav { display: none; } }

/* ---------- دکمه‌ها ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 22px; border-radius: 14px;
  font: inherit; font-weight: 700; font-size: 15.5px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform 0.12s ease, background 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { filter: brightness(1.05); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--bg-alt); }
.btn--sm { min-height: 38px; padding: 6px 16px; font-size: 14.5px; border-radius: 12px; }
.btn--block { width: 100%; }

/* ---------- بخش اول ---------- */
.hero { padding: 56px 0 40px; }
.hero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero { padding: 88px 0 64px; } .hero__grid { grid-template-columns: 1.15fr 0.85fr; gap: 56px; } }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 4px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(30px, 6.4vw, 48px); font-weight: 850; }
.hero__lead { font-size: clamp(16.5px, 2.2vw, 18.5px); color: var(--muted); margin: 18px 0 28px; max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; color: var(--muted); font-size: 14.5px; padding: 0; list-style: none; }
.hero__facts li::before { content: "✓"; color: var(--accent); font-weight: 800; margin-inline-end: 6px; }

/* نمونه‌ی گفتگو (تصویرسازی ساده، بدون عکس) */
.demo { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 18px; box-shadow: var(--shadow); }
.demo__head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; font-size: 14px; color: var(--muted); }
.demo__head b { color: var(--ink); font-size: 15px; }
.demo__head svg { width: 30px; height: 30px; }
.bubble { max-width: 86%; padding: 10px 14px; border-radius: 18px; font-size: 14.5px; line-height: 1.8; margin-bottom: 10px; }
.bubble--me { background: var(--bg-alt); margin-inline-start: auto; border-end-end-radius: 6px; }
.bubble--ai { background: var(--accent-soft); border-end-start-radius: 6px; }
.demo__tag { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--gold); margin-bottom: 2px; }
.demo__chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.demo__chips span { font-size: 13px; border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; color: var(--muted); }

/* ---------- بخش‌ها ---------- */
.section { padding: 56px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 40em; margin-bottom: 32px; }
.section__head h2 { font-size: clamp(23px, 4vw, 31px); font-weight: 800; }
.section__head p { color: var(--muted); margin: 10px 0 0; }
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { font-size: 17.5px; font-weight: 800; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }
.icon { width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.icon svg { width: 22px; height: 22px; }

.steps { counter-reset: step; display: grid; gap: 16px; padding: 0; margin: 0; list-style: none; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps li::before { content: counter(step, persian); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--bg); font-weight: 800; margin-bottom: 12px; }
.steps h3 { font-size: 17px; margin-bottom: 4px; }
.steps p { color: var(--muted); font-size: 15px; margin: 0; }

.topics { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.topics li { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 15px; }

.note { background: var(--note-bg); border: 1px solid var(--note-line); border-radius: var(--radius); padding: 20px 22px; }
.note h3 { font-size: 17px; margin-bottom: 6px; }
.note p:last-child { margin: 0; }

/* ---------- تعرفه ---------- */
.plans { display: grid; gap: 16px; }
@media (min-width: 720px) { .plans { grid-template-columns: repeat(2, 1fr); max-width: 820px; } }
.plans--single { max-width: 440px; margin-inline: auto; }
@media (min-width: 720px) { .plans--single { grid-template-columns: 1fr; max-width: 440px; } }
.plan { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; }
.plan--featured { border: 2px solid var(--accent); }
.plan__badge { position: absolute; top: -13px; inset-inline-start: 22px; background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 800; padding: 2px 12px; border-radius: 999px; }
.plan__name { font-weight: 800; font-size: 18px; }
.plan__price { font-size: 32px; font-weight: 850; margin: 8px 0 0; }
.plan__price small { font-size: 16px; font-weight: 600; color: var(--muted); }
.plan__sub { color: var(--muted); font-size: 14.5px; margin-bottom: 18px; }
.plan ul { padding: 0; margin: 0 0 22px; list-style: none; flex: 1; }
.plan li { padding: 6px 0; border-top: 1px dashed var(--line); font-size: 15px; }
.plan li::before { content: "✓"; color: var(--accent); font-weight: 800; margin-inline-end: 8px; }
.pay-facts { display: grid; gap: 10px; margin-top: 24px; padding: 0; list-style: none; color: var(--muted); font-size: 15px; max-width: 820px; }
@media (min-width: 720px) { .pay-facts { grid-template-columns: repeat(2, 1fr); } }
.pay-facts li { display: flex; gap: 10px; }
.pay-facts li span:first-child { flex: none; }

/* ---------- سؤال‌ها ---------- */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; }
.faq summary { cursor: pointer; font-weight: 700; 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: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 0 0 14px; }

/* ---------- صفحه‌های متنی (درباره، تماس، قوانین) ---------- */
.page-head { padding: 48px 0 24px; }
.page-head h1 { font-size: clamp(27px, 5vw, 38px); font-weight: 850; }
.page-head p { color: var(--muted); margin: 10px 0 0; max-width: 40em; }
.prose { padding-bottom: 56px; }
.prose > * { max-width: 760px; }
.prose h2 { font-size: 21px; font-weight: 800; margin: 36px 0 10px; }
.prose ul, .prose ol { padding-inline-start: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: 6px; }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 8px; }
.toc ol { margin: 0; }
.updated { color: var(--muted); font-size: 14px; }

.contact { display: grid; gap: 16px; max-width: 860px; padding-bottom: 56px; }
@media (min-width: 720px) { .contact { grid-template-columns: repeat(2, 1fr); } }
.contact .card b { display: block; font-size: 14px; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.contact .card .val { font-size: 17px; font-weight: 700; color: var(--ink); direction: ltr; unicode-bidi: plaintext; text-align: right; }
.contact .card .val--rtl { direction: rtl; }
.fill { background: #fff1b8; color: #6b4a00; border-radius: 6px; padding: 0 6px; font-weight: 700; }

/* ---------- پاورقی ---------- */
.foot { border-top: 1px solid var(--line); padding: 40px 0 28px; font-size: 14.5px; color: var(--muted); }
.foot__grid { display: grid; gap: 28px; }
@media (min-width: 820px) { .foot__grid { grid-template-columns: 1.4fr 1fr 1fr auto; } }
.foot h4 { margin: 0 0 10px; color: var(--ink); font-size: 15px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 6px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); }
.trust { display: flex; gap: 12px; align-items: flex-start; }
.trust__seal { background: #fff; border-radius: 14px; padding: 6px; display: inline-block; }
.trust__seal img { width: 100px; height: auto; }
.trust__slot { width: 110px; min-height: 110px; border: 1px dashed var(--line); border-radius: 14px; display: grid; place-items: center; text-align: center; font-size: 12px; padding: 8px; background: var(--card); }
.foot__legal { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 13.5px; }
