/* keyword-volume · built 2026-05-29 17:51:53 */
/* ─────────────────────────────────────────────
   키워드 검색량 조회 — 토스 디자인 시스템
   토큰: #3182F6 / #1B64DA / #E8F3FF / #00C471 / #F04452 / #FF9500
        Text #191F28 / #4E5968 / #8B95A1 / #B0B8C1
        Surface #FFFFFF / #F9FAFB / #F2F4F6 / #E5E8EB
        Radius: Card 16, Button 10, Pill/Chip 100, Badge 6
   ───────────────────────────────────────────── */

.kwv-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 16px 80px;
    color: #191F28;
    font-family: -apple-system, BlinkMacSystemFont, 'Pretendard', 'Apple SD Gothic Neo', sans-serif;
    line-height: 1.5;
}

/* ───── Hero (H1) ───── */
.kwv-hero {
    text-align: center;
    margin-bottom: 32px;
}
.kwv-main-title {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 14px;
    color: #191F28;
    letter-spacing: -0.02em;
}
.kwv-lead {
    font-size: 15px;
    color: #4E5968;
    margin: 0;
    line-height: 1.7;
}
.kwv-lead strong { color: #191F28; font-weight: 700; }
.kwv-keyword-highlight {
    background: linear-gradient(transparent 60%, #E8F3FF 60%);
    color: #1B64DA;
    font-weight: 700;
    padding: 0 2px;
}

/* ───── 섹션 타이틀 ───── */
.kwv-section-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #191F28;
}
.kwv-section-title-sub { color: #3182F6; }

/* ───── 입력 라벨/textarea/input ───── */
.kwv-tab-panel label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #191F28;
    margin-bottom: 8px;
}
.kwv-hint { font-weight: 400; color: #8B95A1; margin-left: 4px; }
.kwv-tab-panel textarea,
.kwv-tab-panel input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #E5E8EB;
    border-radius: 10px;
    background: #F9FAFB;
    padding: 12px 14px;
    font-size: 14px;
    font-family: inherit;
    color: #191F28;
    line-height: 1.5;
    transition: border-color 0.15s, background 0.15s;
}
.kwv-tab-panel textarea { resize: vertical; min-height: 100px; }
.kwv-tab-panel input[type="text"] { height: 44px; }
.kwv-tab-panel textarea:focus,
.kwv-tab-panel input[type="text"]:focus {
    outline: none;
    border-color: #3182F6;
    background: #fff;
}
.kwv-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
}
.kwv-form-help {
    margin: 16px 0 0;
    padding: 12px 14px;
    background: #F9FAFB;
    border-radius: 10px;
    font-size: 12px;
    color: #4E5968;
    line-height: 1.6;
}
.kwv-form-help strong { color: #191F28; font-weight: 700; }

/* ───── 버튼 (Primary / Outline) ───── */
.kwv-btn {
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    padding: 0 18px;
    height: 40px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.kwv-btn-primary { background: #3182F6; color: #fff; }
.kwv-btn-primary:hover:not(:disabled) { background: #1B64DA; }
.kwv-btn-primary:disabled { background: #B0B8C1; cursor: not-allowed; }
.kwv-btn-outline {
    background: #fff;
    color: #4E5968;
    border: 1px solid #E5E8EB;
}
.kwv-btn-outline:hover { border-color: #DEE2E6; background: #F9FAFB; }

/* ───── 검색 패널 (탭으로 입력+결과 통합) ───── */
.kwv-panel {
    margin-bottom: 40px;
}
.kwv-tabs-wrap {
    background: #fff;
    border: 1px solid #E5E8EB;
    border-radius: 16px;
    overflow: hidden;
}
.kwv-tabs {
    display: flex;
    gap: 4px;
    padding: 6px;
    background: #F2F4F6;
}
.kwv-tab {
    flex: 1;
    border: none;
    background: transparent;
    border-radius: 100px;
    padding: 9px 16px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    color: #8B95A1;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.kwv-tab:hover { color: #4E5968; }
.kwv-tab-active {
    background: #fff;
    color: #191F28;
}
.kwv-tab-panel {
    padding: 24px;
}

/* 결과 블록: 입력 아래 구분선 + 위쪽 여백 */
.kwv-result-block,
.kwv-related-block {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #F2F4F6;
}
.kwv-result-head,
.kwv-related-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.kwv-result-head h3,
.kwv-related-head h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    color: #191F28;
}
.kwv-result-meta,
.kwv-related-meta {
    font-size: 12px;
    color: #8B95A1;
}
.kwv-related-meta strong { color: #3182F6; font-weight: 700; }

/* ───── 결과 테이블 ───── */
.kwv-table-wrap {
    overflow-x: auto;
    border: 1px solid #E5E8EB;
    border-radius: 12px;
}
.kwv-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
    min-width: 880px;
}
.kwv-table thead th {
    background: #F9FAFB;
    color: #4E5968;
    font-weight: 600;
    font-size: 11px;
    padding: 8px 10px;
    text-align: right;
    border-bottom: 1px solid #E5E8EB;
    white-space: nowrap;
}
.kwv-table thead .kwv-th-no  { text-align: center; color: #8B95A1; width: 44px; }
.kwv-table thead .kwv-th-kw  { text-align: left; }
.kwv-table thead .kwv-th-group {
    text-align: center;
    color: #8B95A1;
    font-weight: 600;
    border-bottom: 1px solid #F2F4F6;
    background: #F2F4F6;
}
.kwv-thead-sub th { font-size: 11px; color: #8B95A1; }

.kwv-table tbody td {
    padding: 12px 10px;
    border-bottom: 1px solid #F2F4F6;
    color: #191F28;
    vertical-align: middle;
}
.kwv-table tbody tr:last-child td { border-bottom: none; }
.kwv-table tbody tr:hover { background: #FAFBFC; }

.kwv-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.kwv-td-no {
    text-align: center;
    color: #8B95A1;
    font-size: 12px;
    font-weight: 500;
}
.kwv-num-total { font-weight: 700; color: #3182F6; }

/* 키워드 셀: 텍스트 + 외부링크 아이콘 + 캐시 뱃지 */
.kwv-kw { text-align: left; }
.kwv-kw-cell {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.kwv-kw-text {
    font-weight: 500;
    color: #191F28;
}
.kwv-kw-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    color: #8B95A1;
    transition: background 0.15s, color 0.15s;
}
.kwv-kw-link:hover {
    background: #E8F3FF;
    color: #3182F6;
}
.kwv-cache {
    display: inline-block;
    background: #F2F4F6;
    color: #8B95A1;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 6px;
}

/* 행 상태 */
.kwv-row-error td { background: #FFF7F8; }
.kwv-error {
    color: #F04452;
    font-size: 12px;
    text-align: center !important;
}
.kwv-row-sum td {
    background: #F9FAFB;
    font-weight: 700;
    border-top: 1px solid #E5E8EB;
}

.kwv-table-help {
    margin: 14px 0 0;
    padding: 12px 14px;
    background: #F9FAFB;
    border-radius: 10px;
    font-size: 12px;
    color: #4E5968;
    line-height: 1.6;
}
.kwv-table-help strong { color: #191F28; font-weight: 700; }

/* ───── 경쟁도 배지 ───── */
.kwv-comp {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}
.kwv-comp-low  { background: #E6F9F0; color: #00A35F; }
.kwv-comp-mid  { background: #FFF7E6; color: #FF9500; }
.kwv-comp-high { background: #FFEBED; color: #F04452; }
.kwv-comp-none { color: #B0B8C1; }

/* ───── 연관 키워드 칩 ───── */
.kwv-related-loading {
    padding: 20px;
    text-align: center;
    color: #8B95A1;
    font-size: 13px;
}
.kwv-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.kwv-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #E5E8EB;
    background: #fff;
    border-radius: 100px;
    padding: 7px 14px;
    font-size: 13px;
    font-family: inherit;
    color: #191F28;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.kwv-chip:hover {
    border-color: #3182F6;
    background: #E8F3FF;
    color: #1B64DA;
}
.kwv-chip-num {
    font-size: 11px;
    font-weight: 600;
    color: #8B95A1;
    font-variant-numeric: tabular-nums;
}
.kwv-chip:hover .kwv-chip-num { color: #3182F6; }
.kwv-chip-added {
    background: #E8F3FF;
    border-color: #3182F6;
    color: #1B64DA;
}
.kwv-chip-added::after {
    content: '';
    width: 10px;
    height: 10px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233182F6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/contain no-repeat;
}

/* ───── 활용 가이드 ───── */
.kwv-guide-section {
    margin-bottom: 40px;
}
.kwv-guide-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
@media (min-width: 700px) { .kwv-guide-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .kwv-guide-grid { grid-template-columns: repeat(4, 1fr); } }
.kwv-guide-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 18px;
    background: #fff;
    border: 1px solid #E5E8EB;
    border-radius: 16px;
    transition: border-color 0.15s;
}
.kwv-guide-card:hover { border-color: #DEE2E6; }
.kwv-guide-tag {
    display: inline-block;
    background: #E8F3FF;
    color: #3182F6;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 100px;
}
.kwv-guide-card p {
    margin: 0;
    font-size: 13px;
    color: #4E5968;
    line-height: 1.6;
}

/* ───── 서비스 카드 3개 ───── */
.kwv-services { margin-bottom: 40px; }
.kwv-services-title {
    font-size: 18px;
    font-weight: 700;
    color: #191F28;
    margin: 0 0 16px;
    text-align: center;
}
.kwv-service-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
@media (min-width: 700px) { .kwv-service-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }

.kwv-service-card {
    display: block;
    background: #fff;
    border: 1px solid #E5E8EB;
    border-radius: 16px;
    padding: 22px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s;
    position: relative;
}
.kwv-service-card:hover { border-color: #3182F6; }
.kwv-service-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: #191F28;
    margin: 0 0 8px;
}
.kwv-service-card p {
    font-size: 13px;
    color: #4E5968;
    line-height: 1.6;
    margin: 0 0 14px;
}
.kwv-service-cta {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #3182F6;
}
.kwv-card-tracking { border-top: 3px solid #3182F6; }
.kwv-card-mission  { border-top: 3px solid #00C471; }
.kwv-card-signup   { border-top: 3px solid #FF9500; }

/* ───── FAQ ───── */
.kwv-faq {
    background: #fff;
    border: 1px solid #E5E8EB;
    border-radius: 16px;
    padding: 24px;
}
.kwv-faq-title {
    font-size: 18px;
    font-weight: 700;
    color: #191F28;
    margin: 0 0 16px;
}
.kwv-faq-item {
    border-bottom: 1px solid #F2F4F6;
    padding: 14px 0;
}
.kwv-faq-item:last-child { border-bottom: none; }
.kwv-faq-item summary {
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #191F28;
    list-style: none;
    position: relative;
    padding-right: 28px;
    transition: color 0.15s;
}
.kwv-faq-item summary::-webkit-details-marker { display: none; }
.kwv-faq-item summary::after {
    content: '';
    position: absolute;
    right: 4px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid #8B95A1;
    border-bottom: 2px solid #8B95A1;
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.2s;
}
.kwv-faq-item[open] summary::after {
    transform: translateY(-30%) rotate(-135deg);
    border-color: #3182F6;
}
.kwv-faq-item summary:hover { color: #3182F6; }
.kwv-faq-item p {
    margin: 12px 0 0;
    font-size: 14px;
    color: #4E5968;
    line-height: 1.7;
}

/* ───── 모바일 ───── */
@media (max-width: 600px) {
    .kwv-page { padding: 24px 12px 60px; }
    .kwv-main-title { font-size: 24px; }
    .kwv-lead { font-size: 14px; }
    .kwv-tab-panel { padding: 18px; }
    .kwv-faq { padding: 18px; }
    .kwv-services-title { font-size: 16px; }
    .kwv-table thead th, .kwv-table tbody td { padding: 8px 6px; font-size: 12px; }
}
