/* ============================================================
   motion.css - 랜딩 연출 전용 레이어
   index.css(구조/타이포) 위에 얹는다. 이 파일만 빼면 정적 페이지로 돌아감.
   ============================================================ */

/* ---------- 스크롤 진행 바 ---------- */
.lp-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 1200;
    background: transparent;
    pointer-events: none;
}

.lp-progress span {
    display: block;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #0068B6, #35A0F0, #7BD0FF);
    box-shadow: 0 0 12px rgba(0, 104, 182, .55);
    transform: scaleX(0);
    transform-origin: 0 50%;
    will-change: transform;
}

/* ============================================================
   HERO
   ============================================================ */
.lp-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* 배경(그라디언트·오브·캔버스)이 overflow:hidden 으로 잘리면서 생기는
   가로 경계선을 없앤다. 하단을 흰색으로 서서히 녹여 끝낸다. */
.lp-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 180px;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 82%);
}

.lp-hero-inner {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 48px;
    align-items: center;
}

.lp-hero-copy {
    min-width: 0;
}

/* --- 배경 레이어 --- */
.lp-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* 격자 */
.lp-hero-grid {
    position: absolute;
    inset: -1px;
    background-image:
        linear-gradient(to right, rgba(0, 104, 182, .07) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 104, 182, .07) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 78%);
    -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 78%);
}

/* 떠다니는 블러 오브 */
.lp-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .55;
    will-change: transform;
}

.lp-orb--1 {
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, #57B0F5 0%, rgba(87, 176, 245, 0) 70%);
    top: -160px;
    right: -80px;
    animation: orbDrift1 22s ease-in-out infinite;
}

.lp-orb--2 {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, #9BD4FF 0%, rgba(155, 212, 255, 0) 70%);
    bottom: -180px;
    left: -100px;
    animation: orbDrift2 27s ease-in-out infinite;
}

.lp-orb--3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #C9E0F3 0%, rgba(201, 224, 243, 0) 70%);
    top: 40%;
    left: 45%;
    animation: orbDrift3 19s ease-in-out infinite;
}

@keyframes orbDrift1 {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(-70px, 50px, 0) scale(1.12); }
}

@keyframes orbDrift2 {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(80px, -60px, 0) scale(1.08); }
}

@keyframes orbDrift3 {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(-50px, -40px, 0) scale(1.2); }
}

/* 파티클 캔버스 */
.lp-hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: .75;
}

/* 커서 따라다니는 광원 */
.lp-hero-spot {
    position: absolute;
    width: 620px;
    height: 620px;
    left: 0;
    top: 0;
    z-index: 2;
    margin: -310px 0 0 -310px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 104, 182, .13) 0%, rgba(0, 104, 182, 0) 62%);
    opacity: 0;
    transition: opacity .5s ease;
    will-change: transform;
    pointer-events: none;
}

.lp-hero:hover .lp-hero-spot { opacity: 1; }

/* --- 히어로 진입 애니메이션 --- */
.reveal-on .lp-hero .hero-el {
    opacity: 0;
    transform: translateY(26px);
    transition:
        opacity .8s cubic-bezier(.16, 1, .3, 1),
        transform .8s cubic-bezier(.16, 1, .3, 1);
    transition-delay: var(--d, 0ms);
}

.reveal-on .lp-hero.is-in .hero-el {
    opacity: 1;
    transform: none;
}

/* 단어 단위 등장 */
.lp-hero h1 .line {
    display: block;
    overflow: hidden;
}

.lp-hero h1 .word {
    display: inline-block;
    white-space: pre;
}

.reveal-on .lp-hero h1 .word {
    opacity: 0;
    transform: translateY(105%) rotate(3deg);
    transition:
        opacity .9s cubic-bezier(.16, 1, .3, 1),
        transform .9s cubic-bezier(.16, 1, .3, 1);
    transition-delay: calc(var(--i, 0) * 55ms + 120ms);
}

.reveal-on .lp-hero.is-in h1 .word {
    opacity: 1;
    transform: none;
}

