/* 메인 전용. 히어로와 그 아래 섹션들. */

/* ── 히어로 ───────────────────────────────────────────────────────── */

.hero { padding: 56px 0 72px; }

.hero .wrap { display: flex; align-items: center; gap: 52px; }

.hero-copy { width: 470px; flex-shrink: 0; }

.hero-kicker { display: flex; align-items: center; gap: 6px; margin: 0 0 22px; }
.hero-kicker .badge { height: 30px; padding: 0 11px; font-size: 13.5px; }
.hero-kicker .t { margin-left: 6px; font-size: 15px; font-weight: 700; color: var(--navy); }

.hero h1 {
  font-size: 58px; line-height: 1.28; font-weight: 800;
  letter-spacing: -.045em; margin-bottom: 16px;
}

.hero h1 em { font-style: normal; color: var(--blue); }

.hero-lead { font-size: 17px; line-height: 1.8; color: var(--ink-3); margin-bottom: 30px; }

.hero-lead strong { color: var(--ink-2); font-weight: 600; }

/* 왜 — 3줄 */

.why { border-top: 1px solid var(--line); margin-bottom: 30px; }

.why li { padding: 15px 0; border-bottom: 1px solid var(--hair); }

.why .head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 5px; }

.why .n { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; }

.why li:nth-child(1) .n { color: var(--blue); }

.why li:nth-child(2) .n { color: var(--miss); }

.why li:nth-child(3) .n { color: var(--muted); }

.why .t { font-size: 16.5px; font-weight: 600; color: var(--ink); letter-spacing: -.02em; }

.why .d { padding-left: 27px; font-size: 13.5px; line-height: 1.65; color: var(--muted); }

.hero-cta { display: flex; gap: 9px; margin-bottom: 12px; }

/* ── 네이버 AI탭 재현 ──────────────────────────────────────────────── */

/* 구조·치수는 docs/research/naver-observations.ko.md 3절 실측값을 따른다. */

.demo { flex-grow: 1; min-width: 0; }

.demo-cap { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }

.demo-cap .src { font-size: 12.5px; color: var(--muted); }

.tab {
  border: 1px solid var(--line); border-radius: 18px; background: var(--paper);
  box-shadow: var(--shadow-card); overflow: hidden;
}

.tab-head {
  height: 44px; padding: 0 16px; display: flex; align-items: center; gap: 9px;
  border-bottom: 1px solid var(--hair); background: #fcfcfd;
}

/* 네이버 N 마크·아바타 — 로고타입이라 대비 기준 예외. 마크업에서 aria-hidden 처리한다. */

.tab-head .mark {
  width: 16px; height: 16px; border-radius: 5px; background: var(--naver);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 8.5px; font-weight: 800; color: #fff;
}

.tab-head .name { font-size: 12.5px; font-weight: 600; color: var(--ink-3); }

.tab-body { display: flex; }

.chat { flex-grow: 1; min-width: 0; padding: 18px; }

.ask { display: flex; justify-content: flex-end; margin-bottom: 14px; }

.ask span {
  max-width: 82%; padding: 10px 14px; border-radius: 16px 16px 5px 16px;
  background: var(--g100); font-size: 14.5px; line-height: 23px; color: #1c1c1c;
}

.answer { display: flex; gap: 10px; }

.answer .av {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 100px; background: var(--naver);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; color: #fff; margin-top: 1px;
}

