/* =========================================================================
   K M V L N AND CO — Marketing homepage
   Light mode only, premium, warm-professional, Indian-CA-firm trustworthy.
   Inspirations: Linear, Stripe, Vercel, Notion, Framer, Attio.
   ========================================================================= */

:root {
    /* Brand — purple palette (marketing site only).
       Anchored on #2f0278 (deep purple) with a brighter violet accent.
       The authenticated app uses --crm-primary defined in crm-theme.css.
       We scope the marketing palette under --mk-* tokens and alias the
       legacy --crm-* names so any lingering references resolve. */
    --mk-primary:        #2f0278;     /* deep purple — main brand */
    --mk-primary-700:    #1f014a;     /* hover/active darker purple */
    --mk-primary-600:    #2f0278;     /* same as primary */
    --mk-primary-500:    #4f1aa0;     /* mid purple */
    --mk-primary-400:    #6f3acf;     /* lighter mid */
    --mk-primary-300:    #b591e6;     /* soft tint for backgrounds */
    --mk-primary-100:    #ece3f9;     /* very soft tint for hero washes */
    --mk-accent:         #7c3aed;     /* bright violet — secondary accent */
    --mk-accent-2:       #4f1aa0;     /* deeper accent */
    --mk-primary-rgb:    47,2,120;
    --mk-accent-rgb:     124,58,237;

    /* Legacy aliases — keep .mk-* selectors that still mention --crm-primary
       working. Marketing-only; does NOT bleed into the authed app, which
       has its own crm-theme.css :root override that is loaded separately. */
    --crm-primary:       var(--mk-primary);
    --crm-primary-600:   var(--mk-primary-600);
    --crm-primary-700:   var(--mk-primary-700);
    --crm-accent:        var(--mk-accent);

    /* Surfaces */
    --bg: #fefefe;
    --surface: #ffffff;
    --subtle: #f8fafc;
    --muted: #f1f5f9;

    /* Borders */
    --border: #e2e8f0;
    --border-strong: #cbd5e1;

    /* Text */
    --text: #0f172a;
    --text-2: #334155;
    --text-3: #475569;
    --text-4: #94a3b8;

    /* Tones */
    --ok: #10b981;
    --warn: #f59e0b;
    --err: #ef4444;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, .04);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
    --shadow-md: 0 8px 24px rgba(47, 2, 120, .10), 0 4px 12px rgba(15, 23, 42, .04);
    --shadow-lg: 0 24px 64px -12px rgba(47, 2, 120, .20), 0 8px 24px rgba(15, 23, 42, .06);
    --shadow-glow: 0 0 0 6px rgba(47, 2, 120, .12);

    /* Radii */
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 22px;
    --r-2xl: 28px;

    /* Layout */
    --maxw: 1200px;
    --section-py: 110px;

    /* Type */
    --ff-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --ff-display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---- Base reset & body ------------------------------------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.mk-body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--ff-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

.mk-body img, .mk-body svg { max-width: 100%; }

/* Default link color — explicitly EXCLUDE button + nav-link patterns so they
   don't inherit a contrast-breaking blue on top of a coloured background.
   The previous rule (`.mk-body a`) had higher specificity than `.mk-btn` and
   was painting button text the same colour as the gradient fill.            */
.mk-body a:not(.mk-btn):not(.mk-nav-link):not(.mk-footer-link):not(.mk-brand) {
    color: var(--mk-primary);
    text-decoration: none;
    transition: color .15s ease;
}
.mk-body a:not(.mk-btn):not(.mk-nav-link):not(.mk-footer-link):not(.mk-brand):hover {
    color: var(--mk-primary-700);
}

/* Defensive — make sure every button-styled anchor honours its declared text colour
   regardless of any future global link rule changes. */
.mk-body a.mk-btn { color: var(--btn-fg); }
.mk-body a.mk-btn-primary,
.mk-body a.mk-btn-primary:hover,
.mk-body a.mk-btn-primary:focus { color: #ffffff; }

.mk-body :focus-visible {
    outline: 2px solid var(--mk-primary);
    outline-offset: 3px;
    border-radius: 4px;
}

.mk-body .container { max-width: var(--maxw); }

/* ---- Section primitives ------------------------------------------------ */
.mk-section {
    padding: var(--section-py) 0;
    position: relative;
}
.mk-section-soft { background: var(--subtle); }

.mk-section-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 56px;
}
.mk-section-head-left { text-align: left; margin-left: 0; margin-right: auto; }

.mk-section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(47, 2, 120, .08);
    color: var(--mk-primary);
    border: 1px solid rgba(47, 2, 120, .18);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.mk-section-title {
    font-family: var(--ff-display);
    font-size: clamp(30px, 4.4vw, 48px);
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 18px;
    text-wrap: balance;
}

.mk-section-sub {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-3);
    margin: 0;
}

