/* guide.css v2 — 상세(/guide/*)·상담(/contact/). 메인(front.css)과 같은 언어: 단색 네이비, 아이보리 패널, 가는 헤드라인 + 굵은 핵심어, 사진·실제 화면 교차 */

.gd { word-break: keep-all; }
.gd [id] { scroll-margin-top: calc(var(--header-h) + 24px); }
.gd h2 { font-size: clamp(28px, 3.2vw, 42px); margin-bottom: 20px; }
.gd-block { padding-top: 140px; }

/* 기기 프레임 — front.css와 같은 규칙(이 페이지엔 front.css가 로드되지 않음) */
.dv-phone { margin: 0; width: 260px; aspect-ratio: 390 / 844; padding: 9px; background: #0E0F11; border-radius: 42px; box-shadow: var(--shadow); flex: none; }
.dv-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 33px; background: #fff; }
.dv-browser { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.dv-bar { display: flex; align-items: center; height: 40px; padding: 0 16px; background: #F3F1EC; border-bottom: 1px solid var(--line); }
.dv-bar i { font-style: normal; font-size: 12.5px; color: var(--ink-3); background: #fff; border-radius: 6px; padding: 3px 14px; margin: 0 auto; max-width: 70%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dv-browser img { width: 100%; aspect-ratio: 1280 / 800; object-fit: cover; object-position: top; }

/* 링크: 밑줄 + 화살표 */
.gd-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); border-bottom: 1.5px solid var(--ink); padding-bottom: 2px; }
.gd-link::after { content: "→"; transition: transform .2s; }
.gd-link:hover { color: var(--primary); border-color: var(--primary); }
.gd-link:hover::after { transform: translateX(4px); }
.gd-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }

/* ---------- 히어로 ---------- */
.gd-hero { padding: 56px 0 0; }
.gd-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.gd-crumb { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; font-size: 14px; color: var(--ink-3); }
.gd-crumb a { color: var(--ink-2); }
.gd-crumb a:hover { color: var(--primary); }
.gd-eyebrow { margin: 0 0 14px; font-size: 15px; font-weight: 600; color: var(--primary); }
.gd-h1 { margin: 0 0 28px; font-size: clamp(44px, 5.4vw, 76px); font-weight: 700; letter-spacing: -0.045em; line-height: 1.12; color: var(--primary); }
.gd-answer { max-width: 560px; margin: 0 0 40px; font-size: 17.5px; color: var(--ink-2); }
.gd-hero-photo { margin: 0; }
.gd-hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); background: var(--bg-soft); }
.gd-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 72px 0 0; padding: 32px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gd-facts div { padding: 0 28px; border-left: 1px solid var(--line); }
.gd-facts div:first-child { padding-left: 0; border-left: 0; }
.gd-facts dt { font-size: 14px; color: var(--ink-3); margin-bottom: 6px; }
.gd-facts dd { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.gd-facts small { display: block; font-size: 14px; font-weight: 400; color: var(--ink-2); margin-top: 2px; }

/* ---------- 비용 패널 ---------- */
.gd-panel { background: var(--bg-soft); border-radius: var(--r-lg); padding: 72px; }
.gd-panel-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 40px; }
.gd-panel-head h2 { margin: 0; }
.gd-panel-head p { margin: 0; color: var(--ink-2); font-size: 16px; }
.gd .rd-table-wrap { margin: 0; border-radius: var(--r); }
.gd .rd-table thead th { background: #fff; color: var(--ink-3); }
.gd .rd-table td.gd-price { color: var(--primary); font-weight: 700; white-space: nowrap; }
.gd .rd-table td.gd-nowrap { white-space: nowrap; }

/* ---------- 사진/화면 + 글 교차 행 ---------- */
.gd-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 88px; align-items: center; }
.gd-row.is-reverse { grid-template-columns: 1fr 1.2fr; }
.gd-row.is-reverse > figure { order: 2; }
.gd-row-text h2 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; letter-spacing: -0.035em; }
.gd-row-text p, .gd-text p { margin: 0; color: var(--ink-2); line-height: 1.85; }
.gd-photo { margin: 0; }
.gd-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-lg); }
/* 화면 목업은 아이보리 무대 위에 */
.gd-stage { margin: 0; display: flex; justify-content: center; align-items: flex-start; overflow: hidden; background: var(--bg-soft); border-radius: var(--r-lg); }
.gd-stage.is-phone { height: 520px; padding-top: 56px; }
.gd-stage.is-browser { padding: 56px 0 0 56px; justify-content: flex-start; }
.gd-stage.is-browser .dv-browser { width: 118%; border-radius: 16px 0 0 0; border-right: 0; border-bottom: 0; flex: none; }
.gd-stage.is-paper { height: 520px; padding-top: 56px; }
.gd-paper { width: 300px; border-radius: 10px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.gd-wide .gd-photo img { aspect-ratio: 21 / 9; }

.gd-text { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; padding-top: 40px; border-top: 1px solid var(--line); }
.gd-text h2 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 700; letter-spacing: -0.03em; margin: 0; }

