/* =========================================================
   코인가이드 — 디자인 시스템 (다크 + 바이낸스 골드)

   설계 원칙 4가지
   1. 튜토리얼 이미지 10장이 주인공이다. 화면은 이미지의 시각 언어
      (검정 배경 · 골드 외곽선 박스 · 점 격자 · 대각선 슬래시)를 그대로 따라간다.
      그래야 이미지가 "붙여넣은 것"이 아니라 "원래 이 사이트 것"처럼 보인다.
   2. 큰 제목은 영문 대문자 헤비체, 실제 정보는 한국어 본문. 두 언어의 역할을 나눈다.
   3. 골드는 아껴 쓴다. 한 화면에 강조가 세 개면 강조가 없는 것과 같다.
   4. 본문 한 줄이 너무 길지 않게 유지한다 (--max-rd).

   색·간격·글꼴 기준값은 아래 :root 에 전부 모아뒀습니다.
   여기 숫자만 바꾸면 사이트 전체가 한 번에 바뀝니다.
   ========================================================= */

/* ---------------------------------------------------------
   0. 리셋
   --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body, h1, h2, h3, h4, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; padding: 0; }

ul, ol { list-style: none; }

img, picture, svg { display: block; max-width: 100%; }

button, input, select, textarea { font: inherit; color: inherit; }

a { color: inherit; text-decoration: none; }

table { border-collapse: collapse; width: 100%; }

/* 사용자가 OS에서 "동작 줄이기"를 켰다면 애니메이션을 끕니다 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------------------------------------------------------
   1. 기준값 — 여기만 바꾸면 전체가 바뀝니다
   --------------------------------------------------------- */
:root {
  /* ---- 배경 계열 (어두운 순서) ---- */
  --bg:        #0b0e11;   /* 페이지 바닥 */
  --bg-2:      #12161c;   /* 번갈아 쓰는 섹션 배경 */
  --surface:   #181a20;   /* 카드 */
  --surface-2: #1e2329;   /* 카드 위의 카드, 표 머리글 */

  /* ---- 선 ---- */
  --line:      #2b3139;
  --line-soft: #21262e;

  /* ---- 글자 계열 ---- */
  --text:   #eaecef;   /* 본문 */
  --text-2: #b7bdc6;   /* 보조 설명 */
  --text-3: #848e9c;   /* 캡션처럼 아주 약한 글자 */

  /* ---- 포인트 색 ---- */
  --gold:      #fcd535;
  --gold-deep: #f0b90b;
  --gold-dim:  rgba(252, 213, 53, 0.14);   /* 옅은 골드 배경 */
  --gold-line: rgba(252, 213, 53, 0.35);   /* 골드 테두리 */

  /* ---- 상승 / 하락 ---- */
  --up:   #0ecb81;
  --down: #f6465d;

  /* ---- 치수 ---- */
  --max:       1180px;   /* 콘텐츠 최대 폭 */
  --max-rd:    760px;    /* 긴 글 읽기 폭 */
  --radius:    12px;
  --radius-lg: 18px;
  --header-h:  64px;     /* 앵커 스크롤 위치 계산에 씁니다 */

  /* ---- 글꼴 ---- */
  --sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
          'Segoe UI', Roboto, 'Malgun Gothic', sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Courier New', monospace;
}

/* ---------------------------------------------------------
   2. 바탕
   --------------------------------------------------------- */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: -0.01em;
  word-break: keep-all;      /* 한국어를 어절 단위로 줄바꿈 */
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

/* 튜토리얼 이미지에 깔린 점 격자를 페이지 배경에도 아주 옅게 재현 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(rgba(252, 213, 53, 0.055) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, #000 25%, transparent 78%);
          mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, #000 25%, transparent 78%);
}

/* 실제 내용은 배경 격자 위로 올립니다 */
.promo, .site-header, main, .site-footer { position: relative; z-index: 1; }

