/* ═══════════════════════════════════════════════════════════
   Home v2 — Scrollytelling, Flow, Pillars (Premium RTL)
   ═══════════════════════════════════════════════════════════ */

:root {
    --h-violet: #7c3aed;
    --h-violet-soft: rgba(124, 58, 237, 0.12);
    --h-navy: #0f172a;
    --h-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --h-ease-slow: cubic-bezier(0.16, 1, 0.3, 1);
    --h-story-dur: 1.05s;
    --h-container: min(1200px, calc(100vw - 2rem));
    --h-nav-offset: 4.5rem;
}

.mk-home-body {
    overflow-x: clip;
}

.mk-home-body .container {
    max-width: var(--h-container);
}

/* ─── Stats upgrade ─── */
.h-stats {
    padding: clamp(1.25rem, 3vw, 2rem) 0;
}

.h-stats__panel {
    position: relative;
    padding: clamp(1rem, 2.5vw, 1.35rem) clamp(1rem, 3vw, 1.5rem);
    border-radius: 18px;
    border: 1px solid rgba(124, 58, 237, 0.14);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.88));
    box-shadow: 0 24px 60px -40px rgba(15, 23, 42, 0.35);
    overflow: hidden;
}

html.mk-public[data-theme="dark"] .h-stats__panel {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.88), rgba(30, 27, 75, 0.55));
    border-color: rgba(167, 139, 250, 0.18);
}

.h-stats__panel::before {
    content: '';
    position: absolute;
    inset-inline-end: -20%;
    top: -40%;
    width: 45%;
    height: 140%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.08), transparent 70%);
    pointer-events: none;
}

.h-stats__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.h-stats__live {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--h-violet);
}

.h-stats__live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5);
    animation: h-live-pulse 2s ease infinite;
}

@keyframes h-live-pulse {
    70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.h-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
}

.h-stats__item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    background: rgba(148, 163, 184, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.1);
    min-width: 0;
}

.h-stats__item-icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border-radius: 10px;
    font-size: 0.82rem;
    color: var(--h-violet);
    background: var(--h-violet-soft);
}

.h-stats__val {
    display: block;
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--mk-text, #0f172a);
}

.h-stats__lbl {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
}

@media (max-width: 768px) {
    .h-stats__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 380px) {
    .h-stats__grid {
        grid-template-columns: 1fr;
    }
}

/* ─── Story hook ─── */
.h-story {
    position: relative;
    padding-block: clamp(2rem, 5vw, 3rem) 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(124, 58, 237, 0.06), transparent 70%);
}

.h-story__hook {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto clamp(1.75rem, 4vw, 2.5rem);
    padding-inline: 0.5rem;
}

.h-story__kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.65rem;
    padding: 0.3rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--h-violet);
    background: var(--h-violet-soft);
    border-radius: 999px;
}

.h-story__title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.35rem, 4vw, 2rem);
    font-weight: 800;
    line-height: 1.25;
}

.h-story__sub {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.65;
    color: #64748b;
}

html.mk-public[data-theme="dark"] .h-story__sub {
    color: #94a3b8;
}

/* ─── Pinned rail (desktop) ─── */
.h-story__mobile {
    display: none;
}

.h-story__rail {
    position: relative;
}

.h-story__pin {
    position: relative;
    z-index: 2;
}

.h-story__sentinels {
    display: none;
}

.h-story__progress {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row-reverse;
    gap: 0;
    margin-bottom: clamp(1rem, 2.5vw, 1.75rem);
    padding: 0;
}

.h-story__progress-step {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 1px solid rgba(124, 58, 237, 0.22);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 800;
    cursor: pointer;
    transition:
        background 0.65s var(--h-ease-slow),
        color 0.65s var(--h-ease-slow),
        border-color 0.65s var(--h-ease-slow),
        transform 0.65s var(--h-ease-slow),
        box-shadow 0.65s var(--h-ease-slow);
}

html.mk-public[data-theme="dark"] .h-story__progress-step {
    background: rgba(15, 23, 42, 0.75);
}

.h-story__progress-step.is-active {
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    border-color: transparent;
    transform: scale(1.06);
    box-shadow: 0 8px 24px -8px rgba(124, 58, 237, 0.55);
}

.h-story__progress-line {
    width: clamp(1.25rem, 5vw, 3rem);
    height: 2px;
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.08), rgba(124, 58, 237, 0.22));
}

.h-story__pin > .container {
    width: 100%;
    max-width: var(--h-container);
    margin-inline: auto;
}

.h-story__stage {
    position: relative;
    width: 100%;
    min-height: clamp(26rem, 58vh, 36rem);
}

.h-story__scene {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: center;
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity var(--h-story-dur) var(--h-ease-slow),
        transform var(--h-story-dur) var(--h-ease-slow);
    pointer-events: none;
    position: absolute;
    inset: 0;
    width: 100%;
}

.h-story__scene.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0.06s;
}

.h-story__copy,
.h-story__visual-fix {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity calc(var(--h-story-dur) * 0.9) var(--h-ease-slow),
        transform calc(var(--h-story-dur) * 0.9) var(--h-ease-slow);
}

.h-story__visual-fix {
    transform: translateY(26px) scale(0.975);
}

.h-story__scene.is-active .h-story__copy {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.14s;
}

.h-story__scene.is-active .h-story__visual-fix {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 0.32s;
}

.h-story__scene:not(.is-active) .h-story__copy,
.h-story__scene:not(.is-active) .h-story__visual-fix {
    transition-delay: 0s;
}

.h-story__step {
    display: inline-block;
    margin-bottom: 0.35rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--h-violet);
}

.h-story__copy {
    text-align: right;
    max-width: 34rem;
}

.h-story__scene-title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.35rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.28;
    text-wrap: balance;
}

.h-story__pain {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    line-height: 1.65;
    color: #64748b;
}

.h-story__solution-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.35rem;
    padding: 0.25rem 0.6rem;
    font-size: 0.68rem;
    font-weight: 700;
    color: #059669;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 999px;
}

