/* بزخر — وب‌سایت (RTL) — زرد لوگو + جوهری تیره؛ سبز فقط برای «صرفه‌جویی» */
:root {
  --brand: #fdb801; --brand-hover: #f0ab00; --brand-soft: #fff4d1; --on-brand: #1a1612;
  --bg: #fbf7ef; --surface: #fff; --surface-2: #f5efe3; --ink: #1a1612; --muted: #776d5d; --border: #ebe2d0;
  --save: #11914e; --danger: #cf3a2c; --danger-soft: #fce9e6; --warn: #9c5800; --warn-soft: #fff0d4; --skeleton: #efe8da;
  --shadow-sm: 0 1px 2px rgb(26 22 18 / 0.06); --shadow-md: 0 12px 32px -14px rgb(26 22 18 / 0.3); --shadow-lg: 0 30px 60px -24px rgb(26 22 18 / 0.4);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --brand-soft: #3a2d06; --bg: #12100c; --surface: #1c1914; --surface-2: #26221b; --ink: #f6efe1; --muted: #a99f8c; --border: #322c22;
    --save: #42d690; --danger: #ff7d6e; --danger-soft: #3b1a15; --warn: #f6c262; --warn-soft: #3a2b0f; --skeleton: #2a251d;
    --shadow-md: 0 12px 32px -14px rgb(0 0 0 / 0.6); --shadow-lg: 0 30px 60px -24px rgb(0 0 0 / 0.7);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --brand-soft: #3a2d06; --bg: #12100c; --surface: #1c1914; --surface-2: #26221b; --ink: #f6efe1; --muted: #a99f8c; --border: #322c22;
  --save: #42d690; --danger: #ff7d6e; --danger-soft: #3b1a15; --warn: #f6c262; --warn-soft: #3a2b0f; --skeleton: #2a251d;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.75 'Vazirmatn', Tahoma, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button, input, select { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: var(--ink); color: var(--brand); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* ---------- برند ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand-logo { width: 44px; height: 44px; border-radius: 14px; background: var(--brand); box-shadow: inset 0 0 0 2px #1a1612; overflow: hidden; flex: none; }
.brand-logo img { width: 100%; height: 100%; transform: translateY(2px) scale(1.12); }
.brand-logo.small { width: 30px; height: 30px; border-radius: 10px; }
.brand-name { font-weight: 900; font-size: 22px; letter-spacing: -0.3px; }

/* ---------- قهرمان ---------- */
.hero { position: relative; background: var(--brand); color: #1a1612; padding: 0 20px 72px; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0.14;
  background-image: radial-gradient(#1a1612 1.3px, transparent 1.5px); background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at 20% 40%, #000 0%, transparent 65%);
}
.hero::after { content: ''; position: absolute; z-index: 2; inset: auto 0 -1px; height: 40px; background: var(--bg); border-radius: 40px 40px 0 0; }
.nav { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.nav-link { color: inherit; font-weight: 800; font-size: 14px; text-decoration: none; padding: 6px 14px; border-radius: 999px; border: 2px solid #1a1612; transition: background 0.15s ease, color 0.15s ease; }
.nav-link:hover { background: #1a1612; color: var(--brand); }

.hero-grid { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 24px; padding-top: 16px; }
.pill { display: inline-block; font-size: 13px; font-weight: 800; padding: 4px 14px; border-radius: 999px; background: #1a1612; color: var(--brand); }
.hero h1 { font-size: clamp(48px, 9vw, 104px); font-weight: 900; line-height: 1.05; letter-spacing: -2px; margin: 18px 0 14px; }
.lead { margin: 0 0 26px; max-width: 560px; font-size: clamp(15px, 1.8vw, 17.5px); font-weight: 500; opacity: 0.85; }

.search {
  display: flex; align-items: center; gap: 8px; max-width: 600px; padding: 7px; padding-inline-start: 18px; border-radius: 20px;
  background: #fff; color: #1a1612; box-shadow: 0 0 0 2.5px #1a1612, 6px 6px 0 #1a1612; transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.search:focus-within { transform: translate(-2px, -2px); box-shadow: 0 0 0 2.5px #1a1612, 8px 8px 0 #1a1612; }
.search > svg { flex: none; color: #776d5d; }
.search input { flex: 1; min-width: 0; border: 0; outline: none; background: none; padding: 10px 0; font-size: 16px; color: #1a1612; }
.search input::placeholder { color: #9a8f7c; }
.search input::-webkit-search-cancel-button { display: none; }
.search button {
  border: 0; border-radius: 14px; padding: 12px 26px; background: #1a1612; color: var(--brand); font-weight: 900; font-size: 16px;
  cursor: pointer; transition: transform 0.15s var(--ease);
}
.search button:hover { transform: scale(1.04); }
.search button:active { transform: scale(0.97); }

.examples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; max-width: 600px; }
.example {
  border: 1.5px solid rgb(26 22 18 / 0.35); background: rgb(255 255 255 / 0.35); color: #1a1612; border-radius: 999px;
  padding: 3px 14px; font-size: 13px; font-weight: 600; cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease;
}
.example:hover { background: #fff; border-color: #1a1612; }

/* بدن ماسکوت در تصویر اصلی بریده شده — هنر به لبه پایین هدر چسبیده و زیر منحنی پایان می‌یابد */
.hero-art { position: relative; justify-self: center; align-self: end; width: min(100%, 460px); aspect-ratio: 1; margin-bottom: -72px; }
.art-blob { position: absolute; inset: 6% 8% 14%; border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%; background: #fff3c4; box-shadow: inset 0 0 0 3px #1a1612; animation: morph 12s ease-in-out infinite; }
.hero-art img { position: relative; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 16px 20px rgb(26 22 18 / 0.25)); }
.float-card {
  position: absolute; z-index: 1; background: #fff; color: #1a1612; border-radius: 14px; padding: 8px 14px; font-size: 13px; font-weight: 700;
  box-shadow: 0 0 0 2px #1a1612, 4px 4px 0 #1a1612; white-space: nowrap; display: flex; align-items: center; gap: 8px;
}
.float-card b { font-size: 16px; font-weight: 900; }
.fc-1 { top: 14%; right: -4%; animation: bob 4.5s ease-in-out infinite reverse; }
.fc-2 { bottom: 12%; left: -2%; animation: bob 5.5s ease-in-out infinite; }
.fc-dot { width: 9px; height: 9px; border-radius: 50%; background: #11914e; box-shadow: 0 0 0 3px #e2f5e9; }
@keyframes bob { 50% { transform: translateY(-10px); } }
@keyframes morph { 50% { border-radius: 55% 45% 42% 58% / 42% 55% 45% 58%; } }

@media (max-width: 820px) {
  .hero { padding-bottom: 56px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .examples { justify-content: center; }
  .hero-art { width: min(80vw, 320px); margin: 12px auto -56px; }
  .float-card { font-size: 11.5px; padding: 6px 10px; }
  .float-card b { font-size: 13px; }
  .search { width: 100%; }
}
@media (max-width: 480px) {
  .hero { padding-inline: 16px; }
  .search button { padding: 10px 18px; }
  .nav-link { display: none; }
}

/* ---------- نتایج زنده ---------- */
.main { max-width: 1120px; margin: 0 auto; padding: 8px 20px 0; }
.main:has(#status:not([hidden])) { padding-top: 24px; padding-bottom: 32px; }
.status { margin-bottom: 10px; scroll-margin-top: 16px; }
#status-text { color: var(--muted); font-size: 14px; font-weight: 600; }
.track { height: 5px; background: var(--skeleton); border-radius: 5px; overflow: hidden; margin: 8px 0; }
.bar { height: 100%; width: 0; border-radius: 5px; transition: width 0.35s var(--ease); background: linear-gradient(90deg, var(--brand), #ffd34d, var(--brand)); background-size: 200% 100%; animation: flow 1.4s linear infinite; }
.bar.done { animation: none; opacity: 0.45; }
@keyframes flow { to { background-position: -200% 0; } }
.engines { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 1px 10px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--muted);
}
.chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--border); }
.chip.ok { color: var(--ink); }
.chip.ok::before { background: var(--c, var(--save)); }
.chip.error { color: var(--danger); }
.chip.error::before { background: var(--danger); }
.chip.pending::before { background: var(--brand); animation: blink 1s infinite; }
.chip.skipped, .chip.empty { opacity: 0.55; }
@keyframes blink { 50% { opacity: 0.3; } }

.toolbar { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin: 16px 0 6px; flex-wrap: wrap; }
.segmented { display: flex; background: var(--surface-2); border-radius: 13px; padding: 3px; gap: 2px; }
.seg { border: 0; background: none; padding: 3px 14px; border-radius: 10px; cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 600; }
.seg.active { background: var(--surface); color: var(--ink); font-weight: 800; box-shadow: var(--shadow-sm); }
#sort { border: 1px solid var(--border); background: var(--surface); border-radius: 12px; padding: 5px 12px; font-size: 13px; font-weight: 600; }
.summary {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 800; margin: 8px 0 14px; padding: 6px 14px; border-radius: 12px;
  background: var(--brand); color: #1a1612;
}

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.card {
  position: relative; display: flex; gap: 12px; padding: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  color: inherit; text-decoration: none; min-height: 118px; transition: border-color 0.15s ease, transform 0.2s var(--ease), box-shadow 0.2s ease;
}
a.card:hover { border-color: color-mix(in srgb, var(--brand) 70%, var(--border)); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card.out { opacity: 0.55; }
.card.best { border: 2px solid var(--brand); padding: 9px; box-shadow: 0 14px 30px -18px var(--brand); }
.best-flag { position: absolute; top: -11px; inset-inline-end: 16px; background: var(--brand); color: #1a1612; font-size: 11px; font-weight: 900; padding: 1px 10px 2px; border-radius: 999px; box-shadow: 0 0 0 2px var(--bg); }
.media { width: 96px; height: 96px; flex: none; border-radius: 14px; background: #fff; overflow: hidden; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
.media:empty { background: var(--surface-2) url('/brand/goat-head-192.png') center / 44px no-repeat; filter: grayscale(1); opacity: 0.5; }
.media img { width: 100%; height: 100%; object-fit: contain; }
.body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.title { font-size: 13.5px; font-weight: 600; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shop { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.shop b { color: var(--ink); font-weight: 800; }
.src { font-size: 11px; font-weight: 700; padding: 0 7px; border-radius: 7px; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); }
.tags { display: flex; gap: 4px; flex-wrap: wrap; }
.tag { font-size: 11px; font-weight: 600; padding: 0 7px; border-radius: 7px; background: var(--surface-2); color: var(--muted); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.out { background: var(--danger-soft); color: var(--danger); }
.price { margin-top: auto; font-weight: 900; font-size: 18px; letter-spacing: -0.3px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.price small { font-weight: 500; font-size: 12px; color: var(--muted); letter-spacing: 0; }
.price s { font-size: 12px; font-weight: 500; color: var(--muted); }
.skeleton { min-height: 118px; background: linear-gradient(90deg, var(--surface), var(--skeleton), var(--surface)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.notice { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 32px; }
.notice strong { display: block; color: var(--ink); font-size: 17px; }

/* ---------- منابع ---------- */
.sources { max-width: 1120px; margin: 40px auto 0; padding: 0 20px; text-align: center; }
.sources-label { margin: 0 0 12px; color: var(--muted); font-size: 13px; font-weight: 700; }
.sources-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.sources-row span { padding: 6px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 800; font-size: 14px; }

/* ---------- بخش‌ها ---------- */
.section { max-width: 1120px; margin: 0 auto; padding: 64px 20px 0; }
.section-title { font-size: clamp(24px, 3.6vw, 36px); font-weight: 900; letter-spacing: -0.5px; text-align: center; margin: 0 0 28px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.steps li { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 22px 22px 20px; }
.step-num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--brand); color: #1a1612;
  font-weight: 900; font-size: 20px; box-shadow: inset 0 0 0 2px #1a1612; margin-bottom: 12px; transform: rotate(-6deg);
}
.steps h3, .feature h3 { margin: 0 0 4px; font-size: 18px; font-weight: 900; }
.steps p, .feature p { margin: 0; color: var(--muted); font-size: 14px; }

.features { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 14px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 24px; }
.feature-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--ink); margin-bottom: 14px; }
.feature-dark { background: #1a1612; color: #f6efe1; border-color: #1a1612; }
.feature-dark p { color: #c9bfae; }
.feature-dark .feature-icon { background: var(--brand); color: #1a1612; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }

/* ---------- پاورقی ---------- */
.foot { max-width: 1120px; margin: 72px auto 0; padding: 24px 20px 40px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; }
.foot-brand { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.foot-slogan { font-size: 12px; font-weight: 800; padding: 2px 10px; border-radius: 999px; background: #1a1612; color: var(--brand); }
.foot p { margin: 0; color: var(--muted); font-size: 12.5px; }

/* ---------- صفحه خوش‌آمد ---------- */
.welcome-hero { text-align: center; }
.welcome-hero .hero-copy { display: flex; flex-direction: column; align-items: center; max-width: 720px; margin: 0 auto; }
.welcome-logo { width: 132px; height: 132px; border-radius: 38px; box-shadow: 0 0 0 3px #1a1612, 8px 8px 0 #1a1612; transform: rotate(-5deg); margin: 8px auto 24px; }
.welcome-hero h1 { font-size: clamp(34px, 6vw, 64px); }
.cta { display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px; border-radius: 16px; background: #1a1612; color: var(--brand); font-weight: 900; text-decoration: none; font-size: 16px; }
.cta:hover { opacity: 0.92; }
.cta-row { text-align: center; margin: 32px 0 0; }
.disclosure { max-width: 720px; margin: 28px auto 0; padding: 14px 18px; border-radius: 16px; background: var(--surface-2); color: var(--muted); font-size: 13.5px; text-align: center; }
.foot a, .disclosure a, .feature a { color: inherit; font-weight: 800; text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.feature-dark a { color: var(--brand); text-decoration-color: currentColor; }

/* ---------- صفحه متنی (حریم خصوصی) ---------- */
.page-hero { padding-bottom: 64px; }
.page-hero-copy { max-width: 760px; margin: 0 auto; padding: 24px 0 8px; }
.page-hero h1 { font-size: clamp(36px, 6vw, 64px); }
.prose { max-width: 760px; margin: 0 auto; padding: 8px 20px 0; }
.prose section { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 22px 26px; margin-bottom: 14px; }
.prose h2 { font-size: 22px; font-weight: 900; margin: 0 0 6px; }
.prose h3 { font-size: 16px; font-weight: 800; margin: 18px 0 2px; }
.prose p, .prose li { color: var(--muted); font-size: 14.5px; }
.prose p { margin: 4px 0 8px; }
.prose ul { margin: 4px 0 8px; padding-inline-start: 20px; }
.prose li { margin: 4px 0; }
.prose li::marker { color: var(--brand); }
.prose strong { color: var(--ink); }
.section.tight { padding-top: 24px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