/* 브랜드 단어 그라디언트 + 광택 스윕 */
.lp-hero h1 em {
    background: linear-gradient(100deg, #0068B6 0%, #2F9BE8 45%, #0068B6 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: sheen 5.5s ease-in-out infinite;
}

@keyframes sheen {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* --- 히어로 우측 비주얼 --- */
.lp-hero-visual {
    position: relative;
    height: 380px;
    perspective: 1000px;
    will-change: transform;
}

.hv-card {
    position: absolute;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 16px;
    box-shadow:
        0 18px 40px rgba(16, 40, 80, .14),
        0 2px 6px rgba(16, 40, 80, .06);
    padding: 16px 18px;
    will-change: transform;
}

.hv-card--main {
    left: 0;
    top: 44px;
    width: 300px;
    animation: floatY 7s ease-in-out infinite;
}

.hv-card--fee {
    right: 6px;
    top: 0;
    width: 190px;
    animation: floatY 6s ease-in-out infinite .8s;
}

.hv-card--auto {
    right: 30px;
    bottom: 8px;
    width: 236px;
    animation: floatY 8s ease-in-out infinite .4s;
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

.hv-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--ink-3);
    letter-spacing: .02em;
}

.hv-value {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--ink);
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
}

.hv-value.is-brand { color: var(--brand); }

.hv-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.hv-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 800;
    color: #067647;
    background: #ECFDF3;
    border: 1px solid #ABEFC6;
    border-radius: 999px;
    padding: 3px 9px;
    white-space: nowrap;
}

.hv-chip i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #17B26A;
    animation: pulseDot 1.8s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .35; transform: scale(.7); }
}

.hv-bar {
    height: 6px;
    border-radius: 999px;
    background: #E9EEF5;
    overflow: hidden;
    margin-top: 12px;
}

.hv-bar span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #0068B6, #45A8EE);
    animation: barFill 4.5s cubic-bezier(.16, 1, .3, 1) infinite;
}

@keyframes barFill {
    0% { width: 0; }
    45%, 100% { width: 100%; }
}

/* ============================================================
   마퀴 (무한 흐름 띠)
   ============================================================ */
.lp-marquee {
    position: relative;
    margin-top: 56px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #fff;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.lp-marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 34s linear infinite;
}

.lp-marquee:hover .lp-marquee-track {
    animation-play-state: paused;
}

.lp-marquee-track span {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 0 22px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink-3);
    white-space: nowrap;
}

.lp-marquee-track span::after {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--brand-line);
}

@keyframes marquee {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-50%, 0, 0); }
}

/* ============================================================
   카드 인터랙션 (3D 틸트 + 커서 스포트라이트)
   ============================================================ */
.lp-stat,
.lp-feature {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: box-shadow .3s ease, border-color .3s ease;
}

.lp-stat::after,
.lp-feature::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s ease;
    background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%),
            rgba(0, 104, 182, .12), transparent 62%);
}

.lp-stat:hover::after,
.lp-feature:hover::after { opacity: 1; }

.lp-stat:hover,
.lp-feature:hover {
    border-color: var(--brand-line);
    box-shadow: 0 20px 44px rgba(16, 40, 80, .14);
}

.lp-tilt-inner {
    position: relative;
    z-index: 1;
    transform: translateZ(24px);
}

.lp-num {
    font-variant-numeric: tabular-nums;
}

/* 아이콘 hover 시 살짝 반응 */
.lp-feature-ico {
    transition: transform .35s cubic-bezier(.16, 1, .3, 1), background-color .3s ease;
}

.lp-feature:hover .lp-feature-ico {
    transform: translateY(-3px) scale(1.06);
    background: #DCEDFB;
}

/* ============================================================
   버튼: 자석 + 글로우
   ============================================================ */
.lp-btn {
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.lp-btn--primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 45%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent);
    transform: skewX(-18deg);
    animation: btnSweep 3.6s ease-in-out infinite;
}

@keyframes btnSweep {
    0% { left: -60%; }
    55%, 100% { left: 130%; }
}

.lp-btn--primary:hover {
    box-shadow: 0 12px 30px rgba(0, 104, 182, .38);
}

.lp-btn .lp-btn-label {
    position: relative;
    z-index: 1;
}

/* 헤더 CTA 도 같은 광택 스윕. header.css 보다 뒤에 로드되므로 여기서 얹는다. */
.header-cta {
    position: relative;
    overflow: hidden;
}

.header-cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 45%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent);
    transform: skewX(-18deg);
    animation: btnSweep 3.6s ease-in-out infinite;
}

.header-cta-label {
    position: relative;
    z-index: 1;
}

/* ============================================================
   섹션 제목 강조 라인
   ============================================================ */
.lp-h2 {
    position: relative;
}

.lp-h2::after {
    content: "";
    display: block;
    width: 0;
    height: 3px;
    margin-top: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, #0068B6, #7BD0FF);
    transition: width 1s cubic-bezier(.16, 1, .3, 1) .15s;
}

