/* 참랩스 홈페이지 — 빛깔 · 글꼴 · 간격은 :root 한 곳이 원본이다.
   브랜드 색은 회사 로고의 두 가지다(2026-09-30 대장 지정): 민트 #33cc99 · 네이비 #112c41.
   나머지 빛깔은 이 둘에서 파생한 명도 단계다 — 새 빛깔을 들이기 전에 아래 이름표부터 본다. */
:root {
  /* 브랜드 두 색 */
  --mint: #33cc99;
  --navy: #112c41;

  /* 밝은 화면 — 바탕은 네이비 쪽으로 살짝 기운 흰색 */
  --paper: #f4f8fa;          /* 바탕 */
  --paper-alt: #e9f1f4;      /* 번갈아 깔리는 바탕 */
  --card: #ffffff;
  --text: #112c41;           /* 네이비 */
  --muted: #4a6072;          /* 종이 위 6.1:1 */
  --line: #d9e4e9;
  --dash: #8fa3b2;           /* 점선(자리표시) */

  /* 늘 어두운 면(첫 화면 · 문의 판 · 스토어 단추) — 네이비 */
  --ink: #112c41;
  --ink-2: #17384f;
  --on-ink: #eef5f8;
  --on-ink-muted: #a7bccb;   /* 네이비 위 7.3:1 */

  /* 민트 — 어두운 면 위에서는 원색(네이비 위 7.0:1), 밝은 면 위 글에는 못 쓴다(흰 바탕 2.1:1) */
  --accent: #33cc99;
  --accent-press: #2bb88a;
  --accent-text: #0a7355;    /* 밝은 면 위에서 글 · 아이콘으로 쓰는 민트 — 종이 5.5:1 · 흰 카드 5.8:1 */
  --accent-soft: #d9f6ec;    /* 민트 옅은 바탕(아이콘 판) */
  --focus: #0a7355;

  /* 머리 · 발 — 밝은 화면이든 어두운 화면이든 **늘 불투명한 흰 띠**다. 로고(네이비 CHAM · 민트 LABS)는 흰 바탕에서 그려진 그림이라
     어두운 바탕이나 반투명 띠 위에서는 어색하게 보이고, 로고 파일을 고칠 수도 없다. 아래 여섯 값은 어두운 화면에서도 안 바꾼다. */
  --chrome-bg: #ffffff;
  --chrome-line: rgba(17, 44, 65, 0.10);
  --chrome-text: #112c41;
  --chrome-muted: #4a6072;
  --chrome-hover-bg: rgba(17, 44, 65, 0.06);
  --chrome-focus: #0a7355;   /* 흰 띠 위 초점 테 — 민트 원색은 흰 바탕에서 2.1:1이라 안 보인다 */

  --radius: 20px;
  --radius-sm: 12px;
  --wrap: 1120px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0a1b29;
    --paper-alt: #0d2233;
    --card: #112c41;
    --text: #e9f2f6;
    --muted: #9db3c2;        /* 종이 위 8.0:1 · 카드 위 6.6:1 */
    --line: #21425a;
    --dash: #4f6d83;
    --accent-text: #33cc99;  /* 어두운 바탕에서는 민트 원색이 글이 된다(종이 8.5:1) */
    --accent-soft: rgba(51, 204, 153, 0.14);
    --focus: #33cc99;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.01em;
  word-break: keep-all;          /* 한글이 낱말 가운데서 안 꺾이게 */
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.03em; }
p { margin: 0; }

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

.skip { position: absolute; left: 16px; top: -48px; padding: 10px 16px; border-radius: 10px; background: var(--accent); color: var(--ink); font-weight: 700; text-decoration: none; z-index: 20; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
/* 네이비 면 위에서는 민트 테(밝은 면 위 어두운 민트 테는 네이비 위에서 안 보인다) */
.hero :focus-visible, .store:focus-visible { outline-color: var(--accent); }
.site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--chrome-focus); }

/* ── 머리 ─────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--chrome-bg);      /* 불투명 — 뒤의 네이비 첫 화면이 비쳐 회색빛이 되지 않게 */
  border-bottom: 1px solid var(--chrome-line);
  color: var(--chrome-text);
}
.bar { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; text-decoration: none; padding: 2px 4px; border-radius: 12px; }
.brand-logo { height: 44px; width: auto; }
.nav { display: flex; flex: 0 0 auto; gap: 4px; }
.nav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; white-space: nowrap; font-size: 15px; font-weight: 600; color: var(--chrome-muted); transition: color .15s, background .15s; }
.nav a:hover { color: var(--chrome-text); background: var(--chrome-hover-bg); }

