/* 솔루션 섹션(#section-5) — 홈 팔레트(코랄·블루·틸 + 크림, 네오 브루탈리즘)로 통일.
   기존 sections.css 위에 덮어쓰는 파일. 플레이스 시뮬레이터의 네이버 그린은 실제 화면 재현용이라 유지. */
#section-5 {
  --sol-ink: #0d2421;
  --sol-paper: #fffdf8;
  --sol-cream: #f7f2ea;
  --sol-coral: #d86a60;
  --sol-blue: #6f98c8;
  --sol-blue-soft: #e3ecf6;
  --sol-teal: #3a9fa7;
  --sol-teal-dark: #23757c;
}

/* 레이아웃: 탭을 위로 붙여 휴대폰 옆 빈 공간 제거 */
#section-5 .solution-container { align-items: start; row-gap: 24px; grid-template-rows: auto 1fr; }
#section-5 .solution-tabs { gap: 14px; padding-top: 8px; }

/* 탭 카드 */
#section-5 .solution-tab-item {
  background: var(--sol-paper);
  border: 2px solid var(--sol-ink);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 4px 4px 0 var(--sol-ink);
  text-align: left;
}
#section-5 .solution-tab-item:hover { background: #fff; transform: translateY(-3px); box-shadow: 6px 6px 0 var(--sol-ink); }
#section-5 .solution-tab-item:focus-visible { outline: 3px solid var(--sol-blue); outline-offset: 4px; }
#section-5 .solution-tab-item.active { background: var(--sol-coral); border-color: var(--sol-ink); box-shadow: 6px 6px 0 var(--sol-ink); }
#section-5 .tab-item-title { margin: 0 0 6px; color: var(--sol-ink); }
#section-5 .tab-item-desc { color: #4a5852; white-space: normal; }
#section-5 .solution-tab-item.active .tab-item-title,
#section-5 .solution-tab-item.active .tab-item-desc { color: #fff; }
#section-5 .tab-item-icon { background: var(--sol-paper); border-color: var(--sol-ink); box-shadow: 2px 2px 0 var(--sol-ink); color: var(--sol-ink) !important; }

/* 서비스 페이지 내부 링크: 히어로 '서비스 보기'와 같은 보조 버튼 (각진 외곽선 + 잉크 그림자)
   PC는 탭 아래(왼쪽 열), 목업은 오른쪽에서 두 줄을 차지 */
#section-5 .solution-mobile-mockup { grid-column: 2; grid-row: 1 / span 2; }
#section-5 .solution-more-link {
  grid-column: 1;
  grid-row: 2;
  display: inline-flex;
  justify-self: start;
  align-self: start;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  border: 2px solid var(--sol-ink);
  border-radius: 0;
  background: transparent;
  color: var(--sol-ink);
  box-shadow: 4px 4px 0 var(--sol-ink);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .3s cubic-bezier(.16, 1, .3, 1), box-shadow .3s cubic-bezier(.16, 1, .3, 1), background .2s;
}
#section-5 .solution-more-link:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--sol-ink); background: var(--sol-paper); }
#section-5 .solution-more-link > span { font-size: 18px; }

/* 화면 전환 깜빡임 수정: 새 화면이 위에서 먼저 불투명해진 뒤, 이전 화면은 뒤에서 늦게 사라짐
   (동시 크로스페이드 → 중간에 둘 다 반투명해져 휴대폰 배경이 비쳤음) */
#section-5 .solution-mockup-media {
  transform: none;
  z-index: 1;
  transition: opacity .2s linear .35s, visibility 0s linear .55s;
}
#section-5 .solution-mockup-media.active {
  z-index: 2;
  transition: opacity .35s cubic-bezier(.16, 1, .3, 1), visibility 0s;
}

/* ── 휴대폰 화면(시뮬레이터 4종) 다듬기: 글꼴 통일, 글자 키우기, 홈 팔레트 ──
   sections.css가 !important를 많이 써서 같은 강도로 덮어씀 */
