:root {
    --mk-brown: #4a2c1f;
    --mk-brown-dark: #2e1a11;
    --mk-amber: #d98c3d;
    --mk-amber-light: #f2a65a;
    --mk-cream: #faf6f1;
    --mk-cream-deep: #f0e5d8;
    --mk-text: #2b1b12;
    --mk-muted: #8a7568;
    --mk-white: #ffffff;
}

* { box-sizing: border-box; }

.mk-body {
    margin: 0;
    background-color: var(--mk-cream);
    color: var(--mk-text);
    font-family: "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
}

.mk-body a { text-decoration: none; color: inherit; }

/* Navbar */
.mk-navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(250, 246, 241, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--mk-cream-deep);
}

.mk-navbar-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0.9rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.mk-brand {
    display: flex;
    align-items: center;
}

.mk-brand-logo {
    height: 24px;
    width: auto;
    display: block;
}

.mk-nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--mk-cream-deep);
    border-radius: 8px;
    font-size: 1.3rem;
    padding: 0.2rem 0.6rem;
    color: var(--mk-brown);
    margin-left: auto;
}

/* This custom nav uses Bootstrap's collapse component for the mobile
   menu (data-bs-toggle="collapse" on the button) but isn't a
   .navbar-expand-* — nothing else forces it open above the mobile
   breakpoint, so Bootstrap's own `.collapse:not(.show) { display: none; }`
   would otherwise hide the links at every width, not just on mobile. The
   ID+class selector below outranks that rule's specificity so desktop
   always shows the links regardless of collapse state. */
#mkNav.mk-nav-links {
    gap: 1.75rem;
    flex: 1;
}

@media (min-width: 641px) {
    #mkNav.mk-nav-links {
        display: flex !important;
        justify-content: center;
    }
}

.mk-nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--mk-muted);
    padding: 0.3rem 0;
    border-bottom: 2px solid transparent;
}

.mk-nav-links a:hover, .mk-nav-links a.active {
    color: var(--mk-brown);
    border-bottom-color: var(--mk-amber);
}

.mk-nav-cta { display: flex; gap: 0.6rem; align-items: center; }
.mk-nav-cta .mk-btn { font-weight: 500; }

.mk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 1.3rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    border: 2px solid transparent;
    transition: transform 0.12s ease, background-color 0.12s ease, box-shadow 0.12s ease;
    cursor: pointer;
}

.mk-btn-primary { background-color: var(--mk-amber); color: var(--mk-brown-dark); }
.mk-btn-primary:hover { background-color: var(--mk-amber-light); transform: translateY(-1px); color: var(--mk-brown-dark); }

.mk-btn-ghost { color: var(--mk-brown); }
.mk-btn-ghost:hover { color: var(--mk-brown); background-color: var(--mk-cream-deep); }

