.kisoma-hero {
    --hero-accent: color-mix(in srgb, var(--primary-color, #56cc99) 78%, #fff);
    --hero-deep: color-mix(in srgb, var(--primary-color, #56cc99) 18%, #031c14);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(4.5rem, 8vw, 7.5rem) 0 clamp(4rem, 8vw, 7rem);
    background: radial-gradient(circle at 50% 72%, rgba(86, 204, 153, .2), transparent 36%), linear-gradient(145deg, #031a12, var(--hero-deep) 52%, #073524);
}

.kisoma-hero::before {
    position: absolute;
    z-index: -2;
    inset: 0;
    background-image: radial-gradient(circle, rgba(213, 255, 235, .2) 1px, transparent 1.4px);
    background-size: 24px 24px;
    content: '';
    mask-image: linear-gradient(to bottom, #000, transparent 90%);
    pointer-events: none;
}

.kisoma-hero::after {
    position: absolute;
    z-index: -1;
    right: 50%;
    bottom: -34rem;
    width: min(92vw, 88rem);
    height: 44rem;
    border-radius: 50%;
    background: rgba(73, 201, 143, .12);
    content: '';
    filter: blur(70px);
    pointer-events: none;
    transform: translateX(50%);
}

.kisoma-hero__content {
    display: flex;
    max-width: 960px;
    margin: 0 auto;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.kisoma-hero__eyebrow {
    display: inline-flex;
    max-width: 100%;
    min-height: 34px;
    padding: .45rem 1rem;
    align-items: center;
    border: 1px solid rgba(190, 255, 222, .24);
    border-radius: 999px;
    background: rgba(187, 255, 221, .09);
    color: #c8f8df;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.25;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.kisoma-hero__title {
    /* The full width of .kisoma-hero__content: at 900px the one-line desktop heading fitted with
       half a pixel to spare, so it wrapped to two lines in the fallback font and jumped back to
       one when Host Grotesk loaded (a 44px layout shift of everything below it). */
    max-width: 960px;
    margin: 1.25rem 0 0;
    color: #fff;
    font-family: var(--font-heading);
    font-size: clamp(42px, 4.8vw, 60px);
    font-weight: 700;
    letter-spacing: -.05em;
    line-height: 1.02;
    text-wrap: balance;
}

.kisoma-hero__description {
    max-width: 720px;
    margin: 1.35rem auto 0;
    color: rgba(232, 249, 240, .78);
    font-family: var(--font-body);
    font-size: clamp(16px, 1.5vw, 18px);
    line-height: 1.7;
    text-wrap: pretty;
}

.kisoma-hero__actions {
    display: flex;
    margin-top: 2rem;
    align-items: center;
    justify-content: center;
    gap: .85rem;
    flex-wrap: wrap;
}

/* Same primary-button family as everywhere else on the public site (see
   kisoma-public-buttons.css) -- this is the "inverse" variant (white
   surface on the hero's dark green) sharing height/radius/typography,
   just without the old heavy shadow and hover lift. */
.kisoma-hero__btn {
    display: inline-flex;
    min-width: 184px;
    min-height: var(--kisoma-btn-height, 48px);
    padding: 0 var(--kisoma-btn-padding-x, 24px);
    align-items: center;
    justify-content: center;
    gap: var(--kisoma-btn-icon-gap, 8px);
    border: 1px solid transparent;
    border-radius: var(--kisoma-btn-radius, 10px);
    font: inherit;
    font-size: var(--kisoma-btn-font-size, 15px);
    font-weight: var(--kisoma-btn-font-weight, 600);
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.kisoma-hero__btn:hover { text-decoration: none; }
.kisoma-hero__btn:focus-visible { outline: 3px solid rgba(202, 255, 228, .7); outline-offset: 3px; }
.kisoma-hero__btn--primary { border-color: #fff; background: #fff; box-shadow: none; color: var(--kisoma-btn-ink, #075033) !important; }
.kisoma-hero__btn--primary:hover { border-color: var(--kisoma-btn-surface-hover, #dff8eb); background: var(--kisoma-btn-surface-hover, #dff8eb); color: var(--kisoma-btn-ink-hover, #053c27) !important; }
.kisoma-hero__btn--secondary { border-color: rgba(222, 255, 238, .32); background: rgba(255, 255, 255, .08); color: #fff !important; backdrop-filter: blur(10px); }
.kisoma-hero__btn--secondary:hover { border-color: rgba(222, 255, 238, .58); background: rgba(255, 255, 255, .15); color: #fff !important; }

.kisoma-hero__visual {
    position: relative;
    max-width: 1180px;
    margin: clamp(3rem, 5vw, 4.5rem) auto 0;
    padding: 0 clamp(1.5rem, 5vw, 4.5rem);
}

.kisoma-hero__visual-frame {
    overflow: hidden;
    padding: clamp(.45rem, .8vw, .7rem);
    border: 1px solid rgba(226, 255, 240, .25);
    border-radius: clamp(20px, 2.5vw, 30px);
    background: rgba(242, 255, 248, .12);
    box-shadow: 0 38px 90px rgba(0, 12, 8, .45), inset 0 1px rgba(255, 255, 255, .2);
    backdrop-filter: blur(14px);
}

.kisoma-hero__visual-frame::before {
    display: block;
    height: 28px;
    border-radius: 18px 18px 6px 6px;
    background: radial-gradient(circle at 14px 50%, #ff7b78 3px, transparent 3.5px), radial-gradient(circle at 28px 50%, #f5ca65 3px, transparent 3.5px), radial-gradient(circle at 42px 50%, #72d6a0 3px, transparent 3.5px), rgba(248, 255, 251, .92);
    content: '';
}

.kisoma-hero__image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 720px;
    border-radius: 6px 6px clamp(14px, 2vw, 22px) clamp(14px, 2vw, 22px);
    background: #fff;
    object-fit: contain;
}

.kisoma-hero__floating-note,
.kisoma-hero__floating-card {
    position: absolute;
    z-index: 2;
    border: 1px solid rgba(215, 255, 235, .35);
    background: rgba(246, 255, 250, .94);
    box-shadow: 0 18px 45px rgba(0, 20, 12, .28);
    backdrop-filter: blur(14px);
}

.kisoma-hero__floating-note {
    top: 16%;
    right: 0;
    display: inline-flex;
    max-width: 260px;
    padding: .75rem 1rem;
    align-items: center;
    gap: .65rem;
    border-radius: 999px;
    color: #173f2e;
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.35;
}

.kisoma-hero__floating-note-dot { flex: 0 0 9px; width: 9px; height: 9px; border-radius: 50%; background: #16a66a; box-shadow: 0 0 0 5px rgba(22, 166, 106, .14); }

.kisoma-hero__floating-card {
    bottom: 10%;
    left: 0;
    display: flex;
    max-width: 280px;
    min-height: 68px;
    padding: .7rem .9rem;
    align-items: center;
    gap: .75rem;
    border-radius: 17px;
}

.kisoma-hero__floating-card-image { display: grid; flex: 0 0 46px; width: 46px; height: 46px; place-items: center; overflow: hidden; border-radius: 13px; background: #e5f7ed; }
.kisoma-hero__floating-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.kisoma-hero__floating-card-text { color: #173f2e; font-size: .84rem; font-weight: 700; line-height: 1.4; }

@media (max-width: 991.98px) {
    .kisoma-hero { padding-top: 4.5rem; }
    .kisoma-hero__visual { padding: 0 2rem; }
    .kisoma-hero__floating-note { right: .5rem; }
    .kisoma-hero__floating-card { left: .5rem; }
}

@media (max-width: 767.98px) {
    .kisoma-hero { padding: 3.75rem 0 3.5rem; }
    .kisoma-hero::before { background-size: 20px 20px; }
    .kisoma-hero__title { margin-top: 1rem; font-size: clamp(36px, 10vw, 44px); line-height: 1.06; }
    .kisoma-hero__description { margin-top: 1.1rem; line-height: 1.6; }
    .kisoma-hero__actions { width: 100%; margin-top: 1.6rem; flex-direction: column; }
    .kisoma-hero__btn { width: min(100%, 340px); }
    .kisoma-hero__visual { display: flex; margin-top: 2.5rem; padding: 0; flex-direction: column; align-items: center; }
    .kisoma-hero__visual-frame { width: 100%; }
    .kisoma-hero__floating-note, .kisoma-hero__floating-card { position: static; width: min(100%, 340px); max-width: 340px; margin-top: .8rem; }
    .kisoma-hero__floating-note { justify-content: center; border-radius: 15px; }
}

@media (max-width: 399.98px) {
    .kisoma-hero__eyebrow { font-size: .68rem; text-align: center; }
    .kisoma-hero__title { font-size: 2.15rem; }
    .kisoma-hero__visual-frame::before { height: 22px; }
}

@media (prefers-reduced-motion: reduce) {
    .kisoma-hero__btn { transition: none; }
}

/*
 * Rendering cost: everything below the hero starts beneath the first viewport on every device
 * size, so the browser may skip its style, layout and paint until it approaches the viewport.
 * contain-intrinsic-size reserves roughly the real height ("auto" remembers the measured size
 * once rendered), so the scrollbar and in-page anchors stay stable.
 */
.kisoma-features,
.kisoma-schools-showcase,
.kisoma-feature-showcase,
.kisoma-home-onboarding,
.kisoma-pricing-section,
.kisoma-custom-package,
.kisoma-faq,
.kisoma-site-footer {
    content-visibility: auto;
}
.kisoma-features { contain-intrinsic-size: auto 1430px; }
.kisoma-schools-showcase { contain-intrinsic-size: auto 440px; }
.kisoma-feature-showcase { contain-intrinsic-size: auto 890px; }
.kisoma-home-onboarding { contain-intrinsic-size: auto 455px; }
.kisoma-pricing-section { contain-intrinsic-size: auto 1125px; }
.kisoma-custom-package { contain-intrinsic-size: auto 365px; }
.kisoma-faq { contain-intrinsic-size: auto 460px; }
.kisoma-site-footer { contain-intrinsic-size: auto 375px; }

@media (max-width: 767.98px) {
    .kisoma-features { contain-intrinsic-size: auto 2450px; }
    .kisoma-schools-showcase { contain-intrinsic-size: auto 390px; }
    .kisoma-feature-showcase { contain-intrinsic-size: auto 1460px; }
    .kisoma-home-onboarding { contain-intrinsic-size: auto 625px; }
    .kisoma-pricing-section { contain-intrinsic-size: auto 2500px; }
    .kisoma-custom-package { contain-intrinsic-size: auto 360px; }
    .kisoma-faq { contain-intrinsic-size: auto 435px; }
    .kisoma-site-footer { contain-intrinsic-size: auto 965px; }
}