/* ---- Reveal animations ------------------------------------------------- */
[data-mk-fade] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .7s cubic-bezier(.2, .8, .2, 1), transform .7s cubic-bezier(.2, .8, .2, 1);
    will-change: opacity, transform;
}
[data-mk-fade].is-in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    [data-mk-fade] { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
    .mk-mesh { animation: none !important; }
    .mk-pulse { animation: none !important; }
}

/* ---- Buttons ----------------------------------------------------------- */
.mk-btn {
    --btn-bg: var(--surface);
    --btn-fg: var(--text);
    --btn-bd: var(--border);
    --btn-shadow: var(--shadow-xs);

    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: var(--r-md);
    background: var(--btn-bg);
    color: var(--btn-fg);
    border: 1px solid var(--btn-bd);
    font-family: var(--ff-body);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background .15s ease, color .15s ease, border-color .15s ease;
    box-shadow: var(--btn-shadow);
    white-space: nowrap;
    text-decoration: none;
}
.mk-btn i { font-size: 1.05em; }
.mk-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.mk-btn:active { transform: translateY(0); }

.mk-btn-lg {
    padding: 14px 22px;
    font-size: 15px;
    border-radius: 14px;
}

.mk-btn-block { width: 100%; justify-content: center; }

.mk-btn-primary {
    --btn-bg: linear-gradient(135deg, var(--mk-primary) 0%, var(--mk-accent) 100%);
    --btn-fg: #ffffff;
    --btn-bd: transparent;
    --btn-shadow: 0 6px 18px rgba(47, 2, 120, .32), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.mk-btn-primary:hover {
    --btn-shadow: 0 10px 28px rgba(47, 2, 120, .42), inset 0 1px 0 rgba(255, 255, 255, .22);
    color: #ffffff;
}

.mk-btn-outline {
    --btn-bg: var(--surface);
    --btn-fg: var(--text);
    --btn-bd: var(--border-strong);
}
.mk-btn-outline:hover {
    --btn-bg: var(--subtle);
    color: var(--text);
}

.mk-btn-ghost {
    --btn-bg: transparent;
    --btn-fg: var(--text-2);
    --btn-bd: transparent;
    --btn-shadow: none;
}
.mk-btn-ghost:hover {
    --btn-bg: var(--muted);
    color: var(--text);
}

.mk-btn-arrow { transition: transform .2s ease; }
.mk-btn:hover .mk-btn-arrow { transform: translateX(3px); }

/* ---- Header ------------------------------------------------------------ */
.mk-header {
    position: sticky;
    top: 0;
    z-index: 90;
    padding: 14px 0;
    background: rgba(255, 255, 255, .72);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: background .25s ease, border-color .25s ease, box-shadow .25s ease, padding .25s ease;
}
.mk-header.is-scrolled {
    background: rgba(255, 255, 255, .92);
    border-bottom-color: var(--border);
    box-shadow: 0 2px 12px rgba(15, 23, 42, .04);
    padding: 10px 0;
}

.mk-header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
}

