/* ======================================================
   AssistTalk — 설치 가이드 페이지
   styles.css 의 토큰(--coral, --ink, --line ...)을 그대로 재사용한다.
   ====================================================== */

.guide {
  max-width: 860px;
  margin: 0 auto;
  padding: 116px 24px 80px;
}

/* ---------- 빵부스러기 ---------- */
.g-crumbs {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}
.g-crumbs a { color: var(--muted); text-decoration: none; }
.g-crumbs a:hover { color: var(--coral-ink); text-decoration: underline; }
.g-crumbs span { color: var(--ink); font-weight: 600; }

/* ---------- 머리말 ---------- */
.g-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 32px;
  margin-bottom: 44px;
}
.g-head .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--coral-ink);
  background: var(--coral-soft);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}
.guide h1 {
  font-size: 38px;
  line-height: 1.28;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 18px;
  font-weight: 800;
}
.g-lead {
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0 0 18px;
}
.g-lead b { color: var(--ink); font-weight: 700; }
.g-meta { font-size: 13px; color: var(--muted); }

/* ---------- 섹션 공통 ---------- */
.guide section { margin-bottom: 56px; }
.guide h2 {
  font-size: 24px;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 18px;
  font-weight: 800;
}
.guide h3 {
  font-size: 17px;
  color: var(--ink);
  margin: 0 0 8px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.guide p { font-size: 15.5px; line-height: 1.78; color: var(--muted); margin: 0 0 14px; }
.guide p b { color: var(--ink); font-weight: 700; }
.guide a { color: var(--coral-ink); }
.guide code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13.5px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  color: var(--ink);
  word-break: break-all;
}

/* ---------- 코드 블록 ---------- */
.g-code {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 0 0 16px;
  background: #0f1115;
}
.g-code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #171a20;
  border-bottom: 1px solid #262b33;
  font-size: 12.5px;
  color: #9aa3b0;
  font-weight: 600;
}
.g-copy {
  border: 1px solid #333a45;
  background: #222831;
  color: #e6e9ee;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 7px;
  cursor: pointer;
  font-family: inherit;
}
.g-copy:hover { background: #2c333d; }
.g-code pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
}
.g-code code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  line-height: 1.7;
  color: #8ee6b8;
  background: none;
  border: 0;
  padding: 0;
  white-space: pre;
  word-break: normal;
}

.g-warn {
  background: var(--coral-soft);
  border-left: 3px solid var(--coral);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 16px;
  font-size: 14.5px !important;
  color: var(--ink) !important;
  margin: 0 !important;
}

/* ---------- 예시 화면 ---------- */
.g-shot { margin: 0 0 28px; }
.g-shot-svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.g-shot figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
}
.g-shot-note { color: var(--muted); opacity: .75; }

/* ---------- 단계 목록 ---------- */
.g-steplist { list-style: none; margin: 0; padding: 0; counter-reset: gstep; }
.g-steplist > li {
  position: relative;
  counter-increment: gstep;
  padding: 0 0 26px 52px;
  border-left: 2px solid var(--line);
  margin-left: 15px;
}
.g-steplist > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.g-steplist > li::before {
  content: counter(gstep);
  position: absolute;
  left: -16px;
  top: -2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.g-steplist > li p { margin: 0; }

.g-checklist { margin: 0; padding-left: 22px; }
.g-checklist li { font-size: 15.5px; line-height: 1.9; color: var(--muted); }
.g-checklist li b { color: var(--ink); }

/* ---------- FAQ ---------- */
.g-faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
  background: #fff;
}
.g-faq-item summary {
  padding: 16px 18px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 44px;
}
.g-faq-item summary::-webkit-details-marker { display: none; }
.g-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 19px;
  color: var(--coral);
  font-weight: 400;
}
.g-faq-item[open] summary::after { content: "−"; }
.g-faq-a { padding: 0 18px 18px; }
.g-faq-a p { margin: 0; font-size: 15px; }

/* ---------- 관련 가이드 ---------- */
.g-rel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.g-rel {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: #fff;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.g-rel:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--coral);
}
.g-rel strong {
  display: block;
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 5px;
  font-weight: 700;
}
.g-rel span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

/* ---------- 마무리 CTA ---------- */
.g-cta {
  text-align: center;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 44px 28px;
}
.g-cta h2 { margin-bottom: 10px; }
.g-cta p { margin-bottom: 22px; }

@media (max-width: 720px) {
  .guide { padding: 92px 18px 60px; }
  .guide h1 { font-size: 28px; }
  .guide h2 { font-size: 21px; }
  .g-rel-grid { grid-template-columns: 1fr; }
  .g-steplist > li { padding-left: 40px; }
}
