/* Imagine Factory — shared site styles.
   2026-09-12 2차 개편: 사용자가 준 디자인 시안을 기준으로 전면 재작업했다.
   - 좁은 700px 문서형 칼럼 → 와이드 레이아웃 + 왼쪽 정렬
   - 공장·전구 일러스트를 홈 히어로 안의 작은 그림이 아니라 **모든 페이지 공통 배경**으로
   - 세리프 제목 폰트 제거(시안은 전부 고딕)
   - 다크 모드 제거(시안이 라이트 전용이고 사용자가 없애기로 결정)
   미세 라벨(eyebrow/상태칩/표 헤더)만 기존 고정폭 폰트를 그대로 둔다 — 시안에 없는
   우리 쪽 컴포넌트고, 이미 이 사이트의 표기 관례로 자리잡아 있어서 유지. */

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-raised: #fbfdfc;
  --text: #2f3a35;
  --text-muted: #6b7772;
  --text-faint: #9aa5a0;
  --border: #e4eae7;
  --border-strong: #cfd8d4;

  /* 브랜드 틸 — 로고 원, 현재 메뉴 밑줄, 히어로 구분선처럼 "그래픽"에 쓰는 밝은 톤.
     본문 링크에는 --accent-strong(어두운 톤)을 쓴다. 밝은 톤은 흰 배경에서 대비가
     낮아 긴 글에는 안 맞기 때문. */
  /* 로고 PNG(docs/상상연구소_로고/상상공장_no글자_청록.png)에서 그대로 뽑은 값 —
     로고와 사이트 색이 어긋나지 않게 이 값을 기준으로 쓴다. */
  --brand: #05b2a6;
  --brand-deep: #07897f;
  --accent: #04796b;
  --accent-strong: #045f54;
  --accent-soft: #e6f5f1;
  --accent-soft-border: #cfe8e1;

  /* 노랑 — 시안의 전구와 헤드라인 강조 단어 색. */
  --warm: #f5c842;
  --warm-soft: #fbe28f;
  --warm-glow: #fdf3cf;

  --code-bg: #f0f5f3;
  --shadow: rgba(23, 33, 29, 0.06);
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans KR", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: inherit; font-weight: 700; text-wrap: balance; color: var(--text); }
code, .mono { font-family: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace; }

a { color: var(--accent-strong); text-decoration: underline; text-decoration-color: var(--accent-soft-border); text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 3px; }

/* ---------- 공통 배경 일러스트 ----------
   화면에 고정해서 모든 페이지 뒤에 깔린다. 오른쪽 가장자리 밖으로 원이 걸쳐 나가고,
   아래쪽에는 옅은 곡선이 깔리는 시안 구성 그대로. 클릭을 먹지 않게 pointer-events를 끈다. */
.site-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
/* 시안처럼 원이 화면 세로 가운데에 오고 오른쪽 가장자리 밖으로 걸쳐 나간다.
   (한때 아래 기준으로 붙였더니 시안보다 한참 내려가 보여서 되돌림.) 크기는 전구와
   빛줄기가 상단 메뉴에 닿지 않는 선에서 맞췄다. */
.site-bg-art { position: absolute; top: 50%; right: -8vw; transform: translateY(-50%); width: min(880px, 58vw); }
.site-bg-art svg { display: block; width: 100%; height: auto; }
/* 홈은 일러스트가 주인공이지만, 글이 긴 페이지(개인정보처리방침 등)는 본문이 일러스트
   위로 지나가서 읽기 불편해진다 — 배경으로만 남게 농도를 낮춘다. */
body.page .site-bg-art { opacity: 0.4; }
body.page .site-bg-wave { opacity: 0.7; }
.site-bg-wave { position: absolute; left: 0; right: 0; bottom: 0; }
.site-bg-wave svg { display: block; width: 100%; height: clamp(110px, 22vh, 260px); }

/* 배경 레이어를 제외한 모든 최상위 요소를 그 위로 올린다. */
body > .topbar, body > .hero, body > main, body > footer, body > .lang-block { position: relative; z-index: 1; }

/* ---------- 레이아웃 셸 ---------- */
.topbar-inner, .hero, main, footer {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(20px, 5vw, 96px);
  padding-right: clamp(20px, 5vw, 96px);
}

