/* =========================================================================
   이용안내 (guide) — step-based layout
   sticky 2-tab nav · STEP cards · inline key-issuance walkthrough · CTA
   ========================================================================= */

/* sticky step tab bar — shared .gstep-tabs component lives in chrome.css */
.guide-steps { padding-block: clamp(32px, 4vw, 48px) var(--space-section); display: flex; flex-direction: column; gap: 22px; }
@media (max-width: 760px) {
  .guide-steps { padding-top: 0; padding-bottom: 30px; }
}

/* step card */
.gcard { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-card); overflow: hidden; scroll-margin-top: 150px; }
.gcard__head { display: flex; align-items: center; gap: 16px; padding: 24px 28px; border-bottom: 1px solid var(--border); }
.gcard__titles { flex: 1; min-width: 0; }
.gcard__titles .k { display: block; font-family: var(--font-sans); font-size: var(--fs-text-sm); line-height: var(--lh-text-sm); color: var(--text-accent); letter-spacing: 0.04em; font-weight: 600; }
.gcard__titles h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: 800; letter-spacing: -0.02em; margin-top: 3px; }
.gcard__req { font-size: var(--fs-badge); line-height: var(--lh-badge); font-weight: 700; color: #ff5f6e; background: rgba(255,95,110,0.12); border: 1px solid rgba(255,95,110,0.3); padding: 5px 12px; border-radius: var(--r-pill); white-space: nowrap; flex-shrink: 0; }
.gcard__body { padding: 26px 28px 30px; }

/* info callout — uses shared .callout (subpage.css); guide-specific tweaks below */
.callout p code { font-family: var(--font-mono); font-size: var(--fs-code-chip); line-height: var(--lh-code-chip); color: var(--chip-text); background: var(--chip-bg); padding: 2px 7px; border-radius: 5px; border: 1px solid var(--chip-border); }
:root[data-theme="dark"] .callout__body p { color: #ffffff}
/* sub-block (비대면 계좌 개설 진행) */
.gsub { }
.gsub__title { display: flex; align-items: center; gap: 10px; padding-top: 10px; font-size: var(--fs-text-md); line-height: var(--lh-text-md); font-weight: 700; margin-bottom: 14px; letter-spacing: -0.01em; }
.gsub__title .b { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-family: var(--font-sans); font-size: var(--fs-no); line-height: var(--lh-no); font-weight: 700; background: var(--accent-prime); color: #fff; flex-shrink: 0; }
.gsub__desc { font-size: var(--fs-text-md); line-height: var(--lh-text-md); color: var(--text-2); margin-bottom: 16px; }
.gcheck { display: flex; flex-direction: column; gap: 11px; margin-bottom: 24px; }
.gcheck li { display: flex; align-items: center; gap: 11px; font-size: var(--fs-text-md); line-height: var(--lh-text-md); color: var(--text-2); }
.gcheck li svg { width: 19px; height: 19px; color: var(--color-success); flex-shrink: 0; }
.gcheck li b { color: var(--text); font-weight: 600; }

/* ============ inline key-issuance walkthrough ============ */
.kiw { margin-top: 4px; }
.kiw__head { padding: 20px 0 0 14px; }
.kiw__head h3 { display: flex; align-items: center; gap: 10px; font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 800; letter-spacing: -0.01em; }
.kiw__head h3::before { content: ""; width: 3px; height: 18px; border-radius: 2px; background: var(--accent-prime); flex-shrink: 0; }
.kiw__head p { font-size: var(--fs-text-md); line-height: var(--lh-text-md); color: var(--text-2); margin-top: 4px; }
.kiw__body { display: flex; align-items: stretch; gap: 0; margin-top: 20px; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.kiw__rail { width: 220px; flex-shrink: 0; display: flex; flex-direction: column; gap: 2px; padding: 16px 9px 16px 8px; border-right: 1px solid var(--border); }
.kiw__rail-item { display: flex; align-items: center; gap: 11px; width: 100%; padding: 11px 10px; border-radius: var(--r-sm); text-align: left; color: var(--text-dim); background: transparent; transition: background-color 0.18s, color 0.18s; }
.kiw__rail-item:hover { background: var(--surface-hover); }
.kiw__rail-item.active { background: var(--surface-blue); color: var(--text); }
.kiw__rail-num { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-family: var(--font-sans); font-size: var(--fs-no); line-height: var(--lh-no); font-weight: 700; background: var(--bg-gray); border: 1px solid var(--border); color: var(--text-dim); flex-shrink: 0; transition: background-color 0.18s, color 0.18s, border-color 0.18s; }
.kiw__rail-item.active .kiw__rail-num { background: var(--accent-prime); border-color: transparent; color: #fff; }
.kiw__rail-label { font-size: var(--fs-text-md); line-height: var(--lh-text-md); font-weight: 600; }
.kiw__content { flex: 1; min-width: 0; padding: 24px 16px; }
.kiw__step { display: none; }
.kiw__step.active { display: block; animation: kiwFade 0.34s var(--ease-out); }
@keyframes kiwFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.kiw__step-head { display: flex; align-items: center; gap: 8px; }
.kiw__step-num { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-family: var(--font-sans); font-size: var(--fs-no); line-height: var(--lh-no); font-weight: 700; background: var(--accent-prime); color: #fff; flex-shrink: 0; }
.kiw__step-head h4 { font-size: var(--fs-title-sub); line-height: var(--lh-title-sub); font-weight: 800; letter-spacing: -0.02em; }
.kiw__step-desc { font-size: var(--fs-text-md); line-height: var(--lh-text-md); color: var(--text-2); margin-top: 10px; }
.kiw__step-desc code { font-family: var(--font-mono); font-size: var(--fs-code-chip); line-height: var(--lh-code-chip); color: var(--chip-text); background: var(--chip-bg); padding: 2px 7px; border-radius: 5px; border: 1px solid var(--chip-border); }
.kiw__step-desc b { color: var(--text); font-weight: 700; }
.kiw__step-desc .seq { display: inline-flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.kiw__step-desc .seq .arr { color: var(--text-inactive); }
.kiw__shot { position: relative; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--border-strong); background: #f4f6fb; cursor: zoom-in; margin-top: 18px; }
.kiw__shot img { width: 100%; display: block; }
.kiw__shot-zoom { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: rgba(6,8,15,0.66); border: 1px solid rgba(255,255,255,0.18); color: #fff; opacity: 0; transition: opacity 0.2s; }
.kiw__shot:hover .kiw__shot-zoom { opacity: 1; }
.kiw__shot-zoom svg { width: 17px; height: 17px; }
.kiw__cap { font-size: var(--fs-text-sm); line-height: var(--lh-text-sm); color: var(--text-dim); margin-top: 10px; display: flex; align-items: center; gap: 7px; }
.kiw__cap svg { width: 14px; height: 14px; color: var(--accent-prime); flex-shrink: 0; }
.kiw__warn { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid rgba(240,176,114,0.34); background: rgba(240,176,114,0.1); margin-top: 18px; }
.kiw__warn svg { width: 18px; height: 18px; color: var(--color-warning); flex-shrink: 0; margin-top: 1px; }
.kiw__warn p { font-size: var(--fs-text-sm); line-height: var(--lh-text-sm); color: var(--text-2); }
.kiw__foot { display: flex; align-items: center; justify-content: center; padding: 16px 26px; margin-top: 4px; }
.kiw__note { display: flex; gap: 11px; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid rgba(240,176,114,0.34); background: rgba(240,176,114,0.1); flex: 1; min-width: 240px; }
.kiw__note svg { width: 17px; height: 17px; color: var(--color-warning); flex-shrink: 0; margin-top: 1px; }
.kiw__note p { font-size: var(--fs-code-chip); line-height: var(--lh-code-chip); color: var(--text-2); }
.kiw__nav { display: flex; align-items: center; gap: 8px; }
.kiw__nav-btn { display: inline-flex; align-items: center; gap: 6px; min-width: 80px; justify-content: center; padding: 8px 20px; border-radius: var(--r-pill); font-size: var(--fs-text-sm); line-height: var(--lh-text-sm); font-weight: 600; background: transparent; color: var(--text); border: 1px solid var(--border-strong); transition: border-color 0.18s, background-color 0.18s, opacity 0.18s; }
.kiw__nav-btn svg { width: 15px; height: 15px; }
.kiw__nav-btn:hover:not(:disabled) { border-color: var(--border-glow); background: var(--surface); }
.kiw__nav-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.kiw__nav-count { font-family: var(--font-sans); font-size: var(--fs-text-sm); line-height: var(--lh-text-sm); color: var(--text-dim); padding: 0 6px; min-width: 44px; text-align: center; }

/* CTA card (step 3) */
.gcta { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 30px 32px; margin-top: 10px; background: linear-gradient(120deg, #042a70, var(--accent-prime) 55%, #1e6cd1); border: 1px solid rgba(255,255,255,0.14); box-shadow: 0 28px 70px -34px rgba(0,40,100,0.8); display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.gcta__grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask-image: radial-gradient(100% 100% at 85% 0%, #000, transparent 70%); mask-image: radial-gradient(100% 100% at 85% 0%, #000, transparent 70%); }
.gcta__tx { position: relative; z-index: 1; }
.gcta__tx h3 { color: #fff; font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 800; letter-spacing: -0.02em; }
.gcta__tx p { color: rgba(233,240,255,0.82); font-size: var(--fs-text-md); line-height: var(--lh-text-md); margin-top: 6px; }
.gcta .btn-white { position: relative; z-index: 1; }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .guide-steps { gap: 10px; }
  .kiw__head { padding: 16px 0 12px; }
  .kiw__head h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); }
  .kiw__body { flex-direction: column; margin-top: 16px; border: none; border-radius: 0; }
  .kiw__rail { display: none; }
  .kiw__content { padding: 0; }
  .kiw__foot { padding: 14px 0 0; }
  .kiw__nav-btn { min-width: 72px; padding: 8px 16px; }
  .kiw__warn svg { display: none; }
  .kiw__warn::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: var(--color-warning); flex-shrink: 0; margin-top: 9px; }
  .gcard { margin-inline: calc(-1 * var(--gutter)); border-radius: 0; border-left: none; border-right: none; }
  .gcard__head { padding: 20px; gap: 12px; }
  .gcard__req { display: none; }
  .gcard__body { padding: 16px 16px 24px; }
  .gcta { flex-wrap: nowrap; align-items: center; padding: 20px 15px 20px 20px; gap: 10px; }
  .gcta__tx { flex: 1 1 0%; min-width: 0; }
  .gcta__tx h3 { font-size: var(--fs-title-sub); line-height: var(--lh-title-sub); letter-spacing: -0.024em; white-space: nowrap; }
  .gcta__tx p { font-size: 0.875rem; line-height: 1.45; letter-spacing: -0.01em; margin-top: 6px; }
  .gcta__link { background: none; border: none; box-shadow: none; padding: 0; flex-shrink: 0; }
  .gcta__link:hover { transform: none; box-shadow: none; color: #fff; }
  .gcta__link-label { display: none; }
  .gcta .gcta__link-ic { width: 27px; height: 27px; color: #fff; }
}

/* lightbox */
.kiw-lbx { position: fixed; inset: 0; z-index: 230; display: flex; align-items: center; justify-content: center; padding: 32px; opacity: 0; pointer-events: none; transition: opacity 0.26s var(--ease); }
.kiw-lbx.show { opacity: 1; pointer-events: auto; }
.kiw-lbx__bd { position: absolute; inset: 0; background: rgba(4,7,14,0.88); backdrop-filter: blur(6px); }
.kiw-lbx__img { position: relative; z-index: 1; max-width: 94vw; max-height: 90vh; border-radius: var(--r-md); border: 1px solid var(--border-strong); box-shadow: var(--shadow-float); }
.kiw-lbx__x { position: absolute; top: 22px; right: 22px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-solid); border: 1px solid var(--border-strong); color: var(--text); }
.kiw-lbx__x svg { width: 20px; height: 20px; }
