/*
 * Homepage (v2): hosting.com-inspired. Dark theme-tinted hero under the floating header, tabbed goals,
 * a bento grid for the admin feature sections, flat 16px cards, 24px panels and 8px buttons with an
 * arrow tile. One theme colour (--primary-color) drives every accent.
 */
.kh {
    --kh-brand: var(--primary-color, #22577a);
    --kh-brand-ink: color-mix(in srgb, var(--kh-brand) 78%, #000);
    --kh-brand-soft: color-mix(in srgb, var(--kh-brand) 10%, #fff);
    --kh-brand-tint: color-mix(in srgb, var(--kh-brand) 22%, #fff);
    --kh-night: color-mix(in srgb, var(--kh-brand) 16%, #050a09);
    --kh-night-2: color-mix(in srgb, var(--kh-brand) 26%, #07110e);
    --kh-ink: #0a1616;
    --kh-text: #334155;
    --kh-muted: #5f6b7a;
    --kh-line: #e3e8e6;
    --kh-soft: #f5f7f6;
    --kh-radius: 16px;
    --kh-radius-lg: 24px;
    --kh-btn-radius: 8px;
    color: var(--kh-text);
}

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

/* ---------------------------------------------------------------- shared */
.kh-section { padding-block: clamp(48px, 6vw, 84px); }
.kh-section--soft { background: var(--kh-soft); }

.kh-head { max-width: 680px; margin: 0 auto clamp(28px, 3.5vw, 44px); text-align: center; }
.kh-head > p { margin: 12px auto 0; max-width: 600px; color: var(--kh-muted); font-size: 16px; line-height: 1.6; }
.kh-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; text-align: left; }
.kh-head--row > div > p { margin: 8px 0 0; color: var(--kh-muted); font-size: 16px; }

:root .public-site .kh .kh-head h2,
:root .public-site .kh .kh-app h2,
:root .public-site .kh .kh-faq__intro h2 {
    margin: 12px 0 0;
    color: var(--kh-ink);
    font-size: clamp(24px, 2.5vw, 34px) !important;
    font-weight: 600 !important;
    letter-spacing: -0.025em !important;
    line-height: 1.12 !important;
    text-wrap: balance;
}

.kh-eyebrow {
    display: inline-block;
    color: var(--kh-brand-ink);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.kh-link { color: var(--kh-brand-ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.kh-link:hover { color: var(--kh-brand); text-decoration: underline; }

/* ---------------------------------------------------------------- buttons */
.kh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: var(--kh-btn-radius);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.kh-btn:has(.kh-btn__tile) { padding: 5px 5px 5px 16px; gap: 12px; }

.kh-btn__tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    font-size: 16px;
    transition: transform .18s ease;
}

.kh-btn:hover .kh-btn__tile { transform: translateX(2px); }
.kh-btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--kh-brand) 40%, transparent); outline-offset: 3px; }

.kh-btn--white { background: #fff; color: var(--kh-ink) !important; }
.kh-btn--white:hover { background: var(--kh-brand-soft); }
.kh-btn--white .kh-btn__tile { background: var(--kh-brand); color: #fff; }

.kh-btn--brand { background: var(--kh-brand); color: #fff !important; }
.kh-btn--brand:hover { background: var(--kh-brand-ink); }
.kh-btn--brand .kh-btn__tile { background: rgba(255, 255, 255, .18); color: #fff; }

.kh-btn--dark { background: var(--kh-ink); color: #fff !important; }
.kh-btn--dark:hover { background: #1c2a2a; }

.kh-btn--outline { border-color: var(--kh-line); background: #fff; color: var(--kh-ink) !important; }
.kh-btn--outline:hover { border-color: var(--kh-brand); color: var(--kh-brand-ink) !important; }

.kh-btn--ghost-light { border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .06); color: #fff !important; }
.kh-btn--ghost-light:hover { border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .12); }

/* ---------------------------------------------------------------- hero */
.public-site .kisoma-public-navbar + .kh > .kh-hero:first-child { margin-top: -84px; }

.kh-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: calc(84px + clamp(40px, 5vw, 72px)) 0 clamp(32px, 4vw, 52px);
    background: var(--kh-night);
    color: rgba(255, 255, 255, .78);
}

.kh-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(60% 70% at 85% 20%, color-mix(in srgb, var(--kh-brand) 55%, transparent), transparent 70%),
        radial-gradient(45% 60% at 0% 100%, color-mix(in srgb, var(--kh-brand) 35%, transparent), transparent 70%);
    opacity: .75;
}

.kh-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(180deg, #000, transparent 85%);
}

.kh-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(32px, 5vw, 72px);
}

.public-site .kh-hero .kh-hero__eyebrow {
    display: inline-flex !important;
    padding: 6px 12px !important;
    border: 1px solid rgba(255, 255, 255, .18) !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, .08) !important;
    color: #fff !important;
    font-size: 11.5px !important;
    letter-spacing: .12em !important;
}

.public-site .kh-hero h1.kh-hero__title {
    margin: 20px 0 0;
    color: #fff !important;
    font-size: clamp(30px, 3.6vw, 46px) !important;
    font-weight: 600 !important;
    letter-spacing: -0.025em !important;
    line-height: 1.12 !important;
    text-wrap: balance;
}

.kh-hero__lead { max-width: 520px; margin: 16px 0 0; font-size: 16px; line-height: 1.6; }
.kh-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.kh-hero__ticks { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 14px; }
.kh-hero__ticks li { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .85); }
.kh-hero__ticks li::before {
    content: "\2713";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 5px;
    background: var(--kh-brand);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.kh-hero__visual { position: relative; }

.kh-hero__frame {
    overflow: hidden;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--kh-radius-lg);
    background: rgba(255, 255, 255, .06);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6);
}

.kh-hero__frame img { display: block; width: 100%; height: auto; border-radius: 16px; }

.kh-hero__note {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 260px;
    padding: 12px 16px;
    border: 1px solid var(--kh-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 40px -16px rgba(5, 10, 9, .45);
    color: var(--kh-ink);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

.kh-hero__note--top { top: -18px; left: -22px; }
.kh-hero__note--bottom { right: -18px; bottom: -22px; }
.kh-hero__note img { width: 36px; height: 36px; flex: 0 0 auto; border-radius: 8px; object-fit: cover; }
.kh-hero__note-dot { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; background: var(--kh-brand); box-shadow: 0 0 0 4px var(--kh-brand-tint); }

.kh-hero__facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1px;
    margin: clamp(36px, 4.5vw, 60px) 0 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--kh-radius);
    background: rgba(255, 255, 255, .12);
    list-style: none;
}

.kh-hero__facts li { display: flex; flex-direction: column; gap: 2px; padding: 16px 20px; background: var(--kh-night); }
.kh-hero__facts strong { color: #fff; font-size: clamp(16px, 1.5vw, 19px); font-weight: 600; letter-spacing: -0.02em; }
.kh-hero__facts span { color: rgba(255, 255, 255, .62); font-size: 13px; }

/* ---------------------------------------------------------------- trusted schools */
:root .public-site .kh .kh-trusted {
    padding-block: clamp(28px, 4vw, 44px) !important;
    border-bottom: 1px solid var(--kh-line);
    background: #fff !important;
}

.kh-trusted__label { margin: 0 0 14px; color: var(--kh-muted); font-size: 14px; text-align: center; }

/* ---------------------------------------------------------------- goals (tabs) */
.kh-goals__tabs {
    display: flex;
    gap: 6px;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 28px;
    padding: 6px;
    overflow-x: auto;
    border: 1px solid var(--kh-line);
    border-radius: 12px;
    background: var(--kh-soft);
    scrollbar-width: none;
}

.kh-goals__tab {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 0 14px;
    border: 0;
    border-radius: var(--kh-btn-radius);
    background: transparent;
    color: var(--kh-muted);
    font: inherit;
    font-size: 14.5px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease;
}

.kh-goals__tab:hover { color: var(--kh-ink); }
.kh-goals__tab[aria-selected="true"] { background: var(--kh-night-2); color: #fff; }
.kh-goals__tab:focus-visible { outline: 3px solid color-mix(in srgb, var(--kh-brand) 40%, transparent); outline-offset: 2px; }

.kh-goals__panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(28px, 4vw, 56px);
    padding: clamp(20px, 3.2vw, 40px);
    border: 1px solid var(--kh-line);
    border-radius: var(--kh-radius-lg);
    background: #fff;
}

.kh-goals__panel[hidden] { display: none; }

:root .public-site .kh .kh-goals__copy h3 { margin: 0; color: var(--kh-ink); font-size: clamp(20px, 1.8vw, 24px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.kh-goals__copy > p { margin: 10px 0 0; color: var(--kh-muted); font-size: 15px; line-height: 1.6; }
.kh-goals__copy .kh-btn { margin-top: 22px; }

.kh-checks { display: grid; gap: 9px; margin: 18px 0 0; padding: 0; list-style: none; }
.kh-checks li { position: relative; padding-left: 28px; color: var(--kh-ink); font-size: 14.5px; line-height: 1.5; }
.kh-checks li::before {
    content: "\2713";
    position: absolute;
    top: 1px;
    left: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 19px;
    border-radius: 5px;
    background: var(--kh-brand-soft);
    color: var(--kh-brand-ink);
    font-size: 12px;
    font-weight: 700;
}

.kh-goals__mock { padding: clamp(18px, 3vw, 36px); border-radius: var(--kh-radius); background: linear-gradient(145deg, var(--kh-night-2), var(--kh-night)); }

.kh-mock { padding: 20px; border-radius: 12px; background: #fff; box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .55); }
.kh-mock__bar { display: flex; gap: 6px; margin-bottom: 16px; }
.kh-mock__bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--kh-line); }
.kh-mock__label { margin: 0 0 10px; color: var(--kh-ink); font-size: 14px; font-weight: 600; }
.kh-mock__row { display: grid; grid-template-columns: 74px 1fr 44px; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--kh-line); font-size: 13px; }
.kh-mock__name { color: var(--kh-muted); font-weight: 600; }
.kh-mock__track { height: 8px; overflow: hidden; border-radius: 999px; background: var(--kh-soft); }
.kh-mock__track span { display: block; height: 100%; border-radius: inherit; background: var(--kh-brand); }
.kh-mock__value { color: var(--kh-ink); font-weight: 600; text-align: right; }

/* ---------------------------------------------------------------- feature sections (bento) */
.kh-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; gap: 16px; }

.kh-bento__card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--kh-line);
    border-radius: var(--kh-radius);
    background: #fff;
    transition: border-color .18s ease;
}

.kh-bento__card:hover { border-color: color-mix(in srgb, var(--kh-brand) 45%, var(--kh-line)); }
.kh-bento__card--wide { grid-column: span 2; }
.kh-bento__copy { padding: 22px; }
.kh-bento__tag { color: var(--kh-brand-ink); font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
:root .public-site .kh .kh-bento__copy h3 { margin: 8px 0 0; color: var(--kh-ink); font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.kh-bento__copy p { margin: 6px 0 0; color: var(--kh-muted); font-size: 14.5px; line-height: 1.6; }
.kh-bento__media { margin-top: auto; padding: 0 24px; }
.kh-bento__media img { display: block; width: 100%; max-height: 260px; object-fit: cover; object-position: top; border: 1px solid var(--kh-line); border-bottom: 0; border-radius: 12px 12px 0 0; }

/* ---------------------------------------------------------------- CBC stages */
.kh-stages__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: none; }

.kh-stages__list li {
    position: relative;
    padding: 24px;
    border: 1px solid var(--kh-line);
    border-radius: var(--kh-radius);
    background: #fff;
}

.kh-stages__list li::after {
    content: "";
    position: absolute;
    top: 36px;
    right: -17px;
    width: 18px;
    height: 1px;
    background: var(--kh-line);
}

.kh-stages__list li:last-child::after { content: none; }
.kh-stages__step { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; background: var(--kh-brand-soft); color: var(--kh-brand-ink); font-size: 12.5px; font-weight: 700; }
.kh-stages__list small { display: block; margin-top: 14px; color: var(--kh-muted); font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.kh-stages__list strong { display: block; margin-top: 4px; color: var(--kh-ink); font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.kh-stages__list p { margin: 6px 0 0; color: var(--kh-muted); font-size: 14px; line-height: 1.55; }

/* ---------------------------------------------------------------- roles (dark) */
.kh-dark { background: var(--kh-night-2); color: rgba(255, 255, 255, .72); }
:root .public-site .kh .kh-head--light h2 { color: #fff !important; }
.kh-head--light > p { color: rgba(255, 255, 255, .68); }
.kh-dark .kh-eyebrow { color: color-mix(in srgb, var(--kh-brand) 35%, #fff); }

.kh-roles__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }

.kh-roles__card {
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--kh-radius);
    background: rgba(255, 255, 255, .04);
    transition: border-color .18s ease, background-color .18s ease;
}

.kh-roles__card:hover { border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .07); }
.kh-roles__icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 9px; background: var(--kh-brand); color: #fff; font-size: 16px; }
:root .public-site .kh .kh-roles__card h3 { margin: 14px 0 0; color: #fff; font-size: 16px; font-weight: 600; }
.kh-roles__card p { margin: 6px 0 0; color: rgba(255, 255, 255, .66); font-size: 14px; line-height: 1.55; }

/* ---------------------------------------------------------------- getting started */
.kh-steps__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }

/* ---------------------------------------------------------------- app */
.kh-app__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); align-items: center; gap: clamp(32px, 5vw, 72px); }
.kh-app__text { margin: 12px 0 0; color: var(--kh-muted); font-size: 16px; line-height: 1.6; }
.kh-app__stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.kh-app__media img { display: block; width: 100%; height: auto; border-radius: var(--kh-radius-lg); }

/* ---------------------------------------------------------------- custom package */
.kh-custom { padding-bottom: clamp(48px, 6vw, 80px); }

.kh-custom__card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(24px, 4vw, 40px);
    border: 1px solid var(--kh-line);
    border-radius: var(--kh-radius-lg);
    background: linear-gradient(135deg, var(--kh-brand-soft), #fff 70%);
}

:root .public-site .kh .kh-custom__card h2 { margin: 0; color: var(--kh-ink); font-size: 22px !important; font-weight: 600 !important; }
.kh-custom__card p { margin: 6px 0 0; color: var(--kh-muted); font-size: 15px; }

/* ---------------------------------------------------------------- tools + migration */
.kh-tools__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.kh-tool {
    display: flex;
    flex-direction: column;
    padding: 24px;
    border: 1px solid var(--kh-line);
    border-radius: var(--kh-radius);
    background: #fff;
    color: inherit;
    text-decoration: none !important;
    transition: border-color .18s ease;
}

.kh-tool:hover { border-color: color-mix(in srgb, var(--kh-brand) 45%, var(--kh-line)); }
.kh-tool__icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 9px; background: var(--kh-brand-soft); color: var(--kh-brand-ink); font-size: 16px; }
:root .public-site .kh .kh-tool h3 { margin: 14px 0 0; color: var(--kh-ink); font-size: 16.5px; font-weight: 600; }
.kh-tool p { margin: 6px 0 0; color: var(--kh-muted); font-size: 14.5px; line-height: 1.55; }
.kh-tool__go { margin-top: auto; padding-top: 18px; color: var(--kh-brand-ink); font-weight: 600; }

.kh-migrate {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) auto;
    align-items: center;
    gap: 32px;
    margin-top: clamp(40px, 5vw, 64px);
    padding: clamp(24px, 4vw, 44px);
    border-radius: var(--kh-radius-lg);
    background:
        radial-gradient(50% 90% at 100% 0%, color-mix(in srgb, var(--kh-brand) 45%, transparent), transparent 70%),
        var(--kh-night-2);
    color: rgba(255, 255, 255, .75);
}

.kh-migrate .kh-eyebrow { color: color-mix(in srgb, var(--kh-brand) 35%, #fff); }
:root .public-site .kh .kh-migrate h2 { margin: 12px 0 0; color: #fff !important; font-size: clamp(22px, 2.2vw, 28px) !important; font-weight: 600 !important; letter-spacing: -0.02em !important; }
.kh-migrate p { max-width: 600px; margin: 10px 0 0; font-size: 15px; line-height: 1.6; }
.kh-migrate__actions { display: flex; flex-direction: column; gap: 12px; }

/* ---------------------------------------------------------------- FAQ */
.kh-faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; gap: clamp(32px, 5vw, 72px); }
.kh-faq__intro { position: sticky; top: 120px; }
.kh-faq__intro > p { margin: 10px 0 0; color: var(--kh-muted); font-size: 15px; }
.kh-faq__contact { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.kh-faq__list { display: grid; gap: 10px; }

:root .public-site .kh .kh-faq__item {
    overflow: hidden;
    border: 1px solid var(--kh-line) !important;
    border-radius: 12px !important;
    background: #fff;
}

.kh-faq__item .accordion-header { margin: 0; }

.kh .kh-faq__q {
    padding: 16px 20px;
    background: #fff !important;
    color: var(--kh-ink) !important;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    box-shadow: none !important;
}

.kh .kh-faq__q:not(.collapsed) { color: var(--kh-brand-ink) !important; }
.kh-faq__a { padding: 0 20px 18px !important; color: var(--kh-muted); font-size: 14.5px; line-height: 1.65; }

/* ---------------------------------------------------------------- closing call to action */
.kh-final { padding-block: clamp(44px, 5vw, 72px); }

.kh-final__card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(36px, 5vw, 64px) clamp(20px, 4vw, 56px);
    border-radius: var(--kh-radius-lg);
    background: var(--kh-night);
    text-align: center;
    color: rgba(255, 255, 255, .75);
}

.kh-final__card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(60% 100% at 50% 0%, color-mix(in srgb, var(--kh-brand) 55%, transparent), transparent 70%);
}

:root .public-site .kh .kh-final__card h2 { max-width: 760px; margin: 0 auto; color: #fff !important; font-size: clamp(24px, 2.6vw, 34px) !important; font-weight: 600 !important; letter-spacing: -0.02em !important; line-height: 1.15 !important; text-wrap: balance; }
.kh-final__card p { margin: 12px auto 0; max-width: 520px; font-size: 15.5px; }
.kh-final__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1199.98px) {
    .kh-roles__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
    .kh-hero__grid, .kh-goals__panel, .kh-app__grid, .kh-faq__grid, .kh-migrate { grid-template-columns: minmax(0, 1fr); }
    .kh-hero__copy { text-align: center; }
    .kh-hero__lead { margin-inline: auto; }
    .kh-hero__actions, .kh-hero__ticks { justify-content: center; }
    .kh-hero__visual { max-width: 680px; margin-inline: auto; }
    .kh-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kh-stages__list, .kh-steps__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kh-stages__list li::after { content: none; }
    .kh-tools__grid { grid-template-columns: minmax(0, 1fr); }
    .kh-faq__intro { position: static; }
    .kh-migrate__actions { flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 767.98px) {
    .kh-roles__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kh-head--row { flex-direction: column; align-items: flex-start; }
    .kh-custom__card { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 575.98px) {
    .public-site .kisoma-public-navbar + .kh > .kh-hero:first-child { margin-top: -72px; }
    .kh-hero { padding-top: calc(72px + 40px); }
    .kh-hero__note { position: static; max-width: none; margin-top: 12px; box-shadow: none; }
    .kh-hero__note--bottom { display: flex; }
    .kh-hero__actions .kh-btn { width: 100%; }
    .kh-hero__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kh-hero__facts li { padding: 16px; }
    .kh-goals__tabs { width: 100%; justify-content: flex-start; }
    .kh-bento, .kh-stages__list, .kh-steps__list, .kh-roles__grid { grid-template-columns: minmax(0, 1fr); }
    .kh-bento__card--wide { grid-column: auto; }
    .kh-head > p, .kh-head--row > div > p { font-size: 15px; }
    .kh-migrate__actions .kh-btn, .kh-final__actions .kh-btn { width: 100%; }
    .kh-mock__row { grid-template-columns: 64px 1fr 40px; }
}

@media (prefers-reduced-motion: reduce) {
    .kh *, .kh *::before, .kh *::after { transition: none !important; }
}

/* Without an image the app block is one centred column. */
.kh-app__grid:not(:has(.kh-app__media)) { grid-template-columns: minmax(0, 1fr); max-width: 760px; text-align: center; }
.kh-app__grid:not(:has(.kh-app__media)) .kh-app__stores { justify-content: center; }

/* ================================================================ hosting.com match
 * Near-black hero with centred copy, lime accent (derived from the theme colour), white product
 * cards with a corner arrow and coloured pills, dark green panels, medium-weight headings. */
.kh {
    --kh-accent: color-mix(in oklab, var(--kh-brand) 20%, #d2ff45);
    --kh-accent-ink: #0a1616;
    --kh-night: color-mix(in srgb, var(--kh-brand) 9%, #040a07);
    --kh-night-2: color-mix(in srgb, var(--kh-brand) 22%, #06140d);
    --kh-soft: #f5f7f5;
    --kh-line: #e2e8e4;
}

/* Medium-weight headings everywhere on the page, as on hosting.com. */
:root .public-site .kh :is(h1, h2, h3) { font-weight: 500 !important; letter-spacing: -0.012em !important; }
:root .public-site .kh .kh-head h2, :root .public-site .kh .kh-app h2, :root .public-site .kh .kh-faq__intro h2 { font-size: clamp(26px, 2.8vw, 38px) !important; line-height: 1.15 !important; }
.kh-head > p { color: #3d4a48; }

/* Pills */
.kh-pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.kh-pill--lime { background: var(--kh-accent); color: var(--kh-accent-ink); }
.kh-pill--mint { background: #34e3b0; color: #04231a; }
.kh-pill--violet { background: #9c8cf0; color: #fff; }

/* Buttons: lime tiles, dark green primary on light backgrounds. */
.kh-btn__tile { background: var(--kh-accent) !important; color: var(--kh-accent-ink) !important; }
.kh-btn--brand { background: var(--kh-night-2); }
.kh-btn--brand:hover { background: var(--kh-night); }

/* ---------------------------------------------------------------- hero (centred) */
.kh-hero { overflow: visible; padding-bottom: 0; text-align: center; }
.kh-hero::before { opacity: .45; }
.kh-hero::after {
    background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 4px);
    background-size: auto;
    mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
}

.kh-hero__copy { display: flex; flex-direction: column; align-items: center; max-width: 860px; }
.kh-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    padding: 4px 14px 4px 4px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    color: #fff;
    font-size: 14px;
}

.public-site .kh-hero .kh-hero__eyebrow { display: none !important; }
.public-site .kh-hero h1.kh-hero__title { margin-top: 0; font-size: clamp(32px, 4vw, 52px) !important; line-height: 1.1 !important; }
.kh-hero__lead { margin-inline: auto; max-width: 620px; color: rgba(255, 255, 255, .82); font-size: 17px; }
.kh-hero__actions, .kh-hero__ticks { justify-content: center; }
.kh-hero__ticks li::before { background: var(--kh-accent); color: var(--kh-accent-ink); }

/* The screenshot sits on the hero and runs into the white section below. */
.kh-hero__visual { max-width: 1040px; margin: clamp(40px, 5vw, 64px) auto calc(-1 * clamp(90px, 16vw, 230px)); }
.kh-hero__frame { padding: 10px; border-color: rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .08); box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .55); }
.kh-hero__note-dot { background: var(--kh-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--kh-accent) 35%, transparent); }

/* ---------------------------------------------------------------- product cards */
.kh-products { padding: calc(clamp(90px, 16vw, 230px) + clamp(40px, 5vw, 64px)) 0 clamp(40px, 5vw, 64px); }
.kh-products__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.kh-product {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
    padding: 24px 24px 0;
    border: 1px solid var(--kh-line);
    border-radius: var(--kh-radius);
    background: #fff;
    color: var(--kh-ink);
    text-decoration: none !important;
    transition: border-color .18s ease;
}

.kh-product:hover { border-color: var(--kh-ink); }
.kh-product__go { position: absolute; top: 18px; right: 20px; color: var(--kh-ink); font-size: 20px; line-height: 1; transition: transform .18s ease; }
.kh-product:hover .kh-product__go { transform: translate(2px, -2px); }
:root .public-site .kh .kh-product__title { margin: 0 32px 0 0; color: var(--kh-ink) !important; font-size: 20px !important; line-height: 1.25 !important; }
.kh-product p { margin: 8px 0 16px; color: #4a5654; font-size: 15px; line-height: 1.55; }

.kh-product__art {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    height: 150px;
    margin: 22px -24px 0;
    border-top: 1px solid var(--kh-line);
}

.kh-product__art--lime { background: linear-gradient(135deg, #b9c7b5, #dfe8d6 60%, #c6d4c0); }
.kh-product__art--mint { background: linear-gradient(135deg, #a9cfc3, #d6efe7 55%, #b5d8cd); }
.kh-product__art--violet { background: linear-gradient(135deg, #c4c9b0, #e4e6d2 50%, #b9c7c1); }

.kh-product__widget {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    width: min(78%, 260px);
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--kh-night-2);
    color: var(--kh-accent);
    font-size: 18px;
    box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .6);
}

.kh-product__bars { display: flex; flex: 1; align-items: flex-end; gap: 5px; height: 40px; }
.kh-product__bars span { flex: 1; border-radius: 2px; background: rgba(255, 255, 255, .22); }
.kh-product__bars span:nth-child(1) { height: 45%; }
.kh-product__bars span:nth-child(2) { height: 60%; }
.kh-product__bars span:nth-child(3) { height: 40%; }
.kh-product__bars span:nth-child(4) { height: 75%; }
.kh-product__bars span:nth-child(5) { height: 65%; }
.kh-product__bars span:nth-child(6) { height: 100%; background: var(--kh-accent); }

.kh-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 32px; margin: 28px 0 0; padding: 0; color: #4a5654; font-size: 15px; list-style: none; }
.kh-facts strong { color: var(--kh-ink); font-weight: 600; }

:root .public-site .kh .kh-trusted { border-top: 1px solid var(--kh-line); }

/* ---------------------------------------------------------------- tabs, checks, mock */
.kh-goals__tab[aria-selected="true"] { background: var(--kh-night-2); }
.kh-goals__tab[aria-selected="true"] i { color: var(--kh-accent); }
.kh-checks li::before { background: var(--kh-accent); color: var(--kh-accent-ink); }
.kh-goals__mock { background: var(--kh-night-2); }
.kh-mock__track span { background: var(--kh-night-2); }
.kh-mock__row:first-of-type .kh-mock__track span { background: var(--kh-accent); }

/* ---------------------------------------------------------------- dark green panels */
.kh-dark { background: var(--kh-night-2); }
.kh-dark .kh-eyebrow, .kh-migrate .kh-eyebrow { color: var(--kh-accent); }
.kh-roles__card { background: rgba(255, 255, 255, .035); }
.kh-roles__icon { width: auto; height: auto; background: transparent; color: var(--kh-accent); font-size: 22px; }

.kh-stages__step, .kh-tool__icon { background: var(--kh-accent); color: var(--kh-accent-ink); }

.kh-migrate { background: radial-gradient(50% 90% at 100% 0%, color-mix(in srgb, var(--kh-brand) 30%, transparent), transparent 70%), var(--kh-night-2); }
.kh-final__card { background: var(--kh-night); }
.kh-final__card::before { background: radial-gradient(60% 100% at 50% 0%, color-mix(in srgb, var(--kh-brand) 35%, transparent), transparent 70%); }

/* Plain text on light backgrounds reads dark, like hosting.com. */
.kh-goals__copy > p, .kh-bento__copy p, .kh-stages__list p, .kh-steps__list p, .kh-tool p, .kh-faq__a, .kh-app__text { color: #4a5654; }

@media (max-width: 991.98px) {
    .kh-products__grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
}

@media (max-width: 575.98px) {
    .kh-hero__badge { font-size: 12.5px; }
    .kh-hero__visual { margin-bottom: -70px; }
    .kh-products { padding-top: calc(70px + 32px); }
    .kh-hero__note--bottom, .kh-hero__note--top { display: none; }
}

/* ---------------------------------------------------------------- getting started: register, import students, go live */
.kh-steps__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: none; }

.kh-steps__list .kh-step {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 24px;
    border: 1px solid var(--kh-line);
    border-top: 1px solid var(--kh-line);
    border-radius: var(--kh-radius);
    background: #fff;
    transition: border-color .18s ease;
}

.kh-steps__list .kh-step:hover { border-color: var(--kh-ink); }

/* Arrow between steps */
.kh-steps__list .kh-step:not(:last-child)::after {
    content: "\2192";
    position: absolute;
    top: 36px;
    right: -21px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 1px solid var(--kh-line);
    border-radius: 50%;
    background: #fff;
    color: var(--kh-ink);
    font-size: 13px;
}

.kh-step__top { display: flex; align-items: center; justify-content: space-between; }
.kh-steps__list .kh-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--kh-night-2);
    color: var(--kh-accent);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
}

.kh-steps__list .kh-step__num::before { content: none; }
.kh-pill--soft { background: var(--kh-soft); color: #3d4a48; border: 1px solid var(--kh-line); font-weight: 500; }

.kh-step__icon { margin-top: 22px; color: var(--kh-night-2); font-size: 24px; line-height: 1; }
:root .public-site .kh .kh-steps__list .kh-step h3 { margin: 14px 0 0; font-size: 20px; }
.kh-steps__list .kh-step p { margin: 8px 0 0; font-size: 14.5px; line-height: 1.6; }

.kh-checks--small { gap: 7px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--kh-line); }
.kh-checks--small li { padding-left: 26px; font-size: 14px; }
.kh-checks--small li::before { width: 17px; height: 17px; font-size: 11px; }

.kh-steps__cta { display: flex; justify-content: center; margin-top: 32px; }

@media (max-width: 991.98px) {
    .kh-steps__list { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
    .kh-steps__list .kh-step:not(:last-child)::after { content: "\2193"; top: auto; right: 50%; bottom: -21px; transform: translateX(50%); }
}

/* ---------------------------------------------------------------- trusted schools (v2): heading left, logos right, no boxes */
:root .public-site .kh .kh-trusted { padding-block: clamp(32px, 4vw, 48px) !important; border-top: 0; border-bottom: 1px solid var(--kh-line); background: #fff !important; }
.kh-trusted__inner { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 56px); }
:root .public-site .kh .kh-trusted__title { margin: 0; color: var(--kh-ink) !important; font-size: 20px !important; line-height: 1.3 !important; text-wrap: balance; }
.kh-trusted__title strong { font-weight: 600; }
.kh-trusted__sub { margin: 6px 0 0; color: #4a5654; font-size: 14px; line-height: 1.5; }

.kh-trusted__logos { min-width: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.kh-trusted .kisoma-school-marquee { padding: 0 !important; }
.kh-trusted .kisoma-school-marquee__group { gap: 40px !important; padding-right: 40px !important; }

.kh-trusted .kisoma-school-card {
    min-width: 0 !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    gap: 10px !important;
}

.kh-trusted .kisoma-school-card__logo-wrap { width: 36px !important; height: 36px !important; border-radius: 10px !important; background: var(--kh-soft) !important; filter: grayscale(1); opacity: .85; transition: filter .2s ease, opacity .2s ease; }
.kh-trusted .kisoma-school-card:hover .kisoma-school-card__logo-wrap { filter: none; opacity: 1; }
.kh-trusted .kisoma-school-card__fallback { color: #4a5654 !important; font-size: 13px !important; }
.kh-trusted .kisoma-school-card__name { color: #3d4a48 !important; font-size: 15px !important; font-weight: 600 !important; white-space: nowrap; }

/* ---------------------------------------------------------------- at a glance */
.kh-glance__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; gap: clamp(28px, 5vw, 64px); }
:root .public-site .kh .kh-glance__answer h2 { margin: 12px 0 0; color: var(--kh-ink) !important; font-size: clamp(26px, 2.8vw, 38px) !important; line-height: 1.15 !important; }
.kh-glance__answer p { margin: 16px 0 0; color: #26322f; font-size: 16.5px; line-height: 1.7; }

.kh-glance__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; overflow: hidden; border: 1px solid var(--kh-line); border-radius: var(--kh-radius); background: var(--kh-line); }
.kh-glance__facts > div { padding: 18px 20px; background: #fff; }
.kh-glance__facts dt { color: #5f6b7a; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.kh-glance__facts dd { margin: 6px 0 0; color: var(--kh-ink); font-size: 15px; font-weight: 500; line-height: 1.45; }

.kh-faq__more { justify-self: start; margin-top: 6px; }

@media (max-width: 991.98px) {
    .kh-trusted__inner, .kh-glance__grid { grid-template-columns: minmax(0, 1fr); }
    .kh-trusted__intro { text-align: center; }
}

@media (max-width: 575.98px) {
    .kh-glance__facts { grid-template-columns: minmax(0, 1fr); }
}

.kh-trusted .kisoma-school-card { flex: 0 0 auto !important; min-height: 0 !important; }
.kh-trusted .kisoma-school-marquee__group { padding-inline-end: 40px !important; }

/* ================================================================ one hero background everywhere
 * Every public hero uses the homepage hero background (near-black, theme glow, fine lines); only the
 * layout differs per page. Applies to the light heroes on pricing, tool pages, FAQ, blog, articles
 * and legal pages. Colour overrides use :root:root to win over each page's own stylesheet. */
:is(.kpg-hero, .kpp-hero, .kt-hero) {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--kh-night) !important;
    color: rgba(255, 255, 255, .78);
}

:is(.kpg-hero, .kpp-hero, .kt-hero)::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(60% 70% at 85% 20%, color-mix(in srgb, var(--kh-brand) 55%, transparent), transparent 70%),
        radial-gradient(45% 60% at 0% 100%, color-mix(in srgb, var(--kh-brand) 35%, transparent), transparent 70%);
    opacity: .45;
    pointer-events: none;
}

:is(.kpg-hero, .kpp-hero, .kt-hero)::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 4px);
    mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
    pointer-events: none;
}

/* Headings, eyebrows and copy */
:root:root .public-site .kh :is(.kpg-hero, .kpp-hero, .kt-hero) h1 { color: #fff !important; }
:root:root .public-site .kh :is(.kpg-hero, .kpp-hero, .kt-hero) .kh-eyebrow { color: var(--kh-accent) !important; }
:root:root .kh :is(.kpg-hero__lead, .kpp-hero__lead, .kt-hero__lead, .kar-lede) { color: rgba(255, 255, 255, .8) !important; }
:root:root .kh .kpp-hero .kh-hero__ticks li { color: #fff; }

/* Breadcrumbs */
:root:root .kh :is(.kpg-hero, .kpp-hero, .kt-hero) :is(.kpg-crumbs, .kpp-crumbs, .kt-crumbs) { color: rgba(255, 255, 255, .55); }
:root:root .kh :is(.kpg-hero, .kpp-hero, .kt-hero) :is(.kpg-crumbs, .kpp-crumbs, .kt-crumbs) a { color: rgba(255, 255, 255, .82) !important; }
:root:root .kh :is(.kpg-hero, .kpp-hero, .kt-hero) :is(.kpg-crumbs, .kpp-crumbs, .kt-crumbs) a:hover { color: #fff !important; }

/* Tool pages: fact pills and the quick-answer card */
:root:root .kh .kt-hero__facts li { border-color: rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .85); }
:root:root .kh .kt-hero__facts li:first-child { border-color: transparent; background: var(--kh-accent); color: var(--kh-accent-ink); }
:root:root .kh .kt-quick { border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); box-shadow: none; }

/* Pricing: the estimator stays a white card on the dark hero */
:root:root .kh .kpp-calc { border-color: transparent; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); }

/* Blog: category pills */
:root:root .kh .kbl-cats a { border-color: rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .85) !important; }
:root:root .kh .kbl-cats a:hover { border-color: rgba(255, 255, 255, .4); color: #fff !important; }
:root:root .kh .kbl-cats a.is-active { border-color: var(--kh-accent); background: var(--kh-accent); color: var(--kh-accent-ink) !important; }
:root:root .kh .kbl-cats small { background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .8); }
:root:root .kh .kbl-cats a.is-active small { background: rgba(10, 22, 22, .12); color: var(--kh-accent-ink); }
:root:root .kh .kbl-search input, :root:root .kh .kfq-search input { border-color: transparent; }

/* FAQ search status */
:root:root .kh .kfq-search__status { color: rgba(255, 255, 255, .7); }

/* Article header meta */
:root:root .kh .kar-meta { color: rgba(255, 255, 255, .68); }
:root:root .kh .kar-meta__author { color: #fff; }
:root:root .kh .kar-meta__initial { background: var(--kh-accent); color: var(--kh-accent-ink); }

/* Legal pages: icon and document switcher */
:root:root .kh .klg-hero__icon { background: var(--kh-accent); color: var(--kh-accent-ink); }
:root:root .kh .klg-switch a { border-color: rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); color: #fff !important; }
:root:root .kh .klg-switch a:hover { border-color: rgba(255, 255, 255, .4); }
:root:root .kh .klg-switch i { color: var(--kh-accent); }
:root:root .kh .klg-switch a.is-active { border-color: var(--kh-accent); background: var(--kh-accent); color: var(--kh-accent-ink) !important; }
:root:root .kh .klg-switch a.is-active i { color: var(--kh-accent-ink); }
