/* 불독클럽 사용 안내 — 모바일 우선
   styles.css 의 토큰(--bg, --ink, --rule, --font-sans, .phone, .eyebrow)을 재사용한다.
   이 파일은 가이드 페이지 전용 추가 스타일만 정의한다. */

/* ── Page shell ─────────────────────────────────────────── */
.guide main {
  /* 모바일 가독성 — 본문 폭을 좁게. 데스크탑에서도 너무 넓지 않게 */
  --guide-max: 720px;
}
.guide .wrap {
  max-width: var(--guide-max);
}

/* 본문 readable 폭은 좁게 (Pretendard 한글 기준 ~38em) */
:where(.g-prose, .g-step__text) p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin: 0 0 14px;
  text-wrap: pretty;
}
:where(.g-prose, .g-step__text) p:last-child { margin-bottom: 0; }
:where(.g-prose, .g-step__text) strong {
  color: var(--ink);
  font-weight: 700;
}
:where(.g-prose, .g-step__text) em {
  font-style: normal;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
}
:where(.g-prose, .g-step__text) ul {
  margin: 14px 0 18px;
  padding-left: 0;
  list-style: none;
}
:where(.g-prose, .g-step__text) ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-soft);
}
:where(.g-prose, .g-step__text) ul li::before {
  content: "·";
  position: absolute;
  left: 6px;
  top: -2px;
  color: var(--ink-faint);
  font-weight: 700;
}
:where(.g-prose, .g-step__text) ol {
  margin: 14px 0 18px;
  padding-left: 22px;
  counter-reset: g-ol;
}
:where(.g-prose, .g-step__text) ol > li {
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* ── Intro hero ─────────────────────────────────────────── */
.g-hero {
  padding-top: clamp(40px, 7vw, 80px);
  padding-bottom: clamp(40px, 7vw, 72px);
  text-align: left;
}
.g-hero__eyebrow {
  margin-bottom: 18px;
}
.g-hero__title {
  font-size: clamp(34px, 7vw, 56px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin: 0 0 24px;
}
.g-hero__lede {
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0 0 14px;
  max-width: 540px;
}
.g-hero__lede:last-of-type { margin-bottom: 0; }

/* ── Table of contents ──────────────────────────────────── */
.g-toc {
  padding: clamp(28px, 5vw, 40px) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.g-toc__title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 18px;
}
.g-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: g-toc;
}
.g-toc__list > li {
  counter-increment: g-toc;
  border-top: 1px solid var(--rule);
}
.g-toc__list > li:first-child { border-top: 0; }
.g-toc__list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 4px;
  text-decoration: none;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.g-toc__list a::before {
  content: counter(g-toc, decimal-leading-zero);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
  font-feature-settings: "tnum";
  flex-shrink: 0;
  width: 28px;
}
.g-toc__list a::after {
  content: "→";
  color: var(--ink-faint);
  font-weight: 400;
  flex-shrink: 0;
  transition: transform 0.15s ease, color 0.15s ease;
}
.g-toc__list a:hover::after,
.g-toc__list a:focus-visible::after {
  color: var(--ink);
  transform: translateX(3px);
}
.g-toc__list a .g-toc__lbl {
  flex: 1;
}

/* ── Chapter container ──────────────────────────────────── */
.g-chap {
  padding: clamp(56px, 9vw, 88px) 0;
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: 80px; /* anchor 점프 시 sticky header 가림 보정 */
}
.g-chap:last-of-type { border-bottom: 0; }

.g-chap__hd {
  margin-bottom: clamp(28px, 5vw, 44px);
}
.g-chap__no {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 10px;
}
.g-chap__title {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.18;
  margin: 0 0 14px;
}
.g-chap__sub {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
  max-width: 540px;
}

/* ── Step (text + phone) ────────────────────────────────── */
.g-step {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: clamp(48px, 8vw, 72px);
}
.g-step:last-child { margin-bottom: 0; }
.g-step__text h3 {
  font-size: clamp(19px, 2.4vw, 22px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--ink);
  line-height: 1.35;
}
.g-step__art {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.g-step__art .phone {
  /* 모바일에선 작게, 본문 흐름 방해하지 않게 */
  width: 200px;
  margin: 0;
}
.g-step__art .phone__caption {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
  letter-spacing: -0.01em;
}
.g-step__art--dual {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.g-step__art--dual > div {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.g-step__art--single .phone { width: 220px; }

/* 위젯 이미지 — 폰 목업 없이 스크린샷 자체.
   widget.jpg 가 검은 배경+둥근 모서리 위젯을 이미 품고 있어 추가 wrapper 불필요.
   페이지 베이지 톤 위에서 자연스럽게 뜨도록 살짝의 둥근 모서리만 둔다. */
.g-widget-shot {
  margin: 0;
  width: 100%;
  max-width: 360px;
}
.g-widget-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

/* ── Callout boxes (privacy, tip 등) ─────────────────────── */
.g-call {
  margin: 24px 0;
  padding: 20px 22px;
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: 16px;
}
.g-call__hd {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 10px;
}
.g-call p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0 0 8px;
}
.g-call p:last-child { margin: 0; }

/* ── Dot legend (calendar) ──────────────────────────────── */
.g-legend {
  margin: 18px 0 4px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 20px 22px;
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: 16px;
}
.g-legend__row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.g-legend__row strong {
  font-weight: 700;
  color: var(--ink);
}
.g-legend__mark {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-weight: 700;
  color: var(--ink);
}
.g-legend__mark--dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--ink);
}
.g-legend__mark--ring::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
}
.g-legend__mark--quote::before {
  content: "“";
  font-size: 22px;
  line-height: 1;
  color: var(--ink);
  font-weight: 800;
}
.g-legend__mark--meet {
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
}

/* ── FAQ (inherits index FAQ styles, single tweak) ──────── */
.guide .faq__item summary { font-size: 17px; }
.guide .faq__a { font-size: 15.5px; line-height: 1.85; }

/* ── Footer 보조 안내 ───────────────────────────────────── */
.g-foot {
  padding: clamp(48px, 8vw, 72px) 0 clamp(40px, 6vw, 56px);
  text-align: center;
}
.g-foot__title {
  font-size: clamp(22px, 3.4vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--ink);
  line-height: 1.4;
}
.g-foot__lede {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0 0 24px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.g-foot__links {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  font-size: 15px;
  color: var(--ink-soft);
}
.g-foot__links a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
}

/* ── Desktop refinements ────────────────────────────────── */
@media (min-width: 720px) {
  .g-step {
    grid-template-columns: 1fr auto;
    gap: 56px;
    align-items: center;
  }
  .g-step--reverse > .g-step__text { order: 2; }
  .g-step--reverse > .g-step__art  { order: 1; }
  .g-step--full {
    /* 단일 컬럼 (이미지 없거나 다이어그램 전용) */
    grid-template-columns: 1fr;
  }
  .g-step__art .phone { width: 240px; }
  .g-step__art--single .phone { width: 260px; }
  .g-step__art--dual .phone { width: 200px; }

  .g-legend { grid-template-columns: 1fr 1fr; }
}

/* 더 좁은 모바일 — 폰 목업이 좌우 가득 차지 않도록 */
@media (max-width: 380px) {
  .g-step__art .phone { width: 180px; }
  .g-step__art--dual .phone { width: 150px; }
}

/* prefers-reduced-motion 사용자에게는 reveal 애니메이션 끔 (styles.css 의 @media (prefers-reduced-motion: no-preference) 블록과 자동 호환) */
