/* miyeon.kr — 공용 스타일 (외부 글꼴·스크립트 없음) */
:root {
  --accent: #9D86E0;
  --accent-strong: #6F57BD;
  --accent-soft: #F1ECFC;
  --bg: #FAF8FE;
  --card: #FFFFFF;
  --text: #1F1B2D;
  --muted: #5E5873;
  --line: #E6E0F5;
  --ok: #2E7D5B;
  --ok-soft: #E3F4EC;
  --warn: #9A6200;
  --warn-soft: #FFF3DC;
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent: #B3A0EA;
    --accent-strong: #C7B8F2;
    --accent-soft: #2A2440;
    --bg: #121018;
    --card: #1C1926;
    --text: #ECE9F5;
    --muted: #A9A3BD;
    --line: #322C45;
    --ok: #7FD4AE;
    --ok-soft: #1D3229;
    --warn: #F2C46B;
    --warn-soft: #3A2E17;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: light dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
:lang(en) body, body:lang(en) { word-break: normal; }
a { color: var(--accent-strong); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 760px; margin: 0 auto; padding: 20px 16px 56px; }

/* 위쪽 막대 */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.logo { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; color: var(--text); text-decoration: none; }
.logo span { color: var(--accent-strong); }
.lang { font-size: 0.9rem; color: var(--muted); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; background: var(--card); }
.lang:hover { color: var(--accent-strong); }

.crumbs { font-size: 0.9rem; color: var(--muted); margin: -12px 0 12px; }
.crumbs a { color: var(--muted); }

h1 { font-size: 1.75rem; line-height: 1.3; margin: 0 0 8px; letter-spacing: -0.01em; }
h2 { font-size: 1.15rem; line-height: 1.4; margin: 0 0 8px; color: var(--accent-strong); }
h3 { font-size: 1rem; margin: 14px 0 4px; }
p { margin: 0 0 10px; }
ul, ol { margin: 0 0 10px; padding-left: 1.3em; }
li { margin-bottom: 4px; }
.meta { color: var(--muted); font-size: 0.92rem; }
.lead { font-size: 1.05rem; color: var(--muted); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 18px; margin-bottom: 14px; }
.highlight { background: var(--accent-soft); border-color: transparent; }
.highlight strong { color: var(--accent-strong); }

/* 앱 목록 */
.hero { margin: 8px 0 28px; }
.apps { display: grid; gap: 14px; }
.app { display: flex; gap: 16px; align-items: center; text-decoration: none; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; transition: border-color .15s, transform .15s; }
.app:hover { border-color: var(--accent); transform: translateY(-1px); }
.app img, .app-head img { border-radius: 22%; flex: none; }
.app .body { flex: 1; min-width: 0; }
.app .name { font-weight: 700; font-size: 1.1rem; margin: 0 0 2px; }
.app .desc { color: var(--muted); font-size: 0.95rem; margin: 0; }
.app .arrow { color: var(--muted); font-size: 1.3rem; flex: none; }
.app.placeholder { border-style: dashed; color: var(--muted); }
.app.placeholder .ph-icon { width: 64px; height: 64px; border-radius: 22%; border: 2px dashed var(--line); display: grid; place-items: center; font-size: 1.5rem; flex: none; }

.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.badge { display: inline-block; font-size: 0.78rem; font-weight: 600; border-radius: 999px; padding: 2px 9px; background: var(--accent-soft); color: var(--accent-strong); }
.badge.soon { background: var(--warn-soft); color: var(--warn); }
.badge.live { background: var(--ok-soft); color: var(--ok); }
.badge.plain { background: transparent; border: 1px solid var(--line); color: var(--muted); }

/* 앱 소개 */
.app-head { display: flex; gap: 18px; align-items: center; margin-bottom: 20px; }
.app-head h1 { margin: 0 0 4px; }
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.features li { padding-left: 1.4em; position: relative; margin: 0; }
.features li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-strong); font-weight: 700; }
.links { list-style: none; padding: 0; margin: 0; }
.links li { border-top: 1px solid var(--line); margin: 0; }
.links li:first-child { border-top: none; }
.links a { display: flex; justify-content: space-between; padding: 12px 2px; text-decoration: none; font-weight: 600; }
.links a::after { content: "›"; color: var(--muted); }

