:root {
    --mk-bg: #f4f8fc;
    --mk-surface: #ffffff;
    --mk-text: #152535;
    --mk-muted: #5a6d80;
    --mk-accent: #1a7ec8;
    --mk-accent-dark: #1365a3;
    --mk-accent-light: #6ec1e8;
    --mk-blue-50: #eef6fc;
    --mk-navy: #1c3d5a;
    --mk-border: #d4e3f0;
    --mk-radius: 10px;
    --mk-max: 1000px;
}

* { box-sizing: border-box; }

body.mk-body {
    margin: 0;
    font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
    background: var(--mk-bg);
    color: var(--mk-text);
    line-height: 1.55;
}

.mk-wrap {
    max-width: var(--mk-max);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Header */

.mk-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--mk-border);
}

.mk-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
}

.mk-logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--mk-accent-dark);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.mk-nav {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    flex-wrap: wrap;
}

.mk-nav a {
    color: var(--mk-muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
}

.mk-nav a:hover,
.mk-nav a.is-active { color: var(--mk-accent); }

.mk-home-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.mk-home-link {
    display: inline-flex;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--mk-border);
    background: #fff;
    color: var(--mk-accent-dark);
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}

.mk-home-link:hover {
    border-color: var(--mk-accent);
    background: var(--mk-blue-50);
}

/* Buttons */

.mk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.mk-btn-primary {
    background: var(--mk-accent);
    color: #fff;
}

.mk-btn-primary:hover { background: var(--mk-accent-dark); }

.mk-btn-outline {
    background: #fff;
    color: var(--mk-text);
    border: 1px solid var(--mk-border);
}

.mk-btn-outline:hover {
    border-color: var(--mk-accent);
    color: var(--mk-accent);
}

.mk-btn-block { width: 100%; }

/* Banner */

.mk-banner {
    position: relative;
    min-height: clamp(400px, 55vh, 520px);
    background-color: #2a3f52;
    background-size: cover;
    background-position: center 40%;
    display: flex;
    align-items: center;
}

.mk-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(20, 55, 90, 0.9) 0%,
        rgba(26, 94, 150, 0.7) 40%,
        rgba(26, 126, 200, 0.2) 70%,
        transparent 100%
    );
}

.mk-banner-inner {
    position: relative;
    z-index: 1;
    max-width: 32rem;
    padding: 3rem 1.25rem 2.75rem;
    color: #fff;
}

.mk-banner-brand {
    margin: 0 0 0.5rem;
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    color: #fff;
}

.mk-banner-title {
    margin: 0 0 0.85rem;
    font-size: clamp(1.25rem, 2.5vw, 1.7rem);
    font-weight: 600;
    line-height: 1.3;
    color: #e8f2f8;
}

.mk-banner-text {
    margin: 0 0 1.4rem;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.92);
    max-width: 28rem;
}

.mk-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.mk-btn-light {
    background: #fff;
    color: var(--mk-accent-dark);
}

.mk-btn-banner-outline {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.65rem 1.1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
}

.mk-btn-banner-outline:hover {
    background: rgba(255, 255, 255, 0.18);
}

/* Blocks & decorative figures (Clevergig-style) */

.mk-block {
    padding: 3.5rem 0;
    position: relative;
}

