.home-overview-track, .home-overview-stage, .home-overview-canvas { position: relative; }
.home-overview.is-payment-story .home-overview-heading,
.home-checkin.is-checkin-story .home-checkin-heading { position: sticky; z-index: 8; top: var(--story-heading-top); margin-bottom: 12px; background: var(--bg-soft); }
.home-checkin.is-checkin-story .home-checkin-heading { background: var(--bg); }
.home-overview.is-payment-story .home-overview-heading .home-eyebrow,
.home-checkin.is-checkin-story .home-checkin-heading .home-eyebrow { margin: 0 0 6px; font-size: 10px; }
.home-overview.is-payment-story .home-overview-heading h2,
.home-checkin.is-checkin-story .home-checkin-heading h2 { margin: 0 0 8px; font-size: clamp(23px,2.8vw,32px); line-height: 1.3; }
.home-overview.is-payment-story .home-overview-heading > p:not(.home-eyebrow),
.home-checkin.is-checkin-story .home-checkin-heading > p:not(.home-eyebrow) { margin: 0; font-size: 13px; line-height: 1.6; }
.home-overview.is-static-story .home-overview-heading,
.home-checkin.is-static-checkin .home-checkin-heading { position: relative; top: auto; }
.home-payment-dialog, .home-front-payment, .home-payment-connection, .home-payment-caption { display: none; }
.home-overview.is-payment-story .home-overview-track { height: calc(var(--overview-stage-height) + var(--overview-story-distance)); }
.home-overview.is-payment-story .home-overview-stage { position: sticky; top: var(--overview-pin-top); height: var(--overview-stage-height); }
.home-overview.is-payment-story .home-overview-canvas { height: var(--overview-body-height); isolation: isolate; }
.home-overview.is-payment-story .home-overview-figure { width: min(100%,var(--overview-program-width)); opacity: calc(1 - var(--payment-dialog) * .68); filter: blur(calc(var(--payment-dialog) * 1px)); }
.home-overview.is-payment-story.is-static-story .home-overview-stage { position: relative; top: auto; }
.home-overview.is-payment-story.is-static-story .home-overview-track { height: var(--overview-stage-height); }
.home-payment-dialog, .home-front-device { color: #27344a; font-family: "Pretendard Variable","Pretendard",sans-serif; }
.home-overview.is-payment-story .home-payment-dialog { display: block; position: absolute; z-index: 3; top: 50%; left: 50%; width: 364px; max-width: calc(100% - 16px); border: 1px solid #b8c6d8; border-radius: 9px; background: #fff; box-shadow: 0 20px 50px rgba(28,47,74,.2); opacity: var(--payment-dialog); transform: translate(-50%,-50%) translateX(calc(var(--payment-terminal) * -152px)) translateY(calc((1 - var(--payment-dialog)) * 22px)); pointer-events: none; }
.home-payment-titlebar { display: flex; justify-content: space-between; align-items: center; height: 25px; padding: 0 10px; border-bottom: 1px solid #dce3eb; border-radius: 8px 8px 0 0; background: #f2f4f7; color: #4e5968; font-size: 11px; }
.home-payment-titlebar > span:last-child { font-size: 18px; }
.home-payment-form { padding: 10px 12px 12px; }
.home-payment-student { display: grid; justify-items: center; gap: 2px; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px dashed #c7d0db; }
.home-payment-student small { color: #6488ba; font-size: 10px; line-height: 1.2; }
.home-payment-student strong { color: #172331; font-size: 22px; line-height: 1.2; }
.home-payment-student > span { color: #3483cc; font-size: 12px; font-weight: 600; line-height: 1.3; }
.home-payment-course { display: flex; align-items: center; justify-content: space-between; height: 29px; margin-bottom: 10px; padding: 0 9px; border: 1px solid #b7c8dc; border-radius: 3px; background: #f2f7fc; color: #386b9c; font-size: 12px; font-weight: 600; }
.home-payment-fields { display: grid; gap: 6px; margin: 0; }
.home-payment-fields > div { display: grid; grid-template-columns: 76px minmax(0,1fr); gap: 7px; min-height: 27px; }
.home-payment-fields dt { display: flex; align-items: center; padding: 0 7px; background: #f3f4f6; color: #697586; font-size: 11px; }
.home-payment-fields dd { display: flex; align-items: center; justify-content: space-between; min-width: 0; margin: 0; padding: 0 8px; border: 1px solid #d0d9e4; border-radius: 2px; font-size: 12px; }
.home-payment-fields .home-payment-field-amount { justify-content: flex-end; gap: 3px; color: #e86645; font-size: 16px; font-weight: 700; }
.home-payment-field-amount small { font-size: 11px; font-weight: 400; }
.home-payment-fields .home-payment-methods { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; padding: 0; border: 0; }
.home-payment-methods > span { display: grid; place-items: center; min-width: 0; border: 1px solid #d0d9e4; border-radius: 3px; color: #657286; font-size: 11px; }
.home-payment-methods .is-card { border-color: #459af8; background: #eaf4ff; color: #267ed8; font-weight: 700; }
.home-payment-form .home-payment-request-note { display: grid; gap: 3px; margin: 10px 0 0; padding: 7px 9px; border: 1px solid #d6e7f0; border-radius: 5px; background: #eef7fb; color: #5c7c92; font-size: 10px; line-height: 1.4; }
.home-payment-request-note strong { color: #3a7da5; font-size: 11px; }
.home-payment-actions { display: flex; justify-content: flex-end; gap: 6px; margin-top: 10px; font-size: 11px; }
.home-payment-request, .home-payment-close { position: relative; display: grid; place-items: center; min-width: 90px; height: 30px; border: 1px solid #c5d2e2; border-radius: 4px; }
.home-payment-request { overflow: visible; border-color: #3182f6; background: #edf5ff; color: #2676cc; box-shadow: inset 0 0 0 calc(var(--payment-request) * 2px) rgba(49,130,246,.18); }
.home-payment-request::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(49,130,246,.12); transform: scaleX(var(--payment-request)); transform-origin: left; }
.home-payment-request > span { position: relative; }
.home-payment-close { background: #fff; color: #718096; }
.home-payment-cursor { position: absolute; right: -5px; bottom: -10px; width: 20px; height: 24px; fill: #fff; stroke: #34465d; stroke-width: 1.5; opacity: var(--payment-cursor); transform: translate(calc((1 - var(--payment-request)) * 18px),calc((1 - var(--payment-request)) * 14px)); }
.home-overview[data-payment-phase="approved"] .home-payment-request { border-color: #41ad83; background: #e6f6ee; color: #25825e; }
.home-overview.is-payment-story .home-payment-connection { display: flex; position: absolute; z-index: 2; top: 48%; left: calc(50% + 40px); flex-direction: column; align-items: center; gap: 8px; color: #6b88ad; font-size: 10px; opacity: var(--payment-terminal); transform: translateY(-50%); pointer-events: none; }
.home-payment-connection > svg { display: block; width: 84px; height: 14px; fill: none; stroke: #8eaed6; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.home-overview.is-payment-story .home-front-payment { display: block; position: absolute; z-index: 4; top: 50%; left: calc(50% + 150px); width: 244px; height: 420px; opacity: var(--payment-terminal); transform: translateY(-50%) translateX(calc((1 - var(--payment-terminal)) * 36px)) scale(var(--payment-device-scale,1)); pointer-events: none; }
.home-front-device { position: relative; z-index: 1; width: 224px; margin: 0 auto; padding: 15px 14px 20px; border: 1px solid #d8e1ec; border-radius: 23px 23px 19px 19px; background: linear-gradient(120deg,#fff 55%,#e8edf4); box-shadow: inset 0 0 0 4px #f7f9fc,0 16px 32px rgba(26,47,77,.14); }
.home-front-camera { display: flex; align-items: center; width: 46px; height: 7px; margin: 0 auto 12px; padding: 0 7px; border-radius: 5px; background: #455268; }
.home-front-camera i { width: 3px; height: 3px; border-radius: 50%; background: #90ce5a; box-shadow: 0 0 4px #90ce5a; }
.home-front-screen { position: relative; height: 238px; overflow: hidden; border: 1px solid #d9e5f4; border-radius: 10px; background: linear-gradient(165deg,#edf5ff,#fff 60%); }
.home-front-wordmark { position: absolute; top: 14px; left: 0; right: 0; display: flex; align-items: center; justify-content: center; gap: 3px; }
.home-front-wordmark img { width: 26px; height: 26px; object-fit: contain; }
.home-front-wordmark strong { color: #283a53; font-size: 20px; line-height: 1; letter-spacing: -.06em; }
.home-front-waiting, .home-front-processing, .home-front-approved { position: absolute; inset: 58px 8px 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.home-front-waiting small { color: #72869e; font-size: 11px; }
.home-front-waiting > strong { margin-top: 7px; color: #264a7b; font-size: 29px; line-height: 1.4; letter-spacing: -.05em; }
.home-front-waiting > strong > span { margin-left: 2px; font-size: 13px; font-weight: 500; }
.home-front-waiting p { margin: 15px 0 10px; color: #425b7c; font-size: 13px; font-weight: 600; }
.home-front-card-guide { color: #8294aa; font-size: 10px; }
.home-front-processing, .home-front-approved { display: none; }
.home-front-screen[data-front-state="processing"] .home-front-waiting, .home-front-screen[data-front-state="approved"] .home-front-waiting { display: none; }
.home-front-screen[data-front-state="processing"] .home-front-processing, .home-front-screen[data-front-state="approved"] .home-front-approved { display: flex; }
.home-front-processing-ring { width: 42px; height: 42px; margin-bottom: 16px; border: 4px solid #d9e9ff; border-top-color: #3182f6; border-right-color: #3182f6; border-radius: 50%; transform: rotate(calc(var(--payment-approval) * 240deg)); }
.home-front-processing strong { color: #36557b; font-size: 16px; }
.home-front-processing p { margin: 9px 0 0; color: #8294aa; font-size: 11px; }
.home-front-approved svg { width: 54px; height: 54px; margin-bottom: 12px; }
.home-front-approved svg circle { fill: #e1f5eb; }
.home-front-approved svg path { fill: none; stroke: #30a875; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: calc(40 * (1 - var(--payment-approval))); }
.home-front-approved strong { color: #25845e; font-size: 22px; }
.home-front-approved p { margin: 7px 0; color: #354d69; font-size: 18px; font-weight: 700; }
.home-front-approved > span { color: #7a8ca1; font-size: 10px; }
.home-front-reader { position: relative; z-index: 4; width: 124px; height: 9px; margin: 16px auto 0; border: 2px solid #9ba8b7; border-radius: 6px; background: #354457; box-shadow: inset 0 2px 3px rgba(0,0,0,.2); }
.home-front-card-path { position: absolute; z-index: 3; top: 50%; left: 50%; width: 90px; height: 135px; overflow: hidden; transform: translateX(-50%); opacity: var(--payment-card-visible); }
.home-front-bank-card { position: relative; width: 82px; height: 106px; margin: 0 auto; padding: 12px 8px; border: 1px solid #8bb8ef; border-radius: 7px; background: linear-gradient(145deg,#b5dcff,#5d98e0); box-shadow: 0 5px 12px rgba(45,86,140,.18); color: #f8fbff; transform: translateY(calc(22px - var(--payment-card-insert) * 106px)); }
.home-front-bank-card > span { font-size: 8px; font-weight: 700; letter-spacing: .04em; }
.home-front-bank-card i { display: block; width: 19px; height: 16px; margin-top: 14px; border: 1px solid #b79b57; border-radius: 3px; background: linear-gradient(135deg,#f6e4ad,#d1b56f); }
.home-front-bank-card small { position: absolute; bottom: 10px; left: 8px; font-size: 10px; letter-spacing: .06em; }
.home-front-base { position: absolute; z-index: 0; top: 311px; left: 19px; width: 206px; height: 27px; border: 1px solid #d5dee9; border-radius: 10px 10px 20px 20px; background: linear-gradient(#edf2f8,#d4dfeb); box-shadow: 0 12px 20px rgba(39,62,92,.1); }
.home-overview.is-payment-story .home-payment-caption { display: flex; height: var(--overview-caption-height); flex-direction: column; align-items: center; justify-content: center; gap: 12px; opacity: var(--payment-caption,1); }
.home-payment-caption > p { min-height: 24px; margin: 0; color: var(--brand-600); font-size: 16px; font-weight: 700; line-height: 1.5; text-align: center; }
.home-payment-steps { display: flex; justify-content: center; gap: 24px; margin: 0; padding: 0; list-style: none; }
.home-payment-steps li { display: flex; align-items: center; gap: 6px; color: var(--ink-500); font-size: 11px; white-space: nowrap; }
.home-payment-steps li > span { display: grid; place-items: center; width: 19px; height: 19px; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); font-size: 10px; }
.home-payment-steps .is-current { color: var(--brand-600); font-weight: 700; }
.home-payment-steps .is-current > span { border-color: var(--brand-500); background: var(--brand-500); color: var(--bg); }
.home-payment-steps .is-done > span { border-color: var(--accent-green-line); background: var(--accent-green-soft); color: var(--accent-green-ink); }
@media (max-width: 860px) {
 .home-overview.is-payment-story .home-payment-dialog { opacity: calc(var(--payment-dialog) * (1 - var(--payment-dialog-retreat))); transform: translate(-50%,-50%) translateY(calc((1 - var(--payment-dialog)) * 18px)); }
 .home-overview.is-payment-story .home-payment-connection { display: none; }
 .home-overview.is-payment-story .home-front-payment { left: 50%; transform: translate(-50%,-50%) translateY(calc((1 - var(--payment-terminal)) * 26px)) scale(var(--payment-device-scale,1)); }
 .home-payment-caption > p { min-height: 42px; font-size: 14px; }
 .home-payment-steps { display: grid; width: 100%; max-width: 360px; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; }
 .home-payment-steps li { flex-direction: column; gap: 4px; font-size: 10px; }
}
@media (max-height: 740px) {
 .home-overview.is-payment-story .home-overview-heading > p,
 .home-checkin.is-checkin-story .home-checkin-heading > p,
 .home-overview.is-payment-story .home-payment-caption > p { display: none; }
 .home-overview.is-payment-story .home-overview-heading h2,
 .home-checkin.is-checkin-story .home-checkin-heading h2 { margin: 0; font-size: 24px; line-height: 1.25; }
}
