﻿/* === SINGLE-SCROLL LAYOUT: header + footer fixed, MAIN scrolls === */
html, body {
    height: 100%;
    margin: 0;
    overflow: hidden; /* page itself doesn't scroll */
}

.mk-shell {
    height: 100vh; /* fill viewport */
    display: flex;
    flex-direction: column;
    overflow: hidden; /* prevent double scrollbars */
}

.mk-appbar {
    flex: 0 0 auto; /* don't stretch */
    position: sticky; /* stays at top if content bounces */
    top: 0;
    z-index: 1000;
}

.mk-body {
    flex: 1 1 auto; /* take remaining height */
    min-height: 0; /* CRITICAL: allow child to shrink + scroll */
    overflow-y: auto; /* the only scrollable area */
    -webkit-overflow-scrolling: touch; /* smooth on iOS */
    overscroll-behavior: contain; /* nicer scroll chaining */
}

.mk-footer {
    flex: 0 0 auto; /* fixed at bottom of shell */
    /* optional: sticky footer shadow */
    /* box-shadow: 0 -4px 12px rgba(0,0,0,.05); */
}

/* If any child tries to clamp height, relax it inside the scrolling area */
.mk-body > * {
    min-height: 0;
}

/* Defensive: components that sometimes set fixed heights/overflow */
.e-accordion, .e-accordion .e-content,
.e-carousel, .e-carousel .e-content {
    max-height: none !important;
    overflow: visible;
}

/* Ensure accordions/carousels don't clamp their content */
.mk-accordion, .mk-acc-row {
    overflow: visible;
}

.mk-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column
}

.mk-appbar {
    position: sticky;
    top: 0;
    z-index: 1000
}

.mk-brand {
    display: flex;
    gap: 8px;
    align-items: center;
    font-weight: 600
}

    .mk-brand img {
        height: 24px
    }

.mk-nav a {
    margin: 0 10px;
    color: white;
    text-decoration: none
}


.mk-footer {
    border-top: 1px solid #e5e7eb;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap
}

    .mk-footer a {
        color: inherit;
        text-decoration: none;
        margin-left: 12px
    }

.mk-hero {
    padding: 70px 16px;
    background: linear-gradient(180deg,#eef2ff,white)
}

.mk-hero-inner {
    max-width: 1080px;
    margin: 0 auto;
    text-align: center
}

.mk-hero h1 {
    font-size: 40px;
    line-height: 1.1;
    margin: 0 0 10px
}

.mk-sub {
    font-size: 18px;
    color: #374151;
    margin: 0 auto 16px;
    max-width: 820px
}

.mk-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 8px
}

.mk-hero-tags {
    margin-top: 16px;
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap
}

.mk-pill {
    background: #eef2ff;
    border: 1px solid #dbeafe;
    border-radius: 9999px;
    padding: 4px 10px;
    font-size: .85rem;
    color: #1e3a8a
}

.mk-logos {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: center;
    opacity: .8;
    padding: 20px 0
}

.mk-grid {
    max-width: 1080px;
    margin: 24px auto;
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 12px;
    padding: 0 16px
}

@media (max-width:1024px) {
    .mk-grid {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }
}

@media (max-width:640px) {
    .mk-grid {
        grid-template-columns: 1fr
    }
}

.mk-carousel {
    max-width: 980px;
    margin: 24px auto;
    padding: 0 16px
}

.mk-cta2 {
    padding: 40px 16px;
    text-align: center
}

    .mk-cta2 h2 {
        margin-bottom: 10px
    }

.mk-head {
    max-width: 840px;
    margin: 34px auto 16px;
    padding: 0 16px;
    text-align: center
}

.mk-list {
    margin: 8px 0 0 16px
}

.mk-pricing {
    max-width: 1080px;
    margin: 12px auto;
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 16px;
    padding: 0 16px
}

@media (max-width:940px) {
    .mk-pricing {
        grid-template-columns: 1fr
    }
}

.mk-plan {
    border: 1px solid #eef2ff;
    border-radius: 12px
}

    .mk-plan.mk-featured {
        box-shadow: 0 8px 24px rgba(0,0,0,.08)
    }

.mk-price {
    font-size: 28px;
    font-weight: 800;
    margin: 8px 0
}

.mk-form {
    max-width: 760px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 0 16px
}

    .mk-form .span2 {
        grid-column: 1 / -1
    }

    .mk-form label {
        font-weight: 400;
        margin-bottom: 4px;
        display: block
    }

    /* Accordion layout helpers */
    .mk-accordion {
        max-width: 1080px;
        margin: 24px auto;
        padding: clamp(32px, 5vw, 64px) 16px;
    }

    .mk-acc-title {
        margin: 0 0 12px;
        font-size: clamp(20px, 2.6vw, 28px);
        line-height: 1.2;
    }

    .mk-acc-row {
        display: grid;
        grid-template-columns: 1.2fr 1fr;
        gap: clamp(16px, 3vw, 32px);
        align-items: center;
    }

    .mk-acc-text p {
        margin: 0 0 10px;
        color: #475569;
    }

    .mk-acc-text ul {
        margin: 8px 0 0;
        padding-left: 1.1rem;
    }

    .mk-acc-text li {
        margin: 6px 0;
        color: #475569;
    }

    .mk-acc-media {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 12px;
        border: 1px solid #e5e7eb;
        background: #f8fafc;
        box-shadow: 0 8px 24px rgba(0,0,0,.06);
    }

    .mk-acc-list {
        margin: 0;
        padding-left: 1.1rem;
    }

        .mk-acc-list li {
            margin: 6px 0;
            color: #475569;
        }

    @media (max-width: 992px) {
        .mk-acc-row {
            grid-template-columns: 1fr;
        }
    }

/* Screenshots section */
.mk-screens {
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(28px, 5vw, 64px) 16px;
}

    .mk-screens h2 {
        margin: 0 0 6px;
        font-size: clamp(22px, 3vw, 30px);
        line-height: 1.2;
    }

.mk-screens-sub {
    color: #475569;
    margin: 0 0 16px;
}

/* Carousel frame */
.mk-screens .e-carousel {
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
    background: #fff;
    overflow: hidden; /* clip rounded corners */
}

    /* Carousel images */
    .mk-screens .e-carousel img {
        display: block;
        width: 100%;
        height: auto;
    }

/* Thumbnails grid */
.mk-screens-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

    .mk-screens-grid img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 8px;
        border: 1px solid #e5e7eb;
        background: #f8fafc;
    }

@media (max-width: 1024px) {
    .mk-screens-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .mk-screens-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Ensure only MAIN scrolls (keeps AppBar/Footer fixed) */
html, body {
    height: 100%;
    margin: 0;
    overflow: hidden;
}

.mk-shell {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mk-appbar {
    flex: 0 0 auto;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.mk-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mk-footer {
    flex: 0 0 auto;
}

.mk-nav a.mk-active {
    text-decoration: underline;
    text-underline-offset: 6px;
    font-weight: 400;
}