/* 문서 */
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 6px 0 10px; }
th, td { text-align: left; vertical-align: top; padding: 8px 6px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; width: 34%; }
nav.toc ol { columns: 2; column-gap: 24px; margin: 8px 0 0; }
details { border-top: 1px solid var(--line); padding: 10px 0; }
details:first-of-type { border-top: none; }
summary { cursor: pointer; font-weight: 600; }
details > div { padding-top: 8px; }
.path { font-weight: 600; color: var(--accent-strong); }
.contact { font-size: 1.15rem; font-weight: 700; }

footer { margin-top: 32px; color: var(--muted); font-size: 0.88rem; text-align: center; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin-bottom: 6px; }
footer a { color: var(--muted); }

@media (max-width: 520px) {
  nav.toc ol { columns: 1; }
  h1 { font-size: 1.5rem; }
  .app-head img { width: 72px; height: 72px; }
}

/* ───────── 2026-11-23 새 화면 (메인·앱 소개) ───────── */
:root { --info: #2F6FB0; --info-soft: #E3EEF9; --holiday: #D9453B; --shadow: 0 1px 2px rgba(40,24,90,.05), 0 8px 24px rgba(40,24,90,.06); }
@media (prefers-color-scheme: dark) { :root { --info: #8DB8E8; --info-soft: #1B2A3B; --holiday: #FF7B72; --shadow: none; } }

.wrap.wide { max-width: 980px; }
.topnav { display: flex; align-items: center; gap: 6px 16px; flex-wrap: wrap; justify-content: flex-end; }
.topnav a:not(.lang) { color: var(--muted); text-decoration: none; font-size: 0.92rem; font-weight: 600; }
.topnav a:not(.lang):hover { color: var(--accent-strong); }

/* 메인 첫 화면 */
.home-hero { padding: 36px 0 40px; }
.eyebrow { display: inline-block; font-size: 0.85rem; font-weight: 700; color: var(--accent-strong); background: var(--accent-soft); border-radius: 999px; padding: 3px 12px; margin-bottom: 14px; }
.home-hero h1 { font-size: clamp(2rem, 6vw, 3rem); line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 14px; }
.home-hero h1 em { font-style: normal; color: var(--accent-strong); }
.home-hero .lead { max-width: 34em; font-size: 1.08rem; }
.promises { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.promises li { margin: 0; font-size: 0.9rem; font-weight: 600; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px 5px 12px; }
.promises li::before { content: "✓ "; color: var(--accent-strong); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin: 8px 0 14px; }
.section-head h2 { color: var(--text); font-size: 1.3rem; margin: 0; }
.legend { display: flex; gap: 6px; flex-wrap: wrap; }

.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.app-card { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 20px; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
a.app-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.app-card .top { display: flex; gap: 14px; align-items: center; }
.app-card .top img { border-radius: 22%; flex: none; }
.app-card .name { font-weight: 800; font-size: 1.2rem; margin: 0; letter-spacing: -0.01em; }
.app-card .platform { color: var(--muted); font-size: 0.85rem; margin: 0; }
.app-card .desc { color: var(--muted); margin: 0; flex: 1; }
.app-card .more { font-weight: 700; color: var(--accent-strong); font-size: 0.92rem; }
.app-card.placeholder { border-style: dashed; box-shadow: none; background: transparent; }
.ph-icon { width: 64px; height: 64px; border-radius: 22%; border: 2px dashed var(--line); display: grid; place-items: center; font-size: 1.6rem; color: var(--muted); flex: none; }
.badge.dev { background: var(--info-soft); color: var(--info); }

.about { margin-top: 44px; }
.about .card { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.about h3 { margin: 0 0 4px; color: var(--accent-strong); }
.about p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* 앱 소개 첫 화면 */
.app-hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: center; padding: 12px 0 36px; }
.app-hero .icon { border-radius: 22%; box-shadow: var(--shadow); margin-bottom: 14px; }
.app-hero h1 { font-size: clamp(2rem, 5.5vw, 2.7rem); letter-spacing: -0.02em; margin: 6px 0 6px; }
.app-hero .tagline { font-size: 1.15rem; font-weight: 600; margin-bottom: 10px; }
.app-hero .lead { margin-bottom: 18px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.95rem; text-decoration: none; border-radius: 999px; padding: 10px 18px; border: 1px solid transparent; }
.btn.primary { background: var(--text); color: var(--bg); }
.btn.ghost { background: var(--card); color: var(--accent-strong); border-color: var(--line); }
.btn.waiting { background: var(--card); color: var(--muted); border: 1px dashed var(--line); cursor: default; }

/* 휴대폰 모양 미리보기 (그림 파일 없이 CSS로) */
.phone { justify-self: center; width: min(300px, 100%); background: var(--card); border: 8px solid #1F1B2D; border-radius: 40px; padding: 18px 12px 16px; box-shadow: 0 20px 50px rgba(60,40,120,.18); }
@media (prefers-color-scheme: dark) { .phone { border-color: #3A344F; } }
.phone .cal-title { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px 8px; }
.phone .cal-title strong { font-size: 1.05rem; }
.phone .cal-title span { font-size: 0.72rem; color: var(--muted); }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; font-size: 0.7rem; line-height: 1.25; }
.cal .wd { text-align: center; color: var(--muted); font-weight: 600; padding-bottom: 4px; }
.cal .d { min-height: 44px; padding: 3px 2px; border-radius: 8px; text-align: center; overflow: hidden; }
.cal .d b { display: block; font-weight: 600; font-size: 0.78rem; }
.cal .d i { display: block; font-style: normal; color: var(--muted); font-size: 0.6rem; }
.cal .d.sun b, .cal .d.hol b { color: var(--holiday); }
.cal .d.hol i { color: var(--holiday); }
.cal .d.today { background: var(--accent-soft); }
.cal .d.today b { color: var(--accent-strong); }
.cal .ev { display: block; font-style: normal; min-height: 1.3em; margin-top: 2px; font-size: 0.55rem; border-radius: 4px; padding: 0 2px; white-space: nowrap; overflow: hidden; background: var(--accent); color: #fff; }
.cal .ev.mint { background: #4FB59A; }
.cal .ev.peach { background: #F08A6C; }
.phone .today-list { margin-top: 10px; border-top: 1px solid var(--line); padding: 8px 4px 0; font-size: 0.78rem; }
.phone .today-list p { margin: 0 0 4px; display: flex; gap: 6px; align-items: center; }
.phone .today-list .chk { width: 12px; height: 12px; border-radius: 4px; border: 1.5px solid var(--accent); flex: none; }
.phone .today-list .chk.on { background: var(--accent); }
.phone .today-list .done { color: var(--muted); text-decoration: line-through; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-bottom: 14px; }
.feature-grid .card { margin: 0; }
.feature-grid h3 { margin: 0 0 4px; font-size: 1.02rem; }
.feature-grid p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-strong); font-weight: 800; font-size: 0.85rem; margin-bottom: 8px; }

.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 12px 0; }
.plan { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--card); }
.plan strong { display: block; }
.plan span { color: var(--muted); font-size: 0.88rem; }

.doc-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.doc-tiles a { display: block; text-decoration: none; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; transition: border-color .15s; }
.doc-tiles a:hover { border-color: var(--accent); }
.doc-tiles strong { display: block; color: var(--accent-strong); }
.doc-tiles span { color: var(--muted); font-size: 0.9rem; }
.block-title { font-size: 1.3rem; color: var(--text); margin: 36px 0 14px; }

@media (max-width: 720px) {
  .app-hero { grid-template-columns: 1fr; gap: 28px; }
  .home-hero { padding: 20px 0 28px; }
  .topnav .hide-sm { display: none; }
}

/* 2026-11-24 실제 앱 스크린숏 */
.phone.shot { padding: 0; overflow: hidden; border-radius: 44px; background: #000; }
.phone.shot img { display: block; width: 100%; height: auto; border-radius: 34px; }
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 8px; }
.shots figure { margin: 0; text-align: center; }
.shots img { display: block; width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.shots figcaption { margin-top: 8px; font-weight: 700; font-size: 0.92rem; color: var(--muted); }
@media (max-width: 720px) { .shots { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
