﻿/* === 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: 600;
        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: 600;
}

/* === VALUE BAND (homepage + SEO landing pages) === */
.mk-band {
    background: #0b1b3a;
    color: #e6ecff;
    padding: 14px 0;
}

.mk-band-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

@media (max-width: 1024px) {
    .mk-band-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .mk-band-grid {
        grid-template-columns: 1fr;
    }
}

.mk-band-item {
    font-size: .95rem;
    line-height: 1.4;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    padding: 10px 12px;
}

    .mk-band-item a {
        color: #cde1ff;
        text-decoration: none;
    }

        .mk-band-item a:hover {
            text-decoration: underline;
        }

/* === CAROUSEL (class used in Index.razor) === */
.mkCarousel {
    max-width: 1200px;
    margin: 0 auto 1.5rem;
}

    .mkCarousel .e-carousel-items,
    .mkCarousel .e-carousel-navigators {
        height: auto;
    }

    .mkCarousel .img-container {
        margin: 0;
        aspect-ratio: 16 / 9;
        overflow: hidden;
        background: #fff;
    }

        .mkCarousel .img-container img {
            object-fit: contain;
            background: #fff;
        }

    .mkCarousel .e-carousel-navigators .e-previous svg {
        transform: rotate(180deg);
    }

    .mkCarousel .e-carousel-navigators .nav-btn {
        padding: 0;
    }

        .mkCarousel .e-carousel-navigators .nav-btn:active,
        .mkCarousel .e-carousel-navigators .nav-btn:focus,
        .mkCarousel .e-carousel-navigators .nav-btn:hover {
            background: transparent !important;
            color: inherit;
        }

    .mkCarousel .e-carousel-navigators svg {
        fill: none;
        stroke: currentColor;
        stroke-linecap: square;
        stroke-width: 8px;
        height: 2rem;
        width: 2rem;
    }

    .mkCarousel .e-carousel-indicators .e-indicator-bars .e-indicator-bar .indicator {
        background-color: #ECECEC;
        border-radius: .25rem;
        cursor: pointer;
        height: 3.5rem;
        margin: .5rem;
        width: 5rem;
    }

    .mkCarousel .e-carousel-indicators .e-indicator-bars .e-indicator-bar.e-active .indicator {
        background-color: #3C78EF;
    }

    /* === FOOTER LINKS WRAPPER (used in Layout) === */
    .mk-footer-links {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
        align-items: center;
    }

    /* Center headings + intro copy on landing pages */
    .mk-hero-inner {
        text-align: center;
    }

    .mk-cta2 {
        text-align: center;
    }

    .mk-how {
        text-align: center;
        padding-top: 30px;
        padding-bottom: 80px;
    }

    /* Make the features grid sit centered (not hugging the left) */
    .mk-how-grid {
        padding-top: 30px;
        justify-content: center; /* center the grid as a whole */
    }

    /* Keep per-card text readable while still centered as a block */
    .mk-how-step {
        max-width: 720px; /* prevents super wide lines */
        text-align: left; /* body text inside the card stays left */
        margin: 0 auto; /* center the card within the grid cell */
    }

    /* === Assets page: Policy grid === */
    .mk-policy-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        margin: 10px 0 12px;
    }

    @media (max-width: 768px) {
        .mk-policy-grid {
            grid-template-columns: 1fr;
        }
    }

    .mk-policy {
        border: 1px solid #e5e7eb;
        border-radius: 10px;
        padding: 12px;
        background: #fff;
    }

        .mk-policy h5 {
            margin: 0 0 4px;
        }

    /* Tight bullet helper used on the page */
    .mk-tight {
        margin: 8px 0 0;
        padding-left: 1.1rem;
    }

        .mk-tight li {
            margin: 4px 0;
        }

    /* === Assets page: Cost/Replacement math section === */
    .mk-math {
        max-width: 1200px;
        margin: 0 auto;
        padding: clamp(28px, 5vw, 56px) 16px;
    }

    .mk-math-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }

    @media (max-width: 1024px) {
        .mk-math-grid {
            grid-template-columns: 1fr;
        }
    }

    .mk-math-card {
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        padding: 14px;
        background: #fff;
        box-shadow: 0 6px 18px rgba(0,0,0,.05);
    }

        .mk-math-card h5 {
            margin: 0 0 6px;
        }

    .mk-formula {
        font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
        background: #f8fafc;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        padding: 8px 10px;
    }

    .mk-weak {
        opacity: .7;
    }

    .mk-note {
        color: #475569;
        margin: 8px 0 0;
    }