.mk-block-white { background: #fff; }
.mk-block-soft { background: var(--mk-blue-50); }

.mk-has-fig { overflow: hidden; }

.mk-fig {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.mk-fig-navy-tr {
    width: 220px;
    height: 220px;
    top: -70px;
    right: -50px;
    background: var(--mk-navy);
    border-radius: 50%;
}

.mk-fig-sky-bl {
    width: 130px;
    height: 130px;
    bottom: 20px;
    left: 4%;
    background: var(--mk-accent-light);
    clip-path: polygon(20% 0%, 100% 15%, 85% 100%, 0% 75%);
}

.mk-fig-accent-tl {
    width: 70px;
    height: 70px;
    top: 30px;
    left: 3%;
    background: var(--mk-accent);
    border-radius: 50%;
    opacity: 0.85;
}

.mk-fig-ring-br {
    width: 160px;
    height: 160px;
    bottom: -50px;
    right: 6%;
    border: 14px solid var(--mk-blue-50);
    border-radius: 50%;
    background: transparent;
    box-shadow: inset 0 0 0 3px var(--mk-accent-light);
}

.mk-fig-navy-bl {
    width: 100px;
    height: 100px;
    bottom: 40px;
    left: -30px;
    background: var(--mk-navy);
    border-radius: 30% 70% 55% 45%;
    opacity: 0.9;
}

.mk-block-center {
    position: relative;
    z-index: 1;
    text-align: center;
}

.mk-headline {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    margin: 0 0 2rem;
    letter-spacing: -0.03em;
    color: var(--mk-text);
}

.mk-headline-left { text-align: left; }

.mk-headline-sub {
    margin: 2rem 0 0;
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

/* Stats */

.mk-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    max-width: 820px;
    margin: 0 auto;
}

.mk-stat {
    padding: 1.25rem 1rem;
    background: linear-gradient(160deg, var(--mk-blue-50) 0%, #fff 100%);
    border-radius: 16px;
    border: 1px solid var(--mk-border);
}

.mk-stat-num {
    display: block;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--mk-accent-dark), var(--mk-accent-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.4rem;
    font-variant-numeric: tabular-nums;
}

.mk-stat-inline {
    display: inline;
    font-size: inherit;
}

.mk-stat span {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--mk-muted);
    line-height: 1.35;
}

/* Three columns */

.mk-lead {
    font-size: 1.05rem;
    color: var(--mk-muted);
    max-width: 40rem;
    margin: 0 0 2rem;
}

.mk-lead-left { text-align: left; }

.mk-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    position: relative;
    z-index: 1;
}

.mk-column {
    padding: 1.25rem 1.5rem;
    border-left: 1px solid var(--mk-border);
    border-radius: 0 12px 12px 0;
    transition: background 0.25s ease;
}

.mk-column:hover {
    background: var(--mk-blue-50);
}

.mk-column:first-child {
    padding-left: 0;
    border-left: none;
}

.mk-column:last-child { padding-right: 0; }

.mk-column h3 {
    margin: 0 0 0.65rem;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--mk-text);
}

.mk-column p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--mk-muted);
    line-height: 1.55;
}

/* Feature carousel */

.mk-block-features {
    background: linear-gradient(180deg, #fff 0%, var(--mk-blue-50) 100%);
}

.mk-feature-carousel {
    position: relative;
    z-index: 1;
}

.mk-step-track {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.15rem;
    margin-bottom: 1.5rem;
}

.mk-step-connector {
    color: var(--mk-accent-light);
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.mk-step-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.85rem 0.45rem 0.45rem;
    border: 1px solid var(--mk-border);
    border-radius: 999px;
    background: #fff;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.mk-step-pill:hover {
    border-color: var(--mk-accent-light);
    transform: translateY(-1px);
}

.mk-step-pill.is-active {
    border-color: var(--mk-accent);
    box-shadow: 0 4px 16px rgba(26, 126, 200, 0.18);
}

.mk-step-badge {
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 50%;
    background: var(--mk-blue-50);
    color: var(--mk-accent-dark);
    font-size: 0.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mk-step-pill.is-active .mk-step-badge {
    background: var(--mk-accent);
    color: #fff;
}

.mk-step-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--mk-muted);
    white-space: nowrap;
}

.mk-step-pill.is-active .mk-step-label {
    color: var(--mk-accent-dark);
}

.mk-feature-stage {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.75rem;
    align-items: stretch;
}

