/* =========================================================
   CALLBOTO 도입 가이드 (ko/guide/)
   - style.css(토큰·헤더·푸터·클로징 CTA) 위에 얹는 가이드 전용 스타일
   - 반응형 기준은 style.css와 동일: 1080px / 767px
   ========================================================= */

:root {
    --g-wrap: 1280px;
    --g-text: #444444;
    --g-muted: #767676;
    --g-soft: #f4f5ff;
    --g-num: linear-gradient(90deg, #3347ff 0%, #8d71ff 100%);
    --g-bar: linear-gradient(90deg, #3347ff 0%, #ff4d7d 100%);
    --g-on-photo: linear-gradient(90deg, #aeb6ff 0%, #ffb7f7 100%);
    --g-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    --g-shadow-lg: 0 8px 28px rgba(0, 0, 0, 0.06);
}

.g-wrap {
    width: 100%;
    max-width: calc(var(--g-wrap) + var(--container-pad) * 2);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

/* ---------- 섹션 공통 ---------- */
.g-section {
    padding: 120px 0;
    background: #fff;
}

.g-section--cream {
    background: var(--c-cream);
}

/* 사진 배경 섹션: 이미지는 HTML 인라인 style 로 지정 */
.g-section--photo {
    background-color: #404040;
    background-size: cover;
    background-position: center;
    color: #fff;
}

.g-head {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 56px;
}

.g-head--center {
    align-items: center;
    text-align: center;
}

.g-eyebrow {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.36;
    color: var(--c-brand);
}

.g-section--photo .g-eyebrow {
    background: var(--g-on-photo);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.g-title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.36;
    color: var(--c-ink-strong);
}

.g-section--photo .g-title {
    color: #fff;
}

.g-sub {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--g-text);
}

.g-text {
    font-size: 17px;
    line-height: 1.65;
    color: var(--g-text);
}

.g-section--photo .g-text {
    color: #fff;
}

.g-note {
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.5;
    color: #8a8a8a;
}

/* =========================================================
   히어로 (아티클형)
   ========================================================= */
.g-hero {
    padding: 96px 0 56px;
    text-align: center;
}

.g-hero--list {
    padding-bottom: 72px;
}

.g-hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

.g-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.36;
    color: var(--c-brand);
}

.g-breadcrumb a {
    color: var(--c-brand);
}

.g-breadcrumb a:hover {
    text-decoration: underline;
}

.g-breadcrumb .g-sep {
    color: #8a8a8a;
    font-weight: 400;
}

.g-hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.32;
    color: var(--c-ink-strong);
}

.g-hero-lead {
    font-size: 20px;
    line-height: 1.65;
    color: #555;
}

.g-hero-image {
    padding-bottom: 0;
}

.g-hero-image img {
    width: 100%;
    aspect-ratio: 1280 / 600;
    object-fit: cover;
    border-radius: 20px;
}

.g-hero-image--full img {
    aspect-ratio: 16 / 9;
}

/* =========================================================
   번호 카드 (01 · 02 · 03 · 04)
   ========================================================= */
.g-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.g-cards--3 {
    grid-template-columns: repeat(3, 1fr);
}

.g-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 32px 28px;
    background: #fff;
    border: 1px solid var(--c-line-warm);
    border-radius: 16px;
    box-shadow: var(--g-shadow);
}

.g-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 4px;
    background: var(--g-bar);
}

.g-num {
    font-size: 52px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    background: var(--g-num);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.g-card-label {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.36;
    color: var(--c-brand);
}

.g-card-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.36;
    color: var(--c-ink-strong);
}

.g-card-desc {
    font-size: 16px;
    line-height: 1.6;
    color: var(--g-text);
}

/* =========================================================
   좌우 분할 (텍스트 + 보조 영역)
   ========================================================= */
.g-split {
    display: flex;
    align-items: center;
    gap: 80px;
}

