/* 스마트통신 랜딩 — 주색 #0B2A78(고객 로고 기준) + 로고의 밝은 블루 포인트 하나. 글자 12·13·15·16·20px(히어로 제목만 예외) */
:root {
  --navy: #0B2A78;
  --navy-2: #173E9E;
  --navy-deep: #061A4F;
  --cyan: #009DF5;      /* 로고의 밝은 블루. 배경·선·어두운 바탕 위 글자에만 */
  --cyan-ink: #0070B8;  /* 흰 바탕 위 작은 글자용(대비 4.5:1 이상) */
  --cyan-soft: #E5F4FE;
  --bg: #F4F6FA;
  --line: #E2E7EF;
  --text: #14213D;
  --muted: #56617A;
  --white: #FFFFFF;
  --kakao: #FEE500;
  --kakao-ink: #191919;
  --danger: #C62D3A;
  --radius: 16px;
  --gutter: 20px;
  --bar-h: 60px;
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  word-break: keep-all;
  overflow-wrap: anywhere;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px));
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.35; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 560px; }

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--navy); color: var(--white); padding: 8px 12px; border-radius: 8px; font-size: 13px;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent;
  font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:active { transform: scale(.98); }
.btn img { flex: none; }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-2); }
.btn-line { background: var(--white); color: var(--navy); border-color: var(--navy); }
.btn-kakao { background: var(--kakao); color: var(--kakao-ink); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: default; }
.link-btn {
  background: none; border: 0; padding: 4px 2px; font-size: 13px; color: var(--muted);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}

