/*
 * Marketing design kit — shared by the public marketing pages (resources/views/components/mkt/*).
 * Loaded by components/marketing-layout. Everything is scoped under `.mk` (the page's <main>), so
 * pages that have not moved to the kit are unaffected.
 *
 * Rules the kit encodes (owner's, see docs in the component headers):
 *  - no pill "kicker"/eyebrow chips or decorative uppercase labels above headings;
 *  - WCAG AA text contrast in light and dark (muted text never lighter than the tokens below);
 *  - dark mode follows prefers-color-scheme; motion only under prefers-reduced-motion: no-preference;
 *  - mobile-first: no horizontal scroll at 360px, tap targets >= 44px.
 *
 * A page gives itself character with a modifier on <main class="mk ..."> or by overriding the accent
 * tokens (--mk-accent, --mk-accent-2, --mk-glow) — never by copying the kit.
 */

/* ------------------------------------------------------------------ tokens */
.mk {
    --mk-bg: #ffffff;
    --mk-bg-2: #f7f9fc;
    --mk-card: #ffffff;
    --mk-line: #e2e8f0;
    --mk-line-soft: #edf1f7;
    --mk-ink: #0f172a;
    --mk-muted: #475569;          /* body copy on bg / bg-2 / card: >= 7:1 */
    --mk-faint: #5a687d;          /* captions; app.css --muted, AA on every light surface */
    --mk-accent: #4f46e5;         /* fills (white text on it is 6.3:1) */
    --mk-accent-2: #0891b2;       /* second hue for gradients/illustration only */
    --mk-accent-ink: #4338ca;     /* accent-coloured TEXT on light surfaces */
    --mk-accent-soft: #eef2ff;
    --mk-glow: rgba(99, 102, 241, .30);
    --mk-ok: #15803d;
    --mk-warn: #b45309;
    --mk-live: #dc2626;
    --mk-grad: linear-gradient(120deg, var(--mk-accent), var(--mk-accent-2));
    --mk-mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, monospace;
    --mk-radius: 18px;
    --mk-radius-sm: 12px;
    --mk-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 24px 48px -32px rgba(15, 23, 42, .28);
    --mk-shadow-lg: 0 40px 80px -40px rgba(15, 23, 42, .40);
    --mk-code-bg: #0b1020;
    --mk-code-ink: #dbe3f4;
    /* The always-dark surfaces (dark hero, CTA band, code) use these in both schemes. */
    --mk-night: #070a14;
    --mk-night-2: #0d1222;
    --mk-night-line: #232c47;
    --mk-night-ink: #e8ecf6;
    --mk-night-muted: #b6c0d8;    /* 10:1 on night */
    --mk-night-faint: #8f9bb8;    /* 6.6:1 on night, 5.6:1 on night-2 */
    --mk-night-accent: #a5b4fc;

    background: var(--mk-bg);
    color: var(--mk-ink);
    display: block;
}
@media (prefers-color-scheme: dark) {
    .mk {
        --mk-bg: #070a12;
        --mk-bg-2: #0b1020;
        --mk-card: #0f1527;
        --mk-line: #1f2942;
        --mk-line-soft: #161e35;
        --mk-ink: #e8ecf6;
        --mk-muted: #a8b2c8;
        --mk-faint: #8f9bb3;
        --mk-accent-ink: #a5b4fc;
        --mk-accent-soft: #161b3a;
        --mk-ok: #4ade80;
        --mk-warn: #fbbf24;
        --mk-live: #f87171;
        --mk-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 24px 48px -28px rgba(0, 0, 0, .8);
        --mk-shadow-lg: 0 40px 80px -36px rgba(0, 0, 0, .9);
        --mk-code-bg: #050812;
    }
}