::selection { background: var(--gold); color: #000; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* 화면에는 안 보이지만 스크린리더는 읽는 텍스트 */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 키보드 사용자를 위한 본문 바로가기 — Tab 을 누르면 나타납니다 */
.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--gold);
  color: #000;
  font-weight: 700;
  border-radius: 8px;
  transition: top 0.18s;
}
.skip-link:focus { top: 12px; }

/* ---------------------------------------------------------
   3. 레이아웃
   --------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 20px;
}

.section { padding-block: clamp(56px, 8vw, 96px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line-soft); }

/* 긴 글을 읽기 좋은 폭으로 묶는 상자 */
.read { max-width: var(--max-rd); }

.section-head { margin-bottom: clamp(28px, 4vw, 44px); }
.section-head--center { text-align: center; max-width: 720px; margin-inline: auto; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

/* ---------------------------------------------------------
   4. 장식 — 이미지의 시각 언어를 화면으로 옮긴 부분
   --------------------------------------------------------- */

/* 골드 마름모 구분자. 이미지에서 제목 아래에 있던 그 모양입니다 */
.diamond {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-block: 18px;
}
.diamond::before, .diamond::after {
  content: '';
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--gold-line));
}
.diamond::after { background: linear-gradient(90deg, var(--gold-line), transparent); }
.diamond span {
  width: 7px; height: 7px;
  flex: none;
  background: var(--gold);
  transform: rotate(45deg);
}

/* ---------------------------------------------------------
   5. 타이포그래피
   영문 대문자 = 시각적 임팩트 / 한글 = 실제 정보 전달
   --------------------------------------------------------- */

/* 이미지 속 "Spot Trade" 같은 대형 영문 제목 */
.display {
  font-size: clamp(34px, 6.2vw, 62px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

h1, h2, h3, h4 { line-height: 1.28; letter-spacing: -0.025em; font-weight: 800; }
h1 { font-size: clamp(28px, 4.6vw, 44px); }
h2 { font-size: clamp(24px, 3.4vw, 34px); }
h3 { font-size: clamp(18px, 2.2vw, 22px); }
h4 { font-size: 17px; }

/* 제목 안에서 골드로 강조하는 부분 */
h1 em, h2 em, h3 em, .display em { font-style: normal; color: var(--gold); }

.lead {
  font-size: clamp(16px, 1.9vw, 19px);
  color: var(--text-2);
  line-height: 1.8;
}

.muted { color: var(--text-3); }
.small { font-size: 14px; }
.gold  { color: var(--gold); }
.up    { color: var(--up); }
.down  { color: var(--down); }

/* 본문 문단 묶음 — 문단 사이 간격을 일정하게 */
.prose > * + * { margin-top: 18px; }
.prose p { color: var(--text-2); }
.prose strong { color: var(--text); font-weight: 700; }
.prose a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--gold-line);
}
.prose a:hover { text-decoration-color: var(--gold); }
.prose ul { display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 20px; color: var(--text-2); }
.prose ul li::before {
  content: '';
  position: absolute;
  left: 2px; top: 0.72em;
  width: 6px; height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
}
.prose h3 { margin-top: 34px; }

/* ---------------------------------------------------------
   6. 버튼
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.14s, background 0.18s, border-color 0.18s, color 0.18s, filter 0.18s;
}
.btn:active { transform: translateY(1px); }

.btn--gold {
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  color: #12161c;
}
.btn--gold:hover { filter: brightness(1.07); }

.btn--ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--gold-line); color: var(--gold); }

.btn--sm { padding: 9px 16px; font-size: 14px; border-radius: 8px; }
.btn--lg { padding: 16px 32px; font-size: 16px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* 화살표가 붙는 텍스트 링크 */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-weight: 700;
  font-size: 15px;
}
.arrow-link::after { content: '→'; transition: transform 0.16s; }
.arrow-link:hover::after { transform: translateX(4px); }

/* ---------------------------------------------------------
   7. 상단 할인 안내 띠
   --------------------------------------------------------- */
