/* 앱 지원 · App Support — 공통 지원 사이트 스타일
   오방색(청·적·황·백·흑)을 한지 톤 위에서 채도만 낮춰 쓴다.
   본문 가독성이 우선이라 색은 강조와 구분에만 쓰고 배경으로는 깔지 않는다. */

:root {
  --c-cheong: #4E8C7D;  /* 청 */
  --c-jeok:   #C75B4A;  /* 적 */
  --c-hwang:  #D9A441;  /* 황 */
  --c-baek:   #EFE5D4;  /* 백 */
  --c-heuk:   #33302B;  /* 흑 */

  --bg:          #FCF8F1;
  --surface:     #FFFFFF;
  --surface-alt: #F6F0E5;
  --text:        #2E2A25;
  --text-soft:   #6B635A;
  --line:        #E4DACA;
  --accent:      #4E8C7D;
  --accent-ink:  #2F6357;

  --radius: 14px;
  --pad: clamp(1rem, 4vw, 2rem);
  --measure: 42rem;

  --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard",
          "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* 오방색의 백과 흑은 어두운 배경에서 자리를 맞바꾼다.
       그대로 두면 흑이 배경에 묻혀 다섯 색 중 하나가 사라진다. */
    --c-baek:      #4A443A;
    --c-heuk:      #CFC6B6;
    --bg:          #1B1917;
    --surface:     #242120;
    --surface-alt: #2C2825;
    --text:        #ECE6DB;
    --text-soft:   #A9A093;
    --line:        #3A3531;
    --accent:      #7FBCAB;
    --accent-ink:  #9FD3C3;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* ---- 언어 전환 ------------------------------------------------------ */
/* 두 언어를 모두 마크업에 담고 표시만 바꾼다. 스크립트가 죽어도
   기본값인 한국어는 그대로 읽힌다. */
html[data-lang="ko"] .en { display: none !important; }
html[data-lang="en"] .ko { display: none !important; }

/* ---- 공통 ----------------------------------------------------------- */
.wrap {
  width: min(100%, 60rem);
  margin-inline: auto;
  padding-inline: var(--pad);
}

a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface);
  color: var(--text);
  padding: .6rem 1rem;
  z-index: 10;
}
.skip:focus { left: .5rem; top: .5rem; }

/* ---- 헤더 ----------------------------------------------------------- */
.site-header {
  border-bottom: 1px solid var(--line);
  /* 반투명 + blur 은 스크롤 내내 GPU 를 쓰고 캡처/렌더가 엔진마다 갈린다.
     읽는 데 보탬이 없으므로 불투명하게 둔다. */
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 5;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 60px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -.01em;
}
.brand:hover { text-decoration: none; }
.brand svg { display: block; flex: none; }
.brand .sub {
  font-weight: 500;
  color: var(--text-soft);
  font-size: .95rem;
}

.lang {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
}
.lang button {
  font: inherit;
  font-size: .85rem;
  font-weight: 600;
  padding: .35rem .85rem;
  border: 0;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
}
.lang button[aria-pressed="true"] {
  background: var(--accent);
  color: #fff;
}
@media (prefers-color-scheme: dark) {
  .lang button[aria-pressed="true"] { color: #14201C; }
}

/* ---- 히어로 --------------------------------------------------------- */
.hero {
  padding-block: clamp(2rem, 7vw, 3.5rem) clamp(1.5rem, 5vw, 2.5rem);
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 .5rem;
}

h1 {
  font-size: clamp(1.85rem, 6vw, 2.6rem);
  line-height: 1.3;
  letter-spacing: -.02em;
  margin: 0 0 .75rem;
}

.lede {
  font-size: clamp(1rem, 2.4vw, 1.1rem);
  color: var(--text-soft);
  margin: 0;
  max-width: var(--measure);
}

/* 오방색 띠 — 색연필 다섯 자루를 눕힌 모양 */
.stripe {
  display: flex;
  height: 5px;
  border-radius: 999px;
  overflow: hidden;
  margin-block: 1.25rem 0;
  max-width: 16rem;
}
.stripe span { flex: 1; }
.stripe .s1 { background: var(--c-cheong); }
.stripe .s2 { background: var(--c-jeok); }
.stripe .s3 { background: var(--c-hwang); }
.stripe .s4 { background: var(--c-baek); }
.stripe .s5 { background: var(--c-heuk); }

/* ---- 섹션 / 카드 ---------------------------------------------------- */
main { padding-bottom: clamp(2rem, 6vw, 3.5rem); }

section { margin-block: clamp(2rem, 6vw, 3rem); }

h2 {
  font-size: clamp(1.25rem, 3.4vw, 1.55rem);
  letter-spacing: -.015em;
  line-height: 1.4;
  margin: 0 0 1rem;
  padding-left: .7rem;
  border-left: 4px solid var(--accent);
}

h3 {
  font-size: 1.02rem;
  margin: 0 0 .35rem;
  line-height: 1.5;
}

p { max-width: var(--measure); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.1rem, 3.5vw, 1.6rem);
}

.card + .card { margin-top: .9rem; }

/* ---- 도구 칩 -------------------------------------------------------- */
.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: 0;
  margin: 0;
}
.chips li {
  border: 1px solid var(--line);
  background: var(--surface-alt);
  border-radius: 999px;
  padding: .3rem .8rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}