.g-split > .g-split-main {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.g-split > .g-split-side {
    flex: 0 0 auto;
}

.g-split-main .g-head {
    margin-bottom: 0;
}

.g-split--top {
    align-items: flex-start;
}

/* 포인트 박스 (사진 섹션 = 반투명 라인 / 일반 섹션 = 흰 카드) */
.g-points {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.g-point {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 20px;
    border: 1px solid #969696;
    border-radius: 12px;
}

.g-point-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.g-point-desc {
    font-size: 16px;
    line-height: 1.6;
}

.g-section--photo .g-point {
    color: #fff;
}

.g-point--light {
    background: #fff;
    border-color: var(--c-line-warm);
}

.g-point--light .g-point-title {
    color: var(--c-ink-strong);
}

.g-point--light .g-point-desc {
    color: var(--g-text);
}

/* 인용 카드 */
.g-quote {
    width: 500px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 32px 40px 32px 36px;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--g-shadow-lg);
    color: var(--c-ink-strong);
}

.g-quote-mark {
    flex: 0 0 auto;
    font-size: 56px;
    font-weight: 700;
    line-height: 1;
    color: #ff4d7d;
}

.g-quote-body {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 6px;
    text-align: center;
}

.g-quote-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--c-ink-strong);
}

.g-quote-desc {
    font-size: 17px;
    line-height: 1.6;
    color: var(--g-text);
}

/* 대화 카드 */
.g-chat {
    width: 628px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px 28px;
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--g-shadow-lg);
}