.mk-btn-outline-light { border-color: rgba(255,255,255,0.5); color: #fff; }
.mk-btn-outline-light:hover { background-color: rgba(255,255,255,0.12); color: #fff; }

.mk-btn-lg { padding: 0.85rem 1.9rem; font-size: 1.05rem; border-radius: 12px; }

.mk-flash {
    background-color: #e6f4ea;
    color: #1e7e34;
    text-align: center;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Hero */
.mk-hero {
    background: radial-gradient(circle at 15% 20%, rgba(217, 140, 61, 0.18), transparent 45%),
                linear-gradient(160deg, var(--mk-brown) 0%, var(--mk-brown-dark) 100%);
    color: #fff;
    padding: 5.5rem 1.5rem 6rem;
}

.mk-hero-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

.mk-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(255,255,255,0.12);
    color: var(--mk-amber-light);
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    margin-bottom: 1.2rem;
}

.mk-hero h1 {
    font-size: clamp(2.1rem, 4vw, 3.1rem);
    font-weight: 800;
    line-height: 1.15;
    text-wrap: balance;
    margin-bottom: 1.1rem;
}

.mk-hero p.lead {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.82);
    max-width: 46ch;
    margin-bottom: 2rem;
}

.mk-hero-ctas { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 1.5rem; }

.mk-hero-note { font-size: 0.85rem; color: rgba(255,255,255,0.6); }

/* Hero visual: a stylised receipt card */
.mk-receipt-card {
    background: #fff;
    color: var(--mk-text);
    border-radius: 16px;
    padding: 1.6rem 1.4rem;
    box-shadow: 0 30px 60px rgba(0,0,0,0.35);
    font-family: "Courier New", Courier, monospace;
    max-width: 320px;
    margin: 0 auto;
    transform: rotate(-2deg);
}

.mk-receipt-card .r-title { text-align: center; font-weight: 800; font-size: 1.1rem; margin-bottom: 0.2rem; }
.mk-receipt-card .r-sub { text-align: center; font-size: 0.72rem; color: var(--mk-muted); margin-bottom: 0.8rem; }
.mk-receipt-card .r-divider { border-top: 1px dashed #d8cabb; margin: 0.6rem 0; }
.mk-receipt-card .r-row { display: flex; justify-content: space-between; font-size: 0.82rem; margin: 0.15rem 0; }
.mk-receipt-card .r-total { font-weight: 800; font-size: 1rem; }

/* Sections */
.mk-section { padding: 5rem 1.5rem; }
.mk-section-inner { max-width: 1180px; margin: 0 auto; }
.mk-section-alt { background-color: #fff; }

.mk-section-head { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.mk-section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; margin-bottom: 0.7rem; text-wrap: balance; }
.mk-section-head p { color: var(--mk-muted); font-size: 1.05rem; }

.mk-eyebrow-dark {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mk-amber);
    margin-bottom: 0.6rem;
}

/* Feature grid */
.mk-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.mk-feature-card {
    background: #fff;
    border: 1px solid var(--mk-cream-deep);
    border-radius: 16px;
    padding: 1.8rem 1.6rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mk-feature-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(74, 44, 31, 0.1); }

.mk-feature-icon {
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--mk-amber), var(--mk-amber-light));
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.mk-feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.mk-feature-card p { color: var(--mk-muted); font-size: 0.92rem; margin: 0; }

/* Stats band */
.mk-stats-band {
    background-color: var(--mk-brown);
    color: #fff;
    padding: 3rem 1.5rem;
}

.mk-stats-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.mk-stat-value { font-size: 2.1rem; font-weight: 800; color: var(--mk-amber-light); font-variant-numeric: tabular-nums; }
.mk-stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 0.04em; }

/* Pricing */
.mk-pricing-toggle {
    display: inline-flex;
    background: var(--mk-cream-deep);
    border-radius: 999px;
    padding: 0.3rem;
    gap: 0.2rem;
    margin: 0 auto 3rem;
}

.mk-pricing-toggle button {
    border: none;
    background: transparent;
    padding: 0.5rem 1.3rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--mk-muted);
    cursor: pointer;
}

.mk-pricing-toggle button.active { background: #fff; color: var(--mk-brown); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }

.mk-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.6rem;
    align-items: stretch;
}

.mk-price-card {
    background: #fff;
    border: 1px solid var(--mk-cream-deep);
    border-radius: 20px;
    padding: 2.2rem 1.9rem;
    display: flex;
    flex-direction: column;
}

.mk-price-card.featured {
    border-color: var(--mk-amber);
    box-shadow: 0 20px 45px rgba(217, 140, 61, 0.22);
    position: relative;
}

.mk-price-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--mk-amber);
    color: var(--mk-brown-dark);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
}

.mk-price-card h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 0.3rem; }
.mk-price-card .mk-price-desc { color: var(--mk-muted); font-size: 0.88rem; margin-bottom: 1.4rem; min-height: 2.6em; }

.mk-price-amount { font-size: 2.4rem; font-weight: 800; margin-bottom: 0.1rem; font-variant-numeric: tabular-nums; }
.mk-price-amount span { font-size: 1rem; font-weight: 600; color: var(--mk-muted); }
.mk-price-yearly-note { font-size: 0.8rem; color: var(--mk-muted); margin-bottom: 1.6rem; min-height: 1.2em; }

.mk-price-features { list-style: none; padding: 0; margin: 0 0 1.8rem; flex: 1; }
.mk-price-features li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.9rem; padding: 0.4rem 0; }
.mk-price-features li i { color: var(--mk-amber); margin-top: 0.15rem; }