.lp-h2.is-visible::after { width: 64px; }

/* ============================================================
   표: 행 순차 등장
   ============================================================ */
.reveal-on :where(.lp-table tbody tr) {
    opacity: 0;
    transform: translateY(12px);
    transition:
        opacity .55s cubic-bezier(.16, 1, .3, 1),
        transform .55s cubic-bezier(.16, 1, .3, 1);
    transition-delay: var(--reveal-delay, 0ms);
}

.reveal-on .lp-table tbody tr.is-visible {
    opacity: 1;
    transform: none;
}

.lp-table tbody tr {
    transition: background-color .2s ease;
}

.lp-table tbody tr:hover td {
    background-color: #F4F8FC;
}

.lp-table tr.is-total:hover td {
    background-color: #DDEBF7;
}


/* ============================================================
   서비스 흐름 - 스크롤 피닝 + 수평 트랙
   ------------------------------------------------------------
   기본 상태는 세로 스택이다. JS 가 없거나 화면이 좁거나 모션 축소
   설정이면 그대로 세로로 읽힌다.
   조건이 맞을 때만 JS 가 .is-pinned 를 붙여 화면 고정 + 가로 이동으로
   전환한다. 스크롤량을 0~1 진행률로 바꿔 트랙을 translateX 로 민다.
   ============================================================ */

    .fs {
    /* 카드 한 장을 넘기는 데 쓰는 스크롤량. 키우면 느리게, 줄이면 빠르게. */
    --fs-rate: 42vh;

    position: relative;
    /* 카드가 흰색이므로 섹션은 그보다 확실히 어두운 톤이어야 카드가 떠 보인다 */
    background: #E8EFF7;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

/* 두 스테이지가 붙어 있을 때 번갈아 쓰는 변형.
   카드가 흰색이므로 섹션 배경은 반드시 흰색이 아니어야 한다.
   (흰 배경 + 흰 카드 = 대비 1.00 으로 카드가 사라진다) */
.fs--plain {
    background: #F2F6FB;
}

.fs-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 64px var(--pad);
}

.fs-track {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.fs-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 20px 22px;
}

/* 카드 내부 글자색은 변수로 받는다.
   비활성 카드는 opacity 로 죽이지 않고 이 변수만 바꿔 흐리게 만든다.
   opacity 를 쓰면 배경까지 같이 투명해져 글자 대비가 함께 무너진다. */
.fs-card {
    --c-num: var(--brand);
    --c-title: var(--ink);
    --c-body: var(--ink-2);
}

.fs-num {
    display: block;
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    color: var(--c-num);
}

.fs-title {
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 800;
    margin: 6px 0 0;
    line-height: 1.35;
    color: var(--c-title);
}

.fs-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--c-body);
    margin: 10px 0 0;
}

.fs-actors {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 14px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--brand);
}

.fs-arrow {
    color: var(--ink-3);
}

/* 신청 절차 카드의 담당 표시 */
.fs-by {
    display: inline-flex;
    align-items: center;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--brand);
    background: var(--brand-soft);
    border: 1px solid var(--brand-line);
    border-radius: 999px;
    padding: 3px 11px;
}

.fs-foot {
    display: none;
}

/* ---------- 피닝 모드 ---------- */

/* 총 높이 = 화면 1개분 + 단계 수 × --fs-rate. 이 구간을 다 지나야 섹션을 빠져나간다. */
.fs.is-pinned {
    height: calc(100vh + var(--fs-steps, 8) * var(--fs-rate));
}

.fs.is-pinned .fs-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.fs.is-pinned .fs-inner {
    width: 100%;
    padding: 88px var(--pad) 40px;
}

.fs.is-pinned .fs-head {
    margin-bottom: 8px;
}

.fs.is-pinned .fs-track {
    display: flex;
    gap: 24px;
    transform: translate3d(var(--fs-x, 0px), 0, 0);
    will-change: transform;
}

/* 비활성 카드: 크기 · 그림자 · 글자색으로만 뒤로 물린다.
   배경은 계속 불투명한 흰색이라 섹션 배경과 확실히 분리된다. */
.fs.is-pinned .fs-card {
    flex: 0 0 320px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    transform: scale(.95);
    background: #fff;
    border-color: #C8D4E3;
    box-shadow: 0 2px 6px rgba(16, 40, 80, .05);
    --c-num: var(--ink-3);
    --c-title: var(--ink-2);
    --c-body: #5C6980;
    transition:
        transform .45s cubic-bezier(.16, 1, .3, 1),
        border-color .45s ease,
        box-shadow .45s ease,
        color .45s ease;
}