#section-5 .solution-mockup-media,
#section-5 .solution-mockup-media * { font-family: Pretendard, sans-serif !important; letter-spacing: -.02em; }
#section-5 .mobile-phone-screen { background: #f7f2ea; }

/* ① 채팅 */
#section-5 .sim-chat-container { background: #f7f2ea; }
#section-5 .sim-chat-header { padding: 14px 16px !important; background: #fffdf8; border-bottom: 2px solid #0d2421; color: #0d2421; }
#section-5 .sim-chat-title { font-size: 15px !important; font-weight: 800; }
#section-5 .sim-chat-status { font-size: 12px !important; color: #23757c; font-weight: 700; }
#section-5 .sim-chat-body { padding: 14px 14px 28px !important; }
#section-5 .sim-chat-notice { font-size: 11.5px !important; }
#section-5 .msg-sender { font-size: 12px !important; font-weight: 700; color: #5d6a63; }
#section-5 .msg-bubble { font-size: 14px !important; line-height: 1.55 !important; padding: 11px 13px !important; border: 2px solid #0d2421 !important; box-shadow: 2px 2px 0 #0d2421 !important; }
#section-5 .chat-msg.agency .msg-bubble { background: #e3ecf6 !important; }
/* agency 말풍선 규칙보다 우선: 코랄 바탕 + 흰 글씨 */
#section-5 .chat-msg.agency .msg-bubble.highlight, #section-5 .msg-bubble.highlight { background: #d86a60 !important; color: #fff !important; font-weight: 700; }
#section-5 .msg-time { font-size: 11px !important; color: #7a857c; }
#section-5 .chat-submit-btn { background: #d86a60 !important; color: #fff !important; border-color: #0d2421 !important; }
#section-5 .chat-submit-btn svg { color: #fff !important; }
#section-5 #chat-input-text, #section-5 #ops-input, #section-5 #seo-search-input { font-size: 13.5px !important; }

/* ② 키워드 분석 */
#section-5 .sim-seo-header { background: #fffdf8 !important; border-bottom: 2px solid #0d2421 !important; }
#section-5 .seo-engine-title { font-size: 15px !important; font-weight: 800; color: #0d2421 !important; }
#section-5 .seo-engine-api { font-size: 12px !important; color: #2f5d8f !important; }
#section-5 .seo-sync-badge { display: none !important; }
#section-5 .seo-btn { background: #6f98c8 !important; color: #fff !important; border-color: #0d2421 !important; }
#section-5 .seo-btn *, #section-5 .seo-btn svg { color: #fff !important; }
#section-5 .seo-meta-row { font-size: 12.5px !important; }
#section-5 .solution-mobile-mockup .seo-table tr { border: 2px solid #0d2421 !important; padding: 11px 13px !important; }
#section-5 .solution-mobile-mockup .seo-table td { font-size: 12.5px !important; }
#section-5 .solution-mobile-mockup .seo-table td:nth-child(1) { font-size: 14.5px !important; color: #0d2421 !important; }
#section-5 .solution-mobile-mockup .seo-table td:nth-child(4) { font-size: 12px !important; color: #2f5d8f !important; }
#section-5 .seo-table .hash { color: #6f98c8 !important; }
#section-5 .badge { font-size: 11.5px !important; }
#section-5 .seo-expert-card { background: #e3ecf6 !important; border: 2px solid #0d2421 !important; }
#section-5 .expert-title, #section-5 .expert-title * { color: #2f5d8f !important; font-size: 13px !important; }
#section-5 .expert-desc { font-size: 13px !important; line-height: 1.6 !important; color: #0d2421 !important; }
#section-5 .text-highlight { color: #2f5d8f !important; }
#section-5 .seo-sample-note { margin: 10px 0 0; font-size: 11px; color: #7a857c; text-align: center; }

