/* 기능별 소개 페이지 공통 모양 — 색은 첫 화면의 보라(#8A38F5)·분홍(#D53A6B)에서 가져온다 */
:root {
  --bg: #ffffff; --panel: #f6f4fb; --line: #e6e1f2;
  --text: #1b1d21; --sub: #555a66;
  --primary: #8A38F5; --secondary: #D53A6B; --on-primary: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #1b1d21; --panel: #0c0d0f; --line: #34363f; --text: #f3f3f6; --sub: #b6bac6; --primary: #a970ff; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: 'Pretendard Variable', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  font-size: 17px; line-height: 1.65; word-break: keep-all; overflow-wrap: anywhere;
}
a { color: var(--primary); }
img { max-width: 100%; }

.top {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; background: var(--bg); border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--text); text-decoration: none; white-space: nowrap; }
.top-links { display: flex; align-items: center; gap: 14px; font-size: 15px; }
.top-links a { color: var(--sub); text-decoration: none; white-space: nowrap; }
.top-links a:hover { color: var(--text); }
.top-links .top-cta { color: var(--on-primary); background: var(--primary); padding: 8px 14px; border-radius: 10px; font-weight: 700; }
.top-links .top-cta:hover { color: var(--on-primary); opacity: .9; }

main { max-width: 860px; margin: 0 auto; padding: 0 16px 40px; }
section { padding: 28px 0; border-bottom: 1px solid var(--line); }
section:last-child { border-bottom: 0; }
.hero { padding-top: 36px; }
.crumb { margin: 0 0 10px; font-size: 14px; color: var(--sub); }
.crumb a { color: var(--sub); }
h1 { margin: 0 0 14px; font-size: clamp(28px, 6vw, 44px); line-height: 1.25; font-weight: 900; letter-spacing: -0.02em; }
h2 { margin: 0 0 14px; font-size: clamp(21px, 4.2vw, 27px); line-height: 1.35; font-weight: 800; }
.lead { margin: 0 0 22px; font-size: clamp(17px, 3.4vw, 20px); color: var(--sub); }
.note { margin: 16px 0 0; font-size: 15px; color: var(--sub); }

.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 22px;
  border: 2px solid var(--primary); border-radius: 14px; font-weight: 800; text-decoration: none; color: var(--primary); background: transparent;
  transition: transform .08s ease, opacity .15s ease;
}
.btn.primary { color: var(--on-primary); background: linear-gradient(135deg, #8A38F5, #D53A6B); border-color: transparent; }
.btn:hover { opacity: .9; }
.btn:active { transform: scale(.98); }

ul, ol, dl { margin: 0; padding: 0; }
.who { list-style: none; display: grid; gap: 8px; }
.who li { padding: 12px 14px 12px 40px; background: var(--panel); border-radius: 12px; position: relative; }
.who li::before { content: '✓'; position: absolute; left: 14px; color: var(--primary); font-weight: 900; }

.cards { list-style: none; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cards li { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.cards strong { display: block; margin-bottom: 2px; }
.cards span { color: var(--sub); }
.cards li > span:only-child { color: var(--text); }

.steps { list-style: none; counter-reset: s; display: grid; gap: 10px; }
.steps li { counter-increment: s; padding: 12px 14px 12px 54px; position: relative; border: 1px solid var(--line); border-radius: 12px; }
.steps li::before {
  content: counter(s); position: absolute; left: 14px; top: 12px; width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: var(--primary); color: var(--on-primary); font-weight: 800; font-size: 15px;
}

.faq dt { font-weight: 800; margin-top: 16px; }
.faq dt:first-child { margin-top: 0; }
.faq dd { margin: 4px 0 0; color: var(--sub); }

.download { background: var(--panel); border-radius: 18px; padding: 26px 20px; margin: 28px 0 0; border-bottom: 0; }
.download p { margin: 0 0 16px; color: var(--sub); }
.download .sub { margin: 16px 0 0; font-size: 15px; }

.more { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.more a { display: inline-block; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--text); font-size: 15px; }
.more a:hover { border-color: var(--primary); color: var(--primary); }

.foot { padding: 20px 16px 32px; text-align: center; font-size: 14px; color: var(--sub); border-top: 1px solid var(--line); }
.foot a { color: var(--sub); }

@media (max-width: 480px) {
  .top-links a:not(.top-cta) { display: none; }   /* 좁은 화면: 받기 단추만 남긴다 (나머지는 아래 본문에 다 있다) */
  .cta .btn { width: 100%; }
}
