/*
 * BimaLink public landing page (v3, light).
 *
 * Direction from studying HubSpot, Pipedrive, Attio, folk, Close, Zoho,
 * monday, Copper, Twenty and Paystack (2026-10-07), mixed with three real
 * design systems from Refero (Relate, Attio, Column):
 *   - a light page; the real product in the hero, on a pale band tinted from
 *     the brand blue (Relate);
 *   - Attio's cool neutral ramp, and shadows tinted with the brand navy;
 *   - one radius (8px, as Column), hairlines instead of shadows; only the
 *     product window floats;
 *   - blue on clickable things only; orange used once, as the featured
 *     commission figure (Column's sparing orange);
 *   - a refined upright serif for headlines (Zodiak 400).
 * Rules live in the bimalink-brand skill. Hand-maintained, no build step,
 * cache-busted by mtime in the layout.
 *
 * Contrast (WCAG 2.1 AA): body #26364d and muted #536072 pass on white and
 * on --mk-paper; brand orange #f58a07 is never text on a light background
 * (2.6:1); its text partner is #9a5200 (5.3:1).
 */

@font-face {
    font-family: 'Zodiak';
    src: url('fonts/zodiak-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'General Sans';
    src: url('fonts/general-sans-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'General Sans';
    src: url('fonts/general-sans-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'General Sans';
    src: url('fonts/general-sans-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

:root {
    --mk-bg: #ffffff;
    --mk-paper: #f5f7fa;
    --mk-wash: #eef3fb;
    --mk-ink: #0f1f35;
    --mk-text: #26364d;
    --mk-muted: #536072;
    --mk-line: #e3e7ed;
    --mk-line-strong: #cbd2dc;
    --mk-blue: #2660a4;
    --mk-blue-hover: #1f5089;
    --mk-blue-tint: #e6eefa;
    --mk-orange: #f58a07;
    --mk-orange-ink: #9a5200;
    --mk-orange-tint: #fff3e2;
    --mk-green: #146c34;
    --mk-green-tint: #e7f5ec;
    --mk-red: #b42318;
    --mk-red-tint: #fdeceb;
    --mk-night: #0f1f35;
    --mk-night-deep: #0a1626;
    --mk-night-text: #b8c3d1;
    --mk-radius: 8px;
    --mk-lift:
        0 2px 6px rgba(15, 31, 53, 0.06), 0 6px 20px -2px rgba(15, 31, 53, 0.08);
    --mk-frame-shadow:
        0 1px 2px rgba(15, 31, 53, 0.06),
        0 12px 24px -8px rgba(15, 31, 53, 0.1),
        0 40px 64px -32px rgba(15, 31, 53, 0.28);
    --mk-display: 'Zodiak', Georgia, 'Times New Roman', serif;
    --mk-sans:
        'General Sans', system-ui, -apple-system, 'Segoe UI', Roboto,
        'Helvetica Neue', Arial, sans-serif;
    --mk-container: 1200px;
    color-scheme: light;
    accent-color: var(--mk-blue);
    scrollbar-color: #c3ccd8 transparent;
}

/* ---------------------------------------------------------------- base -- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
    -webkit-text-size-adjust: 100%;
}

body.mk {
    margin: 0;
    background: var(--mk-bg);
    color: var(--mk-text);
    font-family: var(--mk-sans);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

h1,
h2,
h3,
p,
dl,
dd,
figure {
    margin: 0;
}

ul,
ol {
    margin: 0;
    padding: 0;
}

img,
svg {
    display: block;
    max-width: 100%;
}

/* Author display rules (svg { display: block }) otherwise beat [hidden]. */
[hidden] {
    display: none !important;
}

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

/* The browser's own surfaces carry the design too. */
::selection {
    background: rgba(245, 138, 7, 0.26);
    color: var(--mk-ink);
}

input {
    caret-color: var(--mk-blue);
}

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

main:focus {
    outline: none;
}

time,
dd,
.mk-num {
    font-variant-numeric: tabular-nums;
}

.mk-icon {
    flex: none;
}

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

.mk-skip {
    position: absolute;
    left: 16px;
    top: -64px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: var(--mk-radius);
    background: var(--mk-ink);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.mk-skip:focus {
    top: 12px;
}

.mk-container {
    width: 100%;
    max-width: var(--mk-container);
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 768px) {
    .mk-container {
        padding: 0 32px;
    }
}

/* ------------------------------------------------------------- buttons -- */

.mk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: var(--mk-radius);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.mk-btn--lg {
    min-height: 52px;
    padding: 0 26px;
    font-size: 16px;
}

.mk-btn--primary {
    background: var(--mk-blue);
    color: #fff;
}

.mk-btn--primary:hover {
    background: var(--mk-blue-hover);
}

.mk-btn--outline,
.mk-btn--quiet {
    border-color: var(--mk-line-strong);
    background: #fff;
    color: var(--mk-ink);
}

.mk-btn--outline:hover,
.mk-btn--quiet:hover {
    border-color: var(--mk-ink);
}

.mk-btn--light {
    background: #fff;
    color: var(--mk-ink);
}

.mk-btn--light:hover {
    background: var(--mk-blue-tint);
}

.mk-btn--outline-dark {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.mk-btn--outline-dark:hover {
    border-color: #fff;
}

.mk-textlink {
    color: var(--mk-blue);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(38, 96, 164, 0.35);
}

.mk-textlink:hover {
    color: var(--mk-blue-hover);
    text-decoration-color: currentColor;
}

/* ----------------------------------------------------------------- nav -- */

.mk-nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    border-bottom: 1px solid transparent;
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    backdrop-filter: saturate(160%) blur(12px);
    transition: border-color 0.2s ease;
}

.mk-nav.is-scrolled,
.mk-nav.is-open {
    border-bottom-color: var(--mk-line);
}

.mk-nav__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 68px;
}

.mk-nav__logo img {
    width: auto;
    height: 30px;
}

.mk-nav__links,
.mk-nav__actions {
    display: none;
}

.mk-nav__toggle {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 1px solid var(--mk-line-strong);
    border-radius: var(--mk-radius);
    background: #fff;
    color: var(--mk-ink);
    cursor: pointer;
}

@media (min-width: 960px) {
    .mk-nav__links {
        display: flex;
        align-items: center;
        gap: 28px;
        margin-left: 24px;
    }

    .mk-nav__links > a {
        color: var(--mk-muted);
        font-size: 15px;
        font-weight: 500;
        text-decoration: none;
    }

    .mk-nav__links > a:hover {
        color: var(--mk-ink);
    }

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

    .mk-nav__signin {
        color: var(--mk-ink);
        font-size: 15px;
        font-weight: 500;
        text-decoration: none;
    }

    .mk-nav__signin:hover {
        color: var(--mk-blue);
    }

    .mk-nav__toggle,
    .mk-nav__mobile-only {
        display: none;
    }
}

@media (max-width: 959.98px) {
    .mk-nav.is-open .mk-nav__links {
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        padding: 8px 20px 20px;
        border-bottom: 1px solid var(--mk-line);
        background: #fff;
    }

    .mk-nav__links > a {
        padding: 12px 2px;
        color: var(--mk-ink);
        font-size: 17px;
        font-weight: 600;
        text-decoration: none;
    }

    .mk-nav__mobile-only {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
    }
}

/* ---------------------------------------------------------------- hero -- */

.mk-hero {
    padding-top: 108px;
}

@media (min-width: 1024px) {
    .mk-hero {
        padding-top: 116px;
    }
}

.mk-hero__copy {
    max-width: 820px;
    padding-bottom: 36px;
}

.mk-hero__title {
    color: var(--mk-ink);
    font-family: var(--mk-display);
    font-size: clamp(38px, 4.6vw, 58px);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.mk-hero__lede {
    max-width: 60ch;
    margin-top: 18px;
    color: var(--mk-muted);
    font-size: 18px;
}

.mk-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 24px;
    margin-top: 26px;
}

.mk-hero__note {
    margin-top: 12px;
    color: var(--mk-muted);
    font-size: 14.5px;
}

@media (max-width: 599.98px) {
    .mk-hero__actions .mk-btn {
        width: 100%;
    }
}

/* The product sits on a pale band tinted from the brand blue. */
.mk-hero__band {
    padding: 28px 0 72px;
    border-top: 1px solid var(--mk-line);
    background: var(--mk-wash);
}

@media (min-width: 1024px) {
    .mk-hero__band {
        padding: 36px 0 104px;
    }
}

/* ---------------------------------------------------------------- demo -- */

.mk-demo {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

@media (min-width: 1024px) {
    .mk-demo {
        grid-template-columns: 270px minmax(0, 1fr);
        gap: 28px;
        align-items: start;
    }
}

.mk-demo__tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.mk-demo__tab {
    padding: 10px 12px;
    border: 1px solid var(--mk-line-strong);
    border-radius: var(--mk-radius);
    background: #fff;
    color: var(--mk-ink);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.mk-demo__tab-title {
    display: block;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.35;
}

.mk-demo__tab-hint {
    display: none;
    margin-top: 4px;
    color: var(--mk-muted);
    font-size: 14px;
    line-height: 1.45;
}

.mk-demo__tab[aria-selected='true'] {
    border-color: var(--mk-blue);
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--mk-blue);
}

.mk-demo__tab[aria-selected='true'] .mk-demo__tab-title {
    color: var(--mk-blue);
}

@media (min-width: 1024px) {
    .mk-demo__tabs {
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
    }

    .mk-demo__tab {
        padding: 14px 16px;
        border-color: transparent;
        background: transparent;
    }

    .mk-demo__tab:hover {
        background: rgba(255, 255, 255, 0.6);
    }

    .mk-demo__tab-title {
        font-size: 15.5px;
    }

    .mk-demo__tab-hint {
        display: block;
    }

    .mk-demo__tab[aria-selected='true'] {
        border-color: var(--mk-line);
        background: #fff;
        box-shadow: var(--mk-lift);
    }

    /*
     * With JavaScript, one white card slides between the tabs instead of
     * each tab painting its own. The tabs sit above it.
     */
    .mk-demo__tabs.has-indicator {
        position: relative;
    }

    .mk-demo__tabs.has-indicator .mk-demo__tab {
        position: relative;
        z-index: 1;
    }

    .mk-demo__tabs.has-indicator .mk-demo__tab[aria-selected='true'] {
        border-color: transparent;
        background: transparent;
        box-shadow: none;
    }

    .mk-demo__indicator {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        border: 1px solid var(--mk-line);
        border-radius: var(--mk-radius);
        background: #fff;
        transition:
            transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
            height 0.42s cubic-bezier(0.22, 1, 0.36, 1);
    }

    /* Pinned: the demo holds still below the nav while the page scrolls. */
    .mk-demo-track.is-pinned .mk-demo {
        position: sticky;
        top: var(--mk-demo-top, 92px);
    }
}

/* The indicator only exists on a wide screen. */
@media (max-width: 1023.98px) {
    .mk-demo__indicator {
        display: none;
    }
}

/* With JavaScript, one panel at a time; without it, all four stack. */
.js .mk-demo__panel:not(.is-active) {
    display: none;
}

.mk-demo__panel.is-active {
    animation: mk-appear 0.3s ease-out;
}

/* Rows in a newly opened panel arrive one after another. */
.js .mk-demo__panel.is-active [data-mk-stagger] > * {
    animation: mk-enter 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: calc(var(--i, 0) * 55ms + 80ms);
}

/* Used by marketing.js to read each panel's height. */
.js .mk-demo__panel.mk-measure-show {
    display: block !important;
    animation: none !important;
}

.js .mk-demo__panel.mk-measure-hide {
    display: none !important;
}

html:not(.js) .mk-demo__panel + .mk-demo__panel {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--mk-line);
}

/* The product window */

.mk-window {
    overflow: hidden;
    border-radius: var(--mk-radius);
    background: #fff;
    box-shadow:
        0 0 0 1px rgba(15, 31, 53, 0.08),
        var(--mk-frame-shadow);
}

.mk-window__bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--mk-line);
    font-size: 13px;
}

.mk-window__bar img {
    width: 18px;
    height: 18px;
}

.mk-window__org {
    color: var(--mk-ink);
    font-weight: 600;
}

.mk-window__search {
    display: none;
    align-items: center;
    gap: 6px;
    flex: 1;
    max-width: 320px;
    margin-left: 16px;
    padding: 6px 10px;
    border-radius: 6px;
    background: var(--mk-paper);
    color: var(--mk-muted);
}

.mk-window__me {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    margin-left: auto;
    border-radius: 50%;
    background: var(--mk-blue-tint);
    color: var(--mk-blue);
    font-size: 11px;
    font-weight: 600;
}

.mk-window__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.mk-window__nav {
    display: none;
    padding: 12px 8px;
    border-right: 1px solid var(--mk-line);
    background: #fafbfc;
    list-style: none;
}

.mk-window__nav li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    color: var(--mk-muted);
    font-size: 14px;
}

.mk-window__nav li.is-active {
    background: var(--mk-blue-tint);
    color: var(--mk-blue);
    font-weight: 600;
}

.mk-window__main {
    min-width: 0;
    padding: 16px;
}

@media (max-width: 767.98px) {
    .mk-window__main {
        min-height: 600px;
    }

    .mk-record__label,
    .mk-record__log {
        display: none;
    }
}

@media (min-width: 768px) {
    .mk-window__search {
        display: inline-flex;
    }

    .mk-window__body {
        grid-template-columns: 172px minmax(0, 1fr);
        min-height: 480px;
    }

    .mk-window__nav {
        display: block;
    }

    .mk-window__main {
        padding: 20px;
    }
}

/* Shared product details */

.mk-avatar {
    display: inline-grid;
    flex: none;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--mk-blue);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.mk-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/* A dot beside the label, so state never rests on colour alone. */
.mk-pill::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.mk-pill--blue {
    background: var(--mk-blue-tint);
    color: var(--mk-blue);
}

.mk-pill--orange {
    background: var(--mk-orange-tint);
    color: var(--mk-orange-ink);
}

.mk-pill--red {
    background: var(--mk-red-tint);
    color: var(--mk-red);
}

.mk-pill--grey {
    background: #eef1f5;
    color: #475467;
}

/* Inbox panel */

.mk-inbox {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

@media (min-width: 900px) {
    .mk-inbox {
        grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    }
}

.mk-inbox__chat {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-radius);
}

.mk-inbox__chat-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--mk-line);
    line-height: 1.3;
}

