/* Public pages: home, features, pricing. Light and dark follow the system setting. No inline styles (the site sends a CSP). */
:root {
    --m-bg: #fff;
    --m-alt: #f3f5f9;
    --m-text: #1f2430;
    --m-sub: #5b6475;
    --m-line: #d5dae3;
    --m-accent: #1565c0;
    --m-accent-text: #fff;
}

/* With scripts on, landing.js sets data-mk-theme (saved choice, else the system setting). Without scripts the system setting still applies. */
@media (prefers-color-scheme: dark) {
    :root:not([data-mk-theme="light"]) {
        --m-bg: #12151c;
        --m-alt: #1b202b;
        --m-text: #e8ebf1;
        --m-sub: #a3acbd;
        --m-line: #363e50;
        --m-accent: #4c9aff;
        --m-accent-text: #0b1220;
    }
}

:root[data-mk-theme="dark"] {
    --m-bg: #12151c;
    --m-alt: #1b202b;
    --m-text: #e8ebf1;
    --m-sub: #a3acbd;
    --m-line: #363e50;
    --m-accent: #4c9aff;
    --m-accent-text: #0b1220;
}

.mk-header, main, .mk-footer { font-family: Roboto, system-ui, sans-serif; color: var(--m-text); }
main { background: var(--m-bg); }
.mk-wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.mk-header { background: var(--m-bg); border-bottom: 1px solid var(--m-line); position: sticky; top: 0; z-index: 10; }
.mk-header-row { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 16px; flex-wrap: wrap; }
.mk-brand { font-size: 1.25rem; font-weight: 700; color: var(--m-text); text-decoration: none; }
.mk-brand span { color: var(--m-accent); }
.mk-nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.mk-nav a, .mk-footer-links a { color: var(--m-text); text-decoration: none; }
.mk-nav a:hover, .mk-footer-links a:hover { text-decoration: underline; }

.mk-btn { display: inline-block; padding: 10px 18px; border-radius: 8px; font-weight: 500; text-decoration: none; border: 1px solid var(--m-accent); }
.mk-nav a.mk-btn-primary, .mk-btn-primary { background: var(--m-accent); color: var(--m-accent-text); }
.mk-btn-ghost { background: transparent; color: var(--m-accent); }
.mk-nav a.mk-btn-primary:hover { text-decoration: none; }

.mk-hero { padding: 72px 0 56px; background: var(--m-alt); }
.mk-hero h1, .mk-section h1 { font-size: 2.4rem; line-height: 1.2; margin: 0 0 16px; }
.mk-lead { font-size: 1.15rem; color: var(--m-sub); max-width: 720px; margin: 0 0 24px; }
.mk-section { padding: 48px 0; }
.mk-alt { background: var(--m-alt); }
.mk-section h2 { font-size: 1.6rem; margin: 0 0 20px; }
.mk-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.mk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.mk-card, .mk-plan, .mk-fee, .mk-group { background: var(--m-bg); border: 1px solid var(--m-line); border-radius: 12px; padding: 20px; }
.mk-card h3, .mk-plan h3 { margin: 0 0 8px; }
.mk-card p { color: var(--m-sub); margin: 0; }

.mk-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.mk-plan { display: flex; flex-direction: column; gap: 8px; }
.mk-plan-hl { border: 2px solid var(--m-accent); }

/* Downloads page: the three cards share five rows (heading, text, film, main buttons, quote buttons), so each part starts at the same height in every card.
   Where a browser cannot share rows (no subgrid), the cards simply stack their parts from the top. */