/* CTA band */
.mk-cta-band {
    background: linear-gradient(135deg, var(--mk-brown) 0%, var(--mk-brown-dark) 100%);
    color: #fff;
    border-radius: 24px;
    padding: 3.2rem 2.5rem;
    text-align: center;
    max-width: 1180px;
    margin: 0 auto;
}

.mk-cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; margin-bottom: 0.8rem; text-wrap: balance; }
.mk-cta-band p { color: rgba(255,255,255,0.78); margin-bottom: 1.8rem; }

/* Value callout — honest positioning note (small business, pricing, no
   aggregator integration), reused across home/pricing/features. */
.mk-value-callout {
    background: var(--mk-cream);
    border: 2px solid var(--mk-amber);
    border-radius: 16px;
    padding: 2rem 2.25rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    max-width: 1180px;
    margin: 0 auto;
}

.mk-value-callout > i {
    font-size: 1.8rem;
    color: var(--mk-amber);
    flex-shrink: 0;
}

.mk-value-callout h3 {
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 0.6rem;
    color: var(--mk-text);
}

.mk-value-callout p {
    color: var(--mk-muted);
    margin-bottom: 0.6rem;
    line-height: 1.6;
}

.mk-value-callout p:last-child {
    margin-bottom: 0;
}

.mk-value-callout strong {
    color: var(--mk-brown);
}

@media (max-width: 700px) {
    .mk-value-callout {
        flex-direction: column;
        padding: 1.5rem;
    }
}

/* Footer */
.mk-footer {
    background-color: var(--mk-brown-dark);
    color: rgba(255,255,255,0.75);
    padding: 3.5rem 1.5rem 0;
}

.mk-footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 2rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

/* Bootstrap's .text-muted is a dark gray meant for light backgrounds —
   on this dark footer it's nearly invisible, so it's overridden here
   rather than avoided in the markup (used for the brand tagline). */
.mk-footer .text-muted { color: rgba(255, 255, 255, 0.65) !important; }

.mk-footer .mk-brand-logo { height: 20px; }
.mk-footer-col h6 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.9rem; }
.mk-footer-col a { display: block; font-size: 0.9rem; padding: 0.25rem 0; color: rgba(255,255,255,0.68); }
.mk-footer-col a:hover { color: var(--mk-amber-light); }
.mk-footer a { color: inherit; }

.mk-footer-bottom {
    max-width: 1180px;
    margin: 0 auto;
    padding: 1.4rem 0;
    font-size: 0.8rem;
    text-align: center;
    color: rgba(255,255,255,0.5);
}

/* Forms (get started / demo / contact) */
.mk-form-shell {
    max-width: 640px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--mk-cream-deep);
    border-radius: 20px;
    padding: 2.5rem;
}

.mk-form-shell.narrow { max-width: 460px; text-align: center; }

/* Responsive */
@media (max-width: 900px) {
    .mk-hero-inner { grid-template-columns: 1fr; text-align: center; }
    .mk-hero p.lead { margin-left: auto; margin-right: auto; }
    .mk-hero-ctas { justify-content: center; }
    .mk-receipt-card { margin-top: 2rem; }
    .mk-footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .mk-nav-toggle { display: block; }
    #mkNav.mk-nav-links.show {
        display: flex;
    }
    /* #mkNav.mk-nav-links (not just .mk-nav-links) to match the base
       rule's ID+class specificity — otherwise flex: 1 (flex-basis: 0%)
       wins and this grows into the logo's row instead of wrapping onto
       its own line, no matter what width: 100% below says. */
    #mkNav.mk-nav-links {
        flex: 0 0 100%;
        flex-direction: column;
        gap: 0.2rem;
        width: 100%;
        order: 3;
        padding-top: 0.75rem;
    }
    .mk-navbar-inner { flex-wrap: wrap; }
    .mk-nav-cta {
        order: 4;
        width: 100%;
        justify-content: center;
        margin-left: 0;
        padding-top: 0.75rem;
        border-top: 1px solid var(--mk-cream-deep);
    }
    .mk-footer-inner { grid-template-columns: 1fr; }
}