.promo {
  background: linear-gradient(90deg, #1a1509, #241d07 45%, #1a1509);
  border-bottom: 1px solid var(--gold-line);
  font-size: 14px;
}
.promo__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  max-width: var(--max);
  margin-inline: auto;
  padding: 9px 20px;
}
.promo__text { color: var(--text-2); }
.promo__text b { color: var(--gold); font-weight: 700; }
.promo__close {
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  font-size: 18px;
}
.promo__close:hover { color: var(--text); }

/* ---------------------------------------------------------
   8. 헤더 / 내비게이션
   --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 14, 17, 0.88);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 20px;
}

/* 로고 — 바이낸스 로고가 아니라 우리 자체 마크입니다 */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.logo__mark {
  width: 26px; height: 26px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #0b0e11;
  font-size: 13px;
  font-weight: 900;
  transform: rotate(45deg);
}
.logo__mark span { transform: rotate(-45deg); }
.logo__text em { font-style: normal; color: var(--gold); }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  padding: 8px 13px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
  transition: color 0.16s, background 0.16s;
}
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a[aria-current='page'] { color: var(--gold); }

.header__cta { flex: none; }

/* 모바일 햄버거 — PC 에서는 숨김 */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  margin: 3px auto;
  background: var(--text);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------------------------------------------------------
   9. 히어로
   --------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(52px, 8vw, 96px);
  border-bottom: 1px solid var(--line-soft);
}
/* 이미지 모서리에 있던 대각선 골드 슬래시 */
.hero::after {
  content: '';
  position: absolute;
  top: -30%; right: -12%;
  width: 46%; height: 170%;
  pointer-events: none;
  background: linear-gradient(112deg, transparent 44%, rgba(252, 213, 53, 0.12) 46%,
              rgba(252, 213, 53, 0.03) 49%, transparent 52%);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 6px 14px;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  background: var(--gold-dim);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
}
.hero__badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 0 3px rgba(14, 203, 129, 0.2);
}
.hero h1 { margin-bottom: 18px; }

.hero__visual { position: relative; }
.hero__visual img { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.hero__glow {
  position: absolute;
  inset: 12% 10%;
  z-index: -1;
  background: radial-gradient(circle, rgba(252, 213, 53, 0.24), transparent 68%);
  filter: blur(52px);
}

/* 히어로 아래 숫자 */
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
}
.hero__stats div { min-width: 92px; }
.hero__stats dt { font-size: 13px; color: var(--text-3); margin-bottom: 2px; }
.hero__stats dd {
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--gold);
}

/* ---------------------------------------------------------
   10. 추천코드 박스 — 이미지 하단 캡션 박스와 같은 생김새
   --------------------------------------------------------- */
.codebox {
  padding: 18px 20px;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(252, 213, 53, 0.07), rgba(252, 213, 53, 0.02));
}
.codebox__label {
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.codebox__row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.code {
  flex: 1 1 190px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border: 1px dashed var(--gold-line);
  border-radius: 9px;
  background: var(--bg);
  font-family: var(--mono);
  font-size: clamp(17px, 2.4vw, 21px);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold);
  cursor: pointer;
  transition: background 0.16s, border-color 0.16s;
}
.code:hover { background: #0f1319; border-color: var(--gold); }
.code__hint {
  flex: none;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text-3);
}
.code.is-copied .code__hint { color: var(--up); }

/* ---------------------------------------------------------
   11. 실시간 시세 띠
   --------------------------------------------------------- */
.ticker { border-block: 1px solid var(--line-soft); background: var(--bg-2); }
/* 바깥 창문 — 넘치는 부분을 잘라내는 틀입니다 */
.ticker__list {
  max-width: var(--max);
  margin-inline: auto;
  padding: 12px 20px;
  overflow: hidden;
  /* 양 끝을 서서히 흐리게 해서 "옆으로 계속 이어진다"는 느낌을 줍니다.
     칼로 자른 듯 뚝 끊겨 보이지 않게 하는 장치입니다. */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
}