.mk-inbox__chat-head strong {
    display: block;
    color: var(--mk-ink);
    font-size: 14px;
}

.mk-inbox__chat-head small {
    color: var(--mk-muted);
    font-size: 12px;
}

.mk-inbox__thread {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    min-height: 250px;
    padding: 14px;
    background: #efeae2;
}

.mk-bubble {
    max-width: 86%;
    padding: 8px 10px 6px;
    border-radius: var(--mk-radius);
    background: #fff;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
    color: var(--mk-ink);
    font-size: 13.5px;
    line-height: 1.45;
}

.mk-bubble time {
    display: block;
    margin-top: 2px;
    color: #5f6f78;
    font-size: 11px;
    text-align: right;
}

.mk-bubble--file {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    width: fit-content;
    color: var(--mk-blue);
    font-weight: 600;
}

.mk-bubble--file time {
    flex-basis: 100%;
}

.mk-bubble--out {
    align-self: flex-end;
    background: #d9fdd3;
}

.mk-bubble__tag {
    display: block;
    width: fit-content;
    margin-bottom: 4px;
    padding: 1px 8px;
    border-radius: 999px;
    background: #eef1f5;
    color: #475467;
    font-size: 11px;
    font-weight: 600;
}

.mk-record {
    padding: 16px;
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-radius);
}

