/* FINF seven-step trade process section. */
.page-home .panel-trade-process {
    background: #fff;
}

.page-home .panel-trade-process .home-panel__inner {
    width: min(calc(100% - 2 * var(--finf-page-gutter)), 1490px);
    margin-inline: auto;
    display: grid;
    place-items: center;
    overflow: visible;
}

.page-home .trade-process {
    width: 100%;
    display: grid;
    gap: 52px;
}

.page-home .trade-process__header {
    display: grid;
    justify-items: center;
    gap: 14px;
    text-align: center;
}

.page-home .trade-process__eyebrow {
    margin: 0;
    color: #1e5eff;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: .04em;
}

.page-home .trade-process__title {
    margin: 0;
    color: #20252b;
    font-size: clamp(40px, 3vw, 52px);
    line-height: 1.14;
    font-weight: 900;
    letter-spacing: -.035em;
}

.page-home .trade-process__lead {
    margin: 0;
    color: #59626e;
    font-size: 18px;
    line-height: 1.55;
    font-weight: 500;
}

.page-home .trade-process__steps {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.page-home .trade-process__steps::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 48px;
    right: 6%;
    left: 6%;
    height: 3px;
    background: linear-gradient(90deg, #1e5eff 0 50%, #7fb3ff 50% 100%);
    border-radius: 999px;
}

.page-home .trade-process-card {
    position: relative;
    min-width: 0;
    min-height: 302px;
    padding: 72px 16px 18px;
    border: 1px solid #dbe6f4;
    border-radius: 18px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 8px 20px rgba(30, 94, 255, .09);
    outline: none;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.page-home .trade-process-card::after {
    content: "";
    position: absolute;
    top: 46px;
    right: -15px;
    width: 16px;
    height: 7px;
    background: #7fb3ff;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.page-home .trade-process-card:last-child::after {
    display: none;
}

.page-home .trade-process-card__number {
    position: absolute;
    top: 22px;
    left: 50%;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #f7fbff;
    border: 2px solid #7fb3ff;
    color: #1e5eff;
    font-size: 18px;
    line-height: 1;
    font-weight: 900;
    transform: translateX(-50%);
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.page-home .trade-process-card.is-current .trade-process-card__number {
    border-color: #1e5eff;
    background: #1e5eff;
    color: #fff;
}

.page-home .trade-process-card__main {
    display: grid;
    justify-items: center;
    gap: 8px;
    text-align: center;
}

.page-home .trade-process-card__step {
    margin: 0;
    color: #1e5eff;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 900;
}

.page-home .trade-process-card h3 {
    margin: 0;
    min-height: 50px;
    color: #2f343a;
    font-size: 16px;
    line-height: 1.38;
    font-weight: 900;
    word-break: keep-all;
}

.page-home .trade-process-card__en {
    color: #798391;
    font-size: 11px;
    line-height: 1.3;
    font-weight: 700;
}

.page-home .trade-process-card__detail {
    display: grid;
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e6edf7;
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
}

.page-home .trade-process-card__detail p {
    margin: 0;
    color: #59626e;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 500;
    word-break: keep-all;
}

.page-home .trade-process-card__detail small {
    display: block;
    color: #1e5eff;
    font-size: 11px;
    line-height: 1.35;
    font-weight: 800;
}

.page-home .trade-process-card:hover,
.page-home .trade-process-card:focus-visible {
    z-index: 2;
    border-color: rgba(30, 94, 255, .45);
    box-shadow: 0 14px 30px rgba(30, 94, 255, .16);
    transform: translateY(-4px);
}

.page-home .trade-process-card:hover .trade-process-card__detail,
.page-home .trade-process-card:focus-visible .trade-process-card__detail {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.page-home .trade-process__hint {
    margin: -30px 0 0;
    color: #8a94a2;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
}

@media (min-width: 861px) {
    .page-home .panel-trade-process .home-panel__inner {
        min-height: min(900px, 100svh) !important;
        padding: 86px 0 42px !important;
    }

    .page-home .trade-process {
        transform: translateY(-8px);
    }
}

@media (max-width: 1180px) and (min-width: 861px) {
    .page-home .trade-process {
        gap: 34px;
    }

    .page-home .trade-process__steps {
        gap: 8px;
    }

    .page-home .trade-process-card {
        min-height: 326px;
        padding-inline: 10px;
    }

    .page-home .trade-process-card h3 {
        font-size: 14px;
    }

    .page-home .trade-process-card__detail p {
        font-size: 11.5px;
    }
}

@media (max-width: 860px) {
    html body.page-home #section-trade-process {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: hidden !important;
        scroll-snap-align: none !important;
    }

    html body.page-home #section-trade-process > .home-panel__inner {
        width: 100% !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: var(--mobile-section-space) var(--mobile-gutter) !important;
        overflow: visible !important;
    }

    .page-home .trade-process {
        gap: 34px;
    }

    .page-home .trade-process__header {
        gap: 12px;
    }

    .page-home .trade-process__eyebrow {
        font-size: 12px;
    }

    .page-home .trade-process__title {
        font-size: clamp(30px, 8.5vw, 38px);
    }

    .page-home .trade-process__lead {
        font-size: 15px;
        word-break: keep-all;
    }

    .page-home .trade-process__steps {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .page-home .trade-process__steps::before,
    .page-home .trade-process-card::after {
        display: none;
    }

    .page-home .trade-process-card {
        min-height: 0;
        padding: 20px 18px 18px 76px;
        border-radius: 16px;
    }

    .page-home .trade-process-card__number {
        top: 20px;
        left: 18px;
        width: 44px;
        height: 44px;
        transform: none;
    }

    .page-home .trade-process-card__main {
        justify-items: start;
        gap: 4px;
        text-align: left;
    }

    .page-home .trade-process-card h3 {
        min-height: 0;
        font-size: 17px;
    }

    .page-home .trade-process-card__detail {
        margin-top: 12px;
        padding-top: 12px;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .page-home .trade-process-card__detail p {
        font-size: 14px;
    }

    .page-home .trade-process-card__detail small {
        font-size: 12px;
    }

    .page-home .trade-process__hint {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-home .trade-process-card,
    .page-home .trade-process-card__number,
    .page-home .trade-process-card__detail {
        transition: none !important;
    }
}

/* Refined process rail and card states. */
.page-home .trade-process {
    gap: 44px;
}

.page-home .trade-process__header {
    gap: 16px;
}

.page-home .trade-process__title {
    font-size: clamp(44px, 3.3vw, 56px);
}

.page-home .trade-process__lead {
    font-size: 20px;
}

.page-home .trade-process__steps {
    gap: 12px;
}

.page-home .trade-process__steps::before {
    z-index: 0;
    right: calc(100% / 14);
    left: calc(100% / 14);
    height: 2px;
    background: #a9ceff;
}

.page-home .trade-process-card {
    z-index: 1;
    min-height: 330px;
    padding: 78px 18px 20px;
    border-color: rgba(214, 222, 232, .9);
    background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
    box-shadow: 0 14px 20px rgba(20, 33, 61, .13), 0 4px 7px rgba(20, 33, 61, .14), inset 0 2px 0 rgba(255, 255, 255, .95), inset 0 -2px 0 rgba(214, 222, 232, .42);
    transition: box-shadow 180ms ease;
}

.page-home .trade-process-card::after {
    display: none;
}

.page-home .trade-process-card__number {
    z-index: 2;
    width: 54px;
    height: 54px;
    border-color: #b9d5ff;
    background: #eaf4ff;
    font-size: 20px;
}

.page-home .trade-process-card h3 {
    min-height: 54px;
    font-size: 18px;
}

.page-home .trade-process-card__en {
    font-size: 13px;
}

.page-home .trade-process-card__detail p {
    font-size: 15px;
}

.page-home .trade-process-card__detail small {
    font-size: 13px;
}

@media (min-width: 861px) {
    .page-home .trade-process-card:hover,
    .page-home .trade-process-card:focus-visible {
        border-color: rgba(214, 222, 232, .9);
        background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
        box-shadow: 0 14px 20px rgba(20, 33, 61, .13), 0 4px 7px rgba(20, 33, 61, .14), inset 0 2px 0 rgba(255, 255, 255, .95), inset 0 -2px 0 rgba(214, 222, 232, .42);
        transform: none;
    }

    .page-home .trade-process-card:hover .trade-process-card__number,
    .page-home .trade-process-card:focus-visible .trade-process-card__number {
        border-color: #1e5eff;
        background: #1e5eff;
        color: #fff;
    }
}

@media (max-width: 1180px) and (min-width: 861px) {
    .page-home .trade-process-card {
        min-height: 342px;
        padding-inline: 12px;
    }

    .page-home .trade-process-card h3 {
        font-size: 16px;
    }

    .page-home .trade-process-card__en {
        font-size: 12px;
    }

    .page-home .trade-process-card__detail p {
        font-size: 13.5px;
    }
}

@media (max-width: 860px) {
    .page-home .trade-process__title {
        font-size: clamp(32px, 9vw, 40px);
    }

    .page-home .trade-process__lead {
        font-size: 16px;
    }

    .page-home .trade-process-card {
        min-height: 0;
        padding: 22px 18px 20px 78px;
    }

    .page-home .trade-process-card__number {
        width: 46px;
        height: 46px;
        font-size: 18px;
    }

    .page-home .trade-process-card h3 {
        min-height: 0;
        font-size: 18px;
    }

    .page-home .trade-process-card__en {
        font-size: 13px;
    }

    .page-home .trade-process-card__detail p {
        font-size: 15px;
    }

    .page-home .trade-process-card__detail small {
        font-size: 13px;
    }
}

/* Korean desktop titles: lower at rest without changing card dimensions. */
@media (min-width: 861px) {
    html.lang-ko body.page-home #section-trade-process .trade-process-card__main {
        transform: translateY(60px);
        transition: transform 180ms ease;
    }

    html.lang-ko body.page-home #section-trade-process .trade-process-card:hover .trade-process-card__main,
    html.lang-ko body.page-home #section-trade-process .trade-process-card:focus-visible .trade-process-card__main {
        transform: none;
    }
}

/* Compact cards expand only as much as their own detail copy requires. */
@media (min-width: 861px) {
    html body.page-home #section-trade-process .trade-process__steps {
        align-items: start;
        height: 154px;
    }

    html body.page-home #section-trade-process .trade-process-card {
        align-self: start;
        width: 100%;
        height: auto;
        min-height: 154px !important;
        padding: 58px 14px 12px;
        overflow: hidden;
        transition: box-shadow 180ms ease;
    }

    html body.page-home #section-trade-process .trade-process-card__number {
        top: 10px;
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    html body.page-home #section-trade-process .trade-process-card h3 {
        display: grid;
        min-height: 38px;
        place-items: center;
    }

    html.lang-ko body.page-home #section-trade-process .trade-process-card__main,
    html.lang-ko body.page-home #section-trade-process .trade-process-card:hover .trade-process-card__main,
    html.lang-ko body.page-home #section-trade-process .trade-process-card:focus-visible .trade-process-card__main {
        transform: none;
    }

    html body.page-home #section-trade-process .trade-process-card__detail {
        max-height: 0;
        margin-top: 0;
        padding-top: 0;
        overflow: hidden;
        border-top-color: transparent;
        transition: max-height 300ms ease, margin-top 300ms ease,
            padding-top 300ms ease, border-color 180ms ease,
            opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
    }

    html body.page-home #section-trade-process .trade-process-card:hover .trade-process-card__detail,
    html body.page-home #section-trade-process .trade-process-card:focus-visible .trade-process-card__detail {
        max-height: 360px;
        margin-top: 16px;
        padding-top: 14px;
        border-top-color: #e6edf7;
    }

    html body.page-home #section-trade-process .trade-process__hint {
        transform: translateY(140px);
    }
}

@media (min-width: 861px) and (prefers-reduced-motion: reduce) {
    html body.page-home #section-trade-process .trade-process-card {
        transition: none !important;
    }
}