.mk-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
}
.mk-brand-mark {
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--mk-primary), var(--mk-accent));
    color: #ffffff;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: .04em;
    box-shadow: 0 4px 14px rgba(47, 2, 120, .38);
}
.mk-brand-logo { height: 36px; width: auto; }
.mk-brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.mk-brand-name {
    font-family: var(--ff-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}
.mk-brand-sub {
    font-size: 11px;
    color: var(--text-4);
    font-weight: 500;
    letter-spacing: .02em;
}

.mk-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }

.mk-nav-list {
    display: flex; align-items: center; gap: 4px;
    list-style: none;
    margin: 0; padding: 0;
}
.mk-nav-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--text-2);
    font-size: 14px;
    font-weight: 500;
    transition: background .15s ease, color .15s ease;
    text-decoration: none;
}
.mk-nav-link:hover { color: var(--text); background: var(--muted); }

.mk-nav-ctas { display: flex; gap: 8px; align-items: center; }

.mk-nav-toggle {
    display: none;
    margin-left: auto;
    width: 40px; height: 40px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    font-size: 20px;
    cursor: pointer;
}

@media (max-width: 991.98px) {
    .mk-nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .mk-nav {
        position: fixed;
        inset: 64px 0 auto 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0 16px;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease, padding .3s ease;
        box-shadow: var(--shadow-sm);
    }
    .mk-nav.is-open { max-height: 80vh; padding: 16px; }
    .mk-nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
    .mk-nav-link { padding: 12px 14px; }
    .mk-nav-ctas { flex-direction: column; gap: 8px; margin-top: 8px; }
    .mk-nav-ctas .mk-btn { width: 100%; justify-content: center; }
}

/* ---- Hero -------------------------------------------------------------- */
.mk-hero {
    position: relative;
    padding: 84px 0 96px;
    overflow: hidden;
}
.mk-hero-inner { position: relative; z-index: 2; }

.mk-hero-bg { position: absolute; inset: -10% -10% -10% -10%; pointer-events: none; z-index: 0; }
.mk-mesh {
    position: absolute;
    width: 720px; height: 720px;
    border-radius: 50%;
    filter: blur(96px);
    opacity: .42;
    animation: mkDrift 20s ease-in-out infinite;
}
.mk-mesh-1 { background: radial-gradient(circle, rgba(47, 2, 120, .55), rgba(47, 2, 120, 0) 70%); top: -180px; left: -120px; }
.mk-mesh-2 { background: radial-gradient(circle, rgba(124, 58, 237, .45), rgba(124, 58, 237, 0) 70%); top: 80px; right: -180px; animation-delay: -7s; }
.mk-mesh-3 { background: radial-gradient(circle, rgba(67, 160, 71, .38), rgba(67, 160, 71, 0) 70%); bottom: -260px; left: 30%; animation-delay: -13s; }

@keyframes mkDrift {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    33%      { transform: translate3d(40px, -20px, 0) scale(1.05); }
    66%      { transform: translate3d(-30px, 30px, 0) scale(.96); }
}

.mk-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(15, 23, 42, .045) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 23, 42, .045) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
}

.mk-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
    box-shadow: var(--shadow-xs);
    margin-bottom: 24px;
}
.mk-pulse {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--mk-primary);
    box-shadow: 0 0 0 0 rgba(47, 2, 120, .6);
    animation: mkPulse 2s ease-out infinite;
    flex: none;
}
@keyframes mkPulse {
    0%   { box-shadow: 0 0 0 0 rgba(47, 2, 120, .6); }
    70%  { box-shadow: 0 0 0 12px rgba(47, 2, 120, 0); }
    100% { box-shadow: 0 0 0 0 rgba(47, 2, 120, 0); }
}

