/* Public marketing site — "Corporate Trust" theme (design-samples/sample-12): white surfaces,
   navy structure, a single blue accent, hairline borders and no glass/blur. Scoped to
   .mk-shell so nothing here leaks into the app's authenticated panels. */

:root:has(.mk-shell) body {
    background: #fff;
    color: #14213a;
    margin: 0;
}

.mk-shell {
    --navy: #0b2545;
    --navy-deep: #071a33;
    --blue: #1a5fd0;
    --blue-dark: #144eb0;
    --sky: #e8f0fd;
    --ink: #14213a;
    --dim: #5a6a86;
    --line: #dfe6f1;
    --bg: #f5f8fc;
    --ok: #16a34a;

    position: relative;
    min-height: 100vh;
    color: var(--ink);
    background: #fff;
    overflow-x: clip;
    font-family: "Vazirmatn", system-ui, sans-serif;
    line-height: 1.85;
}

.mk-shell a { color: inherit; }

.mk-wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

/* ---------- utility strip ---------- */
.mk-util { background: var(--navy); color: #c9d6ee; font-size: .82rem; }
.mk-util .mk-wrap { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; flex-wrap: wrap; }

/* ---------- header ---------- */
.mk-topbar { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.mk-topbar-inner { position: relative; display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 12px; }

.mk-brand { display: flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; flex-shrink: 0; font-weight: 900; font-size: 1.2rem; }
.mk-brand-mark { width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; font-size: 1.2rem; background: var(--navy); color: #fff; line-height: 1; }
.mk-brand-text { font-weight: 900; font-size: 1.2rem; }

.mk-nav { display: flex; gap: 26px; flex: 1; justify-content: center; font-weight: 700; }
.mk-nav a {
    padding: 4px 0;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color .15s, border-color .15s;
}
.mk-nav a:hover, .mk-nav a.active { color: var(--blue); border-color: var(--blue); }

.mk-topbar-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.mk-btn-ghost, .mk-btn-solid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: .93rem;
    text-decoration: none;
    border: 1px solid var(--navy);
    cursor: pointer;
    transition: background .15s, border-color .15s;
    font-family: inherit;
}
.mk-btn-ghost { color: var(--navy); background: #fff; }
.mk-btn-ghost:hover { background: var(--sky); }
.mk-btn-solid { color: #fff; background: var(--blue); border-color: var(--blue); }
.mk-btn-solid:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.mk-btn-lg { padding: 14px 30px; font-size: 1rem; }

.mk-nav-toggle { display: none; }
.mk-nav .mk-nav-login { display: none; }
.mk-nav-toggle-label {
    display: none;
    width: 40px; height: 40px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--navy);
    align-items: center; justify-content: center;
    cursor: pointer;
}

/* ---------- page shell / sections ----------
   Sections are full-bleed so their background bands reach the screen edge; their content is
   kept to the 1180px column through inline padding. */
.mk-main { width: 100%; margin: 0; padding: 0; }
.mk-section { padding: 76px max(16px, calc((100% - 1180px) / 2)) 10px; }
.mk-section-narrow { max-width: none; margin: 0; padding-inline: max(16px, calc((100% - 780px) / 2)); }
.mk-eyebrow { display: inline-block; color: var(--blue); font-weight: 800; font-size: .9rem; margin-bottom: 8px; }
.mk-h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); font-weight: 900; line-height: 1.4; color: var(--navy); margin: 8px 0 14px; }
.mk-h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 900; color: var(--navy); margin: 0 0 12px; text-align: center; line-height: 1.5; }
.mk-sub { color: var(--dim); font-size: 1.1rem; line-height: 1.9; margin: 0 0 28px; }
.mk-sub-center { text-align: center; max-width: 640px; margin-inline: auto; margin-bottom: 40px; }

