/* ── 공유 CTA 컴포넌트 스타일 정본 (2026-08-18 개선 #599) ──────────────────
   출처: inc/page-cta.php <style> 블록(구 L97~L548)을 위치만 옮긴 것이다.
   값 창작·정리·병합·재정렬 0건 — 이관 시점 원본과 규칙·순서·값이 동일하다.
   (개선 #598 이 만든 본문을 그대로 승계한다. 본문 바이트 무변경.)

   [1] 위치 계약 — 이 시트는 <head> 가 아니라 inc/page-cta.php 안,
       <section class="page-cta-section"> 바로 앞 body 위치에서 <link> 로 불린다.
       <head> 로 올리면 common-pages.css 와의 동일 특이도 승패가 뒤집혀 CTA 가 깨진다.
       링크 위치를 옮기지 말 것.

   [2] 배포 계약 — 개선 #598 이 FAIL 한 유일한 원인이 여기 있다.
       automation/auto-improve.sh 는 업로드 목록을 `git diff --name-only -- www/` 로 만드는데
       이 명령은 "미추적 신규 파일"을 출력하지 않는다. 그래서 #598 때 갓 만들어진 이 파일이
       업로드 목록에 아예 없었고, 라이브에서 404 가 나 20여 페이지 CTA 가 통째로 무스타일이 됐다.
       → 이 시트의 내용이나 링크 방식을 바꾸는 사이클은 반드시 "이 파일 자체도 수정"해서
         diff 에 태워야 한다. 안 그러면 PHP 만 배포되고 시트는 옛 버전으로 남는다.
       → www/ 아래 신규 파일을 만드는 개선은 같은 이유로 배포되지 않는다. 주의할 것.
*/
.page-cta-section {
    padding: 88px 0;
    background:
        radial-gradient(circle at top right, rgba(196, 162, 101, 0.18), transparent 30%),
        linear-gradient(145deg, #0f1f2f 0%, #1b2f43 100%);
}
.page-cta {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr);
    gap: 32px;
    align-items: start;
}
.page-cta__panel {
    padding: 32px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}
.page-cta__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.page-cta__eyebrow::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--ssok-accent);
}
/* 2026-08-06 #542: 세리프는 700 한 weight만 배달 → 이 400 선언은 실제로 700 으로 렌더돼 왔다.
   clamp(1.7rem,2.4vw,2.7rem) 흰색 대제목이라 700 디스플레이가 적정. 선언만 실체에 맞춘다(픽셀 0). */
.page-cta__title {
    font-family: var(--ssok-font-serif);
    color: #fff;
    font-weight: 700;
    font-size: clamp(1.7rem, 2.4vw, 2.7rem);
    line-height: 1.4;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
}
.page-cta__title strong {
    color: var(--ssok-accent-light);
}
.page-cta__lead {
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 24px;
    font-size: 1rem;
    line-height: 1.85;
}
.page-cta__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}
.page-cta__trust span {
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.88rem;
    font-weight: 500;
    word-break: keep-all;
    white-space: nowrap;
}
/* iter 5 — 모바일 trust chip 가독성: 한 줄당 1-2 chip, 더 큰 폰트 */
@media (max-width: 480px) {
    .page-cta__trust {
        gap: 8px;
        margin-bottom: 22px;
    }
    .page-cta__trust span {
        font-size: 0.84rem;
        padding: 8px 14px;
        white-space: normal;
        flex: 1 1 auto;
    }
}
/* iter 2 — CTA hierarchy systematization (2026-05-17)
 * 3-tier: primary(전화, gradient 58px) / secondary(네이버 예약, fill-on-hover 52px) / tertiary(카톡, text+arrow)
 * 보조 문구 .page-cta__support — "치과마취과 인정의가 직접 진료" 신뢰 부스터
 * 보조 sub-line .page-cta__action-sub — primary CTA 아래 "24시간 예약 접수"
 * mobile sticky CTA gradient(#C4A265→#B0894A)와 톤 통일
 */