.chips li::before {
  content: "";
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  flex: none;
  background: var(--dot, var(--accent));
}
.chips li:nth-child(7n+1) { --dot: var(--c-cheong); }
.chips li:nth-child(7n+2) { --dot: var(--c-jeok); }
.chips li:nth-child(7n+3) { --dot: var(--c-hwang); }
.chips li:nth-child(7n+4) { --dot: var(--c-heuk); }
.chips li:nth-child(7n+5) { --dot: var(--c-cheong); }
.chips li:nth-child(7n+6) { --dot: var(--c-jeok); }
.chips li:nth-child(7n+7) { --dot: var(--c-hwang); }

/* ---- 정보 표 -------------------------------------------------------- */
.spec {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: .5rem 1.25rem;
  margin: 0;
}
.spec dt { color: var(--text-soft); font-size: .92rem; }
.spec dd { margin: 0; font-weight: 600; }

/* ---- 기능 목록 ------------------------------------------------------ */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .55rem;
}
@media (min-width: 40rem) {
  .feature-list { grid-template-columns: 1fr 1fr; gap: .55rem 1.5rem; }
}
.feature-list li {
  position: relative;
  padding-left: 1.5rem;
  line-height: 1.6;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: .5rem;
  height: .5rem;
  border-radius: 2px;
  background: var(--c-hwang);
  transform: rotate(45deg);
}

/* ---- FAQ ------------------------------------------------------------ */
.faq { display: grid; gap: .7rem; }

details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
details[open] { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }

summary {
  cursor: pointer;
  padding: .95rem clamp(1rem, 3vw, 1.35rem);
  font-weight: 650;
  line-height: 1.55;
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "";
  margin-left: auto;
  flex: none;
  width: .55rem;
  height: .55rem;
  margin-top: .5em;
  border-right: 2px solid var(--text-soft);
  border-bottom: 2px solid var(--text-soft);
  transform: rotate(45deg);
}
details[open] summary::after { transform: rotate(-135deg); margin-top: .75em; }

.q-num {
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: .82rem;
  font-weight: 700;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  color: var(--text-soft);
  margin-top: .1em;
}

.answer {
  padding: 0 clamp(1rem, 3vw, 1.35rem) 1.1rem;
  border-top: 1px solid var(--line);
  padding-top: .9rem;
}
.answer > :first-child { margin-top: 0; }
.answer > :last-child { margin-bottom: 0; }

/* ---- 체크 목록 (제보 항목 / 정책 항목) ------------------------------ */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .5rem;
}
.checklist li {
  position: relative;
  padding-left: 1.6rem;
  line-height: 1.6;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: .15rem;
  top: .42em;
  width: .45rem;
  height: .8rem;
  border-right: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(42deg);
}

.nolist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .5rem;
}
.nolist li {
  position: relative;
  padding-left: 1.6rem;
  line-height: 1.6;
}
.nolist li::before {
  content: "";
  position: absolute;
  left: .2rem;
  top: .72em;
  width: .75rem;
  height: 2.5px;
  border-radius: 2px;
  background: var(--c-jeok);
}

/* ---- 문의 ----------------------------------------------------------- */
.contact-card {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 4vw, 1.75rem);
}

/* 주소를 못 채운 버튼은 눌러 봐야 제자리다. 아예 내보내지 않는다. */
html.no-js .mail-btn { display: none; }

.mail-btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-top: .9rem;
  padding: .7rem 1.3rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.4;
}
.mail-btn:hover { background: var(--accent-ink); text-decoration: none; }
@media (prefers-color-scheme: dark) {
  .mail-btn { color: #14201C; }
  .mail-btn:hover { background: var(--accent-ink); }
}

.mail-note {
  margin: .65rem 0 0;
  font-size: .9rem;
  color: var(--text-soft);
}

/* ---- 개인정보 처리방침 ---------------------------------------------- */
.meta {
  color: var(--text-soft);
  font-size: .93rem;
  margin: 0;
}

.summary-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--c-hwang);
  border-radius: var(--radius);
  padding: clamp(1.1rem, 3.5vw, 1.5rem);
}
.summary-box p { margin: 0; font-weight: 600; }

.policy { counter-reset: sec; }
.policy section { margin-block: clamp(1.75rem, 5vw, 2.25rem); }
.policy h2::before {
  counter-increment: sec;
  content: counter(sec) ". ";
  color: var(--text-soft);
  font-weight: 700;
}

/* ---- 푸터 ----------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface-alt);
  padding-block: 1.75rem;
  font-size: .92rem;
  color: var(--text-soft);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}
.site-footer nav {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
}
.footer-name { font-weight: 700; color: var(--text); }
.copy { margin: 0; }

/* ---- 404 ------------------------------------------------------------ */
.center-page {
  min-height: 65vh;
  display: grid;
  place-items: center;
  text-align: center;
}
.center-page .stripe { margin-inline: auto; }

/* ---- 색연필 마크 ---------------------------------- */
/* CSP 가 인라인 스타일을 막고 있어 SVG 색도 전부 여기서 준다. */
.mark .p1 { fill: var(--c-cheong); }
.mark .p2 { fill: var(--c-jeok); }
.mark .p3 { fill: var(--c-hwang); }
.mark .p4 { fill: var(--c-baek); stroke: var(--line); stroke-width: .6; }
.mark .p5 { fill: var(--c-heuk); }

