/* Dontpaint 웹사이트 공통 스타일 — 기본 글꼴만 사용하고 Analytics는 동의 후 불러온다. */

:root {
  --bg: #050506;
  --surface: #111113;
  --surface-2: #17171a;
  --line: #26262b;
  --line-soft: #1c1c20;
  --text: #f3eee6;
  --text-2: #c9c3ba;
  --muted: #8f8a83;
  --glow: #ffe6bf;
  --glow-soft: rgba(255, 226, 184, 0.14);
  --accent: #ffd9a3;
  --radius: 18px;
  --wrap: 1120px;
  --gutter: 24px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR",
    "Malgun Gothic", "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

a:focus-visible,
button:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.nowrap { white-space: nowrap; }

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 100;
  background: var(--text);
  color: var(--bg);
  padding: 8px 14px;
  border-radius: 8px;
}

/* ---------- 헤더 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 5, 6, 0.78);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand img.brand-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--line);
}
.brand img.brand-word {
  height: 19px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.site-nav a {
  text-decoration: none;
  color: var(--text-2);
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 0.15s, background-color 0.15s;
}
.site-nav a:hover { color: var(--text); background: var(--surface-2); }
.site-nav a[aria-current="page"] { color: var(--text); }

.language-control { flex: none; }
.language-select {
  min-height: 40px;
  max-width: 190px;
  padding: 0 34px 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.language-select:hover { border-color: #45454b; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.footer-settings {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.footer-settings:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

.consent-banner {
  position: fixed;
  z-index: 100;
  inset: auto 20px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 920px;
  margin: 0 auto;
  padding: 22px 24px;
  border: 1px solid #3a3938;
  border-radius: 18px;
  background: rgba(20, 20, 22, 0.97);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.48);
}
.consent-banner[hidden] { display: none; }
.consent-copy { min-width: 0; }
.consent-copy h2 { margin: 0 0 4px; font-size: 16px; letter-spacing: 0; }
.consent-copy p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.55; }
.consent-copy a { color: var(--accent); text-underline-offset: 3px; }
.consent-actions { display: flex; flex: none; align-items: center; gap: 8px; }
.consent-actions .btn { min-height: 42px; padding: 0 18px; font-size: 14px; }

@media (max-width: 720px) {
  .site-header .wrap { flex-wrap: wrap; gap: 4px 8px; padding-top: 8px; padding-bottom: 8px; }
  .site-nav .nav-optional { display: none; }
  .site-nav { gap: 0; }
  .site-nav a { padding: 8px 7px; font-size: 13px; }
  .language-select { min-height: 36px; max-width: 150px; padding-left: 10px; font-size: 13px; }
}

/* ---------- 버튼 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn-primary {
  background: var(--text);
  color: #121212;
}
.btn-primary:hover { background: #fff; }
.btn-ghost {
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: #3a3a40; background: var(--surface); }
.btn-static {
  border-color: var(--line);
  color: var(--text-2);
  cursor: default;
}
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- 히어로 ---------- */

.hero {
  position: relative;
  padding: 72px 0 96px;
  text-align: center;
  overflow: hidden;
  background: #000;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  background: linear-gradient(to bottom, rgba(5, 5, 6, 0), var(--bg));
  pointer-events: none;
}

.hero-art {
  position: relative;
  z-index: 1;
  width: min(100%, 960px);
  margin: 52px auto 0;
  text-align: left;
}
.hero-art img {
  position: relative;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: clamp(16px, 2.4vw, 28px);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}
