/* DPE Apps — 밝은 테마 전용. 2010년대 후반 애플 제품 페이지의 타이포그래피·여백을 참고 */

:root {
  --bg: #FFFFFF;
  --tile: #F5F5F7;
  --text: #1D1D1F;
  --muted: #6E6E73;
  --hair: #D2D2D7;
  --link: #0066CC;
  --button: #0071E3;
  --maple: #D9502A;
  --font: -apple-system, BlinkMacSystemFont, "Pretendard Variable", Pretendard, "Apple SD Gothic Neo",
          "Noto Sans KR", "Malgun Gothic", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.47 var(--font);
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
code { font: 0.94em ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0; }
p { margin: 0 0 12px; }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 692px; margin: 0 auto; }

/* ---------- 머리말 ---------- */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}
header.site .wrap { display: flex; align-items: center; gap: 12px; height: 52px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand svg { width: 24px; height: 24px; flex: none; }
nav.menu { display: flex; align-items: center; gap: 22px; margin-left: auto; }
nav.menu a { color: var(--text); opacity: .8; font-size: 13px; letter-spacing: -0.01em; white-space: nowrap; }
nav.menu a:hover { opacity: 1; text-decoration: none; }
nav.menu a.on { opacity: 1; font-weight: 600; }

/* ---------- 제목 ---------- */
h1 { font-size: 48px; line-height: 1.08; font-weight: 700; letter-spacing: -0.015em; margin: 0; }
h2 { font-size: 32px; line-height: 1.125; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 28px; }
h3 { font-size: 21px; line-height: 1.19; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 8px; }
.sub { font-size: 21px; line-height: 1.38; color: var(--muted); font-weight: 400; margin: 10px 0 0; letter-spacing: -0.01em; }
.meta { font-size: 14px; color: var(--muted); margin: 14px 0 0; letter-spacing: -0.01em; }
.eyebrow { color: var(--maple); font-size: 17px; font-weight: 600; margin-bottom: 8px; }

/* ---------- 구획 ---------- */
section { padding: 72px 0; }
section.alt { background: var(--tile); }
.center { text-align: center; }
.hero { padding: 88px 0 64px; }
.hero .icon { width: 128px; height: 128px; border-radius: 28px; display: block; margin: 0 auto 24px; box-shadow: 0 6px 24px rgba(0, 0, 0, .10); }

/* ---------- 버튼·링크 ---------- */
.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 28px; margin-top: 28px; }
.actions.left { justify-content: flex-start; margin-top: 18px; }
.pill {
  display: inline-block; background: var(--button); color: #fff; font-size: 17px; font-weight: 400;
  padding: 10px 22px; border-radius: 980px; letter-spacing: -0.022em;
}
.pill:hover { background: #0077ED; text-decoration: none; }
.soon { color: var(--muted); font-size: 17px; }
.more::after { content: " ›"; }

/* ---------- 타일 ---------- */
.tiles { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.tiles.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.tile { background: var(--bg); border-radius: 18px; padding: 32px 28px; }
section:not(.alt) .tile { background: var(--tile); }
.tile p { color: var(--muted); font-size: 17px; margin: 0; }
.tile .glyph { width: 30px; height: 30px; color: var(--button); margin-bottom: 18px; display: block; }
.tile .glyph.maple { color: var(--maple); }

/* 앱 목록 */
.applist { display: grid; gap: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.app {
  display: grid; grid-template-columns: 96px 1fr; gap: 24px; align-items: center;
  background: var(--tile); border-radius: 28px; padding: 32px;
}
.app img { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 4px 16px rgba(0, 0, 0, .08); }
.app h3 { font-size: 28px; margin: 0; }
.app .sub { font-size: 17px; margin-top: 4px; }

/* 위젯 목록 */
ul.plain { list-style: none; margin: 0; padding: 0; columns: 3; column-gap: 32px; }
ul.plain li { padding: 12px 0; border-top: 1px solid var(--hair); break-inside: avoid; }

/* 자주 묻는 질문 */
.faq { border-top: 1px solid var(--hair); }
details { border-bottom: 1px solid var(--hair); padding: 18px 0; }
details summary { cursor: pointer; font-size: 19px; font-weight: 600; list-style: none; padding-right: 32px; position: relative; letter-spacing: -0.01em; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; position: absolute; right: 2px; top: -2px; font-size: 24px; font-weight: 300; color: var(--muted); }
details[open] summary::after { content: "−"; }
details p { margin: 10px 0 0; color: var(--muted); }

/* ---------- 방침 문서 ---------- */
.doc { padding: 72px 0 88px; }
.doc h1 { font-size: 40px; margin-bottom: 8px; }
.doc h2 { font-size: 24px; margin: 44px 0 12px; }
.doc h3 { font-size: 19px; margin: 24px 0 8px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .muted { color: var(--muted); font-size: 14px; }
.toc { background: var(--tile); border-radius: 18px; padding: 20px 24px; margin: 28px 0 8px; font-size: 15px; }
.toc ol { margin: 8px 0 0; padding-left: 22px; columns: 2; column-gap: 28px; }
.toc li { margin: 3px 0; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0 18px; }
th, td { border-bottom: 1px solid var(--hair); padding: 10px 12px 10px 0; text-align: left; vertical-align: top; }
th { font-weight: 600; white-space: nowrap; }

/* ---------- 꼬리말 ---------- */
footer.site { background: var(--tile); color: var(--muted); font-size: 12px; line-height: 1.5; letter-spacing: -0.01em; padding: 28px 0 40px; }
footer.site .cols { display: flex; flex-wrap: wrap; gap: 20px 48px; justify-content: space-between; align-items: flex-end; }
footer.site p { margin: 2px 0; }
footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--text); }
footer.site nav a { margin-right: 18px; }
footer.site img.maker { display: block; width: 150px; height: auto; margin: 0 0 12px; }

@media (max-width: 734px) {
  h1 { font-size: 36px; line-height: 1.11; }
  h2 { font-size: 26px; }
  .sub { font-size: 19px; }
  .hero { padding: 56px 0 44px; }
  .hero .icon { width: 104px; height: 104px; border-radius: 23px; }
  section { padding: 52px 0; }
  .app { grid-template-columns: 1fr; padding: 26px; gap: 16px; }
  .app img { width: 80px; height: 80px; border-radius: 18px; }
  .app h3 { font-size: 24px; }
  ul.plain { columns: 2; }
  .toc ol { columns: 1; }
  .doc h1 { font-size: 32px; }
}
.nb { white-space: nowrap; }

/* 기능 소개: 구획마다 제목 한 줄 + 문장 하나 */
section.feature { padding: 96px 0; }
section.feature h2 { font-size: 40px; line-height: 1.1; margin: 0 0 16px; }
section.feature .glyph { width: 44px; height: 44px; color: var(--button); margin: 0 auto 22px; display: block; }
section.feature .glyph.maple { color: var(--maple); }
section.feature .sub { max-width: 600px; margin: 0 auto; }
@media (max-width: 734px) {
  section.feature { padding: 64px 0; }
  section.feature h2 { font-size: 30px; }
}
