/*
 * Public marketing site (landing page, pricing page) — a distinct visual
 * language from the tenant ERP app's "no gradients/glassmorphism" rule,
 * which was scoped to the working application UI, not conversion-focused
 * marketing pages. Reuses the app's --rq-* color tokens (app.css) so brand
 * colors stay in sync, but adds its own layout/decoration vocabulary here
 * rather than polluting app.css with marketing-only classes.
 */

:root {
    --mk-navy: var(--rq-dark);
    --mk-navy-soft: #1f3a63;
    --mk-radius-lg: 1.25rem;
    --mk-radius-md: .9rem;
}

body.mk-page {
    background: var(--rq-bg);
}

/* ---------- Nav ---------- */
.mk-nav {
    background: var(--rq-surface);
    border-bottom: 1px solid var(--rq-border);
    padding-block: .9rem;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.mk-nav .rq-brand-mark .rq-brand-logo {
    width: 40px;
    height: 40px;
    font-size: 1rem;
}

.mk-nav-links a {
    color: var(--rq-text);
    font-weight: 500;
    text-decoration: none;
    padding: .5rem .25rem;
}

.mk-nav-links a:hover {
    color: var(--rq-primary);
}

/* ---------- Hero ---------- */
.mk-hero {
    padding-block: 4rem;
    overflow: hidden;
}

.mk-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: color-mix(in srgb, var(--rq-primary) 10%, var(--rq-surface));
    color: var(--rq-primary);
    border-radius: 2rem;
    padding: .4rem 1rem;
    font-size: .85rem;
    font-weight: 600;
}

.mk-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--rq-text);
}

.mk-hero p.lead {
    color: var(--rq-text-muted);
    font-size: 1.05rem;
}

/* ---------- Dashboard mockup (CSS-only illustration, no screenshot asset) ---------- */
.mk-mockup {
    position: relative;
}

.mk-mockup-frame {
    background: var(--rq-surface);
    border: 1px solid var(--rq-border);
    border-radius: var(--mk-radius-lg);
    box-shadow: 0 24px 48px -20px rgba(23, 43, 77, .25);
    overflow: hidden;
    display: flex;
    min-height: 320px;
}

.mk-mockup-sidebar {
    width: 84px;
    background: var(--mk-navy);
    padding: 1rem .5rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    flex-shrink: 0;
}

.mk-mockup-sidebar .mk-dot {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, .18);
}

.mk-mockup-sidebar .mk-dot.active {
    background: var(--rq-secondary);
}

.mk-mockup-body {
    flex: 1;
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: .9rem;
}

.mk-mockup-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .6rem;
}

.mk-mockup-stat {
    background: var(--rq-bg);
    border-radius: .6rem;
    padding: .6rem .7rem;
}

.mk-mockup-stat .mk-stat-label {
    font-size: .62rem;
    color: var(--rq-text-muted);
}

.mk-mockup-stat .mk-stat-value {
    font-size: .95rem;
    font-weight: 700;
    color: var(--rq-text);
}

.mk-mockup-stat .mk-stat-delta {
    font-size: .62rem;
    color: var(--rq-success);
    font-weight: 600;
}

.mk-mockup-chart {
    flex: 1;
    background: var(--rq-bg);
    border-radius: .6rem;
    padding: .8rem;
    display: flex;
    align-items: flex-end;
    gap: .35rem;
}

.mk-mockup-chart .mk-bar {
    flex: 1;
    background: linear-gradient(180deg, var(--rq-primary), color-mix(in srgb, var(--rq-primary) 55%, white));
    border-radius: .25rem .25rem 0 0;
}

.mk-mockup-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--rq-bg);
    border-radius: .5rem;
    padding: .5rem .7rem;
    font-size: .68rem;
}

.mk-mockup-row .mk-pill {
    display: inline-block;
    width: .45rem;
    height: .45rem;
    border-radius: 50%;
    background: var(--rq-success);
    margin-inline-end: .35rem;
}

.mk-float-card {
    position: absolute;
    background: var(--rq-surface);
    border: 1px solid var(--rq-border);
    border-radius: var(--mk-radius-md);
    box-shadow: 0 16px 32px -16px rgba(23, 43, 77, .3);
    padding: .75rem 1rem;
    font-size: .8rem;
    display: flex;
    align-items: center;
    gap: .6rem;
}