.mk-record__name {
    margin-top: 10px;
    color: var(--mk-ink);
    font-size: 19px;
    font-weight: 600;
}

.mk-record__facts {
    display: grid;
    gap: 7px;
    margin-top: 12px;
    font-size: 14px;
}

.mk-record__facts div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.mk-record__facts dt {
    color: var(--mk-muted);
}

.mk-record__facts dd {
    color: var(--mk-ink);
    font-weight: 500;
    text-align: right;
}

.mk-record__label {
    margin-top: 16px;
    color: var(--mk-muted);
    font-size: 13px;
    font-weight: 600;
}

.mk-record__log {
    margin-top: 6px;
    list-style: none;
}

.mk-record__log li {
    padding: 7px 0;
    border-top: 1px solid var(--mk-line);
    color: var(--mk-text);
    font-size: 13.5px;
}

.mk-record__log time {
    margin-right: 8px;
    color: var(--mk-muted);
    font-size: 12px;
}

/* Documents panel */

.mk-docs__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.mk-docs__head h3,
.mk-renewals__head h3,
.mk-calc__inputs h3 {
    color: var(--mk-ink);
    font-size: 17px;
    font-weight: 600;
}

.mk-docs__head p {
    margin-top: 2px;
    color: var(--mk-muted);
    font-size: 13.5px;
}

