/* =====================================================================
   Damavand Fund Landings — brand.css
   هویت بصری تامین سرمایه دماوند برای «سکشن دوم به بعد» همه‌ی لندینگ‌ها.
   سکشن اول (ناوبری بالا، هیرو، نوار آمار) همچنان رنگ و تصویر اختصاصی هر صندوق را دارد.
   پالت برند: سرمه‌ای #253d66 · فیروزه‌ای #00dff6 · لاجوردی خاکستری #516f82 · هلویی #ffdeb2
   گرادیان برند: سرمه‌ای ← فیروزه‌ای، ‎۴۵- درجه.   فونت: دماوند (تیتر) و ایران‌سنس.
   با ‎?old‎ در آدرس، این فایل غیرفعال می‌شود تا قبل و بعد قابل مقایسه باشد.
   ===================================================================== */

html.brand {
  --b-navy: #253d66;
  --b-navy-d: #1a2c4d;
  --b-cyan: #00dff6;
  --b-slate: #516f82;
  --b-peach: #ffdeb2;
  --b-bg: #f6f9fc;
  --b-bg-2: #ebf1f7;
  --b-grad: linear-gradient(135deg, #253d66 0%, #1d6a93 62%, #08b4d0 100%);
  --b-block:
    radial-gradient(70% 90% at 100% 100%, rgba(0, 223, 246, 0.5), transparent 62%),
    linear-gradient(135deg, #253d66 0%, #253d66 48%, #1f5a86 100%);
  --b-lines: repeating-linear-gradient(118deg, rgba(150, 200, 255, 0.11) 0 1px, transparent 1px 8px);
}

/* ---------- توکن‌ها: روشن برای سکشن‌ها و ناوبری چسبیده ---------- */
html.brand body .sec,
html.brand body .nav.is-stuck,
html.brand body .nav.is-open {
  --bg: var(--b-bg);
  --bg-2: var(--b-bg-2);
  --bg-3: #ffffff;
  --ink: #253d66;
  --ink-2: #516f82;
  --ink-3: #7f95a5;
  --surface: #ffffff;
  --surface-2: rgba(37, 61, 102, 0.05);
  --line: rgba(37, 61, 102, 0.12);
  --paper: #eef3f9;
  --navy: #253d66;
  --acc-rgb: 8, 150, 176;
  --acc-mid: #00c9e0; --acc-mid-rgb: 0, 201, 224;
  --acc-deep: #0a7f95; --acc-deep-rgb: 10, 127, 149;
  --acc-deep2: #0a8fa8;
  --accent: #0a8fa8;
  --accent-ink: #ffffff;
  --accent-soft: rgba(0, 223, 246, 0.12);
  --accent-line: rgba(10, 143, 168, 0.34);
  --glow: rgba(0, 223, 246, 0.3);
  --grad: var(--b-grad);
  --grad-deep: var(--b-grad);
  --btn-grad: var(--b-grad);
  color: var(--ink);
}

html.brand body .sec { background: var(--b-bg); }
html.brand body .sec--paper { background: var(--b-bg-2); }
html.brand body .perf,
html.brand body .audience,
html.brand body .trust { background: linear-gradient(180deg, var(--b-bg) 0%, var(--b-bg-2) 100%); }
html.brand body .trust { background: linear-gradient(180deg, var(--b-bg-2) 0%, var(--b-bg) 100%); }

/* مرز هیرو و صفحه‌ی برند: لبه‌ی مورب تمیز (مثل قاب کج روی جلد گایدلاین) با خط باریک گرادیان برند،
   به‌جای محوشدگی؛ نوار آمار روی این مرز می‌نشیند. */
html.brand body .hero::before,
html.brand body .hero::after {
  content: ""; position: absolute; z-index: 4; left: 0; right: 0; bottom: -1px;
  height: clamp(26px, 4.2vw, 64px); pointer-events: none;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
html.brand body .hero::before { bottom: 2px; background: linear-gradient(270deg, #253d66, #00dff6); }
html.brand body .hero::after { background: var(--b-bg); }
html.brand body { background: var(--b-bg); }

/* ---------- ناوبری چسبیده: شیشه‌ی سفید برند ---------- */
html.brand body .nav.is-stuck { background: rgba(255, 255, 255, 0.88); box-shadow: 0 1px 0 var(--line), 0 18px 36px -28px rgba(37, 61, 102, 0.35); }
html.brand body .nav.is-stuck .nav__brand img { filter: brightness(0) saturate(100%) invert(21%) sepia(33%) saturate(1560%) hue-rotate(184deg) brightness(93%); }
html.brand body .nav.is-stuck .nav__links a:hover,
html.brand body .nav.is-stuck .nav__links a.is-active { background: rgba(37, 61, 102, 0.07); color: var(--ink); }
html.brand body .nav.is-stuck .nav__burger { background: rgba(37, 61, 102, 0.08); }
html.brand body .nav.is-stuck .nav__links { background: rgba(255, 255, 255, 0.98); }
html.brand body .nav.is-stuck .btn--gold { color: #fff; box-shadow: 0 10px 22px -12px rgba(37, 61, 102, 0.7); }

/* ---------- تیتر، برچسب سکشن، دکمه‌ها ---------- */
html.brand body .sec .eyebrow { color: var(--acc-deep); }
html.brand body .sec .eyebrow::before { width: 34px; height: 3px; opacity: 1; background: linear-gradient(270deg, var(--b-navy), var(--b-cyan)); }
html.brand body .sec .gold-text { color: var(--acc-deep); }
html.brand body .sec .h2 { color: var(--b-navy); }
html.brand body .sec .btn--gold,
html.brand body .nav.is-stuck .btn--gold { background: var(--b-grad); color: #fff; box-shadow: 0 12px 24px -14px rgba(37, 61, 102, 0.75); }
html.brand body .sec .btn--gold:hover { box-shadow: 0 16px 28px -14px rgba(37, 61, 102, 0.85); filter: saturate(1.1); }
html.brand body .sec .btn--navy { background: var(--b-navy); }
html.brand body .sec .btn--glass { background: #fff; color: var(--b-navy); border: 1px solid rgba(37, 61, 102, 0.18); backdrop-filter: none; }
html.brand body .sec .btn--glass:hover { background: var(--b-bg-2); }
html.brand body .seg button[aria-selected="true"] { background: var(--b-grad); color: #fff; box-shadow: 0 8px 18px -10px rgba(37, 61, 102, 0.7); }
html.brand body .presets button:hover,
html.brand body .presets button.is-on { background: var(--b-navy); color: #fff; }
html.brand body .pill--up { color: #0b8a6a; background: rgba(11, 138, 106, 0.1); }
html.brand body .is-up { color: #0b8a6a; }

/* ---------- کارت‌ها ---------- */
html.brand body .feat,
html.brand body .stat,
html.brand body .perf__card,
html.brand body .rtile,
html.brand body .acc details,
html.brand body .calc__form { background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 48px -40px rgba(37, 61, 102, 0.45); }
html.brand body .feat:hover { border-color: var(--accent-line); background: #fff; box-shadow: 0 28px 52px -34px rgba(37, 61, 102, 0.55); }
html.brand body .rtile--hero { background: linear-gradient(135deg, rgba(255, 222, 178, 0.55), rgba(255, 222, 178, 0.12)); border-color: rgba(240, 180, 110, 0.55); }
html.brand body .how__info span { background: rgba(255, 222, 178, 0.35); border-color: rgba(240, 180, 110, 0.5); color: var(--b-navy); }
html.brand body .how__info .i { color: var(--b-navy); }
html.brand body .about__mix { background: rgba(255, 222, 178, 0.35); border: 1px solid rgba(240, 180, 110, 0.5); color: var(--b-slate); }
html.brand body .about__mix b { color: var(--b-navy); }
html.brand body .legend button:hover { background: var(--b-bg-2); }
html.brand body .chart__svg .xhair { stroke: rgba(37, 61, 102, 0.35); }
html.brand body .acc details[open] { border-color: var(--accent-line); }
html.brand body .acc details[open] summary .i { background: var(--b-navy); }
html.brand body .steps .ico::after { background: var(--b-navy); }

/* ---------- جدول مقایسه ---------- */
html.brand body .vs::before { background: linear-gradient(180deg, #fff, #f2fbfd); border: 1.5px solid rgba(0, 201, 224, 0.55); box-shadow: 0 40px 80px -44px rgba(37, 61, 102, 0.55); }
html.brand body .vs__v--good .i { background: var(--b-navy); }
html.brand body .vs__col--new { color: var(--b-navy); }

/* ---------- فرم‌ها ---------- */
html.brand body .sec .field { background: #fff; border-color: var(--line); }
html.brand body .sec .field input,
html.brand body .sec .field select { background: #fff; border-color: rgba(37, 61, 102, 0.16); color: var(--ink); }
html.brand body .sec .field input:focus,
html.brand body .sec .field select:focus { background: #fff; border-color: var(--b-cyan); box-shadow: 0 0 0 4px rgba(0, 223, 246, 0.18); }
html.brand body .sec .field .i { color: var(--b-slate); }
html.brand body .money { background: var(--paper); }
html.brand body .range::-webkit-slider-thumb { border-color: var(--b-navy); box-shadow: 0 4px 12px rgba(37, 61, 102, 0.4); }
html.brand body .range::-moz-range-thumb { border-color: var(--b-navy); }
html.brand body .range { background: linear-gradient(to right, var(--b-navy) var(--p, 10%), rgba(37, 61, 102, 0.12) var(--p, 10%)); }

/* ---------- آیکون‌ها: فقط چهار رنگ برند ---------- */
html.brand body .ico--gold,
html.brand body .ico--coral,
html.brand body .ico--rose { --t1: #ffeccb; --t2: #ffc27a; color: #253d66; --duo: #253d66; --duo-o: 0.22; box-shadow: 0 10px 22px -12px #e6a24d, inset 0 1px 0 rgba(255, 255, 255, 0.6); }
html.brand body .ico--emerald,
html.brand body .ico--teal { --t1: #5cf1ff; --t2: #0cb6d1; color: #06314a; --duo: #06314a; --duo-o: 0.2; }
html.brand body .ico--sky { --t1: #6d8fc4; --t2: #2c4c80; }
html.brand body .ico--violet,
html.brand body .ico--indigo { --t1: #3d5b8e; --t2: #253d66; }
html.brand body .ico--slate { --t1: #86a1b3; --t2: #516f82; }

/* ---------- بلوک‌های سرمه‌ای برند: نتیجه محاسبه‌گر، فرم مشاوره، فوتر ---------- */
html.brand body .calc__result,
html.brand body .leadbox,
html.brand body .foot,
html.brand body .dock {
  --ink: #ffffff;
  --ink-2: rgba(255, 255, 255, 0.78);
  --ink-3: rgba(255, 255, 255, 0.55);
  --line: rgba(255, 255, 255, 0.16);
  --surface: rgba(255, 255, 255, 0.07);
  --surface-2: rgba(255, 255, 255, 0.12);
  --accent: #00dff6;
  --accent-ink: #062a45;
  --acc-deep: #00dff6;
  --glow: rgba(0, 223, 246, 0.35);
  color: var(--ink);
}
html.brand body .sec .calc__result {
  background: var(--b-lines), var(--b-block);
  border: 0;
  box-shadow: 0 40px 70px -44px rgba(37, 61, 102, 0.8);
}
html.brand body .sec .calc__result::after { background: radial-gradient(closest-side, rgba(0, 223, 246, 0.3), transparent); }
html.brand body .sec .leadbox {
  background: var(--b-lines), var(--b-block);
  border: 0;
  box-shadow: 0 50px 90px -50px rgba(37, 61, 102, 0.85);
}
html.brand body .leadbox__media::after { background: linear-gradient(270deg, rgba(37, 61, 102, 0.85), transparent 45%); }
html.brand body .sec .leadbox .gold-text,
html.brand body .sec .leadbox .eyebrow { color: #00dff6; }
html.brand body .sec .leadbox .eyebrow::before { background: linear-gradient(270deg, #fff, #00dff6); }
html.brand body .sec .leadbox .h2 { color: #fff; }
html.brand body .sec .leadbox .field { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); }
html.brand body .sec .leadbox .field input,
html.brand body .sec .leadbox .field select { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); color: #fff; }
html.brand body .sec .leadbox .field input::placeholder { color: rgba(255, 255, 255, 0.55); }
html.brand body .sec .leadbox .field input:focus,
html.brand body .sec .leadbox .field select:focus { background: rgba(255, 255, 255, 0.14); border-color: #00dff6; box-shadow: 0 0 0 4px rgba(0, 223, 246, 0.2); }
html.brand body .sec .leadbox .field select option { background: #253d66; color: #fff; }
html.brand body .sec .leadbox .field select option:checked { background: #00dff6; color: #253d66; }
html.brand body .sec .leadbox .field .i { color: #00dff6; }
html.brand body .sec .leadbox .btn--gold,
html.brand body .sec .calc__result .btn--gold { background: linear-gradient(135deg, #8cf5ff, #00dff6); color: #062a45; box-shadow: 0 12px 26px -12px rgba(0, 223, 246, 0.8); }
html.brand body .sec .leadbox .btn--glass { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: rgba(255, 255, 255, 0.3); }
html.brand body .sec .leadbox .form__alt a { color: #00dff6; }
html.brand body .sec .calc__result .bars .trk { background: rgba(255, 255, 255, 0.08); }

html.brand body .foot {
  background: var(--b-lines), radial-gradient(60% 120% at 100% 100%, rgba(0, 223, 246, 0.28), transparent 62%), #1d3157;
  border-top: 0;
}
html.brand body .foot__links a:hover,
html.brand body .foot .foot__credit:hover { color: #00dff6; }
html.brand body .foot .socials a:hover { background: #00dff6; color: #062a45; }
html.brand body .foot__about img { filter: none; }
html.brand body .dock { background: rgba(29, 49, 87, 0.94); }
html.brand body .dock .btn--gold { background: linear-gradient(135deg, #8cf5ff, #00dff6); color: #062a45; }

/* لوگوی بخش اعتماد روی زمینه‌ی روشن: سرمه‌ای برند */
html.brand body .trust__brand { background: #fff; }
html.brand body .trust__brand img { filter: brightness(0) saturate(100%) invert(21%) sepia(33%) saturate(1560%) hue-rotate(184deg) brightness(93%); }
html.brand body .progress { background: linear-gradient(270deg, #253d66, #00dff6); }

/* اسناد و لینک‌های فوتر */
html.brand body .foot__ext a { border-color: rgba(255, 255, 255, 0.22); color: rgba(255, 255, 255, 0.8); }
html.brand body .foot__ext a:hover { color: #00dff6; border-color: #00dff6; }
html.brand body .foot__docs small { color: rgba(255, 255, 255, 0.55); }

/* موبایل: تصویر ستون صندوق در جدول مقایسه روی متن بالایش نیفتد (override تم‌ها که عرض ۱۹۰ و margin منفی ثابت دارند) */
@media (max-width: 640px) {
  html.brand body .vs__col--new img { width: 92px; margin-top: -8px; }
}

/* ===== UX/دسترس‌پذیری (بدون تغییر ظاهر): لینک پرش به محتوا، حلقه‌ی فوکوس کیبورد، هدف لمسیِ لینک‌های فوتر ===== */
.skip { position: absolute; inset-inline-start: 12px; top: -64px; z-index: 1000; padding: 10px 16px; border-radius: 10px; background: #253d66; color: #fff; font-weight: 700; text-decoration: none; transition: top 0.15s; }
.skip:focus { top: 12px; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [role="tab"]:focus-visible { outline: 3px solid #00dff6; outline-offset: 3px; border-radius: 8px; }
html.brand body .foot__links a, html.brand body .foot__contact a { display: inline-block; padding-block: 8px; margin-block: -8px; }
@media (prefers-reduced-motion: reduce) { .skip { transition: none; } }

/* ===== «مدیر صندوق» جمع‌وجور (درخواست برند: کوتاه‌تر و کم‌شلوغ‌تر؛ متن‌ها و ساختار بدون تغییر) ===== */
html.brand body .trust { padding-block: clamp(40px, 5vw, 64px); }
html.brand body .trust__top { gap: 24px; }
html.brand body .trust__brand { width: 120px; box-shadow: none; }
html.brand body .trust__text .h2 { font-size: clamp(22px, 2.6vw, 30px); }
html.brand body .trust__text .lead { font-size: 15px; line-height: 2; margin-top: 6px; max-width: 760px; }
html.brand body .trust .stats { grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; overflow: hidden; box-shadow: 0 10px 28px -22px rgba(37, 61, 102, 0.35); }
html.brand body .trust .stat { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 14px 18px; border: 0; border-radius: 0; background: none; box-shadow: none; }
html.brand body .trust .stat + .stat { border-inline-start: 1px solid var(--line); }
html.brand body .trust .stat .ico { grid-row: 1 / span 2; width: 38px; height: 38px; border-radius: 12px; }
html.brand body .trust .stat .ico .i { width: 19px; height: 19px; }
html.brand body .trust .stat b { margin: 0; font-size: 20px; line-height: 1.5; }
html.brand body .trust .stat small { font-size: 12.5px; line-height: 1.6; }
@media (max-width: 980px) {
  html.brand body .trust__brand { width: 96px; }
  html.brand body .trust .stats { grid-template-columns: repeat(2, 1fr); }
  html.brand body .trust .stat:nth-child(3) { border-inline-start: 0; }
  html.brand body .trust .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