.mk-plans-dl { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); column-gap: 16px; row-gap: 0; }
.mk-plans-dl .mk-plan { gap: 0; margin-bottom: 16px; }
.mk-plans-dl .mk-plan p { margin: 0; }
.mk-plans-dl .mk-note { margin: 0; }
.mk-dl-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.mk-dl-head h3 { margin: 0; }
.mk-dl-media { margin: 14px 0; }
.mk-dl-video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; background: #000; }
.mk-dl-main, .mk-dl-more { display: flex; flex-direction: column; gap: 8px; }
.mk-dl-more { margin-top: 8px; }
@supports (grid-template-rows: subgrid) {
  .mk-plans-dl .mk-plan { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
}
.mk-plan p { color: var(--m-sub); margin: 0 0 auto; }
.mk-price { font-size: 1.5rem; font-weight: 700; }
.mk-price span { font-size: .9rem; font-weight: 400; color: var(--m-sub); }
.mk-price-text { font-size: 1.3rem; }
.mk-users { font-weight: 500; }

.mk-ticks { list-style: none; padding: 0; margin: 20px 0 0; }
.mk-ticks li { padding: 4px 0 4px 26px; position: relative; }
.mk-ticks li::before { content: "\2713"; position: absolute; left: 0; color: var(--m-accent); font-weight: 700; }
.mk-sub { margin: 32px 0 12px; }
.mk-fees { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.mk-fee-name { font-weight: 500; }
.mk-fee-amt { font-size: 1.2rem; font-weight: 700; }
.mk-fee p { color: var(--m-sub); margin: 8px 0 0; }
.mk-note { color: var(--m-sub); margin-top: 20px; }
.mk-group { margin-bottom: 16px; }
.mk-group h2 { margin: 0 0 8px; font-size: 1.35rem; }
.mk-group p { color: var(--m-sub); margin: 0; }

.mk-footer { background: var(--m-alt); border-top: 1px solid var(--m-line); padding: 32px 0; }
.mk-footer-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.mk-footer p { color: var(--m-sub); margin: 4px 0 0; }
.mk-footer-links { display: flex; flex-direction: column; gap: 6px; }
.mk-contact div { margin-bottom: 4px; }

/* theme toggle: a moon in light mode, a sun in dark mode, like the main app */
.mk-theme { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; cursor: pointer; border-radius: 999px; border: 1px solid var(--m-line); background: transparent; color: var(--m-text); }
.mk-theme:hover, .mk-theme:focus-visible { border-color: var(--m-accent); color: var(--m-accent); }
.mk-theme .mk-ico-sun { display: none; }
:root[data-mk-theme="dark"] .mk-theme .mk-ico-moon { display: none; }
:root[data-mk-theme="dark"] .mk-theme .mk-ico-sun { display: inline; }
@media (prefers-color-scheme: dark) {
    :root:not([data-mk-theme]) .mk-theme .mk-ico-moon { display: none; }
    :root:not([data-mk-theme]) .mk-theme .mk-ico-sun { display: inline; }
}

/* feature tiles */
.mk-cat { margin: 36px 0 14px; font-size: 1.35rem; }
.mk-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.mk-tile { display: flex; flex-direction: column; background: var(--m-bg); border: 1px solid var(--m-line); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--m-text); transition: transform .15s ease, border-color .15s ease; }
.mk-tile:hover, .mk-tile:focus-visible { transform: translateY(-3px); border-color: var(--m-accent); }
.mk-tile img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; background: var(--m-alt); border-bottom: 1px solid var(--m-line); }
.mk-tile-body { padding: 14px 16px 18px; }
.mk-tile-body h3 { margin: 0 0 6px; font-size: 1.05rem; }
.mk-tile-body p { margin: 0; color: var(--m-sub); font-size: .95rem; }

/* feature detail */
.mk-crumb { margin: 0 0 14px; }
.mk-crumb a { color: var(--m-accent); text-decoration: none; }
.mk-crumb a:hover { text-decoration: underline; }
.mk-kicker { color: var(--m-sub); font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 8px; }
.mk-shot { margin: 24px 0; border: 1px solid var(--m-line); border-radius: 12px; overflow: hidden; background: var(--m-alt); }
.mk-shot img { display: block; width: 100%; height: auto; }
.mk-detail-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 820px) { .mk-detail-grid { grid-template-columns: 1fr; } }
.mk-detail-grid .mk-ticks { margin-top: 0; }
.mk-pager { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 36px; }
.mk-pager a { color: var(--m-accent); text-decoration: none; }
.mk-pager a:hover { text-decoration: underline; }

/* cards that are links (home page) */
a.mk-card { display: block; text-decoration: none; color: var(--m-text); }
a.mk-card:hover, a.mk-card:focus-visible { border-color: var(--m-accent); }