.page-cta__support {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(196, 162, 101, 0.14);
    border: 1px solid rgba(196, 162, 101, 0.30);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.84rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}
.page-cta__support::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ssok-accent-light, #E8D5B5);
    box-shadow: 0 0 0 3px rgba(232, 213, 181, 0.25);
}
.page-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}
.page-cta__action {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.page-cta__action-sub {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.78rem;
    letter-spacing: -0.01em;
    padding-left: 4px;
}
/* 개선 — L2 벤치마크 ②: 버튼별 의도 라벨.
 * "어떤 마음 상태인 사람이 누를 버튼인지"를 버튼 위에 한 줄로 안내해
 * 치과공포 환자가 자기에게 맞는 채널을 고르게 한다. */
.page-cta__action-intent {
    color: var(--ssok-accent-light, #E8D5B5);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    padding-left: 4px;
}
.page-cta__actions-note {
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.8rem;
    line-height: 1.7;
}
/* PRIMARY — 전화 (가장 강한 단일 액션, 그라디언트, 56px) */
.page-cta__btn--primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    padding: 0 32px;
    border-radius: 4px;
    border: none;
    font-family: var(--ssok-font);
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #fff !important;
    text-decoration: none;
    background: linear-gradient(135deg, #C4A265 0%, #B0894A 100%);
    box-shadow: 0 6px 18px rgba(196, 162, 101, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.2s ease;
}
.page-cta__btn--primary:hover {
    background: linear-gradient(135deg, #B0894A 0%, #9B7639 100%);
    box-shadow: 0 8px 22px rgba(196, 162, 101, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}
.page-cta__btn--primary:active { transform: translateY(0); }
.page-cta__btn--primary::before {
    content: '';
    width: 16px; height: 16px;
    background: #fff;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='currentColor' d='M6.62 10.79a15.05 15.05 0 0 0 6.59 6.59l2.2-2.2a1 1 0 0 1 1.02-.24 11.36 11.36 0 0 0 3.56.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1 11.36 11.36 0 0 0 .57 3.56 1 1 0 0 1-.24 1.02z'/></svg>") center/contain no-repeat;
            mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='currentColor' d='M6.62 10.79a15.05 15.05 0 0 0 6.59 6.59l2.2-2.2a1 1 0 0 1 1.02-.24 11.36 11.36 0 0 0 3.56.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1 11.36 11.36 0 0 0 .57 3.56 1 1 0 0 1-.24 1.02z'/></svg>") center/contain no-repeat;
}
/* SECONDARY — 네이버 예약 (보더+호버 채움, 52px) */
.page-cta__btn--secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 0 26px;
    border-radius: 4px;
    border: 1.5px solid rgba(232, 213, 181, 0.7);
    background: transparent;
    color: var(--ssok-accent-light, #E8D5B5) !important;
    font-family: var(--ssok-font);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.18s ease;
}
.page-cta__btn--secondary:hover {
    background: rgba(232, 213, 181, 0.12);
    border-color: rgba(232, 213, 181, 1);
    color: #fff !important;
    transform: translateY(-1px);
}
/* TERTIARY — 카톡 상담 (텍스트 + 화살표) */
.page-cta__btn--tertiary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 4px;
    color: rgba(255, 255, 255, 0.78) !important;
    font-family: var(--ssok-font);
    font-size: 0.96rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease, gap 0.2s ease;
}
.page-cta__btn--tertiary::after {
    content: '→';
    transition: transform 0.2s ease;
}
.page-cta__btn--tertiary:hover {
    color: var(--ssok-accent-light, #E8D5B5) !important;
    border-bottom-color: rgba(232, 213, 181, 0.5);
}
.page-cta__btn--tertiary:hover::after { transform: translateX(3px); }
/* 개선 #507(2차) — 오른쪽 요약은 "주 패널 1개 + 곁가지 링크" 위계.
 * 유리 카드 껍데기를 유지하면 왼쪽 640px대 패널 옆에서 270px 카드로 굳어
 * 결정 구역에 350px대 빈 상자 그림자가 남는다(1차 리뷰 지적 3).
 * 껍데기 대신 좌측 구분선 한 줄만 남긴다. */
.page-cta__summary {
    display: grid;
    gap: 14px;
    padding: 8px 0 0 28px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}
/* 개선 #507 — 전환 구역 "한 구역 = 한 결정".
 * 범용 3링크(원장님/안전/FAQ)는 21페이지 공통 보일러플레이트라 카드 껍데기를 벗기고
 * 링크 행으로 강등. 링크 대상은 전량 보존, 시각 무게만 내린다.
 * design-eval-20260729 5/12 반복 지적("하단 CTA 정보 카드 과밀 → 전환 분산") 대응. */
.page-cta__routes {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 4px;
}
.page-cta__routes li { margin: 0; }
.page-cta__routes a {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 10px;
    min-height: 44px;
    padding: 11px 12px;
    border-radius: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.page-cta__routes li:last-child a { border-bottom: none; }
.page-cta__routes a:hover,
.page-cta__routes a:focus-visible {
    background: rgba(255, 255, 255, 0.07);
    border-bottom-color: rgba(232, 213, 181, 0.45);
}
.page-cta__routes-title {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.page-cta__routes-title::after {
    content: ' →';
    font-weight: 400;
}
.page-cta__routes-desc {
    font-size: 0.82rem;
    line-height: 1.6;
    word-break: keep-all;
}
.page-cta__summary-intro h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 1rem;
}
.page-cta__summary-intro p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.86rem;
    line-height: 1.7;
}
.page-cta-related {
    margin-top: 28px;
}
/* 2026-08-06 #542: 배달 weight 700 단독 → 400 선언은 no-op 이었다. 선언을 실체에 맞춘다(픽셀 0). */
.page-cta-related__title {
    margin: 0 0 16px;
    color: #fff;
    font-family: var(--ssok-font-serif);
    font-weight: 700;
    font-size: 1.15rem;
}
.page-cta-related .route-card {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}
.page-cta-related .route-card:hover {
    border-color: rgba(232, 213, 181, 0.45);
    box-shadow: none;
}
.page-cta-related .route-card__tag,
.page-cta-related .route-card__link {
    color: rgba(232, 213, 181, 0.86);
}
.page-cta-related .route-card h4 {
    color: #fff;
}
.page-cta-related .route-card p {
    color: rgba(255, 255, 255, 0.78);
}
@media (max-width: 900px) {
    .page-cta {
        grid-template-columns: 1fr;
    }
    .page-cta__summary {
        padding: 24px 0 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }
}
@media (max-width: 768px) {
    .page-cta-section {
        padding: 72px 0;
    }
    .page-cta__panel {
        padding: 24px;
        border-radius: 22px;
    }
    .page-cta__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .page-cta__action { width: 100%; }
    .page-cta__btn--primary,
    .page-cta__btn--secondary {
        width: 100%;
        min-height: 52px;
        padding: 0 20px;
        font-size: 1rem;
    }
    .page-cta__btn--tertiary {
        justify-content: center;
        padding: 12px 4px;
    }
    .page-cta__support {
        font-size: 0.8rem;
        padding: 7px 12px;
    }
}
/* common-pages.css .page-wrap h2/h3/p(0,1,1)가 단일 클래스(0,1,0) color를 이겨 다크 네이비 섹션에 라이트 토큰(#2A2A2A/#5A5A5A)이 새는 문제 — color만 재고정.
   기존 셀렉터 특이도는 올리지 않음(page-service.css .page-cta h2/h3 font-weight 오버라이드 0,1,1 의도 보존). summary-note는 0.52가 다크 배경에서도 대비 미달이라 0.72로 상향. */
.page-cta-section .page-cta__title { color: #fff; }
.page-cta-section .page-cta__title strong { color: var(--ssok-accent-light); }
.page-cta-section .page-cta__lead { color: rgba(255, 255, 255, 0.72); }
.page-cta-section .page-cta__routes-title { color: var(--ssok-accent-light, #E8D5B5); }
.page-cta-section .page-cta__routes-desc { color: rgba(255, 255, 255, 0.72); }
.page-cta-section .page-cta__closing p { color: #fff; }
.page-cta-section .page-cta__closing strong { color: var(--ssok-accent-light); }
/* 개선 #439 — 공유 closing CTA 감정 마무리 한 줄
 * design-eval-20260611 교차 페이지 #1 약점("행정 정보 확인 느낌으로 끝남") 대응.
 * 섹션의 마지막 요소로 공포→감동 아크를 닫는 따뜻한 한 줄. 순수 추가.
 * #440 — design-eval-20260611 12/12 전원 "마무리 차원 최저"·권고 "감정 헤드라인 32~38px"
 *   대응: 이 문장이 섹션 최소 폰트(데스크톱 25.6px/모바일 18.4px)로 묻혀 페이지가
 *   속삭임으로 끝나던 위계 결함 교정. 폰트/여백만 격상, 카피·구조 무변. */
.page-cta__closing {
    margin-top: 56px;
    padding: 56px 40px;
    border: 1px solid rgba(232, 213, 181, 0.22);
    border-radius: 28px;
    background:
        radial-gradient(circle at top, rgba(196, 162, 101, 0.18), transparent 62%),
        linear-gradient(160deg, #0b1825 0%, #122334 100%);
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    text-align: center;
}
/* 2026-08-06 #542: 배달 weight 700 단독 → 400 선언은 no-op 이었다.
   clamp(1.45rem,2.8vw,2.05rem) 흰색 마무리 문구 = 디스플레이 층이라 세리프 700 유지가 맞다(픽셀 0). */
.page-cta__closing p {
    margin: 0 auto;
    max-width: 680px;
    font-family: var(--ssok-font-serif);
    font-weight: 700;
    color: #fff;
    font-size: clamp(1.45rem, 2.8vw, 2.05rem);
    line-height: 1.55;
    letter-spacing: -0.01em;
    word-break: keep-all;
}
.page-cta__closing strong {
    color: var(--ssok-accent-light);
    font-weight: 400;
}
.page-cta__closing-actions {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}
/* 개선 #507(2차) — 마무리 블록의 단독 최종 CTA는 채움형으로 격상.
 * .page-cta__btn--primary는 ::before에 전화기 아이콘 마스크가 붙어 있어
 * 네이버 예약 버튼에 쓸 수 없다. --secondary를 이 컨테이너 안에서만 채움 처리한다.
 * 셀렉터 (0,2,0) > 기본 --secondary (0,1,0). color는 기본이 !important라 여기서도 필요. */
.page-cta__closing-actions .page-cta__btn--secondary {
    min-height: 56px;
    padding: 0 34px;
    border-color: transparent;
    background: linear-gradient(135deg, #C4A265 0%, #B0894A 100%);
    color: #fff !important;
    font-size: 1.08rem;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(196, 162, 101, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.page-cta__closing-actions .page-cta__btn--secondary:hover {
    background: linear-gradient(135deg, #B0894A 0%, #9B7639 100%);
    border-color: transparent;
    color: #fff !important;
}
@media (max-width: 768px) {
    .page-cta__closing {
        margin-top: 44px;
        padding: 40px 22px;
        border-radius: 22px;
    }
    .page-cta__closing p {
        font-size: 1.32rem;
        line-height: 1.5;
    }
    .page-cta__closing-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .page-cta__closing-actions .page-cta__btn--secondary {
        width: 100%;
    }
}