/* 실제로 흘러가는 레일.
   같은 목록을 두 벌 담아두고 정확히 절반만큼 밀면,
   끝이 처음과 맞물려서 이음매 없이 무한히 도는 것처럼 보입니다. */
.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker-roll 30s linear infinite;
}
@keyframes ticker-roll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* 마우스를 올리거나 키보드로 짚으면 멈춥니다.
   읽고 있는데 지나가버리면 불편하니까요. */
.ticker:hover .ticker__track,
.ticker:focus-within .ticker__track { animation-play-state: paused; }

.ticker__item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex: none;
  /* 칸 사이 간격을 gap 이 아니라 margin 으로 주는 이유 —
     두 벌의 폭이 정확히 같아야 translateX(-50%) 가 딱 맞아떨어집니다.
     gap 을 쓰면 두 벌 사이에만 간격이 한 번 더 껴서 미세하게 튑니다. */
  margin-right: 10px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  font-size: 14px;
}
.ticker__sym { font-weight: 700; color: var(--text); }
.ticker__price { font-family: var(--mono); color: var(--text-2); }
.ticker__chg { font-size: 13px; font-weight: 700; }
.ticker__note {
  max-width: var(--max);
  margin-inline: auto;
  padding: 0 20px 10px;
  font-size: 12px;
  color: var(--text-3);
}

/* 운영체제에 "동작 줄이기"를 켜둔 분들에게는 흐르지 않게 합니다.
   대신 손가락이나 마우스로 옆으로 밀어서 볼 수 있게 되돌립니다. */
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
  .ticker__list {
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-mask-image: none;
            mask-image: none;
  }
  .ticker__list::-webkit-scrollbar { display: none; }
}

/* ---------------------------------------------------------
   12. 카드 격자
   --------------------------------------------------------- */
.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.18s, transform 0.18s;
}
.card:hover { border-color: var(--gold-line); transform: translateY(-3px); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: 15px; }
.card__icon {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border: 1px solid var(--gold-line);
  border-radius: 10px;
  background: var(--gold-dim);
  font-size: 20px;
}

/* 카드 전체가 링크인 경우 */
a.card { display: block; }
a.card::after {
  content: '→';
  position: absolute;
  top: 24px; right: 24px;
  color: var(--text-3);
  transition: color 0.16s, transform 0.16s;
}
a.card:hover::after { color: var(--gold); transform: translateX(3px); }

/* ---------------------------------------------------------
   13. 단계 카드 — 튜토리얼 이미지 + 해설
   --------------------------------------------------------- */
.steps { display: grid; gap: clamp(40px, 6vw, 72px); }

.step {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
/* 짝수 번째는 이미지를 오른쪽으로 — 지그재그로 읽는 리듬을 만듭니다 */
.step:nth-child(even) .step__media { order: 2; }

.step__media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #000;
  cursor: zoom-in;
}
.step__media img { width: 100%; height: auto; transition: transform 0.4s; }
.step__media:hover img { transform: scale(1.03); }
.step__zoom {
  position: absolute;
  right: 12px; bottom: 12px;
  padding: 6px 11px;
  border: 1px solid var(--gold-line);
  border-radius: 7px;
  background: rgba(11, 14, 17, 0.82);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  pointer-events: none;
}