/* ---------- 상단 바 ----------
   시안대로 테두리·배경 없이 페이지 위에 그대로 얹는다(예전의 sticky + 블러 + 알약
   버튼 스타일은 전부 걷어냄). */
.topbar { padding: 28px 0 6px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px 28px; flex-wrap: wrap; }

.brand { display: flex; align-items: center; gap: 15px; text-decoration: none; }
.brand-mark { width: 56px; height: 56px; flex-shrink: 0; display: block; }
.brand-mark svg { display: block; width: 100%; height: 100%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-size: 21px; font-weight: 700; color: var(--text); }
.brand-sub { font-size: 12px; font-weight: 500; letter-spacing: 0.2em; color: var(--text-faint); }

.nav-wrap { display: flex; align-items: center; gap: 10px 24px; flex-wrap: wrap; }
.nav-links { display: flex; gap: 34px; }
.nav-links a { position: relative; text-decoration: none; font-size: 15.5px; font-weight: 500; color: var(--text-muted); padding-bottom: 9px; }
.nav-links a:hover { color: var(--brand-deep); }
.nav-links a.current { color: var(--brand); pointer-events: none; }
.nav-links a.current::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 2px; background: var(--brand); }

.lang-links { display: flex; gap: 14px; padding-left: 22px; border-left: 1px solid var(--border); }
.lang-links a { text-decoration: none; font-size: 13px; font-weight: 500; color: var(--text-faint); }
.lang-links a:hover { color: var(--brand-deep); }
.lang-links a.current { color: var(--brand); }

/* ---------- 히어로 ----------
   .hero는 모든 페이지가 쓰는 제목 영역이고, 홈만 시안의 전체 화면 구성을 위해
   .home-hero를 덧붙인다 — 안 나누면 products/support 같은 페이지의 짧은 제목까지
   화면 한 장 높이로 늘어난다. */
.hero { padding-top: 52px; padding-bottom: 4px; }
.hero h1 { font-size: clamp(28px, 3.4vw, 42px); margin: 0 0 10px; letter-spacing: -0.015em; }
.home-hero { padding-top: 30px; padding-bottom: 36px; }
.hero-copy { max-width: 640px; }
.hero-title { font-size: clamp(27px, 4.5vw, 58px); line-height: 1.36; letter-spacing: -0.02em; margin: 0 0 34px; }
.accent-word { color: var(--warm); }
.hero .lede { font-size: 17.5px; color: var(--text-muted); line-height: 1.8; margin: 0; max-width: 54ch; }

/* ---------- 본문 ---------- */
main { padding-top: 18px; padding-bottom: 96px; }
main.doc-main { padding-top: 54px; }
/* 셸은 넓지만 글줄은 읽기 좋은 길이로 묶고, 시안처럼 왼쪽 정렬을 유지한다. */
main section, main .doc-header, main > p { max-width: 760px; }
section + section { margin-top: 52px; padding-top: 44px; border-top: 1px solid var(--border); }
h2 { font-size: 21px; margin: 0 0 20px; letter-spacing: -0.005em; }
section.lang-block > h2:first-of-type { margin-top: 0; }
h3 { font-size: 16px; margin: 0 0 6px; }
p { margin: 0 0 16px; color: var(--text); }
p:last-child { margin-bottom: 0; }
ul { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 10px; }
li:last-child { margin-bottom: 0; }
strong { font-weight: 600; }

.eyebrow { font-family: "IBM Plex Mono", monospace; font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.status-chip { display: inline-flex; align-items: center; gap: 6px; font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-faint); border: 1px solid var(--border-strong); border-radius: 999px; padding: 3px 10px; }
.status-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--text-faint); }

.doc-header { margin-bottom: 40px; }
.doc-header h1 { font-size: clamp(27px, 3.2vw, 38px); margin: 0 0 8px; letter-spacing: -0.015em; }
.doc-header .updated { color: var(--text-muted); font-size: 14.5px; margin: 0; }

/* ---------- 카드 ---------- */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px 22px; box-shadow: 0 1px 2px var(--shadow); }
.feature-num { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--accent-strong); margin: 0 0 8px; }
.feature-card p { font-size: 14.5px; color: var(--text-muted); margin: 0; }

