/* 닥터슬로: 커뮤니티 앱(회색 바탕 위 흰 게시판, Pretendard, 주황 포인트)과 같은 디자인 */
:root {
  --ink: #111827;
  --ink-2: #374151;
  --muted: #6b7280;
  --bg: #f3f4f6;
  --sheet: #fff;
  --line: #e5e7eb;
  --accent: #ff6f0f;
  --accent-press: #e85d04;
  --accent-text: #c2410c;
  --font: Pretendard, system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font); word-break: keep-all; overflow-wrap: break-word; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol { margin: 0; }
h1, h2, h3 { font-weight: 700; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* 머리글 */
.nav { position: sticky; top: 0; z-index: 50; background: var(--sheet); border-bottom: 1px solid var(--line); }
.nav-inner { max-width: 1080px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
a.logo:hover { text-decoration: none; }
.logo-img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.logo b { display: block; font-size: 20px; line-height: 1.2; font-weight: 700; }
.logo small { display: block; font-size: 12px; line-height: 1.3; color: var(--muted); font-weight: 500; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-link { font-size: 14px; font-weight: 600; color: var(--accent); }
.nav-cta { display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 4px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 600; transition: background .15s; }
.nav-cta:hover { background: var(--accent-press); color: #fff; text-decoration: none; }
.tabs { border-top: 1px solid var(--line); }
.tabs-inner { max-width: 1080px; margin: 0 auto; padding: 0 8px; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.tabs-inner::-webkit-scrollbar { display: none; }
.tabs a { flex: none; padding: 12px 10px; font-size: 15px; font-weight: 600; color: var(--ink-2); border-bottom: 2px solid transparent; }
.tabs a:hover { color: var(--accent-text); text-decoration: none; }
.tabs a[aria-current] { color: var(--ink); border-bottom-color: var(--accent); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
main { padding: 20px 0 40px; }

/* 게시판 판 */
.board { background: var(--sheet); border: 1px solid var(--line); border-radius: 4px; margin-bottom: 16px; overflow: hidden; }
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: #fafafa; }
.board-head h2 { font-size: 16px; }
.board-head span { font-size: 13px; color: var(--muted); }

/* 첫 화면 */
.hero { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding: 36px 32px; }
.hero-appicon { width: 112px; height: 112px; border-radius: 26px; object-fit: cover; box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }
.hero-badge { display: inline-block; margin-bottom: 10px; padding: 3px 10px; border-radius: 999px; background: #fff1e6; color: var(--accent-text); font-size: 13px; font-weight: 700; }
.hero h1 { font-size: clamp(1.75rem, 4.2vw, 2.5rem); line-height: 1.25; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lead { margin-top: 12px; color: var(--ink-2); font-size: 17px; }
.store-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.store-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 4px; font-size: 15px; font-weight: 700; transition: background .15s; }
.store-btn:hover { text-decoration: none; }
.store-btn--ios { background: var(--ink); color: #fff; }
.store-btn--ios:hover { background: #000; color: #fff; }
.store-btn--android { background: var(--accent); color: #fff; }
.store-btn--android:hover { background: var(--accent-press); color: #fff; }

/* 기능 목록: 게시판 글 줄 모양 */
.rows { list-style: none; padding: 0; margin: 0; }
.rows li { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 16px 20px; border-top: 1px solid var(--line); align-items: baseline; }
.rows li:first-child { border-top: 0; }
.rows .tag { font-size: 15px; font-weight: 700; white-space: nowrap; }
.rows .tt { font-size: 16px; font-weight: 600; }
.rows .ds { display: block; margin-top: 2px; color: var(--muted); font-size: 14px; font-weight: 400; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 18px 20px; }
.chips span, .chips a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 600; }

.cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 24px; }
.cta p { color: var(--ink-2); }
.cta b { display: block; font-size: 18px; margin-bottom: 2px; color: var(--ink); }

/* 바닥글 */
.footer { background: var(--sheet); border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { max-width: 1080px; margin: 0 auto; padding: 22px 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--ink); }

/* 약관·개인정보·계정 삭제 */
.legal { max-width: 860px; margin: 20px auto 40px; padding: 36px 40px 48px; background: var(--sheet); border: 1px solid var(--line); border-radius: 4px; }
.legal h1 { font-size: clamp(1.6rem, 4vw, 2rem); line-height: 1.25; }
.legal .meta { margin: 10px 0 8px; color: var(--muted); font-size: 14px; }
.legal h2 { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 18px; }
.legal h2:first-of-type { margin-top: 28px; }
.legal p, .legal li { margin-top: 10px; color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.legal ol, .legal ul { margin: 4px 0 0; padding-left: 1.3em; }
.legal li { margin-top: 6px; }
.legal table { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 14px; line-height: 1.5; display: block; overflow-x: auto; }
.legal th, .legal td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; color: var(--ink-2); }
.legal th { background: #fafafa; color: var(--ink); font-weight: 700; white-space: nowrap; }
.legal a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.app-badge { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 20px; font-weight: 700; }
.app-badge img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.app-badge .sub { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.steps { margin-top: 28px; padding: 20px 22px; background: #fff7f0; border: 1px solid #ffd9bd; border-radius: 4px; }
.steps h2 { margin-top: 0; padding-top: 0; border-top: 0; }
.steps li { font-weight: 700; color: var(--ink); }
.steps li span { font-weight: 400; color: var(--ink-2); }
.cta-mail { display: inline-flex; align-items: center; min-height: 44px; margin-top: 16px; padding: 0 22px; border-radius: 4px; background: var(--accent); color: #fff !important; font-weight: 700; text-decoration: none !important; }
.cta-mail:hover { background: var(--accent-press); }

@media (max-width: 733px) {
  .logo b { font-size: 18px; }
  .nav-link { display: none; }
  .hero { grid-template-columns: 1fr; padding: 28px 20px; gap: 18px; text-align: left; }
  .hero-appicon { width: 84px; height: 84px; border-radius: 20px; }
  .rows li { grid-template-columns: 1fr; gap: 2px; padding: 14px 16px; }
  .legal { margin: 0; border-radius: 0; border-left: 0; border-right: 0; padding: 28px 18px 40px; }
  .board { border-radius: 0; border-left: 0; border-right: 0; }
  .wrap { padding: 0; }
  .cta { padding: 20px 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* 게시판 페이지 */
.board-body { padding: 24px 20px 28px; }
.board-desc { font-size: 17px; color: var(--ink-2); }
.board-body .store-btns { margin-top: 20px; }
.chips a.chip { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 600; color: var(--ink); }
.chips a.chip:hover { border-color: var(--accent); color: var(--accent-text); text-decoration: none; }
