/* 풋살모아 웹 공통 스타일 (TDS 톤). 도구·가이드 페이지에서 사용 */
:root {
  --grey50: #f9fafb; --grey100: #f2f4f6; --grey200: #e5e8eb; --grey300: #d1d6db; --grey400: #b0b8c1;
  --grey500: #8b95a1; --grey600: #6b7684; --grey700: #4e5968; --grey800: #333d4b; --grey900: #191f28;
  --blue50: #e8f3ff; --blue100: #c9e2ff; --blue500: #3182f6; --blue600: #2272eb; --blue700: #1b64da;
  --red50: #ffeeee; --red500: #f04452; --green50: #f0faf6; --green500: #03b26c;
  --orange50: #fff3e0; --orange500: #fe9800;
  --pitch: #1f8a4c; --pitch-dark: #187a42;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: Pretendard, -apple-system, BlinkMacSystemFont, sans-serif; color: var(--grey900);
  background: var(--grey50); -webkit-font-smoothing: antialiased; word-break: keep-all; line-height: 1.5;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
img { max-width: 100%; }
.hidden { display: none !important; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }

/* 상단 내비 */
.site-nav { background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--grey100); }
.site-nav .wrap { display: flex; align-items: center; gap: 4px; height: 56px; }
.site-nav .logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 17px; text-decoration: none; margin-right: 12px; flex: none; }
.site-nav .logo img { width: 28px; height: 28px; border-radius: 8px; }
.site-nav .links { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.site-nav .links::-webkit-scrollbar { display: none; }
.site-nav .links a { text-decoration: none; color: var(--grey700); font-size: 15px; font-weight: 500; padding: 8px 10px; border-radius: 8px; white-space: nowrap; }
.site-nav .links a:hover { background: var(--grey100); }
.site-nav .links a[aria-current="page"] { color: var(--blue500); font-weight: 700; }
.site-nav .get { flex: none; background: var(--blue500); color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 10px; }

/* 페이지 머리 */
.page-head { padding: 36px 0 20px; }
.breadcrumb { font-size: 13px; color: var(--grey500); margin-bottom: 10px; }
.breadcrumb a { color: var(--grey500); text-decoration: none; }
.page-head h1 { font-size: 30px; line-height: 1.3; letter-spacing: -.8px; margin: 0; }
.page-head .lead { font-size: 17px; color: var(--grey700); margin: 10px 0 0; line-height: 1.6; }
@media (min-width: 720px) { .page-head h1 { font-size: 38px; } }

/* 카드, 버튼, 입력 */
.card { background: #fff; border-radius: 20px; padding: 24px 20px; margin-bottom: 16px; }
.card h2 { font-size: 20px; margin: 0 0 14px; letter-spacing: -.4px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 13px 20px; border-radius: 14px; font-weight: 700; font-size: 16px; text-decoration: none; transition: background .15s, transform .1s; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .4; cursor: default; }
.btn.primary { background: var(--blue500); color: #fff; }
.btn.primary:hover:not(:disabled) { background: var(--blue600); }
.btn.weak { background: var(--blue50); color: var(--blue500); }
.btn.grey { background: var(--grey100); color: var(--grey700); }
.btn.dark { background: var(--grey900); color: #fff; }
.btn.small { padding: 8px 12px; font-size: 14px; border-radius: 10px; }
.btn.block { width: 100%; }
.input, .select, textarea.input {
  width: 100%; border: 1px solid var(--grey200); border-radius: 12px; padding: 12px 14px; background: #fff; font-size: 16px; outline: none;
}
.input:focus, .select:focus { border-color: var(--blue500); }
label.field { display: block; font-size: 14px; font-weight: 600; color: var(--grey700); margin-bottom: 8px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { padding: 9px 14px; border-radius: 10px; background: var(--grey100); color: var(--grey700); font-size: 15px; font-weight: 500; }
.seg button[aria-pressed="true"] { background: var(--grey900); color: #fff; }
.hint { font-size: 13px; color: var(--grey500); margin: 8px 0 0; line-height: 1.5; }
.chip { display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; background: var(--grey100); color: var(--grey700); }

/* 앱 설치 유도 */
.app-cta { display: flex; gap: 16px; align-items: center; background: linear-gradient(135deg, #3d8bff, #1b64da); color: #fff; border-radius: 20px; padding: 22px 20px; margin: 16px 0; }
.app-cta img { width: 56px; height: 56px; border-radius: 14px; flex: none; box-shadow: 0 6px 16px rgba(0, 30, 90, .25); }
.app-cta .txt { flex: 1; min-width: 0; }
.app-cta b { display: block; font-size: 17px; letter-spacing: -.3px; }
.app-cta span { display: block; font-size: 14px; color: #dcebff; margin-top: 4px; line-height: 1.5; }
.app-cta .btn { background: #fff; color: var(--blue700); flex: none; padding: 11px 16px; font-size: 15px; }
@media (max-width: 560px) { .app-cta { flex-wrap: wrap; } .app-cta .btn { width: 100%; } }

/* 앱 전용 기능 잠금 표시 (기능 목록에서 앱에서만 되는 항목) */
.app-only { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--grey50); text-decoration: none; margin-top: 8px; }
.app-only .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--blue50); color: var(--blue500); display: grid; place-items: center; font-size: 18px; flex: none; }
.app-only b { font-size: 15px; display: block; }
.app-only small { color: var(--grey600); font-size: 13px; }
.app-only .go { margin-left: auto; color: var(--blue500); font-weight: 700; font-size: 14px; white-space: nowrap; }

/* 모바일 하단 고정 설치 바 (스크롤하면 등장) */
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30; display: flex; align-items: center; gap: 10px; background: var(--grey900); color: #fff; border-radius: 16px; padding: 10px 10px 10px 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); transform: translateY(140%); transition: transform .25s ease-out; }
.sticky-cta.show { transform: none; }
.sticky-cta img { width: 32px; height: 32px; border-radius: 8px; }
.sticky-cta span { flex: 1; font-size: 14px; font-weight: 600; line-height: 1.35; }
.sticky-cta a { background: var(--blue500); color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; padding: 9px 14px; border-radius: 10px; white-space: nowrap; }
.sticky-cta button { color: var(--grey400); font-size: 18px; padding: 4px 6px; }
@media (min-width: 900px) { .sticky-cta { left: auto; right: 24px; bottom: 24px; max-width: 420px; } }

/* 본문 글 (가이드) */
.article { background: #fff; border-radius: 20px; padding: 28px 20px; margin-bottom: 16px; font-size: 17px; line-height: 1.75; color: var(--grey800); }
.article h2 { font-size: 23px; line-height: 1.4; margin: 36px 0 12px; color: var(--grey900); letter-spacing: -.4px; }
.article h2:first-child { margin-top: 0; }
.article h3 { font-size: 19px; margin: 26px 0 8px; color: var(--grey900); }
.article p { margin: 0 0 14px; }
.article ul, .article ol { padding-left: 22px; margin: 0 0 14px; }
.article li { margin-bottom: 6px; }
.article table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 18px; }
.article th, .article td { border-bottom: 1px solid var(--grey100); padding: 10px 8px; text-align: left; vertical-align: top; }
.article th { color: var(--grey600); font-weight: 600; background: var(--grey50); }
.article .note { background: var(--blue50); border-radius: 14px; padding: 14px 16px; font-size: 15px; color: var(--grey800); margin: 0 0 16px; }
@media (min-width: 720px) { .article { padding: 40px 48px; } }

/* FAQ */
.faq details { border-bottom: 1px solid var(--grey100); padding: 14px 0; }
.faq details:last-child { border-bottom: 0; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; color: var(--grey400); font-weight: 400; }
.faq details[open] summary::after { content: '−'; }
.faq p { margin: 10px 0 0; color: var(--grey700); font-size: 15px; line-height: 1.65; }

/* 관련 링크 카드 */
.link-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.link-card { display: block; background: #fff; border-radius: 18px; padding: 18px; text-decoration: none; transition: transform .15s; }
.link-card:hover { transform: translateY(-2px); }
.link-card .em { font-size: 26px; }
.link-card b { display: block; font-size: 17px; margin-top: 8px; }
.link-card span { display: block; color: var(--grey600); font-size: 14px; margin-top: 4px; line-height: 1.5; }

/* 토스트 */
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: var(--grey900); color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 15px; z-index: 40; animation: toast-up .2s ease-out; max-width: calc(100vw - 32px); }
@keyframes toast-up { from { opacity: 0; transform: translate(-50%, 8px); } }

/* 푸터 */
.site-footer { margin-top: 40px; padding: 28px 0 120px; border-top: 1px solid var(--grey100); font-size: 13px; color: var(--grey500); background: #fff; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 10px; }
.site-footer a { color: var(--grey600); text-decoration: none; }

/* 언어 선택 (상단 메뉴, 하단 링크) */
.lang-menu { position: relative; flex: none; margin-right: 6px; }
.lang-menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 3px; padding: 7px 8px; border-radius: 8px; font-size: 13px; font-weight: 700; color: var(--grey600); }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover { background: var(--grey100); }
.lang-menu .lang-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; display: grid; min-width: 184px; padding: 6px; background: #fff; border-radius: 14px; box-shadow: 0 8px 28px rgba(0, 0, 0, .14); }
.lang-menu .lang-list a { padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--grey800); font-size: 15px; font-weight: 500; white-space: nowrap; }
.lang-menu .lang-list a:hover { background: var(--grey100); }
.lang-menu .lang-list a[aria-current="true"] { color: var(--blue500); font-weight: 700; }
.site-footer .lang-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 10px; }
.site-footer .lang-links a[aria-current="true"] { color: var(--grey900); font-weight: 700; }
/* 일본어·태국어 등은 keep-all 이면 줄바꿈이 안 돼서 일반 규칙으로 */
html:not([lang="ko"]) body { word-break: normal; overflow-wrap: break-word; }