.mk-arrow {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    border: 1px solid var(--mk-border);
    background: #fff;
    color: var(--mk-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    align-self: center;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    box-shadow: 0 4px 14px rgba(26, 94, 150, 0.08);
}

.mk-arrow:hover {
    background: var(--mk-accent);
    border-color: var(--mk-accent);
    color: #fff;
    transform: scale(1.05);
}

.mk-feature-panel-wrap {
    position: relative;
    min-height: 11rem;
}

.mk-feature-panel {
    display: none;
    background: #fff;
    border: 1px solid var(--mk-border);
    border-radius: 18px;
    padding: 1.5rem 1.65rem;
    box-shadow: 0 10px 32px rgba(26, 94, 150, 0.1);
    border-left: 4px solid var(--mk-accent-light);
}

.mk-feature-panel.is-active {
    display: block;
    animation: mk-panel-in 0.45s ease;
}

.mk-feature-panel.is-entering {
    animation: mk-panel-in 0.45s ease;
}

@keyframes mk-panel-in {
    from {
        opacity: 0;
        transform: translateX(12px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mk-feature-panel-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.mk-feature-panel-num {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--mk-accent), var(--mk-accent-light));
    color: #fff;
    font-weight: 800;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mk-feature-panel h3 {
    margin: 0;
    font-size: 1.15rem;
    color: var(--mk-navy);
}

.mk-feature-panel p {
    margin: 0;
    font-size: 1rem;
    color: var(--mk-muted);
    line-height: 1.65;
    max-width: 38rem;
}

.mk-feature-dots {
    display: flex;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 1.1rem;
}

.mk-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: var(--mk-border);
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.mk-dot.is-active {
    background: var(--mk-accent);
    transform: scale(1.35);
}

/* Pricing */

.mk-pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.mk-price-card {
    background: #fff;
    border: 1px solid var(--mk-border);
    border-radius: var(--mk-radius);
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
}

.mk-price-card.is-highlight {
    border-color: var(--mk-accent);
}

.mk-price-card h3 {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
}

.mk-plan-desc {
    color: var(--mk-muted);
    font-size: 0.9rem;
    margin: 0 0 0.85rem;
}

.mk-price {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--mk-accent-dark);
    margin-bottom: 0.75rem;
}

.mk-price-custom { font-size: 1.35rem; }

.mk-price span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--mk-muted);
}

.mk-price-vat,
.mk-price-trial {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    color: var(--mk-muted);
}

.mk-price-trial {
    color: var(--mk-accent-dark);
    font-weight: 700;
}

.mk-checkout-form {
    margin-top: auto;
}

.mk-checkout-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--mk-text);
}

.mk-checkout-input {
    width: 100%;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--mk-border);
    border-radius: 8px;
    font: inherit;
    margin-bottom: 0.75rem;
}

.mk-checkout-note {
    margin: -0.35rem 0 0.85rem;
    font-size: 0.85rem;
    color: var(--mk-muted);
    line-height: 1.45;
}

.mk-discount-box {
    margin: 0 0 1.5rem;
    padding: 1rem 1.1rem;
    background: #fff;
    border: 1px solid var(--mk-border);
    border-radius: 12px;
}

.mk-discount-form {
    margin: 0;
}

.mk-discount-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.mk-discount-row .mk-checkout-input {
    flex: 1;
}

.mk-discount-active {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    color: #166534;
}