.mk-docs__list {
    margin-top: 14px;
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-radius);
    list-style: none;
}

.mk-docs__list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
}

.mk-docs__list li + li {
    border-top: 1px solid var(--mk-line);
}

.mk-docs__state {
    display: grid;
    flex: none;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #eef1f5;
    color: #5b6576;
}

.mk-docs__state--done {
    background: var(--mk-green-tint);
    color: var(--mk-green);
}

.mk-docs__name {
    flex: 1;
    min-width: 0;
    color: var(--mk-ink);
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.35;
}

.mk-docs__name small {
    display: block;
    color: var(--mk-muted);
    font-size: 12.5px;
    font-weight: 400;
}

.mk-docs__action {
    color: var(--mk-muted);
    font-size: 13px;
    font-weight: 600;
}

.mk-docs__action--todo {
    color: var(--mk-blue);
}

.mk-docs__note {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    color: var(--mk-muted);
    font-size: 13.5px;
}

.mk-docs__note .mk-icon {
    margin-top: 3px;
}

/* Renewals panel */

.mk-renewals__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.mk-renewals__count {
    color: var(--mk-muted);
    font-size: 13px;
}

.mk-table-scroll {
    margin-top: 12px;
    overflow-x: auto;
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-radius);
}

.mk-renewals__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.mk-renewals__table th,
.mk-renewals__table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--mk-line);
    text-align: left;
    vertical-align: top;
}

.mk-renewals__table thead th {
    background: #fafbfc;
    color: var(--mk-muted);
    font-size: 12.5px;
    font-weight: 600;
}

.mk-renewals__table tbody th {
    color: var(--mk-ink);
    font-weight: 600;
}

.mk-renewals__table tbody th small {
    display: block;
    color: var(--mk-muted);
    font-size: 12.5px;
    font-weight: 400;
}