.hero-art figcaption,
.showcase .stage figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.hero h1 {
  position: relative;
  margin: 0 auto;
  max-width: 15em;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.22;
  letter-spacing: -0.025em;
  font-weight: 700;
  text-wrap: balance;
}
.hero .eyebrow {
  position: relative;
  display: inline-block;
  margin: 0 0 18px;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.hero .lead {
  position: relative;
  max-width: 34em;
  margin: 22px auto 0;
  color: var(--text-2);
  font-size: clamp(17px, 2.1vw, 19px);
  text-wrap: pretty;
}
.hero .actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}
.hero .note {
  position: relative;
  z-index: 1;
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- 섹션 공통 ---------- */

.section { padding: 88px 0; }
.section + .section { padding-top: 0; scroll-margin-top: 88px; }

.section-head { max-width: 40em; margin-bottom: 44px; }
.section-head .kicker {
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.28;
  letter-spacing: -0.02em;
}
.section-head p {
  margin: 14px 0 0;
  color: var(--text-2);
}

/* ---------- 기능 카드 ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 1000px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
}
.card .icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--glow);
  margin-bottom: 18px;
}
.card .icon svg { width: 22px; height: 22px; }
.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-2);
}

/* ---------- 스크린샷 갤러리 ---------- */

.gallery-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}
.gallery-head .section-head { margin-bottom: 0; }
.gallery-controls { display: flex; flex: none; gap: 8px; }
.gallery-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, opacity 0.15s;
}
.gallery-btn:hover:not(:disabled) { border-color: #45454b; background: var(--surface-2); }
.gallery-btn:disabled { opacity: 0.35; cursor: default; }
.gallery-btn svg { width: 20px; height: 20px; }

/* 트랙의 첫 장을 .wrap 왼쪽 가장자리에 맞추고, 오른쪽은 화면 끝까지 흘려 보낸다 */
.gallery {
  --edge: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--edge);
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.gallery-track {
  display: flex;
  gap: 20px;
  width: max-content;
  margin: 0;
  padding: 0 var(--edge) 8px;
  list-style: none;
}
.shot {
  flex: none;
  width: min(78vw, 760px);
  scroll-snap-align: start;
}
.shot figure { margin: 0; }
.shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}
.shot figcaption {
  margin-top: 12px;
  color: var(--text-2);
  font-size: 15px;
}

@media (max-width: 720px) {
  .gallery-controls { display: none; }
  .gallery-track { gap: 12px; }
  .shot { width: 86vw; }
  .shot img { border-radius: 14px; }
}

/* ---------- 애니메이션 쇼케이스 ---------- */

.showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 28px;
  padding: 48px;
}
@media (max-width: 900px) {
  .showcase { grid-template-columns: 1fr; padding: 32px 24px; gap: 28px; }
}

.showcase .stage {
  position: relative;
  margin: 0;
  border-radius: 20px;
  background: #000;
  border: 1px solid var(--line);
  overflow: hidden;
}
.showcase .stage img { width: 100%; height: auto; display: block; }
.showcase .stage figcaption { padding: 0 16px 14px; margin-top: 0; }