.mk-hero-title {
    font-family: var(--ff-display);
    font-size: clamp(40px, 6.2vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.04em;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 20px;
    text-wrap: balance;
}
.mk-grad {
    background: linear-gradient(135deg, var(--mk-primary) 0%, var(--mk-accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.mk-hero-sub {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-3);
    max-width: 540px;
    margin: 0 0 32px;
}

.mk-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.mk-trust {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
    color: var(--text-3);
    font-size: 13px;
    margin: 0;
}
.mk-trust i { color: var(--mk-primary); margin-right: 4px; }
.mk-trust-sep { color: var(--text-4); }

/* ---- Hero mockup ------------------------------------------------------- */
.mk-mock-wrap {
    position: relative;
    perspective: 1400px;
    transform-style: preserve-3d;
    will-change: transform;
}
.mk-mock-glow {
    position: absolute;
    inset: 6% 4%;
    background: radial-gradient(60% 60% at 50% 60%, rgba(47, 2, 120, .35), transparent 70%);
    filter: blur(32px);
    z-index: 0;
}
.mk-mock {
    position: relative;
    z-index: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 14px;
    box-shadow: var(--shadow-lg);
    transition: transform .3s cubic-bezier(.2, .8, .2, 1);
    transform: rotateY(-4deg) rotateX(2deg);
}
.mk-mock-svg { display: block; width: 100%; height: auto; border-radius: var(--r-md); }

@media (max-width: 991.98px) {
    .mk-mock { transform: none; }
    .mk-hero { padding: 60px 0 72px; }
}

/* ---- Stats ------------------------------------------------------------- */
.mk-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 88px 0 48px;
    padding: 26px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-sm);
}
.mk-stat { text-align: left; padding: 0 8px; }
.mk-stat + .mk-stat { border-left: 1px solid var(--border); }
.mk-stat-value {
    font-family: var(--ff-display);
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.1;
    font-feature-settings: "tnum";
}
.mk-stat-prefix { color: var(--text-3); font-weight: 600; }
.mk-stat-suffix { color: var(--mk-primary); }
.mk-stat-label {
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-3);
}
@media (max-width: 767.98px) {
    .mk-stats { grid-template-columns: repeat(2, 1fr); }
    .mk-stat:nth-child(odd) { border-left: 0; }
    .mk-stat { padding: 12px 4px; }
}

/* ---- Logo cloud -------------------------------------------------------- */
.mk-logos { margin-top: 24px; text-align: center; }
.mk-logos-cap { color: var(--text-4); font-size: 13px; font-weight: 500; margin: 0 0 18px; letter-spacing: .02em; }
.mk-logos-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}
.mk-logo {
    display: flex; align-items: center; gap: 10px;
    justify-content: center;
    padding: 14px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    color: var(--text-3);
    transition: color .15s ease, border-color .15s ease, transform .15s ease, filter .2s ease;
    filter: grayscale(40%);
}
.mk-logo:hover {
    color: var(--text);
    border-color: var(--border-strong);
    transform: translateY(-2px);
    filter: none;
}
.mk-logo-mono {
    font-family: var(--ff-display);
    font-weight: 800;
    font-size: 18px;
    color: var(--mk-primary);
    letter-spacing: -0.02em;
}
.mk-logo-name {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (max-width: 991.98px) { .mk-logos-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575.98px) { .mk-logos-row { grid-template-columns: repeat(2, 1fr); } }

/* ---- Features grid ----------------------------------------------------- */
.mk-feat-grid { row-gap: 20px; }

.mk-feat {
    height: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 28px 26px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    position: relative;
    overflow: hidden;
}
.mk-feat::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(47, 2, 120, .05), transparent 60%);
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
}
.mk-feat:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(47, 2, 120, .28);
}
.mk-feat:hover::before { opacity: 1; }