.h-story__solution p {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.55;
}

.h-story__visual {
    position: relative;
    display: block;
    margin: 0;
    width: 100%;
    min-height: 0;
}

.h-story__visual-pain {
    display: none;
}

.h-story__visual-fix {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: #0f172a;
    box-shadow: 0 20px 50px -28px rgba(15, 23, 42, 0.45);
    aspect-ratio: 16 / 10;
    width: 100%;
}

.h-story__visual-pain {
    aspect-ratio: 4 / 3;
    width: 100%;
}

.h-story__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform calc(var(--h-story-dur) * 1.1) var(--h-ease-slow), filter 0.8s var(--h-ease-slow);
}

.h-story__scene.is-active .h-story__visual-fix .h-story__img {
    transform: scale(1);
}

.h-story__visual-fix .h-story__img {
    transform: scale(1.03);
}

.h-story__visual-pain .h-story__img {
    filter: saturate(0.75) brightness(0.92);
}

.h-story__visual-tag {
    position: absolute;
    inset-inline-start: 0.5rem;
    top: 0.5rem;
    padding: 0.2rem 0.5rem;
    font-size: 0.62rem;
    font-weight: 700;
    border-radius: 6px;
}

.h-story__visual-tag--pain {
    color: #b91c1c;
    background: rgba(254, 226, 226, 0.92);
}

.h-story__visual-tag--fix {
    color: #047857;
    background: rgba(209, 250, 229, 0.92);
}

.h-story__chrome {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.5rem;
    background: rgba(15, 23, 42, 0.92);
    font-size: 0.58rem;
}

.h-story__chrome span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.35);
}

.h-story__chrome em {
    margin-inline-start: auto;
    font-style: normal;
    color: #94a3b8;
}

.h-story__bar {
    height: 3px;
    margin-top: 1.25rem;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.1);
    overflow: hidden;
}

.h-story__bar-fill {
    display: block;
    height: 100%;
    width: 20%;
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
    border-radius: inherit;
    transition: width 0.85s var(--h-ease-slow);
}

@media (min-width: 992px) {
    .h-story__rail {
        height: calc(var(--scene-count) * 100vh);
    }

    .h-story__pin {
        position: sticky;
        top: 0;
        height: 100vh;
        height: 100dvh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-block: 1.25rem;
    }

    .h-story__pin > .container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        flex: 1;
        min-height: 0;
    }

    .h-story__sentinels {
        display: block;
        position: absolute;
        inset: 0;
        width: 100%;
        pointer-events: none;
    }

    .h-story__sentinel {
        height: 100vh;
        height: 100dvh;
    }

    .h-story__stage {
        flex: 1;
        min-height: min(68vh, 640px);
        display: flex;
        align-items: center;
    }

    .h-story__scene {
        grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
        gap: clamp(2rem, 4vw, 3.5rem);
        align-items: center;
        position: absolute;
        inset: auto 0;
        top: 50%;
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        margin-inline: auto;
        padding-inline: 0;
        transform: translateY(calc(-50% + 18px));
    }

    .h-story__scene.is-active {
        transform: translateY(-50%);
    }

    .h-story__copy {
        max-width: none;
        padding-inline-end: 0.5rem;
    }

    .h-story__scene-title {
        font-size: clamp(1.65rem, 2.4vw, 2.15rem);
    }

    .h-story__visual-fix {
        min-height: min(42vh, 420px);
        border-radius: 18px;
        box-shadow:
            0 28px 60px -24px rgba(15, 23, 42, 0.5),
            0 0 0 1px rgba(167, 139, 250, 0.12);
    }

    .h-climax__layout {
        gap: clamp(1.5rem, 3vw, 2.5rem);
    }

    .h-climax__product {
        max-width: min(920px, 100%);
    }

    .h-compare__board {
        max-width: 52rem;
    }

    .h-flow {
        padding-block: clamp(3rem, 6vw, 5rem);
    }

    .h-flow__stage {
        padding-inline: clamp(1.5rem, 4vw, 2.5rem);
    }

    .h-flow__nodes {
        justify-content: space-between;
        overflow-x: visible;
        flex-wrap: nowrap;
        gap: 0;
    }

    .h-flow__node {
        flex: 1;
        min-width: 0;
    }

    .h-flow__node-btn {
        width: 100%;
    }

    .h-pillars__showcase {
        padding: clamp(1.25rem, 2.5vw, 1.65rem);
    }

    .h-pillar-panel {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        gap: clamp(1.25rem, 2.5vw, 2rem);
    }

    .h-pricing .mk-tier-grid {
        max-width: 56rem;
        margin-inline: auto;
    }

    .h-final-cta {
        padding-block: clamp(4rem, 9vw, 6rem);
    }

    .h-final-cta__inner {
        max-width: 42rem;
    }

    .h-final-cta__title {
        font-size: clamp(1.65rem, 3.2vw, 2.35rem);
    }
}

