/* Supercycl 사용 가이드 — Dark Pro + Mono Green (Supercycl-Mobile tokens-design.css 차용) */
:root {
  --bg-page: linear-gradient(160deg, #060610 0%, #0A1510 50%, #050508 100%);
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-elevated: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.10);
  --text-primary: #FFFFFF;
  --text-secondary: #B8C0BC;
  --accent: #00E676;
  --accent-light: #7EF0A8;
  --accent-gradient: linear-gradient(135deg, #7EF0A8, #00E676);
  --accent-glow: rgba(0, 230, 118, 0.3);
  --accent-tint: rgba(0, 230, 118, 0.12);
  --accent-border-soft: rgba(0, 230, 118, 0.25);
  --warn: #FFC107;
  --warn-tint: rgba(255, 193, 7, 0.10);
  --font-sans: 'IBM Plex Sans', 'Noto Sans KR', 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  --header-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-page);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 18px;            /* 시니어 가독성: 본문 18px 이상 */
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

main { max-width: 760px; margin: 0 auto; padding: calc(var(--header-h) + 32px) 20px 60px; }

section { scroll-margin-top: calc(var(--header-h) + 16px); margin-bottom: 72px; }

h1 { font-size: 34px; line-height: 1.3; font-weight: 700; }
h2 { font-size: 27px; line-height: 1.35; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
h3 { font-size: 21px; line-height: 1.4; font-weight: 600; }
p, li { color: var(--text-primary); }
.lead { font-size: 19px; margin: 14px 0; }
.hint { color: var(--text-secondary); font-size: 17px; }
ul, ol { padding-left: 26px; margin: 12px 0; }
li { margin: 8px 0; }
a { color: var(--accent-light); }

/* ===== 고정 헤더 ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(6, 6, 16, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 760px; margin: 0 auto; height: var(--header-h);
  display: flex; align-items: center; gap: 16px; padding: 0 20px;
}
.brand { font-weight: 700; font-size: 20px; white-space: nowrap; }
.brand-sub { color: var(--accent); font-weight: 600; }
.current-section {
  flex: 1; text-align: center; color: var(--text-secondary);
  font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lang-toggle { display: flex; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.lang-btn {
  min-height: 48px; min-width: 88px; padding: 0 16px;   /* 터치 타깃 48px+ */
  background: transparent; color: var(--text-secondary);
  border: none; font: 600 16px var(--font-sans); cursor: pointer;
}
.lang-btn.active { background: var(--accent-gradient); color: #06140C; }

/* ===== 인트로 ===== */
.hero { padding-top: 12px; }

/* ===== 목차 ===== */
.toc { margin-bottom: 72px; }
.toc h2 { margin-bottom: 18px; }
.toc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.toc-card {
  display: flex; align-items: center; gap: 16px; min-height: 84px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
  padding: 16px 18px; text-decoration: none; color: var(--text-primary);
  transition: border-color 0.15s;
}
.toc-card:hover { border-color: var(--accent-border-soft); }
.toc-num {
  flex: none; width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent-tint); border: 1px solid var(--accent-border-soft);
  color: var(--accent); font: 700 22px/46px var(--font-sans); text-align: center;
}
.toc-text { display: flex; flex-direction: column; gap: 2px; }
.toc-text strong { font-size: 19px; }
.toc-text small { color: var(--text-secondary); font-size: 15px; }

/* ===== 섹션 번호 ===== */
.sec-num {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent-gradient); color: #06140C;
  font: 700 22px/44px var(--font-sans); text-align: center;
}

/* ===== 온보딩 STEP 카드 ===== */
.step-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px;
  padding: 28px 24px; margin: 24px 0;
}
.step-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.step-badge {
  /* 섹션 번호(.sec-num, 채움 원형)와 구분되는 'STEP n' 필 — 옅은 틴트 + 윤곽선 */
  flex: none; display: inline-flex; align-items: center; gap: 7px;
  height: 40px; padding: 0 18px; border-radius: 999px;
  background: var(--accent-tint); border: 1px solid var(--accent-border-soft);
  color: var(--accent); font: 700 20px/1 var(--font-sans);
}
.step-badge::before {
  content: 'STEP'; font: 700 12px/1 var(--font-sans);
  letter-spacing: 1.5px; opacity: 0.85;
}

/* ===== 안내 박스 ===== */
.note {
  display: flex; gap: 12px; align-items: flex-start;
  border-radius: 14px; padding: 16px 18px; margin: 16px 0;
}
.note-icon { font-size: 22px; line-height: 1.4; }
.note p { font-size: 17px; }
.note-warn { background: var(--warn-tint); border: 1px solid rgba(255, 193, 7, 0.35); }
.note-safe { background: var(--accent-tint); border: 1px solid var(--accent-border-soft); }
.note-info { background: var(--bg-elevated); border: 1px solid var(--border); }

/* ===== 화면 캡처 (폰 프레임) ===== */
.phone { margin: 22px auto 6px; text-align: center; position: relative; }
/* 탭 위치 안내 — 이미지 편집 없이 CSS 오버레이. --tap-y 로 세로 위치 지정.
 * 앱의 그린 CTA 버튼과 구분되도록 앰버 + 흰 테두리, 버튼을 가리지 않게 바로 위에 띄움 */
.tap-label {
  position: absolute; left: 50%; top: var(--tap-y, 80%);
  transform: translate(-50%, -130%);
  background: #FFC107; color: #221A00;
  font: 700 15px/1 var(--font-sans);
  padding: 10px 16px; border-radius: 999px; white-space: nowrap;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}
.tap-label::after {
  content: ''; position: absolute; left: 50%; top: 100%;
  transform: translateX(-50%);
  border: 8px solid transparent; border-top-color: #FFC107;
}
.phone img {
  width: 100%; max-width: 320px; height: auto;
  aspect-ratio: auto 780 / 1688;
  border-radius: 28px; border: 1px solid var(--accent-border-soft);
  box-shadow: 0 0 40px rgba(0, 230, 118, 0.12), 0 12px 32px rgba(0, 0, 0, 0.5);
}
.phone-pair { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.phone-pair .phone { margin: 22px 0 6px; width: 280px; }
.phone-pair .phone img { max-width: 280px; }

/* ===== 기기별 설치 카드 ===== */
.device-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px;
  padding: 24px; margin: 18px 0;
}
.device-card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.device-icon { font-size: 24px; }
.install-steps { counter-reset: step; list-style: none; padding-left: 0; }
.install-steps li {
  counter-increment: step; position: relative;
  padding-left: 52px; margin: 14px 0; min-height: 38px;
}
.install-steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent-tint); border: 1px solid var(--accent-border-soft);
  color: var(--accent); font: 700 18px/36px var(--font-sans); text-align: center;
}
.device-note { color: var(--text-secondary); font-size: 16px; margin-top: 10px; }

/* ===== FAQ ===== */
.faq dt { font-weight: 700; font-size: 19px; margin-top: 22px; color: var(--accent-light); }
.faq dd { margin: 8px 0 0; }

/* ===== 모바일 ===== */
@media (max-width: 640px) {
  .toc-grid { grid-template-columns: 1fr; }
  .current-section { display: none; }
  h1 { font-size: 28px; }
  h2 { font-size: 24px; }
  .header-inner { gap: 10px; }
  .brand { font-size: 15px; }
}

@media (max-width: 360px) {
  .brand-sub { display: none; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