.g-msg {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.g-msg--bot {
    align-items: flex-end;
}

.g-msg-who {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.36;
    color: var(--g-muted);
}

.g-msg--bot .g-msg-who {
    color: var(--c-brand);
}

.g-msg--check .g-msg-who {
    color: #ff4d7d;
}

.g-msg-bubble {
    max-width: 100%;
    padding: 14px 18px;
    border-radius: 14px;
    background: #f3f3f6;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--c-ink-strong);
}

.g-msg--bot .g-msg-bubble {
    background: var(--c-brand);
    color: #fff;
}

.g-msg--check .g-msg-bubble {
    background: #eef0ff;
}

/* 말풍선 순차 등장 (메인 챗 목업과 같은 bubbleIn 키프레임 · style.css) */
.g-msg--in {
    animation: bubbleIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* 타이핑 인디케이터 */
.g-typing {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 25px; /* 이름 라벨 높이만큼 내려 첫 말풍선 자리와 맞춤 */
    padding: 18px 20px;
    border-radius: 14px;
    background: #f3f3f6;
    animation: bubbleIn 0.3s ease both;
}

.g-typing--bot {
    align-self: flex-end;
    background: var(--c-brand);
}

.g-typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #b5b5be;
    animation: typingDot 1s infinite ease-in-out;
}

.g-typing--bot span {
    background: rgba(255, 255, 255, 0.85);
}

.g-typing span:nth-child(2) { animation-delay: 0.15s; }
.g-typing span:nth-child(3) { animation-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
    .g-msg--in,
    .g-typing,
    .g-typing span { animation: none; }
}

/* 섹션 이미지 */
.g-photo {
    border-radius: 24px;
    object-fit: cover;
}

.g-photo--list {
    width: 520px;
    height: 360px;
}

.g-photo--head {
    width: 520px;
    height: 320px;
}

.g-photo--tall {
    width: 520px;
    height: 560px;
}

/* =========================================================
   번호 목록 (왼쪽 제목+이미지 / 오른쪽 목록)
   ========================================================= */
.g-list-layout {
    display: flex;
    gap: 80px;
}

.g-list-aside {
    flex: 0 0 520px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.g-list-aside .g-head {
    margin-bottom: 0;
}

.g-list {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.g-list-item {
    display: flex;
    gap: 20px;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--c-line-warm);
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.g-list-no {
    flex: 0 0 auto;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--c-brand);
}

.g-list-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.g-list-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.36;
    color: var(--c-ink-strong);
}

.g-list-desc {
    font-size: 17px;
    line-height: 1.6;
    color: var(--g-text);
}

/* =========================================================
   표
   ========================================================= */
.g-head-row {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 56px;
}

.g-head-row .g-head {
    flex: 1 1 0;
    margin-bottom: 0;
}

.g-table-wrap {
    overflow-x: auto;
    background: #fff;
    border: 1px solid var(--c-line-warm);
    border-radius: 20px;
    box-shadow: var(--g-shadow-lg);
}

.g-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.g-table th,
.g-table td {
    padding: 24px 36px;
    font-size: 18px;
    line-height: 1.5;
    vertical-align: middle;
}

.g-table thead th {
    padding-top: 20px;
    padding-bottom: 20px;
    background: var(--c-ink-strong);
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.g-table tbody th {
    width: 300px;
    font-weight: 700;
    color: var(--c-ink-strong);
}

.g-table--2col tbody th {
    width: 420px;
}

.g-table tbody td {
    color: var(--g-text);
}

.g-table tbody tr + tr {
    border-top: 1px solid #efece8;
}

.g-table tbody tr:nth-child(even) {
    background: #fafafc;
}

.g-table .is-accent {
    color: var(--c-brand);
}

/* =========================================================
   FAQ
   ========================================================= */
.g-faq-layout {
    display: flex;
    gap: 80px;
}

.g-faq-aside {
    flex: 0 0 400px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.g-faq-aside .g-text {
    color: var(--g-muted);
}

.g-faq {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.g-faq details {
    padding: 24px 28px;
    background: #fff;
    border: 1px solid var(--c-line-warm);
    border-radius: 16px;
}

.g-faq details[open] {
    background: var(--g-soft);
    border-color: var(--g-soft);
}

.g-faq summary {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--c-ink-strong);
    cursor: pointer;
    list-style: none;
}

.g-faq summary::-webkit-details-marker {
    display: none;
}

.g-faq summary span {
    flex: 1 1 0;
}

/* 토글 아이콘: 글자(+/−) 대신 막대 2개를 그려 원 정중앙에 정확히 맞춤 */
.g-faq summary::after {
    content: "";
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background:
        linear-gradient(#767676, #767676) center / 12px 2px no-repeat,
        linear-gradient(#767676, #767676) center / 2px 12px no-repeat,
        #f3f3f6;
    transition: background-color 0.15s ease;
}

.g-faq summary:hover::after {
    background:
        linear-gradient(#171a24, #171a24) center / 12px 2px no-repeat,
        linear-gradient(#171a24, #171a24) center / 2px 12px no-repeat,
        #e9e9ee;
}

.g-faq details[open] summary::after {
    background:
        linear-gradient(#fff, #fff) center / 12px 2px no-repeat,
        var(--c-brand);
}

.g-faq details p {
    margin-top: 12px;
    font-size: 17px;
    line-height: 1.6;
    color: var(--g-text);
}

/* =========================================================
   가이드 카드 (목록 + 함께 읽으면 좋은 가이드)
   ========================================================= */
.g-guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.g-guide-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--c-line-warm);
    border-radius: 16px;
    box-shadow: var(--g-shadow);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.g-guide-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.g-guide-card img {
    width: 100%;
    aspect-ratio: 416 / 240;
    object-fit: cover;
}

.g-guide-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 28px 28px 32px;
}

.g-guide-label {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.36;
    color: var(--c-brand);
}

.g-guide-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.36;
    color: var(--c-ink-strong);
}

.g-guide-desc {
    font-size: 16px;
    line-height: 1.5;
    color: var(--g-text);
}

.g-guide-more {
    margin-top: auto;
    padding-top: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--c-brand);
}

/* 목록 페이지의 상담 카드 */
.g-contact-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 14px;
    padding: 40px 36px;
    background: var(--c-ink-strong);
    border-radius: 16px;
}

.g-contact-label {
    font-size: 14px;
    font-weight: 700;
    color: #768aff;
}

.g-contact-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.36;
    color: #fff;
}

.g-contact-desc {
    font-size: 16px;
    line-height: 1.5;
    color: #bfbfbf;
}

.g-contact-card .btn-pill {
    font-size: 16px;
    font-weight: 700;
}

.g-list-page {
    padding: 24px 0 120px;
}

.g-related {
    padding: 100px 0 120px;
}

.g-related-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
}

.g-related-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.36;
    color: var(--c-ink-strong);
}

.g-related-all {
    font-size: 16px;
    font-weight: 700;
    color: var(--c-brand);
    white-space: nowrap;
}