@media (max-width: 991px) {
    .h-stats {
        padding-inline: clamp(0.85rem, 4vw, 1.25rem);
    }

    .h-stats__panel {
        padding: 1rem 1rem 1.1rem;
    }

    .h-story__rail {
        display: none;
    }

    .h-story__mobile {
        display: flex;
        flex-direction: column;
        gap: clamp(1rem, 3vw, 1.35rem);
        padding: 0 clamp(1rem, 4vw, 1.25rem) clamp(2rem, 5vw, 2.75rem);
    }

    .h-story__mobile-card {
        display: flex;
        flex-direction: column;
        min-height: min(85dvh, 760px);
        padding: clamp(1.15rem, 4vw, 1.45rem);
        border-radius: 18px;
        border: 1px solid rgba(124, 58, 237, 0.14);
        background: linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.88));
        box-shadow: 0 16px 40px -28px rgba(15, 23, 42, 0.25);
        scroll-margin-top: var(--h-nav-offset);
        opacity: 0;
        transform: translateY(32px);
        transition:
            opacity var(--h-story-dur) var(--h-ease-slow),
            transform var(--h-story-dur) var(--h-ease-slow);
    }

    .h-story__mobile-card.is-inview {
        opacity: 1;
        transform: translateY(0);
    }

    .h-story__mobile-title,
    .h-story__mobile-card .h-story__pain,
    .h-story__mobile-fix {
        opacity: 0;
        transform: translateY(16px);
        transition:
            opacity calc(var(--h-story-dur) * 0.85) var(--h-ease-slow),
            transform calc(var(--h-story-dur) * 0.85) var(--h-ease-slow);
    }

    .h-story__mobile-fig {
        flex: 1;
        margin: 0.85rem 0;
        border-radius: 14px;
        overflow: hidden;
        aspect-ratio: 16 / 10;
        min-height: 180px;
        max-height: 42dvh;
        border: 1px solid rgba(148, 163, 184, 0.14);
        box-shadow: 0 12px 32px -20px rgba(15, 23, 42, 0.35);
        opacity: 0;
        transform: translateY(20px) scale(0.98);
        transition:
            opacity calc(var(--h-story-dur) * 0.95) var(--h-ease-slow),
            transform calc(var(--h-story-dur) * 0.95) var(--h-ease-slow);
    }

    .h-story__mobile-fig img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform calc(var(--h-story-dur) * 1.05) var(--h-ease-slow);
    }

    .h-story__mobile-card.is-inview .h-story__mobile-fig img {
        transform: scale(1);
    }

    .h-story__mobile-card.is-inview .h-story__mobile-title {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.1s;
    }

    .h-story__mobile-card.is-inview .h-story__pain {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.18s;
    }

    .h-story__mobile-card.is-inview .h-story__mobile-fig {
        opacity: 1;
        transform: translateY(0) scale(1);
        transition-delay: 0.28s;
    }

    .h-story__mobile-card.is-inview .h-story__mobile-fix {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.4s;
    }

    html.mk-public[data-theme="dark"] .h-story__mobile-card {
        background: linear-gradient(160deg, rgba(15, 23, 42, 0.92), rgba(30, 27, 75, 0.72));
        border-color: rgba(167, 139, 250, 0.16);
    }

    .h-story__mobile-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        margin-bottom: 0.65rem;
    }

    .h-story__mobile-progress {
        font-size: 0.72rem;
        font-weight: 700;
        color: #94a3b8;
    }

    .h-story__mobile-title {
        margin: 0 0 0.5rem;
        font-size: clamp(1.15rem, 4.8vw, 1.35rem);
        font-weight: 800;
        line-height: 1.35;
        text-wrap: balance;
    }

    .h-story__mobile-fix {
        margin-top: auto;
        padding-top: 0.35rem;
    }

    .h-story__mobile-fix p {
        margin: 0.35rem 0 0;
        font-size: 0.88rem;
        font-weight: 600;
        line-height: 1.55;
    }

    .h-climax {
        padding: clamp(2rem, 6vw, 3rem) clamp(1rem, 4vw, 1.25rem);
    }

    .h-climax__layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .h-climax__copy {
        max-width: 28rem;
        margin-inline: auto;
    }

    .h-climax__frame {
        border-radius: 14px;
    }

    .h-compare {
        padding-inline: clamp(1rem, 4vw, 1.25rem);
    }

    .h-compare__columns {
        display: none;
    }

    .h-compare__pair {
        grid-template-columns: 1fr;
        gap: 0.45rem;
    }

    .h-compare__bridge {
        justify-self: center;
        transform: rotate(-90deg);
    }

    .h-compare__cell--after {
        order: -1;
    }

    .h-flow__stage {
        padding-inline: clamp(1rem, 4vw, 1.25rem);
    }

    .h-flow__rail {
        display: none;
    }

    .h-flow__nodes {
        flex-direction: column;
        gap: 0.55rem;
        overflow-x: visible;
        padding: 0;
    }

    .h-flow__node {
        flex: none;
        width: 100%;
    }

    .h-flow__node-btn {
        flex-direction: row;
        align-items: center;
        text-align: start;
        gap: 0.85rem;
        padding: 0.85rem 1rem;
        border-radius: 16px;
        border: 1px solid rgba(124, 58, 237, 0.1);
        background: rgba(255, 255, 255, 0.88);
        box-shadow: 0 10px 28px -18px rgba(15, 23, 42, 0.18);
    }

    html.mk-public[data-theme="dark"] .h-flow__node-btn {
        background: rgba(15, 23, 42, 0.82);
        border-color: rgba(167, 139, 250, 0.14);
    }

    .h-flow__node-ring {
        width: 3.25rem;
        height: 3.25rem;
        flex-shrink: 0;
    }

    .h-flow__node-copy {
        align-items: flex-start;
    }

    .h-flow__node-desc {
        font-style: normal;
    }

    .h-pillars {
        padding-inline: clamp(1rem, 4vw, 1.25rem);
    }

    .h-pillars__nav {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .h-pillars__nav::-webkit-scrollbar {
        display: none;
    }

    .h-pillars__nav-btn {
        scroll-snap-align: start;
        flex: 0 0 auto;
        min-width: max-content;
    }

    .h-pillar-panel {
        grid-template-columns: 1fr;
    }

    .h-pillar-panel__visual {
        min-height: 12rem;
    }

    .h-pillars__orbit-track {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: none;
        padding-bottom: 0.25rem;
    }

    .h-pillars__orbit-track::-webkit-scrollbar {
        display: none;
    }

    .h-pillar-chip {
        flex-shrink: 0;
    }

    .h-stats__item {
        min-height: 44px;
        padding: 0.75rem 0.85rem;
    }

    .h-final-cta__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .h-final-cta__btn {
        width: 100%;
        min-height: 48px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .h-pillar-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .h-story__visual {
        display: block;
    }
}

/* ─── Climax ─── */
.h-climax {
    position: relative;
    padding: clamp(2.75rem, 7vw, 4.5rem) 0;
    background:
        linear-gradient(175deg, #070712 0%, #0f1224 42%, #12162b 100%);
    color: #f8fafc;
    overflow: hidden;
}

.h-climax__ambient {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.h-climax__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
}

.h-climax__glow--top {
    width: min(520px, 70vw);
    height: min(320px, 45vw);
    top: -8%;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(251, 191, 36, 0.14), transparent 70%);
}

.h-climax__glow--bottom {
    width: min(640px, 85vw);
    height: min(380px, 50vw);
    bottom: -12%;
    inset-inline-end: -8%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.22), transparent 68%);
}