.step__num {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  padding: 5px 14px;
  border: 1px solid var(--gold-line);
  border-radius: 8px;
  background: var(--gold-dim);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  color: var(--gold);
}
.step__title {
  margin-bottom: 6px;
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.step__title em { font-style: normal; color: var(--gold); }
.step__ko {
  margin-bottom: 14px;
  font-size: clamp(17px, 2.1vw, 20px);
  font-weight: 700;
  color: var(--text);
}
.step__body { color: var(--text-2); }
.step__body p + p { margin-top: 12px; }

/* 단계 안의 주의 문구 */
.note {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 3px solid var(--gold);
  border-radius: 0 9px 9px 0;
  background: var(--surface);
  font-size: 14.5px;
  color: var(--text-2);
}
.note b { color: var(--gold); font-weight: 700; }
.note--warn { border-left-color: var(--down); }
.note--warn b { color: var(--down); }
.note__icon { flex: none; font-size: 16px; line-height: 1.6; }

/* 튜토리얼 미리보기 — 작은 이미지 열 장을 한 줄에 늘어놓습니다 */
.shots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.shot {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #000;
  cursor: zoom-in;
  transition: border-color 0.18s, transform 0.18s;
}
.shot:hover { border-color: var(--gold-line); transform: translateY(-3px); }
.shot img { width: 100%; height: auto; }
.shot__n {
  position: absolute;
  top: 8px; left: 8px;
  padding: 3px 9px;
  border: 1px solid var(--gold-line);
  border-radius: 6px;
  background: rgba(11, 14, 17, 0.85);
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

/* ---------------------------------------------------------
   14. 목차 — 긴 페이지 왼쪽에 붙어 따라다닙니다
   --------------------------------------------------------- */
.layout-toc {
  display: grid;
  grid-template-columns: 232px 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  max-height: calc(100vh - var(--header-h) - 48px);
  overflow-y: auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.toc__title {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.toc ol { display: grid; gap: 2px; }
.toc a {
  display: block;
  padding: 6px 10px;
  border-left: 2px solid transparent;
  border-radius: 7px;
  font-size: 14px;
  color: var(--text-3);
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.toc a:hover { color: var(--text); background: var(--bg-2); }
.toc a.is-active {
  border-left-color: var(--gold);
  background: var(--gold-dim);
  color: var(--gold);
  font-weight: 700;
}

/* ---------------------------------------------------------
   15. 표
   --------------------------------------------------------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { font-size: 15px; }
thead th {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}
tbody td, tbody th {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text-2);
  vertical-align: top;
}
tbody th { text-align: left; font-weight: 700; color: var(--text); white-space: nowrap; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: none; }
tbody tr:hover td, tbody tr:hover th { background: rgba(255, 255, 255, 0.017); }

.tag {
  display: inline-block;
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
}
.tag--gold { background: var(--gold-dim); border-color: var(--gold-line); color: var(--gold); }
.tag--up   { background: rgba(14, 203, 129, 0.12); border-color: rgba(14, 203, 129, 0.4); color: var(--up); }
.tag--down { background: rgba(246, 70, 93, 0.12); border-color: rgba(246, 70, 93, 0.4); color: var(--down); }

/* ---------------------------------------------------------
   16. 수수료 계산기
   --------------------------------------------------------- */
.calc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.calc__input { padding: clamp(24px, 3.5vw, 34px); }
.calc__output {
  padding: clamp(24px, 3.5vw, 34px);
  border-left: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(252, 213, 53, 0.09), rgba(252, 213, 53, 0.015));
}

.field { margin-bottom: 22px; }
.field:last-child { margin-bottom: 0; }
.field label { display: block; margin-bottom: 9px; font-size: 14px; font-weight: 700; color: var(--text); }
.field__hint { margin-top: 7px; font-size: 13px; color: var(--text-3); }

.input-money {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg);
}
.input-money:focus-within { border-color: var(--gold-line); }
.input-money input {
  flex: 1;
  min-width: 0;
  padding: 13px 15px;
  border: none;
  background: none;
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  text-align: right;
}
.input-money input:focus { outline: none; }
.input-money__unit {
  flex: none;
  padding: 13px 15px;
  border-left: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-3);
}

.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button {
  flex: 1 1 auto;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.seg button:hover { border-color: var(--gold-line); color: var(--text); }
.seg button[aria-pressed='true'] {
  border-color: var(--gold);
  background: var(--gold-dim);
  color: var(--gold);
  font-weight: 700;
}

.result { display: grid; gap: 16px; }
.result__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.result__row:last-of-type { border-bottom: none; padding-bottom: 0; }
.result__label { font-size: 14px; color: var(--text-2); }
.result__value { font-family: var(--mono); font-size: 17px; font-weight: 700; color: var(--text); }
.result__hero {
  padding: 18px;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  background: var(--bg);
  text-align: center;
}
.result__hero .result__label { display: block; margin-bottom: 6px; }
.result__big {
  font-family: var(--mono);
  font-size: clamp(26px, 4.4vw, 38px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--gold);
}

/* ---------------------------------------------------------
   17. 아코디언 FAQ
   --------------------------------------------------------- */
.faq { display: grid; gap: 10px; }
.faq details {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.18s;
}
.faq details[open] { border-color: var(--gold-line); }
.faq summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  list-style: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  transition: color 0.16s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gold); }
.faq summary::after {
  content: '+';
  margin-left: auto;
  flex: none;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  color: var(--gold);
  transition: transform 0.22s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__q {
  flex: none;
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold-line);
  border-radius: 6px;
  background: var(--gold-dim);
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}
.faq__a { padding: 0 22px 20px 62px; font-size: 15px; color: var(--text-2); }
.faq__a p + p { margin-top: 12px; }
.faq__a a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------
   18. 진행 체크리스트 — 브라우저에 기억됩니다
   --------------------------------------------------------- */
.checklist {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.checklist__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.checklist__count { font-size: 14px; color: var(--text-3); }
.checklist__count b { color: var(--gold); font-size: 17px; }

.progress {
  height: 6px;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--surface-2);
}
.progress__bar {
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
  transition: width 0.35s ease;
}

.checklist ul { display: grid; gap: 2px; }
.checklist li label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  color: var(--text-2);
  transition: background 0.15s, color 0.15s;
}
.checklist li label:hover { background: var(--bg-2); color: var(--text); }
.checklist input[type='checkbox'] {
  -webkit-appearance: none;
          appearance: none;
  flex: none;
  width: 19px; height: 19px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--bg);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.checklist input[type='checkbox']:checked { background: var(--gold); border-color: var(--gold); }