@media (max-width: 767.98px) {
    .mk-renewals__table,
    .mk-renewals__table tbody,
    .mk-renewals__table tr,
    .mk-renewals__table th,
    .mk-renewals__table td {
        display: block;
    }

    .mk-renewals__table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .mk-renewals__table tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 2px 12px;
        padding: 12px;
        border-bottom: 1px solid var(--mk-line);
    }

    .mk-renewals__table tbody tr:last-child {
        border-bottom: 0;
    }

    .mk-renewals__table th,
    .mk-renewals__table td {
        padding: 0;
        border: 0;
    }

    .mk-renewals__table td[data-label='Renews in'] {
        grid-row: 1;
        grid-column: 2;
    }

    .mk-renewals__table td[data-label='Cover'],
    .mk-renewals__table td[data-label='Premium (KES)'],
    .mk-renewals__table .mk-renewals__sent {
        grid-column: 1 / -1;
        text-align: left;
        font-size: 13px;
    }

    .mk-renewals__table td[data-label='Premium (KES)']::before {
        content: 'KES ';
    }
}

.mk-renewals__table tbody tr:last-child > * {
    border-bottom: 0;
}

.mk-renewals__table .mk-num {
    text-align: right;
    white-space: nowrap;
}

.mk-renewals__sent {
    color: var(--mk-muted);
    font-size: 13px;
}

.mk-renewals__note {
    margin-top: 12px;
    color: var(--mk-muted);
    font-size: 13.5px;
}

/* Commission panel: a working calculator */

.mk-calc {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
}

@media (min-width: 900px) {
    .mk-calc {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        gap: 24px;
    }
}

.mk-calc__inputs p {
    margin-top: 4px;
    color: var(--mk-muted);
    font-size: 13.5px;
}

.mk-calc__inputs label {
    display: block;
    margin-top: 16px;
    color: var(--mk-ink);
    font-size: 13.5px;
    font-weight: 600;
}

.mk-calc__inputs input {
    width: 100%;
    margin-top: 6px;
    padding: 10px 12px;
    border: 1px solid var(--mk-line-strong);
    border-radius: var(--mk-radius);
    background: #fff;
    color: var(--mk-ink);
    font-family: inherit;
    font-size: 16px;
    font-variant-numeric: tabular-nums;
}

.mk-calc__inputs input:focus {
    border-color: var(--mk-blue);
}

.mk-calc__lines div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    font-size: 14px;
}

.mk-calc__lines dt {
    color: var(--mk-muted);
}

.mk-calc__lines dd {
    color: var(--mk-ink);
    font-weight: 500;
}

.mk-calc__lines .mk-calc__total {
    margin-top: 4px;
    padding-top: 9px;
    border-top: 1px solid var(--mk-line-strong);
}

.mk-calc__total dt,
.mk-calc__total dd {
    color: var(--mk-ink);
    font-weight: 600;
}

/* The page's one orange object: what the agent takes home. */
.mk-calc__lines--yours {
    margin-top: 14px;
    padding: 6px 14px 10px;
    border-radius: var(--mk-radius);
    background: var(--mk-orange-tint);
}

.mk-calc__lines--yours dt {
    color: #6b4a1f;
}

.mk-calc__lines--yours .mk-calc__total {
    border-top-color: rgba(154, 82, 0, 0.25);
}

.mk-calc__lines--yours .mk-calc__total dt,
.mk-calc__lines--yours .mk-calc__total dd {
    color: var(--mk-orange-ink);
}

.mk-calc__lines--yours .mk-calc__total {
    flex-wrap: wrap;
    align-items: baseline;
}

.mk-calc__lines--yours .mk-calc__total dd {
    margin-left: auto;
    font-family: var(--mk-display);
    font-size: 21px;
    font-weight: 400;
    overflow-wrap: anywhere;
}

.mk-calc__note {
    margin-top: 10px;
    color: var(--mk-muted);
    font-size: 12.5px;
}

/* ------------------------------------------------------------ sections -- */

.mk-section {
    padding: 72px 0;
}

@media (min-width: 960px) {
    .mk-section {
        padding: 104px 0;
    }
}

.mk-section--paper {
    background: var(--mk-paper);
}

.mk-section--white {
    background: var(--mk-bg);
}

.mk-h2 {
    color: var(--mk-ink);
    font-family: var(--mk-display);
    font-size: clamp(30px, 3.4vw, 44px);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -0.012em;
    text-wrap: balance;
}

.mk-lede {
    max-width: 54ch;
    margin-top: 16px;
    color: var(--mk-muted);
    font-size: 17.5px;
}

.mk-section-head {
    max-width: 760px;
    margin-bottom: 40px;
}

/* Heading on the left, content on the right. */
.mk-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
}

