/* 클린그램 가이드 페이지 — 랜딩과 동일한 뉴모피즘 토큰 */
:root {
  --bg: #eff1f5; --surface: #eff1f5; --white: #ffffff;
  --text: #1a1d21; --text-sub: #6b7280;
  --danger: #e5484d; --danger-bg: #fdebec;
  --primary: #2563eb; --primary-strong: #1d4ed8; --safe-bg: #eaf1fd;
  --raised: 6px 6px 12px rgba(163, 177, 198, 0.55), -6px -6px 12px rgba(255, 255, 255, 0.95);
  --raised-sm: 3px 3px 6px rgba(163, 177, 198, 0.5), -3px -3px 6px rgba(255, 255, 255, 0.9);
  --inset: inset 4px 4px 8px rgba(163, 177, 198, 0.5), inset -4px -4px 8px rgba(255, 255, 255, 0.9);
  --maxw: 760px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--text);
  font-family: "Pretendard Variable", Pretendard, -apple-system, "Noto Sans KR", sans-serif;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  line-height: 1.75; overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
.wrap {
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding-left: max(22px, env(safe-area-inset-left));
  padding-right: max(22px, env(safe-area-inset-right));
}

/* Header / Footer */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(239, 241, 245, 0.85);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: center; gap: 9px; }
.brand .logo { width: 28px; height: 28px; display: block; }
.brand .name { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 700; font-size: 15px; border: none; cursor: pointer;
  border-radius: 14px; padding: 13px 22px; transition: box-shadow 140ms ease, transform 140ms ease;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: var(--white); box-shadow: var(--raised-sm); }
.btn-primary:hover { background: var(--primary-strong); transform: translateY(-1px); }
.btn-primary:active { box-shadow: var(--inset); transform: none; }
.btn-ghost { background: var(--surface); color: var(--text); box-shadow: var(--raised-sm); }
.btn-ghost:active { box-shadow: var(--inset); }
.btn-sm { padding: 9px 16px; font-size: 13.5px; border-radius: 12px; }

/* Content */
main { padding: 28px 0 64px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--text-sub); margin-bottom: 22px; }
.crumbs a:hover { color: var(--text); }
.crumbs em { font-style: normal; color: var(--text); font-weight: 600; }
h1 { font-size: clamp(24px, 4.6vw, 34px); line-height: 1.3; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 18px; }
p.lead { color: var(--text-sub); font-size: 16.5px; margin-bottom: 14px; }

.cta-band {
  background: var(--surface); border-radius: 20px; box-shadow: var(--inset);
  padding: 22px 24px; margin: 26px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.cta-band p { font-size: 15px; font-weight: 600; flex: 1 1 300px; }

.card {
  background: var(--surface); border-radius: 20px; box-shadow: var(--raised);
  padding: 26px 26px 22px; margin: 22px 0;
}
.card h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 14px; }
.card h3 { font-size: 15px; font-weight: 700; margin: 18px 0 10px; }
.card ol { padding-left: 22px; }
.card ol li { margin: 8px 0; }
.card ul.check { list-style: none; }
.card ul.check li { position: relative; padding-left: 26px; margin: 9px 0; }
.card ul.check li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 15px; height: 15px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%232563EB" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>');
  background-size: contain; background-repeat: no-repeat;
}
.card.danger h2 { color: var(--danger); }

.contacts { list-style: none; }
.contacts li { margin: 8px 0; }
.contacts a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--surface); box-shadow: var(--raised-sm); border-radius: 14px;
  padding: 13px 16px; font-size: 14px;
}
.contacts a:active { box-shadow: var(--inset); }
.contacts strong { color: var(--primary); font-variant-numeric: tabular-nums; white-space: nowrap; }

details { border-top: 1px solid rgba(163, 177, 198, 0.3); padding: 13px 2px; }
details:first-of-type { border-top: none; }
summary { cursor: pointer; font-weight: 700; font-size: 15.5px; list-style: none; position: relative; padding-right: 26px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 2px; top: 0; color: var(--primary); font-weight: 800; }
details[open] summary::after { content: "–"; }
details p { margin-top: 10px; color: var(--text-sub); font-size: 15px; }

.related h2 { font-size: 17px; font-weight: 800; margin: 30px 0 12px; }
.rel-links { display: flex; gap: 12px; flex-wrap: wrap; }

.disclaimer { margin-top: 34px; font-size: 12.5px; color: var(--text-sub); line-height: 1.7; }

footer { padding: 34px 0 48px; border-top: 1px solid rgba(163, 177, 198, 0.25); }
.foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.foot .brand .name { font-size: 15px; }
.foot-links { display: flex; gap: 20px; }
.foot-links a { font-size: 13.5px; color: var(--text-sub); font-weight: 600; }
.foot-links a:hover { color: var(--text); }
.copyright { font-size: 12.5px; color: var(--text-sub); }

@media (max-width: 560px) {
  .cta-band { flex-direction: column; align-items: stretch; text-align: center; }
  .cta-band p { flex: 0 0 auto; }
  .card { padding: 22px 20px 18px; }
}
