/* ===========================================================
   복구천사 - 라이선스 등록 가이드 페이지 전용 스타일
   =========================================================== */

/* --- Design Tokens --- */
:root {
  --bg: #ffffff;
  --text: #0b1220;
  --muted: #64748b;
  --line: #e2e8f0;
  --brand: #172554;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft: #eef2ff;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

/* --- Accessibility helper --- */
.sr-only,
.tab-section-title { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* --- Focus state (keyboard accessibility) --- */
.tab-btn:focus-visible,
.subnav a:focus-visible,
.link-manual:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 8px;
}

/* --- Hero --- */
.hero { padding: 50px 0 30px; text-align: left; }
.hero h1 { font-size: 36px; font-weight: 800; margin-bottom: 12px; color: var(--brand); letter-spacing: -.03em; }
.hero p { color: var(--muted); font-size: 1.05rem; }

/* --- Main Layout --- */
.section { padding: 40px 0 80px; }
.layout { display: flex; gap: 40px; align-items: flex-start; }
.content { flex: 1; min-width: 0; }
.support { width: 280px; flex-shrink: 0; position: sticky; top: 90px; }

/* --- Card Container --- */
.card { background: #fff; border-radius: var(--radius-lg); padding: 32px; box-shadow: 0 4px 24px rgba(0,0,0,.04); border: 1px solid rgba(79,70,229,.08); }

/* --- Tab Navigation --- */
.tab-nav { display: flex; background: #f1f5f9; padding: 6px; border-radius: var(--radius-md); margin-bottom: 30px; }
.tab-btn { flex: 1; padding: 14px; border-radius: var(--radius-sm); font-weight: 700; font-size: 16px; color: #64748b; background: transparent; border: 0; cursor: pointer; transition: all .2s; text-align: center; min-height: 44px; font-family: inherit; }
.tab-btn[aria-selected="true"] { background: #fff; color: var(--brand); box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.tab-btn:hover:not([aria-selected="true"]) { color: var(--text); background: rgba(255,255,255,.6); }

/* --- Info Box (Alert) --- */
.info-box { background: #f0f9ff; border: 1px solid #bae6fd; border-radius: var(--radius-md); padding: 20px; margin-bottom: 40px; color: #0369a1; font-size: 15px; display: flex; gap: 16px; align-items: flex-start; line-height: 1.6; }
.info-box strong { font-weight: 700; color: #0c4a6e; display: block; margin-bottom: 4px; }
.info-box .icon-box { flex-shrink: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 8px; border: 1px solid #bae6fd; color: #0ea5e9; }
.info-box .icon-box svg { width: 20px; height: 20px; fill: currentColor; }
.link-manual { text-decoration: underline; text-underline-offset: 4px; font-weight: 700; color: #0284c7; cursor: pointer; }

/* --- Step List (ol reset) --- */
.guide-panel { display: none; animation: fadeIn .4s ease-out; }
.guide-panel.active { display: block; }
.step-list { list-style: none; padding: 0; margin: 0; }

.step-item { display: flex; gap: 24px; margin-bottom: 60px; position: relative; scroll-margin-top: 90px; }
.step-item:last-child { margin-bottom: 0; }

/* --- Connecting Line --- */
.step-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 50px;
  bottom: -50px;
  width: 2px;
  background: #f1f5f9;
  z-index: 0;
}

.step-num { position: relative; z-index: 1; flex-shrink: 0; width: 42px; height: 42px; background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; box-shadow: 0 4px 12px rgba(79,70,229,.25); }

.step-content { flex: 1; min-width: 0; padding-top: 4px; }
.step-title { font-size: 1.15rem; font-weight: 800; color: var(--brand); margin: 0 0 8px; letter-spacing: -.02em; }
.step-desc { font-size: 1.05rem; font-weight: 600; color: #1e293b; margin: 0 0 16px; line-height: 1.5; letter-spacing: -.01em; }
.step-desc strong { color: var(--accent); }

/* --- Note Box --- */
.step-note { display: inline-block; font-size: .9rem; color: #64748b; font-weight: 400; margin: 0 0 16px; background: #f8fafc; padding: 10px 14px; border-radius: 8px; border: 1px solid #f1f5f9; line-height: 1.5; }
.step-note code { background: #eef2ff; color: var(--accent); padding: 1px 6px; border-radius: 4px; font-size: .9em; }

/* --- Image Container --- */
.img-frame { background: #fff; border: 1px solid #e2e8f0; border-radius: var(--radius-md); overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,.05); margin-top: 16px; }
.img-frame img { display: block; width: 100%; height: auto; }

/* --- Sidebar Menu --- */
.support-card { background: #f8fafc; border-radius: 20px; padding: 24px; border: 1px solid #e2e8f0; }
.support-title { font-weight: 800; color: var(--brand); margin: 0 0 15px; font-size: 1.1rem; }
.subnav { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.subnav a { display: flex; justify-content: center; align-items: center; padding: 14px; min-height: 44px; background: #fff; border: 1px solid #e2e8f0; border-radius: var(--radius-sm); font-weight: 600; text-align: center; color: var(--brand); transition: .2s; font-size: .95rem; text-decoration: none; }
.subnav a:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 2px 8px rgba(79,70,229,.1); }
.subnav a.current { border-color: var(--brand); color: var(--brand); background: #f3f7ff; }
.info-txt { font-size: 14px; color: var(--muted); line-height: 1.6; padding-top: 20px; border-top: 1px solid #e2e8f0; }
.info-txt b { color: var(--brand); }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .guide-panel { animation: none; }
}

/* ============ Mobile Responsive (≤ 640px) ============ */
@media (max-width: 640px) {
  .layout { display: block; margin: 0 5vw; }
  .support { width: 100%; position: static; margin-top: 50px; }
  .subnav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

  .hero { padding: 30px 0 20px; text-align: center; }
  .hero h1 { font-size: 26px; line-height: 1.3; }
  .hero p { font-size: .95rem; }

  .card { padding: 22px 18px; border-radius: var(--radius-md); }

  .info-box { flex-direction: column; gap: 12px; padding: 16px; font-size: 14px; }

  .step-item { display: block; gap: 0; margin-bottom: 50px; }
  .step-item:not(:last-child)::before { display: none; }
  .step-num { margin-bottom: 12px; width: 36px; height: 36px; font-size: 14px; }
  .step-title { font-size: 1.05rem; }
  .step-desc { font-size: .98rem; }
  .step-note { font-size: .85rem; padding: 9px 12px; }

  .tab-btn { font-size: 14px; padding: 12px 4px; min-height: 44px; }

  .img-frame img { max-width: 100%; height: auto; }
}