@media (min-width: 960px) {
    .mk-split {
        grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr);
        gap: 64px;
        align-items: start;
    }

    .mk-split__head {
        position: sticky;
        top: 104px;
    }
}

/* Comparison table */

.mk-compare {
    width: 100%;
    border-collapse: collapse;
    font-size: 15.5px;
}

.mk-compare thead th {
    padding: 0 16px 12px;
    color: var(--mk-muted);
    font-size: 13.5px;
    font-weight: 600;
    text-align: left;
}

.mk-compare thead th:last-child {
    color: var(--mk-blue);
}

.mk-compare thead td {
    padding: 0;
    border: 0;
}

.mk-compare tbody th,
.mk-compare td {
    padding: 16px;
    border-top: 1px solid var(--mk-line-strong);
    text-align: left;
    vertical-align: top;
}

.mk-compare tbody th {
    padding-left: 0;
    color: var(--mk-ink);
    font-weight: 600;
}

.mk-compare td {
    color: var(--mk-muted);
}

.mk-compare td:last-child {
    color: var(--mk-ink);
    font-weight: 500;
}

@media (max-width: 767.98px) {
    .mk-compare,
    .mk-compare tbody,
    .mk-compare tr,
    .mk-compare th,
    .mk-compare td {
        display: block;
    }

    .mk-compare thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .mk-compare tr {
        padding: 16px 0;
        border-top: 1px solid var(--mk-line-strong);
    }

    .mk-compare tbody th,
    .mk-compare td {
        padding: 0;
        border: 0;
    }

    .mk-compare td {
        margin-top: 8px;
    }

    .mk-compare td::before {
        content: attr(data-label);
        display: block;
        color: var(--mk-muted);
        font-size: 13px;
        font-weight: 600;
    }

    .mk-compare td:last-child::before {
        color: var(--mk-blue);
    }
}

/* More ways to bring in business */

.mk-cards {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px 40px;
}

@media (min-width: 640px) {
    .mk-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.mk-card {
    padding-top: 18px;
    border-top: 1px solid var(--mk-line-strong);
}

.mk-card__title {
    color: var(--mk-ink);
    font-size: 18px;
    font-weight: 600;
}

.mk-card__body {
    margin-top: 6px;
    color: var(--mk-muted);
    font-size: 15.5px;
}

/* -------------------------------------------------------------- pricing -- */

.mk-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    align-items: stretch;
}

.mk-plan {
    display: flex;
    flex-direction: column;
    padding: 28px 24px;
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-radius);
    background: #fff;
}

.mk-plan--featured {
    border: 2px solid var(--mk-blue);
}

.mk-plan__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 12px;
}

.mk-plan__name {
    color: var(--mk-ink);
    font-size: 20px;
    font-weight: 600;
}

.mk-plan__flag {
    color: var(--mk-blue);
    font-size: 13.5px;
    font-weight: 600;
}

.mk-plan__description {
    margin-top: 4px;
    color: var(--mk-muted);
    font-size: 14.5px;
}

.mk-plan__price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 18px;
}

.mk-plan__currency,
.mk-plan__cycle {
    color: var(--mk-muted);
    font-size: 14px;
    font-weight: 500;
}

.mk-plan__amount {
    color: var(--mk-ink);
    font-family: var(--mk-display);
    font-size: 42px;
    font-weight: 400;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.mk-plan__yearly {
    margin-top: 6px;
    color: var(--mk-muted);
    font-size: 13.5px;
    font-weight: 500;
}

.mk-plan__list {
    display: grid;
    flex: 1;
    align-content: start;
    gap: 9px;
    margin: 20px 0 24px;
    padding-top: 18px;
    border-top: 1px solid var(--mk-line);
    list-style: none;
}

.mk-plan__list li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 14.5px;
}

.mk-plan__list .mk-icon {
    margin-top: 3px;
    color: var(--mk-green);
}

.mk-plan__cta {
    width: 100%;
}

.mk-plans__note {
    margin-top: 24px;
    color: var(--mk-muted);
    font-size: 14.5px;
}

/* ------------------------------------------------------------------ FAQ -- */

.mk-faq__item {
    border-top: 1px solid var(--mk-line-strong);
}

.mk-faq__item:last-child {
    border-bottom: 1px solid var(--mk-line-strong);
}

.mk-faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
    color: var(--mk-ink);
    font-size: 17px;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
}

.mk-faq__item summary::-webkit-details-marker {
    display: none;
}

.mk-faq__item summary .mk-icon {
    color: var(--mk-muted);
    transition: transform 0.2s ease;
}

.mk-faq__item[open] summary .mk-icon {
    transform: rotate(180deg);
}

.mk-faq__item p {
    max-width: 62ch;
    padding-bottom: 18px;
    color: var(--mk-muted);
    font-size: 16px;
}