/* ── 첫 화면 ───────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 480px at 88% -8%, rgba(51, 204, 153, 0.22) 0%, transparent 62%),
    radial-gradient(720px 420px at -6% 108%, rgba(11, 76, 112, 0.6) 0%, transparent 64%),
    var(--ink);
  color: var(--on-ink);
  padding: 88px 0 104px;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; gap: 48px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.2em; color: var(--accent); margin-bottom: 20px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 72px); font-weight: 800; letter-spacing: -0.045em; }
.lead { margin-top: 24px; font-size: clamp(17px, 1.8vw, 20px); color: var(--on-ink-muted); max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; transition: background .15s, transform .15s, border-color .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--ink); }   /* 민트 바탕에는 네이비 글자(7.0:1) — 흰 글자는 2.1:1이라 안 읽힌다 */
.btn-primary:hover { background: var(--accent-press); }
/* 첫 화면의 둘째 길 — 버튼이 아니라 글 링크(출시 전 전환은 「문의」 하나: 조사 ⑧-2) */
.link-more { display: inline-flex; align-items: center; min-height: 52px; padding: 0 8px; font-size: 16px; font-weight: 600; color: var(--on-ink); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: rgba(255, 255, 255, 0.35); text-underline-offset: 6px; transition: text-decoration-color .15s; }
.link-more:hover { text-decoration-color: var(--accent); }
.btn-large { min-height: 60px; padding: 0 32px; font-size: 18px; }

