/* 레이아웃: 애플 스타일. 넓은 여백, 중앙 정렬 980px 컨테이너, 큰 제목, 라운드 카드.
   색: 흰 바탕(#fbfbfd) + 연회색 섹션(#f5f5f7) + 먹색 글자(#1d1d1f) + 파란 포인트(#0071e3) 하나만. */
:root {
  --bg: #fbfbfd;
  --surface: #f5f5f7;
  --card: #ffffff;
  --fg: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --accent: #0071e3;
  --accent-fg: #ffffff;
  --nav: rgba(251, 251, 253, 0.8);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --surface: #161617; --card: #1d1d1f; --fg: #f5f5f7; --muted: #a1a1a6;
    --line: #424245; --accent: #2997ff; --accent-fg: #000000; --nav: rgba(0, 0, 0, 0.8);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.5); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --surface: #161617; --card: #1d1d1f; --fg: #f5f5f7; --muted: #a1a1a6;
  --line: #424245; --accent: #2997ff; --accent-fg: #000000; --nav: rgba(0, 0, 0, 0.8);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.5); color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: anywhere;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 700; line-height: 1.08; }
h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 700; line-height: 1.12; }
h3 { font-size: 22px; font-weight: 600; line-height: 1.25; }
p { margin: 0; }
.wrap {
  max-width: 980px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.muted { color: var(--muted); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* 내비게이션 */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--nav); }
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9;
  background: var(--nav); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 48px; gap: 16px; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; color: var(--fg); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; font-size: 13px; }
.nav ul a { color: var(--fg); opacity: 0.85; }
.nav ul a:hover { opacity: 1; text-decoration: none; }
@media (max-width: 640px) { .nav ul li:nth-child(n+4) { display: none; } }

/* 히어로 */
.hero { text-align: center; padding-block: 88px 64px; }
.hero p.lead { font-size: clamp(19px, 2.4vw, 24px); color: var(--muted); max-width: 640px; margin: 20px auto 0; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 12px 22px; border-radius: 980px; font-weight: 500; font-size: 16px; border: 1px solid transparent; }
.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { text-decoration: none; filter: brightness(1.08); }
.btn-ghost { color: var(--accent); border-color: var(--accent); }
.btn-ghost:hover { background: var(--accent); color: var(--accent-fg); text-decoration: none; }

/* 섹션 */
.section { padding-block: 72px; }
.section.alt { background: var(--surface); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }
.section-head p { color: var(--muted); margin-top: 8px; max-width: 560px; }
.section-head a.more { font-size: 15px; white-space: nowrap; }

/* 카테고리 칩 */
.chips { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 40px; }
.chip { padding: 8px 16px; border-radius: 980px; background: var(--surface); color: var(--fg); font-size: 14px; font-weight: 500; border: 1px solid transparent; }
.chip:hover { border-color: var(--line); text-decoration: none; }

/* 툴 카드 그리드 */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card {
  background: var(--card); border-radius: 20px; padding: 28px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 12px; min-width: 0; color: var(--fg);
  transition: transform .25s ease, box-shadow .25s ease;
}
a.card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 10px 32px rgba(0,0,0,.10); }
.card .top { display: flex; align-items: center; gap: 12px; }
.logo {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 18px; color: #fff; flex-shrink: 0;
}
.card h3 { font-size: 20px; }
.card .cat { font-size: 12px; color: var(--muted); font-weight: 500; }
.card p { color: var(--muted); font-size: 15px; flex: 1; }
.card .meta { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--muted); }
.badge { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 980px; background: var(--surface); color: var(--fg); letter-spacing: 0.02em; }
.badge.hot { background: var(--accent); color: var(--accent-fg); }
.card .price { font-variant-numeric: tabular-nums; }

/* 피처드 (큰 카드) */
.feature {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
  background: var(--card); border-radius: 28px; padding: 48px; box-shadow: var(--shadow);
}
.feature > div { min-width: 0; }
.feature h2 { font-size: clamp(28px, 3.6vw, 40px); margin-top: 8px; }
.feature p { color: var(--muted); margin-top: 16px; }
.feature ul { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 15px; }
.feature li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 10px; }
.feature .visual { background: var(--surface); border-radius: 20px; aspect-ratio: 4/3; max-width: 100%; display: grid; place-items: center; padding: 24px; }
.wave { display: flex; align-items: center; gap: 5px; height: 80px; }
.wave span { width: 6px; border-radius: 3px; background: var(--accent); opacity: .85; }
@media (max-width: 760px) { .feature { grid-template-columns: 1fr; padding: 28px; } }

/* 글 목록 */
.posts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.post { display: grid; grid-template-columns: 110px 1fr auto; gap: 20px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); color: var(--fg); }
.post:hover { text-decoration: none; }
.post:hover h3 { color: var(--accent); }
.post > * { min-width: 0; }
.post .date { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.post h3 { font-size: 19px; font-weight: 600; }
.post p { font-size: 14px; color: var(--muted); margin-top: 4px; }
.post .tag { font-size: 12px; color: var(--muted); white-space: nowrap; }
@media (max-width: 640px) { .post { grid-template-columns: 1fr; gap: 6px; } .post .tag { display: none; } }

/* 비교표 */
.table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; color: var(--muted); font-weight: 600; background: var(--surface); }
tr:last-child td { border-bottom: 0; }
td.num { font-variant-numeric: tabular-nums; }
td strong { font-weight: 600; }