/* ------------------------------------------------------------ your data -- */

.mk-promises {
    border-bottom: 1px solid var(--mk-line-strong);
}

.mk-promise {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 18px 0;
    border-top: 1px solid var(--mk-line-strong);
}

@media (min-width: 768px) {
    .mk-promise {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr);
        gap: 32px;
    }
}

.mk-promise h3 {
    color: var(--mk-ink);
    font-size: 16.5px;
    font-weight: 600;
}

.mk-promise p {
    color: var(--mk-muted);
    font-size: 15.5px;
}

.mk-disclosures {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px 48px;
    margin-top: 64px;
}

@media (min-width: 900px) {
    .mk-disclosures {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.mk-disclosure {
    padding-top: 18px;
    border-top: 1px solid var(--mk-line-strong);
    color: var(--mk-muted);
    font-size: 15px;
}

.mk-disclosure h3 {
    margin-bottom: 10px;
    color: var(--mk-ink);
    font-size: 17px;
    font-weight: 600;
}

.mk-disclosure ul {
    display: grid;
    gap: 8px;
    margin: 12px 0;
    padding-left: 18px;
}

.mk-disclosure strong {
    color: var(--mk-ink);
}

.mk-disclosure code {
    padding: 1px 5px;
    border-radius: 4px;
    background: #eaeef3;
    color: var(--mk-ink);
    font-size: 0.9em;
}

.mk-disclosure a {
    color: var(--mk-blue);
    font-weight: 600;
}

/* ------------------------------------------------------------ final CTA -- */

.mk-cta {
    padding: 88px 0;
    background: var(--mk-night);
    color: #fff;
}

.mk-cta__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    align-items: end;
}

@media (min-width: 960px) {
    .mk-cta__inner {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
        gap: 48px;
    }
}

.mk-cta .mk-h2 {
    max-width: 18ch;
    color: #fff;
}

.mk-cta .mk-lede {
    color: var(--mk-night-text);
}

.mk-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* -------------------------------------------------------------- footer -- */

.mk-footer {
    padding: 56px 0 32px;
    background: var(--mk-night-deep);
    color: var(--mk-night-text);
    font-size: 15px;
}

.mk-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
}

.mk-brand__mark {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: var(--mk-radius);
    background: #fff;
}

.mk-brand__bima {
    color: #f8a742;
}

.mk-brand__link {
    color: #8fb4e3;
}

.mk-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
}

@media (min-width: 640px) {
    .mk-footer__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mk-footer__about {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1024px) {
    .mk-footer__grid {
        grid-template-columns: 1.7fr 1fr 1fr 1fr;
    }

    .mk-footer__about {
        grid-column: auto;
    }
}

.mk-footer__about p {
    max-width: 26rem;
    margin-top: 14px;
}

.mk-footer__col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mk-footer__col h2 {
    margin-bottom: 4px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}

.mk-footer__col a {
    color: var(--mk-night-text);
    text-decoration: none;
}

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

.mk-footer__base {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 44px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 13.5px;
}

.mk-footer__base strong {
    color: #fff;
}

.mk-footer :focus-visible,
.mk-cta :focus-visible {
    outline-color: #fff;
}

/* --------------------------------------------------------- legal pages -- */

.mk-legal-head {
    padding: 112px 0 40px;
    border-bottom: 1px solid var(--mk-line);
    background: var(--mk-paper);
}

@media (min-width: 960px) {
    .mk-legal-head {
        padding: 136px 0 56px;
    }
}

/* The three documents, as a quiet row of links above the title. */
.mk-legal-docs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
    margin-bottom: 28px;
    font-size: 14.5px;
}