.fs.is-pinned .fs-card.is-active {
    transform: none;
    /* --brand-line 은 톤 배경 위에서 비활성 테두리보다 오히려 옅어진다.
       활성 카드가 더 또렷해야 하므로 한 단계 진한 값을 쓴다. */
    border-color: #9CC8EA;
    box-shadow: 0 22px 50px rgba(16, 40, 80, .16);
    --c-num: var(--brand);
    --c-title: var(--ink);
    --c-body: var(--ink-2);
}

/* 담당 칩도 활성 카드에서만 브랜드 컬러로 살아난다 */
.fs.is-pinned .fs-card .fs-by,
.fs.is-pinned .fs-card .fs-actors {
    color: var(--ink-3);
}

.fs.is-pinned .fs-card .fs-by {
    background: var(--bg-soft);
    border-color: var(--line);
}

.fs.is-pinned .fs-card.is-active .fs-by,
.fs.is-pinned .fs-card.is-active .fs-actors {
    color: var(--brand);
}

.fs.is-pinned .fs-card.is-active .fs-by {
    background: var(--brand-soft);
    border-color: var(--brand-line);
}

.fs.is-pinned .fs-actors {
    margin-top: auto;
}

.fs.is-pinned .fs-foot {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
}

.fs-progress {
    flex: 1;
    height: 3px;
    background: var(--line);
    border-radius: 999px;
    overflow: hidden;
}

.fs-progress span {
    display: block;
    height: 100%;
    width: 100%;
    transform: scaleX(0);
    transform-origin: 0 50%;
    background: linear-gradient(90deg, #0068B6, #7BD0FF);
}

.fs-count {
    font-family: var(--font-head);
    font-size: 14px;
    color: var(--ink-3);
    font-variant-numeric: tabular-nums;
}

.fs-count b {
    color: var(--ink);
}

/* ============================================================
   신청 유도 배너
   ============================================================ */
.lp-cta-band {
    background: linear-gradient(160deg, #06355C 0%, #0068B6 55%, #1E86D6 100%);
    color: #fff;
    text-align: center;
}

.lp-cta-band-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 72px var(--pad);
}

.lp-cta-band-title {
    font-family: var(--font-head);
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 0 0 10px;
}

.lp-cta-band-sub {
    font-size: 16px;
    color: rgba(255, 255, 255, .82);
    margin: 0 0 28px;
}

.lp-cta-band .lp-btn--primary {
    background: #fff;
    color: var(--brand-dark);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .22);
}

.lp-cta-band .lp-btn--primary:hover {
    background: #F2F8FD;
}

.lp-cta-band .lp-btn--primary::before {
    background: linear-gradient(100deg, transparent, rgba(0, 104, 182, .18), transparent);
}

/* ============================================================
   신청 모달
   ------------------------------------------------------------
   기본(JS 없음)에서는 평범한 섹션으로 렌더된다.
   .has-js 가 붙어야 오버레이로 전환되고, .is-open 일 때만 보인다.
   ============================================================ */
.am-backdrop {
    display: none;
}

.am-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.am-title {
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 800;
    margin: 0;
}

.am-close,
.am-step-badge,
.am-back {
    display: none;
}

/* JS 없을 때는 두 단계를 그냥 이어서 보여준다 */
.am-t2 {
    display: none;
}

.am-body {
    padding: 0;
}

.am-caution-note {
    font-size: 13.5px;
    color: var(--ink-3);
    margin: 14px 2px 0;
}

.am-step-foot {
    display: none;
}

.am-caution {
    background: var(--warn-soft);
    border: 1px solid var(--warn-line);
    border-radius: var(--r-lg);
    padding: 20px 22px;
    margin-bottom: 24px;
}

.am-caution h3 {
    font-family: var(--font-head);
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 800;
    color: var(--warn);
}

.am-caution ul {
    margin: 0;
    padding-left: 18px;
    color: var(--ink-2);
    font-size: 14px;
    line-height: 1.65;
}

.am-caution li {
    margin-bottom: 6px;
}

.am-caution li:last-child {
    margin-bottom: 0;
}