/* 데스크톱 전용 줄바꿈 */
.br-pc {
    display: inline;
}

/* ---------- 줄바꿈 다듬기 ----------
   - balance: 제목·짧은 문장은 줄 길이를 고르게 나눔
   - pretty : 긴 문단은 마지막 줄에 한 단어만 남지 않게 함
   (미지원 브라우저는 기존 keep-all 줄바꿈 그대로) */
.g-hero-title,
.g-hero-lead,
.g-title,
.g-sub,
.g-card-title,
.g-card-desc,
.g-list-title,
.g-point-title,
.g-quote-title,
.g-quote-desc,
.g-guide-title,
.g-guide-desc,
.g-contact-title,
.g-related-title,
.g-faq summary span,
.g-table th,
.g-table td,
.closing-title,
.closing-desc,
.g-text,
.g-list-desc,
.g-point-desc,
.g-faq details p {
    text-wrap: balance;
}

.g-msg-bubble,
.g-note {
    text-wrap: pretty;
}

/* =========================================================
   반응형 — 태블릿 (≤1080px)
   ========================================================= */
@media (max-width: 1080px) {
    .g-section {
        padding: 96px 0;
    }

    .g-hero-title {
        font-size: 46px;
    }

    .g-title {
        font-size: 34px;
    }

    .g-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .g-cards--3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .g-split,
    .g-head-row,
    .g-list-layout,
    .g-faq-layout {
        flex-direction: column;
        align-items: stretch;
        gap: 40px;
    }

    .g-list-aside,
    .g-faq-aside {
        flex: 0 0 auto;
    }

    .g-quote,
    .g-chat {
        width: 100%;
    }

    .g-photo--list,
    .g-photo--head,
    .g-photo--tall {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .g-split--reverse {
        flex-direction: column-reverse;
    }

    .g-guide-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .g-table tbody th,
    .g-table--2col tbody th {
        width: auto;
    }
}

/* =========================================================
   반응형 — 모바일 (≤767px)
   ========================================================= */
@media (max-width: 767px) {
    .g-section {
        padding: 72px 0;
    }

    .g-head {
        margin-bottom: 36px;
    }

    .g-hero {
        padding: 56px 0 32px;
    }

    .g-hero-inner {
        gap: 16px;
    }

    .g-hero-title {
        font-size: 30px;
    }

    .g-hero-lead {
        font-size: 16px;
    }

    .g-hero-image img {
        aspect-ratio: 4 / 3;
        border-radius: 16px;
    }

    .g-eyebrow {
        font-size: 15px;
    }

    .g-title {
        font-size: 26px;
    }

    .g-sub {
        font-size: 16px;
    }

    .g-text,
    .g-list-desc,
    .g-faq details p,
    .g-quote-desc {
        font-size: 15px;
    }

    .g-cards,
    .g-cards--3,
    .g-guide-grid {
        grid-template-columns: 1fr;
    }

    .g-card {
        padding: 28px 24px;
    }

    .g-num {
        font-size: 40px;
    }

    .g-card-title,
    .g-list-title {
        font-size: 19px;
    }

    .g-list-item {
        padding: 22px 20px;
        gap: 14px;
    }

    .g-list-no {
        font-size: 22px;
    }

    .g-quote {
        padding: 24px 20px;
        gap: 10px;
    }

    .g-quote-mark {
        font-size: 40px;
    }

    .g-quote-title {
        font-size: 19px;
    }

    .g-chat {
        padding: 20px 16px;
    }

    .g-msg-bubble {
        font-size: 15px;
    }

    .g-table th,
    .g-table td {
        padding: 16px 18px;
        font-size: 15px;
    }

    .g-table {
        min-width: 560px;
    }

    .g-faq details {
        padding: 18px 18px;
    }

    .g-faq summary {
        font-size: 17px;
    }

    .g-faq summary::after {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
    }

    .g-related {
        padding: 72px 0;
    }

    .g-related-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .g-related-title {
        font-size: 22px;
    }

    .g-contact-title {
        font-size: 24px;
    }

    .br-pc {
        display: none;
    }
}