.mk-feat-icon {
    width: 48px; height: 48px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 12px;
    font-size: 22px;
    margin-bottom: 18px;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .05);
}
.mk-feat-title {
    font-family: var(--ff-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 8px;
    letter-spacing: -0.015em;
}
.mk-feat-desc {
    font-size: 15px;
    color: var(--text-3);
    margin: 0;
    line-height: 1.6;
}

/* mk-tone-indigo / -violet are used as per-feature accents in features.blade.
   Re-tinted to harmonise with the purple brand: indigo reads as the deep
   purple anchor, violet as the brighter accent. Other tones unchanged so
   the grid keeps its colourful variety. */
.mk-tone-indigo  { background: #ece3f9; color: #2f0278; }
.mk-tone-violet  { background: #f3e8ff; color: #7c3aed; }
.mk-tone-emerald { background: #ecfdf5; color: #059669; }
.mk-tone-amber   { background: #fffbeb; color: #d97706; }
.mk-tone-sky     { background: #f0f9ff; color: #0284c7; }
.mk-tone-rose    { background: #fff1f2; color: #e11d48; }
.mk-tone-slate   { background: #f1f5f9; color: #475569; }
.mk-tone-teal    { background: #f0fdfa; color: #0d9488; }
.mk-tone-lime    { background: #f7fee7; color: #65a30d; }

/* ---- Tabs / Modules ---------------------------------------------------- */
.mk-tablist {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    padding: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    width: max-content;
    max-width: 100%;
    margin: 0 auto 56px;
    box-shadow: var(--shadow-sm);
}
.mk-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: transparent;
    border: none;
    border-radius: 999px;
    color: var(--text-3);
    font-family: var(--ff-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
.mk-tab:hover { color: var(--text); }
.mk-tab.is-active {
    background: linear-gradient(135deg, var(--mk-primary), var(--mk-accent));
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(47, 2, 120, .32);
}
.mk-tab-num { font-size: 11px; opacity: .8; font-weight: 700; }
.mk-tab.is-active .mk-tab-num { opacity: .9; }

@media (max-width: 575.98px) {
    .mk-tablist { width: 100%; flex-wrap: wrap; border-radius: 16px; }
    .mk-tab { flex: 1 1 calc(50% - 4px); justify-content: center; }
}

.mk-panel {
    opacity: 1;
    transition: opacity .35s ease, transform .35s ease;
}
.mk-panel[hidden] { display: none; }
.mk-panel.is-fading { opacity: 0; transform: translateY(8px); }

.mk-panel-title {
    font-family: var(--ff-display);
    font-size: clamp(26px, 3.5vw, 38px);
    line-height: 1.15;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.025em;
    margin: 14px 0 14px;
}
.mk-panel-sub {
    font-size: 17px;
    color: var(--text-3);
    margin: 0 0 24px;
    line-height: 1.6;
}

.mk-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.mk-bullets li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: var(--text-2);
    font-size: 15px;
    line-height: 1.55;
}
.mk-bullets i {
    flex: none;
    width: 22px; height: 22px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(47, 2, 120, .14);
    color: var(--mk-primary);
    font-size: 13px;
    margin-top: 1px;
}

.mk-panel-mock {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 12px;
    box-shadow: var(--shadow-md);
}
.mk-panel-mock svg { display: block; width: 100%; height: auto; border-radius: var(--r-md); }

/* ---- Compliance differentiator ---------------------------------------- */
.mk-comp-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 28px;
}
.mk-comp-stat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 18px;
}
.mk-comp-num {
    font-family: var(--ff-display);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, var(--mk-primary), var(--mk-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}
.mk-comp-lbl { font-size: 13px; color: var(--text-3); margin-top: 8px; }

@media (max-width: 575.98px) { .mk-comp-stats { grid-template-columns: 1fr; } }

.mk-comp-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 24px;
    box-shadow: var(--shadow-md);
}
.mk-comp-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.mk-comp-card-title {
    font-family: var(--ff-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}
.mk-comp-card-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(47, 2, 120, .12);
    color: var(--mk-primary-700);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    border-radius: 999px;
    text-transform: uppercase;
}
.mk-comp-card-pill::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--mk-primary);
    animation: mkPulse 2s ease-out infinite;
}
.mk-comp-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}
.mk-comp-list li {
    display: grid;
    grid-template-columns: 12px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border);
}
.mk-comp-list li:last-child { border-bottom: 0; }
.mk-comp-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--mk-dot, var(--mk-primary));
    box-shadow: 0 0 0 4px rgba(47, 2, 120, .14);
}
.mk-comp-text { font-size: 14px; color: var(--text-2); }
.mk-comp-text strong { color: var(--text); font-weight: 700; }
.mk-comp-due {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-4);
    background: var(--muted);
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: .02em;
}

/* ---- Workflow / steps -------------------------------------------------- */
.mk-flow {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: stretch;
    gap: 12px;
}
.mk-step {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 24px 22px;
    box-shadow: var(--shadow-xs);
    transition: transform .2s ease, box-shadow .2s ease;
}
.mk-step:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.mk-step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--mk-primary), var(--mk-accent));
    color: #ffffff;
    font-family: var(--ff-display);
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 14px;
    box-shadow: 0 4px 10px rgba(47, 2, 120, .32);
}
.mk-step-title {
    font-family: var(--ff-display);
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 6px;
}
.mk-step-desc { font-size: 14px; color: var(--text-3); margin: 0; line-height: 1.5; }
.mk-step-arrow {
    display: flex; align-items: center; justify-content: center;
    color: var(--border-strong);
    font-size: 22px;
}
@media (max-width: 991.98px) {
    .mk-flow { grid-template-columns: 1fr; gap: 16px; }
    .mk-step-arrow { transform: rotate(90deg); padding: 4px 0; }
}

