/* =====================================================================
 * Marketing sub-pages shared components (/features, /contact, ...)
 *  - Load order: common.css -> index.css -> site.css -> page css
 *  - Only uses tokens from common.css / index.css
 * ===================================================================== */

/* ----- a11y ----- */
.skip-link {
    position: absolute; left: 12px; top: -48px; z-index: 2000;
    background: var(--primary-color); color: #fff;
    padding: 8px 14px; border-radius: var(--radius-md);
    font-weight: 600; font-size: var(--fs-base); text-decoration: none;
    transition: top .15s;
}
.skip-link:focus { top: 12px; color: #fff; }

.site-page a:focus-visible,
.site-page button:focus-visible,
.site-page summary:focus-visible,
.site-header a:focus-visible,
.site-header button:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    box-shadow: none;
}

/* ----- header active state ----- */
.site-header .nav-link.active { color: var(--text-strong) !important; font-weight: 700; }
.site-header .navbar-nav .nav-link.active:not(.dropdown-toggle) { box-shadow: inset 0 -2px 0 var(--primary-color); }

/* ----- layout ----- */
.site-page { background: var(--surface-card); color: var(--text-primary); }
.site-page section[id] { scroll-margin-top: 120px; }

.mk-section { padding: var(--mk-section-y) 0; border-bottom: 1px solid var(--border-default); background: var(--surface-card); }
.mk-section--band { background: var(--mk-band); }

.mk-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.mk-head--left { margin-left: 0; text-align: left; }
.mk-title {
    font-size: 2.25rem; font-weight: 800; letter-spacing: -0.035em; line-height: 1.25;
    color: var(--text-strong); margin: 0 0 16px;
    word-break: keep-all;
}
.mk-lead { font-size: var(--fs-lg); color: var(--text-secondary); line-height: 1.75; margin: 0; word-break: keep-all; }

/* ----- page hero ----- */
.mk-hero {
    position: relative; overflow: hidden;
    padding: 148px 0 88px;
    background: var(--surface-card);
    border-bottom: 1px solid var(--border-default);
}
.mk-hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background-image:
        linear-gradient(to right, var(--border-subtle) 1px, transparent 1px),
        linear-gradient(to bottom, var(--border-subtle) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 85%);
            mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 85%);
}
.mk-hero > .container { position: relative; z-index: 1; }
.mk-hero-title {
    font-size: 3.25rem; font-weight: 800; line-height: 1.18; letter-spacing: -0.04em;
    color: var(--text-strong); margin: 0 0 20px; word-break: keep-all;
}
.mk-hero-title .highlight { color: var(--primary-color); }
.mk-hero-lead { font-size: 1.125rem; color: var(--text-secondary); line-height: 1.75; margin: 0 0 32px; max-width: 560px; word-break: keep-all; }
.mk-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.mk-hero-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--text-tertiary); font-size: var(--fs-base); }
.mk-hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.mk-hero-meta i { color: var(--primary-color); }

/* ----- buttons ----- */
.mk-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 48px; padding: 0 22px;
    border-radius: var(--radius-md); border: 1px solid transparent;
    font-weight: 700; font-size: var(--fs-md); text-decoration: none; white-space: nowrap;
    transition: background-color .15s, border-color .15s, color .15s;
    cursor: pointer;
}
.mk-btn--primary { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }
.mk-btn--primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.mk-btn--ghost { background: var(--surface-card); border-color: var(--border-strong); color: var(--text-strong); }
.mk-btn--ghost:hover { background: var(--surface-hover); color: var(--text-strong); }
.mk-btn--light { background: #fff; border-color: #fff; color: var(--mk-dark); }
.mk-btn--light:hover { background: #e8eef9; border-color: #e8eef9; color: var(--mk-dark); }
.mk-btn--outline-light { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.mk-btn--outline-light:hover { background: rgba(255,255,255,.08); color: #fff; }

/* ----- plan tags ----- */
.plan-tag {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 1px 8px; border-radius: var(--radius-sm);
    font-size: var(--fs-xs); font-weight: 700; line-height: 1.6; letter-spacing: .01em;
    border: 1px solid var(--border-default); background: var(--surface-subtle); color: var(--text-secondary);
    white-space: nowrap;
}
.plan-tag--pro { background: var(--primary-soft); border-color: var(--primary-border); color: var(--primary-color); }
.plan-tag--ent { background: var(--gray-900); border-color: var(--gray-900); color: #fff; }
[data-theme="dark"] .plan-tag--ent { background: #e4e7ec; border-color: #e4e7ec; color: #101828; }

/* ----- final CTA band ----- */
.mk-cta { padding: 88px 0; background: var(--mk-band); }
.mk-cta-box {
    background: var(--mk-dark); border-radius: var(--radius-xl);
    padding: 64px 40px; text-align: center; color: #fff; position: relative; overflow: hidden;
}
.mk-cta-box::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 40px 40px;
}
.mk-cta-box > * { position: relative; }
.mk-cta-box h2 { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; color: #fff; margin: 0 0 12px; word-break: keep-all; }
.mk-cta-box p { font-size: var(--fs-lg); color: var(--mk-dark-text); margin: 0 auto 32px; max-width: 560px; word-break: keep-all; }
.mk-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ----- FAQ (details/summary, no JS) ----- */
.mk-faq { max-width: 820px; margin: 0 auto; }
.mk-faq details {
    border: 1px solid var(--border-default); border-radius: var(--radius-lg);
    background: var(--surface-card); margin-bottom: 10px; overflow: hidden;
}
.mk-faq summary {
    list-style: none; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 18px 22px; font-weight: 700; font-size: var(--fs-md); color: var(--text-strong);
}
.mk-faq summary::-webkit-details-marker { display: none; }
.mk-faq summary::after {
    content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 0.75rem;
    color: var(--text-tertiary); transition: transform .2s; flex-shrink: 0;
}
.mk-faq details[open] summary { border-bottom: 1px solid var(--border-default); background: var(--surface-subtle); }
.mk-faq details[open] summary::after { transform: rotate(180deg); }
.mk-faq .mk-faq-body { padding: 16px 22px 20px; color: var(--text-secondary); font-size: var(--fs-md); line-height: 1.8; word-break: keep-all; }
.mk-faq .mk-faq-body a { color: var(--primary-color); }

/* ----- reveal ----- */
@media (prefers-reduced-motion: no-preference) {
    .reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease-out, transform .5s ease-out; }
    .reveal.is-visible { opacity: 1; transform: none; }
}

/* ----- responsive ----- */
@media (max-width: 991.98px) {
    .mk-hero { padding: 120px 0 64px; }
    .mk-hero-title { font-size: 2.5rem; }
    .mk-title { font-size: 1.875rem; }
    .site-header .navbar-nav .nav-link.active:not(.dropdown-toggle) { box-shadow: none; }
}
@media (max-width: 767.98px) {
    .mk-hero { padding: 104px 0 56px; }
    .mk-hero-title { font-size: 2rem; }
    .mk-hero-lead { font-size: 1rem; }
    .mk-title { font-size: 1.625rem; }
    .mk-lead { font-size: var(--fs-md); }
    .mk-head { margin-bottom: 36px; }
    .mk-hero-actions .mk-btn { flex: 1 1 100%; }
    .mk-cta { padding: 56px 0; }
    .mk-cta-box { padding: 44px 20px; }
    .mk-cta-box h2 { font-size: 1.5rem; }
    .mk-cta-actions .mk-btn { flex: 1 1 100%; }
    .footer-bottom .business-info p { word-break: keep-all; overflow-wrap: anywhere; }
}