.h-climax__layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: clamp(1.25rem, 3vw, 2rem);
}

.h-climax__copy {
    text-align: start;
}

.h-climax__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.85rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(251, 191, 36, 0.28);
    background: rgba(251, 191, 36, 0.08);
    font-size: 0.76rem;
    font-weight: 700;
    color: #fcd34d;
    letter-spacing: 0.02em;
}

.h-climax__badge i {
    font-size: 0.72rem;
    opacity: 0.9;
}

.h-climax__title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.65rem, 4.2vw, 2.55rem);
    font-weight: 800;
    line-height: 1.22;
    color: #ffffff;
    text-wrap: balance;
}

.h-climax__sub {
    margin: 0 0 0.65rem;
    font-size: clamp(1.05rem, 2.4vw, 1.35rem);
    font-weight: 600;
    line-height: 1.45;
    color: #e2e8f0;
}

.h-climax__line {
    margin: 0;
    font-size: clamp(0.88rem, 1.8vw, 0.98rem);
    line-height: 1.65;
    color: #94a3b8;
    max-width: 26rem;
}

.h-climax__stage {
    width: 100%;
}

.h-climax__frame {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: linear-gradient(180deg, #1a1f35 0%, #0d111f 100%);
    box-shadow:
        0 32px 64px -28px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(167, 139, 250, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.h-climax__chrome {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.85rem;
    background: rgba(15, 23, 42, 0.85);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.h-climax__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.35);
}

.h-climax__dot:first-child {
    background: #f87171;
}

.h-climax__dot:nth-child(2) {
    background: #fbbf24;
}

.h-climax__dot:nth-child(3) {
    background: #34d399;
}

.h-climax__chrome-title {
    margin-inline-start: auto;
    font-size: 0.68rem;
    font-weight: 600;
    color: #64748b;
}

.h-climax__product {
    margin: 0;
    transform: translateY(12px) scale(0.97);
    opacity: 0;
    transition: transform 0.75s var(--h-ease), opacity 0.75s var(--h-ease);
}

.h-climax__product.is-visible {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.h-climax__img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top center;
}

/* Contrast guard in mizkar-home.css forces dark h2/p on .mk-home-page — override inside climax */
html.mk-public .mk-home-page .h-climax .h-climax__title {
    color: #ffffff;
}

html.mk-public .mk-home-page .h-climax .h-climax__sub {
    color: #e2e8f0;
}

html.mk-public .mk-home-page .h-climax .h-climax__line {
    color: #cbd5e1;
}

/* Light theme: soft dawn surface + readable dark copy (not dark-on-dark) */
html.mk-public[data-theme="light"] .h-climax {
    background:
        linear-gradient(175deg, #faf8ff 0%, #f4f6fb 45%, #eef2ff 100%);
    color: #0f172a;
}

html.mk-public[data-theme="light"] .h-climax__glow--top {
    opacity: 0.75;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.1), transparent 70%);
}

html.mk-public[data-theme="light"] .h-climax__glow--bottom {
    opacity: 0.65;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12), transparent 68%);
}

html.mk-public[data-theme="light"] .mk-home-page .h-climax .h-climax__title {
    color: #0f172a;
}

html.mk-public[data-theme="light"] .mk-home-page .h-climax .h-climax__sub {
    color: #334155;
}

html.mk-public[data-theme="light"] .mk-home-page .h-climax .h-climax__line {
    color: #64748b;
}

html.mk-public[data-theme="light"] .h-climax__badge {
    color: #b45309;
    background: rgba(251, 191, 36, 0.14);
    border-color: rgba(245, 158, 11, 0.28);
}

html.mk-public[data-theme="light"] .h-climax__frame {
    border-color: rgba(124, 58, 237, 0.14);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow:
        0 28px 56px -32px rgba(15, 23, 42, 0.18),
        0 0 0 1px rgba(124, 58, 237, 0.08);
}

html.mk-public[data-theme="light"] .h-climax__chrome {
    background: rgba(241, 245, 249, 0.95);
    border-bottom-color: rgba(148, 163, 184, 0.2);
}

html.mk-public[data-theme="light"] .h-climax__chrome-title {
    color: #64748b;
}

/* ─── Compare ─── */
.h-compare {
    padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.h-compare__head {
    text-align: center;
    margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
}

.h-compare__title {
    margin: 0 0 0.45rem;
    font-size: clamp(1.25rem, 3.5vw, 1.75rem);
    font-weight: 800;
    text-wrap: balance;
}

.h-compare__subtitle {
    margin: 0;
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.55;
}

html.mk-public[data-theme="dark"] .h-compare__subtitle {
    color: #94a3b8;
}

.h-compare__board {
    max-width: 48rem;
    margin: 0 auto;
    padding: clamp(1rem, 2.5vw, 1.35rem);
    border-radius: 20px;
    border: 1px solid rgba(124, 58, 237, 0.14);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.9));
    box-shadow: 0 24px 56px -36px rgba(15, 23, 42, 0.28);
}

html.mk-public[data-theme="dark"] .h-compare__board {
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.92), rgba(30, 27, 75, 0.55));
    border-color: rgba(167, 139, 250, 0.18);
}

.h-compare__columns {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding-inline: 0.35rem;
}