/* ---- Testimonial / quote ---------------------------------------------- */
.mk-section-quote {
    padding: 96px 0;
    background: linear-gradient(180deg, var(--surface) 0%, var(--subtle) 100%);
    position: relative;
}
.mk-quote {
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
}
.mk-quote-mark {
    display: inline-flex;
    width: 56px; height: 56px;
    align-items: center; justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--mk-primary), var(--mk-accent));
    color: #ffffff;
    font-size: 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
}
.mk-quote-text {
    font-family: var(--ff-display);
    font-size: clamp(22px, 2.6vw, 32px);
    line-height: 1.35;
    color: var(--text);
    letter-spacing: -0.02em;
    font-weight: 500;
    margin: 0 0 32px;
    text-wrap: balance;
}
.mk-quote-meta { display: inline-flex; align-items: center; gap: 14px; }
.mk-quote-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--mk-primary), var(--mk-accent));
    color: #ffffff;
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--ff-display);
    font-weight: 800;
    font-size: 18px;
    box-shadow: var(--shadow-sm);
}
.mk-quote-attribution { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.mk-quote-attribution strong { font-size: 15px; color: var(--text); }
.mk-quote-attribution span { font-size: 13px; color: var(--text-3); margin-top: 2px; }

/* ---- Pricing ----------------------------------------------------------- */
.mk-price-grid { row-gap: 20px; }
.mk-price {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 30px 28px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    position: relative;
}
.mk-price:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.mk-price.is-featured {
    border-color: rgba(47, 2, 120, .38);
    box-shadow: 0 24px 48px -12px rgba(47, 2, 120, .25), 0 8px 18px rgba(15, 23, 42, .04);
    background: linear-gradient(180deg, #ffffff 0%, #f4faf4 100%);
}
.mk-price-flag {
    position: absolute;
    top: -12px;
    left: 28px;
    background: linear-gradient(135deg, var(--mk-primary), var(--mk-accent));
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 999px;
    box-shadow: 0 6px 14px rgba(47, 2, 120, .38);
}
.mk-price-name {
    font-family: var(--ff-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}
.mk-price-tag { font-size: 14px; color: var(--text-3); margin: 0 0 22px; line-height: 1.5; }
.mk-price-amount { display: flex; align-items: baseline; gap: 8px; margin-bottom: 22px; }
.mk-price-val {
    font-family: var(--ff-display);
    font-size: 30px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.025em;
}
.mk-price-per { font-size: 13px; color: var(--text-3); }
.mk-price-feats {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}
.mk-price-feats li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 14px;
    color: var(--text-2);
}
.mk-price-feats i { color: var(--mk-primary); font-size: 15px; margin-top: 2px; }

/* ---- FAQ --------------------------------------------------------------- */
.mk-faq { max-width: 820px; margin: 0 auto; }
.mk-faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    margin-bottom: 12px;
    transition: border-color .2s ease, box-shadow .2s ease;
    overflow: hidden;
}
.mk-faq-item[open] {
    border-color: rgba(47, 2, 120, .28);
    box-shadow: var(--shadow-sm);
}
.mk-faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.mk-faq-q::-webkit-details-marker { display: none; }
.mk-faq-icon {
    flex: none;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--muted);
    color: var(--mk-primary);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 18px;
    transition: transform .25s ease, background .2s ease;
}
.mk-faq-item[open] .mk-faq-icon {
    transform: rotate(45deg);
    background: rgba(47, 2, 120, .14);
}
.mk-faq-a {
    padding: 0 22px 20px;
    color: var(--text-3);
    font-size: 15px;
    line-height: 1.65;
}
.mk-faq-a p { margin: 0; }

