/* ===== کاتالوگ تبلیغاتی کارکور — سند A4 برای چاپ و PDF =====
   جدا از promo.css است چون آنجا کارت‌های مربعِ شبکه‌های اجتماعی‌اند و
   اینجا برگه‌های A4؛ قاطی‌کردنشان یعنی هر تغییر در یکی، دیگری را می‌شکند. */

@page { size: A4 portrait; margin: 0; }
* { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

body { background: #8d93a3; padding: 0; margin: 0; }

.cpage {
    width: 210mm; height: 297mm; background: #fff; margin: 0 auto 8mm;
    position: relative; overflow: hidden;
    page-break-after: always; break-after: page;
    font-family: 'Vazirmatn', Tahoma, sans-serif; color: var(--ink);
    display: flex; flex-direction: column;
    padding: 16mm 16mm 14mm;
}
.cpage:last-of-type { page-break-after: auto; break-after: auto; }

/* ---------- سربرگ و پاورقی ---------- */
.ctop { display: flex; align-items: center; gap: 4mm; margin-bottom: 7mm; flex: 0 0 auto; }
.ctop img { width: 11mm; height: 11mm; border-radius: 2.8mm; }
.ctop .bn { font-size: 13pt; font-weight: 800; letter-spacing: .02em; }
.ctop .bn i { color: var(--brand); font-style: normal; }
.ctop .sp { flex: 1; }
.ctop .sec {
    font-size: 9pt; font-weight: 700; color: var(--brand);
    background: var(--brand-soft); border-radius: 999px; padding: 1.6mm 5mm;
}

.cfoot {
    position: absolute; bottom: 8mm; right: 16mm; left: 16mm;
    border-top: 1px solid var(--line); padding-top: 2.5mm;
    font-size: 8pt; color: var(--muted); display: flex; justify-content: space-between;
}
.cfoot .u { direction: ltr; font-weight: 800; color: var(--brand); }

/* ---------- تیترها ---------- */
.cpage h1 { font-size: 26pt; font-weight: 800; line-height: 1.3; margin-bottom: 3mm; }
.cpage h1 em { font-style: normal; color: var(--brand); }
.cpage .dek { font-size: 11.5pt; color: var(--muted); line-height: 1.85; margin-bottom: 7mm; }
.cpage h2 { font-size: 14pt; font-weight: 800; margin-bottom: 3mm; }
.cpage p { font-size: 10.5pt; line-height: 1.95; }

.cbody { flex: 1; min-height: 0; }

/* ---------- جلد ---------- */
.cover { justify-content: center; align-items: center; text-align: center;
         background: linear-gradient(160deg, #fff 0%, #f2f9f5 45%, var(--brand-soft) 100%); }
.cover .mark { width: 40mm; height: 40mm; border-radius: 10mm; margin-bottom: 8mm; }
.cover .bn { font-size: 40pt; font-weight: 800; letter-spacing: .02em; margin-bottom: 2mm; }
.cover .bn i { color: var(--brand); font-style: normal; }
.cover .tag { font-size: 14pt; color: var(--muted); font-weight: 600; margin-bottom: 12mm; }
.cover h1 { font-size: 30pt; line-height: 1.4; margin-bottom: 5mm; max-width: 150mm; }
.cover .lead2 { font-size: 12pt; color: var(--muted); line-height: 2; max-width: 140mm; margin-bottom: 12mm; }
.cover .stats { display: flex; gap: 5mm; margin-bottom: 12mm; }
.cover .stats div { background: rgba(255,255,255,.8); border: 1px solid var(--line);
                    border-radius: 5mm; padding: 4mm 8mm; }
.cover .stats .n { font-size: 20pt; font-weight: 800; color: var(--brand); }
.cover .stats .k { font-size: 9pt; color: var(--muted); font-weight: 600; }
.cover .url { font-size: 17pt; font-weight: 800; color: var(--brand); direction: ltr; }

/* ---------- شبکهٔ قابلیت‌ها ---------- */
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 5mm; }
.fcard { border: 1px solid var(--line); border-radius: 4mm; padding: 5mm 5.5mm;
         background: #fdfefd; break-inside: avoid; }
.fcard .ic { width: 12mm; height: 12mm; border-radius: 3mm; background: var(--brand-soft);
             display: grid; place-items: center; color: var(--brand); margin-bottom: 3mm; }
.fcard .ic svg { width: 6.5mm; height: 6.5mm; }
.fcard b { display: block; font-size: 11pt; font-weight: 800; margin-bottom: 1.5mm; }
.fcard span { font-size: 9.5pt; color: var(--muted); line-height: 1.75; }

/* ---------- بخشِ «صفحه + متن» ---------- */
.showcase { display: flex; gap: 8mm; align-items: flex-start; }
.showcase .txt { flex: 1; }
.showcase .phone { flex: 0 0 auto; }
.bezel { background: var(--charcoal); border-radius: 7mm; padding: 2.4mm;
         box-shadow: 0 6mm 14mm -7mm rgba(25,28,33,.4); }
/* ۳۹۰×۸۴۴ نسبتِ یک گوشیِ واقعی است؛ با ۷۲۰ قاب کوتوله می‌شد و ته برگه
   حدود ۳۹۰ پیکسل سفیدِ بی‌کار می‌ماند. */
.bezel iframe { display: block; width: 390px; height: 844px; border: 0; border-radius: 5mm;
                background: #fff; transform-origin: top right; pointer-events: none; }

.bullets { list-style: none; padding: 0; margin-top: 2mm; }
.bullets li { display: flex; gap: 3mm; align-items: flex-start; margin-bottom: 3.5mm; }
.bullets li .tick { width: 6mm; height: 6mm; border-radius: 50%; background: var(--brand-soft);
                    color: var(--brand); display: grid; place-items: center; flex: 0 0 auto;
                    font-size: 9pt; font-weight: 800; margin-top: .8mm; }
.bullets li b { display: block; font-size: 10.5pt; font-weight: 800; margin-bottom: .8mm; }
.bullets li span { font-size: 9.5pt; color: var(--muted); line-height: 1.75; }

/* ---------- جعبهٔ تأکید ---------- */
.callout { background: var(--brand-soft); border-radius: 4mm; padding: 5mm 6mm;
           margin-top: 5mm; break-inside: avoid; }
.callout.dark { background: var(--charcoal); color: #fff; }
.callout.dark b { color: #57d69b; }
.callout b { color: var(--brand-deep); }
.callout p { font-size: 10.5pt; line-height: 1.9; }

/* ---------- گام‌ها ---------- */
.steps { display: flex; gap: 5mm; }
.stepc { flex: 1; text-align: center; }
.stepc .n { width: 13mm; height: 13mm; border-radius: 50%; background: var(--brand); color: #fff;
            display: grid; place-items: center; font-size: 14pt; font-weight: 800;
            margin: 0 auto 3mm; }
.stepc b { display: block; font-size: 11pt; margin-bottom: 1.5mm; }
.stepc span { font-size: 9.5pt; color: var(--muted); line-height: 1.7; }

/* ---------- پرسش و پاسخ ---------- */
.faq { break-inside: avoid; margin-bottom: 4.5mm; }
.faq b { display: block; font-size: 11pt; font-weight: 800; margin-bottom: 1.5mm; }
.faq b::before { content: "؟ "; color: var(--brand); }
.faq p { font-size: 10pt; color: var(--muted); line-height: 1.9; }

/* ---------- پشت جلد ---------- */
.back { justify-content: center; align-items: center; text-align: center;
        background: var(--grad-dark); color: #fff; }
.back .bn { font-size: 34pt; font-weight: 800; margin-bottom: 3mm; }
.back .bn i { color: #57d69b; font-style: normal; }
.back h1 { font-size: 22pt; margin-bottom: 8mm; }
.back .ways { display: flex; flex-direction: column; gap: 4mm; margin-bottom: 10mm; }
.back .ways div { display: flex; align-items: center; gap: 4mm; justify-content: flex-start;
                  background: rgba(255,255,255,.08); border-radius: 4mm; padding: 4mm 7mm;
                  font-size: 12pt; font-weight: 700; min-width: 105mm; }
.back .ways svg { width: 6mm; height: 6mm; color: #57d69b; flex: 0 0 auto; }
.back .ways .v { direction: ltr; }
.back .note2 { font-size: 9.5pt; color: #a9b4bd; line-height: 1.9; max-width: 130mm; }

/* فراخوانِ ثبت‌نام با QR — پررنگ‌ترین چیزِ پشتِ جلد باشد */
.back .cta {
    display: flex; align-items: center; gap: 7mm; margin-bottom: 9mm;
    background: #fff; border-radius: 5mm; padding: 6mm 7mm; color: var(--ink);
    box-shadow: 0 4mm 12mm -6mm rgba(0,0,0,.5);
}
.back .cta .qr { background: #fff; border-radius: 2mm; line-height: 0; flex: 0 0 auto; }
.back .cta .qr img, .back .cta .qr canvas { display: block; width: 33mm; height: 33mm; }
.back .cta .cta-t { text-align: right; }
.back .cta b { display: block; font-size: 15pt; font-weight: 800; margin-bottom: 2mm; }
.back .cta span { display: block; font-size: 10pt; color: var(--muted); line-height: 1.7; }
.back .cta .v { direction: ltr; text-align: right; font-size: 14pt; font-weight: 800;
                color: var(--brand); margin: 1.5mm 0 2.5mm; }
.back .cta .free { font-size: 9.5pt; font-weight: 700; color: var(--brand-deep); }

.bar { position: sticky; top: 0; z-index: 5; background: var(--charcoal); color: #fff;
       padding: .6rem 1rem; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.bar .sp { flex: 1; }
.bar span { font-size: .82rem; }
@media print {
    .bar { display: none !important; }
    body { background: #fff; }
    /* ‎zoom‎ی که جاوااسکریپت برای جاشدن روی گوشی می‌گذارد باید موقع چاپ
       برداشته شود. هنگام چاپ، عرضِ چیدمان برابر خودِ کاغذ (۷۹۴) است، پس آن
       تابع ضریبِ ۰٫۹۸۵ حساب می‌کرد و همهٔ برگه‌ها کمی کوچک‌تر از A4 چاپ
       می‌شدند — عیبی که در PDF به‌سختی به چشم می‌آید و دیگر جبران نمی‌شود.
       اینجا با CSS بسته شده و نه با رویدادِ ‎beforeprint‎، چون قاعدهٔ CSS
       جا نمی‌ماند. */
    .cpage { margin: 0; zoom: 1 !important; }
}