.h-compare__col-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.h-compare__col-label--before {
    color: #94a3b8;
    text-align: start;
}

.h-compare__col-label--after {
    color: var(--h-violet);
    text-align: end;
    grid-column: 3;
}

.h-compare__pairs {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.h-compare__pair {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
    gap: 0.55rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.45s var(--h-ease), transform 0.45s var(--h-ease);
}

.h-compare__pair.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.h-compare__cell {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    font-size: 0.86rem;
    line-height: 1.55;
}

.h-compare__cell i {
    flex-shrink: 0;
    margin-top: 0.15rem;
    font-size: 0.72rem;
}

.h-compare__cell--before {
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.16);
    color: #64748b;
}

.h-compare__cell--before i {
    color: #ef4444;
}

html.mk-public[data-theme="dark"] .h-compare__cell--before {
    color: #94a3b8;
}

.h-compare__cell--after {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(109, 40, 217, 0.06));
    border: 1px solid rgba(124, 58, 237, 0.2);
    color: #1e293b;
    font-weight: 600;
}

.h-compare__cell--after i {
    color: #10b981;
}

html.mk-public[data-theme="dark"] .h-compare__cell--after {
    color: #e2e8f0;
}

.h-compare__bridge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    color: rgba(124, 58, 237, 0.45);
    font-size: 0.82rem;
}

/* ─── Product flow ─── */
.h-flow {
    position: relative;
    padding: clamp(2.5rem, 6vw, 4.5rem) 0;
    overflow: visible;
}

.h-flow::before {
    content: '';
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.18), transparent);
    pointer-events: none;
}

.h-flow__head {
    text-align: center;
    margin-bottom: clamp(1.25rem, 3vw, 2rem);
    max-width: 36rem;
    margin-inline: auto;
}

.h-flow__kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.45rem;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(124, 58, 237, 0.18);
    background: rgba(124, 58, 237, 0.06);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--h-violet);
}

.h-flow__title {
    margin: 0 0 0.45rem;
    font-size: clamp(1.35rem, 3.8vw, 2rem);
    font-weight: 800;
    text-wrap: balance;
}

.h-flow__subtitle {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.65;
    color: #64748b;
}

html.mk-public[data-theme="dark"] .h-flow__subtitle {
    color: #94a3b8;
}

.h-flow__stage {
    position: relative;
    max-width: min(1120px, calc(100vw - 2rem));
    margin-inline: auto;
    padding: clamp(1.5rem, 3vw, 2rem) clamp(0.5rem, 2vw, 1rem) clamp(2.5rem, 4vw, 3rem);
    overflow: visible;
}

.h-flow__rail {
    position: absolute;
    inset-inline: clamp(2.5rem, 8vw, 4rem);
    top: calc(clamp(1.5rem, 3vw, 2rem) + 1.65rem);
    height: 3px;
    pointer-events: none;
    z-index: 0;
}

.h-flow__rail-track,
.h-flow__rail-fill {
    position: absolute;
    inset: 0;
    border-radius: 999px;
}

.h-flow__rail-track {
    background: rgba(124, 58, 237, 0.1);
}