/* ---- Final CTA band --------------------------------------------------- */
.mk-cta-band {
    position: relative;
    padding: 96px 0;
    overflow: hidden;
    background: linear-gradient(180deg, var(--surface) 0%, var(--mk-primary-100) 100%);
    border-top: 1px solid var(--border);
}
.mk-cta-bg { position: absolute; inset: 0; pointer-events: none; }
.mk-cta-bg .mk-mesh-1 { top: -200px; left: -100px; opacity: .35; }
.mk-cta-bg .mk-mesh-2 { bottom: -260px; right: -180px; opacity: .3; }
.mk-cta-inner { position: relative; z-index: 1; text-align: center; }
.mk-cta-title {
    font-family: var(--ff-display);
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.1;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.03em;
    margin: 0 0 18px;
    text-wrap: balance;
}
.mk-cta-sub {
    font-size: 18px;
    color: var(--text-3);
    max-width: 600px;
    margin: 0 auto 32px;
}
.mk-cta-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

/* ---- Footer ----------------------------------------------------------- */
.mk-footer {
    background: var(--text);
    color: #cbd5e1;
    padding: 72px 0 28px;
}
.mk-footer .mk-brand-name { color: #ffffff; }
.mk-footer .mk-brand-sub { color: #94a3b8; }
.mk-footer-blurb { color: #cbd5e1; font-size: 14px; line-height: 1.6; margin: 18px 0 12px; max-width: 320px; }
.mk-footer-contact { margin: 0; }
/* Footer link colour — soft brand-green on dark navy gives WCAG-AA contrast,
   white on hover keeps the affordance unambiguous. */
.mk-footer-contact a { color: var(--mk-primary-300); font-weight: 600; text-decoration: none; transition: color .15s ease; }
.mk-footer-contact a:hover { color: #ffffff; }
.mk-footer-h {
    color: #ffffff;
    font-family: var(--ff-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin: 0 0 16px;
}
.mk-footer-links {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mk-footer-links a {
    color: var(--mk-primary-300);
    font-size: 14px;
    transition: color .15s ease;
    text-decoration: none;
}
.mk-footer-links a:hover { color: #ffffff; }
.mk-footer-strip {
    margin-top: 56px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.mk-footer-copy { font-size: 13px; color: #94a3b8; margin: 0; }
.mk-footer-meta { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; color: #94a3b8; margin: 0; flex-wrap: wrap; }
.mk-footer-meta a {
    color: var(--mk-primary-300);
    text-decoration: none;
    transition: color .15s ease;
}
.mk-footer-meta a:hover { color: #ffffff; }

/* Registered office address card — vertically stacked, brand-tinted icons.
   Lives in the footer dark band; the address text uses the slate-300 body
   colour and links use the soft brand-green for contrast. */
.mk-footer-address {
    font-style: normal;
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.65;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
}
.mk-footer-addr-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.mk-footer-addr-line i {
    color: var(--mk-primary-300);
    font-size: 14px;
    flex: none;
}
.mk-footer-addr-line a {
    color: var(--mk-primary-300);
    text-decoration: none;
    font-weight: 600;
    transition: color .15s ease;
}
.mk-footer-addr-line a:hover { color: #ffffff; }
.mk-footer-addr-divider {
    height: 1px;
    background: rgba(255, 255, 255, .08);
    margin: 8px 0 4px;
    width: 100%;
    max-width: 220px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---- Responsive tweaks ------------------------------------------------ */
@media (max-width: 991.98px) {
    .mk-section-head-left { text-align: left; }
}

@media (max-width: 767.98px) {
    :root { --section-py: 72px; }
    .mk-section-head { margin-bottom: 36px; }
    .mk-stats { margin: 56px 0 32px; }
    .mk-quote-text { font-size: 22px; }
    .mk-footer-top { row-gap: 32px !important; }
}

@media (max-width: 575.98px) {
    .mk-hero-ctas .mk-btn { width: 100%; justify-content: center; }
    .mk-cta-actions .mk-btn { width: 100%; justify-content: center; }
    .mk-footer-strip { flex-direction: column; align-items: flex-start; }
}

/* ---- Sign-in dual-portal dropdown (bank-style retail/corporate) ------ */
.mk-signin { position: relative; display: inline-block; }
.mk-signin-toggle .mk-signin-caret { transition: transform .18s ease; font-size: .9em; }
.mk-signin[data-open="true"] .mk-signin-caret { transform: rotate(180deg); }
.mk-signin-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 320px;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: 0 12px 40px rgba(15, 23, 42, .12), 0 2px 8px rgba(15, 23, 42, .06);
    z-index: 100;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease;
}
.mk-signin[data-open="true"] .mk-signin-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.mk-signin-menu[hidden] { display: block; } /* override [hidden] for transition control */

.mk-signin-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    color: var(--text);
    text-decoration: none;
    transition: background .12s ease, color .12s ease;
}
.mk-signin-item + .mk-signin-item { margin-top: 2px; }
.mk-signin-item:hover,
.mk-signin-item:focus-visible {
    background: var(--subtle);
    color: var(--text);
    outline: none;
}
.mk-signin-ico {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(47, 2, 120, .12), rgba(124, 58, 237, .12));
    color: var(--mk-primary);
    border-radius: 9px;
    font-size: 1.05em;
}
.mk-signin-text { display: flex; flex-direction: column; flex: 1 1 auto; }
.mk-signin-title { font-weight: 600; font-size: 14px; color: var(--text); line-height: 1.2; }
.mk-signin-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.mk-signin-arrow { color: var(--text-4); font-size: .9em; transition: transform .15s ease, color .15s ease; }
.mk-signin-item:hover .mk-signin-arrow { color: var(--mk-primary); transform: translateX(2px); }

/* Mobile: dropdown should fit the drawer rather than float */
@media (max-width: 991.98px) {
    .mk-signin { display: block; width: 100%; }
    .mk-signin-toggle { width: 100%; justify-content: space-between; }
    .mk-signin-menu {
        position: static;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        box-shadow: none;
        border: 0;
        background: transparent;
        padding: 4px 0 0;
        min-width: 0;
        margin-top: 4px;
    }
    .mk-signin[data-open="false"] .mk-signin-menu { display: none; }
    .mk-signin-item { background: var(--subtle); }
}