.answer p { font-size: 15px; line-height: 25px; color: #424242; margin-bottom: 10px; }

.answer p:last-child { margin-bottom: 0; }

.answer b { font-weight: 700; color: var(--ink); }

.chip {
  display: inline-flex; align-items: center; gap: 3px; height: 21px; padding: 0 8px;
  border-radius: 18px; background: #f1f5fa; vertical-align: middle; margin-left: 3px;
  font-size: 11px; color: #424242;
}

.chip .plus { color: var(--muted); }

/* 출처 레일 — 실측: PC 는 답변 본문 내 또는 우측 영역 */

.rail {
  width: 268px; flex-shrink: 0; border-left: 1px solid var(--hair);
  background: #fcfcfd; display: flex; flex-direction: column;
}

.rail-head { padding: 14px 15px 10px; display: flex; align-items: center; gap: 7px; }

.rail-head .t { font-size: 12px; font-weight: 700; color: var(--ink-3); }

.rail-head .n {
  display: inline-flex; align-items: center; height: 19px; padding: 0 7px;
  border-radius: 5px; background: #eef1f4; font-size: 11px; font-weight: 600; color: var(--ink-3);
}

.rail-list { padding: 0 12px 12px; display: flex; flex-direction: column; gap: 8px; }

.src-card { padding: 11px 12px; border-radius: 11px; background: var(--paper); border: 1px solid #eef1f4; }

.src-card.ours { background: #f5faff; border-color: #9cc8f7; }

.src-card .hook {
  display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px;
  border-radius: 5px; background: var(--blue-btn); margin-bottom: 8px;
  font-size: 11px; font-weight: 700; color: #fff;
}

.src-card .who { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }

.src-card .who i { width: 13px; height: 13px; border-radius: 3px; background: var(--naver); flex-shrink: 0; }

.src-card.ours .who i { background: var(--blue-btn); }

.src-card .who span { font-size: 11px; font-weight: 600; color: var(--ink-3); }

.src-card.ours .who span { color: var(--blue-dark); }

.src-card .ttl { font-size: 12px; line-height: 1.5; color: var(--ink-3); margin-bottom: 7px; }

.src-card .quote {
  padding: 7px 9px; border-radius: 7px; background: #f7f8f9;
  font-size: 11.5px; line-height: 1.55; color: var(--muted);
}

.src-card.ours .quote { background: var(--blue-50); color: var(--blue-dark); }

.src-card .tie { font-size: 11px; color: var(--muted); margin-top: 7px; }

.src-card.ours .tie { color: var(--blue); }

.rail-foot { margin-top: auto; padding: 11px 15px; border-top: 1px solid var(--hair); }

.rail-foot p { font-size: 11.5px; line-height: 1.6; color: var(--muted); }

.rail-foot strong { color: var(--miss); font-weight: 600; }

.tab-foot {
  padding: 10px 16px; border-top: 1px solid var(--hair);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}

/* 네이버 원본은 면책·더보기를 rgb(140,140,140) 로 쓰는데 흰 배경 3.36:1 이라 그대로 두지 않는다.
   재현이라도 우리 화면에서 읽히지 않는 글자는 두지 않는다. 회색 느낌은 유지하고 톤만 내렸다. */

.tab-foot span { font-size: 11.5px; color: #636363; }

.tab-foot .more { color: var(--muted); }

/* ── 등장 ─────────────────────────────────────────────────────────── */

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.rv { animation: rise .6s var(--ease) both; }

.d1 { animation-delay: .06s }

.d2 { animation-delay: .13s }

.d3 { animation-delay: .20s }

.d4 { animation-delay: .27s }

/* ── 반응형 ───────────────────────────────────────────────────────── */

@media (max-width: 1080px) {
  .hero .wrap { flex-direction: column; align-items: stretch; gap: 36px; }
  .hero-copy { width: auto; }
  .hero h1 { font-size: 44px; }
}

@media (max-width: 760px) {
  .hero h1 { font-size: 36px; }
  .tab-body { flex-direction: column; }
  .rail { width: auto; border-left: 0; border-top: 1px solid var(--hair); }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
}

/* ── 섹션 03 : 적혀 있는 것만 ─────────────────────────────────────── */

.written .wrap { display: flex; gap: 48px; align-items: flex-start; }

.written .lead { width: 420px; flex-shrink: 0; }

.written .lead .sec-title { margin: 14px 0 16px; }

.field {
  flex-grow: 1; min-width: 0; border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; background: var(--paper);
}

.field-head {
  padding: 13px 18px; background: var(--g50); border-bottom: 1px solid var(--hair);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}

.field-head .t { font-size: 13.5px; font-weight: 700; color: var(--ink-2); }

.field-row {
  display: grid; grid-template-columns: 116px 1fr 92px;
  gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--hair); align-items: baseline;
}

.field-row:last-child { border-bottom: 0; }

.field-row .k { font-size: 13px; font-weight: 600; color: var(--ink-3); }

.field-row .v { font-size: 13.5px; color: var(--ink-2); }

.field-row.empty .v { color: var(--miss); }

.field-row .s { font-size: 11.5px; font-weight: 700; justify-self: end; }

.field-row .s.on  { color: var(--muted); }

.field-row .s.off { color: var(--miss); }

/* ── 섹션 04 : 방법을 물으면 ───────────────────────────────────────── */

.cited .wrap { display: flex; gap: 48px; align-items: flex-start; }

.cited .lead { width: 420px; flex-shrink: 0; }

.cited .lead .sec-title { margin: 14px 0 16px; }

/* ── 섹션 09 : 범위 ───────────────────────────────────────────────── */

.scope-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }

.scope-col { padding: 22px 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--paper); }

.scope-col.out { background: var(--g50); }

.scope-col h3 { font-size: 17px; margin-bottom: 4px; letter-spacing: -.025em; }

.scope-col .sub { font-size: 12.5px; color: var(--muted); margin-bottom: 16px; }

.scope-col li { display: flex; gap: 9px; padding: 7px 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-3); }