.h-flow__rail-fill {
    width: 16%;
    background: linear-gradient(90deg, #7c3aed, #a78bfa, #34d399);
    box-shadow: 0 0 16px rgba(124, 58, 237, 0.35);
    transition: width 0.45s var(--h-ease);
}

.h-flow__nodes {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.h-flow__nodes::-webkit-scrollbar {
    display: none;
}

.h-flow__node {
    flex: 0 0 auto;
    scroll-snap-align: center;
}

.h-flow__node[data-accent="violet"] { --node-accent: #7c3aed; --node-soft: rgba(124, 58, 237, 0.14); }
.h-flow__node[data-accent="indigo"] { --node-accent: #6366f1; --node-soft: rgba(99, 102, 241, 0.14); }
.h-flow__node[data-accent="emerald"] { --node-accent: #10b981; --node-soft: rgba(16, 185, 129, 0.14); }
.h-flow__node[data-accent="sky"] { --node-accent: #0ea5e9; --node-soft: rgba(14, 165, 233, 0.14); }
.h-flow__node[data-accent="amber"] { --node-accent: #f59e0b; --node-soft: rgba(245, 158, 11, 0.14); }

.h-flow__node-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    width: clamp(6.5rem, 14vw, 8.5rem);
    padding: 0.35rem 0.25rem 0.75rem;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: center;
    color: inherit;
    font: inherit;
    transition: transform 0.35s var(--h-ease);
}

.h-flow__node-btn:focus-visible {
    outline: 2px solid var(--node-accent, var(--h-violet));
    outline-offset: 4px;
    border-radius: 14px;
}

.h-flow__node-ring {
    position: relative;
    width: 3.35rem;
    height: 3.35rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--node-soft, var(--h-violet-soft));
    border: 2px solid rgba(148, 163, 184, 0.18);
    transition:
        border-color 0.35s var(--h-ease),
        box-shadow 0.35s var(--h-ease),
        transform 0.35s var(--h-ease),
        background 0.35s var(--h-ease);
}

.h-flow__node-index {
    position: absolute;
    top: -0.35rem;
    inset-inline-end: -0.15rem;
    min-width: 1.35rem;
    padding: 0.1rem 0.3rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.2);
    font-size: 0.58rem;
    font-weight: 800;
    color: #64748b;
    line-height: 1.2;
    transition: color 0.35s var(--h-ease), border-color 0.35s var(--h-ease), background 0.35s var(--h-ease);
}

html.mk-public[data-theme="dark"] .h-flow__node-index {
    background: #0f172a;
}

.h-flow__node-icon {
    font-size: 1.05rem;
    color: var(--node-accent, var(--h-violet));
    transition: transform 0.35s var(--h-ease);
}

.h-flow__node-copy {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    opacity: 0.55;
    transition: opacity 0.35s var(--h-ease);
}

.h-flow__node-title {
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.35;
}

.h-flow__node-desc {
    font-size: 0.68rem;
    font-style: normal;
    line-height: 1.45;
    color: #64748b;
}

html.mk-public[data-theme="dark"] .h-flow__node-desc {
    color: #94a3b8;
}

.h-flow__node.is-active .h-flow__node-ring,
.h-flow__node-btn:hover .h-flow__node-ring {
    border-color: var(--node-accent, var(--h-violet));
    box-shadow: 0 0 0 4px var(--node-soft, var(--h-violet-soft));
}

.h-flow__node.is-active .h-flow__node-ring {
    transform: scale(1.06);
    background: #fff;
}

html.mk-public[data-theme="dark"] .h-flow__node.is-active .h-flow__node-ring {
    background: rgba(15, 23, 42, 0.95);
}

.h-flow__node.is-active .h-flow__node-index {
    color: #fff;
    background: var(--node-accent, var(--h-violet));
    border-color: transparent;
}

.h-flow__node.is-active .h-flow__node-icon {
    transform: scale(1.08);
}

.h-flow__node.is-active .h-flow__node-copy,
.h-flow__node-btn:hover .h-flow__node-copy {
    opacity: 1;
}

.h-flow__node.is-active .h-flow__node-title {
    color: var(--node-accent, var(--h-violet));
}

/* Desktop step popup */
.h-flow__popup {
    position: absolute;
    z-index: 12;
    width: min(18.5rem, calc(100vw - 2.5rem));
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, calc(-100% - 12px)) scale(0.97);
    transition:
        opacity 0.35s var(--h-ease-slow),
        transform 0.35s var(--h-ease-slow);
}

.h-flow__popup.is-open {
    pointer-events: auto;
    opacity: 1;
    transform: translate(-50%, calc(-100% - 12px)) scale(1);
}

.h-flow__popup[hidden] {
    display: block;
    visibility: hidden;
}

.h-flow__popup.is-open[hidden] {
    visibility: visible;
}

.h-flow__popup-card {
    padding: 0.95rem 1rem 1.05rem;
    border-radius: 16px;
    border: 1px solid rgba(124, 58, 237, 0.16);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
    box-shadow:
        0 24px 56px -28px rgba(15, 23, 42, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

html.mk-public[data-theme="dark"] .h-flow__popup-card {
    background: linear-gradient(165deg, rgba(15, 23, 42, 0.96), rgba(30, 27, 75, 0.88));
    border-color: rgba(167, 139, 250, 0.22);
    box-shadow: 0 28px 60px -24px rgba(0, 0, 0, 0.55);
}

.h-flow__popup-card[data-accent="violet"] { --popup-accent: #7c3aed; --popup-soft: rgba(124, 58, 237, 0.12); }
.h-flow__popup-card[data-accent="indigo"] { --popup-accent: #6366f1; --popup-soft: rgba(99, 102, 241, 0.12); }
.h-flow__popup-card[data-accent="emerald"] { --popup-accent: #10b981; --popup-soft: rgba(16, 185, 129, 0.12); }
.h-flow__popup-card[data-accent="sky"] { --popup-accent: #0ea5e9; --popup-soft: rgba(14, 165, 233, 0.12); }
.h-flow__popup-card[data-accent="amber"] { --popup-accent: #f59e0b; --popup-soft: rgba(245, 158, 11, 0.12); }

.h-flow__popup-head {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.55rem;
}

.h-flow__popup-icon {
    width: 1.65rem;
    height: 1.65rem;
    display: grid;
    place-items: center;
    border-radius: 8px;
    font-size: 0.72rem;
    color: var(--popup-accent, var(--h-violet));
    background: var(--popup-soft, var(--h-violet-soft));
}

.h-flow__popup-step {
    flex: 1;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--popup-accent, var(--h-violet));
}

.h-flow__popup-close {
    display: grid;
    place-items: center;
    width: 1.65rem;
    height: 1.65rem;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: rgba(148, 163, 184, 0.12);
    color: #64748b;
    cursor: pointer;
    transition: background 0.2s var(--h-ease), color 0.2s var(--h-ease);
}

.h-flow__popup-close:hover {
    background: rgba(148, 163, 184, 0.2);
    color: #334155;
}

.h-flow__popup-title {
    display: block;
    margin: 0 0 0.45rem;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.4;
    color: #0f172a;
}

html.mk-public[data-theme="dark"] .h-flow__popup-title {
    color: #f8fafc;
}

.h-flow__popup-text {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.7;
    color: #475569;
}

html.mk-public[data-theme="dark"] .h-flow__popup-text {
    color: #cbd5e1;
}

.h-flow__popup-arrow {
    position: absolute;
    bottom: -7px;
    left: 50%;
    width: 14px;
    height: 14px;
    transform: translateX(-50%) rotate(45deg);
    background: inherit;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
    border-inline-end: 1px solid rgba(124, 58, 237, 0.16);
    border-bottom: 1px solid rgba(124, 58, 237, 0.16);
    box-shadow: 4px 4px 12px -6px rgba(15, 23, 42, 0.15);
}

html.mk-public[data-theme="dark"] .h-flow__popup-arrow {
    background: linear-gradient(165deg, rgba(15, 23, 42, 0.96), rgba(30, 27, 75, 0.88));
    border-color: rgba(167, 139, 250, 0.22);
}

.h-flow__node.is-popup-open .h-flow__node-ring {
    border-color: var(--node-accent, var(--h-violet));
    box-shadow: 0 0 0 5px var(--node-soft, var(--h-violet-soft));
}

@media (max-width: 991px) {
    .h-flow__popup {
        display: none !important;
    }
}

/* ─── Pillars ─── */
.h-pillars {
    position: relative;
    padding: clamp(2.75rem, 6vw, 4.5rem) 0;
}

.h-pillars__head {
    text-align: center;
    margin-bottom: clamp(1.35rem, 3vw, 2rem);
    max-width: 38rem;
    margin-inline: auto;
}

.h-pillars__kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.45rem;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(124, 58, 237, 0.18);
    background: rgba(124, 58, 237, 0.06);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--h-violet);
}

.h-pillars__title {
    margin: 0 0 0.45rem;
    font-size: clamp(1.35rem, 3.8vw, 2rem);
    font-weight: 800;
    text-wrap: balance;
}

.h-pillars__subtitle {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.65;
    color: #64748b;
}

html.mk-public[data-theme="dark"] .h-pillars__subtitle {
    color: #94a3b8;
}

.h-pillars__showcase {
    border-radius: 22px;
    border: 1px solid rgba(124, 58, 237, 0.14);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.88));
    box-shadow: 0 28px 64px -40px rgba(15, 23, 42, 0.28);
    overflow: hidden;
}

html.mk-public[data-theme="dark"] .h-pillars__showcase {
    background: linear-gradient(165deg, rgba(15, 23, 42, 0.94), rgba(30, 27, 75, 0.62));
    border-color: rgba(167, 139, 250, 0.18);
}

.h-pillars__nav {
    display: flex;
    gap: 0.45rem;
    padding: 0.65rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(124, 58, 237, 0.03);
}

.h-pillars__nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 44px;
    padding: 0.55rem 0.95rem;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    font-size: 0.82rem;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition:
        color 0.3s var(--h-ease),
        background 0.3s var(--h-ease),
        border-color 0.3s var(--h-ease),
        box-shadow 0.3s var(--h-ease);
}

.h-pillars__nav-btn[data-accent="indigo"] { --pillar-accent: #6366f1; --pillar-soft: rgba(99, 102, 241, 0.12); }
.h-pillars__nav-btn[data-accent="violet"] { --pillar-accent: #7c3aed; --pillar-soft: rgba(124, 58, 237, 0.12); }
.h-pillars__nav-btn[data-accent="emerald"] { --pillar-accent: #10b981; --pillar-soft: rgba(16, 185, 129, 0.12); }

.h-pillars__nav-btn:focus-visible {
    outline: 2px solid var(--pillar-accent, var(--h-violet));
    outline-offset: 2px;
}

.h-pillars__nav-icon {
    width: 1.75rem;
    height: 1.75rem;
    display: grid;
    place-items: center;
    border-radius: 8px;
    font-size: 0.78rem;
    background: rgba(148, 163, 184, 0.12);
    color: #64748b;
    transition: background 0.3s var(--h-ease), color 0.3s var(--h-ease);
}

.h-pillars__nav-btn.is-active {
    color: var(--pillar-accent, var(--h-violet));
    background: #fff;
    border-color: rgba(148, 163, 184, 0.14);
    box-shadow: 0 8px 24px -16px rgba(15, 23, 42, 0.25);
}

html.mk-public[data-theme="dark"] .h-pillars__nav-btn.is-active {
    background: rgba(15, 23, 42, 0.88);
}

.h-pillars__nav-btn.is-active .h-pillars__nav-icon {
    background: var(--pillar-soft, var(--h-violet-soft));
    color: var(--pillar-accent, var(--h-violet));
}

.h-pillars__panels {
    position: relative;
    min-height: min(24rem, 70vw);
}

.h-pillar-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(1rem, 2.5vw, 1.75rem);
    padding: clamp(1rem, 2.5vw, 1.5rem);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s var(--h-ease), transform 0.4s var(--h-ease);
}

.h-pillar-panel.is-active {
    opacity: 1;
    transform: translateY(0);
}

.h-pillar-panel[hidden] {
    display: none !important;
}

.h-pillar-panel:not([hidden]) {
    display: grid;
}

.h-pillar-panel__visual {
    position: relative;
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: #0f172a;
    box-shadow: 0 20px 48px -28px rgba(15, 23, 42, 0.45);
}

.h-pillar-panel--indigo .h-pillar-panel__visual { --panel-glow: rgba(99, 102, 241, 0.35); }
.h-pillar-panel--violet .h-pillar-panel__visual { --panel-glow: rgba(124, 58, 237, 0.35); }
.h-pillar-panel--emerald .h-pillar-panel__visual { --panel-glow: rgba(16, 185, 129, 0.35); }

.h-pillar-panel__visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(15, 23, 42, 0.55) 100%);
    pointer-events: none;
}

.h-pillar-panel__frame {
    position: absolute;
    top: 0;
    inset-inline: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.65rem;
    background: rgba(15, 23, 42, 0.72);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.h-pillar-panel__frame span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.35);
}

.h-pillar-panel__frame span:first-child { background: #f87171; }
.h-pillar-panel__frame span:nth-child(2) { background: #fbbf24; }
.h-pillar-panel__frame span:nth-child(3) { background: #34d399; }

.h-pillar-panel__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.h-pillar-panel__badge {
    position: absolute;
    inset-inline-start: 0.75rem;
    bottom: 0.75rem;
    z-index: 2;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    font-size: 0.68rem;
    font-weight: 800;
    color: #1e293b;
    box-shadow: 0 8px 20px -12px rgba(0, 0, 0, 0.35);
}

.h-pillar-panel__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.25rem 0;
}

.h-pillar-panel__title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.15rem, 2.5vw, 1.45rem);
    font-weight: 800;
    line-height: 1.3;
}

.h-pillar-panel--indigo .h-pillar-panel__title { color: #6366f1; }
.h-pillar-panel--violet .h-pillar-panel__title { color: #7c3aed; }
.h-pillar-panel--emerald .h-pillar-panel__title { color: #059669; }

.h-pillar-panel__outcome {
    margin: 0 0 1rem;
    font-size: 0.92rem;
    line-height: 1.7;
    color: #475569;
}

html.mk-public[data-theme="dark"] .h-pillar-panel__outcome {
    color: #cbd5e1;
}

.h-pillar-panel__features {
    margin: 0 0 1.15rem;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.h-pillar-panel__features li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.55;
}

.h-pillar-panel__feat-icon {
    flex-shrink: 0;
    width: 1.35rem;
    height: 1.35rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    font-size: 0.58rem;
}

.h-pillar-panel__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    align-self: flex-start;
    min-height: 44px;
    padding: 0.55rem 1rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(109, 40, 217, 0.06));
    border: 1px solid rgba(124, 58, 237, 0.18);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--h-violet);
    text-decoration: none;
    transition: transform 0.25s var(--h-ease), box-shadow 0.25s var(--h-ease);
}

.h-pillar-panel__link:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -16px rgba(124, 58, 237, 0.45);
}

.h-pillars__orbit {
    margin-top: clamp(1.25rem, 3vw, 1.75rem);
    padding: 0.85rem 0;
    border-top: 1px dashed rgba(124, 58, 237, 0.16);
}

.h-pillars__orbit-label {
    display: block;
    margin-bottom: 0.65rem;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.03em;
}

.h-pillars__orbit-track {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
}

.h-pillar-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.42rem 0.75rem;
    font-size: 0.74rem;
    font-weight: 600;
    border-radius: 999px;
    border: 1px solid rgba(124, 58, 237, 0.14);
    color: #64748b;
    background: rgba(255, 255, 255, 0.75);
    transition: transform 0.25s var(--h-ease), border-color 0.25s var(--h-ease);
}

html.mk-public[data-theme="dark"] .h-pillar-chip {
    background: rgba(15, 23, 42, 0.65);
    color: #94a3b8;
}

.h-pillar-chip i {
    color: var(--h-violet);
    font-size: 0.72rem;
}

.h-pillar-chip:hover {
    transform: translateY(-1px);
    border-color: rgba(124, 58, 237, 0.28);
}

/* ─── Compact pricing ─── */
.h-pricing {
    padding: clamp(2rem, 5vw, 3rem) 0;
}

.h-pricing .mk-tier-grid {
    gap: 1rem;
}

.h-pricing .mk-tier-card {
    padding: 1.15rem 1.25rem;
}

.h-pricing .mk-tier-features {
    margin-bottom: 0.85rem;
}

.h-pricing .mk-tier-features li {
    font-size: 0.82rem;
    padding: 0.25rem 0;
}

.h-pricing .mk-section-head {
    margin-bottom: 1.25rem;
}

.h-pricing .mk-tier-price-note {
    display: block;
}

.h-pricing .mk-tier-price-hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    line-height: 1.5;
}