/* ------------------------------------------------------- page chrome (dark) */
/* The layout's header/footer are light-only; on a kit page in dark mode the header follows. */
@media (prefers-color-scheme: dark) {
    body:has(> #main-content > .mk) { background: #070a12; color: #e8ecf6; }
    body:has(> #main-content > .mk) .footer { margin-top: 0; }
    body:has(> #main-content > .mk) .header { background: rgba(7, 10, 18, .86); border-bottom-color: rgba(255, 255, 255, .07); }
    body:has(> #main-content > .mk) .logo { color: #a5b4fc; }
    body:has(> #main-content > .mk) .nav-links a,
    body:has(> #main-content > .mk) .nav-dd-toggle,
    body:has(> #main-content > .mk) .auth-btns a:not(.btn-signup) { color: #c3cbe0; }
    body:has(> #main-content > .mk) .nav-links a:hover,
    body:has(> #main-content > .mk) .nav-dd-toggle:hover,
    body:has(> #main-content > .mk) .auth-btns a:not(.btn-signup):hover { color: #fff; }
    body:has(> #main-content > .mk) .nav-dd-menu { background: #0f1527; border-color: #1f2942; box-shadow: 0 18px 40px rgba(0, 0, 0, .6); }
    body:has(> #main-content > .mk) .nav-dd-menu a:hover { background: #161e35; color: #fff; }
    body:has(> #main-content > .mk) .locale-picker select { background: #0f1527; color: #e8ecf6; border-color: #2a3552; }
    body:has(> #main-content > .mk) .nav-toggle { color: #e8ecf6; }
    body:has(> #main-content > .mk) .btn-signup,
    body:has(> #main-content > .mk) .nav-signup-compact,
    body:has(> #main-content > .mk) .sticky-cta__btn { background: #4f46e5; }
    body:has(> #main-content > .mk) .sticky-cta { background: rgba(11, 16, 32, .97); border-top-color: #1f2942; }
    body:has(> #main-content > .mk) .sticky-cta__label { color: #c3cbe0; }
}
@media (prefers-color-scheme: dark) and (max-width: 1024px) {
    body:has(> #main-content > .mk) .nav-collapse { background: #0b1020; border-bottom-color: #1f2942; }
    body:has(> #main-content > .mk) .nav-links > li > a,
    body:has(> #main-content > .mk) .nav-collapse .nav-dd-toggle { color: #e8ecf6; }
    body:has(> #main-content > .mk) .nav-links > li > a:hover,
    body:has(> #main-content > .mk) .nav-dd-menu a:hover { background: #161e35; }
    body:has(> #main-content > .mk) .nav-dd-menu { background: none; border-left-color: #1f2942; }
    body:has(> #main-content > .mk) .nav-dd-menu a { color: #c3cbe0; }
    body:has(> #main-content > .mk) .nav-collapse .auth-btns { border-top-color: #1f2942; }
    body:has(> #main-content > .mk) .nav-collapse .auth-btns a:not(.btn-signup) { border-color: #2a3552; color: #e8ecf6; }
}
/* A kit page's last section meets the footer directly (the layout adds 7rem of white otherwise). */
body:has(> #main-content > .mk) .footer { margin-top: 0; }

/* ------------------------------------------------------------------- base */
.mk *, .mk *::before, .mk *::after { box-sizing: border-box; }
.mk h1, .mk h2, .mk h3, .mk h4 { font-family: inherit; color: inherit; text-wrap: balance; }
.mk p { text-wrap: pretty; }
.mk img, .mk svg { max-width: 100%; }
.mk img { height: auto; display: block; }
.mk a { color: var(--mk-accent-ink); }
.mk a:focus-visible, .mk button:focus-visible, .mk summary:focus-visible, .mk [tabindex]:focus-visible { outline: 2px solid var(--mk-accent-ink); outline-offset: 3px; border-radius: 6px; }
.mk code { font-family: var(--mk-mono); }
.mk pre code { color: inherit; background: none; padding: 0; }
.mk .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.mk .mk-grad-text { background: var(--mk-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------------------------------------------------------------- sections */
.mk-section { padding: 6rem 0; position: relative; }
.mk-section--tight { padding: 4rem 0; }
.mk-section--alt { background: var(--mk-bg-2); border-top: 1px solid var(--mk-line-soft); border-bottom: 1px solid var(--mk-line-soft); }
.mk-section--alt + .mk-section--alt { border-top: 0; }
.mk-section--night { background: var(--mk-night); color: var(--mk-night-ink); --mk-ink: var(--mk-night-ink); --mk-muted: var(--mk-night-muted); --mk-faint: var(--mk-night-faint); --mk-card: var(--mk-night-2); --mk-line: var(--mk-night-line); --mk-line-soft: #182038; --mk-bg-2: #0b1020; --mk-accent-ink: var(--mk-night-accent); }
.mk-narrow { max-width: 820px; margin-left: auto; margin-right: auto; }

/* Section header: h2 + optional lead. No eyebrow, by design. */
.mk-head { max-width: 720px; margin: 0 0 3rem; }
.mk-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.mk-head--split { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 4rem; align-items: end; }
.mk-head h2 { font-size: clamp(1.8rem, 3.3vw, 2.7rem); font-weight: 750; letter-spacing: -.03em; line-height: 1.1; margin: 0 0 1rem; }
.mk-head--split h2 { margin: 0; }
.mk-head p { color: var(--mk-muted); font-size: 1.08rem; line-height: 1.7; margin: 0; }
.mk-head p + p { margin-top: .75rem; }
.mk-head .mk-head__aside { margin-top: 1.25rem; }

/* ------------------------------------------------------------------ buttons */
.mk-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.4rem; }
.mk-actions--center { justify-content: center; }
.mk-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .8rem 1.5rem; border-radius: 12px; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; background: var(--mk-accent); color: #fff !important; border: 1px solid transparent; box-shadow: 0 14px 30px -16px var(--mk-glow), inset 0 1px 0 rgba(255, 255, 255, .14); transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
.mk-btn:hover { transform: translateY(-1px); box-shadow: 0 18px 36px -14px var(--mk-glow), inset 0 1px 0 rgba(255, 255, 255, .14); }
.mk-btn--quiet { background: var(--mk-card); color: var(--mk-ink) !important; border-color: var(--mk-line); box-shadow: none; }
.mk-btn--quiet:hover { border-color: var(--mk-accent-ink); box-shadow: none; }
.mk-btn--block { width: 100%; }
.mk-link { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; font-weight: 650; color: var(--mk-accent-ink); text-decoration: none; }
.mk-link span[aria-hidden] { transition: transform .15s ease; }
.mk-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.mk-link:hover span[aria-hidden] { transform: translateX(2px); }
.mk-note { margin: 1rem 0 0; color: var(--mk-faint); font-size: .92rem; line-height: 1.55; }
.mk-checks { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; color: var(--mk-muted); font-size: .94rem; }
.mk-checks li { display: inline-flex; align-items: center; gap: .45rem; }
.mk-checks li::before { content: ''; width: 16px; height: 16px; flex: none; border-radius: 50%; background: var(--mk-ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 10px no-repeat; }

/* -------------------------------------------------------------------- heroes */
.mk-hero { position: relative; overflow: hidden; padding: 5.5rem 0 5.5rem; }
.mk-hero > .container { position: relative; z-index: 1; }
.mk-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.25rem); font-weight: 760; letter-spacing: -.038em; line-height: 1.02; margin: 0 0 1.3rem; }
.mk-hero .mk-lead { font-size: clamp(1.06rem, 1.6vw, 1.2rem); line-height: 1.65; color: var(--mk-muted); max-width: 600px; margin: 0 0 2rem; }
.mk-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 3.5rem; align-items: center; }
.mk-hero__grid--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.mk-hero__visual { min-width: 0; }
.mk-hero__crumb { margin: 0 0 1.4rem; font-size: .92rem; }
.mk-hero__crumb a { color: var(--mk-faint); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; gap: .35rem; }
.mk-hero__crumb a:hover { color: var(--mk-ink); }

/* Light hero: soft accent wash, faint grid. */
.mk-hero--light { background: var(--mk-bg); }
.mk-hero--light::before { content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(900px 480px at 88% -10%, color-mix(in srgb, var(--mk-accent) 14%, transparent), transparent 65%),
                radial-gradient(700px 380px at -5% 110%, color-mix(in srgb, var(--mk-accent-2) 10%, transparent), transparent 60%); }
.mk-hero--light::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .55;
    background-image: linear-gradient(var(--mk-line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--mk-line-soft) 1px, transparent 1px);
    background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse at 75% 20%, #000 10%, transparent 65%); mask-image: radial-gradient(ellipse at 75% 20%, #000 10%, transparent 65%); }

/* Centered hero: text column centred, visual below at full width. */
.mk-hero--center { text-align: center; }
.mk-hero--center .mk-lead { margin-left: auto; margin-right: auto; }
.mk-hero--center .mk-actions, .mk-hero--center .mk-checks { justify-content: center; }
.mk-hero--center h1 { max-width: 960px; margin-left: auto; margin-right: auto; }
.mk-hero--center .mk-hero__visual { margin-top: 3.5rem; }

/* Dark hero: night in both schemes. */
.mk-hero--dark { background: var(--mk-night); color: var(--mk-night-ink);
    --mk-ink: var(--mk-night-ink); --mk-muted: var(--mk-night-muted); --mk-faint: var(--mk-night-faint); --mk-accent-ink: var(--mk-night-accent);
    --mk-card: var(--mk-night-2); --mk-line: var(--mk-night-line); --mk-line-soft: #182038; --mk-bg-2: #141b31; }
.mk-hero--dark::before { content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(900px 520px at 85% 0%, color-mix(in srgb, var(--mk-accent) 38%, transparent), transparent 60%),
                radial-gradient(700px 420px at 0% 100%, color-mix(in srgb, var(--mk-accent-2) 18%, transparent), transparent 60%); }
.mk-hero--dark::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .35;
    background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%); }
.mk-hero--dark h1 { color: #fff; }
.mk-hero--dark .mk-grad-text { background: linear-gradient(115deg, #c7d2fe, #a5b4fc 40%, #67e8f9); -webkit-background-clip: text; background-clip: text; }
.mk-hero--dark .mk-btn--quiet { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); color: #fff !important; }
.mk-hero--dark .mk-checks li::before { background-color: #16a34a; }

/* Split hero: a full-height tinted panel on the visual side (wide screens). */
.mk-hero--split { background: var(--mk-bg); padding: 0; }
.mk-hero--split .mk-hero__grid { min-height: 560px; gap: 0; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
.mk-hero--split .mk-hero__copy { padding: 5rem 3.5rem 5rem 0; align-self: center; }
.mk-hero--split .mk-hero__visual { position: relative; display: flex; align-items: center; justify-content: center; padding: 3.5rem 0 3.5rem 3.5rem; }
.mk-hero--split .mk-hero__visual::before { content: ''; position: absolute; inset: 0 -100vw 0 0; background: var(--mk-bg-2); border-left: 1px solid var(--mk-line-soft);
    background-image: radial-gradient(600px 400px at 30% 30%, color-mix(in srgb, var(--mk-accent) 12%, transparent), transparent 70%); }
.mk-hero--split .mk-hero__visual > * { position: relative; width: 100%; }

/* -------------------------------------------------------------------- grids */
.mk-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(var(--mk-cols, 3), minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.mk-grid--2 { --mk-cols: 2; }
.mk-grid--3 { --mk-cols: 3; }
.mk-grid--4 { --mk-cols: 4; }
.mk-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3.5rem; align-items: center; }
.mk-split--wide-visual { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.mk-split + .mk-split { margin-top: 6rem; }
.mk-split--flip > :first-child { order: 2; }
.mk-split h3 { font-size: clamp(1.45rem, 2.3vw, 1.9rem); font-weight: 740; letter-spacing: -.025em; line-height: 1.15; margin: 0 0 .9rem; }
.mk-split p { color: var(--mk-muted); line-height: 1.7; margin: 0 0 1rem; font-size: 1.03rem; }
.mk-bullets { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .7rem; }
.mk-bullets li { position: relative; padding-left: 1.6rem; color: var(--mk-muted); line-height: 1.55; }
.mk-bullets li::before { content: ''; position: absolute; left: 0; top: .45em; width: .7rem; height: .7rem; border-radius: 4px; background: var(--mk-grad); }
.mk-bullets li strong { color: var(--mk-ink); font-weight: 650; }

/* -------------------------------------------------------------------- cards */
.mk-card { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--mk-card); border: 1px solid var(--mk-line); border-radius: var(--mk-radius); padding: 1.6rem; color: inherit; text-decoration: none; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
a.mk-card { color: inherit !important; }
a.mk-card:hover { border-color: color-mix(in srgb, var(--card-accent, var(--mk-accent)) 55%, var(--mk-line)); transform: translateY(-2px); box-shadow: var(--mk-shadow); }
.mk-card__icon { width: 2.75rem; height: 2.75rem; border-radius: 13px; display: grid; place-items: center; margin-bottom: 1.1rem; color: var(--card-accent, var(--mk-accent));
    background: color-mix(in srgb, var(--card-accent, var(--mk-accent)) 12%, var(--mk-card)); }
.mk-card__icon svg { width: 22px; height: 22px; }
.mk-card h3 { margin: 0 0 .45rem; font-size: 1.1rem; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.mk-card p { margin: 0; color: var(--mk-muted); line-height: 1.6; font-size: .95rem; }
.mk-card__more { margin-top: auto; padding-top: 1.1rem; font-weight: 650; font-size: .92rem; color: var(--mk-accent-ink); display: inline-flex; align-items: center; gap: .35rem; }
.mk-card__more::after { content: '→'; transition: transform .15s ease; }
a.mk-card:hover .mk-card__more::after { transform: translateX(3px); }
.mk-card__meta { margin: 0 0 .65rem; color: var(--mk-faint); font-size: .86rem; font-weight: 600; }
.mk-card--flat { background: transparent; border: 0; padding: 0; }
.mk-card--tint { background: color-mix(in srgb, var(--card-accent, var(--mk-accent)) 6%, var(--mk-card)); }
.mk-card--feature { padding: 2rem; }
.mk-card--feature h3 { font-size: 1.3rem; }

/* ---------------------------------------------------- product-visual frames */
.mk-frame { position: relative; border-radius: 16px; border: 1px solid var(--mk-line); background: var(--mk-card); box-shadow: var(--mk-shadow-lg); overflow: hidden; text-align: left; }
.mk-frame__bar { display: flex; align-items: center; gap: .75rem; padding: .7rem .95rem; border-bottom: 1px solid var(--mk-line-soft); background: color-mix(in srgb, var(--mk-bg-2) 70%, var(--mk-card)); font-size: .8rem; color: var(--mk-faint); }
.mk-frame__dots { display: inline-flex; gap: 6px; flex: none; }
.mk-frame__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--mk-line); }
.mk-frame__dots i:nth-child(1) { background: #f87171; } .mk-frame__dots i:nth-child(2) { background: #fbbf24; } .mk-frame__dots i:nth-child(3) { background: #34d399; }
.mk-frame__url { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; font-family: var(--mk-mono); font-size: .76rem; padding: .25rem .6rem; border-radius: 7px; background: var(--mk-card); border: 1px solid var(--mk-line-soft); color: var(--mk-faint); }
.mk-frame__title { font-weight: 650; color: var(--mk-ink); }
.mk-frame__body { position: relative; }
.mk-frame__body > picture img, .mk-frame__body > img { width: 100%; }
.mk-frame--window .mk-frame__bar { justify-content: space-between; }
/* Phone: a device outline around a tall screenshot or HTML screen. */
.mk-frame--phone { width: min(320px, 100%); margin: 0 auto; border-radius: 42px; padding: 10px; background: #0b0f1a; border: 1px solid #262f45; box-shadow: var(--mk-shadow-lg), inset 0 0 0 2px #1a2133; }
.mk-frame--phone .mk-frame__body { border-radius: 33px; overflow: hidden; background: var(--mk-card); }
.mk-frame--phone .mk-frame__body::before { content: ''; position: absolute; top: 9px; left: 50%; width: 92px; height: 26px; transform: translateX(-50%); border-radius: 20px; background: #0b0f1a; z-index: 2; }
.mk-frame figcaption, .mk-figcaption { margin: .85rem 0 0; font-size: .85rem; color: var(--mk-faint); line-height: 1.5; }
.mk-figure { margin: 0; min-width: 0; }
/* The always-dark variant of a frame (used inside dark heroes; also usable anywhere). */
.mk-frame--night { --mk-card: #0d1222; --mk-line: #232c47; --mk-line-soft: #182038; --mk-ink: #e8ecf6; --mk-muted: #b6c0d8; --mk-faint: #8f9bb8; --mk-bg-2: #141b31; --mk-accent-ink: #a5b4fc; color: #e8ecf6;
    box-shadow: 0 50px 100px -40px color-mix(in srgb, var(--mk-accent) 55%, transparent), 0 30px 60px -30px rgba(0, 0, 0, .9); }

/* --------------------------------------------- HTML-built product UI pieces */
/* Small app-like widgets used inside frames (dashboards, destination rows, meters). */
.mk-ui { padding: 1.1rem; display: grid; gap: .75rem; font-size: .9rem; }
.mk-ui__row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-width: 0; }
.mk-ui__row > * { min-width: 0; }
.mk-ui__h { font-weight: 700; font-size: .95rem; margin: 0; }
.mk-ui__sub { color: var(--mk-faint); font-size: .8rem; }
.mk-ui__dest { display: flex; align-items: center; gap: .7rem; padding: .65rem .8rem; border: 1px solid var(--mk-line-soft); border-radius: 11px; background: var(--mk-bg-2); }
.mk-ui__dest .mk-ui__name { font-weight: 650; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-ui__dest img, .mk-ui__logo { width: 22px; height: 22px; border-radius: 6px; flex: none; object-fit: contain; }
.mk-ui__state { font-size: .76rem; font-weight: 700; display: inline-flex; align-items: center; gap: .35rem; color: var(--mk-faint); white-space: nowrap; }
.mk-ui__state::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.mk-ui__state--live { color: var(--mk-ok); }
.mk-ui__state--live::before { box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent); }
.mk-ui__state--warn { color: var(--mk-warn); }
.mk-ui__field { font-family: var(--mk-mono); font-size: .8rem; padding: .55rem .7rem; border-radius: 9px; border: 1px solid var(--mk-line); background: var(--mk-bg-2); color: var(--mk-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-ui__label { font-size: .75rem; font-weight: 650; color: var(--mk-faint); margin-bottom: -.4rem; }
.mk-ui__tiles { display: grid; grid-template-columns: repeat(var(--tiles, 3), minmax(0, 1fr)); gap: .6rem; }
.mk-ui__tile { padding: .7rem .8rem; border-radius: 11px; border: 1px solid var(--mk-line-soft); background: var(--mk-bg-2); }
.mk-ui__tile b { display: block; font-size: 1.15rem; letter-spacing: -.02em; }
.mk-ui__tile span { font-size: .74rem; color: var(--mk-faint); }
.mk-ui__btn { display: inline-flex; align-items: center; justify-content: center; padding: .55rem .9rem; border-radius: 9px; font-weight: 700; font-size: .82rem; background: var(--mk-accent); color: #fff; }
.mk-live-dot { display: inline-flex; align-items: center; gap: .4rem; font-size: .74rem; font-weight: 800; color: var(--mk-live); letter-spacing: .02em; }
.mk-live-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
@media (prefers-reduced-motion: no-preference) {
    .mk-live-dot::before, .mk-ui__state--live::before { animation: mk-pulse 2s ease-in-out infinite; }
    @keyframes mk-pulse { 50% { opacity: .35; } }
}

/* ------------------------------------------------------------------- stats */
/* Only real numbers: read from config/models/catalogues, never typed in for effect. */
.mk-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; border: 1px solid var(--mk-line); border-radius: var(--mk-radius); background: var(--mk-card); overflow: hidden; }
.mk-stats li { padding: 1.6rem 1.5rem; border-left: 1px solid var(--mk-line-soft); min-width: 0; }
.mk-stats li:first-child { border-left: 0; }
.mk-stats strong { display: block; font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 760; letter-spacing: -.035em; line-height: 1.1; }
.mk-stats span { display: block; margin-top: .35rem; color: var(--mk-muted); font-size: .93rem; line-height: 1.45; }
.mk-stats small { display: block; margin-top: .25rem; color: var(--mk-faint); font-size: .8rem; }
.mk-stats--bare { border: 0; background: none; border-radius: 0; }

/* ------------------------------------------------------------------- steps */
.mk-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--mk-cols, 3), minmax(0, 1fr)); gap: 1.25rem; counter-reset: mk-step; }
.mk-steps > li { counter-increment: mk-step; position: relative; padding: 1.6rem; border-radius: var(--mk-radius); background: var(--mk-card); border: 1px solid var(--mk-line); min-width: 0; }
.mk-steps > li::before { content: counter(mk-step); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; margin-bottom: 1rem; font-weight: 750; color: #fff; background: var(--mk-accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--mk-accent) 14%, transparent); }
.mk-steps h3 { margin: 0 0 .45rem; font-size: 1.1rem; font-weight: 700; }
.mk-steps p { margin: 0; color: var(--mk-muted); line-height: 1.6; font-size: .95rem; }
.mk-steps .mk-step__visual { margin-top: 1.1rem; }
/* Vertical timeline variant. */
.mk-steps--line { grid-template-columns: minmax(0, 1fr); gap: 0; }
.mk-steps--line > li { background: none; border: 0; border-radius: 0; padding: 0 0 2.2rem 3.6rem; }
.mk-steps--line > li::before { position: absolute; left: 0; top: 0; margin: 0; }
.mk-steps--line > li::after { content: ''; position: absolute; left: calc(1.2rem - 1px); top: 2.9rem; bottom: .5rem; width: 2px; background: var(--mk-line); }
.mk-steps--line > li:last-child { padding-bottom: 0; }
.mk-steps--line > li:last-child::after { display: none; }

/* --------------------------------------------------------------------- FAQ */
.mk-faq { display: grid; gap: .7rem; max-width: 860px; margin: 0 auto; }
.mk-faq details { background: var(--mk-card); border: 1px solid var(--mk-line); border-radius: 14px; padding: 0 1.3rem; transition: border-color .15s ease; }
.mk-faq details[open] { border-color: color-mix(in srgb, var(--mk-accent) 40%, var(--mk-line)); }
.mk-faq summary { cursor: pointer; list-style: none; min-height: 44px; padding: 1.1rem 0; font-weight: 650; display: flex; justify-content: space-between; align-items: center; gap: 1rem; line-height: 1.4; }
.mk-faq summary::-webkit-details-marker { display: none; }
.mk-faq summary::after { content: ''; flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--mk-accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 12px no-repeat; transition: transform .2s ease; }
.mk-faq details[open] summary::after { transform: rotate(45deg); }
.mk-faq .mk-faq__a { margin: 0 0 1.2rem; color: var(--mk-muted); line-height: 1.7; }
.mk-faq .mk-faq__a p { margin: 0 0 .75rem; } .mk-faq .mk-faq__a p:last-child { margin: 0; }

/* -------------------------------------------------------------- CTA band */
.mk-cta { position: relative; overflow: hidden; padding: 6rem 0; text-align: center; background: var(--mk-night); color: var(--mk-night-ink); --mk-accent-ink: var(--mk-night-accent); }
.mk-cta::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(760px 340px at 50% 110%, color-mix(in srgb, var(--mk-accent) 42%, transparent), transparent 70%); }
.mk-cta > .container { position: relative; }
.mk-cta h2 { color: #fff; font-size: clamp(1.9rem, 3.8vw, 2.9rem); font-weight: 760; letter-spacing: -.032em; line-height: 1.1; max-width: 820px; margin: 0 auto 1rem; }
.mk-cta p { color: var(--mk-night-muted); max-width: 580px; margin: 0 auto 2rem; line-height: 1.65; font-size: 1.06rem; }
.mk-cta .mk-actions { justify-content: center; }
.mk-cta .mk-btn--quiet { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .2); color: #fff !important; }
.mk-cta .mk-link { color: var(--mk-night-accent); }
.mk-cta .mk-note { color: var(--mk-night-faint); }
/* Soft (light) CTA card variant, for pages that end on a light note. */
.mk-cta--soft { background: var(--mk-bg); color: var(--mk-ink); padding: 0 0 6rem; }
.mk-cta--soft::before { display: none; }
.mk-cta--soft .mk-cta__card { border-radius: 28px; padding: 4rem 2rem; border: 1px solid var(--mk-line); background:
    radial-gradient(600px 260px at 50% 0%, color-mix(in srgb, var(--mk-accent) 14%, transparent), transparent 70%), var(--mk-bg-2); }
.mk-cta--soft h2 { color: var(--mk-ink); }
.mk-cta--soft p { color: var(--mk-muted); }
.mk-cta--soft .mk-btn--quiet { background: var(--mk-card); border-color: var(--mk-line); color: var(--mk-ink) !important; }
.mk-cta--soft .mk-link { color: var(--mk-accent-ink); }
.mk-cta--soft .mk-note { color: var(--mk-faint); }

/* -------------------------------------------------------- comparison table */
.mk-table-wrap { overflow-x: auto; border: 1px solid var(--mk-line); border-radius: var(--mk-radius); background: var(--mk-card); -webkit-overflow-scrolling: touch; }
.mk-table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
.mk-table caption { text-align: left; padding: 1rem 1.25rem 0; color: var(--mk-faint); font-size: .85rem; caption-side: bottom; padding-bottom: 1rem; }
.mk-table th, .mk-table td { text-align: left; padding: .95rem 1.25rem; border-bottom: 1px solid var(--mk-line-soft); vertical-align: top; line-height: 1.5; }
.mk-table thead th { font-size: .9rem; font-weight: 700; color: var(--mk-ink); background: var(--mk-bg-2); position: sticky; top: 0; }
.mk-table tbody th { font-weight: 600; color: var(--mk-ink); }
.mk-table td { color: var(--mk-muted); }
.mk-table tr:last-child > * { border-bottom: 0; }
.mk-table .mk-col-us { background: color-mix(in srgb, var(--mk-accent) 6%, transparent); color: var(--mk-ink); }
.mk-table thead .mk-col-us { background: color-mix(in srgb, var(--mk-accent) 12%, var(--mk-bg-2)); }
.mk-yes, .mk-no, .mk-part { display: inline-flex; align-items: center; gap: .4rem; font-weight: 650; }
.mk-yes { color: var(--mk-ok); } .mk-no { color: var(--mk-faint); } .mk-part { color: var(--mk-warn); }
.mk-yes::before { content: '✓'; } .mk-no::before { content: '—'; }

/* ------------------------------------------------------- platform strip */
.mk-platforms { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.mk-platforms li { min-width: 0; }
.mk-platforms a, .mk-platforms span.mk-platform { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; padding: .45rem .95rem .45rem .5rem; border-radius: 12px; border: 1px solid var(--mk-line); background: var(--mk-card); color: var(--mk-ink); font-weight: 600; font-size: .92rem; text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.mk-platforms a:hover { border-color: var(--mk-accent-ink); transform: translateY(-1px); }
.mk-platforms img { width: 26px; height: 26px; border-radius: 7px; object-fit: contain; background: #fff; padding: 2px; }
.mk-platforms--left { justify-content: flex-start; }

/* -------------------------------------------------------------- code block */
.mk-code { margin: 0; border-radius: 14px; overflow: hidden; background: var(--mk-code-bg); color: var(--mk-code-ink); border: 1px solid rgba(255, 255, 255, .06); box-shadow: var(--mk-shadow); text-align: left; }
.mk-code__bar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .6rem .95rem; border-bottom: 1px solid rgba(255, 255, 255, .07); font-size: .78rem; color: #9aa6c2; font-family: var(--mk-mono); }
.mk-code__copy { min-height: 32px; padding: .25rem .7rem; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .14); background: transparent; color: #dbe3f4; font: inherit; cursor: pointer; }
.mk-code__copy:hover { background: rgba(255, 255, 255, .08); }
.mk-code pre { margin: 0; padding: 1rem 1.1rem; overflow-x: auto; font-family: var(--mk-mono); font-size: .82rem; line-height: 1.7; white-space: pre; color: inherit; background: none; }
.mk-code pre code { color: inherit; }
.mk-code .c-k { color: #c4b5fd; } .mk-code .c-s { color: #86efac; } .mk-code .c-c { color: #8f9bb8; } .mk-code .c-n { color: #fcd34d; }

/* ----------------------------------------------------------------- prose */
.mk-prose { max-width: 760px; font-size: 1.06rem; line-height: 1.78; color: var(--mk-muted); }
.mk-prose > :first-child { margin-top: 0; }
.mk-prose h2 { color: var(--mk-ink); font-size: clamp(1.45rem, 2.4vw, 1.85rem); font-weight: 740; letter-spacing: -.025em; line-height: 1.2; margin: 2.8rem 0 1rem; }
.mk-prose h3 { color: var(--mk-ink); font-size: 1.22rem; font-weight: 700; margin: 2rem 0 .6rem; }
.mk-prose p, .mk-prose ul, .mk-prose ol { margin: 0 0 1.15rem; }
.mk-prose ul, .mk-prose ol { padding-left: 1.3rem; }
.mk-prose li { margin-bottom: .45rem; }
.mk-prose li::marker { color: var(--mk-accent-ink); }
.mk-prose strong { color: var(--mk-ink); }
.mk-prose a { color: var(--mk-accent-ink); text-underline-offset: 3px; }
.mk-prose :not(pre) > code { font-size: .88em; padding: .12rem .4rem; border-radius: 6px; background: var(--mk-bg-2); border: 1px solid var(--mk-line-soft); color: var(--mk-ink); word-break: break-word; }
.mk-prose pre { background: var(--mk-code-bg); color: var(--mk-code-ink); padding: 1.1rem 1.25rem; border-radius: 14px; overflow-x: auto; font-size: .85rem; line-height: 1.6; }
.mk-prose blockquote { margin: 1.5rem 0; padding: .4rem 0 .4rem 1.25rem; border-left: 3px solid var(--mk-accent); color: var(--mk-ink); }
.mk-prose table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.mk-prose th, .mk-prose td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--mk-line); vertical-align: top; }
.mk-prose th { color: var(--mk-ink); }
.mk-prose img { border-radius: 12px; border: 1px solid var(--mk-line); }

/* Callout / aside box. */
.mk-callout { border: 1px solid var(--mk-line); border-left: 3px solid var(--mk-accent); border-radius: 12px; padding: 1.1rem 1.25rem; background: var(--mk-bg-2); color: var(--mk-muted); line-height: 1.6; }
.mk-callout strong { color: var(--mk-ink); }

/* Chips used as FILTERS or real metadata — never as headings' kickers. */
.mk-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.mk-tags li, .mk-tag { display: inline-flex; align-items: center; min-height: 28px; padding: .15rem .65rem; border-radius: 8px; font-size: .82rem; font-weight: 600; color: var(--mk-muted); background: var(--mk-bg-2); border: 1px solid var(--mk-line-soft); }

/* Breadcrumb trail (visible; JSON-LD comes from the layout). */
.mk-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .5rem; list-style: none; margin: 0 0 1.25rem; padding: 0; font-size: .9rem; color: var(--mk-faint); }
.mk-crumbs a { color: var(--mk-faint); text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
.mk-crumbs a:hover { color: var(--mk-ink); text-decoration: underline; }
.mk-crumbs li + li::before { content: '/'; margin-right: .5rem; opacity: .6; }

/* Link list (index pages: dense, scannable). */
.mk-index { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--mk-cols, 3), minmax(0, 1fr)); gap: 0 2rem; }
.mk-index a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 52px; padding: .8rem 0; border-bottom: 1px solid var(--mk-line-soft); color: var(--mk-ink); text-decoration: none; font-weight: 600; }
.mk-index a::after { content: '→'; color: var(--mk-faint); transition: transform .15s ease, color .15s ease; }
.mk-index a:hover { color: var(--mk-accent-ink); }
.mk-index a:hover::after { transform: translateX(3px); color: var(--mk-accent-ink); }
.mk-index small { display: block; color: var(--mk-faint); font-weight: 500; font-size: .85rem; }

/* ---------------------------------------------------------------- motion */
@media (prefers-reduced-motion: no-preference) {
    .js-reveal .mk [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
    .js-reveal .mk [data-reveal].is-in { opacity: 1; transform: none; }
    .js-reveal .mk [data-reveal-stagger] > * { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
    .js-reveal .mk [data-reveal-stagger].is-in > * { opacity: 1; transform: none; }
    .js-reveal .mk [data-reveal-stagger].is-in > :nth-child(2) { transition-delay: .06s; }
    .js-reveal .mk [data-reveal-stagger].is-in > :nth-child(3) { transition-delay: .12s; }
    .js-reveal .mk [data-reveal-stagger].is-in > :nth-child(4) { transition-delay: .18s; }
    .js-reveal .mk [data-reveal-stagger].is-in > :nth-child(5) { transition-delay: .24s; }
    .js-reveal .mk [data-reveal-stagger].is-in > :nth-child(n+6) { transition-delay: .3s; }
}
@media (prefers-reduced-motion: reduce) {
    .mk *, .mk *::before, .mk *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
    .mk-grid--4 { --mk-cols: 2; }
}
@media (max-width: 1024px) {
    .mk-hero__grid, .mk-hero__grid--even, .mk-split, .mk-split--wide-visual { grid-template-columns: minmax(0, 1fr); gap: 2.75rem; }
    .mk-split--flip > :first-child { order: 0; }
    .mk-head--split { grid-template-columns: minmax(0, 1fr); }
    .mk-grid--3, .mk-steps { --mk-cols: 2; }
    .mk-index { --mk-cols: 2; }
    .mk-hero--split { padding: 4rem 0 3.5rem; }
    .mk-hero--split .mk-hero__grid { min-height: 0; gap: 2.75rem; }
    .mk-hero--split .mk-hero__copy { padding: 0; }
    .mk-hero--split .mk-hero__visual { padding: 0; }
    .mk-hero--split .mk-hero__visual::before { display: none; }
}
@media (max-width: 720px) {
    .mk-hero { padding: 3.25rem 0 3.75rem; }
    .mk-hero--center .mk-hero__visual { margin-top: 2.5rem; }
    .mk-section { padding: 4rem 0; }
    .mk-section--tight { padding: 3rem 0; }
    .mk-head { margin-bottom: 2.25rem; }
    .mk-grid, .mk-grid--2, .mk-grid--3, .mk-grid--4, .mk-steps, .mk-index { --mk-cols: 1; }
    .mk-split + .mk-split { margin-top: 4rem; }
    .mk-card, .mk-steps > li { padding: 1.35rem; }
    .mk-stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .mk-stats li { padding: 1.2rem 1.1rem; border-left: 0; border-top: 1px solid var(--mk-line-soft); }
    .mk-stats li:nth-child(-n+2) { border-top: 0; }
    .mk-stats li:nth-child(even) { border-left: 1px solid var(--mk-line-soft); }
    .mk-cta { padding: 4.5rem 0; }
    .mk-cta--soft { padding: 0 0 4rem; }
    .mk-cta--soft .mk-cta__card { padding: 2.75rem 1.25rem; border-radius: 22px; }
    .mk-actions .mk-btn { flex: 1 1 auto; }
    .mk-faq details { padding: 0 1rem; }
    .mk-ui__tiles { --tiles: 2; }
}
@media (max-width: 400px) {
    .mk-hero h1 { font-size: 2.15rem; }
    .mk-stats { grid-template-columns: minmax(0, 1fr); }
    .mk-stats li { border-left: 0 !important; border-top: 1px solid var(--mk-line-soft) !important; }
    .mk-stats li:first-child { border-top: 0 !important; }
}

/* ------------------------------------------------------------------ plans */
.mk-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; align-items: stretch; }
.mk-plan { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 1.6rem; border-radius: var(--mk-radius); background: var(--mk-card); border: 1px solid var(--mk-line); }
.mk-plan--popular { border-color: var(--mk-accent); box-shadow: 0 0 0 1px var(--mk-accent), 0 24px 50px -30px var(--mk-glow); padding-top: 3.1rem; }
.mk-plan__flag { position: absolute; top: 0; left: 0; right: 0; margin: 0; padding: .45rem 1.6rem; border-radius: calc(var(--mk-radius) - 1px) calc(var(--mk-radius) - 1px) 0 0; background: var(--mk-accent); color: #fff; font-size: .82rem; font-weight: 700; }
.mk-plan__name { margin: 0 0 .3rem; font-size: 1.15rem; font-weight: 700; }
.mk-plan__price { margin: 0 0 1.2rem; font-size: 2.3rem; font-weight: 780; letter-spacing: -.04em; line-height: 1.1; }
.mk-plan__price span { font-size: .95rem; font-weight: 600; letter-spacing: 0; color: var(--mk-faint); margin-left: .15rem; }
.mk-plan__features { list-style: none; margin: 0 0 1.4rem; padding: 1.1rem 0 0; border-top: 1px solid var(--mk-line-soft); display: grid; gap: .55rem; flex-grow: 1; align-content: start; }
.mk-plan__features li { position: relative; padding-left: 1.5rem; font-size: .92rem; line-height: 1.45; color: var(--mk-muted); }
.mk-plan__features li::before { content: ''; position: absolute; left: 0; top: .2em; width: 1rem; height: 1rem; border-radius: 50%; background: color-mix(in srgb, var(--mk-ok) 14%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 10px no-repeat; }
.mk-plan__features li.mk-plan__more { padding-left: 0; }
.mk-plan__features li.mk-plan__more::before { display: none; }
.mk-plan__more a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 650; color: var(--mk-accent-ink); text-decoration: none; }
.mk-plan__note { margin: -.5rem 0 1rem; font-size: .86rem; font-weight: 600; color: var(--mk-ok); }
@media (max-width: 720px) {
    /* A swipeable row on phones: the row scrolls, the page never does. */
    .mk-plans { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: .85rem; margin: 0 -1.25rem; padding: .25rem 1.25rem 1rem; scroll-padding: 0 1.25rem; -webkit-overflow-scrolling: touch; }
    .mk-plan { flex: 0 0 82%; scroll-snap-align: start; }
}
