/* 사용 가이드(/guide) — styles.css의 토큰·버튼·섹션을 그대로 쓰고 이 페이지에만 필요한 것만 더한다 */
.guide-page { --nav-h: 68px; --toc-h: 56px; }
.guide-page .nav { position: relative; }
html.in-app .site-only { display: none !important; }
html.in-app .guide-page .nav-in { justify-content: center; }

/* 첫 화면 */
.g-hero { padding: 64px 0 40px; text-align: center; }
.g-hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.2; margin-bottom: 18px; }
.g-hero h1 em { font-style: normal; color: var(--wine); }
.g-hero .lead { max-width: 640px; margin-inline: auto; }

/* 목차(붙어 다님) */
.g-toc { position: sticky; top: 0; z-index: 15; background: rgba(247, 243, 236, 0.92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-block: 1px solid var(--line); }
.g-toc-in { display: flex; gap: 6px; height: var(--toc-h); align-items: center; overflow-x: auto; scrollbar-width: none; justify-content: safe center; }
.g-toc-in::-webkit-scrollbar { display: none; }
.g-toc a { flex: none; padding: 7px 14px; border-radius: 999px; font-size: 14px; color: var(--muted); text-decoration: none; white-space: nowrap; transition: background 0.2s, color 0.2s; }
.g-toc a:hover { color: var(--wine); }
.g-toc a.on { background: var(--wine); color: var(--paper); }

/* 기능 절 */
.g-sec { padding: 88px 0; scroll-margin-top: var(--toc-h); }
.g-tint { background: var(--paper); border-block: 1px solid var(--line); }
.g-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 72px; align-items: center; }
.g-feature.flip .g-shots { order: 2; }
.g-shots { display: flex; justify-content: center; align-items: flex-start; gap: 24px; }
.g-shots .phone { width: min(300px, 100%); }
.g-shots.two .phone { width: min(260px, 48%); }
.g-shots.two .phone:nth-child(2) { margin-top: 48px; }

.phone { margin: 0; border-radius: 34px; padding: 7px; background: var(--ink); box-shadow: var(--shadow); }
.phone img { border-radius: 27px; width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; background: var(--ivory); }

.g-num { font: 600 14px/1 var(--serif); color: var(--wine); letter-spacing: 0.1em; margin-bottom: 12px; }
.g-text h2, .g-sec-head h2, .g-anywhere h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 14px; }
.g-text > .lead { margin-bottom: 24px; }
.g-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.g-points li { position: relative; padding-left: 20px; color: var(--muted); font-size: 15.5px; line-height: 1.65; }
.g-points li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--wine); }
.g-points b { display: block; color: var(--ink); font-weight: 600; font-size: 16px; }
.g-points em { font-style: normal; color: var(--ink); font-weight: 500; }
.g-tip { margin-top: 22px; padding: 14px 18px; border-radius: 14px; background: var(--wine-faint); color: var(--wine-pressed); font-size: 14.5px; }
.g-tip::before { content: "TIP  "; font: 700 12px/1 var(--sans); letter-spacing: 0.08em; }

/* 나에게 맞추기 */
.g-sec-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.g-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.g-card { background: var(--ivory); border-radius: var(--radius); padding: 28px 26px 30px; }
.g-card .phone { width: min(230px, 80%); margin: 0 auto 24px; }
.g-card h3 { font-size: 19px; margin-bottom: 6px; }
.g-card p { color: var(--muted); font-size: 15px; }

/* 어디서나 */
.g-anywhere { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.laptop { margin: 0; padding: 10px; border-radius: 18px; background: var(--ink); box-shadow: var(--shadow); }
.laptop img { border-radius: 10px; width: 100%; }

/* 자주 묻는 질문 */
.g-faq { max-width: 760px; }
.g-faq .guide { padding: 18px 4px; }
.g-faq .guide summary { font-size: 16px; }
.g-faq .guide p { margin-top: 10px; color: var(--muted); font-size: 15px; }

@media (max-width: 960px) {
  .g-feature, .g-anywhere { grid-template-columns: 1fr; gap: 40px; }
  .g-feature.flip .g-shots { order: 0; }
  .g-cards { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .g-toc-in { justify-content: flex-start; }
}
@media (max-width: 720px) {
  .g-hero { padding: 40px 0 28px; }
  .g-sec { padding: 64px 0; }
  .g-shots { gap: 14px; }
  .g-shots .phone { width: min(260px, 78%); }
  .g-shots.two .phone { width: 48%; }
  .g-shots.two .phone:nth-child(2) { margin-top: 28px; }
  .phone { border-radius: 26px; padding: 5px; }
  .phone img { border-radius: 21px; }
}