/* 뉴스레터 */
.newsletter { text-align: center; }
.newsletter form { display: flex; gap: 10px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.newsletter input { padding: 12px 18px; border-radius: 980px; border: 1px solid var(--line); background: var(--card); color: var(--fg); font-size: 16px; min-width: 0; width: min(100%, 320px); }
.newsletter .note { font-size: 13px; color: var(--muted); margin-top: 14px; }

/* 푸터 */
footer { background: var(--surface); padding-block: 40px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }
footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; margin-bottom: 28px; }
footer h4 { font-size: 12px; font-weight: 600; color: var(--fg); margin-bottom: 10px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
footer ul a { color: var(--muted); }
footer .legal { border-top: 1px solid var(--line); padding-top: 18px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* 글 페이지 */
.article-head { text-align: center; padding-block: 64px 32px; max-width: 760px; margin: 0 auto; }
.article-head h1 { font-size: clamp(32px, 5vw, 52px); margin-top: 12px; }
.article-head .sub { font-size: clamp(18px, 2.2vw, 22px); color: var(--muted); margin-top: 18px; }
.article-head .byline { font-size: 13px; color: var(--muted); margin-top: 22px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.breadcrumb { font-size: 13px; color: var(--muted); padding-block: 16px 0; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb li + li::before { content: "›"; margin-right: 8px; opacity: .6; }
.breadcrumb a { color: var(--muted); }
.article-body { max-width: 680px; margin: 0 auto; padding-block: 24px 72px; font-size: 18px; line-height: 1.7; }
.article-body h2 { font-size: 30px; margin-top: 64px; margin-bottom: 16px; }
.article-body h3 { font-size: 22px; margin-top: 40px; margin-bottom: 10px; }
.article-body p { margin-bottom: 20px; }
.article-body ul, .article-body ol { padding-left: 22px; margin: 0 0 20px; }
.article-body li { margin-bottom: 8px; }
.summary { background: var(--surface); border-radius: 20px; padding: 24px 28px; font-size: 16px; }
.summary strong { display: block; font-weight: 600; margin-bottom: 10px; }
.summary ul { margin: 0; padding-left: 20px; }
.toc { border-left: 2px solid var(--line); padding-left: 20px; margin: 36px 0; font-size: 15px; }
.toc strong { display: block; margin-bottom: 8px; font-size: 13px; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.toc a { color: var(--fg); }
.verdict { background: var(--card); box-shadow: var(--shadow); border-radius: 20px; padding: 28px; margin: 32px 0; }
.verdict .score { font-family: var(--font-display); font-size: 48px; font-weight: 700; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.verdict .score small { font-size: 18px; color: var(--muted); font-weight: 500; }
.verdict .row { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.verdict .pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; font-size: 15px; }
.verdict .pros-cons > div { min-width: 0; }
.verdict .pros-cons h4 { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.verdict ul { margin: 0; padding-left: 18px; }
@media (max-width: 560px) { .verdict .pros-cons { grid-template-columns: 1fr; } }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
.steps li::before { grid-row: 1 / span 2; content: counter(step); width: 36px; height: 36px; border-radius: 50%; background: var(--fg); color: var(--bg); display: grid; place-items: center; font-weight: 600; font-size: 15px; }
.steps li strong { display: block; font-weight: 600; }
.steps li span { grid-column: 2; font-size: 16px; color: var(--muted); }
.cta-box { text-align: center; background: var(--surface); border-radius: 24px; padding: 40px 28px; margin: 48px 0; }
.cta-box h3 { font-size: 26px; }
.cta-box p { color: var(--muted); margin: 10px 0 20px; font-size: 16px; }
.cta-box .fine { font-size: 12px; margin-top: 14px; margin-bottom: 0; }
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::after { content: "+"; color: var(--muted); font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { margin: 12px 0 0; font-size: 16px; color: var(--muted); }
.related { margin-top: 56px; }
.related h2 { font-size: 24px; margin-top: 0; }
.related .grid .card h3 { font-size: 17px; }
.disclosure { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 40px; }

/* moket 벤치마킹: 플랫폼 행, 영상 가이드, 날짜 도장 */
.platforms { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; margin-top: 18px; }
.platforms .lbl { font-size: 13px; color: var(--muted); margin-right: 4px; }
.platforms a { font-size: 13px; font-weight: 500; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; text-decoration: none; }
.platforms a:hover { border-color: var(--accent); color: var(--accent); }
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin: 20px 0 8px; }
.videos figure { margin: 0; }
.videos .yt { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; }
.videos .yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.videos figcaption { margin-top: 8px; font-size: 13px; line-height: 1.4; }
.videos figcaption strong { display: block; font-weight: 500; color: var(--fg); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.videos figcaption span { color: var(--muted); }
.stamp-warn { color: var(--muted); background: var(--surface); }
.stamp { display: inline-block; font-size: 12px; font-weight: 600; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); border-radius: 999px; padding: 4px 10px; margin: 0 0 8px; }