.showcase h2 {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.showcase .kicker {
  margin: 0 0 10px;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.showcase > div > p { color: var(--text-2); margin: 14px 0 0; }

.checklist {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.checklist li {
  position: relative;
  padding-left: 28px;
  color: var(--text-2);
  font-size: 16px;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 10px rgba(255, 226, 184, 0.7);
}
.checklist strong { color: var(--text); font-weight: 600; }

/* 어니언 스킨 공 — 움직임 줄이기 설정이면 멈춘다 */
.ball-live { animation: bounce 1.6s cubic-bezier(0.45, 0, 0.55, 1) infinite; transform-origin: center; }
@keyframes bounce {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(0, -46px); }
}

/* ---------- 개인정보 띠 ---------- */

.privacy-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 900px) { .privacy-band { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .privacy-band { grid-template-columns: 1fr; } }

.privacy-band > div {
  padding: 28px 24px;
  background: var(--surface);
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.privacy-band h3 { margin: 0 0 6px; font-size: 17px; }
.privacy-band p { margin: 0; font-size: 15px; color: var(--text-2); line-height: 1.6; }
.privacy-more { margin-top: 20px; font-size: 15px; color: var(--text-2); }
.privacy-more a { color: var(--accent); text-underline-offset: 3px; }

/* ---------- 마지막 CTA ---------- */

.cta {
  text-align: center;
  padding: 24px 0 112px;
}
.cta img {
  width: 96px;
  height: 96px;
  margin: 0 auto 24px;
  border-radius: 22px;
  box-shadow: 0 0 0 1px var(--line), 0 0 60px rgba(255, 226, 184, 0.12);
}
.cta h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.cta p { color: var(--text-2); margin: 12px auto 0; max-width: 30em; }
.cta .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }

.not-found {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 48px 0;
}
.not-found .kicker { margin: 0 auto 8px; color: var(--accent); font-size: 14px; letter-spacing: 0.08em; }
.not-found h1 { margin: 0; font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.02em; line-height: 1.3; }

/* ---------- 푸터 ---------- */

.site-footer {
  border-top: 1px solid var(--line-soft);
  background: #08080a;
  padding: 48px 0 56px;
  font-size: 14px;
  color: var(--muted);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line-soft);
}
.footer-brand strong {
  display: block;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
}
.footer-brand span { display: block; margin-top: 2px; }
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.footer-links a {
  color: var(--text-2);
  text-decoration: none;
}
.footer-links a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.footer-links a.strong { color: var(--text); font-weight: 600; }

.footer-info {
  margin: 24px 0 0;
  line-height: 1.85;
}
.footer-info p { margin: 0; }
.footer-info a { color: inherit; text-decoration: none; }
.footer-info a:hover { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.footer-info .item { white-space: nowrap; }
.footer-info .sep { margin: 0 8px; color: #4a4741; }
.footer-copy { margin-top: 16px; }

/* ---------- 문서 페이지 (개인정보처리방침) ---------- */

.doc {
  max-width: 780px;
  margin: 0 auto;
  padding: 64px var(--gutter) 96px;
}
.doc-head h1 {
  margin: 0;
  font-size: clamp(30px, 4.6vw, 42px);
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.doc-head .meta {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.summary {
  margin: 36px 0 0;
  padding: 26px 28px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
.summary h2 {
  margin: 0 0 12px;
  font-size: 17px;
  color: var(--accent);
  letter-spacing: 0;
}
.summary ul { margin: 0; padding-left: 20px; }
.summary li { margin: 6px 0; color: var(--text-2); font-size: 16px; }
.summary li::marker { color: var(--muted); }

.toc {
  margin: 28px 0 0;
  padding: 22px 28px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
.toc h2 { margin: 0 0 10px; font-size: 15px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 28px;
  counter-reset: toc;
}
@media (max-width: 560px) { .toc ol { columns: 1; } }
.toc li { counter-increment: toc; break-inside: avoid; padding: 3px 0; font-size: 15px; }
.toc li::before { content: counter(toc) ". "; color: var(--muted); }
.toc a { color: var(--text-2); text-decoration: none; }
.toc a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

.doc-body { margin-top: 44px; }
.doc-body > p:first-child { color: var(--text-2); }
.doc-body h2 {
  margin: 52px 0 14px;
  padding-top: 8px;
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1.4;
  scroll-margin-top: 84px;
}
.doc-body h3 { margin: 22px 0 6px; font-size: 17px; }
.doc-body p { margin: 0 0 14px; color: var(--text-2); }
.doc-body ol,
.doc-body ul { margin: 0 0 16px; padding-left: 22px; color: var(--text-2); }
.doc-body li { margin: 8px 0; }
.doc-body li::marker { color: var(--muted); }
.doc-body strong { color: var(--text); font-weight: 600; }
.doc-body a { color: var(--accent); text-underline-offset: 3px; }
.doc-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
}

.table-scroll { overflow-x: auto; margin: 0 0 16px; -webkit-overflow-scrolling: touch; }
.doc-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.6;
}
.doc-body th,
.doc-body td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text-2);
}
.doc-body th {
  color: var(--text);
  font-weight: 600;
  background: var(--surface);
}
.doc-body table.kv th { width: 34%; }
@media (max-width: 560px) {
  .doc-body th,
  .doc-body td { padding: 10px 12px; }
}

.contact-card {
  margin: 8px 0 18px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
}
.contact-card dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 20px;
  margin: 0;
}
.contact-card dt { color: var(--muted); }
.contact-card dd { margin: 0; color: var(--text); }
.contact-card a { color: var(--text); }

.doc-end {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
}

@media (max-width: 560px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .hero { padding: 40px 0 72px; }
  .hero-art { margin: 36px auto 0; }
  .section { padding: 64px 0; }
  .section + .section { padding-top: 0; }
  .summary, .toc { padding: 20px; }
  .contact-card dl { grid-template-columns: 1fr; gap: 0; }
  .contact-card dd { margin-bottom: 8px; }
  .footer-info .sep { display: none; }
  .footer-info .item { display: block; }
  .consent-banner { inset: auto 12px 12px; display: block; padding: 18px; }
  .consent-actions { margin-top: 14px; }
  .consent-actions .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ball-live { animation: none; }
}