/* ③ 운영 현황 */
#section-5 .sim-ops-header { background: #fffdf8 !important; border-bottom: 2px solid #0d2421 !important; }
#section-5 .ops-title { font-size: 15px !important; font-weight: 800; }
#section-5 .ops-sync-badge { font-size: 11px !important; background: #f7f2ea !important; color: #5d6a63 !important; border-color: #c9c2b5 !important; }
#section-5 .ops-stat-box { border: 2px solid #0d2421 !important; }
#section-5 .stat-lbl-row, #section-5 .stat-sub { font-size: 12.5px !important; }
#section-5 .stat-main { font-size: 18px !important; font-weight: 800; color: #0d2421 !important; }
#section-5 .stat-main.text-yellow { color: #9b4035 !important; }
#section-5 .stat-progress-inner { background: #3a9fa7 !important; }
#section-5 .progress-pct, #section-5 .bold-text { font-size: 12.5px !important; }
#section-5 .ops-feed-title, #section-5 .ops-feed-title span { font-size: 13px !important; font-weight: 800; }
#section-5 .feed-item { border: 2px solid #0d2421 !important; }
#section-5 .feed-item.agency { background: #dcefef !important; border-left: 5px solid #3a9fa7 !important; }
#section-5 .feed-item.client { border-left: 5px solid #e9c776 !important; }
#section-5 .feed-author, #section-5 .feed-time { font-size: 12px !important; }
#section-5 .feed-time { color: #5d6a63 !important; }
#section-5 .feed-content { font-size: 13.5px !important; line-height: 1.55 !important; }
#section-5 .ops-submit-btn { background: #3a9fa7 !important; border-color: #0d2421 !important; }
#section-5 .ops-submit-btn, #section-5 .ops-submit-btn span, #section-5 .ops-submit-btn svg { color: #fff !important; }