html.mk-public[data-theme="dark"] .h-pricing .mk-tier-price-hint {
    color: #94a3b8;
}

.h-pricing .mk-section-desc {
    display: block;
    max-width: 36rem;
    margin-inline: auto;
    font-size: 0.92rem;
    line-height: 1.65;
    color: #64748b;
}

html.mk-public[data-theme="dark"] .h-pricing .mk-section-desc {
    color: #94a3b8;
}

/* ─── Compact FAQ ─── */
.h-faq {
    padding: clamp(1.5rem, 4vw, 2.5rem) 0;
}

.h-faq .mk-faq-wrap {
    max-width: 40rem;
}

.h-faq .mk-faq-intro {
    margin-bottom: 1rem;
}

.h-faq .mk-faq-desc {
    display: none;
}

/* ─── Final CTA ─── */
.h-final-cta {
    position: relative;
    padding: clamp(3rem, 8vw, 5rem) 0;
    overflow: hidden;
}

.h-final-cta__glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 50% 100%, rgba(124, 58, 237, 0.18), transparent 70%),
        linear-gradient(180deg, transparent, rgba(124, 58, 237, 0.04));
    pointer-events: none;
}

.h-final-cta__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 36rem;
    margin: 0 auto;
}

.h-final-cta__title {
    margin: 0 0 0.65rem;
    font-size: clamp(1.35rem, 4.5vw, 2.1rem);
    font-weight: 800;
    line-height: 1.3;
}