/* ---------- hero ---------- */
.mk-hero { text-align: center; padding-top: 72px; padding-bottom: 64px; background: linear-gradient(180deg, var(--sky), #fff); }
.mk-hero .mk-section-narrow, .mk-hero .mk-sub { max-width: 640px; }
.mk-hero-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }

/* ---------- stats (navy KPI band) ---------- */
.mk-kpi { background: var(--navy); color: #fff; padding-top: 0; padding-bottom: 0; margin-top: 0; }
.mk-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.mk-stat { text-align: center; padding: 30px 16px; border-inline-start: 1px solid rgba(255, 255, 255, .15); }
.mk-stat:first-child { border-inline-start: 0; }
.mk-stat-value { font-size: 2.4rem; font-weight: 900; line-height: 1.3; color: #fff; }
.mk-stat-label { color: #b8c8e6; font-size: .95rem; margin-top: 0; }

/* ---------- feature grid ---------- */
.mk-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.mk-feature-card { padding: 28px; border-radius: 16px; background: #fff; border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.mk-feature-card:hover { border-color: var(--blue); box-shadow: 0 24px 48px -34px rgba(11, 37, 69, .55); }
.mk-feature-icon {
    width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--sky), #d3e3fb);
    color: var(--blue);
    margin-bottom: 18px;
}
.mk-feature-title { font-weight: 900; font-size: 1.1rem; color: var(--navy); margin: 0 0 8px; }
.mk-feature-desc { color: var(--dim); font-size: .94rem; line-height: 1.85; margin: 0; }

/* ---------- pricing ---------- */
.mk-pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 24px; align-items: stretch; }
.mk-price-card { display: flex; flex-direction: column; padding: 32px 26px; border-radius: 16px; background: #fff; border: 1px solid var(--line); position: relative; }
.mk-price-card.featured { border: 2px solid var(--blue); background: #f3f8ff; box-shadow: 0 30px 60px -38px rgba(11, 37, 69, .55); }
.mk-price-badge { position: absolute; top: -14px; inset-inline-start: 50%; transform: translateX(50%); background: var(--blue); color: #fff; font-size: .75rem; font-weight: 800; padding: 4px 16px; border-radius: 6px; white-space: nowrap; }
[dir="rtl"] .mk-price-badge { transform: translateX(50%); }
.mk-price-name { font-weight: 900; font-size: 1.2rem; color: var(--navy); margin: 0 0 6px; }
.mk-price-desc { color: var(--dim); font-size: .88rem; margin: 0 0 18px; min-height: 40px; }
.mk-price-amount { font-size: 1.9rem; font-weight: 900; color: var(--navy); margin-bottom: 4px; line-height: 1.5; }
.mk-price-amount small { font-size: .85rem; font-weight: 500; color: var(--dim); }
.mk-price-fixed-chip { display: inline-block; align-self: flex-start; font-size: .72rem; font-weight: 700; color: var(--ok); background: #e7f6ec; padding: 2px 10px; border-radius: 6px; margin-bottom: 18px; }
.mk-price-features { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.mk-price-features li { display: flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--ink); font-weight: 500; }
.mk-price-features svg { flex-shrink: 0; color: var(--ok); }
.mk-price-empty { text-align: center; color: var(--dim); padding: 40px; }

/* ---------- testimonials ---------- */
.mk-testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.mk-testimonial { padding: 28px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.mk-testimonial-quote { font-size: .98rem; line-height: 1.95; color: var(--ink); margin: 0 0 18px; }
.mk-testimonial-person { display: flex; align-items: center; gap: 12px; }
.mk-avatar { width: 40px; height: 40px; border-radius: 8px; background: var(--navy); display: grid; place-items: center; font-weight: 700; color: #fff; flex-shrink: 0; }
.mk-testimonial-name { font-weight: 800; font-size: .92rem; color: var(--navy); }
.mk-testimonial-role { color: var(--dim); font-size: .8rem; }

/* ---------- FAQ (native <details>, zero JS) ---------- */
.mk-faq-list { display: flex; flex-direction: column; }
.mk-faq-item { border-bottom: 1px solid var(--line); }
.mk-faq-item summary { cursor: pointer; padding: 18px 0; font-weight: 700; color: var(--navy); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mk-faq-item summary::-webkit-details-marker { display: none; }
.mk-faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--blue); flex-shrink: 0; }
.mk-faq-item[open] summary::after { content: "−"; }
.mk-faq-answer { color: var(--dim); font-size: .95rem; line-height: 1.9; margin: 0; padding: 0 0 18px; }

/* ---------- logo strip ---------- */
.mk-logo-strip { display: flex; flex-wrap: wrap; gap: 36px; justify-content: center; align-items: center; opacity: .75; }
.mk-logo-strip img { height: 28px; filter: grayscale(1); }

/* ---------- CTA band ---------- */
.mk-cta { background: var(--navy); color: #fff; margin-top: 80px; padding-top: 60px; padding-bottom: 60px; }
.mk-cta-banner { text-align: center; }
.mk-cta .mk-h2 { color: #fff; }
.mk-cta .mk-sub { color: #b8c8e6; }
.mk-cta .mk-btn-solid { background: #fff; border-color: #fff; color: var(--navy); }
.mk-cta .mk-btn-solid:hover { background: var(--sky); border-color: var(--sky); }

/* ---------- rich text ---------- */
.mk-richtext { line-height: 2; color: var(--dim); }
.mk-richtext h1, .mk-richtext h2, .mk-richtext h3 { color: var(--navy); margin-top: 1.6em; font-weight: 900; }
.mk-richtext a { color: var(--blue); }
.mk-richtext img { max-width: 100%; border-radius: 12px; }
.mk-richtext code { background: var(--bg); padding: 2px 6px; border-radius: 6px; }
.mk-richtext pre { background: var(--bg); border: 1px solid var(--line); padding: 18px; border-radius: 12px; overflow-x: auto; }
.mk-richtext blockquote { border-inline-start: 3px solid var(--blue); margin: 0; padding-inline-start: 18px; color: var(--dim); }

/* ---------- blog ---------- */
.mk-blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.mk-blog-card { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--line); text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s; }
.mk-blog-card:hover { border-color: var(--blue); box-shadow: 0 24px 48px -34px rgba(11, 37, 69, .55); }
.mk-blog-cover { height: 170px; background: linear-gradient(135deg, var(--sky), #d3e3fb); display: flex; align-items: center; justify-content: center; font-size: 2.4rem; }
.mk-blog-cover img { width: 100%; height: 100%; object-fit: cover; }
.mk-blog-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.mk-blog-tag { color: var(--blue); font-size: .78rem; font-weight: 800; }
.mk-blog-title { font-size: 1.08rem; font-weight: 900; color: var(--navy); margin: 0; }
.mk-blog-excerpt { color: var(--dim); font-size: .9rem; line-height: 1.85; margin: 0; flex: 1; }
.mk-blog-meta { color: var(--dim); font-size: .78rem; }
.mk-blog-empty { text-align: center; padding: 60px; color: var(--dim); }

.mk-article-header { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.mk-article-cover { display: block; width: 100%; max-width: 900px; margin: 0 auto 40px; max-height: 380px; object-fit: cover; border-radius: 16px; }
.mk-article-body { max-width: 760px; margin: 0 auto; }
.mk-article-meta { color: var(--dim); font-size: .85rem; margin-bottom: 16px; }

/* ---------- contact form ---------- */
.mk-form { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px; box-shadow: 0 30px 60px -38px rgba(11, 37, 69, .5); }
.mk-field { display: flex; flex-direction: column; gap: 4px; }
.mk-field label { font-size: .85rem; font-weight: 700; color: var(--ink); }
.mk-field input, .mk-field textarea {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 11px 12px;
    color: var(--ink);
    font-family: inherit;
    font-size: .95rem;
}
.mk-field input:focus, .mk-field textarea:focus { outline: 2px solid var(--blue); border-color: transparent; }
.mk-form-note { max-width: 560px; margin: 0 auto 16px; text-align: center; padding: 14px; border-radius: 8px; background: #e7f6ec; color: #11743a; font-weight: 700; }
.mk-form-note.error { background: #fdeaea; color: #b42318; }

/* ---------- footer ---------- */
.mk-footer { margin-top: 0; padding: 44px 0 20px; background: var(--navy-deep); color: #9fb2d4; font-size: .92rem; }
.mk-cta + .mk-footer { margin-top: 0; }
.mk-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 26px; }
.mk-footer .mk-brand { color: #fff; }
.mk-footer .mk-brand-mark { background: #fff; color: var(--navy); }
.mk-footer-about { color: #9fb2d4; font-size: .9rem; line-height: 1.9; max-width: 340px; margin: 0; }
.mk-footer-title { font-weight: 800; color: #fff; margin-bottom: 8px; }
.mk-footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.mk-footer-links a { color: #9fb2d4; text-decoration: none; display: block; padding: 2px 0; }
.mk-footer-links a:hover { color: #fff; }
.mk-footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 14px; color: #9fb2d4; font-size: .85rem; }
.mk-social { display: flex; gap: 10px; }
.mk-social a { width: 34px; height: 34px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .2); display: grid; place-items: center; color: #fff; text-decoration: none; }
.mk-social a:hover { background: rgba(255, 255, 255, .1); }

/* ---------- pagination ---------- */
.mk-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.mk-pagination a, .mk-pagination span { padding: 8px 16px; border-radius: 8px; background: #fff; border: 1px solid var(--line); color: var(--navy); text-decoration: none; font-size: .88rem; font-weight: 700; }
.mk-pagination a:hover { background: var(--sky); }
.mk-pagination .active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---------- scroll reveal ---------- */
.mk-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.mk-reveal.mk-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
    .mk-footer-grid { grid-template-columns: 1fr 1fr; }
    .mk-stat { border-inline-start: 0; border-bottom: 1px solid rgba(255, 255, 255, .15); }
    .mk-stat:last-child { border-bottom: 0; }
}

@media (max-width: 820px) {
    .mk-nav { display: none; }
    .mk-nav-toggle-label { display: grid; }
    .mk-nav-toggle:checked ~ .mk-topbar .mk-nav {
        display: flex;
        position: absolute;
        top: 100%;
        inset-inline: 0;
        flex-direction: column;
        gap: 0;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 0 0 12px 12px;
        box-shadow: 0 20px 40px -24px rgba(11, 37, 69, .4);
        padding: 8px 16px;
    }
    .mk-nav-toggle:checked ~ .mk-topbar .mk-nav a { padding: 10px 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 560px) {
    .mk-footer-grid { grid-template-columns: 1fr; }
    .mk-topbar-inner { gap: 10px; }
    .mk-brand { min-width: 0; }
    .mk-brand-text { font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .mk-topbar-actions { gap: 6px; }
    .mk-topbar-actions .mk-btn-ghost { display: none; }
    .mk-topbar-actions .mk-btn-solid { padding: 9px 14px; font-size: .85rem; white-space: nowrap; }
    .mk-nav .mk-nav-login { display: block; }
    .mk-util .mk-wrap span:last-child { display: none; }
    .mk-section { padding-top: 56px; }
    .mk-hero { padding-top: 48px; padding-bottom: 44px; }
}
