/* massaviet.com 소개 사이트 공용 스타일 — 앱(index.html)과 별개로 검색·콘텐츠용 정적 사이트에서만 쓴다 */

:root {
  --navy: #1F4E5F;
  --navy-dark: #163A47;
  --accent: #E3922B;
  --text: #1B2B31;
  --muted: #5F7278;
  --line: #E2E8EA;
  --bg: #FFFFFF;
  --bg-soft: #F4F6F7;
  --radius: 14px;
  --wrap: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; }
a { color: var(--navy); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ── 헤더 ───────────────────────────────── */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; gap: 18px; height: 62px; }
.brand { font-weight: 800; font-size: 20px; color: var(--navy); text-decoration: none; letter-spacing: -.02em; }
.brand span { color: var(--accent); }
nav.main { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; }
nav.main a { color: var(--muted); text-decoration: none; font-size: 15px; }
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--navy); font-weight: 600; }

/* ── 히어로 ─────────────────────────────── */
.hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%); color: #fff; padding: 72px 0 64px; }
.hero h1 { font-size: 38px; line-height: 1.35; margin: 0 0 16px; letter-spacing: -.03em; }
.hero p { font-size: 18px; color: #C9D9DE; margin: 0 0 28px; max-width: 620px; }
.hero .cta { display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  padding: 13px 26px; border-radius: var(--radius); font-weight: 700; }
.hero .cta.ghost { background: transparent; border: 1.5px solid rgba(255,255,255,.5); margin-left: 10px; }

/* ── 섹션 ───────────────────────────────── */
section { padding: 56px 0; }
section.soft { background: var(--bg-soft); }
h2 { font-size: 27px; margin: 0 0 10px; letter-spacing: -.02em; }
h3 { font-size: 19px; margin: 28px 0 8px; }
.lead { color: var(--muted); margin: 0 0 28px; font-size: 17px; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card .ico { font-size: 26px; }
.card h3 { margin: 8px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

ol.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
ol.steps li { counter-increment: s; position: relative; padding: 0 0 20px 46px; }
ol.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 2px;
  width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px;
}
ol.steps b { display: block; }

table.tbl { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
table.tbl th, table.tbl td { border: 1px solid var(--line); padding: 11px 13px; text-align: left; vertical-align: top; }
table.tbl th { background: var(--bg-soft); font-weight: 700; white-space: nowrap; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16.5px; }
.faq p { color: var(--muted); margin: 10px 0 0; }

.note { background: var(--bg-soft); border-left: 3px solid var(--accent); padding: 14px 18px; border-radius: 0 10px 10px 0; color: var(--muted); font-size: 15px; }

/* ── 앱 스토어 버튼 ─────────────────────── */
.stores { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 0; }
.store {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
  background: #fff; color: var(--text); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 13px 22px; min-width: 232px;
}
.store:hover { border-color: var(--accent); }
.store .ico { font-size: 25px; line-height: 1; }
.store b { display: block; font-size: 16px; letter-spacing: -.01em; }
.store small { display: block; color: var(--muted); font-size: 13px; line-height: 1.5; }
/* 아직 공개되지 않은 스토어는 링크를 걸지 않고 상태만 보여준다 */
.store.off { opacity: .62; cursor: default; }

/* ── 푸터 ───────────────────────────────── */
footer.site { background: var(--navy-dark); color: #A9C0C8; padding: 40px 0 48px; font-size: 14.5px; margin-top: 20px; }
footer.site a { color: #D6E4E9; text-decoration: none; }
footer.site a:hover { text-decoration: underline; }
footer.site .cols { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 26px; }
footer.site h4 { color: #fff; font-size: 15px; margin: 0 0 10px; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin-bottom: 6px; }
footer.site .legal { border-top: 1px solid rgba(255,255,255,.15); padding-top: 18px; color: #86A1AA; font-size: 13.5px; }

@media (max-width: 720px) {
  .hero { padding: 52px 0 46px; }
  .hero h1 { font-size: 29px; }
  .hero p { font-size: 16.5px; }
  .hero .cta.ghost { margin: 10px 0 0; display: inline-block; }
  h2 { font-size: 23px; }
  nav.main { gap: 13px; }
  nav.main a { font-size: 14px; }
  header.site .wrap { height: auto; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
}