.hero-art { position: relative; height: 420px; }
.orb { position: absolute; border-radius: 50%; filter: blur(2px); }
.orb-a { width: 300px; height: 300px; right: 4%; top: 12%; background: radial-gradient(circle at 30% 30%, #7de8c6, #33cc99 55%, #159a72); opacity: .92; }
.orb-b { width: 150px; height: 150px; left: 6%; bottom: 6%; background: radial-gradient(circle at 35% 35%, #4d94bd, #0b4c70 72%); opacity: .9; }
.phone {
  position: absolute; left: 50%; top: 50%; width: 200px; height: 390px; transform: translate(-50%, -50%) rotate(-8deg);
  border-radius: 38px; padding: 12px; background: #07131d;
  box-shadow: 0 30px 80px rgba(2, 10, 18, 0.6), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}
.phone-screen {
  height: 100%; border-radius: 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: linear-gradient(160deg, #1d4a6b 0%, #112c41 58%, #0c2233 100%);
}
/* 앱 아이콘처럼 — 흰 판 위에 로고의 엠블럼(네이비 조각이 어두운 화면에 묻히지 않게) */
.phone-mark { width: 84px; height: 84px; padding: 15px; border-radius: 22px; background: #fff; box-shadow: 0 10px 30px rgba(2, 10, 18, 0.4); }
.phone-mark img { width: 100%; height: 100%; object-fit: contain; }
.phone-label { font-size: 13px; font-weight: 700; letter-spacing: 0.16em; color: var(--on-ink-muted); text-transform: uppercase; }

/* ── 구역 ─────────────────────────────────────────── */
.section { padding: 104px 0; }
.section-alt { background: var(--paper-alt); }
.kicker { font-size: 13px; font-weight: 800; letter-spacing: 0.2em; color: var(--accent-text); margin-bottom: 14px; }
.section h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.section-lead { margin-top: 18px; max-width: 40em; color: var(--muted); font-size: 18px; }

.pillars { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pillar { padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.pillar-icon { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); margin-bottom: 20px; }
.pillar h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.pillar p { color: var(--muted); font-size: 16px; }

.works { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.work:first-child { grid-column: 1 / -1; flex-direction: row; }
.work:first-child .work-media-img { flex: 0 0 58%; }
.work:first-child .work-body { justify-content: center; }
.work { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.work-media { height: 220px; display: grid; place-items: center; }
.work-media svg { width: 76px; height: 76px; }
.work-media-game { background: radial-gradient(420px 220px at 70% 20%, rgba(51, 204, 153, 0.55) 0%, transparent 60%), linear-gradient(135deg, #1d4a6b, #112c41); color: #fff; }
.work-media-img { height: auto; aspect-ratio: 16 / 9; display: block; background: #1a1208; }
.work-media-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-media-next { background: var(--paper-alt); color: var(--muted); }
.work-body { padding: 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.work-tag { font-size: 13px; font-weight: 700; color: var(--accent-text); letter-spacing: 0.02em; }
.work h3 { font-size: 24px; font-weight: 800; }
.work-body > p:not(.work-tag) { color: var(--muted); font-size: 16px; }
.work-next h3 { font-size: 20px; }
.work-next .work-media { height: 140px; }

.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 14px; }
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px 0 14px; border-radius: 14px; background: var(--ink); color: #fff; text-decoration: none; }
.store svg { width: 24px; height: 24px; flex: none; }
.store span { display: flex; flex-direction: column; font-size: 16px; font-weight: 700; line-height: 1.15; }
.store small { font-size: 11px; font-weight: 600; opacity: .7; letter-spacing: 0.02em; }
.store:hover { background: var(--ink-2); }
/* 출시 전 자리표시 — 흐리게가 아니라 점선 칩으로(글자가 읽혀야 한다: 밝은 · 어두운 화면 모두 6:1 이상). 점선은 「다음 작품」 카드의 점선 원과 같은 말(아직 없다) */
.store.is-soon { background: transparent; color: var(--muted); border: 1.5px dashed var(--dash); padding: 0 16.5px 0 12.5px; cursor: default; pointer-events: none; }
.store.is-soon small { opacity: 1; font-size: 12px; }

.news { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--line); }
.news li { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.news time { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); }
.news p { color: var(--muted); }

/* ── 문의 ─────────────────────────────────────────── */
.contact-action { margin-top: 28px; }

/* ── 발 ───────────────────────────────────────────── */
.site-footer { background: var(--chrome-bg); border-top: 1px solid var(--chrome-line); padding: 40px 0 56px; color: var(--chrome-muted); font-size: 14px; }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-logo { display: inline-flex; padding: 2px 4px; border-radius: 12px; }
.footer-logo img { height: 36px; width: auto; }
.footer-brand p { margin-top: 10px; }
.footer-info { text-align: right; display: grid; gap: 4px; }
.copy { margin-top: 8px; }

/* 메뉴로 건너뛸 때 붙박이 머리에 구역 제목이 안 가리게 */
section[id] { scroll-margin-top: 72px; }

/* 404 — 다른 쪽과 같은 흰 머리(로고) 아래에 네이비 한 면 */
.page-404 { min-height: 100vh; display: flex; flex-direction: column; }
.page-404 .hero { flex: 1; display: grid; place-items: center; text-align: center; }
.page-404 .lead { margin-left: auto; margin-right: auto; }
.page-404 .cta { justify-content: center; }

/* 어두운 바탕에서는 어두운 판끼리 묻히지 않게 얇은 테 · 스토어 단추는 카드(네이비)와 같은 빛깔이라 한 단계 밝게 */
@media (prefers-color-scheme: dark) {
  .store { background: var(--ink-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
  .store.is-soon { background: transparent; box-shadow: none; }
}

/* ── 좁은 화면 ─────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { height: 320px; }
  .phone { width: 160px; height: 312px; border-radius: 32px; }
  .phone-screen { border-radius: 24px; }
  .phone-mark { width: 68px; height: 68px; padding: 12px; border-radius: 18px; }
  .orb-a { width: 220px; height: 220px; }
  .works { grid-template-columns: 1fr; }
  .work:first-child { flex-direction: column; }
  .work:first-child .work-media-img { flex: none; }
  .pillars { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .bar { height: 60px; gap: 8px; }
  .brand-logo { height: clamp(26px, 8.4vw, 36px); }
  .nav { gap: 0; }
  .nav a { padding: 8px clamp(5px, 1.9vw, 9px); font-size: clamp(12.5px, 3.7vw, 14px); }
  .hero { padding: 56px 0 72px; }
  .br-wide { display: none; }
  .btn { flex: 1 1 auto; }
  .section { padding: 72px 0; }
  .contact-action .btn-large { width: 100%; font-size: 16px; }
  .news li { grid-template-columns: 1fr; gap: 4px; }
  .footer-info { text-align: left; }
  .work-media { height: 180px; }
  .work-media-img { height: auto; }
}
@media (max-width: 360px) {
  .wrap { padding: 0 16px; }
}

/* 문서 쪽(고객 지원 · 앞으로 처리방침 · 이용약관) — 종이 바탕 위 글 한 단 */
.page-doc { min-height: 100vh; display: flex; flex-direction: column; }
.doc { flex: 1; padding: 64px 0 80px; }
.doc-wrap { max-width: 720px; }
.doc h1 { font-size: clamp(30px, 5vw, 40px); line-height: 1.3; margin-bottom: 16px; }
.doc h2 { font-size: 20px; margin: 40px 0 12px; }
.doc-lead { color: var(--muted); font-size: 18px; }
.doc ul { padding-left: 1.2em; color: var(--text); }
.doc li { margin-bottom: 6px; }
.doc-mail { font-size: 20px; font-weight: 700; color: var(--accent-text); }
.doc-note { margin-top: 32px; color: var(--muted); font-size: 15px; }