/* ---------- 진행 순서 ---------- */
.gd-steps-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 88px; align-items: start; }
.gd-steps-side { position: sticky; top: calc(var(--header-h) + 32px); }
.gd-steps-side > p { color: var(--ink-2); margin-bottom: 36px; }
.gd-steps-side .gd-stage.is-phone, .gd-steps-side .gd-stage.is-paper { height: 400px; }
.gd-steps-side .gd-stage.is-browser { padding: 40px 0 0 40px; }
.gd-steps { list-style: none; margin: 0; padding: 0; }
.gd-steps li { display: grid; grid-template-columns: 48px 1fr; padding: 28px 0; border-bottom: 1px solid var(--line); }
.gd-steps li:first-child { border-top: 1px solid var(--ink); }
.gd-steps span { font-size: 15px; font-weight: 700; color: var(--primary); padding-top: 2px; }
.gd-steps p { margin: 0; font-size: 18px; font-weight: 500; color: var(--ink); line-height: 1.6; }

/* ---------- FAQ ---------- */
.gd-faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 80px; align-items: start; }
.gd-faq-side { position: sticky; top: calc(var(--header-h) + 32px); }
.gd-faq-side p { color: var(--ink-2); }

/* ---------- CTA ---------- */
.gd-cta-panel { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-soft); border-radius: var(--r-lg); overflow: hidden; }
.gd-cta-panel > div { padding: 80px 72px; }
.gd-cta-panel p { color: var(--ink-2); margin-bottom: 32px; }
.gd-cta-panel img { width: 100%; height: 100%; min-height: 440px; object-fit: cover; }

/* ---------- 관련 문서 ---------- */
.gd-rel, .gd-last { padding-bottom: 140px; }
.gd-rel-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 40px; border-top: 1px solid var(--ink); }
.gd-rel-list li { border-bottom: 1px solid var(--line); }
.gd-rel-list a { display: flex; flex-direction: column; position: relative; padding: 20px 32px 20px 0; color: var(--ink); font-weight: 600; }
.gd-rel-list small { font-size: 13px; font-weight: 400; color: var(--ink-3); }
.gd-rel-list a::after { content: "→"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--ink-3); transition: transform .2s, color .2s; }
.gd-rel-list a:hover { color: var(--primary); }
.gd-rel-list a:hover::after { color: var(--primary); transform: translate(4px, -50%); }
.gd-sticky { display: none; }