/* Blazor moves focus to the page heading after a navigation; do not draw a box around it on the public pages */
.mk-hero h1:focus, .mk-section h1:focus { outline: none; }


/* ===== Home page: hero, books, picture tiles, why, final call ===== */
.mk-hero2 { background: linear-gradient(135deg, #1a237e 0%, #1565c0 55%, #1e88e5 100%); color: #fff; padding: 64px 0 72px; overflow: hidden; }
.mk-hero2-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: center; }
@media (max-width: 900px) { .mk-hero2-grid { grid-template-columns: 1fr; } }
.mk-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 600; opacity: .85; margin: 0 0 14px; }
.mk-hero2 h1 { font-size: 2.9rem; line-height: 1.1; margin: 0 0 18px; font-weight: 800; letter-spacing: -.02em; }
@media (max-width: 600px) { .mk-hero2 h1 { font-size: 2.1rem; } }
.mk-lead2 { font-size: 1.2rem; line-height: 1.55; margin: 0 0 8px; opacity: .93; max-width: 560px; }
.mk-hero2-img { width: 100%; height: auto; border-radius: 22px; box-shadow: 0 30px 60px rgba(5, 10, 40, .45); }
.mk-btn-lg { padding: 14px 24px; font-size: 1.05rem; border-radius: 10px; }
.mk-hero2 .mk-btn-primary { background: #ffb300; border-color: #ffb300; color: #1a1a1a; font-weight: 700; }
.mk-btn-light { background: transparent; border-color: rgba(255, 255, 255, .7); color: #fff; }
.mk-btn-light:hover { background: rgba(255, 255, 255, .12); }
.mk-trust { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; }
.mk-trust li { padding-left: 28px; position: relative; opacity: .95; }
.mk-trust li::before { content: "\2713"; position: absolute; left: 0; top: -1px; width: 20px; height: 20px; border-radius: 50%; background: rgba(255, 255, 255, .22); text-align: center; font-size: .85rem; line-height: 20px; font-weight: 700; }

.mk-h2c { text-align: center; font-size: 2rem; margin: 0 0 10px; letter-spacing: -.01em; }
.mk-sublead { text-align: center; color: var(--m-sub); max-width: 680px; margin: 0 auto 32px; font-size: 1.05rem; }
.mk-wrap { max-width: 1180px; }

.mk-books { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.mk-book { --c: #1565c0; display: block; background: var(--m-bg); border: 1px solid var(--m-line); border-top: 4px solid var(--c); border-radius: 14px; padding: 20px; text-decoration: none; color: var(--m-text); transition: transform .15s ease, box-shadow .15s ease; }
.mk-book:hover, .mk-book:focus-visible { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(15, 25, 60, .14); }
.mk-book h3 { margin: 12px 0 6px; font-size: 1.1rem; }
.mk-book p { margin: 0; color: var(--m-sub); font-size: .95rem; line-height: 1.45; }
.mk-book-cover { fill: var(--c); }
.mk-book-spine { fill: #000; fill-opacity: .22; }
.mk-book-line { fill: #fff; fill-opacity: .9; }
.mk-book-sales { --c: #1e88e5; } .mk-book-purchase { --c: #3949ab; } .mk-book-cash { --c: #00897b; } .mk-book-day { --c: #7e57c2; }
.mk-book-journal { --c: #5e35b1; } .mk-book-ledger { --c: #283593; } .mk-book-debtors { --c: #d81b60; } .mk-book-creditors { --c: #ad1457; }
.mk-book-stock { --c: #2e7d32; } .mk-book-assets { --c: #6d4c41; } .mk-book-payroll { --c: #00838f; } .mk-book-till { --c: #ef6c00; }
.mk-books-more { text-align: center; color: var(--m-sub); margin: 22px 0 0; }

.mk-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 8px; }
.mk-pills a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--m-line); background: var(--m-bg); color: var(--m-text); text-decoration: none; font-weight: 500; font-size: .95rem; }
.mk-pills a:hover, .mk-pills a:focus-visible { border-color: var(--m-accent); color: var(--m-accent); }
.mk-cat2 { margin: 38px 0 14px; font-size: 1.3rem; scroll-margin-top: 80px; }
.mk-tiles2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.mk-tile2 { display: flex; flex-direction: column; background: var(--m-bg); border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--m-text); border: 1px solid var(--m-line); transition: transform .18s ease, box-shadow .18s ease; }
.mk-tile2:hover, .mk-tile2:focus-visible { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(15, 25, 60, .18); }
.mk-tile2 img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; background: var(--m-alt); }
.mk-tile2-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 18px; }
.mk-tile2-body b { font-size: 1.05rem; }
.mk-tile2-body span { color: var(--m-sub); font-size: .93rem; line-height: 1.4; }

.mk-why { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; margin-top: 28px; }
.mk-why h3 { margin: 0 0 8px; font-size: 1.15rem; }
.mk-why p { margin: 0; color: var(--m-sub); line-height: 1.55; }

.mk-final { background: linear-gradient(135deg, #1a237e, #1565c0); color: #fff; text-align: center; padding: 56px 0; }
.mk-final h2 { margin: 0 0 8px; font-size: 2rem; }
.mk-final p { margin: 0 0 22px; opacity: .92; }
.mk-final .mk-btn-primary { background: #ffb300; border-color: #ffb300; color: #1a1a1a; font-weight: 700; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .mk-book, .mk-tile2 { transition: none; } }
.mk-flist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 10px 22px; }
.mk-flist a { display: block; padding: 10px 14px; border: 1px solid var(--m-line); border-radius: 10px; background: var(--m-bg); color: var(--m-text); text-decoration: none; }
.mk-flist a:hover, .mk-flist a:focus-visible { border-color: var(--m-accent); }
.mk-flist b { display: block; font-size: 1rem; }
.mk-flist span { display: block; color: var(--m-sub); font-size: .92rem; margin-top: 2px; }

/* ---------- home page: screens, the "What do you want to do?" list and "What is inside" ---------- */
.mk-shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.mk-shotcard { margin: 0; background: var(--m-bg); border: 1px solid var(--m-line); border-radius: 16px; overflow: hidden; }
.mk-shotcard img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--m-alt); }
.mk-shotcard figcaption { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 18px; }
.mk-shotcard figcaption span { color: var(--m-sub); font-size: .93rem; line-height: 1.4; }

.mk-tasks { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.mk-taskgroup { background: var(--m-bg); border: 1px solid var(--m-line); border-radius: 14px; padding: 16px 18px 8px; }
.mk-taskgroup h3 { margin: 0 0 8px; font-size: 1.05rem; }
.mk-taskgroup ul { list-style: none; margin: 0; padding: 0; }
.mk-taskgroup li { padding: 8px 0; border-top: 1px solid var(--m-line); }
.mk-taskgroup li:first-child { border-top: 0; }
.mk-taskgroup li b { display: block; font-size: .97rem; }
.mk-taskgroup li span { display: block; color: var(--m-sub); font-size: .9rem; margin-top: 2px; line-height: 1.4; }

.mk-inside { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
@media (max-width: 600px) { .mk-shots, .mk-tasks, .mk-inside { grid-template-columns: 1fr; } }

/* Currency picker, audience cards and promo films */
.mk-curbar { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin: 0 0 14px; color: var(--m-sub); }
.mk-cur { font: inherit; color: var(--m-text); background: var(--m-bg); border: 1px solid var(--m-line); border-radius: 8px; padding: 8px 10px; }
.mk-aud { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin: 28px 0; }
.mk-aud-card h3 { margin: 0 0 6px; }
.mk-aud-lead { font-weight: 600; margin: 0 0 10px; }
.mk-videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 28px; margin-top: 28px; }
.mk-video { margin: 0; }
.mk-video video { width: 100%; aspect-ratio: 16 / 9; display: block; border-radius: 12px; background: #000; border: 1px solid var(--m-line); }
.mk-video figcaption { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.mk-video figcaption span { color: var(--m-sub); }
.mk-video figcaption a { color: var(--m-accent); font-weight: 600; }
