/* LAVIO Studio — 공통 스타일. 외부 폰트·스크립트 없음
   방향(2026-11-03 5차): 흰 바탕 + 네이비 글자·버튼, 차가운 회색 면. 히어로는 글자만. 장식은 로고 네 색과 앱 카드 꽃잎만. 아이 느낌은 앱마다 하나씩 정한 단순 도형
   (건반·동그라미·블록·무지개·네모·세모)과 일곱 색에 둔다. 피아노는 여러 앱 중 하나로만 다룬다. */
:root {
  --paper: #ffffff;
  --tint: #eef2f6;
  --surface: #ffffff;
  --ink: #1b2a5b;
  --muted: #526078;
  --line: #dfe5ec;
  --link: #2457d6;

  /* 로고 네 색 (2026-11-04 최종 로고 규정과 같음). 사이트 장식 색은 이 넷만 쓴다 */
  --coral: #ff6f61;
  --orange: #f59e0b;
  --teal: #0fa39a;
  --violet: #6b3dff;

  /* 도레미 일곱 색: 피아노 앱 전용. 사이트에서는 쓰지 않음(기록용) */
  --do: #f2554b;
  --re: #ff9636;
  --mi: #ffcb3d;
  --fa: #35b98a;
  --sol: #3e95f2;
  --la: #5b63e8;
  --si: #a372e8;

  --key-white: #ffffff;
  --key-black: #1b2a5b;

  --max: 1160px;
  --r-lg: 20px;
  --r-md: 12px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1522;
    --tint: #151d2c;
    --surface: #1a2333;
    --ink: #eef2f8;
    --muted: #aab4c6;
    --line: #2a3548;
    --link: #8fb0ff;
    --violet: #9b7bff; /* 로고 규정: 어두운 바탕용 바이올렛 */
    --key-white: #243045;
    --key-black: #080c14;
    color-scheme: dark;
  }
}

/* 글꼴: Pretendard Variable(SIL OFL 1.1) 자체 호스팅. KS X 1001 한글 2,350자 + 영문·기호 + 사이트 글자로 줄인 파일.
   새 문구에 드문 한글이 들어가면 그 글자만 기기 글꼴로 보인다 → tools/check.py가 경고 */
@font-face {
  font-family: "Pretendard Variable";
  src: url("../fonts/PretendardVariable.subset.woff2") format("woff2-variations"), url("../fonts/PretendardVariable.subset.woff2") format("woff2");
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
}

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

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

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

/* 언어 전환: data-l="ko|en" 요소 중 현재 언어만 보인다 */
html[data-lang="ko"] [data-l="en"],
html[data-lang="en"] [data-l="ko"] { display: none !important; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 16px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
@media (min-width: 720px) { .wrap { padding: 0 40px; } }

h1, h2, h3 { color: var(--ink); }
h1 { font-size: clamp(38px, 6.4vw, 68px); line-height: 1.14; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 24px; }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.2; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 12px; }
h3 { font-size: 19px; line-height: 1.4; letter-spacing: -0.015em; font-weight: 700; margin: 0 0 6px; }

/* 머리말 */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 19px; letter-spacing: 0.06em; }
.brand small { font-weight: 500; color: var(--muted); font-size: 14px; letter-spacing: 0; margin-left: 6px; padding-left: 10px; border-left: 1px solid var(--line); line-height: 1.2; }
/* 로고: 최종본(2026-11-04, studio/brand/logo-final) SVG 원본 그대로. 헤더 심볼은 30px라 규정상 '가운데 없음(sm)' 버전.
   다크 모드는 <picture>로 symbol-dark-sm·wordmark-white로 바뀐다 */
.logo-symbol, .logo-word { display: block; flex: none; }
.logo-symbol img { width: 30px; height: 30px; }
.logo-word img { width: auto; height: 18px; }
@media (max-width: 400px) { .logo-symbol img { width: 26px; height: 26px; } .logo-word img { height: 16px; } }
.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); border-radius: 0; }
.lang-btn {
  border: 1px solid var(--line); background: transparent; color: var(--ink);
  font: inherit; font-size: 13px; font-weight: 700; letter-spacing: 0.02em; padding: 6px 12px; border-radius: 999px; cursor: pointer; min-height: 36px; margin-left: 6px;
}
.lang-btn:hover { border-color: var(--ink); }
@media (max-width: 560px) {
  .brand small { display: none; }
  .nav a { padding: 8px 7px; font-size: 14px; }
}
@media (max-width: 400px) {
  .site-header .wrap { gap: 6px; }
  .brand { font-size: 17px; gap: 8px; }
  .nav { gap: 0; }
  .nav a { padding: 8px 5px; font-size: 13.5px; }
  .lang-btn { padding: 6px 9px; margin-left: 2px; }
}