/* ---------- 상담 페이지 ---------- */
.gd-contact-info { display: grid; grid-template-columns: 1fr 1.2fr 1fr 1.5fr; margin: 72px 0 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gd-contact-info > div { padding: 32px 28px; border-left: 1px solid var(--line); }
.gd-contact-info > div:first-child { padding-left: 0; border-left: 0; }
.gd-contact-info dt { font-size: 14px; color: var(--ink-3); margin-bottom: 6px; }
.gd-contact-info dd { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.gd-contact-info dd small { display: block; font-size: 14px; font-weight: 400; color: var(--ink-2); margin-top: 4px; }
.gd-contact-info .rd-tel-reveal { margin-top: 14px; }
.gd-steps h3 { font-size: 20px; margin: 0 0 4px; }
.gd-steps h3 + p { font-size: 16px; font-weight: 400; color: var(--ink-2); line-height: 1.75; }

/* ---------- 반응형 ---------- */
@media (max-width: 1080px) {
    .gd-hero-grid, .gd-row, .gd-row.is-reverse, .gd-steps-grid, .gd-faq-grid, .gd-cta-panel, .gd-panel-head, .gd-text { grid-template-columns: 1fr; }
    .gd-hero-grid { gap: 48px; }
    .gd-hero-photo img { aspect-ratio: 4 / 3; }
    .gd-row, .gd-steps-grid, .gd-faq-grid { gap: 40px; }
    .gd-row.is-reverse > figure { order: 0; }
    .gd-steps-side, .gd-faq-side { position: static; }
    .gd-panel-head { gap: 16px; }
    .gd-text { gap: 16px; }
    .gd-rel-list { grid-template-columns: repeat(2, 1fr); }
    .gd-contact-info { grid-template-columns: 1fr 1fr; }
    .gd-contact-info > div:nth-child(3) { padding-left: 0; border-left: 0; }
    .gd-contact-info > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
    .gd-block { padding-top: 96px; }
    .gd-hero { padding-top: 28px; }
    .gd-crumb { margin-bottom: 24px; font-size: 13px; }
    .gd-h1 { font-size: 44px; margin-bottom: 20px; }
    .gd-answer { font-size: 16.5px; margin-bottom: 32px; }
    .gd-actions { gap: 20px; }
    .gd-hero-grid { gap: 36px; }
    .gd-hero-photo img, .gd-photo img { border-radius: 20px; }
    .gd-facts { grid-template-columns: 1fr; margin-top: 40px; padding: 8px 0; }
    .gd-facts div { padding: 16px 0; border-left: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
    .gd-facts div + div { border-top: 1px solid var(--line); }
    .gd-facts dt { margin: 0; }
    .gd-facts dd { font-size: 17px; text-align: right; }
    .gd-facts small { font-size: 13px; }
    .gd-panel { padding: 44px 20px 20px; border-radius: 24px; }
    .gd-stage { border-radius: 24px; }
    .gd-stage.is-phone, .gd-stage.is-paper, .gd-steps-side .gd-stage.is-phone, .gd-steps-side .gd-stage.is-paper { height: 400px; padding-top: 40px; }
    .gd-stage .dv-phone { width: 220px; }
    .gd-paper { width: 240px; }
    .gd-stage.is-browser, .gd-steps-side .gd-stage.is-browser { padding: 28px 0 0 24px; }
    .gd-stage.is-browser .dv-browser { width: 150%; }
    .gd-wide .gd-photo img { aspect-ratio: 4 / 3; }
    .gd-steps li { grid-template-columns: 36px 1fr; padding: 22px 0; }
    .gd-steps p { font-size: 16.5px; }
    .gd-cta-panel > div { padding: 48px 24px; }
    .gd-cta-panel img { min-height: 240px; }
    .gd-cta-panel .rd-btn { width: 100%; }
    .gd-rel, .gd-last { padding-bottom: 120px; }
    .gd-rel-list { grid-template-columns: 1fr; }
    .gd-contact-info { grid-template-columns: 1fr; }
    .gd-contact-info > div { padding: 22px 0 !important; border-left: 0 !important; border-bottom: 1px solid var(--line); }
    .gd-contact-info > div:last-child { border-bottom: 0; }
    .gd-sticky { display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90; }
    .gd-sticky .rd-btn { width: 100%; box-shadow: 0 10px 30px rgba(23, 25, 28, .25); }
    body:has(.gd-sticky) .rd-footer { padding-bottom: 100px; }

    /* 표 → 카드형 */
    .gd .rd-table-wrap { overflow: visible; border: 0; background: none; }
    .gd .rd-table, .gd .rd-table tbody, .gd .rd-table tr, .gd .rd-table td { display: block; width: 100%; min-width: 0; }
    .gd .rd-table thead { display: none; }
    .gd .rd-table tr { margin-bottom: 10px; padding: 18px 18px 14px; border-radius: var(--r-sm); background: #fff; }
    .gd .rd-table tbody tr:hover { background: #fff; }
    .gd .rd-table td { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; padding: 4px 0; border: 0; font-size: 14.5px; line-height: 1.6; white-space: normal; }
    .gd .rd-table td::before { content: attr(data-label); color: var(--ink-3); font-size: 13px; }
    .gd .rd-table td:first-child { display: block; font-size: 16px; font-weight: 700; color: var(--ink); padding: 0 0 10px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
    .gd .rd-table td:first-child::before { content: none; }
}
.gd-rel { padding-top: 24px !important; padding-bottom: 24px !important; }