.mk-float-card .mk-float-icon {
    width: 32px;
    height: 32px;
    border-radius: .5rem;
    background: color-mix(in srgb, var(--rq-success) 15%, var(--rq-surface));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mk-float-card--tl {
    inset-inline-start: -1.25rem;
    top: 1.5rem;
}

.mk-float-card--br {
    inset-inline-end: -1rem;
    bottom: -1rem;
}

@media (max-width: 767.98px) {
    .mk-float-card { display: none; }
}

/* ---------- Trust badges row ---------- */
.mk-trust-row {
    border-top: 1px solid var(--rq-border);
    border-bottom: 1px solid var(--rq-border);
    padding-block: 1.75rem;
    background: var(--rq-surface);
}

.mk-trust-item {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.mk-trust-item .mk-trust-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--rq-primary) 10%, var(--rq-surface));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.mk-trust-item .mk-trust-title {
    font-weight: 600;
    font-size: .9rem;
}

.mk-trust-item .mk-trust-sub {
    font-size: .75rem;
    color: var(--rq-text-muted);
}

/* ---------- Feature cards ---------- */
.mk-section {
    padding-block: 4.5rem;
}

.mk-section-head {
    max-width: 640px;
    margin-inline: auto;
    text-align: center;
    margin-bottom: 2.5rem;
}

.mk-section-head h2 {
    font-weight: 800;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.mk-feature-card {
    background: var(--rq-surface);
    border: 1px solid var(--rq-border);
    border-radius: var(--mk-radius-md);
    padding: 1.6rem;
    height: 100%;
    transition: transform .15s ease, box-shadow .15s ease;
}

.mk-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px -20px rgba(23, 43, 77, .25);
}

.mk-feature-icon {
    width: 52px;
    height: 52px;
    border-radius: .85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.mk-feature-icon--primary { background: color-mix(in srgb, var(--rq-primary) 14%, var(--rq-surface)); }
.mk-feature-icon--secondary { background: color-mix(in srgb, var(--rq-secondary) 14%, var(--rq-surface)); }
.mk-feature-icon--success { background: color-mix(in srgb, var(--rq-success) 14%, var(--rq-surface)); }
.mk-feature-icon--warning { background: color-mix(in srgb, var(--rq-warning) 18%, var(--rq-surface)); }
.mk-feature-icon--info { background: color-mix(in srgb, var(--rq-info) 14%, var(--rq-surface)); }
.mk-feature-icon--danger { background: color-mix(in srgb, var(--rq-danger) 14%, var(--rq-surface)); }

.mk-feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
}

.mk-feature-card p {
    color: var(--rq-text-muted);
    font-size: .88rem;
    margin-bottom: 0;
}

/* ---------- Control / checklist section ---------- */
.mk-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mk-check-list li {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    margin-bottom: .9rem;
}

.mk-check-list .mk-check-mark {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--rq-success) 15%, var(--rq-surface));
    color: var(--rq-success);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    flex-shrink: 0;
    margin-top: .1rem;
}

/* ---------- Pricing cards ---------- */
.mk-price-card {
    background: var(--rq-surface);
    border: 1px solid var(--rq-border);
    border-radius: var(--mk-radius-lg);
    padding: 1.75rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.mk-price-card--recommended {
    border-color: var(--rq-primary);
    border-width: 2px;
    box-shadow: 0 20px 40px -24px rgba(23, 105, 170, .45);
}

.mk-price-badge {
    position: absolute;
    top: -.9rem;
    inset-inline-start: 1.5rem;
    background: var(--rq-primary);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    padding: .3rem .85rem;
    border-radius: 2rem;
}

.mk-price-value {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--rq-text);
}

.mk-price-value small {
    font-size: .85rem;
    font-weight: 500;
    color: var(--rq-text-muted);
}

.mk-price-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    flex: 1;
}

.mk-price-list li {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    font-size: .85rem;
    padding-block: .35rem;
    color: var(--rq-text);
}

.mk-price-list li .mk-check {
    color: var(--rq-success);
    flex-shrink: 0;
}

/* ---------- Final CTA banner ---------- */
.mk-cta-banner {
    background: linear-gradient(135deg, var(--mk-navy), var(--mk-navy-soft));
    color: #fff;
    border-radius: var(--mk-radius-lg);
    padding: 3rem 2rem;
    text-align: center;
}

.mk-cta-banner h2 {
    font-weight: 800;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.mk-cta-banner p {
    opacity: .8;
}

/* ---------- Footer ---------- */
.mk-footer {
    background: var(--mk-navy);
    color: rgba(255, 255, 255, .75);
    padding-block: 3rem 1.5rem;
}

.mk-footer a {
    color: rgba(255, 255, 255, .75);
    text-decoration: none;
}

.mk-footer a:hover {
    color: #fff;
}

.mk-footer h6 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1rem;
}

.mk-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    margin-top: 2rem;
    padding-top: 1.5rem;
    font-size: .82rem;
}