/* 히어로 */
.hero { padding: 64px 0 56px; }
.hero .wrap { display: block; }
.hero-text { max-width: 760px; }
@media (min-width: 900px) { .hero { padding: 128px 0 120px; } .hero h1 { font-size: clamp(56px, 6.6vw, 84px); } }
.lead { font-size: clamp(17px, 1.9vw, 19px); color: var(--muted); margin: 0 0 32px; max-width: 30em; }

/* 꽃잎 도형: 앱 카드 표지용(바람개비에서 그 앱의 꽃잎만 색) */
.petal { stroke: none; }
.p-coral { fill: var(--coral); }
.p-orange { fill: var(--orange); }
.p-teal { fill: var(--teal); }
.p-violet { fill: var(--violet); }
/* 앱 카드 표지: 바람개비 중 그 앱의 꽃잎만 색, 나머지는 흐리게 */
.p-dim { fill: color-mix(in srgb, var(--ink) 10%, var(--surface)); }
.btns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px;
  padding: 10px 24px; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: 16px;
  background: var(--ink); color: var(--paper); border: 1.5px solid var(--ink);
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); }
.btn[aria-disabled="true"] { background: transparent; color: var(--muted); border-color: var(--line); border-style: dashed; cursor: default; transform: none; }

/* 섹션 */
section { padding: 72px 0; }
@media (min-width: 900px) { section { padding: 104px 0; } }
.section-soft { background: var(--tint); }
.section-lead { color: var(--muted); margin: 0 0 48px; max-width: 36em; font-size: 18px; }