/* ---------- JS 있을 때: 오버레이 모달 ---------- */
.has-js .am {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.has-js .am.is-open {
    display: flex;
}

.has-js .am-backdrop {
    display: block;
    position: absolute;
    inset: 0;
    background: rgba(10, 22, 40, .55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    animation: amFade .25s ease both;
}

.has-js .am-dialog {
    position: relative;
    width: 100%;
    max-width: 720px;
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--r-lg);
    box-shadow: 0 30px 70px rgba(10, 22, 40, .34);
    overflow: hidden;
    animation: amRise .35s cubic-bezier(.16, 1, .3, 1) both;
}

.has-js .am-head {
    flex: 0 0 auto;
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.has-js .am-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--ink-2);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.has-js .am-close:hover {
    background: var(--bg-soft);
    color: var(--ink);
    border-color: var(--ink-3);
}

.has-js .am-body {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 24px;
}

/* ---------- 2단계 전환 ---------- */
.has-js .am-head-text {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.has-js .am-step-badge {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    font-family: var(--font-head);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ink-3);
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 3px 11px;
}

.has-js .am-step-badge b {
    color: var(--brand);
}

/* 현재 단계만 보인다 */
.has-js .am .am-step {
    display: none;
}

.has-js .am[data-step="1"] .am-step--caution,
.has-js .am[data-step="2"] .am-step--form {
    display: block;
    animation: amStepIn .3s cubic-bezier(.16, 1, .3, 1) both;
}

.has-js .am[data-step="1"] .am-t2,
.has-js .am[data-step="2"] .am-t1 {
    display: none;
}

.has-js .am[data-step="1"] .am-t1,
.has-js .am[data-step="2"] .am-t2 {
    display: inline;
}

.has-js .am-step-foot {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.has-js .am-step-foot .lp-btn {
    flex: 1;
}

.has-js .am-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 18px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink-3);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: color .15s ease;
}

.has-js .am-back:hover {
    color: var(--brand);
}

@keyframes amStepIn {
    from { opacity: 0; transform: translateX(14px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .has-js .am[data-step="1"] .am-step--caution,
    .has-js .am[data-step="2"] .am-step--form {
        animation: none;
    }
}

/* 모달 안에서는 신청 섹션의 배경·여백을 걷어낸다 */
.has-js .am .lp-apply {
    background: none;
    border: 0;
    overflow: visible;
}

.has-js .am .lp-apply::before {
    display: none;
}

.has-js .am .lp-apply-inner {
    max-width: none;
    padding: 0;
}

.has-js .am .lp-card {
    box-shadow: none;
    border: 0;
    padding: 0;
}

.has-js .am #epione-header {
    display: none;
}

@keyframes amFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes amRise {
    from { opacity: 0; transform: translateY(18px) scale(.98); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
    .has-js .am {
        padding: 0;
        align-items: flex-end;
    }

    .has-js .am-dialog {
        max-width: none;
        max-height: 92vh;
        border-radius: var(--r-lg) var(--r-lg) 0 0;
    }

    .has-js .am-body {
        padding: 20px 16px 32px;
    }

    .lp-cta-band-title {
        font-size: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .has-js .am-backdrop,
    .has-js .am-dialog {
        animation: none;
    }
}

/* ============================================================
   신청 섹션 CTA 강조
   ============================================================ */
.lp-apply { position: relative; overflow: hidden; }

.lp-apply::before {
    content: "";
    position: absolute;
    top: -140px;
    left: 50%;
    width: 620px;
    height: 320px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(0, 104, 182, .14), transparent 65%);
    pointer-events: none;
}

.epione-login-button {
    position: relative;
    overflow: hidden;
}

.epione-login-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 45%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
    transform: skewX(-18deg);
    animation: btnSweep 3.6s ease-in-out infinite;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
    .lp-hero-inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .lp-hero-visual {
        height: 320px;
        max-width: 460px;
    }

    .hv-card--main { top: 60px; }
}

@media (max-width: 640px) {
    .lp-hero-visual {
        height: 280px;
        transform: scale(.88);
        transform-origin: top left;
    }

    .hv-card--main { width: 260px; }
    .hv-card--fee { width: 160px; }
    .hv-card--auto { width: 200px; }

    .lp-marquee { margin-top: 40px; }
}

/* 모션 축소 설정: 전부 정지 */
@media (prefers-reduced-motion: reduce) {

    .lp-orb,
    .hv-card,
    .hv-chip i,
    .hv-bar span,
    .lp-marquee-track,
    .lp-hero h1 em,
    .lp-btn--primary::before,
    .header-cta::before,
    .epione-login-button::before {
        animation: none !important;
    }

    .lp-hero-canvas,
    .lp-hero-spot { display: none; }

    .lp-h2::after { width: 64px; transition: none; }
}