.mk-discount-remove {
    border: none;
    background: transparent;
    color: var(--mk-navy);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

.mk-price-original {
    margin: 0 0 0.15rem;
    color: var(--mk-muted);
    text-decoration: line-through;
    font-size: 0.95rem;
}

.mk-price-discount {
    margin: 0.35rem 0 0;
    color: #166534;
    font-size: 0.9rem;
    font-weight: 600;
}

.mk-price-note {
    margin: 0.35rem 0 0;
    color: var(--mk-muted);
    font-size: 0.85rem;
}

.mk-cancel-note {
    margin: 0 0 1.5rem;
    padding: 0.85rem 1rem;
    background: #fff;
    border: 1px solid var(--mk-border);
    border-left: 4px solid var(--mk-accent);
    border-radius: 8px;
    color: var(--mk-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.mk-checkout-page {
    max-width: 640px;
}

.mk-checkout-back {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--mk-accent-dark);
    font-weight: 600;
    text-decoration: none;
}

.mk-checkout-back:hover {
    text-decoration: underline;
}

.mk-stripe-embedded {
    margin-top: 1.5rem;
    min-height: 480px;
}

.mk-account-card {
    background: #fff;
    border: 1px solid var(--mk-border);
    border-radius: 12px;
    padding: 1.25rem 1.35rem;
    margin-bottom: 1rem;
}

.mk-account-card h2 {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
    color: var(--mk-accent-dark);
}

.mk-account-list {
    margin: 0;
    display: grid;
    gap: 0.65rem;
}

.mk-account-list div {
    display: grid;
    grid-template-columns: 7rem 1fr;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.mk-account-list dt {
    margin: 0;
    color: var(--mk-muted);
    font-weight: 600;
}

.mk-account-list dd {
    margin: 0;
    color: var(--mk-text);
}

.mk-account-note {
    margin: 0 0 1rem;
    color: var(--mk-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.mk-account-warning {
    margin: 0 0 1rem;
    color: #b45309;
    font-size: 0.92rem;
}

.mk-account-card-alert {
    border: 2px solid #f87171;
    background: #fef2f2;
}

.mk-account-card-alert .mk-account-warning {
    color: #991b1b;
}

.mk-account-success {
    margin: 0;
    padding: 0.75rem 0.85rem;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    color: #065f46;
    font-size: 0.92rem;
}

.mk-account-error {
    margin: 0 0 0.75rem;
    color: #dc2626;
    font-size: 0.9rem;
}

.mk-account-form {
    margin-top: 0.5rem;
}

.mk-account-check {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    margin-bottom: 1rem;
    font-size: 0.92rem;
    color: var(--mk-text);
    cursor: pointer;
}

.mk-account-check input {
    margin-top: 0.2rem;
}

.mk-account-link-btn {
    background: none;
    border: none;
    padding: 0;
    color: var(--mk-accent);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

.mk-account-link-btn:hover {
    color: var(--mk-accent-dark);
}

.mk-price-features {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    flex: 1;
    font-size: 0.9rem;
    color: var(--mk-muted);
}

.mk-price-features li {
    padding: 0.3rem 0 0.3rem 1.1rem;
    position: relative;
}

.mk-price-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--mk-accent);
    font-weight: 700;
}

.mk-activate-box {
    background: #fff;
    border: 1px solid var(--mk-border);
    border-radius: var(--mk-radius);
    padding: 1.25rem;
    margin-top: 1.25rem;
    position: relative;
    z-index: 1;
}

.mk-activate-box h3 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
}

.mk-activate-box p {
    margin: 0 0 0.85rem;
    color: var(--mk-muted);
    font-size: 0.9rem;
}

.mk-activate-form {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.mk-activate-form input {
    flex: 1;
    min-width: 200px;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--mk-border);
    border-radius: 8px;
    font: inherit;
}

/* Contact */

.mk-contact-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    flex-wrap: wrap;
}

.mk-contact-mail a {
    color: var(--mk-accent);
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
}

.mk-contact-phone,
.mk-muted-text {
    color: var(--mk-muted);
    font-size: 0.92rem;
    margin: 0.5rem 0 0;
}

/* Footer & alerts */

.mk-footer {
    border-top: 1px solid var(--mk-border);
    padding: 1.25rem 0 1.75rem;
    background: #fff;
    font-size: 0.85rem;
    color: var(--mk-muted);
}

.mk-footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.mk-footer a {
    color: var(--mk-muted);
    text-decoration: none;
}

.mk-footer a:hover { color: var(--mk-accent); }

.mk-alert {
    background: #fde8e8;
    border: 1px solid #f5c2c2;
    color: #9b1c1c;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.92rem;
}

.mk-alert-ok {
    background: #e8f6ee;
    border-color: #b8e0c8;
    color: #166534;
}

@media (max-width: 800px) {
    .mk-stats,
    .mk-columns,
    .mk-pricing-grid {
        grid-template-columns: 1fr;
    }

    .mk-column {
        padding: 0 0 1.25rem;
        border-left: none;
        border-bottom: 1px solid var(--mk-border);
    }

    .mk-column:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .mk-fig-navy-tr,
    .mk-fig-ring-br { display: none; }

    .mk-nav .mk-nav-hide-mobile { display: none; }

    .mk-step-track {
        gap: 0.5rem;
    }

    .mk-step-connector { display: none; }

    .mk-step-label { display: none; }

    .mk-step-pill {
        padding: 0.45rem;
    }

    .mk-feature-stage {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .mk-arrow {
        display: none;
    }

    .mk-feature-panel-wrap {
        min-height: auto;
    }
}