/* 카드는 [앱 아이콘 | 본문] 두 칸이고, 본문 안에서만 세로로 쌓인다. */
.product-card { display: flex; gap: 20px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px 26px; box-shadow: 0 1px 2px var(--shadow); }
.product-card-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.product-icon { display: block; width: 64px; height: 64px; border-radius: 14px; flex-shrink: 0; }
.product-icon-lg { width: 88px; height: 88px; border-radius: 20px; }
.product-title { display: flex; align-items: center; gap: 18px; margin: 0 0 10px; }
.product-title h1 { margin: 0; }
.product-card + .product-card { margin-top: 14px; }
.product-card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.product-card h3 { font-size: 20px; margin: 0; }
.product-card p { color: var(--text-muted); margin: 0; }

.in-player ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.in-player li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.in-player li::before { content: ""; width: 6px; height: 6px; margin-top: 11px; border-radius: 50%; background: var(--brand); flex-shrink: 0; }

.cta-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 8px; font-size: 14.5px; font-weight: 500; text-decoration: none; border: 1px solid var(--border-strong); color: var(--text); background: var(--surface); }
.btn:hover { border-color: var(--brand); color: var(--brand-deep); background: var(--accent-soft); }

/* ---------- 문의 ---------- */
dl.contact-list { display: flex; flex-direction: column; gap: 10px; margin: 0 0 20px; }
.contact-line { display: flex; align-items: baseline; gap: 10px; font-size: 15px; }
.contact-line dt { font-family: "IBM Plex Mono", monospace; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-faint); width: 88px; flex-shrink: 0; }
.contact-line dd { margin: 0; }

/* ---------- 개인정보처리방침 문서 ---------- */
.callout { background: var(--accent-soft); border: 1px solid var(--accent-soft-border); border-left: 3px solid var(--brand); border-radius: 10px; padding: 18px 20px; margin: 0 0 28px; font-size: 15px; }
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--accent-strong); }
.table-scroll { overflow-x: auto; margin: 0 0 20px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 480px; }
th, td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { font-family: "IBM Plex Mono", monospace; font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); background: var(--surface-raised); font-weight: 500; }
tbody tr:last-child td { border-bottom: none; }
td.perm { font-family: "IBM Plex Mono", monospace; font-size: 13px; color: var(--accent-strong); white-space: nowrap; }
td.why { color: var(--text-muted); }
.change-note { background: var(--surface-raised); border: 1px solid var(--border); border-radius: 10px; padding: 16px 20px; font-size: 14px; color: var(--text-muted); margin-top: 40px; max-width: 760px; }
.change-note strong { color: var(--text); }

footer { padding-top: 0; padding-bottom: 56px; color: var(--text-faint); font-size: 13px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
footer a { color: var(--text-muted); }

/* ---------- 반응형 ----------
   좁은 화면에서는 배경 일러스트가 본문 뒤로 크게 깔려 글을 방해하므로, 오른쪽 위로
   물리고 크기·농도를 줄인다. */
@media (max-width: 900px) {
  .site-bg-art { top: 96px; right: -22vw; transform: none; width: min(560px, 86vw); opacity: 0.45; }
  .hero { padding-top: 56px; padding-bottom: 64px; }
  .home-hero { padding-top: 40px; padding-bottom: 28px; }
}

@media (max-width: 620px) {
  body { font-size: 15.5px; }
  .topbar { padding-top: 20px; }
  .brand-mark { width: 46px; height: 46px; }
  .brand-name { font-size: 18px; }
  .nav-links { gap: 22px; }
  .nav-links a { font-size: 14.5px; }
  .hero-title { line-height: 1.4; margin-bottom: 26px; }
  .feature-grid { grid-template-columns: 1fr; }
  main { padding-bottom: 72px; }
}

/* ---------- Google Play 배지 ---------- */
/* 공식 PNG에는 가이드라인이 요구하는 여백(배지 높이의 1/4)이 이미 들어 있다.
   그래서 margin을 따로 주지 않고 height만 지정한다 — 색·비율·요소 배치를
   건드리면 상표 가이드라인 위반이다. 60px이면 실제 배지 높이가 40px로
   최소 28px 규정을 넘긴다. */
.play-badge { display: inline-flex; align-items: center; text-decoration: none; }
.play-badge img { height: 60px; width: auto; display: block; }