.checklist input[type='checkbox']:checked::after {
  content: '✓';
  color: #0b0e11;
  font-size: 13px;
  font-weight: 900;
}
.checklist input[type='checkbox']:checked + span { color: var(--text-3); text-decoration: line-through; }

/* ---------------------------------------------------------
   19. 이미지 확대 보기
   --------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(5, 7, 9, 0.94);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
}
.lightbox.is-open { display: grid; }
.lightbox img {
  width: auto;
  max-width: min(94vw, 460px);
  max-height: 86vh;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
}
.lightbox__close {
  position: absolute;
  top: 18px; right: 18px;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
}
.lightbox__close:hover { border-color: var(--gold); color: var(--gold); }
.lightbox__caption {
  position: absolute;
  bottom: 22px; left: 50%;
  transform: translateX(-50%);
  max-width: 90vw;
  padding: 8px 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-size: 14px;
  color: var(--text-2);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
}
.lightbox__nav:hover { border-color: var(--gold); color: var(--gold); }
.lightbox__nav--prev { left: 18px; }
.lightbox__nav--next { right: 18px; }

/* ---------------------------------------------------------
   20. 서브페이지 머리말 · 이동 경로
   --------------------------------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(44px, 6vw, 76px);
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
}
.page-hero::after {
  content: '';
  position: absolute;
  top: -40%; right: -8%;
  width: 38%; height: 180%;
  pointer-events: none;
  background: linear-gradient(112deg, transparent 45%, rgba(252, 213, 53, 0.1) 47%, transparent 51%);
}
.page-hero h1 { margin-bottom: 14px; }

.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--text-3);
}
.crumb li { display: flex; align-items: center; gap: 8px; }
.crumb li + li::before { content: '/'; color: var(--line); }
.crumb a:hover { color: var(--gold); }
.crumb [aria-current='page'] { color: var(--text-2); }

/* ---------------------------------------------------------
   21. 마무리 유도 영역
   --------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 6vw, 64px) clamp(24px, 4vw, 48px);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, rgba(252, 213, 53, 0.1), rgba(252, 213, 53, 0.02) 55%);
  text-align: center;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(252, 213, 53, 0.09) 1px, transparent 1px);
  background-size: 18px 18px;
}
.cta > * { position: relative; }
.cta h2 { margin-bottom: 12px; }
.cta p { max-width: 560px; margin-inline: auto; color: var(--text-2); }
.cta .btn-row { justify-content: center; }

/* ---------------------------------------------------------
   22. 다음 읽을거리
   --------------------------------------------------------- */