.h-final-cta__desc {
    margin: 0 0 1.35rem;
    font-size: 0.9rem;
    color: #64748b;
}

.h-final-cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
}

.h-final-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 44px;
    padding: 0.65rem 1.25rem;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s var(--h-ease), box-shadow 0.2s var(--h-ease);
}

.h-final-cta__btn--primary {
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    box-shadow: 0 12px 32px -12px rgba(124, 58, 237, 0.55);
}

.h-final-cta__btn--ghost {
    color: var(--mk-text, #0f172a);
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: transparent;
}

.h-final-cta__btn:active {
    transform: scale(0.98);
}

.h-final-cta__edu {
    margin: 1.25rem 0 0;
    font-size: 0.78rem;
}

.h-final-cta__edu a {
    color: var(--h-violet);
    font-weight: 600;
    text-decoration: none;
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
    .h-stats__live-dot {
        animation: none;
    }

    .h-story__scene,
    .h-climax__product,
    .h-flow__node-ring,
    .h-flow__node-copy,
    .h-flow__rail-fill,
    .h-pillar-panel,
    .h-story__bar-fill,
    .h-story__copy,
    .h-story__visual-fix,
    .h-story__img,
    .h-story__mobile-card,
    .h-compare__pair,
    .h-pillar {
        transition: none !important;
    }

    .h-story__scene,
    .h-story__mobile-card,
    .h-story__copy,
    .h-story__visual-fix {
        opacity: 1;
        transform: none;
    }

    .h-story__scene {
        opacity: 1;
        transform: none;
        position: relative;
    }

    .h-story__scene:not(:first-child) {
        margin-top: 2rem;
    }

    .h-climax__product {
        opacity: 1;
        transform: none;
    }

    .h-pillar-panel {
        opacity: 1;
        transform: none;
    }

    .h-compare__pair {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) and (min-width: 992px) {
    .h-story__rail {
        height: auto !important;
    }

    .h-story__pin {
        position: relative !important;
        height: auto !important;
    }

    .h-story__rail .h-story__pin {
        display: none;
    }

    .h-story__mobile {
        display: flex !important;
    }
}