/* ---------- 헤더 ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner {
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  column-gap: 12px; padding-top: 10px; padding-bottom: 0;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; min-height: 44px; }
.brand-logo { height: 36px; width: auto; }
.header-call {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px;
  border-radius: 999px; background: var(--navy); color: var(--white);
  font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.gnb {
  grid-column: 1 / -1; grid-row: 2; display: flex; gap: 20px;
  margin-top: 4px; overflow-x: auto; scrollbar-width: none;
}
.gnb::-webkit-scrollbar { display: none; }
.gnb a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 15px; color: var(--muted); text-decoration: none; white-space: nowrap;
}
.gnb a:hover { color: var(--navy); }

/* ---------- 히어로 ---------- */
.hero { display: grid; max-width: 560px; margin: 0 auto; }
.hero-copy { display: contents; }
.hero-media { grid-area: 1 / 1; }
.hero-media img { width: 100%; }
.hero-head { grid-area: 1 / 1; align-self: start; padding: 28px var(--gutter) 0; position: relative; }
.hero-eyebrow { font-size: 13px; color: var(--cyan-ink); font-weight: 600; margin-bottom: 8px; }
.hero h1 { font-size: 26px; letter-spacing: -0.03em; }
.hero-body { padding: 4px var(--gutter) 0; }
.hero-keys { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.hero-keys li {
  font-size: 13px; padding: 6px 12px; border-radius: 999px;
  background: var(--cyan-soft); color: var(--navy); font-weight: 600;
}
.hero-keys li::before { content: '✓ '; color: var(--cyan-ink); }
.hero-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ---------- 섹션 공통 ---------- */
.section { padding: 48px 0; }
.eyebrow { font-size: 13px; color: var(--cyan-ink); font-weight: 600; margin-bottom: 6px; }
.section h2 { font-size: 20px; letter-spacing: -0.02em; }
.section-sub { font-size: 15px; color: var(--muted); margin-top: 6px; }
.block-title { font-size: 16px; margin: 32px 0 12px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }

/* 접수 현황 */
.recent { background: var(--bg); }
.trust-strip {
  margin-top: 16px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.trust-strip[data-count="1"] { grid-template-columns: 1fr; }
.trust-item {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 12px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
}
.trust-num { font-size: 22px; font-weight: 800; color: var(--navy); white-space: nowrap; font-variant-numeric: tabular-nums; }
.trust-item:nth-child(even) .trust-num { color: var(--cyan-ink); }
.trust-label { font-size: 13px; font-weight: 600; color: var(--muted); }
/* 예시 수치 표시(G-004, D-025): 숫자 위에 채운 배지로 늘 보이게 */
.trust-ex {
  font-size: 12px; font-weight: 800; line-height: 1; padding: 4px 8px; border-radius: 999px;
  color: var(--white); background: var(--navy);
}
.trust-note { margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--muted); text-align: center; }
/* 모바일 2열에서 3칸이면 마지막 칸이 두 열을 채운다 */
.trust-strip[data-count="3"] .trust-item:last-child { grid-column: 1 / -1; }

/* LIVE 접수 현황: 4건 이상이면 목록을 두 번 이어 붙여 15초 주기로 흐른다(landing.js) */
.live-feed {
  margin-top: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(11, 42, 120, .06); overflow: hidden;
}
.live-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.live-title { font-size: 16px; font-weight: 800; color: var(--text); }
.live-tools { display: inline-flex; align-items: center; gap: 8px; }
.live-toggle {
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: var(--white);
  display: inline-grid; place-items: center; cursor: pointer; padding: 0;
}
.live-toggle span { width: 8px; height: 10px; border-left: 3px solid var(--text); border-right: 3px solid var(--text); box-sizing: border-box; }
.live-toggle[aria-pressed="true"] span { width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 9px; border-color: transparent transparent transparent var(--text); }
.live-toggle:focus-visible { outline: 2px solid var(--cyan-ink); outline-offset: 2px; }
.live-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  border: 1px solid var(--text); font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--text);
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #E5193B; animation: livePulse 2s ease-in-out infinite; }
.live-feed:not(.is-live) .live-badge { display: none; }
/* 예시 목록일 때 LIVE 배지 대신(G-005, D-026) */
.live-ex {
  display: none; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; line-height: 1;
  color: var(--white); background: var(--navy);
}
.live-feed.is-example .live-ex { display: inline-flex; }
.live-feed.is-example .live-badge { display: none; }
@keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.live-sub { padding: 8px 16px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); }
.live-window { position: relative; padding: 8px 12px 2px; }
.live-window:focus-visible { outline: 2px solid var(--cyan-ink); outline-offset: -2px; }
.live-list { list-style: none; margin: 0; padding: 0; display: flow-root; } /* 마지막 줄 여백까지 높이에 넣어 -50% 이동이 정확히 맞게 */
.live-list.is-scrolling { animation: feedScroll 15s linear infinite; }
.live-list.is-paused { animation-play-state: paused; }
.live-window { max-height: 280px; overflow-y: auto; }
.live-feed.is-scrolling .live-window { height: 196px; max-height: none; overflow: hidden; }
@keyframes feedScroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.feed-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px; margin-bottom: 6px;
  background: var(--bg); border-radius: 12px;
}
.feed-avatar {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: var(--navy); color: var(--white); font-size: 13px; font-weight: 700;
}
.feed-item:nth-child(3n+2) .feed-avatar { background: var(--cyan-ink); }
.feed-item:nth-child(3n) .feed-avatar { background: var(--navy-2); }
.feed-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.feed-name { font-size: 15px; font-weight: 700; }
.feed-meta { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-status { flex-shrink: 0; font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 6px; background: var(--cyan-soft); color: var(--navy); }
@media (prefers-reduced-motion: reduce) {
  .live-list.is-scrolling, .live-dot { animation: none; }
}

/* 서비스 */
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.service-card { padding: 20px 16px; }
.service-card h3 { font-size: 16px; margin: 12px 0 4px; }
.service-card p { font-size: 13px; color: var(--muted); }

.steps {
  display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px;
  margin: 0 calc(-1 * var(--gutter)); padding-left: var(--gutter); padding-right: var(--gutter);
  scroll-padding-left: var(--gutter);
}
.step {
  scroll-snap-align: start; background: var(--bg); border-radius: var(--radius); padding: 20px 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.step strong { font-size: 16px; }
.step span:last-child { font-size: 13px; color: var(--muted); }
.step-no {
  width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: var(--white);
  display: inline-grid; place-items: center; font-size: 13px; font-weight: 700; margin-bottom: 8px;
}

/* 카톡 배너 */
.kakao { padding-top: 0; }
.kakao-box {
  background: var(--navy); color: var(--white); border-radius: var(--radius);
  padding: 24px 20px; display: grid; gap: 16px;
}
.kakao-box h2 { font-size: 20px; }
.kakao-box p { font-size: 15px; color: #C9D4E8; margin-top: 6px; }

/* 상담폼 */
.consult { background: var(--bg); }
.lead-form { margin-top: 20px; padding: 24px 20px; display: grid; gap: 4px; }
.field label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.field input {
  width: 100%; min-height: 52px; padding: 0 14px; font-size: 16px;
  border: 1px solid #C9D1DE; border-radius: 12px; background: var(--white);
}
.field input:focus { border-color: var(--navy); outline: 2px solid var(--cyan); outline-offset: 0; }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field-err { min-height: 20px; font-size: 13px; color: var(--danger); margin-top: 2px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.agree { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.agree input { width: 22px; height: 22px; accent-color: var(--navy); margin: 0; flex: none; }
.agree label { font-size: 15px; }
.agree .req { color: var(--muted); font-size: 13px; }
.form-fail {
  margin-top: 12px; padding: 16px; border-radius: 12px; background: #FDECEE; color: #7A1822;
  display: grid; gap: 12px; font-size: 15px;
}

/* 안전거래 */
.rules { display: grid; gap: 8px; margin-top: 20px; }
.rule { display: flex; align-items: center; gap: 12px; padding: 16px; font-size: 15px; }
.rule img { flex: none; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 16px 32px 16px 0; font-size: 16px; font-weight: 600; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ''; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-item p { padding: 0 0 16px; color: var(--muted); font-size: 15px; }

/* 공공기관 링크 */
.public-links { background: var(--bg); padding: 32px 0; }
.public-links h2 { font-size: 16px; }
.badges { display: grid; gap: 8px; margin-top: 12px; }
.badge {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; font-size: 15px; font-weight: 600;
}
.badge span { font-size: 13px; color: var(--muted); font-weight: 400; }

/* 하단 CTA */
.cta { text-align: center; }
.cta .hours { font-size: 15px; color: var(--muted); margin-top: 8px; }
.cta-btns { display: grid; gap: 8px; margin: 20px auto 0; max-width: 420px; }

/* 푸터 */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); color: var(--muted); padding: 32px 0 40px; font-size: 13px; }
.site-footer p + p, .site-footer .biz-info + p { margin-top: 4px; }
.footer-logo { height: 32px; width: auto; margin-bottom: 8px; }
.site-footer .link-btn { color: var(--muted); padding-left: 0; }
.copyright { margin-top: 12px !important; font-size: 12px; }

/* ---------- 모바일 하단 바 / 데스크톱 버튼 ---------- */
.quickbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr 1fr;
  height: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -2px 12px rgba(17, 28, 51, .12);
}
.quickbar a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 16px; font-weight: 600; text-decoration: none;
}
.qb-call { background: var(--navy); color: var(--white); }
.qb-kakao { background: var(--kakao); color: var(--kakao-ink); }
/* 카톡 없음(D-019): 전화 버튼이 폭 전체를 쓴다 */
.no-kakao .quickbar { grid-template-columns: 1fr; }
.no-kakao a[data-kakao], .no-kakao [data-kakao-only] { display: none !important; }
.no-kakao [data-kakao-none][hidden] { display: inline !important; }
.no-kakao .cta-btns { grid-template-columns: 1fr; }

.floating { position: fixed; right: 16px; bottom: calc(var(--bar-h) + 12px + env(safe-area-inset-bottom, 0px)); z-index: 49; display: grid; gap: 10px; }
.fl-btn {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(17, 28, 51, .18); text-decoration: none;
}
.fl-call { background: var(--navy); }
.fl-kakao { background: var(--kakao); }
.fl-top { background: var(--white); border: 1px solid var(--line); width: 44px; height: 44px; justify-self: end; }
.fl-call, .fl-kakao { display: none; }
.fl-top { opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s; }
.fl-top.is-shown { opacity: 1; visibility: visible; }

/* ---------- 개인정보 안내 창 ---------- */
.privacy-dialog {
  width: min(440px, calc(100% - 40px)); border: 0; border-radius: var(--radius); padding: 24px 20px; color: var(--text);
}
.privacy-dialog::backdrop { background: rgba(17, 28, 51, .55); }
.privacy-dialog h2 { font-size: 20px; margin-bottom: 12px; }
.privacy-dialog dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0 0 12px; font-size: 15px; }
.privacy-dialog dt { color: var(--muted); }
.privacy-dialog dd { margin: 0; }
.privacy-dialog p { font-size: 13px; color: var(--muted); margin-bottom: 16px; }

/* ---------- 스크롤 페이드 ---------- */
.reveal-on [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.reveal-on [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 태블릿 ---------- */
@media (min-width: 640px) {
  .service-grid { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0; }
  .kakao-box { grid-template-columns: 1fr auto; align-items: center; padding: 32px; }
  .rules { grid-template-columns: 1fr 1fr; }
  .badges { grid-template-columns: 1fr 1fr; }
  .cta-btns { grid-template-columns: 1fr 1fr; }
}

/* ---------- 데스크톱 ---------- */
@media (min-width: 1024px) {
  .trust-strip[data-count="2"] { grid-template-columns: repeat(2, 1fr); }
  .trust-strip[data-count="3"] { grid-template-columns: repeat(3, 1fr); }
  .trust-strip[data-count="3"] .trust-item:last-child { grid-column: auto; }
  .trust-strip[data-count="4"] { grid-template-columns: repeat(4, 1fr); }
  .trust-num { font-size: 28px; }
  .live-feed { max-width: 560px; margin-left: auto; margin-right: auto; }
  .trust-strip[data-count="1"], .trust-strip[data-count="2"] { max-width: 560px; margin-left: auto; margin-right: auto; }
  body { padding-bottom: 0; }
  .section { padding: 80px 0; }
  .public-links { padding: 48px 0; }
  .header-inner { grid-template-columns: auto 1fr auto; padding-top: 0; min-height: 72px; }
  .gnb { grid-column: 2; grid-row: 1; justify-content: center; margin-top: 0; gap: 32px; }
  .header-call { font-size: 15px; min-height: 44px; padding: 0 18px; }
  .brand-logo { height: 44px; }

  .hero { max-width: none; background: var(--navy-deep); }
  .hero-media img { width: 100%; height: 560px; object-fit: cover; object-position: 75% center; }
  .hero-copy {
    display: block; grid-area: 1 / 1; align-self: center; z-index: 1;
    width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); color: var(--white);
  }
  .hero-head { padding: 0; }
  .hero-eyebrow { color: var(--cyan); font-size: 16px; }
  .hero h1 { font-size: 44px; }
  .hero-body { padding: 24px 0 0; max-width: 460px; }
  .hero-keys li { background: rgba(255, 255, 255, .12); color: var(--white); font-size: 15px; }
  .hero-keys li::before { color: var(--cyan); }
  .hero-cta .btn-primary { color: var(--white); background: var(--cyan-ink); }
  .hero-cta .btn-primary:hover { background: var(--navy-2); }
  .hero-cta .btn-line { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .7); }

  .service-card { padding: 28px 24px; }
  .kakao-box { padding: 40px; }

  .quickbar { display: none; }
  .floating { bottom: 24px; right: 24px; }
  .fl-call, .fl-kakao { display: grid; }
}

/* ---------- 완료 페이지 ---------- */
.thanks-header { grid-template-columns: 1fr auto; padding-bottom: 10px; }
.thanks { background: var(--bg); min-height: 70vh; }
.thanks-card { padding: 32px 20px; text-align: center; display: grid; justify-items: center; gap: 12px; }
.thanks-card h1 { font-size: 20px; }
.thanks-card p { color: var(--muted); }
.thanks-btns { display: grid; gap: 8px; width: 100%; margin-top: 8px; }
@media (min-width: 1024px) {
  .thanks-header { grid-template-columns: 1fr auto; min-height: 72px; padding-bottom: 0; }
}