.next-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.next-card {
  display: block;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.18s, transform 0.18s;
}
.next-card:hover { border-color: var(--gold-line); transform: translateY(-3px); }
.next-card__label {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.next-card h3 { margin-bottom: 6px; }
.next-card p { font-size: 14.5px; color: var(--text-3); }

/* ---------------------------------------------------------
   23. 고지 — 비공식 사이트임을 밝히는 부분
   --------------------------------------------------------- */
.disclaimer {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-3);
}
.disclaimer b { color: var(--text-2); font-weight: 700; }

/* ---------------------------------------------------------
   24. 푸터
   --------------------------------------------------------- */
.site-footer {
  padding-block: clamp(40px, 5vw, 60px) 28px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  font-size: 14.5px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line-soft);
}
.footer__about p { max-width: 380px; margin-top: 14px; font-size: 14px; color: var(--text-3); }
.footer__col h4 {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer__col ul { display: grid; gap: 9px; }
.footer__col a { color: var(--text-3); }
.footer__col a:hover { color: var(--gold); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 22px;
  font-size: 13px;
  color: var(--text-3);
}

/* ---------------------------------------------------------
   25. 스크롤 등장 효과
   --------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------------------------------------------------------
   26. 404
   --------------------------------------------------------- */
.notfound {
  min-height: 62vh;
  display: grid;
  place-items: center;
  padding-block: 60px;
  text-align: center;
}
.notfound__code {
  margin-bottom: 12px;
  font-size: clamp(72px, 16vw, 150px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  background: linear-gradient(180deg, var(--gold), rgba(240, 185, 11, 0.15));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

/* =========================================================
   27. 반응형 — 넓은 화면부터 좁은 화면 순서
   ========================================================= */

@media (max-width: 1040px) {
  .layout-toc { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; }
  .toc ol { display: flex; flex-wrap: wrap; gap: 6px; }
  .toc a { border-left: none; border: 1px solid var(--line); }
  .toc a.is-active { border-color: var(--gold); }
}

@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 340px; margin-inline: auto; }
  .step { grid-template-columns: 320px 1fr; }
  .shots { grid-template-columns: repeat(3, 1fr); }
  .calc { grid-template-columns: 1fr; }
  .calc__output { border-left: none; border-top: 1px solid var(--line); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__about { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  /* 모바일에서만 햄버거 버튼이 나타납니다 */
  .nav-toggle { display: block; }
  .header__cta { display: none; }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 14px 20px 22px;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 14px; font-size: 16px; }
  /* 모바일 메뉴 안에서는 가입 버튼을 다시 보여줍니다 */
  .nav .btn { display: inline-flex; margin-top: 10px; }

  .step { grid-template-columns: 1fr; gap: 22px; }
  .step:nth-child(even) .step__media { order: 0; }
  .step__media { max-width: 340px; margin-inline: auto; }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .next-grid { grid-template-columns: 1fr; }
  .hero__stats { gap: 22px; }
  .faq__a { padding-left: 22px; }
  .btn-row .btn { flex: 1 1 100%; }
  .lightbox__nav { width: 40px; height: 40px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
}

@media (max-width: 420px) {
  .wrap { padding-inline: 16px; }
  .promo__inner { gap: 10px; font-size: 13px; }
  .footer__top { grid-template-columns: 1fr; }
}

/* 인쇄할 때는 배경을 없애고 글자를 검게 */
@media print {
  body::before, .promo, .site-header, .lightbox, .cta, .ticker { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .step__media, .note { border-color: #ccc; }
}