.scope-col li i { flex-shrink: 0; width: 15px; font-style: normal; color: var(--muted); }

.scope-col.out li { color: var(--muted); }

.scope-col.out li i { color: var(--miss); }

@media (max-width: 1080px) {
  .written .wrap, .cited .wrap { flex-direction: column; }
  .written .lead, .cited .lead { width: auto; }
  .scope-grid { grid-template-columns: 1fr; }
}

/* ── 섹션 02 : 세 자리 ─────────────────────────────────────────────── */

.surf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.surf {
  padding: 26px 26px 22px; border-radius: var(--r-lg);
  border: 1px solid var(--line); background: var(--paper);
  display: flex; flex-direction: column;
}

.surf > .badge { align-self: flex-start; margin-bottom: 14px; }

.surf h3 { font-size: 21px; margin: 0 0 8px; letter-spacing: -.03em; }

.surf .what { font-size: 14.5px; line-height: 1.72; color: var(--ink-3); min-height: 76px; }

.surf .what strong { color: var(--ink); font-weight: 600; }

.surf .kv { margin-top: auto; grid-template-columns: 74px 1fr; }

.surf .kv dt { font-size: 12.5px; }

.surf .kv dd { font-size: 13.5px; line-height: 1.62; }

.surf .kv dt:last-of-type, .surf .kv dd:last-of-type { border-bottom: 0; padding-bottom: 0; }

/* 질의 라우팅 실측 */

/* 구분선은 한 줄만. 앞 행의 아랫줄과 겹쳐 두 겹이 되던 것을 막는다. */

@media (max-width: 900px) {
  .surf-grid { grid-template-columns: 1fr; }
  .surf .what { min-height: 0; }
}

/* ── 섹션 05 : 작업 순서 ───────────────────────────────────────────── */

.how .timeline { max-width: 720px; }

/* ── 섹션 06 : 근거 ───────────────────────────────────────────────── */

/* ── 섹션 07 · 08 : FAQ · 문의 ─────────────────────────────────────── */

.contact { text-align: center; padding: 104px 0; }

.contact .sec-desc { max-width: 52ch; }

@media (max-width: 900px) {
  .contact { padding: 64px 0; }
}

/* 유형별 집계 행 — 질의 나열이 아니라 비율을 보여준다 */

/* 좁은 폰(≤560px) — 등록정보 표. 세 칸을 한 줄에 두면 360px 에서 "읽힘" 칸이 화면 밖으로
   잘리고 값이 다섯 줄로 쪼개졌다. 항목 이름 · 판정을 윗줄에, 값을 아랫줄 전체 폭에 둔다. */
@media (max-width: 560px) {
  .field-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "k s" "v v"; row-gap: 4px; padding: 12px 16px;
  }
  .field-row .k { grid-area: k; }
  .field-row .v { grid-area: v; }
  .field-row .s { grid-area: s; }
  .field-head { padding: 12px 16px; }
}
