/* sobhan.group — مشکی، مینیمال، موبایل‌محور (PDF: «طراحی بر مبنای گوشی؛ تیتر بزرگ، خلوت اما خوانا») */
@font-face {
  font-family: Vazirmatn;
  src: url('/fonts/Vazirmatn[wght].woff2') format('woff2-variations'), url('/fonts/Vazirmatn[wght].woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --surface-2: #1c1c1c;
  --line: #2a2a2a;
  --text: #f2f2f2;
  --muted: #9b9b9b;
  --faint: #8a8a8a; /* ۵٫۷:۱ روی زمینه — #6d6d6d زیر AA بود */
  --accent: #f2f2f2;
  --accent-ink: #0a0a0a;
  --ok: #7ad19b;
  --bad: #ff8a80;
  --radius: 16px;
  --gutter: 20px;
  --wrap: 640px; /* عرض ستون محتوا؛ صفحه‌های پهن‌تر روی body عوضش می‌کنند و سربرگ هم با همین هم‌تراز می‌شود */
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Vazirmatn, Tahoma, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.9;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter) 48px; }
body.is-admin { --wrap: 980px; }
body.wide { --wrap: 960px; }
body.home { --wrap: 1120px; }
a { color: inherit; }
a, button, summary, label, select { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible, .menu summary:focus-visible { border-radius: 999px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 20; padding: 10px 16px; border-radius: 10px; background: var(--text); color: var(--accent-ink); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
img, video, iframe { max-width: 100%; }
h1, h2, h3 { line-height: 1.35; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 8.5vw, 52px); }
h2 { font-size: clamp(22px, 6vw, 30px); margin-top: 1.6em; }
h3 { font-size: 21px; }
p { margin: 0 0 1em; }
small { font-size: .8em; color: var(--muted); font-weight: 400; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hint { color: var(--muted); font-size: 14px; display: block; }
.ok { color: var(--ok); }
.center { text-align: center; }

/* ---- سربرگ ---- */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 14px var(--gutter);
  /* لبهٔ لوگو و منو با لبهٔ ستون محتوا در یک خط؛ روی موبایل همان gutter */
  padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
  background: rgba(10, 10, 10, .86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #161616;
}
.brand { font-weight: 900; font-size: 19px; text-decoration: none; letter-spacing: -.01em; }
.brand small { font-weight: 500; margin-inline-start: 6px; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; border-radius: 12px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu[open] summary span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu[open] summary span:nth-child(2) { opacity: 0; }
.menu[open] summary span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu nav {
  position: absolute; inset-inline-end: 0; top: 52px; min-width: 230px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px; display: flex; flex-direction: column; box-shadow: 0 20px 50px rgba(0, 0, 0, .6);
}
.menu nav a, .menu nav .linklike { display: block; padding: 12px 14px; border-radius: 10px; text-decoration: none; font-size: 16px; text-align: start; }
.menu nav a:hover, .menu nav .linklike:hover, .menu nav a[aria-current] { background: var(--surface-2); }
.menu nav a[aria-current] { font-weight: 700; }

/* منوی افقی دسکتاپ؛ روی موبایل همان همبرگر می‌ماند */
.nav-inline { display: none; align-items: center; gap: 4px; }
.nav-inline a:not(.btn), .nav-inline .linklike { padding: 8px 14px; border-radius: 999px; text-decoration: none; font-size: 15px; color: var(--muted); transition: color .15s, background .15s; width: auto; }
.nav-inline a:not(.btn):hover, .nav-inline .linklike:hover { color: var(--text); background: var(--surface-2); }
.nav-inline a[aria-current]:not(.btn) { color: var(--text); background: var(--surface-2); font-weight: 700; }
.nav-inline form { margin: 0; }
.nav-inline .btn { margin: 0 8px 0 0; }
@media (min-width: 960px) {
  body:not(.is-admin) .nav-inline { display: flex; }
  body:not(.is-admin) .menu { display: none; }
}
@media (min-width: 1180px) {
  body.is-admin .nav-inline { display: flex; }
  body.is-admin .menu { display: none; }
}
.menu nav form { margin: 0; }
.linklike { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; width: 100%; }

.flash { max-width: 600px; margin: 16px auto 0; padding: 14px 18px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 15px; }
.flash.ok { border-color: #2d5a3d; }
.flash.error { border-color: #6b2b2b; color: #ffd2cd; }
.flash a { color: #fff; font-weight: 700; }
main > .flash { margin-inline: 0; }

/* ---- دکمه ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--text);
  transition: transform .12s, background .2s, opacity .2s;
  margin: 4px 0;
}
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.block { display: flex; width: 100%; }
.btn.small { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn.ok { border-color: #2d5a3d; color: var(--ok); }
.btn.danger { border-color: #6b2b2b; color: var(--bad); }
.btn[disabled] { opacity: .55; }
.arrow { font-weight: 400; }

/* ---- صفحهٔ اصلی ---- */
.hero { padding: 10vh 0 6vh; }
.eyebrow { color: var(--muted); font-size: 14px; letter-spacing: .06em; margin-bottom: 14px; }
.hero h1 { font-size: clamp(38px, 11vw, 68px); font-weight: 900; line-height: 1.22; }
.lead { color: #c9c9c9; font-size: 18px; }
.hero .lead { margin: 18px 0 30px; }
.video { margin: 0 0 8vh; }
.video-ph, .video-frame, .video video {
  aspect-ratio: 9 / 16; max-height: 78vh; width: 100%; border-radius: 22px;
  background: radial-gradient(120% 80% at 50% 0%, #222 0%, #121212 60%); border: 1px solid var(--line);
}
.video-ph { aspect-ratio: 16 / 10; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--muted); font-size: 15px; }
.play { width: 74px; height: 74px; border-radius: 50%; border: 1.5px solid #555; position: relative; }
.play::after { content: ''; position: absolute; inset: 0; margin: auto; width: 0; height: 0; border-style: solid; border-width: 12px 0 12px 19px; border-color: transparent transparent transparent #ddd; transform: translateX(3px); }
.video-frame { overflow: hidden; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.trust { padding: 4vh 0 8vh; }
.trust h2 { font-size: clamp(26px, 7.5vw, 40px); font-weight: 800; margin: 0; }
.section-title { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: .04em; margin: 0 0 18px; }

.funnels { display: grid; gap: 14px; padding-bottom: 8vh; }
.funnel {
  display: block; padding: 26px 22px; border-radius: 22px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, transform .15s;
}
.funnel:hover { border-color: #444; }
.funnel:active { transform: scale(.99); }
.funnel .num { color: var(--faint); font-size: 13px; font-weight: 700; }
.funnel h3 { font-size: 30px; font-weight: 900; margin: 6px 0 8px; }
.funnel p { color: #bdbdbd; font-size: 16px; }
.funnel .go { font-weight: 700; font-size: 15px; }
.funnel.accent { background: var(--text); color: var(--accent-ink); border-color: var(--text); }
.funnel.accent p { color: #333; }
.funnel.accent .num { color: #555; }

.migration { padding-bottom: 8vh; }
.steps { list-style: none; padding: 0; margin: 0 0 22px; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 18px 54px 18px 0; border-top: 1px solid var(--line); display: grid; }
.steps li::before { content: counter(s, persian); position: absolute; inset-inline-start: 0; top: 16px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid #444; display: grid; place-content: center; font-weight: 800; }
.steps b { font-size: 19px; }
.steps span { color: var(--muted); font-size: 15px; }

.opps-teaser { padding-bottom: 8vh; }
.pool { padding: 28px 22px; border-radius: 22px; border: 1px dashed #3a3a3a; margin-bottom: 4vh; }
.pool h2 { margin-top: 0; font-size: 24px; }
.pool p { color: #bdbdbd; }

/* ---- کارت موقعیت ---- */
.card { display: block; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; margin-bottom: 12px; transition: border-color .2s; }
.card:hover { border-color: #444; }
.card h3 { margin-bottom: 4px; }
.card p { color: #bdbdbd; font-size: 15px; margin-bottom: 8px; }
.meta { color: var(--muted); font-size: 14px; }
.card .meta { color: var(--muted); }
.price { display: flex; justify-content: space-between; align-items: center; font-weight: 800; color: var(--text) !important; margin: 0 !important; }
.price.big { font-size: 26px; display: block; margin: 8px 0 18px !important; }
.price .go { font-weight: 600; font-size: 14px; color: var(--muted); }
.empty { padding: 26px; border-radius: var(--radius); background: var(--surface); color: #bdbdbd; }

/* ---- صفحه‌های داخلی ---- */
.page { padding-top: 6vh; }
.page.narrow { max-width: 460px; margin: 0 auto; }
.back { display: inline-block; color: var(--muted); text-decoration: none; font-size: 15px; margin-bottom: 18px; }
.prose p { color: #d2d2d2; }
.apply { position: sticky; bottom: 0; padding: 16px 0 calc(16px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bg) 70%, transparent); margin-top: 24px; }
.note { padding: 16px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.check { width: 84px; height: 84px; border-radius: 50%; background: var(--text); color: var(--bg); display: grid; place-content: center; font-size: 42px; margin: 4vh auto 20px; font-weight: 900; }
.code-box { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); margin: 20px 0; }
.code-box span { color: var(--muted); font-size: 14px; }
.code-box b { font-size: 22px; letter-spacing: .08em; }
.page.center .btn { width: 100%; }

.list { list-style: none; padding: 0; margin: 0 0 14px; }
.list li { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.list a { text-decoration: none; font-weight: 600; }
.badge { display: inline-block; font-size: 12.5px; padding: 3px 11px; border-radius: 999px; border: 1px solid #444; color: #ccc; white-space: nowrap; font-weight: 600; }
.badge.on { border-color: #2d5a3d; color: var(--ok); }
.badge.off { border-color: #5a2d2d; color: var(--bad); }
.facts { display: grid; grid-template-columns: 1fr; gap: 2px 18px; margin: 0 0 18px; }
.facts dt { color: var(--muted); font-size: 13.5px; margin-top: 12px; }
.facts dd { margin: 0; font-weight: 600; }

/* ---- فرم ---- */
input, select, textarea {
  font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 14px; width: 100%; min-height: 50px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: #8a8a8a; box-shadow: 0 0 0 3px rgba(242, 242, 242, .12); }
input.big, select.big { font-size: 19px; min-height: 60px; padding: 14px 18px; }
input.code { font-size: 30px; letter-spacing: .5em; text-align: center; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #999 50%), linear-gradient(135deg, #999 50%, transparent 50%); background-position: 18px 50%, 24px 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-left: 40px; }
input[type=checkbox], input[type=radio] { width: auto; min-height: 0; }
textarea { min-height: 120px; resize: vertical; }
label { display: grid; gap: 6px; font-size: 15px; color: #cfcfcf; }
label.inline { display: flex; align-items: center; gap: 10px; }
.stack { display: grid; gap: 14px; }
.stack > h2 { margin-bottom: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 700; font-size: 17px; padding: 0; margin-bottom: 10px; }
.q { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.q legend { float: right; width: 100%; }
/* کد کشور جمع‌وجور تا روی گوشی ۳۲۰px هم ۱۰ رقم شماره جا شود؛ ۱۶px تا iOS روی فوکوس زوم نکند */
.phone { display: grid; grid-template-columns: minmax(118px, 34%) 1fr; gap: 10px; }
.phone select { font-size: 16px; }
.date { display: grid; grid-template-columns: 1fr 1.4fr 1.2fr; gap: 10px; }
.date select { font-size: 18px; min-height: 60px; }
@media (max-width: 400px) {
  /* سه select کنار هم در گوشی کوچک: فلش نزدیک‌تر به لبه تا «اردیبهشت» بریده نشود */
  .date { gap: 8px; }
  .date select { font-size: 16px; padding-inline: 10px 26px; background-position: 12px 50%, 18px 50%; }
}
.other, .country-other, .city { margin-top: 10px; }

.opts { display: grid; gap: 10px; }
.opt { display: block; cursor: pointer; color: var(--text); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span {
  display: block; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--surface); font-size: 16.5px; line-height: 1.7; transition: border-color .15s, background .15s;
}
.opt span small { display: block; margin-top: 2px; }
.opt:hover span { border-color: #4a4a4a; }
.opt input:checked + span { background: var(--text); color: var(--accent-ink); border-color: var(--text); font-weight: 700; }
.opt input:checked + span small { color: #444; }
.opt input:focus-visible + span { outline: 2px solid #888; outline-offset: 2px; }

/* ---- ویزارد ---- */
.wizard-wrap { padding-top: 4vh; }
.progress { height: 4px; background: var(--surface-2); border-radius: 4px; overflow: hidden; margin-bottom: 4vh; display: none; }
.progress span { display: block; height: 100%; width: 0; background: var(--text); transition: width .3s ease; }
.wizard .step { padding: 20px 0; border-bottom: 1px solid var(--line); }
.wizard .count { color: var(--faint); font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.wizard .step h2 { font-size: clamp(26px, 7.5vw, 36px); margin: 0 0 18px; }
.wizard .err { color: var(--bad); margin-top: 12px; font-size: 15px; }
.wizard-nav { display: flex; gap: 10px; justify-content: space-between; padding: 22px 0; }
.wizard-nav [data-prev], .wizard-nav [data-next] { display: none; }
.wizard.js .progress { display: block; }
.wizard.js .step { display: none; border: 0; padding: 0; animation: rise .28s ease; }
.wizard.js .step.current { display: block; }
.wizard.js .wizard-nav {
  position: sticky; bottom: 0; padding: 18px 0 calc(18px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 75%, transparent); margin-top: 26px;
}
.wizard.js .wizard-nav [data-prev], .wizard.js .wizard-nav [data-next] { display: inline-flex; }
.wizard.js .wizard-nav [data-next], .wizard.js .wizard-nav [data-submit] { flex: 1; }
.wizard .wizard-nav [hidden] { display: none !important; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.journey .contract { padding: 16px; border-radius: 14px; border: 1px dashed #3a3a3a; display: grid; gap: 8px; }
.journey .contract[hidden] { display: none; }

/* ---- پاورقی ---- */
.foot { border-top: 1px solid #161616; padding: 26px var(--gutter) calc(26px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; color: var(--muted); font-size: 14px; }
.foot a { text-decoration: none; }

/* ---- پنل ادمین ---- */
.admin h1 { font-size: clamp(26px, 6vw, 36px); margin-top: 24px; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tile { padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; display: grid; }
.tile b { font-size: 32px; font-weight: 900; line-height: 1.3; }
.tile span { color: var(--muted); font-size: 14px; }
.rows { display: grid; gap: 8px; }
.row { display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; }
a.row:hover { border-color: #444; }
.row .actions { display: flex; gap: 8px; margin-top: 8px; }
.row .actions form { margin: 0; }
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 16px; margin-bottom: 14px; }
.filters summary { cursor: pointer; padding: 14px 0; font-weight: 700; }
.filter-form { display: grid; gap: 14px; padding-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips legend { width: 100%; font-size: 15px; margin-bottom: 4px; }
.chips label { display: inline-block; }
.chips input { position: absolute; opacity: 0; }
.chips span { display: inline-block; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 13.5px; cursor: pointer; color: #ccc; }
.chips input:checked + span { background: var(--text); color: var(--bg); border-color: var(--text); }
.chips input:focus-visible + span { outline: 2px solid #888; }
.filter-inline { display: flex; gap: 10px; margin-bottom: 12px; }
.reqs { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 12px; }
.danger-zone { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.health { display: flex; gap: 8px; margin-bottom: 8px; }
.thread { display: grid; gap: 10px; margin-bottom: 20px; }
.msg { padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.msg.from-admin { background: var(--surface-2); border-color: #3a3a3a; }
.msg .who { color: var(--muted); font-size: 13px; margin-bottom: 4px; }

/* ---- کارت‌ها در شبکه ---- */
.cards { display: grid; gap: 12px; margin-bottom: 12px; }
.cards .card { margin: 0; display: flex; flex-direction: column; }
.cards .card .price { margin-top: auto !important; padding-top: 6px; }

@media (min-width: 760px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .facts { grid-template-columns: 220px 1fr; }
  .facts dt { margin-top: 0; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .facts dd { padding: 8px 0; border-bottom: 1px solid var(--line); }
  .row { grid-template-columns: 1.4fr 1.2fr 1fr auto; align-items: center; gap: 12px; }
  .row.app { grid-template-columns: 1fr 1fr auto; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.row .badge { justify-self: start; }

/* ---- صفحهٔ اصلی روی دسکتاپ: ستون ۶۴۰ پیکسلی موبایل کش نمی‌آید، بخش‌ها چیده می‌شوند ---- */
@media (min-width: 960px) {
  .hero { padding: 14vh 0 10vh; max-width: 820px; }
  .hero .lead { max-width: 640px; font-size: 19px; }
  .funnels { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .funnels .section-title { grid-column: 1 / -1; }
  .funnel { display: flex; flex-direction: column; padding: 30px 26px; }
  .funnel p { flex: 1; }
  .video { max-width: 820px; margin-inline: auto; }
  .trust { max-width: 820px; padding: 6vh 0 10vh; }
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 28px; }
  .home .cards { grid-template-columns: repeat(3, 1fr); }
  .pool { display: grid; grid-template-columns: 1fr auto; gap: 8px 40px; align-items: center; padding: 34px 36px; }
  .pool h2, .pool p { grid-column: 1; margin-bottom: 0; }
  .pool .btn { grid-column: 2; grid-row: 1 / span 2; }
}
@media (hover: hover) {
  .funnel:hover { transform: translateY(-2px); }
}
