﻿/* Section: home_framework_section */
.m-dp {
    --dur: 7s;
    --dp-card: #fbfaf7;
    clip-path: none !important;
    transform: unset !important;
    max-width: 90%;
    margin: 0 auto;
}

.m-dp__stage {
    border-radius: var(--r-2xl);
}

.m-dp__grad {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: -1;
}

.m-dp__grad {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    will-change: transform;
}

@keyframes expand-on-scroll {
    from {
        transform: scaleX(0.676);
        border-radius: var(--r-2xl);
    }

    to {
        transform: scaleX(1);
        border-radius: 0;
    }
}

.m-dp__track {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: calc(var(--dp-n, 6) * 100%);
    transform: translate3d(calc(var(--idx, 0) * -100% / var(--dp-n, 6)), 0, 0);
    transition: transform 1.1s var(--m-swap);
    background:
        radial-gradient(9% 70% at 2% 0%, #f9b8a5 0%, transparent 70%), radial-gradient(8% 60% at 14% 100%, #cfe3fb 0%, transparent 70%), radial-gradient(9% 70% at 19% 0%, #f8cf8f 0%, transparent 70%), radial-gradient(8% 60% at 31% 100%, #fbe5c4 0%, transparent 70%),
        radial-gradient(9% 70% at 36% 0%, #93deb0 0%, transparent 70%), radial-gradient(8% 60% at 48% 100%, #cdf0dc 0%, transparent 70%), radial-gradient(9% 70% at 53% 0%, #cdb3f6 0%, transparent 70%), radial-gradient(8% 60% at 64% 100%, #f1d9f6 0%, transparent 70%),
        radial-gradient(9% 70% at 69% 0%, #8fc2fa 0%, transparent 70%), radial-gradient(8% 60% at 81% 100%, #cdeefa 0%, transparent 70%), radial-gradient(9% 70% at 86% 0%, #f6d77e 0%, transparent 70%), radial-gradient(8% 60% at 98% 100%, #fbf0c9 0%, transparent 70%),
        linear-gradient(90deg, #fde9e2 0%, #fdf0dd 17%, #fff1dd 22%, #e2f6ea 33%, #e0f5e8 39%, #efe6fc 50%, #efe5fb 56%, #e1eefd 67%, #ddeffd 72%, #fcf3d8 84%, #fdf6e1 100%);
}

.m-dp--steps .m-dp__track {
    background:
        radial-gradient(8% 70% at 2% 0%, #8fc2fa 0%, transparent 70%), radial-gradient(8% 70% at 16% 0%, #f9b8a5 0%, transparent 70%), radial-gradient(8% 70% at 30% 0%, #f8cf8f 0%, transparent 70%), radial-gradient(8% 70% at 44% 0%, #cdb3f6 0%, transparent 70%),
        radial-gradient(8% 70% at 58% 0%, #93deb0 0%, transparent 70%), radial-gradient(8% 70% at 72% 0%, #f7b3c6 0%, transparent 70%), radial-gradient(8% 70% at 86% 0%, #f6d77e 0%, transparent 70%),
        linear-gradient(90deg, #e1eefd 0%, #fde9e2 15%, #fff1dd 29%, #efe6fc 43%, #e2f6ea 57%, #fde6ee 71%, #fcf3d8 86%, #fdf6e1 100%);
}

.m-dp__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.m-dp__tabbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.m-dp__arrow,
.m-dp__play {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--c-ink);
    transition:
        background 0.2s,
        transform 0.2s;
    display: none;
}

.m-dp__arrow:hover,
.m-dp__play:hover {
    background: rgba(255, 255, 255, 0.75);
}

.m-dp__arrow:active {
    transform: scale(0.9);
}

.m-dp__play .fi {
    font-size: 14px;
}

.m-dp__tabs {
    display: flex;
    gap: 8px;
}

.m-dp__tab {
    position: relative;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    color: var(--c-ink);
    flex: none;
}

.m-dp__tab:focus-visible {
    box-shadow: none;
    outline: 2px solid var(--c-ink);
    outline-offset: 4px;
    border-radius: 18px;
}

.m-dp__tbase {
    position: absolute;
    inset: 0;
    border-radius: 19px;
    background: rgba(255, 255, 255, 0.75);
    transition: background 0.4s;
}

.m-dp__tinner {
    position: absolute;
    inset: 5px;
    border-radius: 15px;
    background: #dfe3e7;
    transition:
        background 0.45s,
        transform 0.45s var(--m-spring);
}

.m-dp__neck {
    position: absolute;
    left: 50%;
    top: calc(100% - 1px);
    width: 32px;
    height: 15px;
    transform: translateX(-50%);
    fill: var(--dp-card);
    opacity: 0;
    transition: opacity 0.45s;
}

.m-dp__ico {
    position: relative;
    z-index: 1;
    font-size: 21px;
    opacity: 0.45;
    transition:
        opacity 0.35s,
        transform 0.45s var(--m-spring);
}

.m-dp__tab:hover .m-dp__ico {
    opacity: 0.8;
}

.m-dp__tab.is-active .m-dp__tbase {
    background: var(--dp-card);
}

.m-dp__tab.is-active .m-dp__tinner {
    background: var(--c);
}

.m-dp__tab.is-active .m-dp__ico {
    opacity: 1;
    transform: scale(1.08);
}

.m-dp__tab.is-active .m-dp__neck {
    opacity: 1;
}

.m-dp__ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}

.m-dp__ring rect {
    fill: none;
    stroke: var(--cd);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 184;
    stroke-dashoffset: 184;
    /* rect perimeter in viewBox units: 4×53.5 − 8×18 + 2π×18 ≈ 183.1 */
    opacity: 0;
}

.m-dp__tab.is-active .m-dp__ring rect {
    opacity: 1;
    animation: ring var(--dur) linear forwards;
}

.m-dp.is-paused .m-dp__tab.is-active .m-dp__ring rect {
    animation-play-state: paused;
}

.m-dp.is-stopped .m-dp__ring rect {
    animation: none !important;
    stroke-dashoffset: 0;
    opacity: 0.35 !important;
}

@keyframes ring {
    to {
        stroke-dashoffset: 0;
    }
}

.m-dp__card {
    position: relative;
    width: 100%;
    margin-top: 14px;
    background: var(--dp-card);
    border-radius: var(--r-2xl);
    padding: clamp(20px, 2.6vw, 36px);
    box-shadow: 0 40px 70px -40px rgba(30, 50, 90, 0.35);
}

.m-dp__panels {
    display: grid;
}

.m-dp__panel {
    grid-area: 1 / 1;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(28px, 4vw, 56px);
}

.m-dp__panel[hidden] {
    display: grid !important;
    visibility: hidden;
}

.m-dp__panel.is-leaving {
    visibility: visible;
}

/* theme tokens per stage */
.t-peach {
    --c: #f9b8a5;
    --cd: #e8735a;
    --t1: #fde6de;
    --t2: #f7c0ad;
}

.t-amber {
    --c: #f8cf8f;
    --cd: #d9901f;
    --t1: #fff1dc;
    --t2: #f6cf96;
}

.t-green {
    --c: #93deb0;
    --cd: #22a35a;
    --t1: #e3f7ea;
    --t2: #9fdcb8;
}

.t-violet {
    --c: #cdb3f6;
    --cd: #8b5cf6;
    --t1: #f2eafd;
    --t2: #ceb5f4;
}

.t-blue {
    --c: #8fc2fa;
    --cd: #0b78e6;
    --t1: #e2f0fe;
    --t2: #93c3f7;
}

.t-gold {
    --c: #f6d77e;
    --cd: #c99400;
    --t1: #fff6dc;
    --t2: #f3d27a;
}

.t-rose {
    --c: #f7b3c6;
    --cd: #d6457a;
    --t1: #fde6ee;
    --t2: #f4b5c9;
}

.m-dp__eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-base);
    color: var(--c-navy);
}

.m-dp__eyebrow .step {
    font-weight: 600;
}

.m-dp__title {
    margin-top: 16px;
    font-size: var(--fs-h3);
    font-weight: var(--fw-medium);
    color: var(--c-navy);
    letter-spacing: -0.015em;
}

.m-dp__ln {
    display: block;
    overflow: hidden;
    padding-bottom: 0.06em;
}

.m-dp__ln>span {
    display: block;
}

.m-dp__text {
    margin-top: 16px;
    font-size: var(--fs-md);
    max-width: 540px;
}

.m-dp__list-wrap {
    background: rgba(230, 242, 255, 0.55);
    border-radius: var(--r-lg);
    padding: 24px !important;
    max-width: 100%;
    gap: 12px;
    display: flex;
    flex-direction: column;
}

.m-dp__list--chips {
    background: rgba(230, 242, 255, 0.55);
}

.m-dp__list-title {
    font-size: var(--fs-md);
    font-weight: var(--fw-semibold);
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--c-primary);
    margin-bottom: 20px;
    display: block;
}

.m-dp__panel .m-dp__list-title {
    margin-bottom: 0;
}

.m-dp__list {
    margin-bottom: 30px;
}

.m-dp__list-outcome {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--c-chip);
    font-size: var(--fs-md);
}

.m-dp__list-outcome span {
    font-weight: var(--fw-semibold);
}

.m-dp__cta {
    margin-top: 24px;
}

.m-dp__tab .text {
    color: var(--c-ink);
    position: relative;
    font-size: var(--fs-md);
    font-weight: 500;
}

.m-dp__tab {
    display: flex;
    width: auto;
    gap: 10px;
    padding: 0px 20px;
}

.m-dp__ring {
    width: 100%;
    height: 100%;
    opacity: 0;
}

.m-dp__ring rect {
    height: 100%;
}

@media (max-width: 999px) {

    .m-dp__panel {
        display: flex;
        flex-direction: column;
    }

    .m-dp {
        max-width: 100%;
    }

    .m-dp__tab .text {
        font-size: var(--fs-sm);
    }

    .m-dp__tab {
        height: 51px;
    }

    .m-dp__tab {
        padding: 0px 2px;
    }

    .m-dp__tab {
        min-width: 110px;
        justify-content: center;
    }

    .m-dp__tabs {
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 15px;
    }

    .m-dp__tabbar {
        width: 100%;
    }

    .m-dp__tabs::-webkit-scrollbar {
        height: 0;
    }

    .m-dp__card {
        margin-top: -1px;
    }
}

/* text in / out */
.motion .m-dp__copy>*,
.motion .m-dp__ln>span,
.motion .m-dp__list>li {
    opacity: 0;
}

.motion .m-dp__copy>.m-dp__title {
    opacity: 1;
}

.motion .m-dp.is-seen .is-active .m-dp__eyebrow {
    animation: pop 0.6s 0.05s var(--m-ease) both;
}

.motion .m-dp.is-seen .is-active .m-dp__ln>span {
    animation: lineUp 0.8s 0.1s var(--m-ease) both;
}

.motion .m-dp.is-seen .is-active .m-dp__ln>.is-l1 {
    animation-delay: 0.18s;
}

.motion .m-dp.is-seen .is-active .m-dp__text {
    animation: pop 0.7s 0.25s var(--m-ease) both;
}

.motion .m-dp.is-seen .is-active .m-dp__list {
    animation: pop 0.7s 0.33s var(--m-ease) both;
}

.motion .m-dp.is-seen .is-active .m-dp__list>li,
.motion .m-service-card.is-in .m-dp__list>li {
    animation: chipIn 0.55s var(--m-ease) both;
}

.motion .m-dp.is-seen .is-active .m-dp__list>.is-n0 {
    animation-delay: 0.45s;
}

.motion .m-dp.is-seen .is-active .m-dp__list>.is-n1 {
    animation-delay: 0.53s;
}

.motion .m-dp.is-seen .is-active .m-dp__list>.is-n2 {
    animation-delay: 0.61s;
}

.motion .m-dp.is-seen .is-active .m-dp__list>.is-n3 {
    animation-delay: 0.69s;
}

.motion .m-dp.is-seen .is-active .m-dp__list>.is-n4 {
    animation-delay: 0.77s;
}

.motion .m-dp.is-seen .is-active .m-dp__list>.is-n5 {
    animation-delay: 0.85s;
}

.motion .m-dp.is-seen .is-active .m-dp__cta {
    animation: pop 0.7s 0.55s var(--m-ease) both;
}

.motion .m-dp .is-leaving .m-dp__copy>*,
.motion .m-dp .is-leaving .m-dp__ln>span,
.motion .m-dp .is-leaving .m-dp__list>li,
.motion .m-dp .is-leaving .m-dp__vis {
    opacity: 1;
    animation: outUp 0.25s ease forwards;
}