/* 앱 목록: 모든 앱을 같은 크기 카드로 */
.apps { display: grid; gap: 16px; }
@media (min-width: 720px) { .apps { grid-template-columns: 1fr 1fr; gap: 20px; } }
.app { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.app-cover { aspect-ratio: 16 / 9; display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.app-cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-petal { width: 34%; height: auto; overflow: visible; }
.c-piano { background: var(--tint); }
.c-draw { background: color-mix(in srgb, var(--coral) 10%, var(--surface)); }
.c-abc { background: color-mix(in srgb, var(--orange) 12%, var(--surface)); }
.c-code { background: color-mix(in srgb, var(--teal) 10%, var(--surface)); }
.app-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.app-body h3 { font-size: 20px; letter-spacing: -0.02em; margin: 4px 0 2px; }
.app-body p { margin: 0; color: var(--muted); font-size: 15.5px; }
.status { align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--muted); padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); }
.status.live { color: var(--ink); border-color: var(--ink); }
.app-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: auto; padding-top: 18px; }
.btn.small { min-height: 42px; padding: 8px 18px; font-size: 15px; }
.more { font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* 피아노 자세히 */
.spotlight .app-head { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.spotlight .app-head h2 { margin: 0; }
.spotlight .app-head p { margin: 0; color: var(--muted); }
.app-icon { width: 72px; height: 72px; border-radius: 18px; flex: none; border: 1px solid var(--line); background: var(--surface); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 40px; padding: 0; list-style: none; }
.tags li { font-size: 13.5px; font-weight: 600; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: var(--surface); }
.spot-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .spot-grid { grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; } }
/* 갤러리가 없을 때(새 스크린샷 받기 전): 기능 목록을 두 줄 두 칸으로 */
@media (min-width: 900px) { .spot-grid.no-gallery { grid-template-columns: 1fr; } .no-gallery .features { display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; } }
.features { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.features li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.features .dot { width: 10px; height: 10px; border-radius: 50%; margin: 9px 0 0 4px; }
.dot.pink { background: var(--coral); } .dot.blue { background: var(--orange); } .dot.green { background: var(--teal); } .dot.purple { background: var(--violet); }
.features b { display: block; font-size: 17px; letter-spacing: -0.01em; }
.features span.d { color: var(--muted); font-size: 15.5px; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; align-content: start; }
.gallery figure { margin: 0; }
.gallery img { border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); }
.gallery figcaption { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.gallery .wide { grid-column: 1 / -1; }
.gallery.shots { margin-top: 48px; }
@media (max-width: 519px) { .gallery.shots { grid-template-columns: 1fr; } }
@media (min-width: 900px) { .gallery.shots { grid-template-columns: repeat(3, 1fr); gap: 24px 20px; margin-top: 64px; } }

/* 만드는 사람 */
.story p { max-width: 40em; }
.story p { font-size: clamp(19px, 2.2vw, 23px); line-height: 1.75; letter-spacing: -0.01em; margin: 0; }

/* 약속 */
.promises { display: grid; gap: 0; border-top: 1px solid var(--ink); }
@media (min-width: 720px) { .promises { grid-template-columns: repeat(2, 1fr); column-gap: 40px; } }
@media (min-width: 1000px) { .promises { grid-template-columns: repeat(4, 1fr); column-gap: 32px; } }
.promise { padding: 28px 0 24px; border-bottom: 1px solid var(--line); }
@media (min-width: 1000px) { .promise { border-bottom: 0; } }
.promise .ic { width: 28px; height: 6px; border-radius: 3px; margin-bottom: 20px; }
.promise:nth-child(1) .ic { background: var(--coral); }
.promise:nth-child(2) .ic { background: var(--orange); }
.promise:nth-child(3) .ic { background: var(--teal); }
.promise:nth-child(4) .ic { background: var(--violet); }
.promise h3 { font-size: 18px; }
.promise p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* 문서(처리방침·약관·지원) */
.doc { padding: 56px 0 88px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(32px, 5vw, 48px); margin: 0 0 16px; }
.doc h2 { font-size: 24px; margin: 48px 0 12px; }
.doc h3 { font-size: 17px; margin: 32px 0 6px; }
.doc p, .doc li { color: var(--ink); }
.doc > .wrap > p { color: var(--muted); font-size: 18px; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 4px; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 24px; color: var(--muted); font-size: 14.5px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.doc .toc, .toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 8px; padding: 0; list-style: none; }
.toc a { display: inline-block; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14.5px; }
.toc a:hover { border-color: var(--ink); }
.app-policy { margin-top: 48px; padding-top: 8px; border-top: 2px solid var(--ink); }
.app-policy h2:first-child, .app-policy > div > h2:first-child { margin-top: 24px; }
.todo { background: #fff1b8; color: #5b4300; padding: 0 6px; border-radius: 4px; font-weight: 700; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .todo { background: #4a3b00; color: #ffe08a; } }

/* 자주 묻는 질문: 칸 없이 줄로 구분 */
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 700; padding: 20px 36px 20px 0; list-style: none; position: relative; font-size: 17px; }
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -6px;
  background: linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 12px no-repeat;
  transition: transform .2s ease;
}
details[open] summary::after { transform: rotate(45deg); }
summary:hover { color: var(--link); }
details > :not(summary) { margin: 0 0 12px; color: var(--muted); }
details > :last-child { margin-bottom: 22px; }

.contact-card {
  margin-top: 64px; padding: 36px 32px; border-radius: var(--r-lg);
  background: var(--ink); color: var(--paper);
  position: relative; overflow: hidden;
}
.contact-card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: linear-gradient(to right, var(--coral) 0 25%, var(--orange) 0 50%, var(--teal) 0 75%, var(--violet) 0);
}
.contact-card h2 { margin: 0 0 8px; font-size: 24px; color: var(--paper); }
.contact-card p { margin: 0 0 20px; color: color-mix(in srgb, var(--paper) 72%, transparent); max-width: 34em; }
.contact-card .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.contact-card .btn[aria-disabled="true"] { background: transparent; color: var(--paper); }

/* 꼬리말 */
.site-footer { background: var(--tint); padding: 40px 0 48px; color: var(--muted); font-size: 13.5px; line-height: 1.8; }
.site-footer .wrap { display: grid; gap: 14px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 14.5px; font-weight: 600; }
.site-footer nav a { color: var(--ink); text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer a { color: var(--muted); }
.site-footer p { margin: 0; }
.site-footer .biz { display: flex; flex-wrap: wrap; gap: 0 18px; }

/* 2026-11-22 회사 홈페이지형: 앱 1개 상세 + 회사 소개 */
.spot-actions { margin: -16px 0 40px; padding-top: 0; }
.story h2 { margin-bottom: 20px; }
.story p + p { margin-top: 16px; }
.story .story-contact { font-size: 17px; color: var(--muted); margin-top: 28px; }