.mk-legal-docs a {
    padding: 4px 0;
    color: var(--mk-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

.mk-legal-docs a:hover {
    color: var(--mk-ink);
}

.mk-legal-docs a[aria-current='page'] {
    border-bottom-color: var(--mk-blue);
    color: var(--mk-ink);
    font-weight: 600;
}

.mk-legal-title {
    max-width: 18ch;
    color: var(--mk-ink);
    font-family: var(--mk-display);
    font-size: clamp(34px, 4.2vw, 52px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

.mk-legal-updated {
    margin-top: 14px;
    color: var(--mk-muted);
    font-size: 14.5px;
}

.mk-legal-intro {
    max-width: 62ch;
    margin-top: 20px;
    color: var(--mk-text);
}

.mk-legal-intro a {
    color: var(--mk-blue);
    font-weight: 500;
    text-decoration-color: rgba(38, 96, 164, 0.35);
}

.mk-legal-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    padding-top: 48px;
    padding-bottom: 96px;
}

@media (min-width: 960px) {
    .mk-legal-body {
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 72px;
        padding-top: 64px;
        padding-bottom: 128px;
    }
}

/* On this page */

.mk-toc {
    display: none;
}

@media (min-width: 960px) {
    .mk-toc:not([hidden]) {
        display: block;
        position: sticky;
        top: 104px;
        align-self: start;
        max-height: calc(100vh - 128px);
        overflow-y: auto;
    }
}

.mk-toc__title {
    margin-bottom: 10px;
    color: var(--mk-ink);
    font-size: 14px;
    font-weight: 600;
}

.mk-toc__list {
    list-style: none;
    border-left: 1px solid var(--mk-line);
}

.mk-toc__list a {
    display: block;
    margin-left: -1px;
    padding: 6px 0 6px 14px;
    border-left: 2px solid transparent;
    color: var(--mk-muted);
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
    transition:
        color 0.2s ease,
        border-color 0.2s ease;
}

.mk-toc__list a:hover {
    color: var(--mk-ink);
}

.mk-toc__list a[aria-current='location'] {
    border-left-color: var(--mk-blue);
    color: var(--mk-blue);
    font-weight: 600;
}

/* The document */

.mk-prose {
    max-width: 70ch;
    color: var(--mk-text);
    font-size: 16.5px;
    line-height: 1.7;
}

.mk-prose > section {
    scroll-margin-top: 96px;
}

.mk-prose > section + section {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--mk-line);
}

.mk-prose h2 {
    margin-bottom: 14px;
    color: var(--mk-ink);
    font-size: 21px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.005em;
}

.mk-prose p + p,
.mk-prose p + ul,
.mk-prose ul + p {
    margin-top: 14px;
}

.mk-prose ul {
    padding-left: 22px;
}

.mk-prose li + li {
    margin-top: 8px;
}

.mk-prose li::marker {
    color: var(--mk-line-strong);
}

.mk-prose strong {
    color: var(--mk-ink);
    font-weight: 600;
}

.mk-prose a:not(.mk-btn) {
    color: var(--mk-blue);
    font-weight: 500;
    text-decoration-color: rgba(38, 96, 164, 0.35);
}

.mk-prose a:not(.mk-btn):hover {
    text-decoration-color: currentColor;
}

/* Alerts */

.mk-alert {
    display: flex;
    gap: 12px;
    margin: 20px 0;
    padding: 14px 16px;
    border: 1px solid;
    border-radius: var(--mk-radius);
    font-size: 15px;
    line-height: 1.55;
}

.mk-alert p + p {
    margin-top: 6px;
}

.mk-alert .mk-icon {
    margin-top: 3px;
}

.mk-alert__title {
    font-weight: 600;
}

.mk-alert--success {
    border-color: #bfe3cc;
    background: var(--mk-green-tint);
    color: var(--mk-green);
}

.mk-alert--success strong {
    color: inherit;
}

.mk-alert--error {
    border-color: #f3c6c2;
    background: var(--mk-red-tint);
    color: var(--mk-red);
}

/* Forms */

.mk-form {
    margin-top: 24px;
    padding: 24px;
    border: 1px solid var(--mk-line);
    border-radius: var(--mk-radius);
    background: #fff;
}

@media (max-width: 599.98px) {
    .mk-form {
        padding: 18px;
    }
}

.mk-form__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}

@media (min-width: 640px) {
    .mk-form__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mk-field--wide {
        grid-column: 1 / -1;
    }
}

.mk-field label {
    display: block;
    margin-bottom: 6px;
    color: var(--mk-ink);
    font-size: 14.5px;
    font-weight: 600;
}

.mk-field input:not([type='checkbox']),
.mk-field select,
.mk-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--mk-line-strong);
    border-radius: var(--mk-radius);
    background: #fff;
    color: var(--mk-ink);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.4;
}

.mk-field select {
    appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23536072' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-position: right 12px center;
    background-repeat: no-repeat;
}

.mk-field textarea {
    resize: vertical;
}

.mk-field input::placeholder,
.mk-field textarea::placeholder {
    color: #7a8596;
}

.mk-field input:focus,
.mk-field select:focus,
.mk-field textarea:focus {
    border-color: var(--mk-blue);
}

.mk-field [aria-invalid='true'] {
    border-color: var(--mk-red);
}

.mk-field__error {
    margin-top: 6px;
    color: var(--mk-red);
    font-size: 14px;
}

.mk-field label.mk-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 0;
    color: var(--mk-text);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
}

.mk-check input {
    flex: none;
    width: 18px;
    height: 18px;
    margin-top: 3px;
}

.mk-form__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    margin-top: 24px;
}

.mk-form__note {
    color: var(--mk-muted);
    font-size: 14px;
}

/* --------------------------------------------------------------- motion -- */

@keyframes mk-appear {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes mk-enter {
    from {
        opacity: 0;
        transform: translateY(var(--mk-enter, 6px));
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