/* ④ 네이버 플레이스 화면 재현 (예시) */
#section-5 .np-wrap { display: flex; flex-direction: column; height: 100%; background: #fff; color: #222; overflow: hidden; }
#section-5 .np-photos { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; height: 120px; flex-shrink: 0; }
#section-5 .np-photos span { background: linear-gradient(160deg, #e8e1d6 0 48%, #cdb79c 48% 74%, #8e7660 74%); }
#section-5 .np-photos span:first-child { grid-row: 1 / 3; background: linear-gradient(160deg, #dce8e3 0 46%, #a7b8a5 46% 72%, #6b7f75 72%); }
#section-5 .np-photos span:last-child { background: linear-gradient(160deg, #e3ecf6 0 44%, #b8c9dc 44% 70%, #6f98c8 70%); }
#section-5 .np-head { padding: 14px 16px 10px; }
#section-5 .np-name { margin: 0; font-size: 19px; font-weight: 800; }
#section-5 .np-name span { margin-left: 4px; font-size: 13px; font-weight: 500; color: #888; }
#section-5 .np-stats { margin: 6px 0 0; font-size: 13px; color: #555; }
#section-5 .np-stats b { color: #222; }
#section-5 .np-actions { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 12px; border: 1px solid #e5e5e5; border-radius: 8px; }
#section-5 .np-actions span { padding: 8px 0; font-size: 12.5px; text-align: center; color: #333; }
#section-5 .np-actions span + span { border-left: 1px solid #e5e5e5; }
#section-5 .np-tabs { display: flex; flex-shrink: 0; border-bottom: 1px solid #e5e5e5; }
#section-5 .np-tab { flex: 1; padding: 10px 0; border: 0; background: none; font-size: 14px; color: #777; cursor: pointer; }
#section-5 .np-tab.on { color: #222; font-weight: 800; box-shadow: inset 0 -2px 0 #222; }
#section-5 .np-tab:focus-visible { outline: 2px solid #3a9fa7; outline-offset: -2px; }
#section-5 .np-body { flex: 1; overflow-y: auto; }
#section-5 .np-panel { display: none; padding: 12px 16px 16px; }
#section-5 .np-panel.on { display: block; }
#section-5 .np-info { margin: 0; padding: 0; list-style: none; }
#section-5 .np-info li { display: flex; gap: 12px; padding: 7px 0; font-size: 13.5px; color: #333; }
#section-5 .np-info li > span { flex: 0 0 38px; color: #999; }
#section-5 .np-open { margin-right: 4px; color: #03a94d; }
#section-5 .np-intro { margin-top: 8px; padding-top: 10px; border-top: 1px solid #eee; font-size: 13.5px; line-height: 1.6; }
#section-5 .np-intro p { margin: 4px 0 0; color: #444; }
#section-5 .np-sync, #section-5 .np-caption { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; padding: 10px 12px; border: 2px solid #0d2421; border-radius: 12px; background: #f8eccd; font-size: 13px; line-height: 1.5; color: #0d2421; }
#section-5 .np-sync span { font-weight: 900; color: #23757c; }
#section-5 .np-sync p { margin: 0; }
#section-5 .np-news { margin: 0; padding: 0; list-style: none; }
#section-5 .np-news li { padding: 10px 0; border-bottom: 1px solid #eee; font-size: 13.5px; }
#section-5 .np-news li:first-child { margin: 0 -16px; padding: 10px 16px; background: #f8eccd; }
#section-5 .np-news em { display: inline-block; margin-bottom: 4px; padding: 2px 7px; border-radius: 4px; background: #d86a60; color: #fff; font-size: 11px; font-style: normal; font-weight: 800; }
#section-5 .np-news b { display: block; font-size: 14px; }
#section-5 .np-news p { margin: 3px 0; color: #555; font-size: 13px; }
#section-5 .np-news li > span { font-size: 11.5px; color: #6b6b6b; }
#section-5 .np-keywords p { margin: 0 0 8px; font-size: 14px; font-weight: 800; }
#section-5 .np-keywords div { display: flex; flex-direction: column; gap: 6px; }
#section-5 .np-keywords span { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 6px; font-size: 13px; background: linear-gradient(90deg, #dcefef var(--w), #f4f4f4 var(--w)); }
#section-5 .np-review { margin-top: 12px; padding-top: 10px; border-top: 1px solid #eee; font-size: 13.5px; line-height: 1.55; }
#section-5 .np-review p { margin: 4px 0 0; color: #444; }
#section-5 .np-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
#section-5 .np-gallery span { aspect-ratio: 1; background: linear-gradient(160deg, #dce8e3 0 45%, #a7b8a5 45% 70%, #748a80 70%); }
#section-5 .np-gallery span:nth-child(even) { background: linear-gradient(160deg, #f1e4d0 0 50%, #d9b99a 50% 75%, #a98a6e 75%); }
#section-5 .np-gallery span:nth-child(3n) { background: linear-gradient(160deg, #e3ecf6 0 40%, #b8c9dc 40% 72%, #6f98c8 72%); }
#section-5 .np-note { flex-shrink: 0; margin: 0; padding: 6px 0 10px; font-size: 11px; color: #999; text-align: center; }
@media (max-width: 960px) {
  #section-5 .np-photos { height: 84px; }
  #section-5 .np-head { padding: 10px 14px 8px; }
  #section-5 .np-name { font-size: 17px; }
  #section-5 .np-actions { display: none; }
  #section-5 .msg-bubble { font-size: 13.5px !important; }
}

/* 모바일: 기존 4열 아이콘 탭 유지 */
@media (max-width: 960px) {
  #section-5 .solution-tabs { padding-top: 0; }
}
/* 좁은 태블릿(왼쪽 열이 좁아 줄바꿈되는 폭): 링크를 두 열 아래 한 줄로 */
@media (min-width: 769px) and (max-width: 960px) {
  #section-5 .solution-container { grid-template-rows: none; }
  #section-5 .solution-mobile-mockup { grid-row: 1; }
  #section-5 .solution-more-link { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
}
/* 한 열로 쌓이는 폭(sections.css 768px 기준): 링크는 목업 아래 가운데, 화면 폭을 꽉 채우지 않음 */
@media (max-width: 768px) {
  #section-5 .solution-container { grid-template-rows: none; }
  #section-5 .solution-mobile-mockup, #section-5 .solution-more-link { grid-column: auto; grid-row: auto; }
  #section-5 .solution-more-link { justify-self: center; padding: 12px 20px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  #section-5 .solution-tab-item, #section-5 .solution-more-link { transition: none; }
}
